@progress/kendo-react-editor 6.1.1-dev.202311151536 → 7.0.0-develop.1

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 (231) hide show
  1. package/{dist/es/Editor.d.ts → Editor.d.ts} +5 -1
  2. package/{dist/npm/EditorProps.d.ts → EditorProps.d.ts} +4 -1
  3. package/LICENSE.md +1 -1
  4. package/{dist/es/config → config}/defaultStyles.d.ts +4 -0
  5. package/config/pasteSettings.d.ts +10 -0
  6. package/config/schema.d.ts +5 -0
  7. package/{dist/es/config → config}/shortcuts.d.ts +10 -6
  8. package/{dist/es/config → config}/toolsSettings.d.ts +4 -1
  9. package/{dist/npm/dialogs → dialogs}/EditorDialogProps.d.ts +4 -1
  10. package/{dist/npm/dialogs → dialogs}/FindReplace.d.ts +5 -1
  11. package/{dist/npm/dialogs/main.d.ts → dialogs/index.d.ts} +4 -0
  12. package/{dist/npm/dialogs → dialogs}/insertImage.d.ts +5 -1
  13. package/{dist/es/dialogs → dialogs}/insertLink.d.ts +5 -1
  14. package/{dist/npm/dialogs → dialogs}/viewHtml.d.ts +5 -1
  15. package/dist/cdn/js/kendo-react-editor.js +226 -1
  16. package/{dist/es/main.d.ts → index.d.ts} +10 -6
  17. package/index.js +226 -0
  18. package/index.mjs +4133 -0
  19. package/{dist/npm/messages → messages}/index.d.ts +4 -0
  20. package/package-metadata.d.ts +9 -0
  21. package/package.json +37 -52
  22. package/{dist/es/tools → tools}/ToolProps.d.ts +4 -1
  23. package/tools/align.d.ts +11 -0
  24. package/{dist/es/tools → tools}/applyColor.d.ts +4 -0
  25. package/{dist/npm/tools → tools}/cleanFormatting.d.ts +4 -0
  26. package/{dist/npm/tools → tools}/findReplace.d.ts +5 -1
  27. package/{dist/npm/tools → tools}/fontStyle.d.ts +4 -0
  28. package/{dist/es/tools → tools}/formatBlock.d.ts +4 -0
  29. package/{dist/npm/tools → tools}/history.d.ts +4 -0
  30. package/{dist/npm/tools → tools}/indent.d.ts +4 -0
  31. package/{dist/npm/tools/main.d.ts → tools/index.d.ts} +6 -2
  32. package/{dist/es/tools → tools}/inlineFormat.d.ts +4 -0
  33. package/tools/insertImage.d.ts +17 -0
  34. package/{dist/npm/tools → tools}/insertLink.d.ts +4 -0
  35. package/tools/insertTable/index.d.ts +7 -0
  36. package/{dist/npm/tools → tools}/insertTable/popup.d.ts +5 -1
  37. package/{dist/npm/tools → tools}/insertTable/popupGrid.d.ts +6 -2
  38. package/{dist/es/tools → tools}/insertTable/tool.d.ts +4 -0
  39. package/tools/lists-styled.d.ts +8 -0
  40. package/{dist/es/tools → tools}/lists.d.ts +4 -0
  41. package/{dist/es/tools → tools}/outdent.d.ts +4 -0
  42. package/{dist/npm/tools → tools}/pdf.d.ts +4 -0
  43. package/{dist/npm/tools → tools}/print.d.ts +4 -0
  44. package/{dist/npm/tools → tools}/proseMirrorTool.d.ts +4 -0
  45. package/{dist/npm/tools → tools}/selectAll.d.ts +4 -0
  46. package/{dist/npm/tools → tools}/table-wizard/cellPropsUtils.d.ts +4 -0
  47. package/{dist/npm/tools → tools}/table-wizard/tableCellProperties.d.ts +5 -1
  48. package/tools/table-wizard/tableProperties.d.ts +15 -0
  49. package/{dist/es/tools → tools}/table-wizard/tablePropsUtils.d.ts +5 -1
  50. package/{dist/es/tools → tools}/table-wizard/utils.d.ts +4 -0
  51. package/{dist/npm/tools → tools}/tableEdit.d.ts +4 -0
  52. package/{dist/npm/tools → tools}/unlink.d.ts +4 -0
  53. package/{dist/npm/tools → tools}/utils.d.ts +4 -0
  54. package/{dist/es/tools → tools}/viewHtml.d.ts +4 -0
  55. package/utils/browser-detection.d.ts +8 -0
  56. package/utils/controlled-value.d.ts +9 -0
  57. package/{dist/npm/utils → utils}/index.d.ts +4 -0
  58. package/utils/props-key.d.ts +9 -0
  59. package/about.md +0 -3
  60. package/dist/es/Editor.js +0 -441
  61. package/dist/es/EditorProps.d.ts +0 -197
  62. package/dist/es/EditorProps.js +0 -1
  63. package/dist/es/config/defaultStyles.js +0 -12
  64. package/dist/es/config/pasteSettings.d.ts +0 -6
  65. package/dist/es/config/pasteSettings.js +0 -1
  66. package/dist/es/config/schema.d.ts +0 -1
  67. package/dist/es/config/schema.js +0 -1
  68. package/dist/es/config/shortcuts.js +0 -34
  69. package/dist/es/config/toolsSettings.js +0 -522
  70. package/dist/es/dialogs/EditorDialogProps.d.ts +0 -27
  71. package/dist/es/dialogs/EditorDialogProps.js +0 -1
  72. package/dist/es/dialogs/FindReplace.d.ts +0 -71
  73. package/dist/es/dialogs/FindReplace.js +0 -248
  74. package/dist/es/dialogs/insertImage.d.ts +0 -28
  75. package/dist/es/dialogs/insertImage.js +0 -119
  76. package/dist/es/dialogs/insertLink.js +0 -94
  77. package/dist/es/dialogs/main.d.ts +0 -49
  78. package/dist/es/dialogs/main.js +0 -69
  79. package/dist/es/dialogs/viewHtml.d.ts +0 -25
  80. package/dist/es/dialogs/viewHtml.js +0 -79
  81. package/dist/es/main.js +0 -201
  82. package/dist/es/messages/index.d.ts +0 -334
  83. package/dist/es/messages/index.js +0 -989
  84. package/dist/es/package-metadata.d.ts +0 -5
  85. package/dist/es/package-metadata.js +0 -11
  86. package/dist/es/tools/ToolProps.js +0 -1
  87. package/dist/es/tools/align.d.ts +0 -7
  88. package/dist/es/tools/align.js +0 -70
  89. package/dist/es/tools/applyColor.js +0 -34
  90. package/dist/es/tools/cleanFormatting.d.ts +0 -16
  91. package/dist/es/tools/cleanFormatting.js +0 -50
  92. package/dist/es/tools/findReplace.d.ts +0 -29
  93. package/dist/es/tools/findReplace.js +0 -76
  94. package/dist/es/tools/fontStyle.d.ts +0 -28
  95. package/dist/es/tools/fontStyle.js +0 -91
  96. package/dist/es/tools/formatBlock.js +0 -89
  97. package/dist/es/tools/history.d.ts +0 -26
  98. package/dist/es/tools/history.js +0 -16
  99. package/dist/es/tools/indent.d.ts +0 -17
  100. package/dist/es/tools/indent.js +0 -90
  101. package/dist/es/tools/inlineFormat.js +0 -75
  102. package/dist/es/tools/insertImage.d.ts +0 -13
  103. package/dist/es/tools/insertImage.js +0 -78
  104. package/dist/es/tools/insertLink.d.ts +0 -24
  105. package/dist/es/tools/insertLink.js +0 -85
  106. package/dist/es/tools/insertTable/index.d.ts +0 -3
  107. package/dist/es/tools/insertTable/index.js +0 -3
  108. package/dist/es/tools/insertTable/popup.d.ts +0 -93
  109. package/dist/es/tools/insertTable/popup.js +0 -102
  110. package/dist/es/tools/insertTable/popupGrid.d.ts +0 -31
  111. package/dist/es/tools/insertTable/popupGrid.js +0 -54
  112. package/dist/es/tools/insertTable/tool.js +0 -106
  113. package/dist/es/tools/lists-styled.d.ts +0 -5
  114. package/dist/es/tools/lists-styled.js +0 -80
  115. package/dist/es/tools/lists.js +0 -84
  116. package/dist/es/tools/main.d.ts +0 -714
  117. package/dist/es/tools/main.js +0 -740
  118. package/dist/es/tools/outdent.js +0 -85
  119. package/dist/es/tools/pdf.d.ts +0 -25
  120. package/dist/es/tools/pdf.js +0 -44
  121. package/dist/es/tools/print.d.ts +0 -16
  122. package/dist/es/tools/print.js +0 -48
  123. package/dist/es/tools/proseMirrorTool.d.ts +0 -12
  124. package/dist/es/tools/proseMirrorTool.js +0 -67
  125. package/dist/es/tools/selectAll.d.ts +0 -16
  126. package/dist/es/tools/selectAll.js +0 -45
  127. package/dist/es/tools/table-wizard/cellPropsUtils.d.ts +0 -36
  128. package/dist/es/tools/table-wizard/cellPropsUtils.js +0 -203
  129. package/dist/es/tools/table-wizard/tableCellProperties.d.ts +0 -20
  130. package/dist/es/tools/table-wizard/tableCellProperties.js +0 -247
  131. package/dist/es/tools/table-wizard/tableProperties.d.ts +0 -11
  132. package/dist/es/tools/table-wizard/tableProperties.js +0 -294
  133. package/dist/es/tools/table-wizard/tablePropsUtils.js +0 -498
  134. package/dist/es/tools/table-wizard/utils.js +0 -144
  135. package/dist/es/tools/tableEdit.d.ts +0 -98
  136. package/dist/es/tools/tableEdit.js +0 -90
  137. package/dist/es/tools/unlink.d.ts +0 -17
  138. package/dist/es/tools/unlink.js +0 -77
  139. package/dist/es/tools/utils.d.ts +0 -50
  140. package/dist/es/tools/utils.js +0 -72
  141. package/dist/es/tools/viewHtml.js +0 -79
  142. package/dist/es/utils/browser-detection.d.ts +0 -4
  143. package/dist/es/utils/browser-detection.js +0 -5
  144. package/dist/es/utils/controlled-value.d.ts +0 -5
  145. package/dist/es/utils/controlled-value.js +0 -31
  146. package/dist/es/utils/index.d.ts +0 -363
  147. package/dist/es/utils/index.js +0 -431
  148. package/dist/es/utils/props-key.d.ts +0 -5
  149. package/dist/es/utils/props-key.js +0 -5
  150. package/dist/npm/Editor.d.ts +0 -118
  151. package/dist/npm/Editor.js +0 -444
  152. package/dist/npm/EditorProps.js +0 -2
  153. package/dist/npm/config/defaultStyles.d.ts +0 -12
  154. package/dist/npm/config/defaultStyles.js +0 -15
  155. package/dist/npm/config/pasteSettings.d.ts +0 -6
  156. package/dist/npm/config/pasteSettings.js +0 -2
  157. package/dist/npm/config/schema.d.ts +0 -1
  158. package/dist/npm/config/schema.js +0 -6
  159. package/dist/npm/config/shortcuts.d.ts +0 -24
  160. package/dist/npm/config/shortcuts.js +0 -38
  161. package/dist/npm/config/toolsSettings.d.ts +0 -490
  162. package/dist/npm/config/toolsSettings.js +0 -525
  163. package/dist/npm/dialogs/EditorDialogProps.js +0 -2
  164. package/dist/npm/dialogs/FindReplace.js +0 -251
  165. package/dist/npm/dialogs/insertImage.js +0 -122
  166. package/dist/npm/dialogs/insertLink.d.ts +0 -26
  167. package/dist/npm/dialogs/insertLink.js +0 -97
  168. package/dist/npm/dialogs/main.js +0 -72
  169. package/dist/npm/dialogs/viewHtml.js +0 -82
  170. package/dist/npm/main.d.ts +0 -176
  171. package/dist/npm/main.js +0 -189
  172. package/dist/npm/messages/index.js +0 -992
  173. package/dist/npm/package-metadata.d.ts +0 -5
  174. package/dist/npm/package-metadata.js +0 -14
  175. package/dist/npm/tools/ToolProps.d.ts +0 -38
  176. package/dist/npm/tools/ToolProps.js +0 -2
  177. package/dist/npm/tools/align.d.ts +0 -7
  178. package/dist/npm/tools/align.js +0 -74
  179. package/dist/npm/tools/applyColor.d.ts +0 -12
  180. package/dist/npm/tools/applyColor.js +0 -38
  181. package/dist/npm/tools/cleanFormatting.js +0 -54
  182. package/dist/npm/tools/findReplace.js +0 -79
  183. package/dist/npm/tools/fontStyle.js +0 -94
  184. package/dist/npm/tools/formatBlock.d.ts +0 -18
  185. package/dist/npm/tools/formatBlock.js +0 -92
  186. package/dist/npm/tools/history.js +0 -19
  187. package/dist/npm/tools/indent.js +0 -93
  188. package/dist/npm/tools/inlineFormat.d.ts +0 -47
  189. package/dist/npm/tools/inlineFormat.js +0 -78
  190. package/dist/npm/tools/insertImage.d.ts +0 -13
  191. package/dist/npm/tools/insertImage.js +0 -82
  192. package/dist/npm/tools/insertLink.js +0 -88
  193. package/dist/npm/tools/insertTable/index.d.ts +0 -3
  194. package/dist/npm/tools/insertTable/index.js +0 -7
  195. package/dist/npm/tools/insertTable/popup.js +0 -105
  196. package/dist/npm/tools/insertTable/popupGrid.js +0 -56
  197. package/dist/npm/tools/insertTable/tool.d.ts +0 -24
  198. package/dist/npm/tools/insertTable/tool.js +0 -109
  199. package/dist/npm/tools/lists-styled.d.ts +0 -5
  200. package/dist/npm/tools/lists-styled.js +0 -84
  201. package/dist/npm/tools/lists.d.ts +0 -27
  202. package/dist/npm/tools/lists.js +0 -87
  203. package/dist/npm/tools/main.js +0 -743
  204. package/dist/npm/tools/outdent.d.ts +0 -17
  205. package/dist/npm/tools/outdent.js +0 -88
  206. package/dist/npm/tools/pdf.js +0 -48
  207. package/dist/npm/tools/print.js +0 -52
  208. package/dist/npm/tools/proseMirrorTool.js +0 -71
  209. package/dist/npm/tools/selectAll.js +0 -49
  210. package/dist/npm/tools/table-wizard/cellPropsUtils.js +0 -208
  211. package/dist/npm/tools/table-wizard/tableCellProperties.js +0 -253
  212. package/dist/npm/tools/table-wizard/tableProperties.d.ts +0 -11
  213. package/dist/npm/tools/table-wizard/tableProperties.js +0 -298
  214. package/dist/npm/tools/table-wizard/tablePropsUtils.d.ts +0 -52
  215. package/dist/npm/tools/table-wizard/tablePropsUtils.js +0 -504
  216. package/dist/npm/tools/table-wizard/utils.d.ts +0 -39
  217. package/dist/npm/tools/table-wizard/utils.js +0 -153
  218. package/dist/npm/tools/tableEdit.js +0 -95
  219. package/dist/npm/tools/unlink.js +0 -80
  220. package/dist/npm/tools/utils.js +0 -82
  221. package/dist/npm/tools/viewHtml.d.ts +0 -24
  222. package/dist/npm/tools/viewHtml.js +0 -82
  223. package/dist/npm/utils/browser-detection.d.ts +0 -4
  224. package/dist/npm/utils/browser-detection.js +0 -8
  225. package/dist/npm/utils/controlled-value.d.ts +0 -5
  226. package/dist/npm/utils/controlled-value.js +0 -35
  227. package/dist/npm/utils/index.js +0 -434
  228. package/dist/npm/utils/props-key.d.ts +0 -5
  229. package/dist/npm/utils/props-key.js +0 -8
  230. package/dist/systemjs/kendo-react-editor.js +0 -1
  231. package/e2e-next/editor.basic.tests.ts +0 -24
@@ -1 +1,226 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("react-transition-group"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl","@progress/kendo-drawing","react-transition-group","react-dom/server"],t):"object"==typeof exports?exports.KendoReactEditor=t(require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl"),require("@progress/kendo-drawing"),require("react-transition-group"),require("react-dom/server")):e.KendoReactEditor=t(e.React,e.PropTypes,e.KendoLicensing,e.ReactDOM,e.KendoReactIntl,e.KendoDrawing,e.ReactTransitionGroup,e.ReactDOMServer)}(self,(function(e,t,n,o,r,i,a,s){return(()=>{"use strict";var l={1801:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Editor=void 0;var s=n(3899),l=n(189),c=n(2888),u=n(1262),d=n(2696),p=n(2346),h=n(3605),f=n(2804),m=n(3695),v=n(5538),g=n(580),y=n(1457),b=n(3131),w=n(7363),k=n(1262),x=f.EditorToolsSettings.link,z=f.EditorToolsSettings.bold,C=f.EditorToolsSettings.italic,S=f.EditorToolsSettings.underline,I=n(3364),M=n(499),E=function(e){function t(t){var n=e.call(this,t)||this;return n.state={view:void 0,linkDialog:!1},n._element=null,n._contentElement=null,n.iframe=null,n.trOnChange=null,n.htmlOnChange=null,n.showLicenseWatermark=!1,n.focus=function(){n.view&&n.view.focus()},n.renderDialog=function(e,t,o){return n.state[o]&&s.createElement(e,{view:n.view,settings:t,dir:n.props.dir,onClose:function(){var e;return n.setState(((e={})[o]=!1,e))}})},n.renderTool=function(e,t){var o=s.createElement(e,{view:n.view,dir:n.props.dir,key:t});return o.type===c.ToolbarSeparator?s.createElement(e,{key:t}):o},n.updateTools=function(e,t){n.setState({view:e})},n.filterTransaction=function(e,t){var o={target:n,transaction:e,state:t};return!1!==(n.props.onExecute&&n.props.onExecute.call(void 0,o))},n.onPasteHtml=function(e){if(n.props.onPasteHtml&&n.pasteEvent){var t={target:n,pastedHtml:e,nativeEvent:n.pasteEvent},o=n.props.onPasteHtml.call(void 0,t);if(n.pasteEvent=void 0,"string"==typeof o)return o}return e},n.dispatchTransaction=function(e){var t=e.docChanged;if(n.props.onChange&&t){n.trOnChange=e;var o=e.doc,r=e.doc.type.schema,i=n,a={target:i,value:o,get html(){return i.htmlOnChange=v.EditorUtils.getHtml({doc:o,schema:r}),i.htmlOnChange},transaction:e,schema:r};n.props.onChange.call(void 0,a)}!n.view||void 0!==n.props.value&&t||n.view.updateState(n.view.state.apply(e))},n.onFocus=function(e,t){if(n.props.onFocus){var o={target:n,nativeEvent:t};n.props.onFocus.call(void 0,o)}return!1},n.onBlur=function(e,t){if(n.props.onBlur){var o={target:n,nativeEvent:t};n.props.onBlur.call(void 0,o)}return!1},n.onPaste=function(e,t){return n.props.onPasteHtml&&(n.pasteEvent=t),!1},(0,k.validatePackage)(w.packageMetadata),n.showLicenseWatermark=(0,k.shouldShowValidationUI)(w.packageMetadata),n}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.props.value?this.props.value:this.view?this.view.state.doc:this.props.defaultContent||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentElement",{get:function(){return this._contentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"view",{get:function(){return this._view},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.iframe&&b.firefox||this.initialize()},t.prototype.componentDidUpdate=function(e){var t=this.props.value,n=this.view;void 0!==t&&n&&((0,y.updateEditorValue)(n,t,e.value,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},t.prototype.componentWillUnmount=function(){this.view&&this.view.destroy(),this._view=void 0;var e=this.iframe&&this.iframe.contentWindow;if(e){this._contentElement&&this._contentElement.parentNode&&this._contentElement.parentNode.removeChild(this._contentElement);for(var t=e.document.head;t&&t.firstChild;)t.removeChild(t.firstChild)}},t.prototype.render=function(){var e=this,t=this.props,n=t.tools,o=void 0===n?[]:n,r=t.defaultEditMode,i=void 0===r?"iframe":r,a=t.preserveWhitespace,l=void 0===a?"full":a,d=t.style,p=t.className,h=(0,M.provideLocalizationService)(this);this.view&&(g.editorPropsKey.getState(this.view.state).preserveWhitespace=l);var f=this.props.contentStyle;void 0===f&&void 0===(d||{}).height&&(f={height:"300px"});var v=o.map((function(t,n){return Array.isArray(t)?s.createElement(c.ButtonGroup,{key:n},t.map(e.renderTool,n)):e.renderTool(t,n)}));return s.createElement("div",{ref:function(t){return e._element=t},className:(0,u.classNames)("k-editor",p,{"k-editor-resizable":this.props.resizable}),dir:this.props.dir,style:d},v.length>0&&s.createElement(c.Toolbar,{className:"k-editor-toolbar",keyboardNavigation:this.props.keyboardNavigation},v),"iframe"===i?s.createElement("div",{className:"k-editor-content"},s.createElement("iframe",{onLoad:b.firefox?function(){e.initialize()}:void 0,ref:function(t){return e.iframe=t},frameBorder:"0",title:h.toLanguageString(I.keys.iframeTitle,I.messages[I.keys.iframeTitle]),style:f,className:"k-iframe"})):s.createElement("div",{style:f,className:"k-editor-content"},s.createElement("div",{ref:function(t){return e._contentElement=t},suppressContentEditableWarning:!0,role:"textbox","aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-label":this.props.ariaLabel})),this.renderDialog(m.EditorDialogs.InsertLinkDialog,x,"linkDialog"),this.showLicenseWatermark&&s.createElement(k.WatermarkOverlay,null))},t.prototype.initialize=function(){var e=this,t=this.iframe&&this.iframe.contentWindow;if(t){var n=t.document;[h.defaultStyle,h.tablesStyles,"rtl"===this.props.dir?h.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 s=this.props.preserveWhitespace,l=void 0===s?"full":s,u=[new d.Plugin({view:function(){return{update:e.updateTools}},key:new d.PluginKey("toolbar-tools-update-plugin")}),new d.Plugin({filterTransaction:this.filterTransaction,key:new d.PluginKey("onExecute-event-plugin")}),new d.Plugin({key:g.editorPropsKey,state:{init:function(){return{preserveWhitespace:l}},apply:function(e,t){return t}}}),(0,d.spacesFix)(),(0,d.caretColor)(),(0,d.history)(),(0,d.dropCursor)(),(0,d.gapCursor)(),(0,d.tableEditing)(),(0,d.cspFix)()],f=i(i({},v.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:z,italic:C,underline:S}})),{"Mod-k":function(){var t=e.state.linkDialog,n=e.view;if(n){var o=n.state,r=o.selection.empty,i=(0,d.getMark)(o,o.schema.marks[x.mark]);t||r&&!i||e.setState({linkDialog:!0})}return!t},"Alt-F10":function(){var t,n=null===(t=e.element)||void 0===t?void 0:t.querySelector(".k-toolbar");if(n){var o=n.querySelector(c.toolbarButtons.join(","));if(o)return o.focus(),!0}return!1}}),m=this.props,y=m.defaultContent,b=void 0===y?"":y,w=m.value,k=m.onMount,I=w&&"string"!=typeof w?w:v.EditorUtils.createDocument(new d.Schema({nodes:p.nodes,marks:p.marks}),w||b,{preserveWhitespace:l}),M={state:d.EditorState.create({plugins:a(a([],u,!0),[(0,d.keymap)(f),(0,d.keymap)(d.baseKeymap)],!1),doc:I}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste},handleDrop:function(e,t,n,o){var r=!1;return n.content.nodesBetween(0,n.content.size,(function(e){r=r||"table_caption_external"===e.type.name})),r}},E={plugins:u,shortcuts:f,target:this,viewProps:M,dom:r},O=this._view=k&&k.call(void 0,E)||new d.EditorView({mount:r},M);this.setState({view:O})}},t.propTypes={defaultContent:l.string,value:l.oneOfType([l.object,l.string]),defaultEditMode:l.oneOf(["iframe","div"]),contentStyle:l.object,dir:l.string,className:l.string,ariaDescribedBy:l.string,ariaLabelledBy:l.string,ariaLabel:l.string,style:l.object,tools:l.arrayOf(l.any),keyboardNavigation:l.bool,resizable:l.bool,preserveWhitespace:l.oneOf([!0,!1,"full"]),onMount:l.func,onFocus:l.func,onBlur:l.func,onChange:l.func,onPasteHtml:l.func,onExecute:l.func},t}(s.Component);t.Editor=E,(0,M.registerForLocalization)(E)},3605:(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\n.k-editor-resize-wrap-element {\n display: inline-block;\n position: relative;\n}\n\n.ProseMirror .row-resize-handle {\n position: absolute;\n right: 0; left: 0; bottom: 0;\n transform: translate(0, 50%);\n height: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\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.ProseMirror.resize-cursor-vertical {\n cursor: sn-resize;\n cursor: row-resize;\n}\n\n.k-editor-resize-wrap-element table td p,\n.k-editor-resize-wrap-element table th p {\n margin: 0 auto;\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 /* 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 }"},2346:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var o=n(2696);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return o.marks}}),Object.defineProperty(t,"nodes",{enumerable:!0,get:function(){return o.nodes}})},4394:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0;var r=n(2696),i=n(2804),a=i.EditorToolsSettings.bold,s=i.EditorToolsSettings.underline,l=i.EditorToolsSettings.italic,c="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(e){var t=(0,r.chainCommands)(r.exitCode,(function(t,n){var o=e&&e.types&&e.types.hardBreak||"hard_break",r=t.schema.nodes[o];return n&&n(t.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",i=e&&e.toolsSettings||{};return o(o(o(o({"Mod-b":function(e,t){return(0,r.toggleInlineFormat)(i.bold||a)(e,t)},"Mod-i":function(e,t){return(0,r.toggleInlineFormat)(i.italic||l)(e,t)},"Mod-u":function(e,t){return(0,r.toggleInlineFormat)(i.underline||s)(e,t)},"Mod-z":r.undo,"Shift-Mod-z":r.redo},o({},c?{}:{"Mod-y":r.redo})),{Backspace:r.undoInputRule,"Mod-Enter":t,"Shift-Enter":t}),o({},c?{"Ctrl-Enter":t}:{})),{Enter:function(e,t){return(0,r.splitListItem)(e.schema.nodes[n])(e,t)},Tab:(0,r.goToNextCell)(1),"Shift-Tab":(0,r.goToNextCell)(-1)})}},2804:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=t.listsTypes=void 0;var i,a,s=n(3364),l=n(8696),c=n(2696);t.listsTypes=o({},c.indentRules.listsTypes),i=t.EditorToolsSettings||(t.EditorToolsSettings={}),a={type:"button"},i.bold=o(o({},c.bold),{props:o({icon:"bold",svgIcon:l.boldIcon},a),messages:{title:s.keys.bold},commandName:"Bold"}),i.italic=o(o({},c.italic),{props:o({icon:"italic",svgIcon:l.italicIcon},a),messages:{title:s.keys.italic},commandName:"Italic"}),i.underline=o(o({},c.underline),{props:o({icon:"underline",svgIcon:l.underlineIcon},a),messages:{title:s.keys.underline},commandName:"Underline"}),i.strikethrough=o(o({},c.strikethrough),{props:o({icon:"strikethrough",svgIcon:l.strikethroughIcon},a),messages:{title:s.keys.strikethrough},commandName:"Strikethrough"}),i.subscript=o(o({},c.subscript),{props:o({icon:"subscript",svgIcon:l.subscriptIcon},a),messages:{title:s.keys.subscript},commandName:"Subscript"}),i.superscript=o(o({},c.superscript),{props:o({icon:"supscript",svgIcon:l.supscriptIcon},a),messages:{title:s.keys.superscript},commandName:"Superscript"}),i.link=o(o({},c.link),{props:o({icon:"link",svgIcon:l.linkIcon},a),messages:{insertHyperlink:s.keys.insertHyperlink,insertHyperlinkDialogTitle:s.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:s.keys.insertHyperlinkAddress,insertHyperlinkTitle:s.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:s.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:s.keys.insertHyperlinkCancel,insertHyperlinkInsert:s.keys.insertHyperlinkInsert},commandName:"Link"}),i.insertFile=o(o({},c.link),{props:o({icon:"file-add",svgIcon:l.fileAddIcon},a),messages:{insertHyperlink:s.keys.insertFile,insertHyperlinkDialogTitle:s.keys.insertFileDialogTitle,insertHyperlinkAddress:s.keys.insertFileAddress,insertHyperlinkTitle:s.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:s.keys.insertFileCancel,insertHyperlinkInsert:s.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),i.insertTable={props:o({icon:"table-add",svgIcon:l.tableAddIcon},a),messages:{createTable:s.keys.createTable,createTableHint:s.keys.createTableHint},commandName:"InsertTable"},i.addRowBefore={props:o({icon:"table-row-insert-above",svgIcon:l.tableRowInsertAboveIcon},a),messages:{title:s.keys.addRowBefore},commandName:"AddRowBefore"},i.addRowAfter={props:o({icon:"table-row-insert-below",svgIcon:l.tableRowInsertBelowIcon},a),messages:{title:s.keys.addRowAfter},commandName:"AddRowAfter"},i.addColumnBefore={props:o({icon:"table-column-insert-left",svgIcon:l.tableColumnInsertLeftIcon},a),messages:{title:s.keys.addColumnBefore},commandName:"AddColumnBefore"},i.addColumnAfter={props:o({icon:"table-column-insert-right",svgIcon:l.tableColumnInsertRightIcon},a),messages:{title:s.keys.addColumnAfter},commandName:"AddColumnAfter"},i.deleteRow={props:o({icon:"table-row-delete",svgIcon:l.tableRowDeleteIcon},a),messages:{title:s.keys.deleteRow},commandName:"DeleteRow"},i.deleteColumn={props:o({icon:"table-column-delete",svgIcon:l.tableColumnDeleteIcon},a),messages:{title:s.keys.deleteColumn},commandName:"DeleteColumn"},i.deleteTable={props:o({icon:"table-delete",svgIcon:l.tableDeleteIcon},a),messages:{title:s.keys.deleteTable},commandName:"DeleteTable"},i.mergeCells={props:o({icon:"cells-merge",svgIcon:l.cellsMergeIcon},a),messages:{title:s.keys.mergeCells},commandName:"MergeCells"},i.splitCell={props:o({icon:"cell-split-horizontally",svgIcon:l.cellSplitHorizontallyIcon},a),messages:{title:s.keys.splitCell},commandName:"SplitCell"},i.print={props:o({icon:"print",svgIcon:l.printIcon},a),messages:{title:s.keys.print}},i.selectAll={props:o({icon:"select-all",svgIcon:l.selectAllIcon},a),messages:{title:s.keys.selectAll}},i.pdf={props:o({icon:"file-pdf",svgIcon:l.filePdfIcon},a),messages:{title:s.keys.pdf}},i.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},i.cleanFormatting={props:o({icon:"clear-css",svgIcon:l.clearCssIcon},a),messages:{title:s.keys.cleanFormatting},commandName:"CleanFormatting"},i.image={node:"image",props:o({icon:"image",svgIcon:l.imageIcon},a),messages:{insertImage:s.keys.insertImage,insertImageDialogTitle:s.keys.insertImageDialogTitle,insertImageAddress:s.keys.insertImageAddress,insertImageTitle:s.keys.insertImageTitle,insertImageAltText:s.keys.insertImageAltText,insertImageWidth:s.keys.insertImageWidth,insertImageHeight:s.keys.insertImageHeight,insertImageCancel:s.keys.insertImageCancel,insertImageInsert:s.keys.insertImageInsert},commandName:"InsertImage"},i.viewHtml={props:o({icon:"code",svgIcon:l.codeIcon},a),messages:{viewHtml:s.keys.viewHtml,viewHtmlDialogTitle:s.keys.viewHtmlDialogTitle,viewHtmlCancel:s.keys.viewHtmlCancel,viewHtmlUpdate:s.keys.viewHtmlUpdate},commandName:"SetContent"},i.findAndReplace={props:o({icon:"find",svgIcon:l.binocularsIcon},a),messages:{findReplaceToolTitle:s.keys.findReplaceToolTitle,findReplaceDialogTitle:s.keys.findReplaceDialogTitle,findReplaceTabFind:s.keys.findReplaceTabFind,findReplaceTabReplace:s.keys.findReplaceTabReplace,findReplaceFindWhat:s.keys.findReplaceFindWhat,findReplaceReplaceWith:s.keys.findReplaceReplaceWith,findReplaceReplace:s.keys.findReplaceReplace,findReplaceReplaceAll:s.keys.findReplaceReplaceAll,findReplaceMatchCase:s.keys.findReplaceMatchCase,findReplaceMatchWord:s.keys.findReplaceMatchWord,findReplaceMatchCyclic:s.keys.findReplaceMatchCyclic,findReplaceUseRegExp:s.keys.findReplaceUseRegExp,findReplacePrevMatch:s.keys.findReplacePrevMatch,findReplaceNextMatch:s.keys.findReplaceNextMatch,findReplaceMatches:s.keys.findReplaceMatches}},i.unlink=o(o({},c.link),{props:o({icon:"unlink",svgIcon:l.unlinkIcon},a),messages:{title:s.keys.unlink},commandName:"Unlink"}),i.undo={props:o({icon:"undo",svgIcon:l.undoIcon},a),messages:{title:s.keys.undo},commandName:"Undo"},i.redo={props:o({icon:"redo",svgIcon:l.redoIcon},a),messages:{title:s.keys.redo},commandName:"Redo"},i.fontSize={style:"font-size",defaultItem:{text:s.messages[s.keys.fontSize],value:"",localizationKey:s.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"},i.fontName={style:"font-family",defaultItem:{text:s.messages[s.keys.fontName],value:"",localizationKey:s.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"},i.formatBlock={defaultItem:{text:s.messages[s.keys.format],value:"",localizationKey:s.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"},i.foreColor={style:"color",colorPickerProps:{icon:"foreground-color",svgIcon:l.foregroundColorIcon,view:"palette",title:s.keys.foregroundColor,ariaLabel:s.keys.foreColorLabel},commandName:"ForeColor"},i.backColor={style:"background-color",colorPickerProps:{icon:"droplet",svgIcon:l.dropletIcon,view:"palette",title:s.keys.backgroundColor,ariaLabel:s.keys.backColorLabel},commandName:"BackColor"},i.alignLeft={actions:r([],c.alignLeftRules,!0),props:o({icon:"align-left",svgIcon:l.alignLeftIcon},a),messages:{title:s.keys.alignLeft},commandName:"AlignLeft"},i.alignRight={actions:r([],c.alignRightRules,!0),props:o({icon:"align-right",svgIcon:l.alignRightIcon},a),messages:{title:s.keys.alignRight},commandName:"AlignRight"},i.alignCenter={actions:r([],c.alignCenterRules,!0),props:o({icon:"align-center",svgIcon:l.alignCenterIcon},a),messages:{title:s.keys.alignCenter},commandName:"AlignCenter"},i.alignJustify={actions:r([],c.alignJustifyRules,!0),props:o({icon:"align-justify",svgIcon:l.alignJustifyIcon},a),messages:{title:s.keys.alignJustify},commandName:"AlignJustify"},i.alignRemove={actions:r([],c.alignRemoveRules,!0),props:o({icon:"align-remove",svgIcon:l.alignRemoveIcon},a),messages:{},commandName:"AlignRemove"},i.indent={actions:c.indentRules.nodes,listsTypes:t.listsTypes,props:o({icon:"indent",svgIcon:l.indentIcon},a),messages:{title:s.keys.indent},commandName:"Indent"},i.outdent={actions:c.outdentRules.nodes,listsTypes:t.listsTypes,props:o({icon:"outdent",svgIcon:l.outdentIcon},a),messages:{title:s.keys.outdent},commandName:"Outdent"},i.orderedList={listType:t.listsTypes.orderedList,props:o({icon:"list-ordered",svgIcon:l.listOrderedIcon},a),messages:{title:s.keys.orderedList},commandName:"OrderedList",types:o({},t.listsTypes)},i.bulletList={listType:t.listsTypes.bulletList,props:o({icon:"list-unordered",svgIcon:l.listUnorderedIcon},a),messages:{title:s.keys.bulletList},commandName:"UnorderedList",types:o({},t.listsTypes)}},9953:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialog=void 0;var a=n(3899),s=n(2888),l=n(1959),c=n(4611),u=n(499),d=n(3364),p=n(2804),h=n(2226),f=n(2696),m=n(1262),v=n(5603),g=n(1448),y=n(8696),b=p.EditorToolsSettings.findAndReplace,w=function(e){function t(t){var n=e.call(this,t)||this;return n.onTabSelect=function(e){n.setState({selectedTab:e.selected})},n.onClose=function(){var e=n.props.view,t=e.state,o=t.tr.setSelection(f.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(o)),e.focus(),n.props.onClose.call(void 0)},n.matchesMessage=function(e){var t=n.state.matches,o=n.state.nextMatch,r=0,i=0;if(t&&o){var a=t.findIndex((function(e){return e.eq(o)}));r=-1===a?t.length:a+1,i=t.length}return(0,h.formatString)(e,r,i)},n.onFindNext=function(){n.onFind()},n.onFindPrev=function(){n.onFind(!0)},n.onFind=function(e){void 0===e&&(e=!1);var t=n.props.view,o=n.state,r=o.searchText,i=o.matchCase,a=o.matchCyclic,s={text:r,matchWord:o.matchWord,matchCase:i,useRegExp:o.useRegExp,backward:e,matchCyclic:a},l=(0,f.find)(t.state,s);if(l){var c=t.state.tr.setSelection(l);c.scrollIntoView(),t.updateState(t.state.apply(c)),n.setState({nextMatch:l})}},n.onReplace=function(){var e=n.props.view,t=e.state.selection,o=n.state.replaceText;if(!t.empty){var r=t.from,i=r+o.length,a=(0,f.replace)(t,o,e.state.tr);a.setSelection(f.TextSelection.create(a.doc,r,i)),a.scrollIntoView(),e.dispatch(a),n.setNextState({})}},n.onReplaceAll=function(){var e=n.props.view,t=n.state,o=t.searchText,r=t.replaceText,i=t.matchCase,a={text:o,matchWord:t.matchWord,matchCase:i,useRegExp:t.useRegExp},s=(0,f.replaceAll)(e.state,r,a);s&&e.dispatch(s),n.setNextState({})},n.onKeyDown=function(e){13===e.keyCode?n.onFindNext():27===e.keyCode&&n.onClose()},n.onMatchCaseChecked=function(e){return n.setNextState({matchCase:e.value})},n.onMatchWordChecked=function(e){return n.setNextState({matchWord:e.value})},n.onMatchCyclicChecked=function(e){return n.setNextState({matchCyclic:e.value})},n.onUseRegExpChecked=function(e){return n.setNextState({useRegExp:e.value})},n.onSearchChange=function(e){return n.setNextState({searchText:e.target.value})},n.onReplaceChange=function(e){return n.setNextState({replaceText:e.target.value})},n.setNextState=function(e){var t=i(i(i({},n.state),e),{matches:void 0,nextMatch:void 0}),o=n.props.view;if(t.searchText){var r=t.searchText,a=t.matchWord,s=t.matchCase,l=t.useRegExp,c=t.matchCyclic,u={text:r,matchWord:a,matchCase:s,useRegExp:l},d=o.state.selection,p=(0,f.findAll)(o.state.doc,u),h=!n.state.searchText&&p[0]||p.find((function(e){return e.from>=d.from}))||c&&p[0]||void 0;n.setState(i(i({},t),{matches:p,nextMatch:h}))}else n.setState(t)},n.state={selectedTab:0,searchText:(0,f.selectedLineTextOnly)(t.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1},n}return r(t,e),Object.defineProperty(t.prototype,"settings",{get:function(){return this.props.settings||b},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n=this.props.view,o=this.state,r=o.matches,i=void 0===r?[]:r,a=o.nextMatch;if(t.nextMatch!==a){var s=n.state,l=s.tr,c=[];i.forEach((function(e){c.push({from:e.from,to:e.to,attrs:{class:a&&e.eq(a)?"k-text-selected":"k-text-highlighted"}})})),l.setMeta(f.textHighlightKey,c),l.setSelection(a||f.TextSelection.create(s.doc,s.selection.from)),n.dispatch(l)}},t.prototype.render=function(){var e=this,t=(0,u.provideLocalizationService)(this),n=this.settings.messages,o=n.findReplaceDialogTitle,r=n.findReplaceTabFind,i=n.findReplaceTabReplace,p=n.findReplaceFindWhat,h=n.findReplaceReplaceWith,f=n.findReplaceReplace,b=n.findReplaceReplaceAll,w=n.findReplaceMatchCase,k=n.findReplaceMatchWord,x=n.findReplaceMatchCyclic,z=n.findReplaceUseRegExp,C=n.findReplacePrevMatch,S=n.findReplaceNextMatch,I=n.findReplaceMatches,M=this.state,E=M.matchCase,O=M.matchWord,H=M.matchCyclic,N=M.useRegExp,P=M.searchText,V=M.replaceText,T=M.nextMatch,R=a.createElement("div",{className:"k-search-options"},a.createElement("span",null,a.createElement(v.Checkbox,{id:"match-case",checked:E,onChange:this.onMatchCaseChecked}),a.createElement("label",{htmlFor:"match-case",className:"k-checkbox-label"},t.toLanguageString(w,d.messages[w]))),a.createElement("span",null,a.createElement(v.Checkbox,{id:"match-whole",checked:O,onChange:this.onMatchWordChecked}),a.createElement("label",{htmlFor:"match-whole",className:"k-checkbox-label"},t.toLanguageString(k,d.messages[k]))),a.createElement("span",null,a.createElement(v.Checkbox,{id:"match-cyclic",checked:H,onChange:this.onMatchCyclicChecked}),a.createElement("label",{htmlFor:"match-cyclic",className:"k-checkbox-label"},t.toLanguageString(x,d.messages[x]))),a.createElement("span",null,a.createElement(v.Checkbox,{id:"regular-expression",checked:N,onChange:this.onUseRegExpChecked}),a.createElement("label",{htmlFor:"regular-expression",className:"k-checkbox-label"},t.toLanguageString(z,d.messages[z])))),D=a.createElement("div",{className:"k-matches-container"},a.createElement(s.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindPrev},a.createElement(m.IconWrap,{name:"chevron-left",icon:y.chevronLeftIcon}),t.toLanguageString(C,d.messages[C])),a.createElement("span",null,this.matchesMessage(t.toLanguageString(I,d.messages[I]))),a.createElement(s.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindNext},t.toLanguageString(S,d.messages[S]),a.createElement(m.IconWrap,{name:"chevron-right",icon:y.chevronRightIcon}))),B=a.createElement(g.Form,{render:function(){return a.createElement(g.FormElement,{horizontal:!0},a.createElement(g.FieldWrapper,null,a.createElement("label",{htmlFor:"findWhat",className:"k-form-label"},t.toLanguageString(p,d.messages[p])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(v.Input,{id:"findWhat",type:"text",value:P,onChange:e.onSearchChange,onFocus:e.onSearchChange,onKeyDown:e.onKeyDown,autoFocus:!0}))))}}),A=a.createElement(g.Form,{render:function(){return a.createElement(g.FormElement,{horizontal:!0},a.createElement(g.FieldWrapper,null,a.createElement("label",{htmlFor:"replaceWith",className:"k-form-label"},t.toLanguageString(h,d.messages[h])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(v.Input,{id:"replaceWith",type:"text",value:V,onChange:e.onReplaceChange}))))}});return a.createElement(l.Window,{title:t.toLanguageString(o,d.messages[o]),onClose:this.onClose,style:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null}},a.createElement(c.TabStrip,{selected:this.state.selectedTab,className:"k-editor-find-replace",onSelect:this.onTabSelect,animation:!1},a.createElement(c.TabStripTab,{title:t.toLanguageString(r,d.messages[r])},B,R,D),a.createElement(c.TabStripTab,{title:t.toLanguageString(i,d.messages[i])},B,A,a.createElement("div",{className:"k-actions k-hstack k-justify-content-end"},a.createElement(s.Button,{disabled:!Boolean(T),onClick:this.onReplace},t.toLanguageString(f,d.messages[f])),a.createElement(s.Button,{disabled:!Boolean(T),onClick:this.onReplaceAll},t.toLanguageString(b,d.messages[b]))),R,D)))},t}(a.Component);t.FindAndReplaceDialog=w,(0,u.registerForLocalization)(w)},3856:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialog=void 0;var a=n(3899),s=n(1959),l=n(2888),c=n(2696),u=n(499),d=n(3364),p=n(5603),h=n(1448),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.src=null,t.altText=null,t.title=null,t.width=null,t.height=null,t.onClose=function(){t.props.view.focus(),t.props.onClose()},t.onInsert=function(){var e=t.props,n=e.view,o=e.settings,r=n.state.schema.nodes[o.node],i={src:t.src?t.src.value:null,title:t.title?t.title.value:null,alt:t.altText?t.altText.value:null,width:t.width?t.width.value:null,height:t.height?t.height.value:null},a=Object.keys(i).filter((function(e){return null!==i[e]&&""!==i[e]})).reduce((function(e,t){var n;return Object.assign(e,((n={})[t]=i[t],n))}),{}),s=r.createAndFill(a);s&&(0,c.insertNode)(s,!0)(n.state,(function(e){return n.dispatch(e.setMeta("commandName",o.commandName).setMeta("args",a))})),t.onClose()},t}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.view,o=t.settings,r=t.dir,f=t.render,m=o.messages,v=m.insertImageDialogTitle,g=m.insertImageAddress,y=m.insertImageTitle,b=m.insertImageAltText,w=m.insertImageWidth,k=m.insertImageHeight,x=m.insertImageCancel,z=m.insertImageInsert,C=(0,u.provideLocalizationService)(this),S=n&&n.state,I={};S&&S.selection instanceof c.NodeSelection&&S.selection.node.type===S.schema.nodes[o.node]&&(I=S.selection.node.attrs);var M=a.createElement(h.Form,{render:function(){return a.createElement(h.FormElement,{horizontal:!0},a.createElement(h.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},C.toLanguageString(g,d.messages[g])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(p.Input,{type:"text",id:"k-editor-image-url",defaultValue:I.src,ref:function(t){return e.src=t},autoFocus:!0}))),a.createElement(h.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},C.toLanguageString(b,d.messages[b])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(p.Input,{type:"text",id:"k-editor-image-alt",defaultValue:I.alt,ref:function(t){return e.altText=t}}))),a.createElement(h.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-image-title",className:"k-form-label"},C.toLanguageString(y,d.messages[y])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(p.Input,{type:"text",id:"k-editor-image-title",defaultValue:I.title,ref:function(t){return e.title=t}}))),a.createElement(h.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-image-width",className:"k-form-label"},C.toLanguageString(w,d.messages[w])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(p.Input,{type:"text",id:"k-editor-image-width",defaultValue:I.width,ref:function(t){return e.width=t}}))),a.createElement(h.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-image-height",className:"k-form-label"},C.toLanguageString(k,d.messages[k])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(p.Input,{id:"k-editor-image-height",defaultValue:I.height,ref:function(t){return e.height=t}}))))}}),E=[a.createElement(l.Button,{onClick:this.onClose,dir:r,key:"cancel"},C.toLanguageString(x,d.messages[x])),a.createElement(l.Button,{onClick:this.onInsert,themeColor:"primary",dir:r,key:"insert"},C.toLanguageString(z,d.messages[z]))],O=a.createElement(s.Window,{initialWidth:500,initialHeight:350,className:"k-editor-window",title:C.toLanguageString(v,d.messages[v]),onClose:this.onClose,key:"dialog",style:"rtl"===r?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},M,a.createElement.apply(a,i([s.WindowActionsBar,null],E,!1)));return f?f(O,{content:M,actionButtons:E}):O},t}(a.Component);t.InsertImageDialog=f,(0,u.registerForLocalization)(f)},4150:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialog=void 0;var a=n(3899),s=n(1959),l=n(2888),c=n(5603),u=n(1448),d=n(2696),p=n(499),h=n(3364),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.href=null,t.title=null,t.target=null,t.onClose=function(){t.props.view.focus(),t.props.onClose()},t.onInsert=function(){var e=t.props.view,n=t.props.settings.mark,o={href:t.href?t.href.value:void 0,title:t.title?t.title.value:void 0,target:t.target&&t.target.element&&t.target.element.checked?"_blank":void 0};(0,d.applyLink)({mark:n,attrs:o},t.props.settings.commandName)(e.state,e.dispatch),t.onClose()},t}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.view,o=t.settings,r=t.dir,f=t.render,m=(0,p.provideLocalizationService)(this),v=o.messages,g=v.insertHyperlinkDialogTitle,y=v.insertHyperlinkAddress,b=v.insertHyperlinkTitle,w=v.insertHyperlinkNewWindow,k=v.insertHyperlinkCancel,x=v.insertHyperlinkInsert,z=!!n&&(0,d.getMark)(n.state,n.state.schema.marks[o.mark]),C=a.createElement(u.Form,{render:function(){return a.createElement(u.FormElement,{horizontal:!0},a.createElement(u.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-link-url",className:"k-form-label"},m.toLanguageString(y,h.messages[y])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.Input,{type:"text",id:"k-editor-link-url",ref:function(t){return e.href=t},defaultValue:z&&z.attrs.href||void 0,autoFocus:!0}))),a.createElement(u.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-link-text",className:"k-form-label"},m.toLanguageString(b,h.messages[b])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.Input,{type:"text",id:"k-editor-link-text",ref:function(t){return e.title=t},defaultValue:z&&z.attrs.title||void 0}))),!1!==o.linkTarget&&a.createElement(u.FieldWrapper,null,a.createElement("label",{htmlFor:"k-editor-link-target",className:"k-checkbox-label"},a.createElement(c.Checkbox,{id:"k-editor-link-target",ref:function(t){return e.target=t},defaultChecked:z&&!!z.attrs.target||void 0}),m.toLanguageString(w,h.messages[w]))))}}),S=[a.createElement(l.Button,{onClick:this.onClose,dir:r,key:"cancel"},m.toLanguageString(k,h.messages[k])),a.createElement(l.Button,{onClick:this.onInsert,themeColor:"primary",dir:r,key:"insert"},m.toLanguageString(x,h.messages[x]))],I=a.createElement(s.Window,{initialWidth:450,initialHeight:250,className:"k-editor-window",title:m.toLanguageString(g,h.messages[g]),onClose:this.onClose,style:"rtl"===r?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},C,a.createElement.apply(a,i([s.WindowActionsBar,null],S,!1)));return f?f(I,{content:C,actionButtons:S}):I},t}(a.Component);t.InsertLinkDialog=f,(0,p.registerForLocalization)(f)},3695:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EditorDialogs=void 0;var i=n(4150),a=n(3856),s=n(5391),l=n(9953);!function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(i.InsertLinkDialog);e.InsertLinkDialog=t;var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(a.InsertImageDialog);e.InsertImageDialog=n;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(s.ViewHtmlDialog);e.ViewHtmlDialog=o;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(l.FindAndReplaceDialog);e.FindAndReplaceDialog=c}(t.EditorDialogs||(t.EditorDialogs={}))},5391:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialog=void 0;var a=n(3899),s=n(1959),l=n(2888),c=n(2696),u=n(499),d=n(3364),p=n(580),h=n(5603),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.htmlArea=null,t.textAreaRef=function(e){t.htmlArea=e;var n=e&&e.element.current;n&&(n.style.resize="none")},t.onUpdate=function(){var e=t.props,n=e.view,o=e.settings,r=(0,c.trimWhitespace)(t.htmlArea&&t.htmlArea.value||""),i=p.editorPropsKey.getState(n.state).preserveWhitespace;(0,c.setHtml)(r,o.commandName,{preserveWhitespace:i})(n.state,n.dispatch),t.onClose()},t.onClose=function(){t.props.view.focus(),t.props.onClose()},t}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.view,n=e.settings,o=e.dir,r=e.render,p=(0,u.provideLocalizationService)(this),f=n.messages,m=f.viewHtmlDialogTitle,v=f.viewHtmlCancel,g=f.viewHtmlUpdate,y=a.createElement(h.TextArea,{className:"k-editor-textarea",defaultValue:(0,c.indentHtml)((0,c.getHtml)(t.state)),autoFocus:!0,autoSize:!1,ref:this.textAreaRef}),b=[a.createElement(l.Button,{onClick:this.onClose,dir:o,key:"cancel"},p.toLanguageString(v,d.messages[v])),a.createElement(l.Button,{onClick:this.onUpdate,themeColor:"primary",dir:o,key:"update"},p.toLanguageString(g,d.messages[g]))],w=a.createElement(s.Window,{className:"k-editor-window",title:p.toLanguageString(m,d.messages[m]),onClose:this.onClose,key:"dialog",style:"rtl"===o?{textAlign:"right"}:void 0,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!0,initialHeight:400,initialWidth:500},y,a.createElement.apply(a,i([s.WindowActionsBar,null],b,!1)));return r?r(w,{content:y,actionButtons:b}):w},t}(a.Component);t.ViewHtmlDialog=f,(0,u.registerForLocalization)(f)},3364:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.messages=void 0;var o="editor.bold",r="editor.italic",i="editor.underline",a="editor.strikethrough",s="editor.subscript",l="editor.superscript",c="editor.hyperlink",u="editor.insertFile",d="editor.print",p="editor.selectAll",h="editor.cleanFormatting",f="editor.pdf",m="editor.foregroundColor",v="editor.backgroundColor",g="editor.createTable",y="editor.insertTableHint",b="editor.addRowBefore",w="editor.addRowAfter",k="editor.addColumnBefore",x="editor.addColumnAfter",z="editor.deleteRow",C="editor.deleteColumn",S="editor.deleteTable",I="editor.mergeCells",M="editor.splitCell",E="editor.hyperlink-dialog-title",O="editor.hyperlink-dialog-content-address",H="editor.hyperlink-dialog-content-title",N="editor.hyperlink-dialog-content-newwindow",P="editor.hyperlink-dialog-cancel",V="editor.hyperlink-dialog-insert",T="editor.insertfile-dialog-title",R="editor.insertfile-dialog-content-address",D="editor.insertfile-dialog-content-title",B="editor.insertfile-dialog-cancel",A="editor.insertfile-dialog-insert",L="editor.image",_="editor.image-dialog-title",F="editor.image-address",j="editor.image-title",K="editor.image-altText",W="editor.image-width",U="editor.image-height",q="editor.image-cancel",$="editor.image-insert",G="editor.viewHtml",Z="editor.viewHtml-dialog-title",Y="editor.viewHtml-cancel",J="editor.viewHtml-update",X="editor.unlink",Q="editor.undo",ee="editor.redo",te="editor.fontSize",ne="editor.fontName",oe="editor.format",re="editor.alignLeft",ie="editor.alignRight",ae="editor.alignCenter",se="editor.alignJustify",le="editor.indent",ce="editor.outdent",ue="editor.orderedList",de="editor.bulletList",pe="editor.findReplace-tool-title",he="editor.findReplace-dialog-title",fe="editor.findReplace-tab-find",me="editor.findReplace-tab-replace",ve="editor.findReplace-findWhat",ge="editor.findReplace-replaceWith",ye="editor.findReplace-replace",be="editor.findReplace-replaceAll",we="editor.findReplace-matchCase",ke="editor.findReplace-matchWord",xe="editor.findReplace-matchCyclic",ze="editor.findReplace-useRegExp",Ce="editor.findReplace-prevMatch",Se="editor.findReplace-nextMatch",Ie="editor.findReplace-matches",Me="editor.iframeTitle",Ee="editorTools.foreColorLabel",Oe="editorTools.backColorLabel",He="editor.cellProperties",Ne="editor.cellPropertiesLeftTop",Pe="editor.cellPropertiesCenterTop",Ve="editor.cellPropertiesRightTop",Te="editor.cellPropertiesLeftMiddle",Re="editor.cellPropertiesCenterMiddle",De="editor.cellPropertiesRightMiddle",Be="editor.cellPropertiesLeftBottom",Ae="editor.cellPropertiesCenterBottom",Le="editor.cellPropertiesRightBottom",_e="editor.cellPropertiesNoAlignment",Fe="editor.cellPropertiesWrap",je="editor.cellPropertiesFitToCell",Ke="editor.cellPropertiesApplyToAllCells",We="editor.cellPropertiesWidth",Ue="editor.cellPropertiesApplyToColumn",qe="editor.cellPropertiesHeight",$e="editor.cellPropertiesApplyToRow",Ge="editor.cellPropertiesAlignment",Ze="editor.cellPropertiesTextControl",Ye="editor.cellPropertiesCellPadding",Je="editor.cellPropertiesBackground",Xe="editor.cellPropertiesBorderWidth",Qe="editor.cellPropertiesBorderColor",et="editor.cellPropertiesBorderStyle",tt="editor.cellPropertiesId",nt="editor.cellPropertiesCssClass",ot="editor.cellPropertiesSave",rt="editor.cellPropertiesCancel",it="editor.tableProperties",at="editor.tablePropertiesAlignLeft",st="editor.tablePropertiesAlignCenter",lt="editor.tablePropertiesAlignRight",ct="editor.tablePropertiesNoAlignment",ut="editor.tablePropertiesLeft",dt="editor.tablePropertiesCenter",pt="editor.tablePropertiesRight",ht="editor.tablePropertiesTop",ft="editor.tablePropertiesBottom",mt="editor.tablePropertiesNone",vt="editor.tablePropertiesUsingScopeAttribute",gt="editor.tablePropertiesUsingIdAttributes",yt="editor.tablePropertiesRows",bt="editor.tablePropertiesColumns",wt="editor.tablePropertiesWidth",kt="editor.tablePropertiesHeight",xt="editor.tablePropertiesPosition",zt="editor.tablePropertiesAlignment",Ct="editor.tablePropertiesCellSpacing",St="editor.tablePropertiesCellPadding",It="editor.tablePropertiesTableBackground",Mt="editor.tablePropertiesBorderWidth",Et="editor.tablePropertiesBorderColor",Ot="editor.tablePropertiesBorderStyle",Ht="editor.tablePropertiesCollapseBorders",Nt="editor.tablePropertiesID",Pt="editor.tablePropertiesCssClass",Vt="editor.tablePropertiesAccessibility",Tt="editor.tablePropertiesCaption",Rt="editor.tablePropertiesCaptionPosition",Dt="editor.tablePropertiesCaptionAlignment",Bt="editor.tablePropertiesHeaderRows",At="editor.tablePropertiesHeaderCols",Lt="editor.tablePropertiesAssociateHeaders",_t="editor.tablePropertiesGeneral",Ft="editor.tablePropertiesAdvanced",jt="editor.tablePropertiesSave",Kt="editor.tablePropertiesCancel",Wt="editor.borderStyleNone",Ut="editor.borderStyleSolid",qt="editor.borderStyleDotted",$t="editor.borderStyleDashed",Gt="editor.borderStyleDouble",Zt="editor.borderStyleGroove",Yt="editor.borderStyleRidge",Jt="editor.borderStyleInset",Xt="editor.borderStyleOutset",Qt="editor.borderStyleInitial",en="editor.borderStyleInherit",tn="editor.borderStyleHidden",nn="editor.sizeAuto";t.messages=((n={})[o]="Bold",n[r]="Italic",n[i]="Underline",n[a]="Strikethrough",n[s]="Subscript",n[l]="Superscript",n[X]="Remove hyperlink",n[Q]="Undo",n[ee]="Redo",n[te]="Font Size",n[ne]="Font Name",n[oe]="Format",n[re]="Align text left",n[ie]="Align text right",n[ae]="Center text",n[se]="Justify",n[le]="Indent",n[ce]="Outdent",n[ue]="Insert ordered list",n[de]="Insert unordered list",n[d]="Print",n[p]="Select All",n[h]="Clean formatting",n[f]="Export as PDF",n[m]="Color",n[v]="Background color",n[g]="Create a table",n[y]="Create a {0} x {1} table",n[b]="Add row above",n[w]="Add row below",n[k]="Add column on the left",n[x]="Add column on the right",n[z]="Delete row",n[C]="Delete column",n[S]="Delete table",n[I]="Merge cells",n[M]="Split cell",n[c]="Insert hyperlink",n[E]="Insert hyperlink",n[O]="Web address",n[H]="Title",n[N]="Open link in new window",n[P]="Cancel",n[V]="Insert",n[u]="Insert file",n[T]="Insert file",n[R]="Web address",n[D]="Title",n[B]="Cancel",n[A]="Insert",n[L]="Insert image",n[_]="Insert image",n[F]="Web address",n[j]="Title",n[K]="Alternate text",n[W]="Width (px)",n[U]="Height (px)",n[q]="Cancel",n[$]="Insert",n[G]="View HTML",n[Z]="View HTML",n[Y]="Cancel",n[J]="Update",n[pe]="Find and Replace",n[he]="Find and Replace",n[fe]="Find",n[me]="Replace",n[ve]="Find What:",n[ge]="Replace With",n[ye]="Replace",n[be]="Replace All",n[we]="Match Case",n[ke]="Match whole word only",n[xe]="Match cyclic (Wrap around)",n[ze]="Regular Expression",n[Ce]="Prev",n[Se]="Next",n[Ie]="{0} of {1} matches",n[Me]="Editable area. Press Alt + F10 for toolbar.",n[Ee]="Fore Color",n[Oe]="Back Color",n[He]="Cell properties",n[Ne]="Left Top",n[Pe]="Center Top",n[Ve]="Right Top",n[Te]="Left Middle",n[Re]="Center Middle",n[De]="Right Middle",n[Be]="Left Bottom",n[Ae]="Center Bottom",n[Le]="Right Bottom",n[_e]="No Alignment",n[Fe]="Wrap",n[je]="Fit to cell",n[Ke]="Apply to all cells",n[We]="Width",n[Ue]="apply to column",n[qe]="Height",n[$e]="apply to row",n[Ge]="Alignment",n[Ze]="Text control",n[Ye]="Cell padding",n[Je]="Background",n[Xe]="Border width",n[Qe]="Border color",n[et]="Border style",n[tt]="ID",n[nt]="CSS class",n[ot]="Save",n[rt]="Cancel",n[it]="Table properties",n[at]="Align Left",n[st]="Align Center",n[lt]="Align Right",n[ct]="No Alignment",n[ut]="Left",n[dt]="Center",n[pt]="Right",n[ht]="Top",n[ft]="Bottom",n[mt]="None",n[vt]="Using 'scope' attribute",n[gt]="Using 'id' attributes",n[yt]="Rows",n[bt]="Columns",n[wt]="Width",n[kt]="Height",n[xt]="Position",n[zt]="Alignment",n[Ct]="Cell spacing",n[St]="Cell padding",n[It]="Table background",n[Mt]="Border width",n[Et]="Border color",n[Ot]="Border style",n[Ht]="Collapse borders",n[Nt]="ID",n[Pt]="CSS class",n[Vt]="Accessibility",n[Tt]="Caption",n[Rt]="Position",n[Dt]="Alignment",n[Bt]="Header rows",n[At]="Header cols",n[Lt]="Associate headers",n[_t]="General",n[Ft]="Advanced",n[jt]="Save",n[Kt]="Cancel",n[Wt]="None",n[Ut]="Solid",n[qt]="Dotted",n[$t]="Dashed",n[Gt]="Double",n[Zt]="Groove",n[Yt]="Ridge",n[Jt]="Inset",n[Xt]="Outset",n[Qt]="Initial",n[en]="Inherit",n[tn]="Hidden",n[nn]="Auto",n),t.keys={bold:o,italic:r,underline:i,strikethrough:a,subscript:s,superscript:l,unlink:X,undo:Q,redo:ee,fontSize:te,fontName:ne,format:oe,alignLeft:re,alignRight:ie,alignCenter:ae,alignJustify:se,indent:le,outdent:ce,orderedList:ue,bulletList:de,print:d,selectAll:p,cleanFormatting:h,pdf:f,foregroundColor:m,backgroundColor:v,createTable:g,createTableHint:y,addRowBefore:b,addRowAfter:w,addColumnBefore:k,addColumnAfter:x,deleteRow:z,deleteColumn:C,deleteTable:S,mergeCells:I,splitCell:M,insertHyperlink:c,insertHyperlinkDialogTitle:E,insertHyperlinkAddress:O,insertHyperlinkTitle:H,insertHyperlinkNewWindow:N,insertHyperlinkCancel:P,insertHyperlinkInsert:V,insertFile:u,insertFileDialogTitle:T,insertFileAddress:R,insertFileTitle:D,insertFileCancel:B,insertFileInsert:A,insertImage:L,insertImageDialogTitle:_,insertImageAddress:F,insertImageTitle:j,insertImageAltText:K,insertImageWidth:W,insertImageHeight:U,insertImageCancel:q,insertImageInsert:$,viewHtml:G,viewHtmlDialogTitle:Z,viewHtmlCancel:Y,viewHtmlUpdate:J,findReplaceToolTitle:pe,findReplaceDialogTitle:he,findReplaceTabFind:fe,findReplaceTabReplace:me,findReplaceFindWhat:ve,findReplaceReplaceWith:ge,findReplaceReplace:ye,findReplaceReplaceAll:be,findReplaceMatchCase:we,findReplaceMatchWord:ke,findReplaceMatchCyclic:xe,findReplaceUseRegExp:ze,findReplacePrevMatch:Ce,findReplaceNextMatch:Se,findReplaceMatches:Ie,iframeTitle:Me,foreColorLabel:Ee,backColorLabel:Oe,cellProperties:He,cellPropertiesLeftTop:Ne,cellPropertiesCenterTop:Pe,cellPropertiesRightTop:Ve,cellPropertiesLeftMiddle:Te,cellPropertiesCenterMiddle:Re,cellPropertiesRightMiddle:De,cellPropertiesLeftBottom:Be,cellPropertiesCenterBottom:Ae,cellPropertiesRightBottom:Le,cellPropertiesNoAlignment:_e,cellPropertiesWrap:Fe,cellPropertiesFitToCell:je,cellPropertiesApplyToAllCells:Ke,cellPropertiesWidth:We,cellPropertiesApplyToColumn:Ue,cellPropertiesHeight:qe,cellPropertiesApplyToRow:$e,cellPropertiesAlignment:Ge,cellPropertiesTextControl:Ze,cellPropertiesCellPadding:Ye,cellPropertiesBackground:Je,cellPropertiesBorderWidth:Xe,cellPropertiesBorderColor:Qe,cellPropertiesBorderStyle:et,cellPropertiesId:tt,cellPropertiesCssClass:nt,cellPropertiesSave:ot,cellPropertiesCancel:rt,tableProperties:it,tablePropertiesAlignLeft:at,tablePropertiesAlignCenter:st,tablePropertiesAlignRight:lt,tablePropertiesNoAlignment:ct,tablePropertiesLeft:ut,tablePropertiesCenter:dt,tablePropertiesRight:pt,tablePropertiesTop:ht,tablePropertiesBottom:ft,tablePropertiesNone:mt,tablePropertiesUsingScopeAttribute:vt,tablePropertiesUsingIdAttributes:gt,tablePropertiesRows:yt,tablePropertiesColumns:bt,tablePropertiesWidth:wt,tablePropertiesHeight:kt,tablePropertiesPosition:xt,tablePropertiesAlignment:zt,tablePropertiesCellSpacing:Ct,tablePropertiesCellPadding:St,tablePropertiesTableBackground:It,tablePropertiesBorderWidth:Mt,tablePropertiesBorderColor:Et,tablePropertiesBorderStyle:Ot,tablePropertiesCollapseBorders:Ht,tablePropertiesId:Nt,tablePropertiesCssClass:Pt,tablePropertiesAccessibility:Vt,tablePropertiesCaption:Tt,tablePropertiesCaptionPosition:Rt,tablePropertiesCaptionAlignment:Dt,tablePropertiesHeaderRows:Bt,tablePropertiesHeaderCols:At,tablePropertiesAssociateHeaders:Lt,tablePropertiesGeneral:_t,tablePropertiesAdvanced:Ft,tablePropertiesSave:jt,tablePropertiesCancel:Kt,borderStyleNone:Wt,borderStyleSolid:Ut,borderStyleDotted:qt,borderStyleDashed:$t,borderStyleDouble:Gt,borderStyleGroove:Zt,borderStyleRidge:Yt,borderStyleInset:Jt,borderStyleOutset:Xt,borderStyleInitial:Qt,borderStyleInherit:en,borderStyleHidden:tn,sizeAuto:nn}},7363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-editor",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060534,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},7628:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.createAlignTool=void 0;var s=n(3899),l=n(2888),c=n(2804),u=n(2696),d=n(2226),p=n(499),h=n(3364),f=c.EditorToolsSettings.alignRemove;t.createAlignTool=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),c=n&&n.state,m=!!c&&(0,u.isAligned)(c,e.actions),v=m?f.actions:e.actions,g=m?f.commandName:e.commandName,y=(0,p.provideLocalizationService)(this),b=e.messages.title,w=s.createElement(l.Button,i({onClick:function(){return n&&(0,u.alignBlocks)(v,g)(n.state,n.dispatch)},selected:m,togglable:!0},d.onDownPreventDefault,{title:y.toLanguageString(b,h.messages[b])},e.props,r));return o?o.call(void 0,w,{view:n}):w},n}(s.Component);return(0,p.registerForLocalization)(t),t}},8631:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorTool=void 0;var r=n(3899),i=n(5603),a=n(2696),s=n(499),l=n(3364);t.ApplyColorTool=function(e){var t=e.view,n=e.style,c=e.colorPickerProps,u=e.commandName,d=c.title,p=c.ariaLabel,h=c.view,f=void 0===h?"palette":h,m=r.useCallback((function(e){t&&((0,a.applyInlineStyle)({style:n,value:e.value},u)(t.state,t.dispatch),"palette"===f&&t.focus())}),[t,n,f,u]);return r.createElement(i.ColorPicker,o({onChange:m,onActiveColorClick:m},c,{title:d?(0,s.useLocalization)().toLanguageString(d,l.messages[d]):d,ariaLabel:p?(0,s.useLocalization)().toLanguageString(p,l.messages[p]):p}))}},3280:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormatting=void 0;var i=n(3899),a=n(2888),s=n(499),l=n(2226),c=n(3364),u=n(2696),d=n(2804),p=n(1262),h=d.EditorToolsSettings.cleanFormatting,f=(0,u.cleanFormatting)();t.CleanFormatting=function(e){var t=e.view,n=e.render,u=e.settings,d=void 0===u?h:u,m=r(e,["view","render","settings"]),v=d.messages.title,g=!t||!f(t.state),y=i.useCallback((function(){t&&f(t.state,(function(e){e.setMeta("commandName",d.commandName),t.dispatch(e)}))}),[t]),b=i.createElement(a.Button,o({onClick:g?void 0:y,"aria-disabled":!!g||void 0,title:(0,s.useLocalization)().toLanguageString(v,c.messages[v])},l.onDownPreventDefault,d.props,m,{className:(0,p.classNames)(e.className,d.props.className,{"k-disabled":g})}));return n?n.call(void 0,b,{view:t}):b}},3037:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplace=void 0;var s=n(3899),l=n(2888),c=n(9953),u=n(2226),d=n(3364),p=n(2804),h=n(499),f=n(1262),m=p.EditorToolsSettings.findAndReplace,v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={showDialog:!1},t.onClose=function(){return t.setState({showDialog:!1})},t.onOpen=function(){return t.setState({showDialog:!0})},t}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.view,n=a(e,["view"]),o=m.props,r=(0,h.provideLocalizationService)(this),p=m.messages.findReplaceToolTitle,v=!t;return[s.createElement(l.Button,i({onClick:v?void 0:this.onOpen,"aria-disabled":!!v||void 0},u.onDownPreventDefault,{title:r.toLanguageString(p,d.messages[p]),key:"tool"},o,n,{className:(0,f.classNames)(n.className,o.className,{"k-disabled":v})})),this.state.showDialog&&t&&s.createElement(c.FindAndReplaceDialog,{view:t,onClose:this.onClose,dir:n.dir,key:"dialog"})]},t}(s.Component);t.FindAndReplace=v,(0,h.registerForLocalization)(v)},1403:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FontStyleToolNS=void 0;var s=n(3899),l=n(2831),c=n(2696),u=n(2226),d=n(499),p=n(3364);(t.FontStyleToolNS||(t.FontStyleToolNS={})).createStyleDropDownList=function(e){var t=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.onChange=function(t){var o=t.target.value,r=n.props.view,i=e.style;if(r){(0,c.applyInlineStyle)({style:i,value:o.value},e.commandName)(r.state,r.dispatch);var a=t.syntheticEvent;a&&"click"===a.type&&r.focus()}},n}return r(n,t),n.prototype.render=function(){var t=e.style,n=this.props,o=n.view,r=n.render,h=n.data,f=n.defaultItem,m=a(n,["view","render","data","defaultItem"]),v=h||e.items,g=f||e.defaultItem,y=o?(0,c.getInlineStyles)(o.state,{name:t,value:/^.+$/}):[],b=(0,d.provideLocalizationService)(this);g&&g.localizationKey&&((g=i({},g)).text=g.localizationKey?b.toLanguageString(g.localizationKey,p.messages[g.localizationKey]):g.text);var w=1===new Set(y).size?y[0]:null,k=s.createElement(l.DropDownList,i({value:w?v.find((function(e){return e.value===w})):w,data:v,defaultItem:g,itemRender:u.itemRender,textField:"text",dataItemKey:"value",onChange:this.onChange,style:u.userSelectNone,leftRightKeysNavigation:!1,title:g.text},m));return r?r.call(void 0,k,{view:o}):k},n}(s.Component);return(0,d.registerForLocalization)(t),t}},847:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockToolNS=void 0;var s=n(3899),l=n(2831),c=n(2696),u=n(2226),d=n(499),p=n(3364);(t.FormatBlockToolNS||(t.FormatBlockToolNS={})).createFormatBlockDropDownList=function(e){var t=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.onChange=function(t){var o=t.target.value,r=n.props.view;if(r&&(0,c.formatBlockElements)(o.value,e.commandName)(r.state,r.dispatch)){var i=t.syntheticEvent;i&&"click"===i.type&&r.focus()}},n}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=t.data,h=t.defaultItem,f=a(t,["view","render","data","defaultItem"]),m=r||e.items,v=h||e.defaultItem,g=n&&n.state,y=g?(0,c.getBlockFormats)(g):[],b=(0,d.provideLocalizationService)(this);v&&v.localizationKey&&((v=i({},v)).text=v.localizationKey?b.toLanguageString(v.localizationKey,p.messages[v.localizationKey]):v.text);var w=1===new Set(y).size?y[0]:null,k=s.createElement(l.DropDownList,i({value:w?m.find((function(e){return e.value===w})):w,onChange:this.onChange,itemRender:u.itemRender,data:m,defaultItem:v,textField:"text",dataItemKey:"value",style:u.userSelectNone,leftRightKeysNavigation:!1,title:v.text},f));return o?o.call(void 0,k,{view:n}):k},n}(s.Component);return(0,d.registerForLocalization)(t),t}},3270:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryToolNS=void 0;var o,r=n(2696),i=n(8980);(o=t.HistoryToolNS||(t.HistoryToolNS={})).createUndoTool=function(e){return(0,i.createProseMirrorTool)(e,r.undo)},o.createRedoTool=function(e){return(0,i.createProseMirrorTool)(e,r.redo)}},9476:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.IndentToolNS=void 0;var s=n(3899),l=n(2888),c=n(2696),u=n(2226),d=n(499),p=n(3364),h=n(1262);(t.IndentToolNS||(t.IndentToolNS={})).createIndentTool=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),f=r.dir,m=n&&n.state,v=m&&m.schema.nodes,g=v&&v[e.listsTypes.listItem],y=e.actions,b=!!m&&!!g&&((0,c.isIndented)(m,y,f)||y.some((function(e){return v&&v[e.node]&&(0,c.hasNode)(m,v[e.node])})))&&!(0,c.hasNode)(m,g),w=!!m&&(0,c.canIndentAsListItem)(m,g),k=b||w,x=(0,d.provideLocalizationService)(this),z=e.messages.title,C=!k,S=s.createElement(l.Button,i({onClick:C?void 0:function(){n&&w&&g?(0,c.sinkListItem)(g)(n.state,n.dispatch):n&&b&&(0,c.indentBlocks)(y,e.commandName,f)(n.state,n.dispatch)},"aria-disabled":!!C||void 0,title:x.toLanguageString(z,p.messages[z])},u.onDownPreventDefault,e.props,r,{className:(0,h.classNames)(r.className,e.props.className,{"k-disabled":C})}));return o?o.call(void 0,S,{view:n}):S},n}(s.Component);return(0,d.registerForLocalization)(t),t}},5436:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatToolNS=void 0;var s=n(3899),l=n(2888),c=n(2696),u=n(2226),d=n(499),p=n(3364);(t.InlineFormatToolNS||(t.InlineFormatToolNS={})).createInlineFormatTool=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),h=n&&n.state,f={mark:e.mark,altMarks:e.altMarks,altStyle:e.altStyle},m=(0,d.provideLocalizationService)(this),v=e.messages.title,g=s.createElement(l.Button,i({onClick:function(){return n&&(0,c.toggleInlineFormat)(f,h&&h.tr.setMeta("commandName",e.commandName))(n.state,n.dispatch)},selected:!!h&&(0,c.hasMark)(h,f),togglable:!0},u.onDownPreventDefault,{title:m.toLanguageString(v,p.messages[v])},e.props,r));return o?o.call(void 0,g,{view:n}):g},n}(s.Component);return(0,d.registerForLocalization)(t),t}},8210:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.createInsertImageTool=void 0;var s=n(3899),l=n(2696),c=n(2888),u=n(2226),d=n(3695),p=n(499),h=n(3364),f=n(1262);t.createInsertImageTool=function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),m=n&&n.state,v=m?m.schema.nodes[e.node]:void 0,g=(0,p.provideLocalizationService)(this),y=e.messages.insertImage,b=!v||!m||!(0,l.canInsert)(m,v),w=[s.createElement(c.Button,i({onClick:b?void 0:this.toggleDialog,"aria-disabled":!!b||void 0,key:"insertImage"},u.onDownPreventDefault,{title:g.toLanguageString(y,h.messages[y])},e.props,r,{className:(0,f.classNames)(r.className,e.props.className,{"k-disabled":b})})),this.state.openedDialog&&n&&s.createElement(d.EditorDialogs.InsertImageDialog,{key:"insertImageDialog",view:n,settings:e,dir:r.dir,onClose:this.toggleDialog})||null];return o?o.call(void 0,w,{view:n}):w},n}(s.Component);return(0,p.registerForLocalization)(t),t}},1493:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolNS=void 0;var s=n(3899),l=n(2888),c=n(2696),u=n(2226),d=n(3695),p=n(499),h=n(3364),f=n(1262);(t.LinkToolNS||(t.LinkToolNS={})).createLinkTool=function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),m=n&&n.state,v=!m||m.selection.empty,g=m&&(0,c.getMark)(m,m.schema.marks[e.mark]),y=(0,p.provideLocalizationService)(this),b=e.messages.insertHyperlink,w=v&&!g,k=[s.createElement(l.Button,i({onClick:w?void 0:this.toggleDialog,"aria-disabled":!!w||void 0,key:"link"},u.onDownPreventDefault,{title:y.toLanguageString(b,h.messages[b])},e.props,r,{className:(0,f.classNames)(r.className,e.props.className,{"k-disabled":w})})),this.state.openedDialog&&n&&s.createElement(d.EditorDialogs.InsertLinkDialog,{key:"insertLinkDialog",settings:e,dir:r.dir,view:n,onClose:this.toggleDialog})||null];return o?o.call(void 0,k,{view:n}):k},n}(s.Component);return(0,p.registerForLocalization)(t),t}},5962:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupNS=t.InsertTableToolNS=void 0;var o=n(3895);Object.defineProperty(t,"InsertTableToolNS",{enumerable:!0,get:function(){return o.InsertTableToolNS}});var r=n(5388);Object.defineProperty(t,"InsertTablePopupNS",{enumerable:!0,get:function(){return r.InsertTablePopupNS}})},5388:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupNS=void 0;var i,a,s=n(3899),l=n(189),c=n(5362),u=n(2011);i=t.InsertTablePopupNS||(t.InsertTablePopupNS={}),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pointerdown=!1,t.onWindowDown=function(e){var n=t.props.anchor;(!n||n!==e.target&&n.firstElementChild!==e.target)&&(t.props.show&&!t.pointerdown&&t.props.onClose(),t.pointerdown=!1)},t.onPointerDown=function(){return t.pointerdown=!0},t}return r(t,e),t.prototype.componentDidUpdate=function(e){e.show&&this.props.show&&this.props.onClose()},t.prototype.componentDidMount=function(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},t.prototype.componentWillUnmount=function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},t.prototype.render=function(){var e=this.props,n=e.show,o=e.anchor,r=e.dir,i=e.rows,a=void 0===i?t.defaultProps.rows:i,l=e.columns,d=void 0===l?t.defaultProps.columns:l,p="rtl"===r?"right":"left";return s.createElement(c.Popup,{anchor:o,anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:n,style:"rtl"===r?{direction:"rtl"}:void 0},s.createElement(u.default,{rows:a,columns:d,createTableMessage:this.props.createTableMessage,createTableHintMessage:this.props.createTableHintMessage,onCellClick:this.props.onTableInsert,onDown:this.onPointerDown}))},t.propTypes={show:l.bool.isRequired,createTableMessage:l.string.isRequired,createTableHintMessage:l.string.isRequired,onClose:l.func.isRequired,onTableInsert:l.func.isRequired,anchor:l.any,rows:l.number,columns:l.number,dir:l.string},t.defaultProps={rows:6,columns:8},t}(s.Component),i.InsertTablePopup=a},2011:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(3899),a=n(2226),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={row:-1,col:-1},t}return r(t,e),t.prototype.renderCell=function(e,t,n){var o=this,r=Math.floor(e/this.props.columns),a=e%this.props.columns,s=a<=n&&r<=t;return i.createElement("span",{className:"k-ct-cell k-disabled"+(s?" ".concat("k-selected"):""),onMouseEnter:function(){return o.setState({row:r,col:a})},onClick:function(){return o.props.onCellClick.call(void 0,r,a)},key:e})},t.prototype.render=function(){var e=this,t=[],n=this.props.columns*this.props.rows,o=this.state,r=o.row,s=o.col,l=this.props.onDown,c=this.props.createTableMessage;s>-1&&(c=(0,a.formatString)(this.props.createTableHintMessage,r+1,s+1));for(var u=0;u<n;u++)t.push(this.renderCell(u,r,s));return[i.createElement("div",{onMouseLeave:function(){return e.setState({row:-1,col:-1})},key:"cells",style:{borderColor:"inherit"},onPointerDown:l,onMouseDown:l},t),i.createElement("div",{className:"k-status",key:"status",onPointerDown:l,onMouseDown:l},c)]},t}(i.Component);t.default=s},3895:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableToolNS=void 0;var s=n(3899),l=n(2888),c=n(2226),u=n(499),d=n(3364),p=n(5388),h=n(2696),f=n(1262);(t.InsertTableToolNS||(t.InsertTableToolNS={})).createInsertTableTool=function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedPopup:!1},e.button=null,e.togglePopup=function(){e.setState({openedPopup:!e.state.openedPopup})},e.closePopup=function(){e.state.openedPopup&&e.togglePopup()},e.onTableInsert=function(t,n){var o=e.props.view;if(o){var r=o.state.schema.nodes,i=r.table,a=r.table_row,s=r.table_cell,l=(0,h.createTable)({table:i,table_row:a,table_cell:s},t,n);l&&(0,h.insertNode)(l,!0)(o.state,o.dispatch),o.focus(),e.closePopup()}},e}return r(n,t),n.prototype.render=function(){var t=this,n=this.props,o=n.view,r=n.render,m=a(n,["view","render"]),v=o&&o.state,g=(0,u.provideLocalizationService)(this),y=e.messages,b=y.createTable,w=y.createTableHint,k=g.toLanguageString(b,d.messages[b]),x=g.toLanguageString(w,d.messages[w]),z=Boolean(!v||!(0,h.canInsert)(v,v.schema.nodes.table)||(0,c.parentNode)(v.selection.$from,(function(e){return"table_caption_external"===e.type.name}))),C=[s.createElement(l.Button,i({onClick:z?void 0:this.togglePopup,"aria-disabled":!!z||void 0,ref:function(e){return t.button=e&&e.element},key:"InsertTable"},c.onDownPreventDefault,{title:k},e.props,m,{className:(0,f.classNames)(m.className,e.props.className,{"k-disabled":z})})),o&&!z&&s.createElement(p.InsertTablePopupNS.InsertTablePopup,{key:"insertTablePopup",createTableMessage:k,createTableHintMessage:x,dir:m.dir,anchor:this.button,show:this.state.openedPopup,onClose:this.closePopup,onTableInsert:this.onTableInsert})||null];return r?r.call(void 0,C,{view:o}):C},n}(s.Component);return(0,u.registerForLocalization)(t),t}},3377:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.ListTool=void 0;var i=n(3899),a=n(2696),s=n(2888),l=n(2804),c=n(499),u=n(3364),d=function(e,t){var n=e.selection,o=n.from,r=n.to,i=null;return e.doc.nodesBetween(o,r,(function(e){return!(i=i||(e.type===t?e:null))})),i};t.ListTool=function(e){var t,n,p=!1,h=e.view,f=l.listsTypes,m=e.listType,v=(0,c.useLocalization)(),g=r([],e.items||[],!0);if(h){var y=h.state,b=y&&y.schema.nodes;t=b&&d(y,b[f.orderedList]),n=b&&d(y,b[f.bulletList]),p=Boolean(m===f.orderedList?t&&!n:!t&&n)}if(p&&(t||n)){var w=(0,a.listStyle)((t||n).attrs);g=g.map((function(e,t){return o(o({},e),{selected:w?e.style===w:0===t})}))}return i.createElement("span",{onMouseDown:function(e){e.preventDefault()}},i.createElement(s.SplitButton,{textField:"text",items:g,icon:e.icon,svgIcon:e.svgIcon,onButtonClick:function(e){h&&((0,a.toggleList)(h.state,h.dispatch,h,o(o({listType:m},f),{listAttrs:{}}),"InsertList"),h.focus())},onItemClick:function(e){if(h){var r=e.item.style?{style:"list-style-type: "+e.item.style+";"}:{},i=t||n;if(i&&(0,a.listStyle)(i.attrs)!==e.item.style){var s=h.state.selection.$head.posAtIndex(0,-2)-1;h.dispatch(h.state.tr.setNodeMarkup(s,h.state.schema.nodes[m],r))}else(0,a.toggleList)(h.state,h.dispatch,h,o(o({listType:m},f),{listAttrs:r}),"InsertList");h.focus()}},buttonClass:p?"k-selected":void 0,title:void 0!==e.title?e.title:v.toLanguageString(e.titleKey,u.messages[e.titleKey])}))}},7441:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ListToolNS=void 0;var s=n(3899),l=n(2888),c=n(2696),u=n(2226),d=n(499),p=n(3364);(t.ListToolNS||(t.ListToolNS={})).createListTool=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),h=!1,f=(0,d.provideLocalizationService)(this),m=e.messages.title,v=e.types,g=e.listType;if(n){var y=n.state,b=y.schema.nodes,w=(0,c.hasNode)(y,b[v.orderedList]),k=(0,c.hasNode)(y,b[v.bulletList]);h=g===v.orderedList?w&&!k:!w&&k}var x=s.createElement(l.Button,i({onClick:function(){return n&&(0,c.toggleList)(n.state,n.dispatch,n,i({listType:g},v),e.commandName)},togglable:!0,selected:h,title:f.toLanguageString(m,p.messages[m])},u.onDownPreventDefault,e.props,r));return o?o.call(void 0,x,{view:n}):x},n}(s.Component);return(0,d.registerForLocalization)(t),t}},8671:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorTools=void 0;var a=n(3899),s=n(2804),l=n(5962),c=n(7628),u=n(1403),d=n(8631),p=n(847),h=n(3270),f=n(9476),m=n(5436),v=n(8210),g=n(1493),y=n(7441),b=n(4997),w=n(3350),k=n(8389),x=n(7306),z=n(219),C=n(3061),S=n(9460),I=n(3280),M=n(3037),E=n(3377),O=n(8696),H=n(762),N=n(8429);!function(e){function t(e){return c.createAlignTool(e)}e.createAlignTool=t;var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(t(s.EditorToolsSettings.alignLeft));e.AlignLeft=n;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(t(s.EditorToolsSettings.alignRight));e.AlignRight=o;var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(t(s.EditorToolsSettings.alignCenter));e.AlignCenter=P;var V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(t(s.EditorToolsSettings.alignJustify));function T(e){return l.InsertTableToolNS.createInsertTableTool(e)}e.AlignJustify=V,e.createInsertTableTool=T;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(T(s.EditorToolsSettings.insertTable));e.InsertTable=R;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(l.InsertTablePopupNS.InsertTablePopup);function B(e){return u.FontStyleToolNS.createStyleDropDownList(e)}e.InsertTablePopup=D,e.createStyleDropDownList=B;var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(B(s.EditorToolsSettings.fontSize));e.FontSize=A;var L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(B(s.EditorToolsSettings.fontName));function _(e){return p.FormatBlockToolNS.createFormatBlockDropDownList(e)}e.FontName=L,e.ForeColor=function(e){return a.createElement(d.ApplyColorTool,i({},s.EditorToolsSettings.foreColor,e))},e.BackColor=function(e){return a.createElement(d.ApplyColorTool,i({},s.EditorToolsSettings.backColor,e))},e.createFormatBlockDropDownList=_;var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(_(s.EditorToolsSettings.formatBlock));function j(e){return h.HistoryToolNS.createUndoTool(e)}function K(e){return h.HistoryToolNS.createRedoTool(e)}e.FormatBlock=F,e.createUndoTool=j,e.createRedoTool=K;var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(j(s.EditorToolsSettings.undo));e.Undo=W;var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(K(s.EditorToolsSettings.redo));function q(e){return f.IndentToolNS.createIndentTool(e)}e.Redo=U,e.createIndentTool=q;var $=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(q(s.EditorToolsSettings.indent));function G(e){return m.InlineFormatToolNS.createInlineFormatTool(e)}e.Indent=$,e.createInlineFormatTool=G;var Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(G(s.EditorToolsSettings.bold));e.Bold=Z;var Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(G(s.EditorToolsSettings.italic));e.Italic=Y;var J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(G(s.EditorToolsSettings.underline));e.Underline=J;var X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(G(s.EditorToolsSettings.strikethrough));e.Strikethrough=X;var Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(G(s.EditorToolsSettings.subscript));e.Subscript=Q;var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(G(s.EditorToolsSettings.superscript));function te(e){return v.createInsertImageTool(e)}e.Superscript=ee,e.createInsertImageTool=te;var ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(te(s.EditorToolsSettings.image));function oe(e){return g.LinkToolNS.createLinkTool(e)}e.InsertImage=ne,e.createLinkTool=oe;var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(oe(s.EditorToolsSettings.link));e.Link=re;var ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(oe(s.EditorToolsSettings.insertFile));function ae(e){return y.ListToolNS.createListTool(e)}e.InsertFile=ie,e.createListTool=ae;var se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(ae(s.EditorToolsSettings.orderedList));e.OrderedList=se;var le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(ae(s.EditorToolsSettings.bulletList));function ce(e){return b.OutdentToolNS.createOutdentTool(e)}e.UnorderedList=le,e.BulletedList=function(e){var t=[{icon:"list-unordered",svgIcon:O.listUnorderedIcon,text:"Disc",style:"disc"},{icon:"list-unordered-outline",svgIcon:O.listUnorderedOutlineIcon,text:"Circle",style:"circle"},{icon:"list-unordered-square",svgIcon:O.listUnorderedSquareIcon,text:"Square",style:"square"}];return a.createElement(E.ListTool,i({listType:s.EditorToolsSettings.bulletList.listType,items:t,icon:"list-unordered",svgIcon:O.listUnorderedIcon,titleKey:s.EditorToolsSettings.bulletList.messages.title},e))},e.NumberedList=function(e){var t=[{icon:"list-ordered",svgIcon:O.listOrderedIcon,text:"Decimal"},{icon:"list-roman-upper",svgIcon:O.listRomanUpperIcon,text:"Upper roman",style:"upper-roman"},{icon:"list-roman-lower",svgIcon:O.listRomanLowerIcon,text:"Lower roman",style:"lower-roman"},{icon:"list-latin-big",svgIcon:O.listLatinBigIcon,text:"Upper latin",style:"upper-latin"},{icon:"list-latin-small",svgIcon:O.listLatinSmallIcon,text:"Lower latin",style:"lower-latin"}];return a.createElement(E.ListTool,i({listType:s.EditorToolsSettings.orderedList.listType,items:t,icon:"list-ordered",svgIcon:O.listOrderedIcon,titleKey:s.EditorToolsSettings.orderedList.messages.title},e))},e.TableCellProperties=H.TableCellProperties,e.TableProperties=N.TableProperties,e.createOutdentTool=ce;var ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(ce(s.EditorToolsSettings.outdent));function de(e){return w.TableEditNS.createAddRowBeforeTool(e)}function pe(e){return w.TableEditNS.createAddRowAfterTool(e)}function he(e){return w.TableEditNS.createAddColumnBeforeTool(e)}function fe(e){return w.TableEditNS.createAddColumnAfterTool(e)}function me(e){return w.TableEditNS.createDeleteRowTool(e)}function ve(e){return w.TableEditNS.createDeleteColumnTool(e)}function ge(e){return w.TableEditNS.createDeleteTableTool(e)}function ye(e){return w.TableEditNS.createMergeCellsTool(e)}function be(e){return w.TableEditNS.createSplitCellTool(e)}e.Outdent=ue,e.Print=function(e){return a.createElement(z.Print,i({},e))},e.Pdf=function(e){return a.createElement(C.Pdf,i({},e))},e.SelectAll=function(e){return a.createElement(S.SelectAll,i({},e))},e.CleanFormatting=function(e){return a.createElement(I.CleanFormatting,i({},e))},e.createAddRowBeforeTool=de,e.createAddRowAfterTool=pe,e.createAddColumnBeforeTool=he,e.createAddColumnAfterTool=fe,e.createDeleteRowTool=me,e.createDeleteColumnTool=ve,e.createDeleteTableTool=ge,e.createMergeCellsTool=ye,e.createSplitCellTool=be;var we=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(de(s.EditorToolsSettings.addRowBefore));e.AddRowBefore=we;var ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(pe(s.EditorToolsSettings.addRowAfter));e.AddRowAfter=ke;var xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(he(s.EditorToolsSettings.addColumnBefore));e.AddColumnBefore=xe;var ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(fe(s.EditorToolsSettings.addColumnAfter));e.AddColumnAfter=ze;var Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(me(s.EditorToolsSettings.deleteRow));e.DeleteRow=Ce;var Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(ve(s.EditorToolsSettings.deleteColumn));e.DeleteColumn=Se;var Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(ge(s.EditorToolsSettings.deleteTable));e.DeleteTable=Ie;var Me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(ye(s.EditorToolsSettings.mergeCells));e.MergeCells=Me;var Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(be(s.EditorToolsSettings.splitCell));function Oe(e){return k.UnlinkToolNS.createUnlinkTool(e)}e.SplitCell=Ee,e.createUnlinkTool=Oe;var He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(Oe(s.EditorToolsSettings.unlink));function Ne(e){return x.ViewHtmlToolNS.createViewHtmlTool(e)}e.Unlink=He,e.createViewHtmlTool=Ne;var Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(Ne(s.EditorToolsSettings.viewHtml));e.ViewHtml=Pe;var Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(M.FindAndReplace);e.FindAndReplace=Ve}(t.EditorTools||(t.EditorTools={}))},4997:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentToolNS=void 0;var s=n(3899),l=n(2888),c=n(2696),u=n(2226),d=n(499),p=n(3364),h=n(1262);(t.OutdentToolNS||(t.OutdentToolNS={})).createOutdentTool=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),f=n&&n.state,m=r.dir,v=!!f&&(0,c.isIndented)(f,e.actions,m),g=f&&f.schema.nodes[e.listsTypes.listItem],y=!!f&&(0,c.canOutdentAsListItem)(f,{nodes:e.actions,listsTypes:e.listsTypes}),b=v||y,w=(0,d.provideLocalizationService)(this),k=e.messages.title,x=!b,z=s.createElement(l.Button,i({onClick:x?void 0:function(){n&&y&&g?(0,c.liftListItem)(g)(n.state,n.dispatch):n&&v&&(0,c.indentBlocks)(e.actions,e.commandName,m)(n.state,n.dispatch)},"aria-disabled":!!x||void 0,title:w.toLanguageString(k,p.messages[k])},u.onDownPreventDefault,e.props,r,{className:(0,h.classNames)(r.className,e.props.className,{"k-disabled":x})}));return o?o.call(void 0,z,{view:n}):z},n}(s.Component);return(0,d.registerForLocalization)(t),t}},3061:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.Pdf=void 0;var i=n(3899),a=n(2888),s=n(499),l=n(5809),c=n(2226),u=n(3364),d=n(2804),p=d.EditorToolsSettings.pdf,h=d.EditorToolsSettings.savePdfOptions;t.Pdf=function(e){var t=e.view,n=e.render,d=e.settings,f=void 0===d?p:d,m=e.savePdfOptions,v=e.savePdfCallback,g=r(e,["view","render","settings","savePdfOptions","savePdfCallback"]),y=f.messages.title,b=i.useCallback((function(){t&&(0,l.savePDF)(t.dom,o(o({},h),m||{}),v)}),[t,m,v]),w=i.createElement(a.Button,o({onClick:b,title:(0,s.useLocalization)().toLanguageString(y,u.messages[y])},c.onDownPreventDefault,f.props,g));return n?n.call(void 0,w,{view:t}):w}},219:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.Print=void 0;var i=n(3899),a=n(2888),s=n(499),l=n(2226),c=n(3364),u=n(2804),d=n(1262),p=u.EditorToolsSettings.print;t.Print=function(e){var t=e.view,n=e.render,u=e.settings,h=void 0===u?p:u,f=r(e,["view","render","settings"]),m=t&&t.dom,v=m&&m.ownerDocument,g=v&&v.defaultView,y=h.messages.title,b=!g||g===window,w=i.useCallback((function(){g&&g.print()}),[g]),k=i.createElement(a.Button,o({onClick:b?void 0:w,"aria-disabled":!!b||void 0,title:(0,s.useLocalization)().toLanguageString(y,c.messages[y])},l.onDownPreventDefault,h.props,f,{className:(0,d.classNames)(f.className,h.props.className,{"k-disabled":b})}));return n?n.call(void 0,k,{view:t}):k}},8980:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.createProseMirrorTool=void 0;var s=n(3899),l=n(2888),c=n(2226),u=n(499),d=n(3364),p=n(1262);t.createProseMirrorTool=function(e,t){var n=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return r(o,n),o.prototype.render=function(){var n=this.props,o=n.view,r=n.render,h=a(n,["view","render"]),f=(0,u.provideLocalizationService)(this),m=e.messages.title,v=o&&o.state,g=!!v&&!t(v),y=s.createElement(l.Button,i({onClick:g?void 0:function(){return o&&t(o.state,(function(t){return o.dispatch(t.setMeta("commandName",e.commandName))}))},"aria-disabled":!!g||void 0},c.onDownPreventDefault,{title:f.toLanguageString(m,d.messages[m])},e.props,h,{className:(0,p.classNames)(h.className,e.props.className,{"k-disabled":g})}));return r?r.call(void 0,y,{view:o}):y},o}(s.Component);return(0,u.registerForLocalization)(n),n}},9460:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAll=void 0;var i=n(3899),a=n(2888),s=n(499),l=n(2226),c=n(3364),u=n(2696),d=n(2804).EditorToolsSettings.selectAll;t.SelectAll=function(e){var t=e.view,n=e.render,p=e.settings,h=void 0===p?d:p,f=r(e,["view","render","settings"]),m=h.messages.title,v=i.useCallback((function(){t&&((0,u.selectAll)(t.state,t.dispatch),t.focus())}),[t]),g=i.createElement(a.Button,o({onClick:v,title:(0,s.useLocalization)().toLanguageString(m,c.messages[m])},l.onDownPreventDefault,h.props,f));return n?n.call(void 0,g,{view:t}):g}},2824:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.applyCellsData=t.cellsDefaultData=t.initialCellData=void 0;var r=n(2696),i=n(9332),a=n(2226),s="k-colgroup-data",l=function(e,t){var n=new Set,o="";return e.forEach((function(e){var r;o=(0,i.parseStyle)((null===(r=e.node.attrs)||void 0===r?void 0:r.style)||"")[t]||"",n.add(o)})),1===n.size&&o?o:""},c=function(e,t){var n=new Set,o="";return e.forEach((function(e){o=(e.node.attrs||{})[t]||"",n.add(o)})),1===n.size&&o?o:""},u={applyToAll:!1,cellWidth:null,widthUnit:"",cellHeight:null,heightUnit:"",alignment:{x:"",y:""},textControl:"",backgroundColor:void 0,cellPadding:null,borderWidth:null,borderColor:void 0,borderStyle:null,id:"",className:""};t.initialCellData=u,t.cellsDefaultData=function(e){var t=(0,i.selectedCells)(e),n=e.selection.$from,d=t.length?(0,a.parentNode)(n,(function(e){return"table"===e.type.spec.tableRole})):null;return d?o(o(o(o({},u),function(e,t,n){var o={cellWidth:null,widthUnit:""},a=t.node,l=n.start(t.depth);if(!a.attrs[s])return o;var c=new Set,u="",d=(0,r.htmlToFragment)(a.attrs[s]).firstChild;return e.forEach((function(e){for(var t=a.resolve(e.pos-l),n=t.parent,o=t.index(),r=0,i=0;i<=o;i++)r+=n.child(i).attrs.colspan;var s=d.children[r-1];s&&(u=s.style.width,c.add(u))})),1===c.size&&u&&(o.cellWidth=parseFloat(u)||null,o.widthUnit=(0,i.getUnit)(u)),o}(t,d,n)),function(e,t,n){var o={cellHeight:null,heightUnit:""},r=t.node,a=n.start(t.depth),s=new Set,l="";return e.forEach((function(e){var t,n=r.resolve(e.pos-a).parent;l=(0,i.parseStyle)((null===(t=n.attrs)||void 0===t?void 0:t.style)||"").height||"",s.add(l)})),1===s.size&&l&&(o.cellHeight=parseFloat(l)||null,o.heightUnit=(0,i.getUnit)(l)),o}(t,d,n)),{alignment:{x:l(t,"text-align"),y:l(t,"vertical-align")},textControl:l(t,"white-space"),backgroundColor:l(t,"background-color")||void 0,cellPadding:parseFloat(l(t,"padding"))||null,borderWidth:parseFloat(l(t,"border-width"))||null,borderColor:l(t,"border-color")||void 0,borderStyle:l(t,"border-style")||null,id:c(t,"id"),className:c(t,"class")}):u};t.applyCellsData=function(e,t){var n=e.tr;return function(e,t,n){n.forEach((function(n){var a=n.node,l=n.pos,c=o({},a.attrs);c=(0,i.setNodeStyle)(c,"border-color",t.borderColor||""),c=(0,i.setNodeStyle)(c,"border-style",t.borderStyle||""),c=(0,i.setNodeStyle)(c,"border-width","number"==typeof t.borderWidth?t.borderWidth+"px":""),c=(0,i.setNodeStyle)(c,"padding","number"==typeof t.cellPadding?t.cellPadding+"px":""),c=(0,i.setNodeStyle)(c,"background-color",t.backgroundColor||""),c=(0,i.setNodeStyle)(c,"text-align",t.alignment.x||""),c=(0,i.setNodeStyle)(c,"vertical-align",t.alignment.y||""),(c=(0,i.setNodeStyle)(c,"white-space",t.textControl||"")).id=t.id||null,c.class=t.className||null,e.setNodeMarkup(l,null,c),"number"==typeof t.cellWidth&&function(e,t,n){for(var i,a,l=e.doc.resolve(t),c=l.parent,u=l.index(),d=0,p=0;p<=u;p++)d+=c.child(p).attrs.colspan;var h=l.node(l.depth-1),f=l.posAtIndex(0,l.depth-1)-1,m=h.attrs;if(m&&m[s])(g=(0,r.htmlToFragment)(m[s]).firstChild).children[d-1].style.width=n,m=o(o({},m),((i={})[s]=g.outerHTML,i)),e.setNodeMarkup(f,null,m);else{var v=0;for(p=0;p<c.childCount;p++)v+=c.child(p).attrs.colspan;var g=document.createElement("colgroup"),y=new Array(v);for(p=0;p<v;p++)y[p]=document.createElement("col"),g.appendChild(y[p]);y[u].style.width=n,m=o(o({},m),((a={})[s]="<colgroup>"+y.reduce((function(e,t){return e+t.outerHTML}),"")+"</colgroup>",a)),e.setNodeMarkup(f,null,m)}}(e,l,t.cellWidth+(t.widthUnit||"px")),"number"==typeof t.cellHeight&&function(e,t,n){var o=e.doc.resolve(t),r=o.parent,a=o.posAtIndex(0)-1;e.setNodeMarkup(a,null,(0,i.setNodeStyle)(r.attrs,"height",n))}(e,l,t.cellHeight+(t.heightUnit||"px"))}))}(n,t,t.applyToAll?(0,i.tableCells)(e):(0,i.selectedCells)(e)),n}},762:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.itemRenderWithIcon=t.valueRenderWithIcon=t.TableCellProperties=void 0;var a=n(3899),s=n(2888),l=n(5603),c=n(2831),u=n(1959),d=n(8696),p=n(2226),h=n(1262),f=n(499),m=n(3364),v=n(2824);t.TableCellProperties=function(e){var t=e.view,n=r(e,["view"]),i=a.useState(!1),l=i[0],c=i[1],u=(0,f.useLocalization)(),h=Boolean(t&&(0,p.parentNode)(t.state.selection.$from,(function(e){return"table"===e.type.spec.tableRole}))),g=a.useCallback((function(){c(!0)}),[]),y=a.useCallback((function(){c(!1),null==t||t.focus()}),[t]),w=a.useCallback((function(e){if(t&&e){var n=(0,v.applyCellsData)(t.state,e);n.docChanged&&t.dispatch(n)}y()}),[t,y]);return a.createElement(a.Fragment,null,a.createElement(s.Button,o({type:"button",title:u.toLanguageString(m.keys.cellProperties,m.messages[m.keys.cellProperties]),icon:"table-cell-properties",svgIcon:d.tableCellPropertiesIcon,onClick:g,disabled:!h},p.onDownPreventDefault,n)),l&&t&&a.createElement(b,{view:t,onCancel:y,onSave:w}))};var g=[{textKey:m.keys.cellPropertiesLeftTop,text:m.messages[m.keys.cellPropertiesLeftTop],icon:"table-align-top-left",svgIcon:d.tableAlignTopLeftIcon,value:{x:"left",y:"top"}},{textKey:m.keys.cellPropertiesCenterTop,text:m.messages[m.keys.cellPropertiesCenterTop],icon:"table-align-top-center",svgIcon:d.tableAlignTopCenterIcon,value:{x:"center",y:"top"}},{textKey:m.keys.cellPropertiesRightTop,text:m.messages[m.keys.cellPropertiesRightTop],icon:"table-align-top-right",svgIcon:d.tableAlignTopRightIcon,value:{x:"right",y:"top"}},{textKey:m.keys.cellPropertiesLeftMiddle,text:m.messages[m.keys.cellPropertiesLeftMiddle],icon:"table-align-middle-left",svgIcon:d.tableAlignMiddleLeftIcon,value:{x:"left",y:"middle"}},{textKey:m.keys.cellPropertiesCenterMiddle,text:m.messages[m.keys.cellPropertiesCenterMiddle],icon:"table-align-middle-center",svgIcon:d.tableAlignMiddleCenterIcon,value:{x:"center",y:"middle"}},{textKey:m.keys.cellPropertiesRightMiddle,text:m.messages[m.keys.cellPropertiesRightMiddle],icon:"table-align-middle-right",svgIcon:d.tableAlignMiddleRightIcon,value:{x:"right",y:"middle"}},{textKey:m.keys.cellPropertiesLeftBottom,text:m.messages[m.keys.cellPropertiesLeftBottom],icon:"table-align-bottom-left",svgIcon:d.tableAlignBottomLeftIcon,value:{x:"left",y:"bottom"}},{textKey:m.keys.cellPropertiesCenterBottom,text:m.messages[m.keys.cellPropertiesCenterBottom],icon:"table-align-bottom-center",svgIcon:d.tableAlignBottomCenterIcon,value:{x:"center",y:"bottom"}},{textKey:m.keys.cellPropertiesRightBottom,text:m.messages[m.keys.cellPropertiesRightBottom],icon:"table-align-bottom-right",svgIcon:d.tableAlignBottomRightIcon,value:{x:"right",y:"bottom"}},{textKey:m.keys.cellPropertiesNoAlignment,text:m.messages[m.keys.cellPropertiesNoAlignment],icon:"align-remove",svgIcon:d.tableAlignRemoveIcon,value:{x:"",y:""}}],y=[{textKey:m.keys.cellPropertiesWrap,text:m.messages[m.keys.cellPropertiesWrap],value:"",icon:"text-wrap",svgIcon:d.textWrapIcon},{textKey:m.keys.cellPropertiesFitToCell,text:m.messages[m.keys.cellPropertiesFitToCell],value:"nowrap",icon:"parameter-string",svgIcon:d.parameterStringIcon}];t.valueRenderWithIcon=function(e,t){return t?a.createElement(a.Fragment,null,a.createElement(l.InputPrefix,null,a.createElement(h.IconWrap,{icon:t.svgIcon,name:t.icon})),e):e},t.itemRenderWithIcon=function(e,t){var n=a.createElement(a.Fragment,null,a.createElement(l.InputPrefix,null,a.createElement(h.IconWrap,{icon:t.dataItem.svgIcon,name:t.dataItem.icon})),e.props.children);return a.cloneElement(e,e.props,n)};var b=function(e){var n=a.useMemo((function(){return(0,v.cellsDefaultData)(e.view.state)}),[e.view]),r=(0,f.useLocalization)(),d=a.useRef(null),h=n.applyToAll,b=a.useRef(null),w=n.cellWidth,k=a.useRef(null);n.widthUnit&&!p.units.includes(n.widthUnit)&&p.units.push(n.widthUnit);var x=n.widthUnit||"",z=a.useRef(null),C=n.cellHeight,S=a.useRef(null);n.heightUnit&&!p.units.includes(n.heightUnit)&&p.units.push(n.heightUnit);var I=n.heightUnit||"",M=a.useRef(null),E=g.find((function(e){return void 0!==e.value.x&&n.alignment&&e.value.x===n.alignment.x&&e.value.y===n.alignment.y}))||null,O=a.useRef(null),H=y.find((function(e){return e.value===n.textControl})),N=a.useRef(null),P=n.backgroundColor,V=a.useRef(null),T=n.cellPadding,R=a.useRef(null),D=n.borderWidth,B=a.useRef(null),A=n.borderColor,L=a.useRef(null),_=p.borderStyles.find((function(e){return e.value===n.borderStyle})),F=a.useRef(null),j=n.id,K=a.useRef(null),W=n.className,U=a.useCallback((function(){var t,n,o,r,i,a,s,l,c,u,p,h,f,m,v,g,y,w,x,C,I={applyToAll:Boolean(null===(n=null===(t=d.current)||void 0===t?void 0:t.element)||void 0===n?void 0:n.checked),cellWidth:(null===(o=b.current)||void 0===o?void 0:o.value)||null,widthUnit:(null===(r=k.current)||void 0===r?void 0:r.value)||"",cellHeight:(null===(i=z.current)||void 0===i?void 0:i.value)||null,heightUnit:(null===(a=S.current)||void 0===a?void 0:a.value)||"",alignment:null===(l=null===(s=M.current)||void 0===s?void 0:s.value)||void 0===l?void 0:l.value,textControl:null===(u=null===(c=O.current)||void 0===c?void 0:c.value)||void 0===u?void 0:u.value,backgroundColor:null===(p=N.current)||void 0===p?void 0:p.value,cellPadding:"number"==typeof(null===(h=V.current)||void 0===h?void 0:h.value)?null===(f=V.current)||void 0===f?void 0:f.value:null,borderWidth:"number"==typeof(null===(m=R.current)||void 0===m?void 0:m.value)?null===(v=R.current)||void 0===v?void 0:v.value:null,borderColor:null===(g=B.current)||void 0===g?void 0:g.value,borderStyle:(null===(w=null===(y=L.current)||void 0===y?void 0:y.value)||void 0===w?void 0:w.value)||null,id:String((null===(x=F.current)||void 0===x?void 0:x.value)||""),className:String((null===(C=K.current)||void 0===C?void 0:C.value)||"")};e.onSave.call(void 0,I)}),[e.onSave]),q=a.createElement("div",{className:"k-form k-form-md"},a.createElement("fieldset",{className:"k-form-fieldset"},a.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-4 k-gap-x-4"},a.createElement("div",{className:"k-form-field k-col-span-full"},a.createElement("div",{className:"k-form-field-wrap"},a.createElement("span",{className:"k-checkbox-wrap"},a.createElement(l.Checkbox,{ref:d,defaultChecked:h})),a.createElement("label",{className:"k-checkbox-label"},r.toLanguageString(m.keys.cellPropertiesApplyToAllCells,m.messages[m.keys.cellPropertiesApplyToAllCells])))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesWidth,m.messages[m.keys.cellPropertiesWidth])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:b,defaultValue:w,min:0,placeholder:r.toLanguageString(m.keys.sizeAuto,m.messages[m.keys.sizeAuto])}),a.createElement("div",{className:"k-form-hint"},r.toLanguageString(m.keys.cellPropertiesApplyToColumn,m.messages[m.keys.cellPropertiesApplyToColumn])))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"}," "),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.AutoComplete,{ref:k,defaultValue:x,data:p.units,popupSettings:p.popupSettings}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesHeight,m.messages[m.keys.cellPropertiesHeight])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:z,defaultValue:C,min:0,placeholder:r.toLanguageString(m.keys.sizeAuto,m.messages[m.keys.sizeAuto])}),a.createElement("div",{className:"k-form-hint"},r.toLanguageString(m.keys.cellPropertiesApplyToRow,m.messages[m.keys.cellPropertiesApplyToRow])))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"}," "),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.AutoComplete,{ref:S,defaultValue:I,data:p.units,popupSettings:p.popupSettings}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesAlignment,m.messages[m.keys.cellPropertiesAlignment])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:M,defaultValue:E,data:g.map((function(e){return o(o({},e),{text:r.toLanguageString(e.textKey,e.text)})})),textField:"text",dataItemKey:"text",popupSettings:p.popupSettings,valueRender:t.valueRenderWithIcon,itemRender:t.itemRenderWithIcon}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesTextControl,m.messages[m.keys.cellPropertiesTextControl])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:O,defaultValue:H,data:y.map((function(e){return o(o({},e),{text:r.toLanguageString(e.textKey,e.text)})})),textField:"text",dataItemKey:"value",popupSettings:p.popupSettings,valueRender:t.valueRenderWithIcon,itemRender:t.itemRenderWithIcon}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesCellPadding,m.messages[m.keys.cellPropertiesCellPadding])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:V,defaultValue:T,min:0}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesBackground,m.messages[m.keys.cellPropertiesBackground])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.ColorPicker,{ref:N,defaultValue:P}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesBorderWidth,m.messages[m.keys.cellPropertiesBorderWidth])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:R,defaultValue:D,min:0}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesBorderColor,m.messages[m.keys.cellPropertiesBorderColor])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.ColorPicker,{ref:B,defaultValue:A}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesBorderStyle,m.messages[m.keys.cellPropertiesBorderStyle])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:L,defaultValue:_,popupSettings:p.popupSettings,data:p.borderStyles,textField:"text",dataItemKey:"value"}))),a.createElement("div",{className:"k-form-field k-col-span-full"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesId,m.messages[m.keys.cellPropertiesId])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.TextBox,{ref:F,defaultValue:j}))),a.createElement("div",{className:"k-form-field k-col-span-full"},a.createElement("label",{className:"k-label k-form-label"},r.toLanguageString(m.keys.cellPropertiesCssClass,m.messages[m.keys.cellPropertiesCssClass])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.TextBox,{ref:K,defaultValue:W})))))),$=[a.createElement(s.Button,{themeColor:"primary",key:"save",onClick:U},r.toLanguageString(m.keys.cellPropertiesSave,m.messages[m.keys.cellPropertiesSave])),a.createElement(s.Button,{onClick:e.onCancel,key:"cancel"},r.toLanguageString(m.keys.cellPropertiesCancel,m.messages[m.keys.cellPropertiesCancel]))];return a.createElement(u.Window,{className:"k-editor-window k-editor-table-wizard-window",title:r.toLanguageString(m.keys.cellProperties,m.messages[m.keys.cellProperties]),onClose:e.onCancel,key:"dialog",style:{userSelect:"none"},width:408,height:587,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},q,a.createElement.apply(a,i([u.WindowActionsBar,{layout:"start"}],$,!1)))}},8429:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.TableProperties=void 0;var a=n(3899),s=n(2888),l=n(5603),c=n(2831),u=n(1959),d=n(4611),p=n(8696),h=n(2226),f=n(762),m=n(499),v=n(3364),g=n(6907);t.TableProperties=function(e){var t=e.view,n=r(e,["view"]),i=(0,m.useLocalization)(),l=a.useState(!1),c=l[0],u=l[1],d=Boolean(t&&(0,h.parentNode)(t.state.selection.$from,(function(e){return"table"===e.type.spec.tableRole}))),f=a.useCallback((function(){u(!0)}),[]),y=a.useCallback((function(){u(!1),null==t||t.focus()}),[t]),b=a.useCallback((function(e){if(t&&e){var n=(0,g.applyTableData)(t.state,e);n&&t.dispatch(n)}y()}),[t,y]);return a.createElement(a.Fragment,null,a.createElement(s.Button,o({type:"button",title:i.toLanguageString(v.keys.tableProperties,v.messages[v.keys.tableProperties]),icon:"table-properties",svgIcon:p.tablePropertiesIcon,onClick:f,disabled:!d},h.onDownPreventDefault,n)),c&&a.createElement(x,{onClose:y,onSave:b,view:t}))};var y=[{textKey:v.keys.tablePropertiesAlignLeft,text:v.messages[v.keys.tablePropertiesAlignLeft],value:"left",icon:"table-align-middle-left",svgIcon:p.tableAlignMiddleLeftIcon},{textKey:v.keys.tablePropertiesAlignCenter,text:v.messages[v.keys.tablePropertiesAlignCenter],value:"center",icon:"table-align-middle-center",svgIcon:p.tableAlignMiddleCenterIcon},{textKey:v.keys.tablePropertiesAlignRight,text:v.messages[v.keys.tablePropertiesAlignRight],value:"right",icon:"table-align-middle-right",svgIcon:p.tableAlignMiddleRightIcon},{textKey:v.keys.tablePropertiesNoAlignment,text:v.messages[v.keys.tablePropertiesNoAlignment],value:"",icon:"align-remove",svgIcon:p.tableAlignRemoveIcon}],b=[{textKey:v.keys.tablePropertiesLeft,text:v.messages[v.keys.tablePropertiesLeft],value:"left",style:{},icon:"table-position-left",svgIcon:p.tablePositionStartIcon},{textKey:v.keys.tablePropertiesCenter,text:v.messages[v.keys.tablePropertiesCenter],value:"center",style:{},icon:"table-position-center",svgIcon:p.tablePositionCenterIcon},{textKey:v.keys.tablePropertiesRight,text:v.messages[v.keys.tablePropertiesRight],value:"right",style:{},icon:"table-position-right",svgIcon:p.tablePositionEndIcon}].map((function(e){return o(o({},e),{style:g.tablePositionStyles[e.value]})})),w=[{textKey:v.keys.tablePropertiesTop,text:v.messages[v.keys.tablePropertiesTop],value:"top",icon:"position-top",svgIcon:p.positionTopIcon},{textKey:v.keys.tablePropertiesBottom,text:v.messages[v.keys.tablePropertiesBottom],value:"bottom",icon:"position-bottom",svgIcon:p.positionBottomIcon}],k=[{textKey:v.keys.tablePropertiesNone,text:v.messages[v.keys.tablePropertiesNone],value:"none"},{textKey:v.keys.tablePropertiesUsingScopeAttribute,text:v.messages[v.keys.tablePropertiesUsingScopeAttribute],value:"scope"},{textKey:v.keys.tablePropertiesUsingIdAttributes,text:v.messages[v.keys.tablePropertiesUsingIdAttributes],value:"id"}],x=function(e){var t=a.useMemo((function(){var t=e.view&&e.view.state;return t?(0,g.tableDefaultData)(t):g.initialTableData}),[e.view]),n=(0,m.useLocalization)(),r=a.useState(0),p=r[0],x=r[1],z=a.useCallback((function(e){x(e.selected)}),[]),C=a.useRef(null),S=a.useRef(null),I=a.useRef(null),M=a.useRef(null),E=a.useRef(null),O=a.useRef(null),H=a.useRef(null),N=a.useRef(null),P=a.useRef(null),V=a.useRef(null),T=a.useRef(null),R=a.useRef(null),D=a.useRef(null),B=a.useRef(null),A=a.useRef(null),L=a.useRef(null),_=a.useRef(null),F=a.useRef(null),j=a.useRef(null),K=a.useRef(null),W=a.useRef(null),U=a.useRef(null),q=a.useRef(null),$=a.useCallback((function(){var t,n,o,r,i,a,s,l,c,u,d,p,h,f,m,v,g,y,b,w,k={rows:(null===(t=C.current)||void 0===t?void 0:t.value)||0,columns:(null===(n=S.current)||void 0===n?void 0:n.value)||0,width:I.current?I.current.value:null,height:M.current?M.current.value:null,cellSpacing:E.current?E.current.value:null,cellPadding:O.current?O.current.value:null,borderWidth:H.current?H.current.value:null,widthUnit:(null===(o=N.current)||void 0===o?void 0:o.value)||"",heightUnit:(null===(r=P.current)||void 0===r?void 0:r.value)||"",position:(null===(a=null===(i=V.current)||void 0===i?void 0:i.value)||void 0===a?void 0:a.value)||null,textAlign:(null===(s=T.current)||void 0===s?void 0:s.value)?T.current.value.value:null,borderStyle:(null===(l=R.current)||void 0===l?void 0:l.value)?R.current.value.value:null,backgroundColor:null===(c=D.current)||void 0===c?void 0:c.value,borderColor:null===(u=B.current)||void 0===u?void 0:u.value,collapseBorders:Boolean(null===(p=null===(d=A.current)||void 0===d?void 0:d.element)||void 0===p?void 0:p.checked),id:String((null===(h=L.current)||void 0===h?void 0:h.value)||""),className:String((null===(f=_.current)||void 0===f?void 0:f.value)||""),caption:String((null===(m=F.current)||void 0===m?void 0:m.value)||""),headerRows:(null===(v=j.current)||void 0===v?void 0:v.value)||0,headerColumns:(null===(g=K.current)||void 0===g?void 0:g.value)||0,captionAlignment:(null===(y=W.current)||void 0===y?void 0:y.value)?W.current.value.value:null,captionPosition:(null===(b=U.current)||void 0===b?void 0:b.value)?U.current.value.value:null,associateHeaders:(null===(w=q.current)||void 0===w?void 0:w.value)?q.current.value.value:"none"};e.onSave.call(void 0,k)}),[e.onSave]),G=a.createElement("div",{className:"k-form k-form-md"},a.createElement("fieldset",{className:"k-form-fieldset"},a.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-4 k-gap-x-4"},a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesRows,v.messages[v.keys.tablePropertiesRows])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:C,defaultValue:t.rows,min:1}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesColumns,v.messages[v.keys.tablePropertiesColumns])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:S,defaultValue:t.columns,min:1}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesWidth,v.messages[v.keys.tablePropertiesWidth])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:I,defaultValue:t.width,min:0,placeholder:n.toLanguageString(v.keys.sizeAuto,v.messages[v.keys.sizeAuto])}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"}," "),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.AutoComplete,{ref:N,defaultValue:t.widthUnit,data:h.units,popupSettings:h.popupSettings}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesHeight,v.messages[v.keys.tablePropertiesHeight])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:M,defaultValue:t.height,min:0,placeholder:n.toLanguageString(v.keys.sizeAuto,v.messages[v.keys.sizeAuto])}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"}," "),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.AutoComplete,{ref:P,defaultValue:t.heightUnit,data:h.units.filter((function(e){return"%"!==e})),popupSettings:h.popupSettings}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesPosition,v.messages[v.keys.tablePropertiesPosition])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:V,defaultValue:b.find((function(e){return e.value===t.position})),popupSettings:h.popupSettings,data:b.map((function(e){return o(o({},e),{text:n.toLanguageString(e.textKey,e.text)})})),textField:"text",dataItemKey:"value",valueRender:f.valueRenderWithIcon,itemRender:f.itemRenderWithIcon}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesAlignment,v.messages[v.keys.tablePropertiesAlignment])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:T,defaultValue:y.find((function(e){return e.value===t.textAlign})),data:y.map((function(e){return o(o({},e),{text:n.toLanguageString(e.textKey,e.text)})})),textField:"text",dataItemKey:"value",popupSettings:h.popupSettings,valueRender:f.valueRenderWithIcon,itemRender:f.itemRenderWithIcon}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesCellSpacing,v.messages[v.keys.tablePropertiesCellSpacing])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:E,defaultValue:t.cellSpacing,placeholder:n.toLanguageString(v.keys.sizeAuto,v.messages[v.keys.sizeAuto]),min:0}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesCellPadding,v.messages[v.keys.tablePropertiesCellPadding])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:O,defaultValue:t.cellPadding,placeholder:n.toLanguageString(v.keys.sizeAuto,v.messages[v.keys.sizeAuto]),min:0}))),a.createElement("div",{className:"k-form-field k-col-span-full"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesTableBackground,v.messages[v.keys.tablePropertiesTableBackground])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.ColorPicker,{ref:D,defaultValue:t.backgroundColor}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesBorderWidth,v.messages[v.keys.tablePropertiesBorderWidth])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:H,defaultValue:t.borderWidth,min:0}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesBorderColor,v.messages[v.keys.tablePropertiesBorderColor])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.ColorPicker,{ref:B,defaultValue:t.borderColor}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesBorderStyle,v.messages[v.keys.tablePropertiesBorderStyle])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:R,defaultValue:h.borderStyles.find((function(e){return e.value===t.borderStyle})),popupSettings:h.popupSettings,data:h.borderStyles.map((function(e){return o(o({},e),{text:n.toLanguageString(e.textKey,e.text)})})),textField:"text",dataItemKey:"value"}))),a.createElement("div",{className:"k-form-field k-col-span-full"},a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.Checkbox,{ref:A,className:"k-checkbox-wrap",label:n.toLanguageString(v.keys.tablePropertiesCollapseBorders,v.messages[v.keys.tablePropertiesCollapseBorders]),defaultChecked:t.collapseBorders})))))),Z=a.createElement("div",{className:"k-form k-form-md"},a.createElement("fieldset",{className:"k-form-fieldset"},a.createElement("div",{className:"k-form-layout k-d-grid"},a.createElement("div",{className:"k-form-field"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesId,v.messages[v.keys.tablePropertiesId])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.TextBox,{ref:L,defaultValue:t.id}))),a.createElement("div",{className:"k-form-field"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesCssClass,v.messages[v.keys.tablePropertiesCssClass])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.TextBox,{ref:_,defaultValue:t.className}))),a.createElement("fieldset",{className:"k-form-fieldset"},a.createElement("legend",{className:"k-form-legend"},n.toLanguageString(v.keys.tablePropertiesAccessibility,v.messages[v.keys.tablePropertiesAccessibility])),a.createElement("div",{className:"k-d-grid k-grid-cols-4 k-gap-x-4"},a.createElement("div",{className:"k-form-field k-col-span-full"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesCaption,v.messages[v.keys.tablePropertiesCaption])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.TextBox,{ref:F,defaultValue:t.caption}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesCaptionPosition,v.messages[v.keys.tablePropertiesCaptionPosition])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:U,defaultValue:w.find((function(e){return e.value===t.captionPosition})),data:w.map((function(e){return o(o({},e),{text:n.toLanguageString(e.textKey,e.text)})})),popupSettings:h.popupSettings,textField:"text",dataItemKey:"value",valueRender:f.valueRenderWithIcon,itemRender:f.itemRenderWithIcon}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesCaptionAlignment,v.messages[v.keys.tablePropertiesCaptionAlignment])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:W,defaultValue:y.find((function(e){return e.value===t.captionAlignment})),data:y.map((function(e){return o(o({},e),{text:n.toLanguageString(e.textKey,e.text)})})),popupSettings:h.popupSettings,textField:"text",dataItemKey:"value",valueRender:f.valueRenderWithIcon,itemRender:f.itemRenderWithIcon}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesHeaderRows,v.messages[v.keys.tablePropertiesHeaderRows])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:j,defaultValue:t.headerRows,min:0}))),a.createElement("div",{className:"k-form-field k-col-span-1"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesHeaderCols,v.messages[v.keys.tablePropertiesHeaderCols])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(l.NumericTextBox,{ref:K,defaultValue:t.headerColumns,min:0}))),a.createElement("div",{className:"k-form-field k-col-span-2"},a.createElement("label",{className:"k-label k-form-label"},n.toLanguageString(v.keys.tablePropertiesAssociateHeaders,v.messages[v.keys.tablePropertiesAssociateHeaders])),a.createElement("div",{className:"k-form-field-wrap"},a.createElement(c.DropDownList,{ref:q,defaultValue:k.find((function(e){return e.value===t.associateHeaders})),data:k.map((function(e){return o(o({},e),{text:n.toLanguageString(e.textKey,e.text)})})),popupSettings:h.popupSettings,textField:"text",dataItemKey:"value"})))))))),Y=a.createElement(d.TabStrip,{selected:p,onSelect:z,animation:!1,keepTabsMounted:!0},a.createElement(d.TabStripTab,{title:n.toLanguageString(v.keys.tablePropertiesGeneral,v.messages[v.keys.tablePropertiesGeneral])},G),a.createElement(d.TabStripTab,{title:n.toLanguageString(v.keys.tablePropertiesAdvanced,v.messages[v.keys.tablePropertiesAdvanced])},Z)),J=[a.createElement(s.Button,{themeColor:"primary",key:"save",onClick:$},n.toLanguageString(v.keys.tablePropertiesSave,v.messages[v.keys.tablePropertiesSave])),a.createElement(s.Button,{onClick:e.onClose,key:"cancel"},n.toLanguageString(v.keys.tablePropertiesCancel,v.messages[v.keys.tablePropertiesCancel]))];return a.createElement(u.Window,{className:"k-editor-window k-editor-table-wizard-window",title:n.toLanguageString(v.keys.tableProperties,v.messages[v.keys.tableProperties]),onClose:e.onClose,key:"dialog",style:{userSelect:"none"},width:480,height:630,modal:!0,minimizeButton:function(){return null},maximizeButton:function(){return null},resizable:!1},Y,a.createElement.apply(a,i([u.WindowActionsBar,{layout:"start"}],J,!1)))}},6907:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.applyTableData=t.tableDefaultData=t.tablePositionStyles=t.initialTableData=void 0;var r=n(2696),i=n(3350),a=n(9332),s=n(2226),l={rows:0,columns:0,width:null,widthUnit:"",height:null,heightUnit:"",position:null,textAlign:"",cellPadding:null,cellSpacing:null,backgroundColor:void 0,borderWidth:null,borderColor:void 0,borderStyle:null,collapseBorders:!1,id:"",className:"",caption:"",captionAlignment:null,captionPosition:null,headerRows:0,headerColumns:0,associateHeaders:"none"};t.initialTableData=l;var c={left:{"margin-left":"","margin-right":"auto"},center:{"margin-left":"auto","margin-right":"auto"},right:{"margin-left":"auto","margin-right":""},"":{}};t.tablePositionStyles=c;var u=function(e){for(var t=[],n=0;n<e.height;n++){var o=n*e.width,r=o+e.width;t.push(e.map.slice(o,r))}return t},d=function(e){var t=!0,n=!0;return e.content.forEach((function(e){e.content.forEach((function(e){var o="table_header"===e.type.name,r="table_cell"===e.type.name;o&&!e.attrs.scope&&(t=!1),(o&&!e.attrs.id||r&&!e.attrs.headers)&&(n=!1)}))})),t?"scope":n?"id":"none"};t.tableDefaultData=function(e){var t,n,i,c=(0,a.selectedCells)(e),p=e.selection.$from,h=c.length?(0,s.parentNode)(p,(function(e){return"table"===e.type.spec.tableRole})):null;if(!h)return l;var f=(0,s.parentNode)(p,(function(e){return"table_wrapper"===e.type.name})),m="",v={},g={};f&&(g=(0,a.parseStyle)(f.node.attrs.style),f.node.content.forEach((function(e){if("table_caption_external"===e.type.name){var t=(0,r.pmDocToFragment)(e);m="<img>"===(m=(0,r.fragmentToHtml)(t))?"":m,v=(0,a.parseStyle)(e.attrs.style)}})));var y=(0,a.parseStyle)((null===(t=h.node.attrs)||void 0===t?void 0:t.style)||""),b=r.TableMap.get(h.node),w="auto"===g["margin-left"]&&"auto"===g["margin-right"]?"center":"auto"===g["margin-right"]?"left":"auto"===g["margin-left"]?"right":null,k=function(e,t){var n=0,o=0,r=u(t);r.forEach((function(t){var o=!0;t.forEach((function(t){var n=e.nodeAt(t);n&&"table_header"!==n.type.name&&(o=!1)})),o&&n++}));for(var i=0;i<t.width;i++){for(var a=!0,s=0;s<t.height;s++){var l=r[s]&&r[s][i],c="number"==typeof l&&e.nodeAt(l);c&&"table_header"!==c.type.name&&(a=!1)}a&&o++}return{rows:n,columns:o}}(h.node,b),x=function(e){var t=new Set;return e.content.forEach((function(e){e.content.forEach((function(e){t.add((0,a.parseStyle)(e.attrs.style).padding||"")}))})),1===t.size?Array.from(t)[0]:""}(h.node);return o(o(o(o(o(o({},l),{columns:b.width,rows:b.height}),(0,a.nodeSize)(h.node,"width")),f&&/%/.test(g.width||"")?(0,a.nodeSize)(f.node,"width"):{}),(0,a.nodeSize)(h.node,"height")),{textAlign:y["text-align"]||"",position:w||null,cellPadding:x?parseFloat(x):null,cellSpacing:y["border-spacing"]?parseFloat(y["border-spacing"]):null,backgroundColor:y["background-color"],borderWidth:y["border-width"]?parseFloat(y["border-width"]):null,borderColor:y["border-color"],borderStyle:y["border-style"]||null,collapseBorders:"collapse"===y["border-collapse"],caption:m||void 0,captionAlignment:v["text-align"]||"",captionPosition:v["caption-side"]||null,headerRows:k.rows,headerColumns:k.columns,associateHeaders:k.rows||k.columns?d(h.node):"none",id:(null===(n=h.node.attrs)||void 0===n?void 0:n.id)||"",className:(null===(i=h.node.attrs)||void 0===i?void 0:i.class)||""})};var p=function(e){var t=e.lastChild.lastChild;return{node:t,pos:e.content.size-t.nodeSize}},h=function(e,t,n,o,i){var a=t+p(n).pos;if(!e.doc.nodeAt(a))return e;for(var s=e.doc.resolve(a),l=new r.CellSelection(s,s),c=e.tr.setSelection(l),u=e.apply(c),d=0;d<o;d++)i(u,(function(e){u=u.apply(e)}));return u},f=function(e,t,n,o){for(var i=e,a=0;a<n;a++){var s=i.doc.nodeAt(t);if(s){var l=t+p(s).pos,c=i.doc.resolve(l),u=new r.CellSelection(c,c),d=i.tr.setSelection(u);o(i=i.apply(d),(function(e){i=i.apply(e)}))}}return i},m=function(e,t,n,r,i){if(t.type.name!==r.name||Object.keys(i).length>0){var a=e.tr.setNodeMarkup(n,r,o(o({},t.attrs),i));return e.apply(a)}return e},v=function(e,t){return(0,r.parseContent)("<p>"+e+"</p>",t).content.firstChild.content},g=function(e,t){if(e.caption){var n={caption:"",style:"display: table-caption"};e.captionAlignment&&(n=(0,a.setNodeStyle)(n,"text-align",e.captionAlignment)),e.captionPosition&&(n=(0,a.setNodeStyle)(n,"caption-side",e.captionPosition));var o=v(e.caption,t);return o&&t.nodes.table_caption_external.createAndFill(n,o)||void 0}},y=function(e){return e.firstChild&&"table_caption_external"===e.firstChild.type.name};t.applyTableData=function(e,t){var n=e.selection.$from,l=(0,s.parentNode)(n,(function(e){return"table"===e.type.spec.tableRole}));if(l){var d=n.start(l.depth)-1,p=function(e,t,n,o){var a=e,s=a.doc.nodeAt(t);if(!s)return a;var l=r.TableMap.get(s);return l.width===o&&l.height===n?a:(o>l.width?a=h(a,t,s,o-l.width,r.addColumnAfter):o<l.width&&(a=f(a,t,l.width-o,i.deleteColumnCmd)),(s=a.doc.nodeAt(t))?(n>(l=r.TableMap.get(s)).height?a=h(a,t,s,n-l.height,r.addRowAfter):n<l.height&&(a=f(a,t,l.height-n,i.deleteRowCmd)),a):a)}(e,d,t.rows,t.columns);if(p){var b=p.tr;(0,a.tableCells)(p).forEach((function(e){var n=o({},e.node.attrs);n=(0,a.setNodeStyle)(n,"padding","number"==typeof t.cellPadding?t.cellPadding+"px":""),b.setNodeMarkup(e.pos,null,n)})),p=function(e,t,n){var r=e.doc.nodeAt(n);if(!r)return e;var i=o({},r.attrs),s=null!==t.width&&("%"!==t.widthUnit||!t.caption&&!t.position);i=(0,a.setNodeStyle)(i,"width",s?t.width+t.widthUnit:""),i=(0,a.setNodeStyle)(i,"height",null!==t.height?t.height+t.heightUnit:""),i=(0,a.setNodeStyle)(i,"text-align",t.textAlign||""),i=(0,a.setNodeStyle)(i,"background-color",t.backgroundColor||""),i=(0,a.setNodeStyle)(i,"border-width",t.borderWidth?t.borderWidth+"px":""),i=(0,a.setNodeStyle)(i,"border-style",t.borderStyle||""),i=(0,a.setNodeStyle)(i,"border-color",t.borderColor||""),i=(0,a.setNodeStyle)(i,"border-spacing",null!==t.cellSpacing?t.cellSpacing+"px":""),i=null!==t.cellSpacing?(0,a.setNodeStyle)(i,"border-collapse","unset"):(0,a.setNodeStyle)(i,"border-collapse",t.collapseBorders?"collapse":"");var l=c[t.position||""]||{};Object.keys(l).forEach((function(e){i=(0,a.setNodeStyle)(i,e,l[e])})),i.id=t.id||null,i.class=t.className||null;var u=e.tr.setNodeMarkup(n,null,i);return e.apply(u)}(p=p.apply(b),t,d),p=function(e,t,n){var i=e.doc.nodeAt(n),a=i&&r.TableMap.get(i);if(!i||!a)return e;var s=u(a),l=e,c=e.schema.nodes,d=c.table_header,p=c.table_cell,h=String((new Date).getTime()),f=[],v=function(e,t,n,o){var r=[];if(o)for(var i=0;i<e;i++)f[i]&&f[i][t]&&r.push(f[i][t]);if(n)for(var a=0;a<t;a++)f[e]&&f[e][a]&&r.push(f[e][a]);return r.join(" ")};return s.forEach((function(e,r){e.forEach((function(e,a){var s=i.nodeAt(e);if(s){var c=a<t.headerColumns,u=r<t.headerRows,g=o({},s.attrs);!function(e,t){/^cell-[0-9]+-[0-9]+$/.test(e.attrs.id||"")&&(t.id=null)}(s,g),g.headers=null,g.scope=null,u||c?("scope"===t.associateHeaders&&(g.scope=u?"col":"row"),"id"===t.associateHeaders&&(g.id=function(e,t){var n="cell-".concat(e).concat(t,"-").concat(h);return f[e]||f.push([]),f[e][t]||f[e].push([]),f[e][t]=n,n}(r,a),(a>0||r>0)&&(g.headers=v(r,a,c,u)||null)),l=m(l,s,n+e+1,d,g)):("id"===t.associateHeaders&&(g.headers=v(r,a,t.headerColumns>0,t.headerRows>0)||null),l=m(l,s,n+e+1,p,g))}}))})),l}(p,t,d);var w=(0,s.parentNode)(n,(function(e){return"table_wrapper"===e.type.name})),k=n.start((null==w?void 0:w.depth)||0)-1,x=function(e,t,n,r,i){var s={state:e,pos:n};if(r||!t.position&&!t.caption)r&&(t.position||t.caption||!t.caption&&y(r.node))?(e=function(e,t,n,r){var i=o({},t.attrs);return i=(0,a.setNodeStyle)(i,"margin-left",""),i=(0,a.setNodeStyle)(i,"margin-right",""),Object.keys(r||{}).forEach((function(e){i=(0,a.setNodeStyle)(i,e,(r||{})[e]||"")})),e.apply(e.tr.setNodeMarkup(n,null,i))}(e,r.node,i,t.position&&c[t.position]),e=function(e,t,n,r){var i,s=e,l=n+2,c=n+1,u=s.schema;if(y(t))if(i=t.firstChild,r.caption){var d=v(r.caption,u);if(i=(s=s.apply(s.tr.replaceWith(l,l+i.content.size,d))).doc.nodeAt(c)){var p=o({},i.attrs);p=(0,a.setNodeStyle)(p,"text-align",r.captionAlignment||""),p=(0,a.setNodeStyle)(p,"caption-side",r.captionPosition||""),s=s.apply(s.tr.setNodeAttribute(c,"style",p.style))}}else s=s.apply(s.tr.deleteRange(l,l+i.content.size));else(i=g(r,u))&&(s=s.apply(s.tr.replaceWith(c,c,i)));return s}(e,r.node,i,t),s={state:e,pos:i}):s=!r||t.position||t.caption?{state:e,pos:n}:{state:e,node:r.node,pos:e.selection.$from.start(r.depth)-1};else{var l={table:"",style:"display: table"},u=[],d=t.position,p=d&&c[d];p&&Object.keys(p).forEach((function(e){l=(0,a.setNodeStyle)(l,e,p[e]||"")})),"number"==typeof t.width&&"%"===t.widthUnit&&(l=(0,a.setNodeStyle)(l,"width",t.width+t.widthUnit));var h=g(t,e.schema);h&&u.push(h);var f=e.doc.nodeAt(n);u.push(f);var m=e.schema.nodes.table_wrapper.createAndFill(l,u);if(m){var b=e.tr.replaceWith(n,n+f.content.size,m);s={state:e=e.apply(b),pos:n}}}var w=r&&s.state.doc.nodeAt(i);if(w){var k=void 0;"number"==typeof t.width&&"%"===t.widthUnit?k=(0,a.setNodeStyle)(w.attrs,"width",t.width+t.widthUnit):"%"!==t.widthUnit&&/%/.test((0,a.parseStyle)(w.attrs.style||"").width||"")&&(k=(0,a.setNodeStyle)(w.attrs,"width","")),k&&(s.state=s.state.apply(s.state.tr.setNodeMarkup(i,null,k)))}return s}(p,t,d,w,k);p=x.state;var z=x.pos,C=p.doc.nodeAt(x.pos);if(C){var S=z+(w||l).node.content.size,I=e.tr.replaceWith(z,S,C),M=r.Selection.atEnd(C),E=r.TextSelection.create(I.doc,z+M.to+1);return I.setSelection(E),I}}}}},9332:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.tableCells=t.selectedCells=t.setNodeStyle=t.parseStyle=t.nodeSize=t.getUnit=t.reUnit=void 0;var r=n(2696),i=n(2226);t.reUnit=/[\D]+$/,t.getUnit=function(e){var n=e.match(t.reUnit);return n?n[0]:""},t.nodeSize=function(e,n){var o,r,i=(0,t.parseStyle)((null===(r=e.attrs)||void 0===r?void 0:r.style)||"")[n]||"";return(o={})[n]=parseFloat(i)||null,o[n+"Unit"]=(0,t.getUnit)(i),o},t.parseStyle=function(e){return(e||"").split(/\s*;\s*/).filter(Boolean).map((function(e){var t,n=e.split(/\s*:\s*/);return(t={})[n[0]]=n[1],t})).reduce((function(e,t){return o(o({},e),t)}),{})};var a=/^.+$/;t.setNodeStyle=function(e,n,r){var i;if(new RegExp("[^-]?"+n+":").test(e.style||"")){var s=function(e,t){var n=t.style,o=t.value,r=t.newValue;if(!e)return{changed:!1,style:null};var i=e.split(/\s*;\s*/).filter((function(e){return Boolean(e)})),a=i.filter((function(e){var t=e.split(/\s*:\s*/);return!(t[0].toLowerCase()===n&&o.test(t[1]))}));return r&&a.push("".concat(n,": ").concat(r)),{style:a.join("; ")+(a.length?";":""),changed:Boolean(r)||a.length!==i.length}}(e.style||"",{style:n,value:a,newValue:r}).style;i=o(o({},e),{style:s})}else if(e.style){var l=(0,t.parseStyle)(e.style);l[n]=r,i=o(o({},e),{style:Object.keys(l).filter((function(e){return Boolean(l[e])})).reduce((function(e,t){return e+t+": "+l[t]+"; "}),"").trim()})}else i=r?o(o({},e),{style:n+": "+r+";"}):o({},e);return i},t.selectedCells=function(e){var t=(0,i.parentNode)(e.selection.$from,(function(e){return"table"===e.type.name})),n=(0,i.parentNode)(e.selection.$to,(function(e){return"table"===e.type.name}));return t&&n&&t.depth===n.depth&&t.node.eq(n.node)?function(e){var t=e.doc,n=e.selection,o=[];return n.ranges.forEach((function(e){var n=e.$from.pos,r=e.$to.pos;t.nodesBetween(n,r,(function(e,t,n,r){"table_cell"!==e.type.name&&"table_header"!==e.type.name||o.push({node:e,pos:t})}))})),o}(e).filter((function(n){var o=n.pos,r=(0,i.parentNode)(e.doc.resolve(o),(function(e){return"table"===e.type.name}));return r&&r.depth===t.depth&&t.node.eq(r.node)})):[]},t.tableCells=function(e){var n=[];if((0,t.selectedCells)(e).length){var o=e.selection.$from,a=(0,i.parentNode)(o,(function(e){return"table"===e.type.spec.tableRole}));if(null===a)return n;var s=o.start(a.depth),l=a.node,c=r.TableMap.get(l),u=e.doc;c.map.forEach((function(e){var t=e+s;n.push({pos:t,node:u.nodeAt(t)})}))}return n}},3350:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TableEditNS=t.deleteRowCmd=t.deleteColumnCmd=void 0;var o,r=n(2696),i=n(8980);t.deleteColumnCmd=function(e,t){var n=(0,r.deleteColumn)(e,t);if(n&&!t){var o=(0,r.selectionCell)(e),i=o&&o.node(o.depth);if(i&&1===i.content.childCount)return!1}return n},t.deleteRowCmd=function(e,t){var n=(0,r.deleteRow)(e,t);if(n&&!t){var o=(0,r.selectionCell)(e),i=o&&o.node(o.depth-1);if(i&&1===i.content.childCount)return!1}return n},(o=t.TableEditNS||(t.TableEditNS={})).createAddRowBeforeTool=function(e){return(0,i.createProseMirrorTool)(e,r.addRowBefore)},o.createAddRowAfterTool=function(e){return(0,i.createProseMirrorTool)(e,r.addRowAfter)},o.createAddColumnBeforeTool=function(e){return(0,i.createProseMirrorTool)(e,r.addColumnBefore)},o.createAddColumnAfterTool=function(e){return(0,i.createProseMirrorTool)(e,r.addColumnAfter)},o.createDeleteRowTool=function(e){return(0,i.createProseMirrorTool)(e,t.deleteRowCmd)},o.createDeleteColumnTool=function(e){return(0,i.createProseMirrorTool)(e,t.deleteColumnCmd)},o.createDeleteTableTool=function(e){return(0,i.createProseMirrorTool)(e,r.deleteTable)},o.createMergeCellsTool=function(e){return(0,i.createProseMirrorTool)(e,r.mergeCells)},o.createSplitCellTool=function(e){return(0,i.createProseMirrorTool)(e,r.splitCell)}},8389:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkToolNS=void 0;var s=n(3899),l=n(2888),c=n(2696),u=n(2226),d=n(499),p=n(3364),h=n(1262);(t.UnlinkToolNS||(t.UnlinkToolNS={})).createUnlinkTool=function(e){var t=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),f={mark:e.mark},m=!!n&&(0,c.hasMark)(n.state,f),v=(0,d.provideLocalizationService)(this),g=e.messages.title,y=!m,b=s.createElement(l.Button,i({onClick:y?void 0:function(){return n&&(0,c.removeLink)(f,n.state.tr.setMeta("commandName",e.commandName))(n.state,n.dispatch)},"aria-disabled":!!y||void 0},u.onDownPreventDefault,{title:v.toLanguageString(g,p.messages[g])},e.props,r,{className:(0,h.classNames)(r.className,e.props.className,{"k-disabled":y})}));return o?o.call(void 0,b,{view:n}):b},n}(s.Component);return(0,d.registerForLocalization)(t),t}},2226:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.parentNode=t.userSelectNone=t.popupSettings=t.borderStyles=t.units=t.itemRender=t.formatString=t.onDownPreventDefault=void 0;var o=n(3899),r=n(3364);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},t.itemRender=function(e,t){return t.dataItem.style?o.cloneElement(e,e.props,o.createElement("span",{style:t.dataItem.style},e.props.children)):e},t.units=["px","em","%"],t.popupSettings={animate:{openDuration:150,closeDuration:150}};var i=[{textKey:r.keys.borderStyleNone,text:r.messages[r.keys.borderStyleNone],value:"none"},{textKey:r.keys.borderStyleSolid,text:r.messages[r.keys.borderStyleSolid],value:"solid"},{textKey:r.keys.borderStyleDotted,text:r.messages[r.keys.borderStyleDotted],value:"dotted"},{textKey:r.keys.borderStyleDashed,text:r.messages[r.keys.borderStyleDashed],value:"dashed"},{textKey:r.keys.borderStyleDouble,text:r.messages[r.keys.borderStyleDouble],value:"double"},{textKey:r.keys.borderStyleGroove,text:r.messages[r.keys.borderStyleGroove],value:"groove"},{textKey:r.keys.borderStyleRidge,text:r.messages[r.keys.borderStyleRidge],value:"ridge"},{textKey:r.keys.borderStyleInset,text:r.messages[r.keys.borderStyleInset],value:"inset"},{textKey:r.keys.borderStyleOutset,text:r.messages[r.keys.borderStyleOutset],value:"outset"},{textKey:r.keys.borderStyleInitial,text:r.messages[r.keys.borderStyleInitial],value:"initial"},{textKey:r.keys.borderStyleInherit,text:r.messages[r.keys.borderStyleInherit],value:"inherit"},{textKey:r.keys.borderStyleHidden,text:r.messages[r.keys.borderStyleHidden],value:"hidden"}];t.borderStyles=i,t.parentNode=function(e,t){for(var n=e.depth;n>0;n--){var o=e.node(n);if(t(o))return{node:o,depth:n}}return null}},7306:function(e,t,n){var o,r=this&&this.__extends||(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlToolNS=void 0;var s=n(3899),l=n(2888),c=n(2226),u=n(3695),d=n(499),p=n(3364);(t.ViewHtmlToolNS||(t.ViewHtmlToolNS={})).createViewHtmlTool=function(e){var t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={openedDialog:!1},e.toggleDialog=function(){e.setState({openedDialog:!e.state.openedDialog})},e}return r(n,t),n.prototype.render=function(){var t=this.props,n=t.view,o=t.render,r=a(t,["view","render"]),h=(0,d.provideLocalizationService)(this),f=e.messages.viewHtml,m=[s.createElement(l.Button,i({onClick:this.toggleDialog,key:"viewHtml"},c.onDownPreventDefault,{title:h.toLanguageString(f,p.messages[f])},e.props,r)),this.state.openedDialog&&n&&s.createElement(u.EditorDialogs.ViewHtmlDialog,{key:"viewHtmlDialog",view:n,settings:e,dir:r.dir,onClose:this.toggleDialog})||null];return o?o.call(void 0,m,{view:n}):m},n}(s.Component);return(0,d.registerForLocalization)(t),t}},3131:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},1457:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;var o=n(2696),r=n(5538),i=function(e,t){var n=t.tr||e.state.tr.setSelection(new o.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,o,r){"string"==typeof t?o&&t===r?i(e,{tr:o}):t!==n&&i(e,{html:t}):o&&t.eq(o.doc)?i(e,{tr:o}):e.state.doc.eq(t)||i(e,{doc:t})}},5538:function(e,t,n){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var r,i=n(4394),a=n(2346),s=n(2696),l=n(580);(r=t.EditorUtils||(t.EditorUtils={})).alignBlocks=function(e,t,n){return Boolean((0,s.alignBlocks)(t,n)(e.state,e.dispatch))},r.applyInlineStyle=function(e,t,n){return(0,s.applyInlineStyle)(t,n)(e.state,e.dispatch)},r.applyLink=function(e,t,n){return(0,s.applyLink)(t,n)(e.state,e.dispatch)},r.canIndentList=function(e,t){return(0,s.canIndentAsListItem)(e,t)},r.canInsert=function(e,t){return(0,s.canInsert)(e,t)},r.canOutdentList=function(e,t){return(0,s.canOutdentAsListItem)(e,{listsTypes:t,nodes:[]})},r.convertMsLists=function(e){return(0,s.convertMsLists)(e)},r.createDocument=function(e,t,n){return(0,s.parseContent)((0,s.trimWhitespace)(t),e,void 0!==n?n:{preserveWhitespace:"full"})},r.createTable=function(e,t,n){return(0,s.createTable)(e,t,n)},r.formatBlockElements=function(e,t,n){return(0,s.formatBlockElements)(t,n)(e.state,e.dispatch)},r.getBlockFormats=function(e){return(0,s.getBlockFormats)(e)},r.getHtml=function(e){return(0,s.getHtml)(e)},r.getInlineStyles=function(e,t){return(0,s.getInlineStyles)(e,t)},r.getMark=function(e,t){return(0,s.getMark)(e,t)},r.hasMark=function(e,t){return(0,s.hasMark)(e,t)},r.hasNode=function(e,t){return(0,s.hasNode)(e,t)},r.indentBlocks=function(e,t,n,o){return Boolean((0,s.indentBlocks)(t,n,o)(e.state,e.dispatch))},r.indentHtml=function(e){return(0,s.indentHtml)(e)},r.insertNode=function(e,t,n){(0,s.insertNode)(t,n)(e.state,e.dispatch)},r.isAligned=function(e,t){return(0,s.isAligned)(e,t)},r.isIndented=function(e,t,n){return(0,s.isIndented)(e,t,n)},r.removeComments=function(e){return(0,s.removeComments)(e)},r.removeTag=function(e,t){return(0,s.removeTag)(e,t)},r.pasteCleanup=function(e,t){return(0,s.pasteCleanup)(e,t)},r.sanitizeClassAttr=function(e){(0,s.sanitizeClassAttr)(e)},r.sanitizeStyleAttr=function(e){(0,s.sanitizeStyleAttr)(e)},r.removeAttribute=function(e){(0,s.removeAttribute)(e)},r.sanitize=function(e){return(0,s.sanitize)(e)},r.replaceImageSourcesFromRtf=function(e,t){return(0,s.replaceImageSourcesFromRtf)(e,t)},r.textHighlight=function(e){return(0,s.textHighlight)(e)},r.imageResizing=function(e){return(0,s.imageResizing)(e)},r.tableResizing=function(){return(0,s.tableResizing)()},r.setHtml=function(e,t,n,o){var r=(0,s.trimWhitespace)(t);(0,s.setHtml)(r,n,o)(e.state,e.dispatch)},r.toggleInlineFormat=function(e,t,n,o){return(0,s.toggleInlineFormat)(t,n,o)(e.state,e.dispatch)},r.toggleList=function(e,t,n){return(0,s.toggleList)(e.state,e.dispatch,e,t,n)},r.getShortcuts=function(e){return i.getShortcuts(e)},r.propsKey=l.editorPropsKey,r.imageResizeKey=s.imageResizeKey,r.marks=o({},a.marks),r.nodes=o({},a.nodes)},580:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;var o=n(2696);t.editorPropsKey=new o.PluginKey("editor-props")},4343:(e,t,n)=>{n.d(t,{f:()=>b});var o,r=n(3899),i=n(189),a=n(8047),s=n(3228),l=n(6144),c=n(9013),u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=c.Z.styles,h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elementRef=r.createRef(),t}return u(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.elementRef.current},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.children,o=t.style,i=t.appear,s=t.enter,c=t.exit,u=t.transitionName,h=t.transitionEnterDuration,f=t.transitionExitDuration,m=t.className,v=t.onEnter,g=t.onEntering,y=t.onEntered,b=t.onExit,w=t.onExiting,k=t.onExited,x=t.onAfterExited,z=t.mountOnEnter,C=t.unmountOnExit,S=t.animationEnteringStyle,I=t.animationEnteredStyle,M=t.animationExitingStyle,E=t.animationExitedStyle,O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["children","style","appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","onAfterExited","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),H=(0,a.A)(m,p["child-animation-container"]),N=d({transitionDelay:"0ms"},o),P={entering:d({transitionDuration:"".concat(h,"ms")},S),entered:d({},I),exiting:d({transitionDuration:"".concat(f,"ms")},M),exited:d({},E)},V={in:this.props.in,appear:i,enter:s,exit:c,mountOnEnter:z,unmountOnExit:C,timeout:{enter:h,exit:f},onEnter:function(){v&&v.call(void 0,{animatedElement:e.element,target:e})},onEntering:function(){g&&g.call(void 0,{animatedElement:e.element,target:e})},onEntered:function(){y&&y.call(void 0,{animatedElement:e.element,target:e})},onExit:function(){b&&b.call(void 0,{animatedElement:e.element,target:e})},onExiting:function(){w&&w.call(void 0,{animatedElement:e.element,target:e})},onExited:function(){x&&x.call(void 0,{animatedElement:e.element,target:e}),k&&k.call(void 0,{animatedElement:e.element,target:e})},classNames:{appear:p["".concat(u,"-appear")]||"".concat(u,"-appear"),appearActive:p["".concat(u,"-appear-active")]||"".concat(u,"-appear-active"),enter:p["".concat(u,"-enter")]||"".concat(u,"-enter"),enterActive:p["".concat(u,"-enter-active")]||"".concat(u,"-enter-active"),exit:p["".concat(u,"-exit")]||"".concat(u,"-exit"),exitActive:p["".concat(u,"-exit-active")]||"".concat(u,"-exit-active")}};return r.createElement(l.CSSTransition,d({},V,O,{nodeRef:this.elementRef}),(function(t){return r.createElement("div",{style:d(d({},N),P[t]),className:H,ref:e.elementRef},n)}))},t.propTypes={in:i.bool,children:i.oneOfType([i.arrayOf(i.node),i.node]),transitionName:i.string.isRequired,className:i.string,appear:i.bool,enter:i.bool,exit:i.bool,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired,mountOnEnter:i.bool,unmountOnExit:i.bool,animationEnteringStyle:i.object,animationEnteredStyle:i.object,animationExitingStyle:i.object,animationExitedStyle:i.object},t.defaultProps={mountOnEnter:!0,unmountOnExit:!1,onEnter:s.Z,onEntering:s.Z,onEntered:s.Z,onExit:s.Z,onExiting:s.Z,onExited:s.Z,onAfterExited:s.Z,animationEnteringStyle:{},animationEnteredStyle:{},animationExitingStyle:{},animationExitedStyle:{}},t}(r.Component),f=n(4006),m={name:"@progress/kendo-react-animation",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700059672,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},v=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),g=function(){return g=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},y=c.Z.styles,b=function(e){function t(t){var n=e.call(this,t)||this;return(0,f.s)(m),n}return v(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.style,o=e.children,i=e.component,s=e.className,c=e.childFactory,u=(e.stackChildren,e.componentChildStyle),d=e.componentChildClassName,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["id","style","children","component","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),f={id:t,style:n,component:i,childFactory:c,className:(0,a.A)(y["animation-container"],y["animation-container-relative"],s)},m=r.Children.map(o||null,(function(e){return r.createElement(h,g({},p,{style:u,className:d}),e)}));return r.createElement(l.TransitionGroup,g({},f),m)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,component:i.string,id:i.string,style:i.any,transitionName:i.string.isRequired,appear:i.bool.isRequired,enter:i.bool.isRequired,exit:i.bool.isRequired,transitionEnterDuration:i.number.isRequired,transitionExitDuration:i.number.isRequired},t.defaultProps={component:"div"},t}(r.Component)},8686:(e,t,n)=>{n.d(t,{U:()=>d});var o,r=n(3899),i=n(189),a=n(4343),s=n(3228),l=n(9013),c=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return u=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u.apply(this,arguments)},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={maxHeight:void 0,maxWidth:void 0},t.componentWillEnter=function(e){var n=t.props,o=n.onEnter,r=n.onBeforeEnter;r&&r.call(void 0,e),t.updateContainerDimensions(e.animatedElement,(function(){o&&o.call(void 0,e)}))},t.componentIsEntering=function(e){var n=t.props.onEntering;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.componentWillExit=function(e){var n=t.props.onExit;t.updateContainerDimensions(e.animatedElement,(function(){n&&n.call(void 0,e)}))},t.updateContainerDimensions=function(e,n){void 0===n&&(n=s.Z);var o=e.firstChild;if(o){var r=l.Z.outerHeight(o),i=l.Z.outerWidth(o);t.setState({maxHeight:r,maxWidth:i},n)}},t}return c(t,e),t.prototype.render=function(){var e,t=this.props,n=t.direction,o=t.children,i=t.childFactory,s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["direction","children","childFactory"]),l=this.state,c=l.maxHeight,d=l.maxWidth,p={maxHeight:(e="vertical"===n?{maxHeight:c?"".concat(c,"px"):""}:{maxWidth:d?"".concat(d,"px"):""}).maxHeight,maxWidth:e.maxWidth};return r.createElement(a.f,u({},s,{childFactory:function(t){var n=i?i(t):t;return n.props.in?n:r.cloneElement(n,u(u({},n.props),{style:u(u({},n.props.style),{maxHeight:e.maxHeight,maxWidth:e.maxWidth})}))},onEnter:this.componentWillEnter,onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:p,transitionName:"reveal-".concat(n)}),o)},t.propTypes={children:i.oneOfType([i.arrayOf(i.node),i.node]),childFactory:i.any,className:i.string,direction:i.oneOf(["horizontal","vertical"]),component:i.string,id:i.string,style:i.any},t.defaultProps={appear:!1,enter:!0,exit:!0,transitionEnterDuration:300,transitionExitDuration:300,direction:"vertical"},t}(r.Component)},9013:(e,t,n)=>{n.d(t,{Z:()=>o});const o={outerHeight:function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),o=parseFloat(t.marginBottom);return e.offsetHeight+n+o},outerWidth:function(e){if(!e||!e.ownerDocument.defaultView)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),o=parseFloat(t.marginRight);return e.offsetWidth+n+o},styles:{"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"}}},7037:(e,t,n)=>{n.d(t,{z:()=>f});var o,r=n(3899),i=n(189),a=n(8130),s=n(8047),l=n(2697),c=n(3218),u=n(4006),d=n(2709),p=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){return h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},h.apply(this,arguments)},f=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.handleClick=function(e){n.toggleIfApplicable(),n.props.onClick&&n.props.onClick.call(void 0,e)},(0,u.s)(d.k),n.state={selected:!0===n.props.togglable&&!0===n.props.selected},n}return p(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return void 0!==this._selectedTemp?this._selectedTemp:this.state.selected},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.togglable&&void 0!==e.selected&&e.selected!==t.selected?{selected:e.selected}:null},t.prototype.render=function(){var e,n=this,o=this.props,i=o.children,c=o.togglable,u=o.icon,d=o.iconClass,p=o.svgIcon,f=o.imageUrl,m=o.imageAlt,v=(o.className,o.onClick,o.size),g=void 0===v?t.defaultProps.size:v,y=o.rounded,b=void 0===y?t.defaultProps.rounded:y,w=o.fillMode,k=void 0===w?t.defaultProps.fillMode:w,x=o.themeColor,z=void 0===x?t.defaultProps.themeColor:x,C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(o,["children","togglable","icon","iconClass","svgIcon","imageUrl","imageAlt","className","onClick","size","rounded","fillMode","themeColor"]),S=void 0!==p||void 0!==u||void 0!==d||void 0!==f,I=void 0!==i,M=function(e){var t=e.imageUrl,n=e.name,o=e.iconClass,i=e.svgIcon,l=e.imageAlt;return t?r.createElement("img",{role:"presentation",className:"k-button-icon",alt:l,src:t}):n||i?r.createElement(a.a,{className:"k-button-icon",name:n,icon:i}):o?r.createElement("span",{role:"presentation",className:(0,s.A)("k-button-icon",o)}):null}({name:u,svgIcon:p,iconClass:d,imageUrl:f,imageAlt:m});return r.createElement("button",h({ref:function(e){return n._element=e},"aria-pressed":c?this.state.selected:void 0},C,{onClick:this.handleClick,className:(0,s.A)("k-button",(e={},e["k-button-".concat(l.G.sizeMap[g]||g)]=g,e["k-button-".concat(k)]=k,e["k-button-".concat(k,"-").concat(z)]=Boolean(k&&z),e["k-rounded-".concat(l.G.roundedMap[b]||b)]=b,e["k-icon-button"]=!I&&S,e["k-disabled"]=this.props.disabled,e["k-selected"]=this.state.selected,e["k-rtl"]="rtl"===this.props.dir,e),this.props.className)}),M,i&&r.createElement("span",{className:"k-button-text"},i))},t.prototype.toggleIfApplicable=function(){var e=this;if(this.props.togglable&&void 0===this.props.selected){var t=!this.state.selected;this._selectedTemp=t,this.setState({selected:t},(function(){return e._selectedTemp=void 0}))}},t.propTypes={children:i.node,selected:i.bool,togglable:i.bool,icon:i.string,svgIcon:c.wi,iconClass:i.string,imageUrl:i.string,imageAlt:i.string,size:i.oneOf([null,"small","medium","large"]),rounded:i.oneOf([null,"small","medium","large","full"]),fillMode:i.oneOf([null,"flat","link","outline","solid"]),themeColor:i.oneOf([null,"base","primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"])},t.defaultProps={togglable:!1,size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(r.Component)},7711:(e,t,n)=>{n.d(t,{h:()=>h});var o,r=n(3899),i=n(189),a=n(8047),s=n(4006),l=n(2709),c=n(1889),u=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=c.Z.styles,h=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,(0,s.s)(l.k),n}return u(t,e),t.prototype.render=function(){var e,t=this,n=this.mapButtons(this.props.children),o=(0,a.A)([p["button-group"]],((e={})["k-disabled"]=this.props.disabled,e[p["button-group-stretched"]]=!!this.props.width,e),this.props.className),i={className:o,style:{width:"".concat(this.props.width)},dir:this.props.dir,role:"group","aria-disabled":this.props.disabled};return r.createElement("div",d({ref:function(e){t._element=e}},i,{className:o}),n)},t.prototype.mapButtons=function(e){var t=this,n=r.Children.count(e),o=void 0!==this.props.dir?"rtl"===this.props.dir:this._element&&"rtl"===getComputedStyle(this._element).direction||!1;return r.Children.map(e,(function(e,i){return r.isValidElement(e)?t.renderButton(e,i,i===n-1,o):e}))},t.prototype.renderButton=function(e,t,n,o){var i,s=(0,a.A)(e.props.className,((i={})[p["group-start"]]=o?n:0===t,i[p["group-end"]]=o?0===t:n,i)),l=d(d({},this.props.width?{width:this.props.width}:{}),e.props.style||{}),c=this.props.disabled||e.props.disabled,u=d(d(d(d({},e.props),s?{className:s}:{}),Object.keys(l).length?{style:l}:{}),void 0!==c?{disabled:c}:{});return r.Children.count(e.props.children)>0?r.cloneElement(e,u,e.props.children):r.cloneElement(e,u)},t.propTypes={children:i.oneOfType([i.arrayOf(i.element),i.element]),className:i.string,disabled:i.bool,width:i.string,dir:i.string},t}(r.Component)},1711:(e,t,n)=>{n.d(t,{A:()=>k});var o=n(3899),r=n(189),i=n(228),a=n(8199),s=n(3493),l=n(4703),c=n(8047),u=n(2697),d=n(8130),p=n(3218),h=n(6785),f=n(4163),m=n(5770),v=n(5209),g=n(4006),y=n(2709),b=n(3322),w=function(){return w=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},w.apply(this,arguments)},k=o.forwardRef((function(e,t){var n;(0,g.s)(y.k);var r=o.useRef(null),k=o.useRef(null),x=(0,a.n)(k,e.dir);o.useImperativeHandle(r,(function(){return{element:k.current,props:e}})),o.useImperativeHandle(t,(function(){return r.current}));var z=o.useContext(i.Wn),C=z[0],S=z[1],I=o.useContext(i.OW),M=I[0],E=I[1],O=o.useContext(i.zD)[1],H=o.useMemo((function(){return e.selected||(Array.isArray(C)?C.some((function(t){return t===e.value})):C===e.value)}),[e.selected,e.value,C]),N=o.useMemo((function(){return M===e.value}),[e.value,M]);o.useEffect((function(){N&&k.current&&k.current.focus()}),[N]);var P=o.useCallback((function(t){S({type:v.ey.toggle,payload:e.value,event:t})}),[S,e.value]),V=o.useCallback((function(t){e.removable&&(O({type:m.V.remove,payload:e.value,event:t}),E({type:f.E.reset,payload:e.value,event:t}),S({type:v.ey.remove,payload:e.value,event:t}),e.onRemove&&e.onRemove.call(void 0,{target:r.current,syntheticEvent:t}))}),[e.onRemove,e.value,e.removable,O,E,S]),T=o.useCallback((function(t){switch(t.keyCode){case s.R.left:E({type:f.E.prev,payload:e.value,event:t});break;case s.R.right:E({type:f.E.next,payload:e.value,event:t});break;case s.R.enter:S({type:v.ey.toggle,payload:e.value,event:t});break;case s.R.delete:V(t)}e.onKeyDown&&e.onKeyDown.call(void 0,{target:r.current,syntheticEvent:t})}),[e.onKeyDown,e.value,E,S,V]),R=o.useCallback((function(t){E({payload:e.value,type:f.E.current,event:t}),e.onFocus&&e.onFocus.call(void 0,{target:r.current,syntheticEvent:t})}),[e.onFocus,e.value,E]),D=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:r.current,syntheticEvent:t})}),[e.onBlur]),B=(0,b.i)(e,r,{onClick:P});return o.createElement("div",w({},B,{role:e.role,id:e.value,style:e.style,ref:k,dir:x,tabIndex:(0,l.p)(e.tabIndex,e.disabled,void 0),className:(0,c.A)("k-chip",(n={"k-rtl":"rtl"===x,"k-disabled":e.disabled,"k-selected":H,"k-focus":N},n["k-chip-".concat(u.G.sizeMap[e.size]||e.size)]=e.size,n["k-rounded-".concat(u.G.roundedMap[e.rounded]||e.rounded)]=e.rounded,n["k-chip-".concat(e.fillMode)]=e.fillMode,n["k-chip-".concat(e.fillMode,"-").concat(e.themeColor)]=Boolean(e.fillMode&&e.themeColor),n),e.className),"aria-checked":H,"aria-disabled":e.disabled,"aria-describedby":e.ariaDescribedBy,onFocus:R,onBlur:D,onKeyDown:T}),H&&(e.selectedIcon||e.selectedSvgIcon)&&o.createElement(d.a,{className:"k-chip-icon",name:e.selectedIcon?(0,p.iJ)(e.selectedIcon):void 0,icon:e.selectedSvgIcon,size:"small"}),(e.icon||e.svgIcon)&&o.createElement(d.a,{className:"k-chip-icon",name:e.icon?(0,p.iJ)(e.icon):void 0,icon:e.svgIcon,size:"small"}),e.avatar&&o.createElement("div",{className:"k-chip-avatar k-avatar k-rounded-".concat(e.avatar.rounded," k-avatar-md k-avatar-solid k-avatar-solid-primary"),style:e.avatar.style},o.createElement("span",{className:"k-avatar-image"},o.createElement("img",{src:e.avatar.image,alt:e.avatar.imageAlt}))),o.createElement("span",{className:"k-chip-content"},void 0!==e.children?e.children:e.text&&o.createElement("span",{"aria-label":e.ariaLabel||e.text,className:"k-chip-label"},e.text)),e.removable&&o.createElement("span",{className:"k-chip-actions"},o.createElement("span",{className:(0,c.A)("k-chip-action","k-chip-remove-action"),onClick:V},o.createElement(d.a,{name:e.removeIcon?(0,p.iJ)(e.removeIcon):void 0,icon:e.removeSvgIcon||h.jKn,size:"small"}))))})),x={id:r.string,text:r.string,value:r.any,dir:r.oneOf(["ltr","rtl"]),removable:r.bool,removeIcon:r.string,removeIconSvg:p.wi,disabled:r.bool,icon:r.string,svgIcon:p.wi,selectedIcon:r.string,selectedIconSvg:p.wi,onRemove:r.func,dataItem:r.any,selected:r.bool,ariaDescribedBy:r.string,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"outline","solid"]),themeColor:r.oneOf([null,"base","info","success","warning","error"])};k.displayName="KendoReactChip",k.propTypes=x,k.defaultProps={disabled:!1,removable:!1,removeIcon:"k-i-x-circle",dir:"ltr",size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"}},228:(e,t,n)=>{n.d(t,{Wn:()=>y,OW:()=>b,zD:()=>w,jg:()=>k});var o=n(3899),r=n(189),i=n(8199),a=n(9659),s=n(3322),l=n(4703),c=n(8047),u=n(2697),d=n(5209),p=n(4163),h=n(5770),f=n(1711),m=n(4006),v=n(2709),g=function(){return g=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},y=o.createContext([null,function(e){}]),b=o.createContext([null,function(e){}]),w=o.createContext([null,function(e){}]),k=o.forwardRef((function(e,t){var n;(0,m.s)(v.k);var r=o.useRef(null),k=o.useRef(null),x=(0,i.n)(k,e.dir),C=e.chip,S=e.id,I=e.style,M=e.tabIndex,E=e.disabled,O=e.size,H=e.className,N=e.ariaDescribedBy,P=e.ariaLabelledBy,V=e.selection,T=void 0===V?z.selection:V,R=e.value,D=void 0===R?z.defaultValue:R,B=e.defaultData,A=void 0===B?z.defaultData:B,L=e.valueField,_=void 0===L?z.valueField:L,F=e.textField,j=void 0===F?z.textField:F,K=e.onChange,W=e.onDataChange,U=o.useMemo((function(){return C||f.A}),[C,f.A]);o.useImperativeHandle(r,(function(){return{element:k.current,props:e}})),o.useImperativeHandle(t,(function(){return r.current}));var q=o.useCallback((function(e,t){K&&r.current&&K.call(void 0,{value:e,target:r.current,syntheticEvent:t})}),[K]),$=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var o=(0,d.TX)(t.state||i,g(g({},e),t));n&&n(o,e.event),a(o)}]}(D,{selection:T,state:D},q),G=$[0],Z=$[1],Y=o.useCallback((function(e,t){W&&r.current&&W.call(void 0,{value:e,target:r.current,syntheticEvent:t})}),[W]),J=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var o=(0,h.I)(t.state||i,g(g({},e),t));n&&n(o,e.event),a(o)}]}(e.data||A,{state:e.data,valueField:_},Y),X=J[0],Q=J[1],ee=o.useCallback((function(e,t){return e.push(t[_]),e}),[_]),te=o.useMemo((function(){return e.data||X}),[e.data,X]),ne=o.useMemo((function(){return D||G}),[D,G]),oe=o.useMemo((function(){return te.reduce(ee,[])}),[te,ee]),re=o.useCallback((function(e){return(0,a.Y)(_)(e)}),[_]),ie=o.useCallback((function(e){return(0,a.Y)(j)(e)}),[j]),ae=function(e){var t=o.useState(null),n=t[0],r=t[1];return[n,function(t){var n=(0,p.L)(t.payload,g(g({},t),e));r(n)}]}({items:oe}),se=ae[0],le=ae[1],ce=(0,s.i)(e,r);return o.createElement(y.Provider,{value:[ne,Z]},o.createElement(b.Provider,{value:[se,le]},o.createElement(w.Provider,{value:[te,Q]},o.createElement("div",g({ref:k},ce,{role:"listbox",id:S,dir:x,style:I,tabIndex:(0,l.p)(M,E,void 0),className:(0,c.A)("k-chip-list",(n={"k-rtl":"rtl"===x,"k-disabled":E},n["k-chip-list-".concat(u.G.sizeMap[O]||O)]=O,n),H),"aria-labelledby":P,"aria-describedby":N}),te.map((function(e,t){return o.createElement(U,{role:"option",dataItem:e,size:O,key:[re(e),t].join("-"),text:ie(e),value:re(e),ariaLabel:e.ariaLabel,svgIcon:e.svgIcon||void 0})}))))))})),x={id:r.string,className:r.string,tabIndex:r.number,data:r.any,defaultData:r.arrayOf(r.any),onDataChange:r.func,value:r.oneOfType([r.any,r.arrayOf(r.any)]),defaultValue:r.oneOfType([r.any,r.arrayOf(r.any)]),onChange:r.func,selection:r.oneOf(["single","none","multiple"]),textField:r.string,valueField:r.string,disabled:r.bool,dir:r.oneOf(["ltr","rtl"]),ariaLabelledBy:r.string,ariaDescribedBy:r.string,size:r.oneOf([null,"small","medium","large"])},z={chip:f.A,size:"medium",disabled:!1,defaultValue:null,defaultData:[],dir:"ltr",selection:"none",textField:"text",valueField:"value",removable:"removable"};k.displayName="KendoReactChipList",k.propTypes=x,k.defaultProps=z},5770:(e,t,n)=>{var o;n.d(t,{V:()=>o,I:()=>r}),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(o||(o={}));var r=function(e,t){switch(t.type){case o.add:break;case o.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case o.reorder:break;default:return e}}},4163:(e,t,n)=>{var o;n.d(t,{E:()=>o,L:()=>r}),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(o||(o={}));var r=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case o.next:return n===t.items.length-1?e:t.items[n+1];case o.prev:return 0===n?e:t.items[n-1];case o.current:return t.payload;case o.reset:return null;default:return e}}},5209:(e,t,n)=>{n.d(t,{ey:()=>r,TX:()=>a});var o,r,i=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(o||(o={})),function(e){e.toggle="toggle",e.remove="remove"}(r||(r={}));var a=function(e,t){switch(t.selection){case o.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 o.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})):i(i([],e,!0),[t.payload],!1);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})):i(i([],e,!0),[t.payload],!1):e;default:return e}case o.none:return null;default:return e}}},2888:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>o.z,ButtonGroup:()=>r.h,Chip:()=>j.A,ChipList:()=>K.jg,DropDownButton:()=>P,DropDownButtonItem:()=>O,FloatingActionButton:()=>ee,FloatingActionButtonItem:()=>G,SplitButton:()=>M,SplitButtonItem:()=>y,Toolbar:()=>D,ToolbarItem:()=>A,ToolbarSeparator:()=>_,ToolbarSpacer:()=>F,toolbarButtons:()=>V.w});var o=n(7037),r=n(7711),i=n(3899),a=n(189),s=n(3198),l=n(3493),c=n(3769),u=n(8047),d=n(2697),p=n(3218),h=n(5407),f=n(8130),m=function(e){var t=i.useCallback((function(t){e.onClick(t,e.index)}),[e]),n=e.dataItem.render||e.item||(void 0===e.item?e.render:null),o=void 0!==e.dataItem.text?e.dataItem.text:e.textField?e.dataItem[e.textField]:e.dataItem,r=i.createElement("li",{id:e.id,className:(0,u.A)("k-item",e.className,{"k-focus":e.focused}),tabIndex:-1,onClick:t,onMouseDown:e.onDown,onPointerDown:e.onDown,role:"menuitem","aria-disabled":e.dataItem.disabled||void 0},i.createElement("span",{tabIndex:-1,className:(0,u.A)("k-link k-menu-link",{"k-selected":e.dataItem.selected,"k-disabled":e.dataItem.disabled}),key:"icon"},n?i.createElement(n,{item:e.dataItem,itemIndex:e.index}):i.createElement(i.Fragment,null,(e.dataItem.icon||e.dataItem.iconClass)&&i.createElement(f.a,{className:e.dataItem.iconClass,name:e.dataItem.icon,icon:e.dataItem.svgIcon}),e.dataItem.imageUrl&&i.createElement("img",{role:"presentation",alt:"",src:e.dataItem.imageUrl,className:"k-icon"}),o&&i.createElement("span",{className:"k-menu-link-text"},o))));return void 0!==e.item&&void 0!==e.render?e.render.call(void 0,r,e):r};m.displayName="KendoReactButtonItem";var v,g=(v=function(e,t){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},v(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){return null},t.propTypes={text:a.string,icon:a.string,iconClass:a.string,imageUrl:a.string,disabled:a.bool,render:a.any},t}(i.Component),b=function(e,t,n,o){if(n)return e;var r=Math.min(o-1,Math.max(0,e));switch(t){case l.R.enter:case l.R.space:case l.R.esc:return-1;case l.R.up:case l.R.left:return r-1<0?o-1:r-1;case l.R.down:case l.R.right:return r+1>=o?0:r+1;case l.R.home:return 0;case l.R.end:return o-1;default:return e}},w=n(1754);function k(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function x(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var z=n(4006),C=n(2709),S=n(6785),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),M=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1,focusedIndex:-1,opened:!1},n.wrapper=null,n.mainButton=null,n.list=null,n.guid=(0,s.M)(),n.skipFocus=!1,n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==l.R.down?n.opened&&e.keyCode===l.R.up&&(n.setState({focusedIndex:-1}),n.setOpen(!1)):(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0}),n.setOpen(!0));else{var o=void 0;if(e.keyCode===l.R.enter||e.keyCode===l.R.space){if(e.preventDefault(),n.dispatchClickEvent(e,t),t>=0){o={focusedIndex:n.opened?-1:0};var r=!n.opened;n.setOpen(r),r&&n.dispatchPopupEvent(e,r)}}else if(n.opened&&e.keyCode===l.R.esc)return n.setState({focusedIndex:-1}),void n.setOpen(!1);if(n.opened){var i=b(t,e.keyCode,e.altKey,n.buttonsData.length);i!==t&&((o=o||{}).focusedIndex=i);var a=e.keyCode===l.R.up||e.keyCode===l.R.down||e.keyCode===l.R.left||e.keyCode===l.R.right;e.altKey||!a&&e.keyCode!==l.R.home&&e.keyCode!==l.R.end||e.preventDefault()}o&&n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.onFocus=function(e){n.skipFocus||((0,h.N)(n.props.onFocus,e,n,void 0),n.setState({focused:!0}))},n.setOpen=function(e){n.openedDuringOnChange=e,n.setState({opened:e})},n.onItemClick=function(e,t){n.opened&&(n.setState({focusedIndex:0}),n.setOpen(!1)),n.dispatchClickEvent(e,t)},n.onBlur=function(e){n.skipFocus||(n.setState({focused:!1,focusedIndex:-1}),n.setOpen(!1),(0,h.N)(n.props.onBlur,e,n,void 0))},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))})),n.dispatchPopupEvent({},!1)},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onSplitPartClick=function(e){if(n.buttonsData.length){var t=!n.opened;t&&n.dispatchPopupEvent(e,t),n.setState({focusedIndex:t?0:-1,focused:!0}),n.setOpen(t)}},n.onDownSplitPart=function(e){e.preventDefault();var t=(0,c.v)(document);n.element&&t!==n.element&&t!==n.list&&n.element.focus()},n.onItemDown=function(e){(0,c.v)(document)===n.list&&e.preventDefault()},n.dispatchPopupEvent=function(e,t){(0,h.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0),n.openedDuringOnChange=void 0},(0,z.s)(C.k),n}return I(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0!==this.openedDuringOnChange?this.openedDuringOnChange:void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.buttonsData=this.props.items||i.Children.toArray(this.props.children).filter((function(e){return e&&e.type===y})).map((function(e){return e.props}));var t=this.isRtl(),n=t?"rtl":void 0,r=this.props,a=r.id,s=r.style,l=r.tabIndex,c=r.disabled;return i.createElement("div",{id:a,style:s,className:(0,u.A)("k-split-button","k-button-group",{"k-focus":this.state.focused},"k-rounded-".concat(d.G.roundedMap[this.props.rounded||"medium"]),this.props.className),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,dir:n,ref:function(t){return e.wrapper=t}},i.createElement(o.z,{ref:function(t){return e.mainButton=t&&t.element},type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:function(t){return e.onItemClick(t,-1)},disabled:c||void 0,tabIndex:l,accessKey:this.props.accessKey,className:this.props.buttonClass,icon:this.props.icon,svgIcon:this.props.svgIcon,iconClass:this.props.iconClass,imageUrl:this.props.imageUrl,dir:n,"aria-disabled":c,"aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),i.createElement(o.z,{type:"button",size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,icon:"caret-alt-down",svgIcon:S.M7i,className:"k-split-button-arrow",disabled:c||void 0,tabIndex:-1,onClick:this.onSplitPartClick,onMouseDown:this.onDownSplitPart,onPointerDown:this.onDownSplitPart,dir:n,"aria-label":"menu toggling button"}),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(-1===t?(0,h.N)(this.props.onButtonClick,e,this,void 0):(0,h.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t}))},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,r=this.state.focusedIndex;return i.createElement(w.G,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,u.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||k(e),popupAlign:o.popupAlign||x(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},i.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,ref:this.listRef,"aria-activedescendant":r>=0?"".concat(this.guid,"-").concat(r):void 0,className:(0,u.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(d.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,r=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return i.createElement(m,{className:"k-menu-item",dataItem:t,textField:r,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,key:a,index:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:a.string,ariaLabel:a.string,title:a.string,onButtonClick:a.func,onFocus:a.func,onBlur:a.func,onItemClick:a.func,onOpen:a.func,onClose:a.func,text:a.string,items:a.arrayOf(a.any),textField:a.string,tabIndex:a.number,disabled:a.bool,icon:a.string,svgIcon:p.wi,iconClass:a.string,imageUrl:a.string,popupSettings:a.object,itemRender:a.any,item:a.func,className:a.string,buttonClass:a.string,dir:a.string},t.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(i.Component),E=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return E(t,e),t.prototype.render=function(){return null},t.propTypes={text:a.string,icon:a.string,iconClass:a.string,imageUrl:a.string,selected:a.bool,disabled:a.bool,render:a.any},t}(i.Component),H=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),N=function(){return N=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},N.apply(this,arguments)},P=function(e){function t(t){var n=e.call(this,t)||this;return n.state={opened:!1,focused:!1,focusedIndex:-1},n.wrapper=null,n.mainButton=null,n.list=null,n.skipFocus=!1,n.guid=(0,s.M)(),n.buttonsData=[],n.onKeyDown=function(e){var t=n.state.focusedIndex;if(e.altKey)n.opened||e.keyCode!==l.R.down?n.opened&&e.keyCode===l.R.up&&(n.setState({focusedIndex:-1}),n.setOpen(!1)):(n.setOpen(!0),n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:0}));else{var o=N({},n.state);if(e.keyCode===l.R.enter||e.keyCode===l.R.space){t>=0&&n.dispatchClickEvent(e,t),e.preventDefault();var r=!n.opened;return n.setOpen(r),void(r&&(n.dispatchPopupEvent(e,!0),n.setState({focusedIndex:n.opened?-1:0})))}if(n.opened&&e.keyCode===l.R.esc)return n.setState({focusedIndex:-1}),void n.setOpen(!1);if(n.opened){var i=b(t,e.keyCode,e.altKey,n.buttonsData.length);o.focusedIndex=i;var a=e.keyCode===l.R.up||e.keyCode===l.R.down||e.keyCode===l.R.left||e.keyCode===l.R.right;e.altKey||!a&&e.keyCode!==l.R.home&&e.keyCode!==l.R.end||e.preventDefault()}n.setState(o)}},n.switchFocus=function(e){n.skipFocus=!0,e(),window.setTimeout((function(){return n.skipFocus=!1}),0)},n.handleFocus=function(e){n.skipFocus||(n.setState({focused:!0,focusedIndex:n.opened?0:-1}),(0,h.N)(n.props.onFocus,e,n,void 0))},n.handleBlur=function(e){n.skipFocus||(n.setState({focused:!1,focusedIndex:-1}),n.setOpen(!1),(0,h.N)(n.props.onBlur,e,n,void 0))},n.setOpen=function(e){n.openedDuringOnChange=e,n.setState({opened:e})},n.onItemClick=function(e,t){n.setState({focusedIndex:-1}),n.setOpen(!1),n.dispatchClickEvent(e,t)},n.onItemDown=function(e){(0,c.v)(document)===n.list&&e.preventDefault()},n.mouseDown=function(e){e.preventDefault();var t=(0,c.v)(document);n.element&&t!==n.element&&t!==n.list&&n.element.focus()},n.onPopupClose=function(){n.state.focused&&n.switchFocus((function(){n.element&&(n.element.removeAttribute("tabindex"),n.element.focus({preventScroll:!0}))})),n.dispatchPopupEvent({},!1)},n.listRef=function(e){n.list=e,e&&n.state.focused&&n.switchFocus((function(){e.focus({preventScroll:!0}),n.element&&(n.element.tabIndex=-1)}))},n.onClickMainButton=function(e){if(n.buttonsData.length){var t=!n.opened;n.setState({focused:!0,focusedIndex:t?0:-1}),n.setOpen(t),t&&n.dispatchPopupEvent(e,t)}},n.dispatchPopupEvent=function(e,t){(0,h.N)(t?n.props.onOpen:n.props.onClose,e,n,void 0),n.openedDuringOnChange=void 0},(0,z.s)(C.k),n}return H(t,e),Object.defineProperty(t.prototype,"opened",{get:function(){return void 0!==this.openedDuringOnChange?this.openedDuringOnChange:void 0===this.props.opened?this.state.opened:this.props.opened},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.isRtl(),n=t?"rtl":void 0,r=this.props,a=r.id,s=r.style,l=r.tabIndex,c=r.disabled;return this.buttonsData=this.props.items||i.Children.toArray(this.props.children).filter((function(e){return e&&e.type===O})).map((function(e){return e.props})),i.createElement("div",{id:a,style:s,className:(0,u.A)("k-dropdown-button",{"k-focus":this.state.focused},this.props.className),onKeyDown:this.onKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,dir:n,ref:function(t){return e.wrapper=t}},i.createElement(o.z,{size:this.props.size,rounded:this.props.rounded,fillMode:this.props.fillMode,themeColor:this.props.themeColor,onClick:this.onClickMainButton,onMouseDown:this.mouseDown,disabled:c||void 0,tabIndex:l,accessKey:this.props.accessKey,icon:this.props.icon,svgIcon:this.props.svgIcon,iconClass:this.props.iconClass,className:this.props.buttonClass,imageUrl:this.props.imageUrl,dir:n,ref:function(t){return e.mainButton=t&&t.element},type:"button","aria-haspopup":!0,"aria-expanded":this.opened||void 0,"aria-label":this.props.ariaLabel,"aria-controls":this.opened?this.guid:void 0,id:"button-"+this.guid,title:this.props.title},this.props.text),this.renderPopup(t))},t.prototype.componentDidMount=function(){(void 0===this.props.dir&&this.isRtl()||this.opened)&&this.forceUpdate()},Object.defineProperty(t.prototype,"element",{get:function(){return this.mainButton},enumerable:!1,configurable:!0}),t.prototype.dispatchClickEvent=function(e,t){this.isItemDisabled(t)||(0,h.N)(this.props.onItemClick,e,this,{item:this.buttonsData[t],itemIndex:t})},t.prototype.renderPopup=function(e){var t,n=this.props.popupSettings,o=void 0===n?{}:n,r=this.state.focusedIndex;return i.createElement(w.G,{anchor:this.wrapper,show:this.opened,animate:o.animate,popupClass:(0,u.A)("k-menu-popup",o.popupClass),anchorAlign:o.anchorAlign||k(e),popupAlign:o.popupAlign||x(e),style:e?{direction:"rtl"}:void 0,onClose:this.onPopupClose},i.createElement("ul",{role:"menu",id:this.guid,"aria-labelledby":"button-"+this.guid,tabIndex:-1,"aria-activedescendant":r>=0?"".concat(this.guid,"-").concat(r):void 0,ref:this.listRef,className:(0,u.A)("k-group k-menu-group k-reset",(t={},t["k-menu-group-".concat(d.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,t))},this.renderChildItems()))},t.prototype.renderChildItems=function(){var e=this,t=this.props,n=t.item,o=t.itemRender,r=t.textField;return this.buttonsData.length>0?this.buttonsData.map((function(t,a){return i.createElement(m,{className:"k-menu-item",dataItem:t,textField:r,focused:e.state.focusedIndex===a,onClick:e.onItemClick,onDown:e.onItemDown,render:o,item:n,index:a,key:a,id:"".concat(e.guid,"-").concat(a)})})):null},t.prototype.isItemDisabled=function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.props.disabled},t.prototype.isRtl=function(){return void 0!==this.props.dir?"rtl"===this.props.dir:!!this.wrapper&&"rtl"===getComputedStyle(this.wrapper).direction},t.propTypes={accessKey:a.string,ariaLabel:a.string,title:a.string,onFocus:a.func,onBlur:a.func,onItemClick:a.func,onOpen:a.func,onClose:a.func,items:a.arrayOf(a.any),textField:a.string,tabIndex:a.number,disabled:a.bool,icon:a.string,svgIcon:p.wi,iconClass:a.string,imageUrl:a.string,popupSettings:a.object,itemRender:a.func,item:a.func,className:a.string,buttonClass:a.string,dir:a.string},t.defaultProps={size:"medium",rounded:"medium",fillMode:"solid",themeColor:"base"},t}(i.Component),V=n(1889),T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),R=function(){return R=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},R.apply(this,arguments)},D=function(e){function t(n){var o=e.call(this,n)||this;return o._element=null,o.offsetHeight=0,o.offsetWidth=0,o.buttons=[],o.focusedSelector=o.selectors.map((function(e){return e+":focus"})).join(","),o.setTabIndex=function(e){var n=o.props.tabIndex,r=void 0===n?t.defaultProps.tabIndex:n;o.buttons.forEach((function(t,n){t.tabIndex=n===e?r:-1}))},o.onKeyDown=function(e){var t=e.target;if((e.keyCode===l.R.left||e.keyCode===l.R.right)&&!e.defaultPrevented&&-1!==o.buttons.findIndex((function(e){return e===t}))){var n=o.focusedIndex;e.keyCode===l.R.left?o.focusButton(n,n-1):o.focusButton(n,n+1)}},o.onWindowResize=function(e){var t=o.element;if(t){var n=t.offsetWidth,r=t.offsetHeight;if(o.offsetWidth!==n||o.offsetHeight!==r){o.offsetWidth=n,o.offsetHeight=r;var i={offsetWidth:o.offsetWidth,offsetHeight:o.offsetHeight};o.props.onResize&&o.props.onResize.call(void 0,R(R({target:o},i),{nativeEvent:e}))}}},(0,z.s)(C.k),o}return T(t,e),Object.defineProperty(t.prototype,"selectors",{get:function(){return this.props.buttons||V.w},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedIndex",{get:function(){var e=this.element&&this.element.querySelector(this.focusedSelector);return Math.max(0,this.buttons.findIndex((function(t){return t===e})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.onWindowResize);var e=this.element;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(0)))},t.prototype.componentDidUpdate=function(){var e=this.element;e&&!1!==this.props.keyboardNavigation&&(this.buttons=Array.from(e.querySelectorAll(this.selectors.join(","))),this.setTabIndex(this.focusedIndex))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onWindowResize),this.buttons.length=0},t.prototype.render=function(){var e,t=this;return i.createElement("div",{id:this.props.id,"aria-label":this.props.ariaLabel,className:(0,u.A)("k-toolbar",(e={},e["k-toolbar-".concat(d.G.sizeMap[this.props.size]||this.props.size)]=this.props.size,e),this.props.className),style:this.props.style,role:void 0!==this.props.role?this.props.role||void 0:"toolbar",dir:this.props.dir,ref:function(e){return t._element=e},onKeyDown:!1!==this.props.keyboardNavigation?this.onKeyDown:void 0},this.props.children)},t.prototype.focusButton=function(e,n){var o=this.props.tabIndex,r=void 0===o?t.defaultProps.tabIndex:o,i=this.buttons[n];if(i){i.tabIndex=r,i.focus();var a=this.buttons[e];a&&(a.tabIndex=-1)}},t.propTypes={tabIndex:a.number,dir:a.string,keyboardNavigation:a.bool,style:a.object,className:a.string,role:a.string,onResize:a.func,buttons:a.arrayOf(a.string),size:a.oneOf([null,"small","medium","large"])},t.defaultProps={tabIndex:0,size:"medium"},t}(i.Component),B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._element=null,t}return B(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return i.createElement("div",{id:this.props.id,className:(0,u.A)("k-toolbar-item",this.props.className),style:this.props.style,ref:function(t){return e._element=t}},this.props.children)},t.propTypes={className:a.string},t}(i.PureComponent),L=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return L(t,e),t.prototype.render=function(){return i.createElement("div",{className:(0,u.A)("k-separator",this.props.className)})},t}(i.PureComponent),F=i.forwardRef((function(e,t){var n=i.useRef(null),o=i.useRef(null);i.useImperativeHandle(o,(function(){return{element:n.current}})),i.useImperativeHandle(t,(function(){return{element:n.current}}));var r=i.useMemo((function(){return(0,u.A)("k-spacer",e.className)}),[e.className]);return i.createElement("span",{ref:n,className:r})}));F.displayName="KendoReactToolbarSpacer",F.propTypes={className:a.string};var j=n(1711),K=n(228),W=n(8259),U=n(8199),q=n(4703),$=function(){return $=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},$.apply(this,arguments)},G=i.forwardRef((function(e,t){var n=e.className,o=e.disabled,r=e.text,a=e.icon,s=e.style,l=e.id,c=e.focused,d=e.tabIndex,p=e.index,h=e.dataItem,m=e.item,v=e.svgIcon,g=e.onDown,y=e.onClick,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","disabled","text","icon","style","id","focused","tabIndex","index","dataItem","item","svgIcon","onDown","onClick"]),w=i.useRef(null),k=i.useCallback((function(){w.current&&w.current.focus()}),[]),x=i.useCallback((function(){return{element:w.current,focus:k}}),[k]);i.useImperativeHandle(t,x);var z=i.useCallback((function(e){y&&void 0!==p&&!o&&y(e,p)}),[y,p]),C=i.useMemo((function(){return(0,u.A)("k-fab-item",{"k-focus":c,"k-disabled":o},n)}),[n,o,c]),S=m;return i.createElement("li",$({ref:w,id:l,className:C,style:s,role:"menuitem",tabIndex:(0,q.p)(d,o),"aria-disabled":o,"aria-label":"".concat(r||""," floatingactionbutton item"),onClick:z,onMouseDown:g,onPointerDown:g},b),S?i.createElement(S,{itemIndex:p,item:h}):i.createElement(i.Fragment,null,r&&i.createElement("span",{className:"k-fab-item-text"},r),a||v?i.createElement(f.a,{className:"k-fab-item-icon",name:a,icon:v}):null))}));G.propTypes={className:a.string,style:a.object,children:a.any,disabled:a.bool,focused:a.bool,index:a.number,icon:a.string,svgIcon:p.wi,text:a.string,tabIndex:a.number,customProp:a.any},G.displayName="KendoFloatingActionButtonItem";var Z="16px",Y=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},Q=function(){return Q=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Q.apply(this,arguments)},ee=i.forwardRef((function(e,t){(0,z.s)(C.k);var n=e.align,o=void 0===n?te.align:n,r=e.alignOffset,a=e.className,p=e.disabled,m=e.icon,v=e.svgIcon,g=e.iconClass,y=e.id,b=e.items,k=e.item,x=e.text,S=e.positionMode,I=void 0===S?te.positionMode:S,M=e.size,E=void 0===M?te.size:M,O=e.style,H=e.rounded,N=void 0===H?te.rounded:H,P=e.themeColor,V=void 0===P?te.themeColor:P,T=e.overlayStyle,R=e.tabIndex,D=e.accessKey,B=e.popupSettings,A=void 0===B?{}:B,L=e.modal,_=e.onClick,F=e.onItemClick,j=e.onFocus,K=e.onBlur,$=e.onKeyDown,ee=e.onOpen,ne=e.onClose,oe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["align","alignOffset","className","disabled","icon","svgIcon","iconClass","id","items","item","text","positionMode","size","style","rounded","themeColor","overlayStyle","tabIndex","accessKey","popupSettings","modal","onClick","onItemClick","onFocus","onBlur","onKeyDown","onOpen","onClose"]),re=(0,W.u)(),ie=re?re+2:100,ae=i.useRef(null),se=i.useRef(null),le=i.useRef(null),ce=i.useRef(null),ue=i.useCallback((function(){se.current&&se.current.focus()}),[]),de=i.useCallback((function(){return{element:se.current,focus:ue}}),[ue]);i.useImperativeHandle(ae,de),i.useImperativeHandle(t,(function(){return ae.current}));var pe=i.useState(!1),he=pe[0],fe=pe[1],me=i.useState(!1),ve=me[0],ge=me[1],ye=i.useState(-1),be=ye[0],we=ye[1],ke=i.useMemo((function(){return(0,s.M)()}),[]),xe=(0,U.n)(se,e.dir),ze="rtl"===xe,Ce=i.useMemo((function(){return(0,s.M)()}),[]);i.useEffect((function(){!function(e,t,n,o){var r=t.horizontal,i=t.vertical;if(e.current){var a=n&&void 0!==n.x?Y(n.x):Z,s=n&&void 0!==n.x?"calc(50% + ".concat(Y(n.x),")"):"50%",l=n&&void 0!==n.y?Y(n.y):Z,c=n&&void 0!==n.y?"calc(50% + ".concat(Y(n.y),")"):"50%";e.current.style.setProperty(function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]}(t,o),"center"===r?s:a),e.current.style.setProperty(function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]}(t),"middle"===i?c:l),o&&("top"!==i&&"bottom"!==i||"start"!==r||e.current.style.setProperty("left","unset"),"middle"===i&&"end"===r&&e.current.style.setProperty("right","unset"),"middle"===i&&"start"===r&&e.current.style.setProperty("left","unset"))}}(se,o,r,ze)}),[se,o,r,ze]),i.useEffect((function(){ve&&se&&se.current&&se.current.focus()}),[ve,se]);var Se=i.useCallback((function(e,t){b&&(0,h.N)(t?ee:ne,e,de(),void 0)}),[ee,ne,b]),Ie=i.useCallback((function(e){e.target&&!p&&(!b&&_?(0,h.N)(_,e,de(),void 0):(fe(!he),ge(!0),we(he?-1:0),Se(e,!he)))}),[fe,ge,we,_,Se,he,b,p]),Me=i.useCallback((function(e){ge(!0),we(he?0:-1),j&&(0,h.N)(j,e,de(),void 0)}),[j,ge,we]),Ee=i.useCallback((function(e){ge(!1),fe(!1),we(-1),(0,h.N)(K,e,de(),void 0),he&&Se(e,!1)}),[K,ge,fe,we,Se]),Oe=i.useCallback((function(e){e.preventDefault()}),[]),He=i.useCallback((function(e,t){b&&(b[t].disabled||(0,h.N)(F,e,de(),{itemProps:b[t],itemIndex:t}))}),[F]),Ne=i.useCallback((function(e,t){e.target&&b&&(we(t),fe(!1),He(e,t),Se(e,!1))}),[we,fe,He,Se]),Pe=i.useCallback((function(e){(0,c.v)(document)===se.current&&e.preventDefault()}),[se]),Ve=i.useCallback((function(e){var t=be,n=b?b.length-1:-1,r="bottom"===o.vertical;switch(e.keyCode){case l.R.enter:case l.R.space:t>=0&&He(e,t),e.preventDefault(),fe(!he),we(he?-1:0);break;case l.R.esc:e.preventDefault(),fe(!1),we(-1);break;case l.R.home:e.preventDefault(),we(0);break;case l.R.end:e.preventDefault(),we(n);break;case l.R.down:case l.R.right:e.preventDefault(),t<n&&!r&&we(t+1),t>0&&r&&we(t-1);break;case l.R.up:case l.R.left:e.preventDefault(),t>0&&!r&&we(t-1),t<n&&r&&we(t+1)}(0,h.N)($,e,de(),void 0)}),[$,be,we,ze,fe]),Te=i.useMemo((function(){var e;return(0,u.A)("k-fab k-fab-solid",((e={"k-fab-sm":"small"===E,"k-fab-md":"medium"===E,"k-fab-lg":"large"===E,"k-disabled":p,"k-pos-absolute":"absolute"===I,"k-pos-fixed":"fixed"===I,"k-focus":ve})["k-rounded-".concat(d.G.roundedMap[N]||N)]=N,e["k-fab-solid-".concat(V)]=V,e),"k-".concat(o.vertical,"-").concat(o.horizontal),a)}),[V,E,N,p,I,o,ve,a]),Re=b&&b.map((function(e,t){return i.createElement(G,Q({},e,{key:t,index:t,id:"".concat(Ce,"-").concat(t),disabled:p||e.disabled,focused:be===t,dataItem:e,item:k,className:(0,u.A)(e.className,(n=xe||"ltr",r=o.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:Ne,onDown:Pe}));var n,r})),De=Boolean((m||v)&&!x),Be=(se.current?se.current.offsetWidth:0)/2-16;return i.createElement(W.$.Provider,{value:ie},i.createElement(i.Fragment,null,i.createElement("button",Q({ref:se,id:y||ke,role:b?"menubutton":"button",type:"button","aria-disabled":p,"aria-expanded":b?he:void 0,"aria-haspopup":!!b,"aria-label":"".concat(x||""," floatingactionbutton"),"aria-owns":b?Ce:void 0,"aria-activedescendant":be>=0&&b?"".concat(Ce,"-").concat(be):void 0,tabIndex:(0,q.p)(R,p),accessKey:D,dir:xe,disabled:p,className:Te,style:O,onClick:Ie,onMouseDown:Oe,onFocus:Me,onBlur:Ee,onKeyDown:Ve},oe),m||v?i.createElement(f.a,{className:"k-fab-icon",name:m,icon:v}):g?i.createElement("span",{role:"presentation",className:g}):null,x&&i.createElement("span",{className:"k-fab-text"},x)),L&&he&&i.createElement("div",{className:"k-overlay",style:Q({zIndex:ie},T)}),i.createElement(w.G,{ref:ce,anchor:se.current,show:he,animate:A.animate,popupClass:(0,u.A)("k-popup-transparent k-fab-popup",A.popupClass),anchorAlign:A.anchorAlign||J(o,ze),popupAlign:A.popupAlign||X(o,ze),style:{boxShadow:"none"}},i.createElement("ul",{ref:le,role:"menu","aria-labelledby":y,id:Ce,className:(0,u.A)("k-fab-items",{"k-fab-items-bottom":"bottom"!==o.vertical,"k-fab-items-top":"bottom"===o.vertical}),style:{paddingLeft:De?Be:void 0,paddingRight:De?Be:void 0}},Re))))}));ee.propTypes={className:a.string,style:a.object,id:a.string,dir:a.string,tabIndex:a.number,accessKey:a.string,disabled:a.bool,icon:a.string,svgIcon:p.wi,iconClass:a.string,text:a.string,alignOffset:a.shape({x:a.oneOfType([a.number,a.string]),y:a.oneOfType([a.number,a.string])}),align:a.shape({vertical:a.oneOf(["top","middle","bottom"]),horizontal:a.oneOf(["start","center","end"])}),positionMode:a.oneOf(["absolute","fixed"]),size:a.oneOf([null,"small","medium","large"]),rounded:a.oneOf([null,"small","medium","large","full"]),themeColor:a.oneOf([null,"primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),modal:a.bool,overlayStyle:a.object};var te={align:{vertical:"bottom",horizontal:"end"},size:"medium",rounded:"full",themeColor:"primary",positionMode:"fixed"};ee.displayName="KendoFloatingActionButton"},2709:(e,t,n)=>{n.d(t,{k:()=>o});var o={name:"@progress/kendo-react-buttons",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700059816,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},1889:(e,t,n)=>{n.d(t,{w:()=>r,Z:()=>i});var o=":not(.k-dropdownlist button):not(.k-colorpicker button):not(.k-split-button .k-split-button-arrow)",r=["button"+o,".k-button-group > button"+o,".k-colorpicker",".k-dropdownlist"];const i={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"}}},6785:(e,t,n)=>{n.d(t,{M7i:()=>o,jKn:()=>r});const o={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},r={name:"x-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm128 306.7L338.7 384 256 301.3 173.3 384 128 338.7l82.7-82.7-82.7-82.7 45.3-45.3 82.7 82.7 82.7-82.7 45.3 45.3-82.7 82.7 82.7 82.7z" />',viewBox:"0 0 512 512"}},1193:(e,t,n)=>{n.d(t,{V:()=>E,M:()=>M});var o,r=n(3899),i=n(994),a=n(189),s=n(7037),l=n(7271),c=function(e){var t=e.children,n=e.onCloseButtonClick,o=e.id,i=e.closeIcon;return r.createElement("div",{className:"k-window-titlebar k-dialog-titlebar",id:o},r.createElement("span",{className:"k-window-title k-dialog-title"},t),r.createElement("div",{className:"k-window-titlebar-actions k-dialog-titlebar-actions"},i&&r.createElement(s.z,{role:"button","aria-label":"Close",onClick:n,icon:"x",svgIcon:l.FZE,fillMode:"flat",className:"k-window-titlebar-action k-dialog-titlebar-action"})))},u=n(6847),d=n(3198),p=n(5407),h=n(3493),f=n(3769),m=n(8259),v=n(8047),g=n(7827),y=n(848),b=n(4006),w=n(2080),k=n(8792),x=n(180),z=n(4061),C=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(){return S=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},I=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n._id=(0,d.M)(),n.titleId=n.generateTitleId(),n.contentId=n.generateContentId(),n.showLicenseWatermark=!1,n.onCloseDialog=function(e){e.preventDefault(),(0,p.N)(n.props.onClose,e,n,void 0)},n.onKeyDown=function(e){e.keyCode===h.R.esc&&n.props.onClose&&(e.preventDefault(),n.onCloseDialog(e));var t=n.element;if(t&&e.keyCode===h.R.tab){var o=t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=o[0],i=o[o.length-1],a=n.getDocument(),s=(0,f.v)(a);e.shiftKey?(a&&s===r||a&&s===n.element)&&(i.focus(),e.preventDefault()):a&&s===i&&(r.focus(),e.preventDefault())}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+z.de:0)?n.state.zIndex:n.context+z.de:n.context?n.context:z.iS},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},(0,b.s)(k.k),n.showLicenseWatermark=(0,b.G)(k.k),n.state={zIndex:(0,x.b)(n.getCurrentZIndex(),n.getDocument(),n._id)},n}return C(t,e),t.prototype.componentDidMount=function(){this.element&&this.props.autoFocus&&this.element.focus()},t.prototype.render=function(){var e,t,n=this,o=void 0!==this.props.id?this.props.id:this.titleId,a=this.props,s=a.title,l=a.width,u=a.height,d=a.children,p=a.minWidth,h=a.dir,f=a.style,y=a.contentStyle,b=r.Children.toArray(d),k=this.getContent(b),x=this.getActionBar(b),C=s?{"aria-labelledby":o}:null,I=void 0===this.props.closeIcon||this.props.closeIcon,M=this.getCurrentZIndex(),E=r.createElement(m.$.Provider,{value:M},r.createElement("div",S({},((e={})[z.DZ]=this._id,e),{className:"k-dialog-wrapper"+(this.props.className?" "+this.props.className:""),onKeyDown:this.onKeyDown,tabIndex:0,dir:h,style:S({zIndex:M},f),ref:function(e){return n.element=e}}),r.createElement("div",{className:"k-overlay"}),r.createElement("div",S({},C,{className:(0,v.A)("k-window k-dialog",(t={},t["k-window-".concat(this.props.themeColor)]=this.props.themeColor,t)),role:"dialog","aria-labelledby":o,"aria-modal":!0,"aria-describedby":this.contentId,style:{width:l,height:u,minWidth:p}}),this.props.title&&r.createElement(c,{closeIcon:I,onCloseButtonClick:this.onCloseDialog,id:o},s),r.createElement("div",{className:"k-window-content k-dialog-content",style:y,id:this.contentId},k),x,this.showLicenseWatermark&&r.createElement(w.t,null))));return g.N?null!==this.props.appendTo?i.createPortal(E,this.props.appendTo||document.body):E:null},t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===u.l}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==u.l}))},t.prototype.generateTitleId=function(){return"dialog-title"+this._id},t.prototype.generateContentId=function(){return"dialog-content"+this._id},t.displayName="Dialog",t.propTypes={title:a.any,id:a.string,dir:a.string,style:a.object,closeIcon:a.bool,width:a.oneOfType([a.number,a.string]),height:a.oneOfType([a.number,a.string]),minWidth:a.oneOfType([a.number,a.string]),autoFocus:a.bool},t.defaultProps={autoFocus:!1},t.contextType=m.$,t}(r.Component),M=(0,y.Y)(),E=(0,y.u)(M,I);E.displayName="KendoReactDialog"},6847:(e,t,n)=>{n.d(t,{l:()=>s});var o=n(3899),r=n(189),i=n(8047),a=function(){return a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)},s=function(e){var t,n=a({layout:"stretched"},e),r=n.layout,s=n.children,l=(0,i.A)("k-actions","k-actions-horizontal","k-window-actions k-dialog-actions",((t={})["k-actions-".concat(r)]=r,t));return o.createElement("div",{className:l},s)};s.propTypes={children:r.any,layout:r.oneOf(["start","center","end","stretched"])}},4061:(e,t,n)=>{n.d(t,{DZ:()=>o,iS:()=>r,de:()=>i,Fm:()=>a});var o="data-windowid",r=10002,i=2,a=".k-window:not(.k-dialog), .k-dialog-wrapper"},1959:(e,t,n)=>{n.r(t),n.d(t,{Dialog:()=>r.V,DialogActionsBar:()=>i.l,DialogPropsContext:()=>r.M,Window:()=>q,WindowActionsBar:()=>L,WindowPropsContext:()=>U});var o,r=n(1193),i=n(6847),a=n(3899),s=n(994),l=n(189);!function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(o||(o={}));var c,u,d=n(7037),p=n(499),h=n(7271),f="dialogs.windowMaximizeButton",m="dialogs.windowMinimizeButton",v="dialogs.windowRestoreButton",g="dialogs.windowCloseButton",y=((c={})[f]="maximize",c[m]="minimize",c[v]="restore",c[g]="close",c),b=function(){return b=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},b.apply(this,arguments)},w=function(e){var t=e.children,n=e.onCloseButtonClick,r=e.onMinimizeButtonClick,i=e.onFullScreenButtonClick,s=e.onRestoreButtonClick,l=e.onDoubleClick,c=e.stage,u=e.forwardedRef,b=e.id,w=(0,p.useLocalization)(),k=e.minimizeButton?a.createElement(e.minimizeButton,{onClick:r,stage:c}):a.createElement(d.z,{fillMode:"flat",icon:"window-minimize",svgIcon:h.YS7,className:"k-window-titlebar-action",onClick:r,"aria-label":w.toLanguageString(m,y[m])}),x=e.maximizeButton?a.createElement(e.maximizeButton,{onClick:i,stage:c}):a.createElement(d.z,{fillMode:"flat",icon:"window-maximize",svgIcon:h.IHW,className:"k-window-titlebar-action",onClick:i,"aria-label":w.toLanguageString(f,y[f])}),z=e.restoreButton?a.createElement(e.restoreButton,{onClick:s,stage:c}):a.createElement(d.z,{fillMode:"flat",icon:"window-restore",svgIcon:h.LOr,className:"k-window-titlebar-action",onClick:s,"aria-label":w.toLanguageString(v,y[v])}),C=e.closeButton?a.createElement(e.closeButton,{onClick:n,stage:c}):a.createElement(d.z,{fillMode:"flat",icon:"x",svgIcon:h.FZE,className:"k-window-titlebar-action",onClick:n,"aria-label":w.toLanguageString(g,y[g])});return a.createElement("div",{className:"k-window-titlebar",style:{touchAction:"none"},ref:u,onDoubleClick:l},a.createElement("span",{className:"k-window-title",id:b},t||""),a.createElement("div",{className:"k-window-titlebar-actions"},c===o.DEFAULT&&k,c===o.DEFAULT&&x,c!==o.DEFAULT&&z,C))},k=a.forwardRef((function(e,t){return a.createElement(w,b({},e,{forwardedRef:t}))})),x=n(3198),z=n(3493),C=n(5407),S=n(8047),I=n(8259),M=n(7827),E=n(1779),O=n(848),H=(u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},u(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),N=["n","e","s","w","se","sw","ne","nw"],P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"k-resize-handles-wrapper"}," ",N.map((function(t,n){return a.createElement(E._,{key:n,onDrag:function(n){var o=n.event;o.originalEvent.preventDefault(),e.props.onResize(o,{end:!1,direction:t})},onRelease:function(n){var o=n.event;o.originalEvent.preventDefault(),e.props.onResize(o,{end:!0,direction:t})}},a.createElement("div",{className:"k-resize-handle k-resize-"+t,style:{display:"block",touchAction:"none"}}))})))},t}(a.Component),V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return V(t,e),t.prototype.shouldComponentUpdate=function(e){return e.shouldUpdateOnDrag||!e.isDragging},t.prototype.render=function(){return this.props.children},t}(a.Component),R=n(4006),D=n(2080),B=n(8792),A=function(){return A=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},A.apply(this,arguments)},L=function(e){var t=A({layout:"end"},e),n=t.layout,o=t.children,r=(0,S.A)("k-actions","k-window-actions","k-actions-horizontal","k-hstack",{"k-justify-content-start":"start"===n,"k-justify-content-center":"center"===n,"k-justify-content-end":"end"===n,"k-justify-content-stretch":"stretched"===n});return a.createElement("div",{className:r},o)};L.propTypes={children:l.any,layout:l.oneOf(["start","center","end","stretched"])};var _=n(4061),F=n(180),j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),K=function(){return K=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},K.apply(this,arguments)},W=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.draggable=null,n.offSetCoordinates={x:0,y:0},n._id=(0,x.M)(),n.titleId=n.generateTitleId(),n.mounted=!1,n.showLicenseWatermark=!1,n.onKeyDown=function(e){if(e.target===e.currentTarget){var t=n.props.minWidth||120,r=n.props.minHeight||100;if(e.ctrlKey&&n.props.resizable){switch(e.keyCode){case z.R.up:e.preventDefault(),r<=n.height-5&&n.setState({height:n.height-5});break;case z.R.down:e.preventDefault(),n.setState({height:n.height+5});break;case z.R.left:t<=n.width-5&&n.setState({width:n.width-5});break;case z.R.right:n.setState({width:n.width+5});break;default:return}n.dispatchMoveEvent(n.props.onResize,e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case z.R.up:n.windowStage===o.MINIMIZED?(n.handleRestore(e),(0,C.N)(n.props.onStageChange,e,n,{state:o.DEFAULT})):n.windowStage===o.DEFAULT&&(n.handleFullscreen(e),(0,C.N)(n.props.onStageChange,e,n,{state:o.FULLSCREEN}));break;case z.R.down:n.windowStage===o.FULLSCREEN?(n.handleRestore(e),(0,C.N)(n.props.onStageChange,e,n,{state:o.DEFAULT})):n.windowStage===o.DEFAULT&&(n.handleMinimize(e),(0,C.N)(n.props.onStageChange,e,n,{state:o.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case z.R.esc:return void(n.props.onClose&&n.handleCloseWindow(e));case z.R.up:n.setState({top:n.state.top-5});break;case z.R.down:n.setState({top:n.state.top+5});break;case z.R.left:n.setState({left:n.state.left-5});break;case z.R.right:n.setState({left:n.state.left+5});break;default:return}n.dispatchMoveEvent(n.props.onMove,e,!1,void 0)}}},n.onPress=function(e){var t=e.event;n.windowCoordinatesState.differenceLeft=t.pageX-n.left,n.windowCoordinatesState.differenceTop=t.pageY-n.top},n.onDrag=function(e){var t=e.event;t.originalEvent.preventDefault(),n.windowStage!==o.FULLSCREEN&&n.props.draggable&&(n.setState({top:Math.max(t.pageY-n.windowCoordinatesState.differenceTop,0),left:t.pageX-n.windowCoordinatesState.differenceLeft,isDragging:!0}),n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!1))},n.onRelease=function(e){var t=e.event;n.windowStage!==o.FULLSCREEN&&n.props.draggable&&n.props.onMove&&n.dispatchMoveEvent(n.props.onMove,t,!0,!0),n.setState({isDragging:!1})},n.onFocus=function(){n._blurTimeout?(clearTimeout(n._blurTimeout),n._blurTimeout=void 0):n.setState({focused:!0,zIndex:(0,F.b)(n.getCurrentZIndex(),n.getDocument(),n._id)})},n.onBlur=function(){clearTimeout(n._blurTimeout);var e=n.getWindow();e&&(n._blurTimeout=e.setTimeout((function(){n.mounted&&n.setState({focused:!1}),n._blurTimeout=void 0})))},n.getInitialTop=function(){if(void 0!==n.props.top)return n.props.top;if(void 0!==n.props.initialTop)return n.props.initialTop;var e=300;if(void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),n.props.appendTo)return n.props.appendTo.offsetHeight/2-e/2;var t=n.getWindow();return t?t.innerHeight/2-e/2:0},n.getInitialLeft=function(){if(void 0!==n.props.left)return n.props.left;if(void 0!==n.props.initialLeft)return n.props.initialLeft;var e=300;if(void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),n.props.appendTo)return n.props.appendTo.offsetWidth/2-e/2;var t=n.getWindow();return t?t.innerWidth/2-e/2:0},n.getInitialWidth=function(){var e=300;return void 0!==n.props.width?e=n.props.width:void 0!==n.props.initialWidth&&(e=n.props.initialWidth),e},n.getInitialHeight=function(){var e=300;return void 0!==n.props.height?e=n.props.height:void 0!==n.props.initialHeight&&(e=n.props.initialHeight),e},n.handleMinimize=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height,n.setState({stage:o.MINIMIZED,height:0}),(0,C.N)(n.props.onStageChange,e,n,{state:o.MINIMIZED})},n.handleFullscreen=function(e){e.preventDefault(),n.windowCoordinatesState.leftBeforeAction=n.left,n.windowCoordinatesState.topBeforeAction=n.top,n.windowCoordinatesState.widthBeforeAction=n.width,n.windowCoordinatesState.heightBeforeAction=n.height;var t=n.getWindow(),r=t?t.innerWidth:0,i=t?t.innerHeight:0;n.setState({left:0,top:0,width:n.props.appendTo?n.props.appendTo.offsetWidth:r,height:n.props.appendTo?n.props.appendTo.offsetHeight:i,stage:o.FULLSCREEN}),(0,C.N)(n.props.onStageChange,e,n,{state:o.FULLSCREEN})},n.handleRestore=function(e){e.preventDefault(),n.windowStage===o.FULLSCREEN?n.setState({stage:o.DEFAULT,left:n.windowCoordinatesState.leftBeforeAction,top:n.windowCoordinatesState.topBeforeAction,width:n.windowCoordinatesState.widthBeforeAction,height:n.windowCoordinatesState.heightBeforeAction}):n.windowStage===o.MINIMIZED&&n.setState({stage:o.DEFAULT,height:n.windowCoordinatesState.heightBeforeAction}),(0,C.N)(n.props.onStageChange,e,n,{state:o.DEFAULT})},n.handleCloseWindow=function(e){e.preventDefault(),(0,C.N)(n.props.onClose,e,n,{state:void 0})},n.handleDoubleClick=function(e){n.windowStage===o.FULLSCREEN||n.windowStage===o.MINIMIZED?n.handleRestore(e):n.handleFullscreen(e)},n.handleResize=function(e,t){var o=n.props.appendTo?e.pageX-n.offSetCoordinates.x:e.pageX,r=n.props.appendTo?e.pageY-n.offSetCoordinates.y:e.pageY,i=n.width,a=n.height,s=n.props.minWidth||120,l=n.props.minHeight||100,c=n.top-r,u=n.left-o,d=o-n.left,p=r-n.top,h=Object.assign({},n.state,{isDragging:!t.end});t.direction.indexOf("n")>=0&&l-(a+c)<0&&(n.top>0&&(h.height=a+c),h.top=r),t.direction.indexOf("s")>=0&&l-p<0&&(h.height=p),t.direction.indexOf("w")>=0&&s-(i+u)<0&&(n.left>0&&(h.width=i+u),h.left=o),t.direction.indexOf("e")>=0&&s-d<0&&(h.width=d),n.setState(h),n.dispatchMoveEvent(n.props.onResize,e,!0,t.end)},n.dispatchMoveEvent=function(e,t,o,r){e&&e.call(void 0,{nativeEvent:t.nativeEvent?t.nativeEvent:t.originalEvent,drag:o,end:r,target:n,left:n.state.left,top:n.state.top,width:n.state.width,hight:n.state.height,height:n.state.height})},n.handleBrowserWindowResize=function(){if(n.windowStage===o.FULLSCREEN){var e=n.getWindow(),t=e?e.innerWidth:0,r=e?e.innerHeight:0;n.setState({width:n.props.appendTo?n.props.appendTo.offsetWidth:t,height:n.props.appendTo?n.props.appendTo.offsetHeight:r})}},n.getCurrentZIndex=function(){return n.state&&void 0!==n.context?n.state.zIndex>(n.context?n.context+_.de:0)?n.state.zIndex:n.context+_.de:n.context?n.context:_.iS},n.getDocument=function(){return n.props.appendTo?n.props.appendTo.ownerDocument:document},n.getWindow=function(){var e=n.getDocument();return e&&e.defaultView},(0,R.s)(B.k),n.showLicenseWatermark=(0,R.G)(B.k),n.state={stage:n.props.stage||o.DEFAULT,isDragging:!1,top:n.getInitialTop(),left:n.getInitialLeft(),width:n.getInitialWidth(),height:n.getInitialHeight(),focused:!0,zIndex:(0,F.b)(n.getCurrentZIndex(),n.getDocument(),n._id)},n.windowCoordinatesState={leftBeforeAction:n.getInitialLeft(),topBeforeAction:n.getInitialTop(),widthBeforeAction:n.getInitialWidth(),heightBeforeAction:n.getInitialHeight()},n}return j(t,e),t.prototype.componentDidMount=function(){var e=this.getWindow();e&&e.addEventListener("resize",this.handleBrowserWindowResize);var t=this.getDocument();if(this.props.appendTo&&t){var n=this.props.appendTo.getBoundingClientRect(),o=t.body.getBoundingClientRect();this.offSetCoordinates.x=n.left-o.left,this.offSetCoordinates.y=n.top-o.top}this.mounted=!0},t.prototype.componentWillUnmount=function(){var e=this.getWindow();e&&e.removeEventListener("resize",this.handleBrowserWindowResize),this.mounted=!1},t.prototype.componentDidUpdate=function(){var e=this.getDocument();if(this.props.appendTo&&e){var t=this.props.appendTo.getBoundingClientRect(),n=e.body.getBoundingClientRect();this.offSetCoordinates.x=t.left-n.left,this.offSetCoordinates.y=t.top-n.top}this.mounted=!0},t.prototype.render=function(){var e,t,n=this,r=a.Children.toArray(this.props.children),i=this.getContent(r),l=this.getActionBar(r),c=this.getCurrentZIndex(),u=(0,S.A)("k-window",this.props.className,((e={})["k-window-".concat(this.props.themeColor)]=this.props.themeColor,e["k-window-minimized"]="MINIMIZED"===this.state.stage,e["k-window-focused"]=this.state.focused,e)),d=a.createElement(I.$.Provider,{value:c},a.createElement(a.Fragment,null,this.props.modal&&a.createElement("div",{className:"k-overlay",style:K({zIndex:c},this.props.overlayStyle)}),a.createElement("div",K({},((t={})[_.DZ]=this._id,t),{tabIndex:0,role:"dialog","aria-labelledby":this.titleId,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,ref:function(e){n.windowElement=e,n.element=e},className:u,style:K({top:this.top,left:this.left,width:this.width,height:this.height||"",zIndex:c},this.props.style)}),a.createElement(T,{shouldUpdateOnDrag:this.props.shouldUpdateOnDrag||!1,isDragging:this.state.isDragging},a.createElement(E._,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease,ref:function(e){return n.draggable=e}},a.createElement(k,{stage:this.windowStage,onDoubleClick:this.props.doubleClickStageChange?this.handleDoubleClick:void 0,onMinimizeButtonClick:this.handleMinimize,onFullScreenButtonClick:this.handleFullscreen,onRestoreButtonClick:this.handleRestore,onCloseButtonClick:this.handleCloseWindow,closeButton:this.props.closeButton,minimizeButton:this.props.minimizeButton,maximizeButton:this.props.maximizeButton,restoreButton:this.props.restoreButton,id:this.titleId},this.props.title)),this.windowStage!==o.MINIMIZED?a.createElement(a.Fragment,null,a.createElement("div",{className:"k-window-content"},i),l):null,this.windowStage===o.DEFAULT&&this.props.resizable?a.createElement(P,{onResize:this.handleResize}):null),this.showLicenseWatermark&&a.createElement(D.t,null))));return M.N?null!==this.props.appendTo?s.createPortal(d,this.props.appendTo||document.body):d:null},Object.defineProperty(t.prototype,"top",{get:function(){return this.windowStage!==o.FULLSCREEN?Math.max(this.props.top||this.state.top,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.windowStage!==o.FULLSCREEN?Math.max(this.props.left||this.state.left,0):0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=this.props.width||this.state.width;if(this.windowStage===o.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetWidth;var t=this.getWindow();e=t?t.innerWidth:0}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=this.props.height||this.state.height;if(this.windowStage===o.FULLSCREEN){if(this.props.appendTo)return this.props.appendTo.offsetHeight;var t=this.getWindow();e=t?t.innerHeight:0}else this.windowStage===o.MINIMIZED&&(e=0);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"windowStage",{get:function(){return this.props.stage||this.state.stage},enumerable:!1,configurable:!0}),t.prototype.getActionBar=function(e){return e.filter((function(e){return e&&e.type===L}))},t.prototype.getContent=function(e){return e.filter((function(e){return e&&e.type!==L}))},t.prototype.generateTitleId=function(){return"window-title-"+this._id},t.displayName="Window",t.propTypes={width:l.number,height:l.number,left:l.number,top:l.number,initialWidth:l.number,initialHeight:l.number,initialLeft:l.number,initialTop:l.number,minWidth:l.number,minHeight:l.number,resizable:l.bool,draggable:l.bool,title:l.any,shouldUpdateOnDrag:l.bool,stage:l.oneOf(["DEFAULT","MINIMIZED","FULLSCREEN"]),className:l.string,style:l.object,overlayStyle:l.object},t.defaultProps={minWidth:120,minHeight:100,resizable:!0,draggable:!0,modal:!1,doubleClickStageChange:!0},t.contextType=I.$,t}(a.Component),U=(0,O.Y)(),q=(0,O.u)(U,W);q.displayName="KendoReactWindow"},8792:(e,t,n)=>{n.d(t,{k:()=>o});var o={name:"@progress/kendo-react-dialogs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060184,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},180:(e,t,n)=>{n.d(t,{b:()=>r});var o=n(4061),r=function(e,t,n){var r=e;if(t&&t.defaultView){var i=t.querySelectorAll(o.Fm),a=!1;return i.forEach((function(e){var i=t.defaultView.getComputedStyle(e,null);if(e.getAttribute(o.DZ)!==n&&null!==i.zIndex){var s=parseInt(i.zIndex,10);s>=r&&(r=s,a=!0)}})),a?r+o.de:r}return r}},7271:(e,t,n)=>{n.d(t,{IHW:()=>r,YS7:()=>a,LOr:()=>i,FZE:()=>o});const o={name:"x",content:'<path d="M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96l45.3 45.3z" />',viewBox:"0 0 512 512"},r={name:"window",content:'<path d="M96 96v320h320V96H96zm288 288H128V192h256v192z" />',viewBox:"0 0 512 512"},i={name:"window-restore",content:'<path d="M448 32v288h-32V128H160V32h288zM64 192h288v288H64V192zm32 256h224V288H96v160z" />',viewBox:"0 0 512 512"},a={name:"window-minimize",content:'<path d="M416 288v64H96v-64h320z" />',viewBox:"0 0 512 512"}},2831:(e,t,n)=>{n.r(t),n.d(t,{AutoComplete:()=>Qe,AutoCompletePropsContext:()=>Xe,AutoCompleteWithoutContext:()=>Je,ComboBox:()=>qe,ComboBoxPropsContext:()=>Ue,ComboBoxWithoutContext:()=>We,DropDownList:()=>Pe,DropDownListPropsContext:()=>Ne,DropDownListWithoutContext:()=>He,DropDownTree:()=>hn,DropDownTreePropsContext:()=>pn,List:()=>de,ListContainer:()=>z,ListFilter:()=>E,ListItem:()=>Z,MultiColumnComboBox:()=>Et,MultiColumnComboBoxPropsContext:()=>Mt,MultiSelect:()=>wt,MultiSelectPropsContext:()=>bt,MultiSelectTree:()=>kn,MultiSelectTreePropsContext:()=>wn,MultiSelectWithoutContext:()=>yt,SearchBar:()=>De,TagList:()=>it,dropdownsMessages:()=>le,getMultiSelectTreeValue:()=>Sn,getValueMap:()=>Cn,nodata:()=>te,scrollToItem:()=>T});var o=n(3899),r=n(189),i=n(2697),a=n(3198),s=n(8047),l=n(3493),c=n(4703),u=n(8130),d=n(3218),p=n(848),h=n(6097);const f={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},m={name:"x",content:'<path d="M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96l45.3 45.3z" />',viewBox:"0 0 512 512"},v={name:"plus",content:'<path d="M288 224V96h-64v128H96v64h128v128h64V288h128v-64H288z" />',viewBox:"0 0 512 512"},g={name:"search",content:'<path d="M365.3 320h-22.7l-26.7-26.7C338.5 265.7 352 230.4 352 192c0-88.4-71.6-160-160-160S32 103.6 32 192s71.6 160 160 160c38.4 0 73.7-13.5 101.3-36.1l26.7 26.7v22.7L434.7 480l45.3-45.3L365.3 320zM64 192c0-70.7 57.3-128 128-128s128 57.3 128 128-57.3 128-128 128S64 262.7 64 192z" />',viewBox:"0 0 512 512"};var y,b=n(1754),w=(y=function(e,t){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},y(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(){return k=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},k.apply(this,arguments)},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return w(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.width,r=e.dir,i=e.itemsCount,a=e.popupSettings;return o.createElement(b.G,k({style:{width:n,direction:r},contentKey:i&&i.join()},a),t)},t}(o.Component);const z=x;var C=n(4071),S=n(6183),I=function(){return I=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},I.apply(this,arguments)},M=o.forwardRef((function(e,t){var n=o.useRef(null);return o.useImperativeHandle(t,(function(){return n.current})),o.createElement("div",{className:"k-list-filter"},o.createElement(C.z,I({},e,{ref:n,value:e.value||"",onChange:e.onChange,onKeyDown:e.onKeyDown,tabIndex:e.tabIndex,onClick:function(e){return e.stopPropagation()},size:e.size,fillMode:e.fillMode,rounded:e.rounded,prefix:function(){return o.createElement(S.Z,null,o.createElement(u.a,{name:"search",icon:g}))}})))}));M.propTypes={value:r.oneOfType([r.string,r.number,r.array]),tabIndex:r.number,onChange:r.func,onKeyDown:r.func,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"])},M.displayName="KendoReactListFilter";const E=M;var O=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O(t,e),t.prototype.render=function(){var e=this.props,t=e.group,n=e.groupMode,r=e.render,i=o.createElement("div",{className:"k-list-group-sticky-header"},"classic"===n?t:o.createElement("div",{className:"k-list-header-text"},t));return void 0!==r?r.call(void 0,i,this.props):i},t}(o.Component);const N=H;var P=function(e){return null!=e},V=function(e,t,n){if(!P(e))return!1;var o=String(e);return n&&(o=o.toLowerCase()),0===o.indexOf(t)},T=function(e,t,n,o,r){var i=e.offsetHeight,a=t.children.item(n),s=a.offsetTop+(r?o-e.scrollTop:0),l=a.offsetHeight;if(r){var c=0;s+l>i?c=s+l-i:s<0&&(c=s),0!==c?e.scrollTop+=c:0===e.scrollTop&&0!==o&&(e.scrollTop=o)}else s+l>i+e.scrollTop?e.scrollTop=s+l-i:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)},R=function(e,t,n){var o=-1;if(t){t=t.toLowerCase();for(var r=0;r<e.length;r++){var i=(B(e[r],n)||"")+"";if(i&&i.toLowerCase().startsWith(t)){o=r;break}}}return o},D=function(e,t,n,o){void 0===o&&(o=!1);var r=function(e){return o?e:e.toLowerCase()};return e.findIndex((function(e){return n?r(B(e,n))===r(t):r(t)===r(e.toString())}))},B=function(e,t){if(t&&P(e)){var n=t.split("."),o=e;return n.forEach((function(e){o=o?o[e]:void 0})),o}return e},A=function(e,t,n){t.forEach((function(t){var o=e.findIndex((function(e){return L(e,t,n)}));-1!==o&&e.splice(o,1)}))},L=function(e,t,n){return e===t||P(e)===P(t)&&B(e,n)===B(t,n)},_=function(e,t,n){if(t){var o=D(e,t,n,!0);return-1!==o?e[o]:e[R(e,t,n)]}return e[0]},F=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},j=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 o=0;o<e.length;o++)if(!L(e[o],t[o],n))return!1;return!0}(e.data,t.data,n))},K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),W=function(e){return e.preventDefault()},U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.defaultItem,r=e.textField;return o.createElement("div",{onClick:this.props.onClick,onMouseDown:W,style:{position:"unset"},className:(0,s.A)("k-list-optionlabel",{"k-selected":t})},B(n,r)||"")},t}(o.Component);const q=U;var $=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){return t.props.onClick(t.props.index,e)},t}return $(t,e),t.prototype.render=function(){var e=this.props,t=e.selected,n=e.group,r=e.dataItem,i=e.virtual,a=e.groupMode,l=e.disabled,c=e.render,u=o.createElement("li",{id:this.props.id,role:"option","aria-selected":t,"aria-disabled":!!l||void 0,className:(0,s.A)("k-list-item",{"k-selected":t,"k-focus":this.props.focused,"k-first":Boolean(n)&&"classic"===a,"k-disabled":l}),onClick:this.handleClick,style:{position:i?"relative":"unset"}},o.createElement("span",{className:"k-list-item-text"},B(r,this.props.textField).toString()),void 0!==n&&"classic"===a?o.createElement("div",{className:"k-list-item-group-label"},n):null);return void 0!==c?c.call(void 0,u,this.props):u},t}(o.Component);const Z=G;var Y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Y(t,e),t.prototype.render=function(){var e=this.props,t=e.group,n=e.virtual,r=e.render,i=e.isMultiColumn,a=void 0!==i&&i,s=o.createElement("li",{id:this.props.id,role:"group",className:a?"k-table-group-row":"k-list-group-item",style:a?{boxSizing:"inherit"}:{position:n?"relative":"unset"}},o.createElement("span",{className:r?void 0:a?"k-table-th":"k-list-item-text"},t));return void 0!==r?r.call(void 0,s,this.props):s},t}(o.Component);const X=J;var Q,ee=n(499),te="dropdowns.nodata",ne="dropdowns.clear",oe="dropdowns.comboArrowBtnAriaLabelExpand",re="dropdowns.comboArrowBtnAriaLabelCollapse",ie="dropdowns.dropDownListArrowBtnAriaLabel",ae="dropdowns.apply",se="dropdowns.cancel",le=((Q={})[ne]="clear",Q[te]="NO DATA FOUND.",Q[oe]="expand combobox",Q[re]="collapse combobox",Q[ie]="select",Q[ae]="Apply",Q[se]="Cancel",Q),ce=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ce(t,e),t.prototype.renderItems=function(){var e=this,t=this.props,n=t.textField,r=t.valueField,i=t.groupField,a=t.groupMode,s=t.isMultiColumn,l=t.optionsGuid,c=t.skip,u=void 0===c?0:c,d=t.virtual,p=t.focusedIndex,h=t.highlightSelected,f=void 0===h||h,m=t.value,v=t.data,g=t.itemRender,y=t.groupHeaderItemRender,b=Array.isArray(m),w=0;return v.map((function(t,c){var h,k,x=u+c,z=u+c+w,C=!t.disabled&&f&&(!b&&L(t,m,r)||b&&-1!==m.findIndex((function(e){return L(e,t,r)}))),S=void 0;return c>0&&void 0!==i&&(h=B(t,i),k=B(v[c-1],i),h&&k&&h!==k&&(S=h)),void 0!==S&&"modern"===a&&(w+=1),[void 0!==S&&"modern"===a&&o.createElement(X,{id:"option-".concat(l,"-").concat(z),virtual:d,key:x+"-group-item",group:S,isMultiColumn:s,render:y}),o.createElement(Z,{id:"option-".concat(l,"-").concat(void 0!==S&&"modern"===a?z+1:z),virtual:d,dataItem:t,groupMode:a,selected:C,focused:p===c,index:x,key:x,onClick:e.props.onClick,textField:n,group:S,render:g,disabled:t.disabled})]}))},t.prototype.renderNoValueElement=function(e){var t=this.props.noDataRender,n=o.createElement("div",{className:"k-nodata"},o.createElement("div",null,e.toLanguageString(te,le[te])));return t?t.call(void 0,n):n},t.prototype.render=function(){var e=(0,ee.provideLocalizationService)(this),t=this.props,n=t.id,r=t.show,i=t.wrapperCssClass,a=t.wrapperStyle,s=t.listStyle,l=t.listRef,c=t.wrapperRef,u=t.listClassName,d=void 0===u?"k-list-ul":u,p=this.renderItems();return p.length?o.createElement("div",{className:i,style:a,ref:c,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onScroll:this.props.onScroll,unselectable:"on"},o.createElement("ul",{id:n,role:"listbox","aria-hidden":!r||void 0,className:d,ref:l,style:s},p),this.props.scroller&&o.createElement("div",{className:"k-height-container"},this.props.scroller)):this.renderNoValueElement(e)},t}(o.Component);const de=ue;(0,ee.registerForLocalization)(ue);const pe=function(){function e(){var e=this;this.container=null,this.scrollElement=null,this.list=null,this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.PageChange=null,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),window.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&&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,o=this.container.scrollTop,r=this.listTranslate,i=o-r;if(!(i>n)){for(t=0;t<this.skip&&!(r+n+i<=o);t++)r-=n;if(r=this.validateTranslate(r),this.skip-t<=0&&r>=o)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,o=this.container.scrollTop,r=this.listTranslate,i=this.list.children.length;for(t=0;t<i&&!(r+n>=o);t++)r+=n;r=this.validateTranslate(r),t>=i&&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),o=this.containerHeight*t/this.total;o=this.validateTranslate(o),this.translateTo(o),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,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 he=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===l.R.up||t===l.R.left?this.next({current:e.current,min:e.min,max:e.max,step:e.skipItems?e.skipItems:-1}):t===l.R.down||t===l.R.right?this.next({current:e.current,min:e.min,max:e.max,step:e.skipItems?e.skipItems:1}):t===l.R.home?0:t===l.R.end?e.max:void 0},e.prototype.next=function(e){return P(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),fe=function(){return fe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},fe.apply(this,arguments)},me=function(){function e(e){var t=this;this.wrapper=null,this.list=null,this.vs=new pe,this.navigation=new he,this.handleItemClick=function(e,n){var o=t.initState();o.syntheticEvent=n,n.stopPropagation(),t.component.handleItemSelect(e,o),t.togglePopup(o),t.applyState(o)},this.handleFocus=function(e){if(!t.component.state.focused){var n=t.initState();n.data.focused=!0,n.events.push({type:"onFocus"}),n.syntheticEvent=e,t.applyState(n)}},this.filterChanged=function(e,n){var o=t.component.props,r=o.textField;o.filterable&&n.events.push({type:"onFilterChange",filter:{field:r,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.props,o=void 0!==n.opened?n.opened:t.component.state.opened;void 0===n.opened&&(e.data.opened=!o),o?e.events.push({type:"onClose"}):(e.events.push({type:"onOpen"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var o=t.initState();o.syntheticEvent=n,t.triggerOnPageChange(o,e.skip,e.take),t.applyState(o)},this.scrollToVirtualItem=function(e,n){var o=t.vs;if(o.enabled=!1,0===e.skip)o.reset();else if(e.skip+e.pageSize===e.total)o.scrollToEnd();else{var r=o.translate;0===r&&(o.calcScrollElementHeight(),r=o.itemHeight*e.skip,o.translateTo(r-o.itemHeight)),o.container&&(o.container.scrollTop=r),t.scrollToItem(n,!0)}window.setTimeout((function(){return o.enabled=!0}),10)},this.scrollPopupByPageSize=function(e){var n,o,r,i,a,s,l=t.vs,c=null===(o=null===(n=t.list)||void 0===n?void 0:n.parentElement)||void 0===o?void 0:o.scrollTop,u=l.enabled&&l.itemHeight?l.itemHeight:t.list?t.list.children[0].offsetHeight:0,d=null===(i=null===(r=t.list)||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.offsetHeight;void 0!==c&&void 0!==d&&(null===(s=null===(a=t.list)||void 0===a?void 0:a.parentElement)||void 0===s||s.scroll({top:c+e*Math.floor(d/u)*u}))},this.renderScrollElement=function(){var e=t.vs;return e.enabled&&o.createElement("div",{ref:function(t){return e.scrollElement=t},key:"scrollElementKey"})},this.resetGroupStickyHeader=function(e,t){e!==t.state.group&&t.setState(fe(fe({},t.state),{group:e}))},this.listBoxId=(0,a.M)(),this.guid=(0,a.M)(),this.component=e,this.vs.PageChange=this.pageChange}return e.prototype.didMount=function(){var e=this.component.props,t=e.popupSettings||{},n=e.style||{},o=t.width,r=!0===e.opened;void 0===o&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),r=!0),r&&this.component.forceUpdate()},e.prototype.calculateDir=function(){var e=this.component.element;e&&e.ownerDocument&&e.ownerDocument.defaultView&&(this.dirCalculated=e.ownerDocument.defaultView.getComputedStyle(e).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t,n){var o=this,r=this.list||this.vs.list;if(r||n||setTimeout((function(){o.scrollToItem(e,t,!0)}),10),r&&e>=0){var i=this.vs,a=i.container||r.parentNode,s=void 0!==t?t:i.enabled;T(a,r,e,i.translate,s)}},e.prototype.initState=function(){return{data:{},events:[],syntheticEvent:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&this.component.setState(e.data);var n={syntheticEvent:e.syntheticEvent,nativeEvent:e.syntheticEvent?e.syntheticEvent.nativeEvent:void 0,target:this.component,value:this.component.value};e.events.forEach((function(e){var o=e.type;delete e.type;var r=o&&t.component.props[o];r&&r.call(void 0,fe(fe({},n),e))}))},e.prototype.triggerOnPageChange=function(e,t,n){var o=this.component.props.virtual;if(o){var r=Math.min(Math.max(0,t),Math.max(0,o.total-n));r!==o.skip&&e.events.push({type:"onPageChange",page:{skip:r,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.props,o=n.data,r=void 0===o?[]:o,i=n.dataItemKey,a=n.virtual,s=void 0!==n.opened?n.opened:this.component.state.opened;e&&a&&this.vs.enabled&&(a.skip>0&&L(e,r[0],i)?this.triggerOnPageChange(t,a.skip-1,a.pageSize):!s&&a.skip+a.pageSize<a.total&&L(e,r[r.length-1],i)&&this.triggerOnPageChange(t,a.skip+1,a.pageSize))},e.prototype.getPopupSettings=function(){return Object.assign({},e.defaultProps.popupSettings,this.component.props.popupSettings)},e.prototype.getGroupedDataModernMode=function(e,t){var n=[];return e.forEach((function(o,r){var i;e[r-1]&&o[t]!==e[r-1][t]?(n.push(((i={})[t]=o[t],i)),n.push(e[r])):n.push(e[r])})),n},e.basicPropTypes={opened:r.bool,disabled:r.bool,dir:r.string,tabIndex:r.number,accessKey:r.string,data:r.array,textField:r.string,className:r.string,label:r.string,loading:r.bool,popupSettings:r.shape({animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),popupClass:r.string,className:r.string,appendTo:r.any,width:r.oneOfType([r.string,r.number]),height:r.oneOfType([r.string,r.number])}),onOpen:r.func,onClose:r.func,onFocus:r.func,onBlur:r.func,onChange:r.func,itemRender:r.func,listNoDataRender:r.func,focusedItemIndex:r.func,header:r.node,footer:r.node},e.propTypes=fe(fe({},e.basicPropTypes),{value:r.any,defaultValue:r.any,filterable:r.bool,filter:r.string,virtual:r.shape({pageSize:r.number.isRequired,skip:r.number.isRequired,total:r.number.isRequired}),onFilterChange:r.func,onPageChange:r.func}),e.defaultProps={popupSettings:{height:"200px"},required:!1,validityStyles:!0},e}();const ve=me;var ge=n(4006),ye=n(7827),be={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060366,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},we=n(7037),ke=500,xe=768,ze=n(3162),Ce=n(1205),Se=n(7999),Ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Me=function(){return Me=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Me.apply(this,arguments)},Ee=i.G.sizeMap,Oe=i.G.roundedMap,He=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._element=null,n.base=new ve(n),n.searchState={word:"",last:""},n._select=null,n._skipFocusEvent=!1,n._filterInput=null,n._navigated=!1,n._lastKeypressIsFilter=!1,n._inputId=(0,a.M)(),n.itemHeight=0,n.focus=function(){n.base.wrapper&&n.base.wrapper.focus()},n.handleItemSelect=function(e,t){var o=n.props,r=o.data,i=void 0===r?[]:r,a=o.virtual,s=o.dataItemKey,l=o.defaultItem,c=a?a.skip:0,u=-1===e&&void 0!==l?l:i[e-c],d=!L(u,n.value,s);n.triggerOnChange(u,t),d&&n.base.triggerPageChangeCornerItems(u,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.dummySelect=function(e){return o.createElement("select",{name:n.props.name,ref:function(e){n._select=e},tabIndex:-1,"aria-hidden":!0,title:n.props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:n.props.valueMap?n.props.valueMap.call(void 0,e):e}))},n.renderListContainer=function(){var e,t=n.props,r=t.header,i=t.footer,a=t.dir,l=t.data,c=void 0===l?[]:l,u=t.size,d=t.groupField,p=t.groupStickyHeaderItemRender,h=t.list,f=n.base,m=f.getPopupSettings(),v=void 0!==n.props.opened?n.props.opened:n.state.opened,g=void 0!==m.width?m.width:f.popupWidth,y={dir:void 0!==a?a:f.dirCalculated,width:g,popupSettings:{popupClass:(0,s.A)(m.popupClass,"k-list-container","k-dropdownlist-popup"),className:m.className,animate:m.animate,anchor:n.element,show:v,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:m.appendTo},itemsCount:[c.length]},b=n.state.group;return void 0===b&&void 0!==d&&(b=B(c[0],d)),o.createElement(z,Me({},y),n.renderListFilter(),r&&o.createElement("div",{className:"k-list-header"},r),o.createElement("div",{className:(0,s.A)("k-list",(e={},e["k-list-".concat(Ee[u]||u)]=u,e["k-virtual-list"]=n.base.vs.enabled,e))},n.renderDefaultItem(),!h&&b&&0!==c.length&&o.createElement(N,{group:b,groupMode:"modern",render:p}),n.renderList()),i&&o.createElement("div",{className:"k-list-footer"},i))},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,i=e.textField,a=e.dataItemKey,s=e.virtual,l=void 0===s?{skip:0}:s,c=e.groupHeaderItemRender,u=e.listNoDataRender,d=e.itemRender,p=n.base.vs,h=l.skip,f=void 0!==n.props.opened?n.props.opened:n.state.opened,m=n.base.getPopupSettings(),v="translateY(".concat(p.translate,"px)");return o.createElement(de,{id:n.base.listBoxId,show:f,data:r.slice(),focusedIndex:n.getFocusedIndex(),value:n.value,textField:i,valueField:a,optionsGuid:n.base.guid,groupField:n.props.groupField,groupMode:"modern",listRef:function(e){return p.list=n.base.list=e},wrapperStyle:{maxHeight:m.height},wrapperCssClass:"k-list-content",listStyle:p.enabled?{transform:v}:void 0,key:"listkey",skip:h,onClick:n.handleItemClick,itemRender:d,groupHeaderItemRender:c,noDataRender:u,onScroll:n.onScroll,wrapperRef:p.scrollerRef,scroller:n.base.renderScrollElement()})},n.onScroll=function(e){var t=n.base,o=t.vs,r=t.list;o.scrollHandler(e);var i=n.props.groupField,a=n.props.data,s=void 0===a?[]:a;if(i&&s.length&&i){for(var l=n.itemHeight=n.itemHeight||(o.enabled?o.itemHeight:r?r.children[0].offsetHeight:0),c=e.target.scrollTop-o.skip*l,u=(s=n.base.getGroupedDataModernMode(s,i))[0][i],d=1;d<s.length&&!(l*d>c);d++)s[d]&&s[d][i]&&(u=s[d][i]);u!==n.state.group&&n.setState({group:u})}},n.renderListFilter=function(){var e=void 0!==n.props.filter?n.props.filter:n.state.text;return n.props.filterable&&o.createElement(E,{value:e,ref:function(e){return n._filterInput=e&&e.element},onChange:n.handleListFilterChange,onKeyDown:n.handleKeyDown,size:n.props.size,rounded:n.props.rounded,fillMode:n.props.fillMode})},n.renderDefaultItem=function(){var e=n.props,t=e.textField,r=e.defaultItem,i=e.dataItemKey;return void 0!==r&&o.createElement(q,{defaultItem:r,textField:t,selected:L(n.value,r,i),key:"defaultitemkey",onClick:n.handleDefaultItemClick})},n.search=function(e){clearTimeout(n._typingTimeout),n.props.filterable||(n._typingTimeout=window.setTimeout((function(){return n.searchState.word=""}),n.props.delay),n.selectNext(e))},n.selectNext=function(e){var t,o=n.props,r=o.data,i=void 0===r?[]:r,a=o.dataItemKey,s=i.map((function(e,t){return{item:e,itemIndex:t}})),l=n.searchState.word,c=n.searchState.last,u=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,c),d=s.length,p=Math.max(0,i.findIndex((function(e){return L(e,n.value,a)})));n.props.defaultItem&&(t={item:n.props.defaultItem,itemIndex:-1},d+=1,p+=1),s=function(e,t,n){var o=e;return n&&(o=[n].concat(o)),o.slice(t).concat(o.slice(0,t))}(s,p+=u?1:0,t);for(var h,f,m,v=0,g=n.props,y=g.textField,b=g.ignoreCase;v<d;v++)if(h=B(s[v].item,y),f=u&&V(h,c,b),m=V(h,l,b),f||m){v=s[v].itemIndex;break}if(v!==d){var w=n.base.initState();w.syntheticEvent=e,n.handleItemSelect(v,w),n.applyState(w),n._valueDuringOnChange=void 0}},n.handleKeyDown=function(e){e&&e.target instanceof Element&&"INPUT"===e.target.nodeName&&e.stopPropagation&&e.stopPropagation();var t=n.props,o=t.data,r=void 0===o?[]:o,i=t.filterable,a=t.disabled,s=t.defaultItem,c=t.leftRightKeysNavigation,u=void 0===c||c,d=t.virtual,p=void 0===d?{skip:0,total:0,pageSize:0}:d,h=t.dataItemKey,f=t.groupField,m=void 0===f?"":f,v=t.textField,g=t.skipDisabledItems,y=void 0===g||g,b=n.value,w=r.findIndex((function(e){return L(e,b,h)})),k=void 0!==n.props.opened?n.props.opened:n.state.opened,x=e.keyCode,z=x===l.R.home||x===l.R.end,C=x===l.R.up||x===l.R.down,S=!k&&(e.altKey&&x===l.R.down||x===l.R.enter||x===l.R.space),I=k&&(e.altKey&&x===l.R.up||x===l.R.esc),M=u&&(x===l.R.left||x===l.R.right),E=C||M&&!i||z,O=n.base.initState();if(O.syntheticEvent=e,!a){if(z&&n.base.vs.enabled)x===l.R.home?0!==p.skip?(n.base.triggerOnPageChange(O,0,p.pageSize),n._navigated=!0):n.triggerOnChange(r[0],O):p.skip<p.total-p.pageSize?(n.base.triggerOnPageChange(O,p.total-p.pageSize,p.pageSize),n._navigated=!0):n.triggerOnChange(r[r.length-1],O);else if(k&&x===l.R.pageUp)n.base.scrollPopupByPageSize(-1);else if(k&&x===l.R.pageDown)n.base.scrollPopupByPageSize(1);else if(k&&x===l.R.enter){var H=n.getFocusedIndex();n.haveFocusedItemAndDataNotEmpty(r,H)?(n.triggerOnChange(null,O),n.applyState(O)):n.handleItemSelect(H,O),n.base.togglePopup(O),e.preventDefault()}else if(S||I)I&&n.resetValueIfDisabledItem(),n.base.togglePopup(O),e.preventDefault();else if(E){if(n._lastKeypressIsFilter=!1,""!==m&&v)if(!y&&k)n.onNavigate(O,x);else{var N=void 0;if(x===l.R.down||x===l.R.right){var P=r.slice(w+1).find((function(e){return!e.disabled&&e[v]}));N=P&&r.findIndex((function(e){return e[v]===P[v]}))}else if(x===l.R.up||x===l.R.left){var V=void 0;if(0===w&&s)N=-1;else if(-1===w)V=r,N=r.findIndex((function(e){return!e.disabled&&e[v]}));else{for(var T=(V=r.slice(0,w)).pop();T&&T.disabled;)T=V.pop();N=T&&r.findIndex((function(e){return e[v]===T[v]}))}}if(void 0!==N){var R=N-w;n.onNavigate(O,x,R)}else void 0===N&&r.findIndex((function(e){return e[v]===b[v]}))===r.length-1&&n.onNavigate(O,x)}else if(!y&&k||z)n.onNavigate(O,x);else if(v){if(N=void 0,x===l.R.down||x===l.R.right){var D=r.slice(w+1).find((function(e){return!e.disabled&&e[v]}));N=D&&r.findIndex((function(e){return e[v]===D[v]}))}else if(x===l.R.up||x===l.R.left){var B=void 0;if(0===w&&s)N=-1;else if(-1===w)B=r,N=r.find((function(e){return!e.disabled&&e[v]}));else{for(var A=(B=r.slice(0,w)).pop();A&&A.disabled;)A=B.pop();N=A&&r.findIndex((function(e){return e[v]===A[v]}))}}void 0!==N?(R=N-w,n.onNavigate(O,x,R)):void 0===N&&r.findIndex((function(e){return e[v]===b[v]}))===r.length-1&&n.onNavigate(O,x)}else n.onNavigate(O,x);e.preventDefault()}n.applyState(O)}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.handleBlur=function(e){if(!n._skipFocusEvent&&n.state.focused){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,o=n.props.adaptive,r=n.state.windowWidth,i=(void 0===r?0:r)<=xe&&o,a=n.base.initState();a.syntheticEvent=e,a.data.focused=!1,a.events.push({type:"onBlur"}),t&&n.resetValueIfDisabledItem(),t&&!i&&n.base.togglePopup(a),n.applyState(a)}},n.handleDefaultItemClick=function(e){var t=n.base.initState();t.syntheticEvent=e,n.base.togglePopup(t),n.triggerOnChange(n.props.defaultItem,t),n.applyState(t)},n.handleWrapperClick=function(e){if(!e.isPropagationStopped()){var t=n.base.initState();t.syntheticEvent=e,n.state.focused||(t.data.focused=!0),n.resetValueIfDisabledItem(),n.base.togglePopup(t),n.applyState(t)}},n.handleKeyPress=function(e){if(!n.props.filterable&&0!==e.which&&e.keyCode!==l.R.enter){var t=String.fromCharCode(e.charCode||e.keyCode);n.props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),n.searchState={word:n.searchState.word+t,last:n.searchState.last+t},n.search(e)}},n.handleListFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e.syntheticEvent,void 0===n.props.filter&&(t.data.text=e.target.value),n.base.filterChanged(e.target.value,t),n._lastKeypressIsFilter=!0,n.applyState(t),n.setState({group:void 0})},n.onPopupOpened=function(){n._filterInput&&n.focusElement(n._filterInput),n.props.adaptive&&setTimeout((function(){n._filterInput&&n.focusElement(n._filterInput)}),300)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.base.wrapper&&n.focusElement(n.base.wrapper)}))},n.setValidity=function(){n._select&&n._select.setCustomValidity&&n._select.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please select a value from the list!")},(0,ge.s)(be),n}return Ie(t,e),Object.defineProperty(t.prototype,"document",{get:function(){if(ye.N)return this.element&&this.element.ownerDocument||document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e;return void 0!==this._valueDuringOnChange?e=this._valueDuringOnChange:void 0!==this.props.value?e=this.props.value:void 0!==this.state.value?e=this.state.value:void 0!==this.props.defaultValue&&(e=this.props.defaultValue),P(e)||void 0===this.props.defaultItem||(e=this.props.defaultItem),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,o=e.dataItemKey,r=this.value;return n.findIndex((function(e){return L(e,r,o)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n,o=this.props,r=o.dataItemKey,i=o.virtual,a=o.groupField,s=void 0===a?"":a,l=o.textField,c=this.props.data,u=void 0===c?[]:c,d=e.virtual?e.virtual.total:0,p=void 0!==this.props.opened?this.props.opened:this.state.opened,h=void 0!==e.opened?e.opened:t.opened,f=!h&&p;if(this.base.getPopupSettings().animate||f&&this.onPopupOpened(),i&&i.total!==d)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var m=this.value,v=void 0!==e.value?e.value:t.value,g=u.findIndex((function(e){return L(e,m,r)}));""!==s&&m&&l&&(g=null===(n=this.base.getGroupedDataModernMode(u,s))||void 0===n?void 0:n.map((function(e){return e[l]})).indexOf(m[l]));var y=!L(v,m,r);f&&i?this.base.scrollToVirtualItem(i,g):f&&!i?(this.onPopupOpened(),u&&0!==u.length&&this.base.resetGroupStickyHeader(u[0][s],this),this.base.scrollToItem(g)):p&&h&&m&&y&&!this._navigated?this.base.scrollToItem(g):p&&h&&this._navigated&&(this._navigated&&i&&0===i.skip?this.base.vs.reset():this._navigated&&i&&i.skip===i.total-i.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.setValidity()},t.prototype.componentDidMount=function(){var e;this.observerResize=ye.N&&window.ResizeObserver&&new window.ResizeObserver(this.calculateMedia.bind(this)),this.base.didMount(),this.setValidity(),(null===(e=this.document)||void 0===e?void 0:e.body)&&this.observerResize&&this.observerResize.observe(this.document.body)},t.prototype.componentWillUnmount=function(){var e;(null===(e=this.document)||void 0===e?void 0:e.body)&&this.observerResize&&this.observerResize.disconnect()},t.prototype.render=function(){var e,t=this,n=(0,ee.provideLocalizationService)(this).toLanguageString(ie,le[ie]),r=this.props,i=r.style,a=r.className,l=r.label,d=r.dir,p=r.virtual,m=r.size,v=r.rounded,g=r.fillMode,y=r.adaptive,b=this.state.windowWidth,w=void 0===b?0:b,k=void 0!==this.props.opened?this.props.opened:this.state.opened,x=this.value,z=B(x,this.props.textField),C=!this.validityStyles||this.validity.valid,S=this.base,I=S.vs,M=w<=xe&&y;I.enabled=void 0!==p,void 0!==p&&(S.vs.skip=p.skip,S.vs.total=p.total,S.vs.pageSize=p.pageSize);var E=this.props,O=E.dataItemKey,H=E.data,N=void 0===H?[]:H,P=E.disabled,V=E.tabIndex,T=E.loading,R=E.iconClassName,D=E.valueRender,A=this.state.focused,_=N.findIndex((function(e){return L(e,x,O)})),F=o.createElement("span",{id:this._inputId,className:"k-input-inner"},o.createElement("span",{className:"k-input-value-text"},z)),j=void 0!==D?D.call(void 0,F,x):F,K=o.createElement(o.Fragment,null,o.createElement("span",{ref:this.componentRef,className:(0,s.A)("k-dropdownlist k-picker",a,(e={},e["k-picker-".concat(Ee[m]||m)]=m,e["k-rounded-".concat(Oe[v]||v)]=v,e["k-picker-".concat(g)]=g,e["k-focus"]=A,e["k-disabled"]=P,e["k-invalid"]=!C,e["k-loading"]=T,e["k-required"]=this.required,e)),style:l?Me(Me({},i),{width:void 0}):i,dir:d,onMouseDown:k?function(e){"INPUT"!==e.target.nodeName&&(t.focusElement(t.base.wrapper),e.preventDefault())}:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:(0,c.p)(V,P),accessKey:this.props.accessKey,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onClick:P?void 0:this.handleWrapperClick,role:"combobox","aria-required":this.required,"aria-disabled":P||void 0,"aria-haspopup":"listbox","aria-expanded":k||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":k?"option-"+this.base.guid+"-"+(_+(p?p.skip:0)):void 0,"aria-label":this.props.ariaLabel||this.props.label,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy||this._inputId,id:this.props.id,title:this.props.title},j,T&&o.createElement(u.a,{className:"k-input-loading-icon",name:"loading"}),o.createElement(we.z,{tabIndex:-1,type:"button","aria-label":n,"aria-hidden":!0,size:m,fillMode:g,iconClass:R,className:"k-input-button",rounded:null,themeColor:"base",icon:R?void 0:"caret-alt-down",svgIcon:R?this.props.svgIcon:f,onMouseDown:function(e){return t.state.focused&&e.preventDefault()}}),this.dummySelect(x),!M&&this.renderListContainer()),M&&this.renderAdaptiveListContainer());return l?o.createElement(h._,{label:l,editorValue:z,editorValid:C,editorDisabled:this.props.disabled,style:{width:i?i.width:void 0},children:K}):K},t.prototype.onNavigate=function(e,t,n){var o=this.props,r=o.data,i=void 0===r?[]:r,a=o.defaultItem,s=o.dataItemKey,l=o.virtual,c=void 0===l?{skip:0,total:0,pageSize:0}:l,u=this.base.vs,d=this.value,p=i.findIndex((function(e){return L(e,d,s)})),h=this.base.navigation.navigate({current:c.skip+p,max:(u.enabled?c.total:i.length)-1,min:void 0!==a?-1:0,keyCode:t,skipItems:n||void 0});void 0!==h&&this.handleItemSelect(h,e),this.applyState(e)},t.prototype.renderAdaptiveListContainer=function(){var e,t=this,n=this.state.windowWidth,r=void 0===n?0:n,i=this.props,a=i.header,l=i.footer,c=i.size,u=i.adaptiveTitle,d=i.groupField,p=i.groupStickyHeaderItemRender,h=i.list,f=i.data,v=void 0===f?[]:f,g={navigatable:!1,navigatableElements:[],expand:void 0!==this.props.opened?this.props.opened:this.state.opened,animation:!0,onClose:function(e){return t.handleWrapperClick(e)},animationStyles:r<=ke?{top:0,width:"100%",height:"100%"}:void 0,className:r<=ke?"k-adaptive-actionsheet k-actionsheet-fullscreen":"k-adaptive-actionsheet k-actionsheet-bottom"},y=this.state.group;return void 0===y&&void 0!==d&&(y=B(v[0],d)),o.createElement(o.Fragment,null,o.createElement(ze.V,Me({},g),o.createElement(Ce.n,{className:"k-text-center"},o.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},o.createElement("div",{className:"k-actionsheet-title"},o.createElement("div",null,u)),o.createElement("div",{className:"k-actionsheet-actions"},o.createElement(we.z,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",onClick:this.handleWrapperClick,icon:"x",svgIcon:m}))),o.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},this.renderListFilter())),o.createElement(Se.M,{className:"!k-overflow-hidden"},a&&o.createElement("div",{className:"k-list-header"},a),o.createElement("div",{className:(0,s.A)("k-list",(e={},e["k-list-".concat(Ee[c]||c)]=c,e["k-virtual-list"]=this.base.vs.enabled,e))},this.renderDefaultItem(),!h&&y&&0!==v.length&&o.createElement(N,{group:y,groupMode:"modern",render:p}),this.renderList()),l&&o.createElement("div",{className:"k-list-footer"},l))))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,o=void 0===n?[]:n,r=t.textField,i=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=t.focusedItemIndex,c=void 0===l?R:l,u=t.filterable,d=t.skipDisabledItems,p=void 0===d||d,h=this.props.filter?this.props.filter:this.state.text;return p&&r&&!h&&!e?o.findIndex((function(e){return!e.disabled&&e[r]})):P(e)&&void 0===h||u&&""===h?o.findIndex((function(t){return L(t,e,i)})):h?this._lastKeypressIsFilter?c(o,h,r):o.findIndex((function(t){return L(t,e,i)})):0===s.skip?0:-1},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),30)},t.prototype.triggerOnChange=function(e,t){L(this.value,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.calculateMedia=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];this.setState({windowWidth:o.target.clientWidth})}},t.prototype.resetValueIfDisabledItem=function(){var e=this.props.data,t=void 0===e?[]:e,n=this.base.initState(),o=this.getFocusedIndex();this.haveFocusedItemAndDataNotEmpty(t,o)&&(this.triggerOnChange(null,n),this.applyState(n))},t.prototype.haveFocusedItemAndDataNotEmpty=function(e,t){return void 0!==t&&-1!==t&&e&&e.length>0&&e[t].disabled},t.displayName="DropDownList",t.propTypes=Me({delay:r.number,ignoreCase:r.bool,iconClassName:r.string,svgIcon:d.wi,defaultItem:r.any,valueRender:r.func,valueMap:r.func,validationMessage:r.string,required:r.bool,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,ariaLabel:r.string,leftRightKeysNavigation:r.bool,title:r.string,groupField:r.string,list:r.any,skipDisabledItems:r.bool},ve.propTypes),t.defaultProps=Me(Me({delay:500,tabIndex:0,ignoreCase:!0},ve.defaultProps),{required:!1,size:"medium",rounded:"medium",fillMode:"solid",groupMode:"modern"}),t}(o.Component),Ne=(0,p.Y)(),Pe=(0,p.u)(Ne,He);Pe.displayName="KendoReactDropDownList";var Ve=n(3769),Te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._input=null,t}return Te(t,e),Object.defineProperty(t.prototype,"input",{get:function(){return this._input},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e){var t=e.value,n=e.suggestedText,o=this.props,r=o.value,i=o.suggestedText,a=o.focused,s=this.input,l=t!==r||i!==n,c=l&&t.startsWith(r)&&!(n&&i&&n.endsWith(i)),u=(0,Ve.v)(document);a&&s&&u!==s&&s.focus(),i&&l&&!c&&s&&s.setSelectionRange(r.length-i.length,r.length)},t.prototype.render=function(){var e=this,t=this.props,n=t.expanded,r=void 0!==n&&n,i=t.disabled,a=t.role,s=void 0===a?"listbox":a,l=t.render,c=o.createElement("input",{autoComplete:"off",id:this.props.id,type:"text",key:"searchbar",size:this.props.size,placeholder:this.props.placeholder,className:"k-input-inner",tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,role:s,name:this.props.name,value:this.props.value,onChange:this.props.onChange,ref:function(t){return e._input=t},onKeyDown:this.props.onKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onClick:this.props.onClick,"aria-disabled":i||void 0,disabled:i||void 0,readOnly:this.props.readOnly||void 0,title:this.props.title,"aria-haspopup":"listbox","aria-expanded":r,"aria-owns":this.props.owns,"aria-activedescendant":r?this.props.activedescendant:void 0,"aria-describedby":this.props.ariaDescribedBy,"aria-labelledby":this.props.ariaLabelledBy,"aria-required":this.props.ariaRequired});return l?l.call(void 0,c):c},t}(o.Component);const De=Re;var Be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){return e.preventDefault()},t}return Be(t,e),t.prototype.render=function(){var e=(0,ee.provideLocalizationService)(this).toLanguageString(ne,le[ne]);return o.createElement("span",{className:"k-clear-value",role:"button",onClick:this.props.onClick,onMouseDown:this.onMouseDown,tabIndex:-1,title:e,key:"clearbutton"},o.createElement(u.a,{name:"x",icon:m}))},t}(o.Component);const Le=Ae;(0,ee.registerForLocalization)(Ae);var _e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Fe.apply(this,arguments)},je=i.G.sizeMap,Ke=i.G.roundedMap,We=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new ve(n),n._element=null,n._inputId=(0,a.M)(),n._suggested="",n._skipBlur=!1,n._input=null,n._adaptiveFilterInput=null,n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var o=n.props,r=o.data,i=void 0===r?[]:r,a=o.virtual,s=o.dataItemKey,l=i[e-(a?a.skip:0)],c=!L(l,n.value,s);n.triggerOnChange(l,t),void 0!==n.state.text&&(t.data.text=void 0),c&&n.base.triggerPageChangeCornerItems(l,t)},n.onPopupOpened=function(){setTimeout((function(){n.mobileMode&&n._adaptiveFilterInput&&(n._skipBlur=!0,n._adaptiveFilterInput.focus(),n._skipBlur=!1)}),300)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.toggleBtnClick=function(e){var t=n.props,o=t.data,r=void 0===o?[]:o,i=t.skipDisabledItems,a=t.textField,s=n.getFocusedIndex(),l=n.getCurrentValueDisabledStatus(a,r,s),c=void 0!==n.props.opened?n.props.opened:n.state.opened,u=n.base.initState();if(u.syntheticEvent=e,!i&&a&&l&&n.clearValueOnToggleBtnClick(e),n.base.togglePopup(u),!c&&n.mobileMode){var d=void 0!==n.props.adaptiveFilter?n.props.adaptiveFilter:n.state.text||null;n.base.filterChanged(d,u)}n.applyState(u)},n.renderMobileListFilter=function(){var e=void 0!==n.props.adaptiveFilter?n.props.adaptiveFilter:n.state.text,t=B(n.value,n.props.textField),r=P(e)?e:t;return o.createElement(E,{value:r,ref:function(e){return n._adaptiveFilterInput=e&&e.element},onChange:n.handleMobileFilterChange,onKeyDown:n.onInputKeyDown,size:n.props.size,rounded:n.props.rounded,fillMode:n.props.fillMode})},n.handleMobileFilterChange=function(e){var t=n.base.initState();t.syntheticEvent=e.syntheticEvent,t.data.text=e.target.value,n.base.filterChanged(e.target.value,t),n.applyState(t)},n.onScroll=function(e){var t=n.base,o=t.vs,r=t.list;o.scrollHandler(e);var i=n.props.groupField,a=n.props.data,s=void 0===a?[]:a;if(i&&s.length){var l=n.itemHeight=n.itemHeight||(o.enabled?o.itemHeight:r?r.children[0].offsetHeight:0),c=e.target.scrollTop-o.skip*l;"modern"===n.props.groupMode&&(s=n.base.getGroupedDataModernMode(s,i));for(var u=s[0][i],d=1;d<s.length&&!(l*d>c);d++)s[d]&&s[d][i]&&(u=s[d][i]);u!==n.state.group&&(n.setState({group:u}),n.props.onGroupScroll&&n.props.onGroupScroll.call(void 0,{group:u}))}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.handleBlur=function(e){if(n.state.focused&&!n._skipBlur){var t=n.base.initState(),o=n.props,r=o.textField,i=o.data,a=void 0===i?[]:i,s=n.getFocusedIndex(),l=!(-1===s)&&n.getCurrentValueDisabledStatus(r,a,s);t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,r&&l&&n.clearValueOnBlur(e),n.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},n.onInputClick=function(e){var t=void 0!==n.props.opened?n.props.opened:n.state.opened,o=void 0!==n.props.adaptiveFilter?n.props.adaptiveFilter:n.state.text||null;if(!t&&n.mobileMode){var r=n.base.initState();r.syntheticEvent=e,n.base.togglePopup(r),n.base.filterChanged(o,r),n.applyState(r)}},n.onInputKeyDown=function(e){var t=n.props,o=t.data,r=void 0===o?[]:o,i=t.skipDisabledItems,a=t.textField,s=t.dataItemKey,c=t.groupField,u=n.value,d=Math.max(0,r.findIndex((function(e){return L(e,u,s)}))),p=e.keyCode,h=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.base.initState();if(f.syntheticEvent=e,!e.altKey&&(p===l.R.up||p===l.R.down)){if(e.preventDefault(),""!==c&&a)if(!n.props.skipDisabledItems&&h)n.onNavigate(f,p);else{var m=0;if(p===l.R.down||p===l.R.right){var v=r.slice(d+1).find((function(e){return!e.disabled&&e[a]}));m=v&&r.findIndex((function(e){return e[a]===v[a]}))}else if(p===l.R.up||p===l.R.left){var g=void 0;if(0===d)g=r,m=r.findIndex((function(e){return!e.disabled&&e[a]}));else{for(var y=(g=r.slice(0,d)).pop();y&&y.disabled;)y=g.pop();m=y&&r.findIndex((function(e){return e[a]===y[a]}))}}if(void 0!==m){var b=m-d;n.onNavigate(f,p,b)}else void 0===m&&r.findIndex((function(e){return e[a]===u[a]}))===r.length-1&&n.onNavigate(f,p)}else if(!n.props.skipDisabledItems&&h)n.onNavigate(f,p);else{if(m=null,p===l.R.down||p===l.R.right)m=r.slice(d+1).find((function(e){return!e.disabled}));else if(p===l.R.up||p===l.R.left){var w=r.slice(0,d);for(m=w.pop();m&&m.disabled;)m=w.pop()}m?(b=m.id-d-1,n.onNavigate(f,p,b)):n.onNavigate(f,p)}n.applyState(f)}var k=function(){e.preventDefault(),n.base.togglePopup(f),n.applyState(f)},x=n.getFocusedIndex(),z=-1===x,C=!z&&n.getCurrentValueDisabledStatus(a,r,x);h?p===l.R.pageUp?n.base.scrollPopupByPageSize(-1):p===l.R.pageDown?n.base.scrollPopupByPageSize(1):e.altKey&&p===l.R.up?k():p===l.R.enter?(e.preventDefault(),(a&&!z&&e.currentTarget.value?r[x][a]:void 0)?!i&&a&&C?n.clearValueOnEnterOrEsc(e):C||n.applyValueOnEnter(e.currentTarget.value,f):n.applyValueOnEnter(e.currentTarget.value,f)):p===l.R.esc&&(!i&&a&&C&&n.clearValueOnEnterOrEsc(e),n.applyValueOnRejectSuggestions(e.currentTarget.value,f)):h||p!==l.R.esc?e.altKey&&p===l.R.down&&k():n.clearValueOnEnterOrEsc(e)},n.inputOnChange=function(e){var t=n.base.initState();t.syntheticEvent=e;var o=void 0!==n.props.opened?n.props.opened:n.state.opened,r=e.currentTarget,i=r.value;if(n.props.suggest){var a=r.selectionEnd===i.length,s=void 0!==n.props.filter?n.props.filter:n.state.text;P(s)||(s=B(n.value,n.props.textField)||"");var l=s&&s===i,c=s&&s.length>i.length;l||c||!a?n._suggested="":n.suggestValue(i)}void 0===n.props.filter&&(t.data.text=i),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),o||n.base.togglePopup(t),n.base.filterChanged(i,t),n.applyState(t),n.setState({group:void 0})},n.clearButtonClick=function(e){n.base.initState().syntheticEvent=e,e.stopPropagation(),n.clearValue()},n.clearValueOnEnterOrEsc=function(e){n.base.initState().syntheticEvent=e,e.stopPropagation(),n.clearValue()},n.clearValueOnBlur=function(e){n.base.initState().syntheticEvent=e,e.stopPropagation(),n.clearValue()},n.clearValueOnToggleBtnClick=function(e){n.base.initState().syntheticEvent=e,e.stopPropagation(),n.clearValue()},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},(0,ge.s)(be),n}return _e(t,e),Object.defineProperty(t.prototype,"document",{get:function(){if(ye.N)return this.element&&this.element.ownerDocument||document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mobileMode",{get:function(){return!!(this.state.windowWidth&&this.state.windowWidth<=xe&&this.props.adaptive)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.props,t=e.data,n=void 0===t?[]:t,o=e.dataItemKey,r=this.value;return n.findIndex((function(e){return L(e,r,o)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&""!==this.value&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n,o=this.props,r=o.dataItemKey,i=o.virtual,a=o.groupField,s=void 0===a?"":a,l=o.data,c=void 0===l?[]:l,u=o.textField,d=e.virtual?e.virtual.total:0,p=void 0!==this.props.opened?this.props.opened:this.state.opened,h=void 0!==e.opened?e.opened:t.opened,f=!h&&p,m=this.value;if(this._valueOnDidUpdate=m,i&&i.total!==d)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var v=void 0!==e.value?e.value:t.value,g=c.findIndex((function(e){return L(e,m,r)}));"modern"===this.props.groupMode&&u&&m&&(g=null===(n=this.base.getGroupedDataModernMode(c,s))||void 0===n?void 0:n.map((function(e){return e[u]})).indexOf(m[u]));var y=!L(v,m,r);f&&i?this.base.scrollToVirtualItem(i,g):f&&!i?(this.onPopupOpened(),c&&0!==c.length&&this.base.resetGroupStickyHeader(c[0][s],this),this.base.scrollToItem(g)):p&&h&&m&&y&&this.base.scrollToItem(g)}f&&this._input&&this._input.focus(),this.setValidity()},t.prototype.componentDidMount=function(){var e;this.observerResize=ye.N&&window.ResizeObserver&&new window.ResizeObserver(this.calculateMedia.bind(this)),this.base.didMount(),this.setValidity(),(null===(e=this.document)||void 0===e?void 0:e.body)&&this.observerResize&&this.observerResize.observe(this.document.body)},t.prototype.componentWillUnmount=function(){var e;(null===(e=this.document)||void 0===e?void 0:e.body)&&this.observerResize&&this.observerResize.disconnect()},t.prototype.render=function(){var e,n=(0,ee.provideLocalizationService)(this).toLanguageString(oe,le[oe]),r=(0,ee.provideLocalizationService)(this).toLanguageString(re,le[re]),i=this.props,a=i.dir,l=i.disabled,c=i.clearButton,d=void 0===c?t.defaultProps.clearButton:c,p=i.label,m=i.textField,v=i.adaptive,g=i.className,y=i.style,b=i.loading,w=i.iconClassName,k=i.virtual,x=i.size,z=i.rounded,C=i.fillMode,S=i.opened,I=void 0===S?this.state.opened:S,M=i.placeholder,E=this.state.windowWidth,O=void 0===E?0:E,H=!this.validityStyles||this.validity.valid,N=void 0!==this.props.filter?this.props.filter:this.state.text,V=B(this.value,m),T=P(N)?N:V,R=d&&(!!T||P(this.value)),D=this.base.vs,A=this.props.id||this._inputId,L=O<=xe&&v;D.enabled=void 0!==k,void 0!==k&&(D.skip=k.skip,D.total=k.total,D.pageSize=k.pageSize);var _=o.createElement(o.Fragment,null,o.createElement("span",{className:(0,s.A)("k-combobox k-input",(e={},e["k-input-".concat(je[x]||x)]=x,e["k-rounded-".concat(Ke[z]||z)]=z,e["k-input-".concat(C)]=C,e["k-invalid"]=!H,e["k-loading"]=b,e["k-required"]=this.required,e["k-disabled"]=l,e),g),ref:this.componentRef,style:p?Fe(Fe({},y),{width:void 0}):y,dir:a},this.renderSearchBar(T||"",A,M),R&&!b&&o.createElement(Le,{onClick:this.clearButtonClick,key:"clearbutton"}),b&&o.createElement(u.a,{className:"k-input-loading-icon",name:"loading",key:"loading"}),o.createElement(we.z,{tabIndex:-1,type:"button","aria-label":I?r:n,icon:w?void 0:"caret-alt-down",svgIcon:w?this.props.svgIcon:f,iconClass:w,size:x,fillMode:C,rounded:null,themeColor:"base",className:"k-input-button",onClick:this.toggleBtnClick,onMouseDown:function(e){return e.preventDefault()}}),!L&&this.renderListContainer()),L&&this.renderAdaptiveListContainer());return p?o.createElement(h._,{label:p,editorId:A,editorValue:T,editorValid:H,editorDisabled:l,style:{width:y?y.width:void 0},children:_}):_},t.prototype.onNavigate=function(e,t,n){var o=this.props,r=o.data,i=void 0===r?[]:r,a=o.virtual,s=void 0===a?{skip:0}:a,l=this.props.filter?this.props.filter:this.state.text,c=this.getFocusedIndex(),u=this.base.vs,d=this.value;if(this._suggested="",-1===c||P(d))if(""===l)this.handleItemSelect(0,e);else{var p=s.skip+c,h=this.base.navigation.navigate({keyCode:t,current:p,max:(u.enabled?u.total:i.length)-1,min:0,skipItems:n||void 0});void 0!==h&&this.handleItemSelect(h,e)}else this.handleItemSelect(c,e)},t.prototype.getCurrentValueDisabledStatus=function(e,t,n){return e&&t&&t[n]&&t[n].disabled},t.prototype.applyValueOnEnter=function(e,t){var n,o=this.props,r=o.data,i=void 0===r?[]:r,a=o.textField,s=o.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,c=B(this.value,a)===e?this.index:D(i,e,a),u=-1!==c,d=void 0;if(this._suggested="",u)d=i[c];else{if(!s)return this.selectFocusedItem(e,t);d=void 0!==a?((n={})[a]=e,n):e}this.triggerOnChange(d,t),l&&this.base.togglePopup(t),void 0===this.props.filter&&void 0!==this.state.text&&(t.data.text=void 0),this.applyState(t)},t.prototype.applyValueOnRejectSuggestions=function(e,t){var n,o=this.props,r=o.data,i=void 0===r?[]:r,a=o.textField,s=o.allowCustom,l=void 0!==this.props.opened?this.props.opened:this.state.opened,c=B(this.value,a),u=this.state.windowWidth&&this.state.windowWidth<=xe;if(this._suggested="",e===c||""===e&&!P(c))return l&&!u&&this.base.togglePopup(t),this.applyState(t);var d=D(i,e,a,!0),p=null;-1!==d?p=i[d]:s&&(p=e?a?((n={})[a]=e,n):e:null),this.triggerOnChange(p,t),void 0!==this.state.text&&(t.data.text=void 0,this.base.filterChanged("",t)),l&&!u&&this.base.togglePopup(t),this.applyState(t)},t.prototype.selectFocusedItem=function(e,t){var n=void 0!==this.props.opened?this.props.opened:this.state.opened,o=this.props,r=o.data,i=void 0===r?[]:r,a=o.textField,s=o.virtual,l=void 0===s?{skip:0}:s,c=o.focusedItemIndex,u=void 0===c?R:c,d=l.skip,p=""===e&&0===d?0:u(i,e,a);return-1!==p?this.handleItemSelect(p+d,t):(this.triggerOnChange(null,t),void 0!==this.state.text&&(t.data.text=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},t.prototype.renderAdaptiveListContainer=function(){var e,t=this,n=this.state.windowWidth,r=void 0===n?0:n,i=this.props,a=i.header,l=i.footer,c=i.size,u=i.data,d=void 0===u?[]:u,p=i.groupField,h=i.groupMode,f=i.list,v=i.virtual,g=i.adaptiveTitle,y=i.groupStickyHeaderItemRender,b=void 0!==this.props.opened?this.props.opened:this.state.opened,w=this.state.group;void 0===w&&void 0!==p&&(w=B(d[0],p));var k={navigatable:!1,navigatableElements:[],expand:b,animation:!0,onClose:function(e){return t.toggleBtnClick(e)},animationStyles:r<=ke?{top:0,width:"100%",height:"100%"}:void 0,className:r<=ke?"k-adaptive-actionsheet k-actionsheet-fullscreen":"k-adaptive-actionsheet k-actionsheet-bottom"};return o.createElement(o.Fragment,null,o.createElement(ze.V,Fe({},k),o.createElement(Ce.n,{className:"k-text-center"},o.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},o.createElement("div",{className:"k-actionsheet-title"},o.createElement("div",null,g)),o.createElement("div",{className:"k-actionsheet-actions"},o.createElement(we.z,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",onClick:this.toggleBtnClick,icon:"x",svgIcon:m}))),o.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},this.renderMobileListFilter())),o.createElement(Se.M,{className:"!k-overflow-hidden"},o.createElement("div",{className:"k-list-container"},o.createElement("div",{className:(0,s.A)((e={},e["k-list"]=!f,e["k-list-lg"]=!0,e["k-virtual-list"]=v,e["k-data-table"]=f,e["k-table-".concat(je[c]||c)]=f&&c,e))},a&&o.createElement("div",{className:"k-table-header"},a),!f&&w&&0!==d.length&&o.createElement(N,{group:w,groupMode:h,render:y}),this.renderList(),l&&o.createElement("div",{className:"k-list-footer"},l))))))},t.prototype.renderListContainer=function(){var e,t,n=this.base,r=this.props,i=r.dir,a=r.header,l=r.footer,c=r.data,u=void 0===c?[]:c,d=r.groupField,p=r.groupMode,h=r.size,f=r.list,m=r.virtual,v=r.groupStickyHeaderItemRender,g=void 0!==this.props.opened?this.props.opened:this.state.opened,y=n.getPopupSettings(),b=void 0!==y.width?y.width:n.popupWidth,w=this.state.group;return void 0===w&&void 0!==d&&(w=B(u[0],d)),o.createElement(z,{width:b,popupSettings:{animate:y.animate,anchor:this.element,show:g,popupClass:(0,s.A)(y.popupClass,"k-list-container","k-combobox-popup"),className:y.className,appendTo:y.appendTo},dir:void 0!==i?i:this.base.dirCalculated,itemsCount:[u.length]},o.createElement("div",{className:(0,s.A)((e={},e["k-list"]=!f,e["k-list-".concat(je[h]||h)]=!f&&h,e["k-virtual-list"]=m,e["k-data-table"]=f,e["k-table-".concat(je[h]||h)]=f&&h,e))},a&&o.createElement("div",{className:"k-table-header"},a),!f&&w&&0!==u.length&&o.createElement(N,{group:w,groupMode:p,render:v}),this.renderList(),l&&o.createElement("div",{className:(0,s.A)((t={},t["k-list-footer"]=!this.props.footerClassName,t),this.props.footerClassName)},l)))},t.prototype.renderList=function(){var e,t=this,n=this.base,r=this.props,i=r.textField,a=r.dataItemKey,l=r.listNoDataRender,c=r.itemRender,u=r.groupHeaderItemRender,d=r.data,p=void 0===d?[]:d,h=r.virtual,f=void 0===h?{skip:0}:h,m=n.getPopupSettings(),v=n.vs,g=f.skip,y=void 0!==this.props.opened?this.props.opened:this.state.opened,b="translateY(".concat(v.translate,"px)"),w=y?this.getFocusedIndex():void 0,k=void 0!==this.props.filter?this.props.filter:this.state.text,x=B(this.value,i),z=P(k)&&k!==x?null:this.value,C=this.props.list||de;return o.createElement(C,{id:n.listBoxId,virtual:Boolean(f),show:y,data:p,focusedIndex:w,value:z,textField:i,valueField:a,groupField:this.props.groupField,groupMode:this.props.groupMode,isMultiColumn:this.props.isMultiColumn,optionsGuid:n.guid,listRef:function(e){v.list=t.base.list=e,t.itemHeight=0},wrapperStyle:this.state.windowWidth&&this.state.windowWidth>xe?{maxHeight:m.height}:{},wrapperCssClass:(0,s.A)("k-list-content",(e={},e["k-list-scroller"]=!f,e)),listStyle:v.enabled?{transform:b}:void 0,key:"listkey",skip:g,onClick:this.handleItemClick,itemRender:c,groupHeaderItemRender:u,noDataRender:l,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll,wrapperRef:v.scrollerRef,scroller:this.base.renderScrollElement()})},t.prototype.renderSearchBar=function(e,t,n){var r=this,i=this.props,a=i.tabIndex,s=i.disabled,l=i.data,c=void 0===l?[]:l,u=i.dataItemKey,d=i.virtual,p=void 0===d?{skip:0}:d,h=void 0!==this.props.opened?this.props.opened:this.state.opened,f=this.value,m=Math.max(0,c.findIndex((function(e){return L(e,f,u)})));return this._suggested&&!L(this._valueOnDidUpdate,f,u)&&(this._suggested=""),o.createElement(De,{id:t,readOnly:h&&this.mobileMode,placeholder:n,tabIndex:a,title:this.props.title,accessKey:this.props.accessKey,value:e+this._suggested,suggestedText:this._suggested,ref:function(e){return r._input=e&&e.input},onClick:this.onInputClick,onKeyDown:this.onInputKeyDown,onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:s,expanded:h,owns:this.base.listBoxId,activedescendant:"option-".concat(this.base.guid,"-").concat(m+p.skip),role:"combobox",ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,ariaRequired:this.required,render:this.props.valueRender})},t.prototype.clearValue=function(){var e=this.base.initState();this._suggested="",this.base.filterChanged("",e),void 0===this.props.filter&&void 0!==this.state.text&&(e.data.text=void 0),this.triggerOnChange(null,e);var t=void 0!==this.props.opened?this.props.opened:this.state.opened,n=this.mobileMode;t&&!n&&this.base.togglePopup(e),this.applyState(e)},t.prototype.triggerOnChange=function(e,t){var n=this.value;!P(n)&&!P(e)||L(n,e,this.props.dataItemKey)||(void 0===this.props.value&&(t.data.value=e),this._valueDuringOnChange=e,t.events.push({type:"onChange"}))},t.prototype.getFocusedIndex=function(){var e=this.value,t=this.props,n=t.data,o=void 0===n?[]:n,r=t.textField,i=t.dataItemKey,a=t.virtual,s=void 0===a?{skip:0}:a,l=t.focusedItemIndex,c=void 0===l?R:l,u=t.skipDisabledItems,d=this.props.filter?this.props.filter:this.state.text;return P(e)&&void 0===d?o.findIndex((function(t){return L(t,e,i)})):d?c(o,d,r):u&&r&&!d&&0===s.skip?o.findIndex((function(e){return!e.disabled&&e[r]})):0===s.skip?0:-1},t.prototype.suggestValue=function(e){var t=this.props,n=t.data,o=t.textField;this._suggested=function(e,t,n){void 0===t&&(t=[]);var o="";if(e){var r=t[R(t,e,n)];if(r){var i=B(r,n);e.toLowerCase()!==i.toLowerCase()&&(o=i.substring(e.length))}}return o}(e,n,o)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.calculateMedia=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];this.setState({windowWidth:o.target.clientWidth})}},t.displayName="ComboBox",t.propTypes=Fe(Fe({},ve.propTypes),{size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"]),dataItemKey:r.string,groupField:r.string,groupMode:r.oneOf([void 0,"classic","modern"]),isMultiColumn:r.bool,suggest:r.bool,placeholder:r.string,title:r.string,allowCustom:r.bool,clearButton:r.bool,iconClassName:r.string,svgIcon:d.wi,validationMessage:r.string,required:r.bool,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,list:r.any,valueRender:r.func,skipDisabledItems:r.bool}),t.defaultProps=Fe(Fe({},ve.defaultProps),{size:"medium",rounded:"medium",fillMode:"solid",allowCustom:!1,clearButton:!0,required:!1,groupMode:"modern",isMultiColumn:!1,skipDisabledItems:!0}),t}(o.Component),Ue=(0,p.Y)(),qe=(0,p.u)(Ue,We);qe.displayName="KendoReactComboBox";var $e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ge=function(){return Ge=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ge.apply(this,arguments)},Ze=i.G.sizeMap,Ye=i.G.roundedMap,Je=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.base=new ve(n),n._element=null,n._inputId=(0,a.M)(),n._suggested="",n._input=null,n._isScrolling=!1,n.itemHeight=0,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var o=n.props.data,r=B((void 0===o?[]:o)[e],n.props.textField);n.triggerOnChange(r,t)},n.itemFocus=function(e,t){var o=n.props,r=o.data,i=void 0===r?[]:r,a=o.textField,s=i[e];L(n.state.focusedItem,s,a)||(t.data.focusedItem=s)},n.togglePopup=function(e){n.base.togglePopup(e)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},n.onScroll=function(e){n._isScrolling=!0;var t=n.base.list,o=n.props.groupField,r=n.props.data,i=void 0===r?[]:r;if(o&&i.length){var a=n.itemHeight||(t?t.children[0].offsetHeight:0),s=e.target.scrollTop;o&&(i=n.base.getGroupedDataModernMode(i,o));for(var l=i[0][o],c=1;c<i.length&&!(a*c>s);c++)i[c]&&i[c][o]&&(l=i[c][o]);l!==n.state.group&&n.setState({group:l})}},n.handleItemClick=function(e,t){n.base.handleItemClick(e,t),n._valueDuringOnChange=void 0},n.onChangeHandler=function(e){var t=n.base.initState(),o=e.currentTarget,r=o.value,i=o.selectionEnd===r.length;t.syntheticEvent=e;var a=n._suggested,s=n.value,l=s&&s.substring(0,s.length-a.length),c=l&&l===r,u=l&&l.length>r.length,d=n.props.suggest,p=void 0!==n.props.opened?n.props.opened:n.state.opened;if(void 0!==d&&!1!==d){c||u||!i?n._suggested="":n.suggestValue(r);var h=r+n._suggested,f={userInput:r,value:n._suggested};n.triggerOnChange(h,t,{suggestion:f})}else n._suggested="",n.triggerOnChange(r,t);(!p&&r||p&&!r)&&n.togglePopup(t),t.data.focusedItem=void 0,n.applyState(t),n.setState({group:void 0})},n.clearButtonClick=function(e){var t=n.base.initState(),o=void 0!==n.props.opened?n.props.opened:n.state.opened;t.syntheticEvent=e,n._suggested="",n.triggerOnChange("",t),void 0!==n.state.focusedItem&&(t.data.focusedItem=void 0),o&&n.togglePopup(t),n.applyState(t)},n.onInputKeyDown=function(e){var t=n.props,o=t.data,r=void 0===o?[]:o,i=t.skipDisabledItems,a=t.groupField,s=t.textField;n._isScrolling&&(n._isScrolling=!1);var c=n.focusedIndex(),u=r[c],d=e.keyCode,p=e.altKey,h=void 0!==n.props.opened?n.props.opened:n.state.opened,f=n.base.initState();f.syntheticEvent=e;var m=function(){h&&e.preventDefault()};if(p&&d===l.R.down)n.setState({opened:!0});else if(p&&d===l.R.up)n.setState({opened:!1});else if(h&&d===l.R.pageUp)n.base.scrollPopupByPageSize(-1);else if(h&&d===l.R.pageDown)n.base.scrollPopupByPageSize(1);else if(!h||d!==l.R.enter&&d!==l.R.esc)if(h||d!==l.R.esc){if(d===l.R.up||d===l.R.down){if(""!==a&&s)if(!n.props.skipDisabledItems&&h)n.onNavigate(f,d);else{var v=0;if(d===l.R.down||d===l.R.right){var g=r.slice(c+1).find((function(e){return!e.disabled&&e[s]}));v=g&&r.findIndex((function(e){return e[s]===g[s]}))}else if(d===l.R.up||d===l.R.left){var y=void 0;if(-1===c)y=r,v=r.findIndex((function(e){return!e.disabled&&e[s]}));else{for(var b=(y=r.slice(0,c)).pop();b&&b.disabled;)b=y.pop();v=b&&r.findIndex((function(e){return e[s]===b[s]}))}}if(void 0!==v){var w=v-c;n.onNavigate(f,d,w)}else void 0===v&&r.findIndex((function(e){return e[s]}))===r.length-1&&n.onNavigate(f,d)}else if(!n.props.skipDisabledItems&&h)n.onNavigate(f,d);else{if(v=null,d===l.R.down||d===l.R.right)v=r.slice(c+1).find((function(e){return!e.disabled}));else if(d===l.R.up||d===l.R.left){var k=r.slice(0,c);for(v=k.pop();v&&v.disabled;)v=k.pop()}v?(w=v.id-c-1,n.onNavigate(f,d,w)):n.onNavigate(f,d)}n.applyState(f),m()}}else n._suggested="",n.triggerOnChange("",f),void 0!==n.state.focusedItem&&(f.data.focusedItem=void 0),n.applyState(f);else m(),!1===i&&u&&u.disabled?(h&&n.togglePopup(f),n.applyState(f)):n.applyInputValue(e.currentTarget.value,f,e.keyCode)},n.handleBlur=function(e){if(n.state.focused){var t=n.base.initState();t.data.focused=!1,t.events.push({type:"onBlur"}),t.syntheticEvent=e,n.applyInputValue(e.currentTarget.value,t)}},(0,ge.s)(be),n}return $e(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||""!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n,o=this.props,r=o.groupField,i=void 0===r?"":r,a=o.data,s=void 0===a?[]:a,l=e.data,c=void 0===l?[]:l,u=this.focusedIndex(),d=s[u],p=c!==s,h=void 0!==d&&t.focusedItem!==d,f=void 0!==this.props.opened?this.props.opened:this.state.opened,m=void 0!==e.opened?e.opened:t.opened,v=!m&&f;if(""===i)(f&&(h||p)||v)&&this.base.scrollToItem(u);else if(!this._isScrolling){var g=null===(n=this.base.getGroupedDataModernMode(s,i))||void 0===n?void 0:n.indexOf(d);v&&(s&&0!==s.length&&this.base.resetGroupStickyHeader(s[0][i],this),this.base.scrollToItem(g)),f&&m&&h&&this.base.scrollToItem(g)}this.setValidity()},t.prototype.componentDidMount=function(){this.base.didMount(),this.setValidity()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.dir,i=n.disabled,a=n.label,l=n.className,c=n.style,d=n.loading,p=n.suggest,f=n.size,m=n.rounded,v=n.fillMode,g=!this.validityStyles||this.validity.valid,y=this.base,b=this.value,w=!1!==this.props.clearButton&&!d&&!!b,k=this.props.id||this._inputId;"string"==typeof p&&(this._suggested=p);var x=o.createElement("span",{className:(0,s.A)("k-autocomplete k-input",l,(e={},e["k-input-".concat(Ze[f]||f)]=f,e["k-rounded-".concat(Ye[m]||m)]=m,e["k-input-".concat(v)]=v,e["k-invalid"]=!g,e["k-loading"]=d,e["k-required"]=this.required,e["k-disabled"]=i,e)),ref:function(e){t._element=e,y.wrapper=e},style:a?Ge(Ge({},c),{width:void 0}):c,dir:r},this.renderSearchBar(b||"",k),d&&o.createElement(u.a,{className:"k-input-loading-icon",name:"loading"}),w&&!d&&o.createElement(Le,{onClick:this.clearButtonClick,key:"clearbutton"}),this.renderListContainer());return a?o.createElement(h._,{label:a,editorId:k,editorValue:b,editorValid:g,editorDisabled:i,style:{width:c?c.width:void 0},children:x}):x},t.prototype.onNavigate=function(e,t,n){var o=this,r=this.value,i=this.props,a=i.data,s=void 0===a?[]:a,l=i.textField,c=i.focusedItemIndex,u=void 0!==this.state.focusedItem?s.findIndex((function(e){return L(e,o.state.focusedItem,l)})):c?c(s,r,l):s.indexOf(_(s,r,l)),d=this.base.navigation.navigate({keyCode:t,current:u,max:s.length-1,min:0,skipItems:n||void 0});void 0!==d&&this.itemFocus(d,e),this.applyState(e)},t.prototype.applyInputValue=function(e,t,n){var o=void 0!==this.props.opened?this.props.opened:this.state.opened,r=this.props,i=r.data,a=void 0===i?[]:i,s=r.textField,c=a[this.focusedIndex()];if(this._suggested="",o&&n===l.R.enter&&c&&!c.disabled){var u=B(a[this.focusedIndex(e)],s);this.triggerOnChange(u,t)}o&&this.togglePopup(t),this.applyState(t)},t.prototype.renderSearchBar=function(e,t){var n=this,r=this.base,i=this.props,a=i.placeholder,s=i.tabIndex,l=i.disabled,c=i.readonly,u=this.state.focused,d=void 0!==this.props.opened?this.props.opened:this.state.opened;return o.createElement(De,{id:t,placeholder:a,tabIndex:s,accessKey:this.props.accessKey,value:e,suggestedText:this._suggested,focused:u,name:this.props.name,ref:function(e){return n._input=e&&e.input},onKeyDown:this.onInputKeyDown,onChange:this.onChangeHandler,onFocus:r.handleFocus,onBlur:this.handleBlur,disabled:l,readOnly:c,expanded:d,owns:r.listBoxId,activedescendant:"option-"+r.guid+"-"+this.focusedIndex(),role:"combobox",ariaLabelledBy:this.props.ariaLabelledBy,ariaDescribedBy:this.props.ariaDescribedBy,ariaRequired:this.required,render:this.props.valueRender})},t.prototype.renderListContainer=function(){var e,t=this.base,n=this.props,r=n.dir,i=n.header,a=n.footer,l=n.data,c=void 0===l?[]:l,u=n.size,d=n.groupField,p=n.list,h=n.groupStickyHeaderItemRender,f=t.getPopupSettings(),m=void 0!==this.props.opened?this.props.opened:this.state.opened,v=void 0!==f.width?f.width:t.popupWidth,g=this.state.group;return void 0===g&&void 0!==d&&(g=B(c[0],d)),o.createElement(z,{width:v,popupSettings:{animate:f.animate,anchor:this.element,show:m,popupClass:(0,s.A)(f.popupClass,"k-list-container","k-autocomplete-popup"),className:f.className,appendTo:f.appendTo},dir:void 0!==r?r:this.base.dirCalculated,itemsCount:[c.length]},i&&o.createElement("div",{className:"k-list-header"},i),o.createElement("div",{className:(0,s.A)("k-list",(e={},e["k-list-".concat(Ze[u]||u)]=u,e))},!p&&g&&0!==c.length&&o.createElement(N,{group:g,groupMode:"modern",render:h}),this.renderList()),a&&o.createElement("div",{className:"k-list-footer"},a))},t.prototype.renderList=function(){var e=this.base,t=e.getPopupSettings(),n=this.props,r=n.textField,i=n.data,a=void 0===i?[]:i,s=n.listNoDataRender,l=n.itemRender,c=n.groupHeaderItemRender,u=this.value,d=void 0!==this.props.opened?this.props.opened:this.state.opened;return o.createElement(de,{id:e.listBoxId,show:d,data:a.slice(),focusedIndex:this.focusedIndex(),value:u,textField:r,valueField:r,highlightSelected:!1,optionsGuid:e.guid,groupField:this.props.groupField,groupMode:"modern",listRef:function(t){return e.list=t},wrapperStyle:{maxHeight:t.height},wrapperCssClass:"k-list-content",onClick:this.handleItemClick,itemRender:l,groupHeaderItemRender:c,noDataRender:s,onMouseDown:function(e){return e.preventDefault()},onScroll:this.onScroll})},t.prototype.triggerOnChange=function(e,t,n){(this.value!==e||n)&&(t.data.value=e,this._valueDuringOnChange=e,t.events.push(Ge({type:"onChange"},n||{})))},t.prototype.applyState=function(e){this.base.applyState(e),this._valueDuringOnChange=void 0},t.prototype.suggestValue=function(e){if(this._suggested="",e){var t=this.props,n=t.data,o=void 0===n?[]:n,r=t.textField,i=o[R(o,e,r)];if(i){var a=B(i,r);e.toLowerCase()!==a.toLowerCase()&&(this._suggested=a.substring(e.length))}}},t.prototype.focusedIndex=function(e){var t=this,n=this.props,o=n.data,r=void 0===o?[]:o,i=n.textField,a=n.focusedItemIndex,s=n.skipDisabledItems,l=void 0!==e?e:this.value;if(void 0!==this.state.focusedItem)return r.findIndex((function(e){return L(e,t.state.focusedItem,i)}));if(a)return a(r,l,i);var c=r.indexOf(_(r,l,i));return s&&i&&-1===c?r.findIndex((function(e){return!e.disabled&&e[i]})):Math.max(0,c)},t.displayName="AutoComplete",t.propTypes=Ge(Ge({},ve.basicPropTypes),{size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"]),groupField:r.string,suggest:r.oneOfType([r.bool,r.string]),placeholder:r.string,value:r.string,defaultValue:r.string,validationMessage:r.string,required:r.bool,readonly:r.bool,clearButton:r.bool,valueRender:r.func,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,list:r.any,skipDisabledItems:r.bool}),t.defaultProps=Ge(Ge({},ve.defaultProps),{size:"medium",rounded:"medium",fillMode:"solid",skipDisabledItems:!0}),t}(o.Component),Xe=(0,p.Y)(),Qe=(0,p.u)(Xe,Je);Qe.displayName="KendoReactAutoComplete";var et=n(1711),tt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),nt=function(e){return e.syntheticEvent.preventDefault()},ot=function(e){return e.syntheticEvent.stopPropagation()},rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tt(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.guid,r=e.focused,i=e.tagRender,a=e.tag,s=e.onTagDelete,l=e.size;return o.createElement(o.Fragment,null,t.map((function(e,c){var u=a?o.createElement(a,{key:e.text+c,tagData:e,guid:n,focusedTag:r,onTagDelete:s}):o.createElement(et.A,{id:"tag-".concat(n,"-").concat(e.text.replace(/\s+/g,"-")),"aria-selected":!0,role:"option","aria-setsize":t.length,key:e.text+c,text:e.text,removable:!0,onRemove:function(t){return s.call(void 0,e.data,t.syntheticEvent)},onMouseDown:nt,onClick:ot,className:e===r?"k-focus":void 0,size:l});return i?i(e,u):u})),this.props.children)},t}(o.Component);const it=rt;var at;!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(at||(at={}));var st,lt=n(4390),ct=function(){return ct=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ct.apply(this,arguments)},ut=function(e){var t=e.footer,n=e.children,r=e.windowWidth,i=void 0===r?0:r,a=e.navigatable,s=e.navigatableElements,l=e.expand,c=e.animation,u=e.onClose,d=e.adaptiveTitle,p=e.mobileFilter,h={navigatable:a||!1,navigatableElements:s||[],expand:l,animation:!1!==c,onClose:u,animationStyles:i<=500?{top:0,width:"100%",height:"100%"}:void 0,className:i<=500?"k-adaptive-actionsheet k-actionsheet-fullscreen":"k-adaptive-actionsheet k-actionsheet-bottom"};return o.createElement(ze.V,ct({},h),o.createElement(Ce.n,{className:"k-text-center"},o.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},o.createElement("div",{className:"k-actionsheet-title"},o.createElement("div",null,d)),o.createElement("div",{className:"k-actionsheet-actions"},o.createElement(we.z,{tabIndex:0,"aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",icon:"x",svgIcon:m,onClick:u}))),p&&o.createElement("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter"},p)),n,t&&o.createElement(lt.K,{className:"k-actions k-actions-stretched"},o.createElement(we.z,{size:"large",tabIndex:0,"aria-label":t.cancelText,"aria-disabled":"false",type:"button",onClick:t.onCancel},t.cancelText),o.createElement(we.z,{tabIndex:0,themeColor:"primary",size:"large","aria-label":t.applyText,"aria-disabled":"false",type:"button",onClick:t.onApply},t.applyText)))},dt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pt=function(){return pt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},pt.apply(this,arguments)},ht=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},ft=i.G.sizeMap,mt=i.G.roundedMap,vt=function(e){return e.preventDefault()},gt=function(e){return e===st.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(st||(st={}));var yt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={activedescendant:at.PopupList,currentValue:[]},n._element=null,n._valueItemsDuringOnChange=null,n._inputId=(0,a.M)(),n.base=new ve(n),n._tags=[],n._input=null,n._adaptiveInput=null,n._skipFocusEvent=!1,n._lastSelectedOrDeslectedItemIndex=null,n.itemHeight=0,n.scrollToFocused=!1,n.localization=null,n.focus=function(){n._input&&n._input.focus()},n.handleItemSelect=function(e,t){var o=n.props,r=o.data,i=void 0===r?[]:r,a=o.dataItemKey,s=o.virtual,l=i[e-(s?s.skip:0)],c=n.value.findIndex((function(e){return L(e,l,a)}));n._lastSelectedOrDeslectedItemIndex=i.findIndex((function(e){return L(e,l,a)}));var u=[];-1!==c?(u=n.value).splice(c,1):u=ht(ht([],n.value,!0),[l],!1),(void 0!==n.props.filter?n.props.filter:n.state.text)&&!n.mobileMode&&(n.state.text&&(t.data.text=""),n.base.filterChanged("",t)),n._adaptiveInput&&n._adaptiveInput.blur(),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.triggerOnChange(u,t),n.base.triggerPageChangeCornerItems(l,t)},n.onTagDelete=function(e,t){var o=n.base.initState();o.syntheticEvent=t,n.opened&&n.base.togglePopup(o),n.state.focused||n.mobileMode||(o.data.focused=!0,n.focus());var r=n.value;A(r,e,n.props.dataItemKey),n.triggerOnChange(r,o),n.applyState(o)},n.itemFocus=function(e,t){var o=n.props,r=o.data,i=void 0===r?[]:r,a=o.allowCustom,s=o.virtual,l=s?s.skip:0,c=void 0!==n.props.filter?n.props.filter:n.state.text,u=n.getFocusedState().focusedIndex,d=a&&c,p=i[e-l];p&&u!==e?n.state.focusedIndex!==e&&(t.data.focusedIndex=e,t.data.activedescendant=at.PopupList):d&&-1===e&&void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.base.triggerPageChangeCornerItems(p,t)},n.componentRef=function(e){n._element=e,n.base.wrapper=e},n.searchbarRef=function(e){var t=n._input=e&&e.input;t&&n.state.focused&&window.setTimeout((function(){return t.focus()}),0)},n.onChangeHandler=function(e){var t=n.base.initState(),o=e.target.value;t.syntheticEvent=e,void 0===n.props.filter&&(t.data.text=o),t.data.focusedIndex=void 0,n.opened||(n.base.togglePopup(t),n.setState({currentValue:n.value})),n.base.filterChanged(o,t),n.applyState(t),n.setState({group:void 0})},n.clearButtonClick=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),n.value.length>0&&n.triggerOnChange([],t),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.opened&&n.base.togglePopup(t);var o=void 0!==n.props.filter?n.props.filter:n.state.text;P(o)&&""!==o&&n.base.filterChanged("",t),n.state.text&&(t.data.text=""),n._lastSelectedOrDeslectedItemIndex=null,n.applyState(t)},n.onInputKeyDown=function(e){var t=n.props,o=t.data,r=void 0===o?[]:o,i=t.textField,a=t.groupField,s=e.keyCode,c=void 0!==n.props.filter?n.props.filter:n.state.text,u=void 0!==n.props.opened?n.props.opened:n.state.opened,d=n.getFocusedState(),p=d.focusedItem,h=d.focusedIndex,f=n.base.initState();if(f.syntheticEvent=e,!c&&n.value.length>0&&(s===l.R.left||s===l.R.right||s===l.R.home||s===l.R.end||s===l.R.delete||s===l.R.backspace)&&!e.shiftKey)return n.onTagsNavigate(e,f);var m=function(){e.preventDefault(),n.base.togglePopup(f),n.applyState(f)};if(n.opened)if(s===l.R.pageUp)n.base.scrollPopupByPageSize(-1);else if(s===l.R.pageDown)n.base.scrollPopupByPageSize(1);else if((e.ctrlKey||e.metaKey)&&"KeyA"===e.code){var v=(n.state.value&&n.state.value.length)===r.length?[]:r;n.updateStateOnKeyboardNavigation(v,f)}else if((e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===l.R.end)v=r.slice(n.getFocusedState().focusedIndex),n.itemFocus(r.length-1,f),n.updateStateOnKeyboardNavigation(v,f);else if((e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===l.R.home)v=r.slice(0,n.getFocusedState().focusedIndex+1),n.itemFocus(0,f),n.updateStateOnKeyboardNavigation(v,f);else if(e.shiftKey&&e.keyCode===l.R.up)v=void 0,null===(g=n.getLastSelectedOrDeselectedIndex(1,h))?v=0!==h?r.slice(h-1,h):[r[h]]:g===h?v=[r[g-1]]:h>=0&&(v=g>h?r.slice(h-1,g):r.slice(g-1,h)),v&&v.length>0&&(h>=1&&n.itemFocus(h-1,f),n.updateStateOnKeyboardNavigation(v,f));else if(e.shiftKey&&e.keyCode===l.R.down){var g;v=void 0,null===(g=n.getLastSelectedOrDeselectedIndex(0,h))?v=h!==r.length-1?r.slice(h,h+1):[r[h]]:g===h?v=r.slice(h,h+2):h>=0&&(v=g>h?r.slice(h+1,g+1):r.slice(g,h+2)),v&&v.length>=1&&(n.itemFocus(h+1,f),n.updateStateOnKeyboardNavigation(v,f))}else if(e.altKey&&s===l.R.up)m();else if(s===l.R.up||s===l.R.down){if(""!==a&&i)if(!n.props.skipDisabledItems&&u)n.onNavigate(f,s);else{var y=0;if(s===l.R.down||s===l.R.right){var b=r.slice(h+1).find((function(e){return!e.disabled&&e[i]}));y=b&&r.findIndex((function(e){return e[i]===b[i]}))}else if(s===l.R.up||s===l.R.left){var w=void 0;if(-1===h)w=r,y=r.findIndex((function(e){return!e.disabled&&e[i]}));else{for(var k=(w=r.slice(0,h)).pop();k&&k.disabled;)k=w.pop();y=k&&r.findIndex((function(e){return e[i]===k[i]}))}}if(y){var x=y-h;n.onNavigate(f,s,x)}else void 0!==y&&n.onNavigate(f,s)}else if(!n.props.skipDisabledItems&&u)n.onNavigate(f,s);else{if(y=null,s===l.R.down||s===l.R.right)y=r.slice(h+1).find((function(e){return!e.disabled}));else if(s===l.R.up||s===l.R.left){var z=r.slice(0,h);for(y=z.pop();y&&y.disabled;)y=z.pop()}y?(x=y.id-h-1,n.onNavigate(f,s,x)):n.onNavigate(f,s)}n.applyState(f),e.preventDefault()}else s===l.R.enter?(e.preventDefault(),n.props.allowCustom&&c&&null===p?n.customItemSelect(e):p&&p.disabled?m():n.selectFocusedItem(e)):s===l.R.esc&&m();else e.altKey&&s===l.R.down&&m()},n.listContainerContent=function(){var e,t,r=n.props,i=r.header,a=r.footer,l=r.allowCustom,c=r.size,d=r.data,p=void 0===d?[]:d,h=r.groupStickyHeaderItemRender,f=r.groupField,m=r.list,g=void 0!==n.props.filter?n.props.filter:n.state.text,y=n.getFocusedState().focusedType,b=l&&g&&o.createElement("div",{className:(0,s.A)("k-list",(e={},e["k-list-".concat(ft[c]||c)]=c,e)),key:"customitem",onClick:n.customItemSelect,onMouseDown:vt},o.createElement("div",{className:(0,s.A)("k-list-item k-custom-item",{"k-focus":gt(y)}),style:{fontStyle:"italic"}},g,o.createElement(u.a,{name:"plus",icon:v,style:{position:"absolute",right:"0.5em"}}))),w=n.state.group;return void 0===w&&void 0!==f&&(w=B(p[0],f)),o.createElement(o.Fragment,null,i&&o.createElement("div",{className:"k-list-header"},i),b,o.createElement("div",{className:(0,s.A)("k-list",(t={},t["k-list-".concat(n.mobileMode?"lg":ft[c]||c)]=c,t["k-virtual-list"]=n.base.vs.enabled,t))},!m&&w&&0!==p.length&&o.createElement(N,{group:w,groupMode:"modern",render:h}),n.renderList()),a&&o.createElement("div",{className:"k-list-footer"},a))},n.renderListContainer=function(){var e=n.base,t=n.props,r=t.dir,i=t.data,a=void 0===i?[]:i,l=n.base.getPopupSettings(),c=void 0!==l.width?l.width:e.popupWidth,u={dir:void 0!==r?r:e.dirCalculated,width:c,popupSettings:{popupClass:(0,s.A)(l.popupClass,"k-list-container","k-multiselect-popup"),className:l.className,animate:l.animate,anchor:n.element,show:n.opened,onOpen:n.onPopupOpened,onClose:n.onPopupClosed,appendTo:l.appendTo},itemsCount:[a.length,n.value.length]};return o.createElement(z,pt({},u),n.listContainerContent())},n.renderAdaptiveListContainer=function(){var e=n.props,t=e.adaptiveTitle,r=e.filterable,i=e.filter,a=n.state.windowWidth,s=void 0===a?0:a,l=void 0!==i?i:n.state.text;n.localization=(0,ee.provideLocalizationService)(n);var c=r?o.createElement(E,{value:l,ref:function(e){return n._adaptiveInput=e&&e.element},onChange:n.onChangeHandler,onKeyDown:n.onInputKeyDown,size:n.props.size,rounded:n.props.rounded,fillMode:n.props.fillMode}):null,u={adaptiveTitle:t,expand:n.opened,onClose:function(e){return n.onCancel(e)},windowWidth:s,mobileFilter:c,footer:{cancelText:n.localization.toLanguageString(se,le[se]),onCancel:n.onCancel,applyText:n.localization.toLanguageString(ae,le[ae]),onApply:n.closePopup}};return o.createElement(ut,pt({},u),o.createElement(Se.M,{className:"!k-overflow-hidden"},o.createElement("div",{className:"k-list-container"},n.listContainerContent())))},n.closePopup=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.opened&&n.base.togglePopup(t),t.events.push({type:"onClose"});var o=void 0!==n.props.filter?n.props.filter:n.state.text;P(o)&&""!==o&&n.base.filterChanged("",t),n.state.text&&(t.data.text=""),n.applyState(t)},n.onCancel=function(e){var t=n.base.initState();t.syntheticEvent=e,e.stopPropagation(),void 0!==n.state.focusedIndex&&(t.data.focusedIndex=void 0),n.opened&&n.base.togglePopup(t),t.events.push({type:"onCancel"});var o=void 0!==n.props.filter?n.props.filter:n.state.text;P(o)&&""!==o&&n.base.filterChanged("",t),n.state.text&&(t.data.text=""),n.applyState(t)},n.renderList=function(){var e=n.props,t=e.data,r=void 0===t?[]:t,i=e.textField,a=e.listNoDataRender,s=e.itemRender,l=e.groupHeaderItemRender,c=e.dataItemKey,u=e.virtual,d=n.base.vs,p=u?u.skip:0,h=n.getFocusedState().focusedIndex,f=n.base.getPopupSettings(),m="translateY(".concat(d.translate,"px)");return o.createElement(de,{id:n.base.listBoxId,show:n.opened,data:r.slice(),focusedIndex:h-p,value:n.value,textField:i,valueField:c,optionsGuid:n.base.guid,groupField:n.props.groupField,groupMode:"modern",listRef:function(e){d.list=n.base.list=e},wrapperStyle:n.mobileMode?{}:{maxHeight:f.height},wrapperCssClass:"k-list-content",listStyle:d.enabled?{transform:m}:void 0,key:"listKey",skip:p,onClick:n.handleItemClick,itemRender:s,groupHeaderItemRender:l,noDataRender:a,onMouseDown:vt,onBlur:n.handleBlur,onScroll:n.onScroll,wrapperRef:d.scrollerRef,scroller:n.base.renderScrollElement()})},n.onScroll=function(e){var t=n.base,o=t.vs,r=t.list;o.scrollHandler(e);var i=n.props.groupField,a=n.props.data,s=void 0===a?[]:a;if(i&&s.length&&i){for(var l=n.itemHeight=n.itemHeight||(o.enabled?o.itemHeight:r?r.children[0].offsetHeight:0),c=e.target.scrollTop-o.skip*l,u=(s=n.base.getGroupedDataModernMode(s,i))[0][i],d=1;d<s.length&&!(l*d>c);d++)s[d]&&s[d][i]&&(u=s[d][i]);u!==n.state.group&&n.setState({group:u})}},n.customItemSelect=function(e){var t,o=void 0!==n.props.filter?n.props.filter:n.state.text,r=n.props.textField;if(o){var i=n.base.initState();i.syntheticEvent=e;var a=r?((t={})[r]=o,t):o;void 0!==n.state.text&&(i.data.text=""),i.data.focusedIndex=void 0,n.base.filterChanged("",i);var s=ht(ht([],n.value,!0),[a],!1);n.triggerOnChange(s,i),n.base.togglePopup(i),n.applyState(i)}},n.handleWrapperClick=function(e){var t=n._input;!n.opened&&t&&n.focusElement(t);var o=n.base.initState();o.syntheticEvent=e,n.state.focused||n.mobileMode||(o.events.push({type:"onFocus"}),o.data.focused=!0),n.mobileMode&&(n.setState({currentValue:n.tagsToRender}),n.mobileMode&&window.setTimeout((function(){return n._adaptiveInput&&n._adaptiveInput.focus()}),300)),n.base.togglePopup(o),n.applyState(o)},n.handleItemClick=function(e,t){var o=n.base.initState();o.syntheticEvent=t,n.handleItemSelect(e,o),n.props.autoClose&&!n.mobileMode&&n.base.togglePopup(o),t.stopPropagation(),n.applyState(o)},n.handleBlur=function(e){if(n.state.focused&&!n._skipFocusEvent){var t=n.base.initState(),o=n.props,r=o.allowCustom,i=o.filterable;t.syntheticEvent=e,t.data.focused=!1,t.events.push({type:"onBlur"}),n.opened&&!n.mobileMode&&(n.state.opened&&(t.data.opened=!1),t.events.push({type:"onClose"})),r||i||!n.state.text||(t.data.text=""),n.applyState(t)}},n.handleFocus=function(e){n._skipFocusEvent||n.base.handleFocus(e)},n.onPopupOpened=function(){n._input&&n.state.focused&&!n.mobileMode&&n.focusElement(n._input)},n.onPopupClosed=function(){n.state.focused&&window.setTimeout((function(){n.state.focused&&n.focusElement(n._input)}),0)},n.setValidity=function(){n._input&&n._input.setCustomValidity&&n._input.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"Please enter a valid value!")},(0,ge.s)(be),n}return dt(t,e),Object.defineProperty(t.prototype,"document",{get:function(){if(ye.N)return this.element&&this.element.ownerDocument||document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return!!(void 0!==this.props.opened?this.props.opened:this.state.opened)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagsToRender",{get:function(){var e=this.props,t=e.tags,n=e.textField,o=[];return void 0===t?this.value.forEach((function(e){o.push({text:B(e,n),data:[e]})})):o.push.apply(o,t),o},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mobileMode",{get:function(){return!!(this.state.windowWidth&&this.state.windowWidth<=xe&&this.props.adaptive)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=[];return this._valueItemsDuringOnChange?e.push.apply(e,this._valueItemsDuringOnChange):this.props.value?e.push.apply(e,this.props.value):this.state.value?e.push.apply(e,this.state.value):this.props.defaultValue&&e.push.apply(e,this.props.defaultValue),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=!this.required||null!==this.value&&this.value.length>0&&void 0!==this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){var n,o=this.props,r=o.virtual,i=o.groupField,a=void 0===i?"":i,s=o.data,l=void 0===s?[]:s,c=r?r.skip:0,u=e.virtual?e.virtual.total:0,d=void 0!==e.opened?e.opened:t.opened,p=!d&&this.opened,h=d&&!this.opened;if(!this.base.getPopupSettings().animate&&h&&this.onPopupClosed(),r&&r.total!==u)this.base.vs.calcScrollElementHeight(),this.base.vs.reset();else{var f=this.getFocusedState(),m=f.focusedItem,v=f.focusedIndex;""!==a&&(v=null===(n=this.base.getGroupedDataModernMode(l,a))||void 0===n?void 0:n.indexOf(m)),p&&r?this.base.scrollToVirtualItem(r,v-c):p&&!r?(l&&0!==l.length&&this.base.resetGroupStickyHeader(l[0][a],this),this.base.scrollToItem(v)):this.opened&&d&&m&&this.scrollToFocused&&this.base.scrollToItem(v-c)}this.scrollToFocused=!1,this.setValidity()},t.prototype.componentDidMount=function(){var e;this.observerResize=ye.N&&window.ResizeObserver&&new window.ResizeObserver(this.calculateMedia.bind(this)),this.base.didMount(),this.setValidity(),(null===(e=this.document)||void 0===e?void 0:e.body)&&this.observerResize&&this.observerResize.observe(this.document.body)},t.prototype.componentWillUnmount=function(){var e;(null===(e=this.document)||void 0===e?void 0:e.body)&&this.observerResize&&this.observerResize.disconnect()},t.prototype.onNavigate=function(e,t,n){var o=this.props,r=o.allowCustom,i=o.data,a=void 0===i?[]:i,s=void 0!==this.props.filter?this.props.filter:this.state.text,c=this.getFocusedState(),u=c.focusedType,d=c.focusedIndex,p=r&&s,h=gt(u),f=this.base,m=f.vs;if(this.opened&&t===l.R.up&&h)void 0!==this.state.focusedIndex&&(e.data.focusedIndex=void 0);else{var v=f.navigation.navigate({keyCode:t,current:d,max:(m.enabled?m.total:a.length)-1,min:p?-1:0,skipItems:n||void 0});void 0!==v&&(this.itemFocus(v,e),this.scrollToFocused=!0)}this.applyState(e)},t.prototype.render=function(){var e,t,n=this.props,r=n.style,i=n.className,a=n.label,l=n.dir,c=n.disabled,d=n.textField,p=n.dataItemKey,f=n.virtual,m=n.size,v=n.rounded,g=n.fillMode,y=n.loading,b=n.filter,w=this.state,k=w.text,x=w.focused,z=w.focusedTag,C=w.currentValue,S=this.base.vs,I=this.props.id||this._inputId;S.enabled=void 0!==f,void 0!==f&&(S.skip=f.skip,S.total=f.total,S.pageSize=f.pageSize);var M=this.mobileMode&&this.opened?C:this.tagsToRender;this.setItems(this.tagsToRender,this._tags);var E=!this.validityStyles||this.validity.valid,O=Boolean(void 0!==b?b:k)||M&&M.length>0,H=o.createElement(o.Fragment,null,o.createElement("div",{ref:this.componentRef,className:(0,s.A)("k-multiselect k-input",i,(e={},e["k-input-".concat(ft[m]||m)]=m,e["k-rounded-".concat(mt[v]||v)]=v,e["k-input-".concat(g)]=g,e["k-focus"]=x&&!c,e["k-invalid"]=!E,e["k-disabled"]=c,e["k-loading"]=y,e["k-required"]=this.required,e)),style:a?pt(pt({},r),{width:void 0}):r,dir:l,onFocus:this.handleFocus,onBlur:this.handleBlur,onClick:this.handleWrapperClick,onMouseDown:F},o.createElement("div",{className:(0,s.A)("k-input-values")},o.createElement("div",{className:(0,s.A)("k-chip-list",(t={},t["k-chip-list-".concat(ft[m]||m)]=m,t)),role:"listbox",id:"tagslist-"+this.base.guid},M&&M.length>0&&o.createElement(it,{tagRender:this.props.tagRender,onTagDelete:this.onTagDelete,data:M,guid:this.base.guid,focused:z?M.find((function(e){return j(e,z,p)})):void 0,size:m})),this.renderSearchBar(I)),y&&o.createElement(u.a,{className:"k-input-loading-icon",name:"loading"}),O&&o.createElement(Le,{onClick:this.clearButtonClick}),!this.mobileMode&&this.renderListContainer()),this.mobileMode&&this.renderAdaptiveListContainer());return a?o.createElement(h._,{label:a,editorId:I,editorValue:k||B(this.value[0],d),editorValid:E,editorDisabled:c,style:{width:r?r.width:void 0},children:H}):H},t.prototype.renderSearchBar=function(e){var t=this.state,n=t.activedescendant,r=t.focusedTag,i=t.currentValue,a=this.props,s=a.disabled,l=a.placeholder,c=a.ariaDescribedBy,u=!this.mobileMode&&(void 0!==this.props.filter?this.props.filter:this.state.text)||"",d=this.getFocusedState().focusedIndex,p=0!==this.value.length||u?void 0:l,h=i&&i.length>0?void 0:l,f=n===at.TagsList&&void 0!==r?"tag-".concat(this.base.guid,"-").concat(r.text.replace(/\s+/g,"-")):"option-".concat(this.base.guid,"-").concat(d);return o.createElement(De,{id:e,size:Math.max((p||"").length,u.length,1),tabIndex:this.props.tabIndex,accessKey:this.props.accessKey,placeholder:this.mobileMode&&this.opened?h:p,value:u,onChange:this.onChangeHandler,onKeyDown:this.onInputKeyDown,ref:this.searchbarRef,disabled:s,expanded:this.opened,owns:this.base.listBoxId,role:"combobox",activedescendant:f,ariaDescribedBy:"tagslist-".concat(this.base.guid).concat(c?" "+c:""),ariaLabelledBy:this.props.ariaLabelledBy,ariaRequired:this.required})},t.prototype.onTagsNavigate=function(e,t){var n=e.keyCode,o=this.state.focusedTag,r=this._tags,i=this.props.dataItemKey,a=o?r.findIndex((function(e){return j(e,o,i)})):-1,s=void 0,c=-1!==a;if(n===l.R.left)s=r[a=c?Math.max(0,a-1):r.length-1];else if(n===l.R.right)a===r.length-1?s=void 0:c&&(s=r[a=Math.min(r.length-1,a+1)]);else if(n!==l.R.home||e.shiftKey)if(n!==l.R.end||e.shiftKey){if(n===l.R.delete){if(c){var u=this.value;A(u,r[a].data,i),this.triggerOnChange(u,t)}}else if(n===l.R.backspace)if(u=this.value,c)A(u,r[a].data,i),this.triggerOnChange(u,t);else if(!c&&r.length){var d=r.pop();A(u,d.data,i),this.triggerOnChange(u,t)}}else s=r[r.length-1];else s=r[0];s!==o&&(t.data.focusedTag=s,t.data.activedescendant=at.TagsList),this.applyState(t)},t.prototype.triggerOnChange=function(e,t){void 0===this.props.value&&(t.data.value=ht([],e,!0)),this._valueItemsDuringOnChange=[],this.setItems(e,this._valueItemsDuringOnChange),t.events.push({type:"onChange"})},t.prototype.selectFocusedItem=function(e,t){var n=this.props,o=n.data,r=void 0===o?[]:o,i=n.virtual,a=(t||this.getFocusedState()).focusedIndex;void 0!==r[a-(i?i.skip:0)]&&this.handleItemClick(a,e)},t.prototype.setItems=function(e,t){t.length=0,t.push.apply(t,e)},t.prototype.getFocusedState=function(){var e,t=this.state.focusedIndex,n=void 0!==this.props.filter?this.props.filter:this.state.text,o=this.props,r=o.allowCustom,i=o.data,a=void 0===i?[]:i,s=o.dataItemKey,l=o.virtual,c=o.textField,u=o.focusedItemIndex,d=void 0===u?R:u,p=o.skipDisabledItems,h=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:a[t-h],focusedType:st.ListItem};var f=this.value;if(r&&n)return{focusedItem:null,focusedIndex:-1,focusedType:st.CustomItem};if(n)return{focusedItem:a[e=d(a,n,c)],focusedIndex:e+h,focusedType:st.ListItem};if(f.length){var m=f[f.length-1];return e=a.findIndex((function(e){return L(e,m,s)})),void 0!==a[e]?{focusedIndex:e+h,focusedItem:a[e],focusedType:st.ListItem}:{focusedType:st.None,focusedIndex:-1}}if(p&&c&&!n&&0===h){var v=a.findIndex((function(e){return!e.disabled&&e[c]}));return{focusedIndex:v,focusedItem:a[v-h],focusedType:st.ListItem}}return 0===h?{focusedItem:a[0],focusedIndex:0,focusedType:st.ListItem}:{focusedType:st.None,focusedIndex:-1}},t.prototype.focusElement=function(e){var t=this;this._skipFocusEvent=!0,e.focus(),window.setTimeout((function(){return t._skipFocusEvent=!1}),0)},t.prototype.applyState=function(e){this.base.applyState(e),this._valueItemsDuringOnChange=null},t.prototype.calculateMedia=function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];this.setState({windowWidth:o.target.clientWidth})}},t.prototype.updateStateOnKeyboardNavigation=function(e,t){this.setState({value:e}),this.triggerOnChange(e,t),this.applyState(t)},t.prototype.getLastSelectedOrDeselectedIndex=function(e,t){return null===this._lastSelectedOrDeslectedItemIndex&&(this._lastSelectedOrDeslectedItemIndex=t),null!==this._lastSelectedOrDeslectedItemIndex?this._lastSelectedOrDeslectedItemIndex+e:null},t.displayName="MultiSelect",t.propTypes=pt(pt({},ve.propTypes),{autoClose:r.bool,value:r.arrayOf(r.any),defaultValue:r.arrayOf(r.any),dataItemKey:r.string,placeholder:r.string,tags:r.arrayOf(r.shape({text:r.string,data:r.arrayOf(r.any)})),tagRender:r.func,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,groupField:r.string,list:r.any,adaptive:r.bool,adaptiveTitle:r.string,onCancel:r.func,skipDisabledItems:r.bool}),t.defaultProps=pt(pt({},ve.defaultProps),{autoClose:!0,required:!1,size:"medium",rounded:"medium",fillMode:"solid",groupMode:"modern",skipDisabledItems:!0}),t}(o.Component),bt=(0,p.Y)(),wt=(0,p.u)(bt,yt);wt.displayName="KendoReactMultiSelect";var kt=function(){return kt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},kt.apply(this,arguments)},xt=function(e){return o.createElement(de,kt({},e,{wrapperCssClass:"k-table-body k-table-scroller",listClassName:(0,s.A)("k-table k-table-list",{"k-virtual-table":void 0!==e.virtual}),listStyle:kt({},e.listStyle)}))},zt=n(9656),Ct=n(2665),St=n(9659),It=function(){return It=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},It.apply(this,arguments)},Mt=(0,p.Y)(),Et=o.forwardRef((function(e,t){var n=(0,zt.Y)(Mt,e),r=o.useRef(null),i=o.useRef(null),a=(0,Ct.n)(),l=n.columns,c=void 0===l?Ht.columns:l,u=n.popupSettings,d=void 0===u?Ht.popupSettings:u,p=n.className,h=(n.size,n.onOpen),f=n.onClose,m=n.onFocus,v=n.onBlur,g=n.onChange,y=n.onFilterChange,w=n.onPageChange,k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(n,["columns","popupSettings","className","size","onOpen","onClose","onFocus","onBlur","onChange","onFilterChange","onPageChange"]);o.useImperativeHandle(r,(function(){return{element:i.current&&i.current.element,focus:function(){i.current&&i.current.focus()},get value(){return i.current&&i.current.value},get name(){return i.current&&i.current.name},props:n}})),o.useImperativeHandle(t,(function(){return r.current}));var x=o.useMemo((function(){if(void 0!==n.groupField&&n.data)return B(n.data[0],n.groupField)}),[n.data,n.groupField]),z=o.useState(x),C=z[0],S=z[1],I=o.useState(!0),M=I[0],E=I[1],O=o.useMemo((function(){var e=o.createElement("th",{className:"k-table-th",colSpan:c.length},C);return o.createElement(o.Fragment,null,n.header,o.createElement("div",{className:"k-table-header-wrap"},o.createElement("table",{className:"k-table",role:"presentation"},o.createElement("colgroup",null,c.map((function(e,t){return o.createElement("col",{key:e.uniqueKey?e.uniqueKey:t,style:{width:e.width?e.width:Ht.width}})}))),o.createElement("thead",{className:"k-table-thead"},o.createElement("tr",{className:"k-table-row"},c.map((function(e,t){return o.createElement("th",{className:"k-table-th",key:e.uniqueKey?e.uniqueKey:t},e.header||" ")}))),C&&M&&o.createElement("tr",{className:"k-table-group-row"},n.groupStickyHeaderItemRender?n.groupStickyHeaderItemRender.call(void 0,e,{}):e)))))}),[n.header,c,C,M]),H=o.useMemo((function(){return"calc(".concat(c.map((function(e){return t=e.width,n=Ht.width,t?"number"==typeof t?t+"px":t:n;var t,n})).filter(Boolean).join(" + ")," + ").concat(a,"px + 4px)")}),[c,a]),N=n.virtual?n.virtual.skip:0,P=o.useCallback((function(e,t){var r,i,a,l=c.map((function(e,r){return o.createElement("span",{className:n.itemRender?void 0:"k-table-td",style:n.itemRender?void 0:{width:e.width?e.width:Ht.width},key:e.uniqueKey?e.uniqueKey:r},e.field?String((0,St.Y)(e.field)(t.dataItem)):"")})),u=void 0,d=n.data||[],p=t.index-N;void 0!==n.groupField&&(r=(a=(0,St.Y)(n.groupField))(d[p]),i=a(d[p-1]),r&&i&&r!==i&&(u=r)),u&&"classic"===n.groupMode&&l.push(o.createElement("div",{key:"group",className:"k-table-td k-table-group-td"},o.createElement("span",null,u)));var h=o.cloneElement(e,It(It({},e.props),{className:(0,s.A)("k-table-row",{"k-table-alt-row":t.index%2!=0,"k-focus":t.focused,"k-selected":t.selected,"k-first":Boolean(u),"k-disabled":t.dataItem.disabled})}),l);return n.itemRender?n.itemRender.call(void 0,h,t):h}),[c,n.groupField,n.itemRender,n.data,N]),V=o.useCallback((function(e,t){e&&e.call(void 0,It(It({},t),{target:r.current}))}),[]),T=o.useCallback((function(e){return n.virtual||S(x),V(h,e)}),[V,h,n.virtual,x]),R=o.useCallback((function(e){return V(f,e)}),[f]),D=o.useCallback((function(e){return V(m,e)}),[m]),A=o.useCallback((function(e){return V(v,e)}),[v]),L=o.useCallback((function(e){return V(g,e)}),[g]),_=o.useCallback((function(e){return V(w,e)}),[w]),F=o.useCallback((function(e){return S(x),V(y,It(It({},e),{mobileMode:e.target.mobileMode}))}),[y]),j=o.useCallback((function(e){S(e.group)}),[]);o.useEffect((function(){(0,Ct.p)()})),o.useEffect((function(){var e=n.data;S(x),e&&0!==e.length?E(!0):E(!1)}),[n.data]);var K=o.useCallback((function(e){return o.createElement(xt,It({},e))}),[]);return o.createElement(b.v.Provider,{value:function(e){return It(It({},e),{popupClass:"k-dropdowngrid-popup ".concat(d.popupClass)})}},o.createElement(qe,It({},k,{list:K,popupSettings:It(It({width:H},d),{className:d.className}),ref:i,header:O,itemRender:P,groupHeaderItemRender:n.groupHeaderItemRender,size:n.size,rounded:n.rounded,fillMode:n.fillMode,groupMode:n.groupMode,groupField:n.groupField,isMultiColumn:!0,onOpen:T,onClose:R,onFocus:D,onBlur:A,onChange:L,onFilterChange:F,onPageChange:_,onGroupScroll:j,className:(0,s.A)("k-dropdowngrid",p),required:n.required,adaptive:n.adaptive,adaptiveFilter:n.adaptiveFilter,adaptiveTitle:n.adaptiveTitle,footer:n.footer,footerClassName:"k-table-footer"})))})),Ot=It(It({},We.propTypes),{columns:r.any.isRequired}),Ht={columns:[],popupSettings:{},width:"200px",size:"medium",rounded:"medium",fillMode:"solid"};Et.displayName="KendoMultiColumnComboBox",Et.propTypes=Ot,Et.defaultProps=Ht;var Nt=n(3228),Pt=n(1573),Vt=n(8006),Tt=n(5098),Rt=n(4824),Dt=n(9519),Bt=n(5407);function At(e,t,n,o,r){switch(o){case l.R.left:return Tt.isIdZeroLevel(t)||r.expanded(e)&&(0,Dt.hc)(t,n,r)?t:Tt.getDirectParentId(t);case l.R.right:return(0,Dt.Cb)(e,r)?Tt.getFirstChildId(t):t;case l.R.up:return i=Number(Tt.getShortId(t)),a=Tt.getDirectParentId(t),i?_t(Tt.createId(i-1,a),n,r):Tt.isIdZeroLevel(t)?t:a;case l.R.down:return(0,Dt.Cb)(e,r)?Tt.getFirstChildId(t):Lt(t,n,r)||t;case l.R.home:return Tt.ZERO_LEVEL_ZERO_NODE_ID;case l.R.end:return function(){for(var e,t=(n.length-1).toString(),o=n[n.length-1];(0,Dt.Cb)(o,r);)e=o[r.getChildrenField()],t=Tt.createId(e.length-1,t),o=e[e.length-1];return t}();default:return t}var i,a}function Lt(e,t,n){var o=Tt.getDirectParentId(e),r=o?Tt.getItemById(o,t,n.getChildrenField()):void 0,i=r?r[n.getChildrenField()]:t,a=Number(Tt.getShortId(e));return a<i.length-1?Tt.createId(a+1,o):r?Lt(o,t,n):void 0}function _t(e,t,n){var o=Tt.getItemById(e,t,n.getChildrenField());return(0,Dt.Cb)(o,n)?_t(Tt.createId(o[n.getChildrenField()].length-1,e),t,n):e}var Ft=n(1779);const jt={name:"caret-alt-right",content:'<path d="M352 256 160 384V128l192 128z" />',viewBox:"0 0 512 512"},Kt={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},Wt={name:"caret-alt-left",content:'<path d="m160 256 192-128v256L160 256z" />',viewBox:"0 0 512 512"};var Ut=n(8686),qt="items",$t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gt=function(){return Gt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Gt.apply(this,arguments)},Zt=i.G.sizeMap,Yt=o.createContext((function(e){return e})),Jt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemGuid=(0,a.M)(),t.onCheckChange=function(e){t.props.onCheckChange(e,t.item,t.itemId)},t.onExpandChange=function(e){t.props.onExpandChange(e,t.item,t.itemId)},t.onItemClick=function(e){t.props.onItemClick(e,t.item,t.itemId)},t.onPress=function(e){t.props.onPress(e.event,t.item,t.itemId)},t.onDrag=function(e){t.props.onDrag(e.event,t.item,t.itemId)},t.onRelease=function(e){t.props.onRelease(e.event,t.item,t.itemId)},t.onContextMenu=function(e){t.props.onContextMenu(e,t.item,t.itemId)},t.assignDraggableMeta=function(e){e&&(e._kendoItemId=t.props.itemId,e._kendoTreeViewGuid=t.props.treeGuid)},t}return $t(t,e),t.prototype.render=function(){var e=this,t=this.renderSubitemsIfApplicable(),n=this.renderItemInPart();return o.createElement("li",{className:(0,s.A)("k-treeview-item"),tabIndex:this.tabIndex,role:"treeitem","aria-expanded":this.ariaExpanded,"aria-selected":this.ariaSelected,"aria-checked":this.ariaChecked,"aria-disabled":!!this.disabled||void 0,ref:function(t){return e.itemElement=t}},o.createElement("div",{className:"k-treeview-".concat(this.props.position),ref:this.assignDraggableMeta},this.renderExpandIcon(),this.renderCheckbox(),this.props.draggable?o.createElement(Ft._,{onPress:this.onPress,onDrag:this.onDrag,onRelease:this.onRelease},n):n),this.props.animate?o.createElement(Ut.U,{transitionEnterDuration:200,transitionExitDuration:200,style:{display:"block"},children:t}):t)},t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.itemId;e&&e===t&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement&&(this.checkboxElement.indeterminate=this.fieldsSvc.checkIndeterminate(this.item))},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId;if(t&&t!==e.focusedItemId&&t===this.itemId&&this.props.onFocusDomElNeeded(this.itemElement),this.checkboxElement){var n=this.fieldsSvc.checkIndeterminate(this.item);n!==e.fieldsService.checkIndeterminate(e.item)&&(this.checkboxElement.indeterminate=n)}},t.prototype.renderCheckbox=function(){var e,t=this;if(this.props.checkboxes){var n=this.props.size;return o.createElement("div",{className:(0,s.A)("k-checkbox-wrap")},o.createElement("input",{type:"checkbox",className:(0,s.A)("k-checkbox k-rounded-md",(e={},e["k-checkbox-".concat(Zt[n]||n)]=n,e["k-disabled"]=this.disabled,e)),"aria-label":this.item.text,checked:Boolean(this.fieldsSvc.checked(this.item)),id:this.itemGuid,tabIndex:-1,onChange:this.onCheckChange,ref:function(e){return t.checkboxElement=e}}),o.createElement("label",{className:"k-checkbox-label",htmlFor:this.itemGuid}))}},t.prototype.renderExpandIcon=function(){return this.props.expandIcons&&(this.fieldsSvc.hasChildren(this.item)||(0,Dt.g8)(this.item,this.fieldsSvc.getChildrenField()))&&o.createElement("span",{className:(0,s.A)("k-treeview-toggle",{"k-disabled":this.disabled}),onClick:this.onExpandChange},o.createElement(u.a,Gt({},this.getIconProps())))},t.prototype.renderSubitemsIfApplicable=function(){var e=this,t=this.fieldsSvc.children(this.item);return(0,Dt.Cb)(this.item,this.fieldsSvc)?o.createElement("ul",{className:"k-treeview-group",role:"group"},t.map((function(n,r){return o.createElement(Xt,{item:n,position:0===r?"top":r===t.length-1?"bot":"mid",itemId:Tt.createId(r,e.itemId),treeGuid:e.props.treeGuid,animate:e.props.animate,focusedItemId:e.props.focusedItemId,tabbableItemId:e.props.tabbableItemId,fieldsService:e.props.fieldsService,itemUI:e.props.itemUI,checkboxes:e.props.checkboxes,ariaMultiSelectable:e.props.ariaMultiSelectable,onItemClick:e.props.onItemClick,onFocusDomElNeeded:e.props.onFocusDomElNeeded,draggable:e.props.draggable,onPress:e.props.onPress,onDrag:e.props.onDrag,onRelease:e.props.onRelease,expandIcons:e.props.expandIcons,onExpandChange:e.props.onExpandChange,onCheckChange:e.props.onCheckChange,onContextMenu:e.props.onContextMenu,key:r,size:e.props.size,disabled:e.disabled,isRtl:e.props.isRtl})}))):void 0},t.prototype.renderItemInPart=function(){return o.createElement("span",{className:(0,s.A)("k-treeview-leaf",{"k-focus":this.props.focusedItemId===this.itemId,"k-selected":this.fieldsSvc.selected(this.item),"k-disabled":this.disabled}),style:{touchAction:"none"},onClick:this.onItemClick,onContextMenu:this.onContextMenu},o.createElement("span",{className:"k-treeview-leaf-text"},this.props.itemUI?o.createElement(this.props.itemUI,{item:this.item,itemHierarchicalIndex:this.itemId}):this.fieldsSvc.text(this.item)))},Object.defineProperty(t.prototype,"fieldsSvc",{get:function(){return this.props.fieldsService},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this.props.itemId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return(this.props.focusedItemId||this.props.tabbableItemId)===this.itemId?0:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaExpanded",{get:function(){return this.fieldsSvc.hasChildren(this.item)||(0,Dt.g8)(this.item,this.fieldsSvc.getChildrenField())?Boolean(this.fieldsSvc.expanded(this.item)):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.props.disabled||this.fieldsSvc.disabled(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaChecked",{get:function(){return this.props.checkboxes?this.fieldsSvc.checked(this.item)?"true":this.fieldsSvc.checkIndeterminate(this.item)?"mixed":"false":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaSelected",{get:function(){return!!this.fieldsSvc.selected(this.item)||(this.props.ariaMultiSelectable?!!this.disabled&&void 0:void 0)},enumerable:!1,configurable:!0}),t.prototype.getIconProps=function(){var e=this.fieldsSvc.expanded(this.item);return e&&!(0,Dt.g8)(this.item,this.fieldsSvc.getChildrenField())?{name:"loading"}:e?{name:"caret-alt-down",icon:Kt}:{name:this.props.isRtl?"caret-alt-left":"caret-alt-right",icon:this.props.isRtl?Wt:jt}},t.defaultProps={position:"top"},t}(o.Component),Xt=o.forwardRef((function(e,t){var n=o.useContext(Yt).call(void 0,e);return o.createElement(Jt,Gt({ref:t},n))}));Xt.displayName="TreeViewItem";var Qt={name:"@progress/kendo-react-treeview",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060326,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},en=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),tn=i.G.sizeMap,nn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:Tt.ZERO_LEVEL_ZERO_NODE_ID},n.fieldsSvc=null,n.allowExplicitFocus=!1,n.treeGuid=(0,a.M)(),n._element=null,n.onFocusDomElNeeded=function(e){n.allowExplicitFocus&&n.focusDomItem(e)},n.onCheckChange=function(e,t,o){n.setFocus(o),n.dispatchCheckChange(e,t,o)},n.onExpandChange=function(e,t,o){n.setFocus(o),n.dispatchExpandChange(e,t,o)},n.onPress=function(e,t,o){n.props.onItemDragStart&&n.props.onItemDragStart.call(void 0,{target:n,item:t,itemHierarchicalIndex:o})},n.onDrag=function(e,t,o){var r=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragOver&&n.props.onItemDragOver.call(void 0,{target:n,item:t,itemHierarchicalIndex:o,pageX:r,pageY:i,clientX:a,clientY:s})},n.onRelease=function(e,t,o){var r=e.pageX,i=e.pageY,a=e.clientX,s=e.clientY;n.props.onItemDragEnd&&n.props.onItemDragEnd.call(void 0,{target:n,item:t,itemHierarchicalIndex:o,pageX:r,pageY:i,clientX:a,clientY:s})},n.onItemClick=function(e,t,o){n.setFocus(o),n.dispatchItemClick(e,t,o)},n.onFocus=function(){clearTimeout(n.blurRequest),void 0===n.state.focusedItemId&&n.data.length&&n.setFocus(n.state.tabbableItemId)},n.onBlur=function(){clearTimeout(n.blurRequest),n.blurRequest=window.setTimeout((function(){return n.setFocus(void 0)}),0)},n.onKeyDown=function(e){var t=n.getFocusedItem();if(t&&n.fieldsSvc){var o=At(t,n.state.focusedItemId,n.data,e.keyCode,n.fieldsSvc);o!==n.state.focusedItemId&&(e.preventDefault(),n.allowExplicitFocus=!0,n.setFocus(o)),n.dispatchEventsOnKeyDown(e,t)}},n.onContextMenu=function(e,t,o){if(n.props.onContextMenu){var r={target:n,syntheticEvent:e,nativeEvent:e.nativeEvent,item:t,itemID:o};n.props.onContextMenu.call(void 0,r)}},(0,ge.s)(Qt),n}return en(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this;this.fieldsSvc=new Rt.U(this.props);var n=this.props,r=n.size,i=n.className;return o.createElement("div",{className:(0,s.A)("k-treeview",(e={},e["k-treeview-".concat(tn[r]||r)]=r,e["k-user-select-none"]=this.props.draggable,e["k-rtl"]="rtl"===this.props.dir,e),i),onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,role:"tree","aria-multiselectable":!!this.ariaMultiSelectable||void 0,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],ref:function(e){return t._element=e},tabIndex:this.props.tabIndex},o.createElement("ul",{className:"k-treeview-lines k-treeview-group",role:"group"},this.data.map((function(e,n){return o.createElement(Xt,{item:e,position:0===n?"top":n===t.data.length-1?"bot":"mid",itemId:n.toString(),treeGuid:t.treeGuid,animate:t.props.animate,focusedItemId:t.state.focusedItemId,tabbableItemId:t.state.tabbableItemId,fieldsService:t.fieldsSvc,itemUI:t.props.item,checkboxes:t.props.checkboxes,ariaMultiSelectable:t.ariaMultiSelectable,onItemClick:t.onItemClick,onFocusDomElNeeded:t.onFocusDomElNeeded,draggable:t.props.draggable,onPress:t.onPress,onDrag:t.onDrag,onRelease:t.onRelease,expandIcons:t.props.expandIcons,onExpandChange:t.onExpandChange,onCheckChange:t.onCheckChange,onContextMenu:t.onContextMenu,key:n,size:r,isRtl:"rtl"===t.props.dir})}))))},t.prototype.componentDidUpdate=function(){this.allowExplicitFocus=!1,this.refocusDueToFocusIdField()},t.prototype.dispatchEventsOnKeyDown=function(e,t){var n=this;if(null!==this.fieldsSvc){var o=function(){return n.fieldsSvc&&(0,Dt.hc)(n.state.focusedItemId,n.data,n.fieldsSvc)};e.keyCode===l.R.left&&this.fieldsSvc.expanded(t)&&o()||e.keyCode===l.R.right&&!this.fieldsSvc.expanded(t)&&(this.fieldsSvc.hasChildren(t)||(0,Dt.g8)(t,this.props.childrenField))&&o()?this.dispatchExpandChange(e,t,this.state.focusedItemId):e.keyCode===l.R.enter&&o()?this.dispatchItemClick(e,t,this.state.focusedItemId):e.keyCode===l.R.space&&o()&&(e.preventDefault(),this.dispatchCheckChange(e,t,this.state.focusedItemId))}},t.prototype.setFocus=function(e){if(e&&this.fieldsSvc)if(this.fieldsSvc.focusIdField){var t=this.getItemById(e);this.setState({focusedItemId:e,focusedItemPublicId:this.fieldsSvc.focusId(t)})}else this.setState({focusedItemId:e});else this.setState((function(e){return{focusedItemId:void 0,focusedItemPublicId:void 0,tabbableItemId:e.focusedItemId}}))},t.prototype.getFocusedItem=function(){return this.state.focusedItemId?this.getItemById(this.state.focusedItemId):void 0},t.prototype.getItemById=function(e){return Tt.getItemById(e,this.data,this.props.childrenField||qt)},t.prototype.dispatchCheckChange=function(e,t,n){(0,Bt.N)(this.props.onCheckChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchExpandChange=function(e,t,n){(0,Bt.N)(this.props.onExpandChange,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.dispatchItemClick=function(e,t,n){(0,Bt.N)(this.props.onItemClick,e,this,{item:t,itemHierarchicalIndex:n})},t.prototype.refocusDueToFocusIdField=function(){if(this.fieldsSvc&&this.fieldsSvc.focusIdField){var e=this.state.focusedItemPublicId;if(e){var t=this.props.getFocusHierarchicalIndex?this.props.getFocusHierarchicalIndex(e):(0,Dt.kO)(e,this.fieldsSvc.focusIdField,this.data,this.props.childrenField);t!==this.state.focusedItemId&&(this.allowExplicitFocus=!0,this.setState({focusedItemId:t}))}}},Object.defineProperty(t.prototype,"ariaMultiSelectable",{get:function(){return!0===this.props["aria-multiselectable"]||"true"===this.props["aria-multiselectable"]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.data||[]},enumerable:!1,configurable:!0}),t.prototype.focusDomItem=function(e){e.focus()},Object.defineProperty(t.prototype,"guid",{get:function(){return this.treeGuid},enumerable:!1,configurable:!0}),t.propTypes={data:r.arrayOf(r.any),animate:r.bool,tabIndex:r.number,focusIdField:r.string,getHierarchicalIndexById:r.func,onExpandChange:r.func,onItemClick:r.func,expandField:r.string,selectField:r.string,childrenField:r.string,hasChildrenField:r.string,textField:r.string,disableField:r.string,item:r.any,"aria-multiselectable":function(e,t,n){return void 0!==e[t]&&!0!==e[t]&&!1!==e[t]&&"true"!==e[t]&&"false"!==e[t]?new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed."):null},"aria-label":r.string,"aria-labelledby":r.string,size:r.oneOf([null,"small","medium","large"]),dir:r.string},t.defaultProps={animate:!0,expandField:"expanded",selectField:"selected",hasChildrenField:"hasChildren",childrenField:qt,textField:"text",disableField:"disabled",checkField:"checked",checkIndeterminateField:"checkIndeterminate",size:"medium"},t}(o.Component);function on(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){void 0!==i&&e.current&&a(e.current.offsetWidth)}),n),i}var rn=function(e){return o.createElement("div",{className:"k-nodata"},o.createElement("div",null,e.children))},an=function(){return an=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},an.apply(this,arguments)},sn=i.G.sizeMap,ln=i.G.roundedMap,cn=function(e){return o.createElement("span",{className:"k-input-value-text"},e.children)},un=function(e){return e.split("_").map((function(e){return parseInt(e,10)}))},dn={selectField:"selected",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},data:[],required:!1,style:{},validityStyles:!0,size:"medium",rounded:"medium",fillMode:"solid"},pn=(0,p.Y)(),hn=o.forwardRef((function(e,t){var n;(0,ge.s)(be);var r=(0,zt.Y)(pn,e),i=an(an({},dn),r),d=o.useMemo((function(){return(0,a.M)()}),[]),p=i.id||d,v=i.data,g=i.dataItemKey,y=i.popupSettings,w=i.style,k=i.opened,x=i.disabled,z=i.onOpen,C=void 0===z?Nt.Z:z,S=i.onClose,I=void 0===S?Nt.Z:S,M=i.placeholder,O=i.label,H=i.name,N=i.selectField,V=i.subItemsField,T=i.validationMessage,R=i.valid,D=i.required,A=i.validityStyles,_=(0,c.p)(i.tabIndex,x),F=o.useRef(null),j=o.useRef(null),K=o.useRef(null),W=o.useRef(null),U=o.useRef(null),q=o.useRef(null),$=o.useRef(!1),G=o.useState(void 0),Z=G[0],Y=G[1],J=void 0!==i.value,X=J?i.value:void 0!==Z?Z:i.defaultValue,Q=P(X),oe=Q?B(X,i.textField):"",re=function(e,t){var n=e.valid;return{customError:void 0!==e.validationMessage,valid:Boolean(void 0!==n?n:!e.required||t),valueMissing:!t}}({validationMessage:T,valid:R,required:D},Q),ie=o.useCallback((function(){return j.current&&j.current.focus()}),[]);o.useImperativeHandle(F,(function(){return{props:i,element:j.current,focus:ie}})),o.useImperativeHandle(t,(function(){return F.current}));var ae=(0,Pt.V)(j,i.dir),se=void 0!==y.width?y.width:void 0!==w.width?w.width:dn.popupSettings.width,ce=on(j,se),ue=an({width:ce},void 0!==ae?{direction:ae}:{}),de=o.useState(!1),pe=de[0],he=de[1],fe=void 0!==k?k:pe,me=o.useState(!1),ve=me[0],ke=me[1],ze=o.useState(),Ce=ze[0],Ie=ze[1],Me=!!(Ce&&Ce<=xe&&i.adaptive),Ee=o.useState(""),Oe=Ee[0],He=Ee[1],Ne=o.useCallback((function(){U.current&&U.current.setCustomValidity&&U.current.setCustomValidity(re.valid?"":void 0===T?"Please select a value from the list!":T)}),[T,re]);o.useEffect(Ne),o.useEffect((function(){var e=ye.N&&window.ResizeObserver&&new window.ResizeObserver(Je.bind(void 0));return(null===document||void 0===document?void 0:document.body)&&e&&e.observe(document.body),function(){(null===document||void 0===document?void 0:document.body)&&e&&e.disconnect()}}),[]);var Pe,Ve,Te=o.useCallback((function(e){if(!fe){if(C){var t=an({},e);C.call(void 0,t)}void 0===k&&he(!0)}}),[fe,k,C]),Re=o.useCallback((function(e){if(fe){if(I){var t=an({},e);I.call(void 0,t)}void 0===k&&(he(!1),Me&&setTimeout((function(){var e;_e(null===(e=W.current)||void 0===e?void 0:e.element)}),300))}}),[fe,k,I,Me]),De=o.useCallback((function(e){if(!e.isDefaultPrevented()&&F.current){ke(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:F.current};(fe?Re:Te)(t)}}),[fe,k,C,I]),Be=o.useCallback((function(e){$.current=!0,e(),window.setTimeout((function(){return $.current=!1}),0)}),[]),Ae=o.useCallback((function(e){var t,n,o=e.keyCode,r=e.altKey,i=q.current&&q.current.element;if(F.current&&(!e.isDefaultPrevented()||(null===(t=K.current)||void 0===t?void 0:t.element)!==e.target)){var a={syntheticEvent:e,nativeEvent:e.nativeEvent,target:F.current};if(fe)if(o===l.R.esc||r&&o===l.R.up)e.preventDefault(),Re(a);else if(i&&i.querySelector(".k-focus")&&(o===l.R.up||o===l.R.down||o===l.R.left||o===l.R.right||o===l.R.home||o===l.R.end)){if(o===l.R.up&&(null===(n=K.current)||void 0===n?void 0:n.element)){var s=Array.from(i.querySelectorAll(".k-treeview-item")),c=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([],s,!0).reverse().find((function(e){return Boolean(e&&e.querySelector(".k-focus"))}));if(c&&0===s.indexOf(c))return Be((function(){var e;_e(null===(e=K.current)||void 0===e?void 0:e.element)}))}Be(Nt.Z)}else o===l.R.down&&Be((function(){var e;_e((null===(e=K.current)||void 0===e?void 0:e.element)||i)}));else r&&o===l.R.down?(e.preventDefault(),Te(a)):fe||o===l.R.esc&&Ge(e)}}),[fe,k,C,I]),Le=o.useCallback((function(e){var t=e.keyCode;e.altKey||t!==l.R.up&&t!==l.R.down||(e.preventDefault(),Be(t===l.R.up?function(){_e(j.current)}:function(){_e(q.current&&q.current.element)}))}),[]),_e=o.useCallback((function(e){e&&Be((function(){return e.focus()}))}),[]),Fe=o.useCallback((function(){var e;ve||!fe||k?r.filterable?_e(null===(e=K.current)||void 0===e?void 0:e.element):_e(q.current&&q.current.element):Re({target:F.current})}),[I,r.filterable,ve,k,fe]),je=o.useCallback((function(){ve&&_e(j.current)}),[ve]),Ke=o.useCallback((function(e){if(!ve&&!$.current&&(ke(!0),r.onFocus&&F.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:F.current};r.onFocus.call(void 0,t)}}),[ve,r.onFocus]),We=o.useCallback((function(e){if(ve&&!$.current&&F.current){ke(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:F.current};if(r.onBlur){var n=an({},t);r.onBlur.call(void 0,n)}Me||Re(t)}}),[ve,r.onBlur,fe,k,I]),Ue=o.useCallback((function(){ve&&Be(Nt.Z),Me&&setTimeout((function(){var e;_e(null===(e=W.current)||void 0===e?void 0:e.element)}),300)}),[ve,Me]),qe=o.useCallback((function(e,t,n){if(r.onChange){var o=an({value:t,level:n?un(n):[]},e);r.onChange.call(void 0,o)}J||Y(t)}),[r.onChange,J]),$e=o.useCallback((function(e){if(!L(e.item,X,g)&&F.current){var t=e.item,n=e.itemHierarchicalIndex,o=e.nativeEvent,r={syntheticEvent:e.syntheticEvent,nativeEvent:o,target:F.current};qe(r,t,n),Re(r)}}),[J,X,r.onChange,g,fe,k,I]),Ge=o.useCallback((function(e){if(F.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:F.current};qe(t,null),Re(t),e.preventDefault()}}),[J,r.onChange,fe,k,I]),Ze=o.useCallback((function(e){if(e.syntheticEvent.stopPropagation(),r.onExpandChange&&F.current){var t=e.item,n=e.itemHierarchicalIndex,o=e.nativeEvent,i=e.syntheticEvent,a={level:un(n),item:t,nativeEvent:o,syntheticEvent:i,target:F.current};r.onExpandChange.call(void 0,a)}}),[r.onExpandChange]),Ye=o.useCallback((function(e){if(r.onFilterChange&&F.current){var t={filter:{field:r.textField,operator:"contains",value:e.target.value},syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:F.current};r.onFilterChange.call(void 0,t),void 0===r.filter&&He(e.target.value)}}),[r.onFilterChange,r.filter,r.textField]),Je=o.useCallback((function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];Ie(o.target.clientWidth)}}),[]),Xe=o.useMemo((function(){return J||!Q?v:(0,Vt.Gy)(v,V,(function(e){var t;return(0,Vt.u5)(e,V,((t={})[N]=L(e,X,g),t))}))}),[v,X,J,Q,N,V]),Qe=i.listNoData||rn,et=i.valueHolder||cn,tt=(0,ee.useLocalization)(),nt=!A||re.valid,ot=i.size,rt=i.rounded,it=i.fillMode,at=o.createElement(o.Fragment,null,o.createElement("span",{className:(0,s.A)("k-dropdowntree k-picker",i.className,(n={},n["k-picker-".concat(sn[ot]||ot)]=ot,n["k-rounded-".concat(ln[rt]||rt)]=rt,n["k-picker-".concat(it)]=it,n["k-focus"]=ve,n["k-invalid"]=!nt,n["k-loading"]=i.loading,n["k-required"]=D,n["k-disabled"]=i.disabled,n)),tabIndex:_,accessKey:i.accessKey,id:p,style:O?an(an({},w),{width:void 0}):w,dir:ae,ref:j,onKeyDown:x?void 0:Ae,onMouseDown:Ue,onClick:x?void 0:De,onFocus:Ke,onBlur:We,role:"combobox","aria-haspopup":"tree","aria-expanded":fe,"aria-disabled":x,"aria-label":O,"aria-labelledby":i.ariaLabelledBy,"aria-describedby":i.ariaDescribedBy,"aria-required":D},o.createElement("span",{className:"k-input-inner"},o.createElement(et,{item:X},oe||M)),i.loading&&o.createElement(u.a,{className:"k-input-loading-icon",name:"loading"}),Q&&!x&&o.createElement("span",{onClick:Ge,className:"k-clear-value",title:tt.toLanguageString(ne,le[ne]),role:"button",tabIndex:-1,onMouseDown:function(e){return e.preventDefault()}},o.createElement(u.a,{name:"x",icon:m})),o.createElement(we.z,{tabIndex:-1,type:"button","aria-label":"select",className:"k-input-button",size:ot,fillMode:it,themeColor:"base",rounded:null,icon:"caret-alt-down",svgIcon:f}),o.createElement("select",{name:H,ref:U,tabIndex:-1,"aria-hidden":!0,title:O,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:i.valueMap?i.valueMap.call(void 0,X):X})),!Me&&o.createElement(b.G,{className:(0,s.A)(y.className,{"k-rtl":"rtl"===ae}),popupClass:(0,s.A)(y.popupClass,"k-dropdowntree-popup"),style:ue,animate:y.animate,anchor:j.current,show:fe,onOpen:Fe,onClose:je,appendTo:y.appendTo},i.filterable&&o.createElement(E,{value:void 0===i.filter?Oe:i.filter,ref:K,onChange:Ye,onKeyDown:Le,size:ot,rounded:rt,fillMode:it}),v.length>0?o.createElement(nn,{ref:q,tabIndex:_,data:Xe,focusIdField:g,textField:i.textField,selectField:N,expandField:i.expandField,childrenField:V,expandIcons:!0,onItemClick:$e,onExpandChange:Ze,size:ot,item:i.item,dir:ae}):o.createElement(Qe,null,tt.toLanguageString(te,le[te])))),Me&&(Pe=i.filterable?o.createElement(E,{value:void 0===i.filter?Oe:i.filter,ref:W,onChange:Ye,onKeyDown:Le,size:ot,rounded:rt,fillMode:it}):null,Ve={adaptiveTitle:i.adaptiveTitle,expand:fe,onClose:function(e){return Re(e)},windowWidth:Ce,mobileFilter:Pe},o.createElement(ut,an({},Ve),o.createElement(Se.M,{className:"!k-overflow-hidden"},o.createElement("div",{className:"k-list-container"},o.createElement("div",{className:"k-list k-list-lg"},v.length>0?o.createElement(nn,{ref:q,tabIndex:_,data:Xe,focusIdField:g,textField:i.textField,selectField:N,expandField:i.expandField,childrenField:V,expandIcons:!0,onItemClick:$e,onExpandChange:Ze,size:ot,item:i.item,dir:ae}):o.createElement(Qe,null,tt.toLanguageString(te,le[te]))))))));return O?o.createElement(h._,{label:O,editorValue:oe,editorPlaceholder:M,editorValid:nt,editorDisabled:x,editorId:p,style:{width:w?w.width:void 0},children:at,dir:ae}):at})),fn={opened:r.bool,disabled:r.bool,dir:r.string,tabIndex:r.number,accessKey:r.string,data:r.array,value:r.any,valueMap:r.func,placeholder:r.string,dataItemKey:r.string.isRequired,textField:r.string.isRequired,selectField:r.string,expandField:r.string,subItemsField:r.string,className:r.string,style:r.object,label:r.string,validationMessage:r.string,validityStyles:r.bool,valid:r.bool,required:r.bool,name:r.string,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,filterable:r.bool,filter:r.string,loading:r.bool,popupSettings:r.shape({animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),popupClass:r.string,className:r.string,appendTo:r.any,width:r.oneOfType([r.string,r.number]),height:r.oneOfType([r.string,r.number])}),onOpen:r.func,onClose:r.func,onFocus:r.func,onBlur:r.func,onChange:r.func,onFilterChange:r.func,onExpandChange:r.func,item:r.func,valueHolder:r.func,listNoData:r.func,adaptiveTitle:r.string,adaptive:r.bool};hn.displayName="KendoReactDropDownTree",hn.propTypes=fn;var mn=function(){return mn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},mn.apply(this,arguments)},vn=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},gn=i.G.sizeMap,yn=i.G.roundedMap,bn={checkField:"checkField",checkIndeterminateField:"checkIndeterminateField",subItemsField:"items",popupSettings:{animate:!0,width:"200px",height:"200px"},size:"medium",rounded:"medium",fillMode:"solid",required:!1,validityStyles:!0},wn=(0,p.Y)(),kn=o.forwardRef((function(e,t){var n,r,i=(0,zt.Y)(wn,e);(0,ge.s)(be);var d=o.useMemo((function(){return(0,a.M)()}),[]),p=i.id||d,f=i.data,m=void 0===f?[]:f,v=i.dataItemKey,g=i.popupSettings,y=void 0===g?{}:g,w=i.style,k=void 0===w?{}:w,x=i.opened,z=i.disabled,C=i.onOpen,S=void 0===C?Nt.Z:C,I=i.onClose,M=void 0===I?Nt.Z:I,O=i.placeholder,H=i.label,N=i.name,P=i.checkField,V=void 0===P?bn.checkField:P,T=i.checkIndeterminateField,R=void 0===T?bn.checkIndeterminateField:T,D=i.subItemsField,A=void 0===D?bn.subItemsField:D,_=i.validationMessage,F=i.valid,K=i.tags,W=i.value,U=i.required,q=void 0===U?bn.required:U,$=i.validityStyles,G=void 0===$?bn.validityStyles:$,Z=(0,c.p)(i.tabIndex,z),Y=o.useRef(null),J=o.useRef(null),X=o.useRef(null),Q=o.useRef(null),ne=o.useRef(null),oe=o.useRef(null),re=o.useRef(!1),ie=o.useRef([]),ce=o.useRef(null),ue=o.useState(),de=ue[0],pe=ue[1],he=o.useState(!1),fe=he[0],me=he[1],ve=o.useState(!1),we=ve[0],ke=ve[1],ze=o.useState(),Ce=ze[0],Ie=ze[1],Me=o.useState([]),Ee=Me[0],Oe=Me[1],He=o.useState(""),Ne=He[0],Pe=He[1],Ve=!!(Ce&&Ce<=xe&&i.adaptive),Te=void 0!==x?x:fe,Re=Boolean(Array.isArray(W)&&W.length),De=function(e,t){var n=e.valid;return{customError:void 0!==e.validationMessage,valid:Boolean(void 0!==n?n:!e.required||t),valueMissing:!t}}({validationMessage:_,valid:F,required:q},Re),Be=(0,Pt.V)(J,i.dir),Ae=void 0!==y.width?y.width:void 0!==k.width?k.width:bn.popupSettings.width,_e=on(J,Ae),Fe=mn({width:_e},void 0!==Be?{direction:Be}:{}),je=o.useCallback((function(){return J.current&&J.current.focus()}),[]);ie.current=void 0===K?(W||[]).map((function(e){return{text:B(e,i.textField),data:[e]}})):vn([],K,!0),o.useImperativeHandle(Y,(function(){return{props:i,element:J.current,focus:je}})),o.useImperativeHandle(t,(function(){return Y.current}));var Ke=o.useCallback((function(){ne.current&&ne.current.setCustomValidity&&ne.current.setCustomValidity(De.valid?"":void 0===_?"Please select a value from the list!":_)}),[_,De]);o.useEffect(Ke),o.useEffect((function(){var e=ye.N&&window.ResizeObserver&&new window.ResizeObserver(ht.bind(void 0));return(null===document||void 0===document?void 0:document.body)&&e&&e.observe(document.body),function(){e&&e.disconnect()}}),[]),o.useEffect((function(){ce.current&&Te&&ce.current.setPosition(ce.current._popup)}),[W,Te]);var We,Ue,qe=o.useCallback((function(e,t,n){if(i.onChange){var o=mn({items:t,operation:n},e);i.onChange.call(void 0,o)}}),[i.onChange]),$e=o.useCallback((function(e){if(!L(e.item,W,v)&&Y.current){var t=e.item,n=e.nativeEvent,o={syntheticEvent:e.syntheticEvent,nativeEvent:n,target:Y.current};qe(o,[t],"toggle")}}),[W,v,qe]),Ge=o.useCallback((function(e){if(!Te){if(S){var t=mn({},e);S.call(void 0,t)}void 0===x&&(me(!0),Oe(W||[]),Ve&&setTimeout((function(){var e;Je(null===(e=Q.current)||void 0===e?void 0:e.element)}),300))}}),[Te,x,S,Ve,Q]),Ze=o.useCallback((function(e){if(Te){if(M){var t=mn({},e);M.call(void 0,t)}void 0===x&&me(!1)}}),[Te,x,M]),Ye=o.useCallback((function(e){re.current=!0,e(),window.setTimeout((function(){return re.current=!1}),0)}),[]),Je=o.useCallback((function(e){e&&Ye((function(){return e.focus()}))}),[Ye]),Xe=o.useCallback((function(){var e;!we&&Te?Ze({target:Y.current}):i.filterable?Je(null===(e=X.current)||void 0===e?void 0:e.element):Je(oe.current&&oe.current.element)}),[we,Te,Je,Ze,i.filterable]),Qe=o.useCallback((function(){we&&Je(J.current)}),[we,Je]),et=o.useCallback((function(e){if(!we&&!re.current&&(ke(!0),i.onFocus&&Y.current)){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Y.current};i.onFocus.call(void 0,t)}}),[we,i.onFocus]),tt=o.useCallback((function(e){if(we&&!re.current&&Y.current){ke(!1);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Y.current};if(i.onBlur){var n=mn({},t);i.onBlur.call(void 0,n)}Ve||Ze(t)}}),[we,i.onBlur,Te,x,M]),nt=o.useCallback((function(){we&&Ye(Nt.Z)}),[we,Ye]),ot=o.useCallback((function(e){if(!e.isDefaultPrevented()&&Y.current){ke(!0);var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Y.current};Te||Ge(t)}}),[Te,Ge]),rt=o.useCallback((function(e){var t,n,o=e.keyCode,r=e.altKey,i=oe.current&&oe.current.element;if(Y.current&&(!e.isDefaultPrevented()||(null===(t=X.current)||void 0===t?void 0:t.element)!==e.target)){var a={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Y.current};if(W&&W.length>0&&(o===l.R.left||o===l.R.right||o===l.R.home||o===l.R.end||o===l.R.delete)){var s=ie.current,c=de?s.findIndex((function(e){return j(e,de,v)})):-1,u=void 0,d=-1!==c;o===l.R.left?u=s[c=d?Math.max(0,c-1):s.length-1]:o===l.R.right?c===s.length-1?u=void 0:d&&(u=s[c=Math.min(s.length-1,c+1)]):o===l.R.home?u=s[0]:o===l.R.end?u=s[s.length-1]:o===l.R.delete&&d&&qe(a,s[c].data,"delete"),u!==de&&pe(u)}if(Te)if(o===l.R.esc||r&&o===l.R.up)e.preventDefault(),Ze(a);else if(i&&i.querySelector(".k-focus")&&(o===l.R.up||o===l.R.down||o===l.R.left||o===l.R.right||o===l.R.home||o===l.R.end)){if(o===l.R.up&&(null===(n=X.current)||void 0===n?void 0:n.element)){var p=Array.from(i.querySelectorAll(".k-treeview-item")),h=vn([],p,!0).reverse().find((function(e){return Boolean(e&&e.querySelector(".k-focus"))}));if(h&&0===p.indexOf(h))return Ye((function(){var e;Je(null===(e=X.current)||void 0===e?void 0:e.element)}))}Ye(Nt.Z)}else o===l.R.down&&Ye((function(){var e;Je((null===(e=X.current)||void 0===e?void 0:e.element)||i)}));else r&&o===l.R.down&&(e.preventDefault(),Ge(a))}}),[Te,Ze,Je,Ye,Ge,de,v,W,qe]),at=o.useCallback((function(e){var t=e.keyCode;e.altKey||t!==l.R.up&&t!==l.R.down||(e.preventDefault(),Ye(t===l.R.up?function(){Je(J.current)}:function(){Je(oe.current&&oe.current.element)}))}),[Je,Ye]),st=o.useCallback((function(e){if(Y.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Y.current};qe(t,[],"clear"),Ze(t),e.preventDefault()}}),[qe,Ze]),lt=o.useCallback((function(e,t){var n;Ze({target:Y.current}),we||Je(null===(n=X.current)||void 0===n?void 0:n.element),qe({syntheticEvent:t,nativeEvent:t.nativeEvent,target:Y.current},e,"delete")}),[qe,Ze,Je,we]),ct=o.useCallback((function(e){if(i.onExpandChange&&Y.current){var t=e.item,n=e.itemHierarchicalIndex,o=e.nativeEvent,r=e.syntheticEvent,a={level:(s=n,s.split("_").map((function(e){return parseInt(e,10)}))),item:t,nativeEvent:o,syntheticEvent:r,target:Y.current};i.onExpandChange.call(void 0,a)}var s}),[i.onExpandChange]),dt=o.useCallback((function(e){if(i.onFilterChange&&Y.current){var t={filter:{field:i.textField,operator:"contains",value:e.target.value},syntheticEvent:e.syntheticEvent,nativeEvent:e.nativeEvent,target:Y.current};i.onFilterChange.call(void 0,t),void 0===i.filter&&Pe(e.target.value)}}),[i.onFilterChange,i.filter,i.textField]),pt=o.useCallback((function(e){if(Y.current){var t={syntheticEvent:e,nativeEvent:e.nativeEvent,target:Y.current};i.onCancel&&i.onCancel.call(void 0,t),Ze(t),e.preventDefault()}}),[i.onCancel,Ze]),ht=o.useCallback((function(e){for(var t=0,n=e;t<n.length;t++){var o=n[t];Ie(o.target.clientWidth)}}),[]),ft=i.listNoData||rn,mt=(0,ee.useLocalization)(),vt=!G||De.valid,gt=i.size,yt=i.rounded,bt=i.fillMode,wt=Ve&&Te?Ee:ie.current,kt=o.createElement(o.Fragment,null,o.createElement("span",{className:(0,s.A)("k-multiselecttree k-input",i.className,(n={},n["k-input-".concat(gn[gt]||gt)]=gt,n["k-rounded-".concat(yn[yt]||yt)]=yt,n["k-input-".concat(bt)]=bt,n["k-focus"]=we&&!z,n["k-invalid"]=!vt,n["k-disabled"]=z,n["k-loading"]=i.loading,n["k-required"]=q,n)),tabIndex:Z,accessKey:i.accessKey,id:p,style:H?mn(mn({},k),{width:void 0}):k,dir:Be,ref:J,onKeyDown:z?void 0:rt,onMouseDown:nt,onFocus:et,onBlur:tt,role:"combobox","aria-haspopup":"tree","aria-expanded":Te,"aria-disabled":z,"aria-label":H,"aria-labelledby":i.ariaLabelledBy,"aria-describedby":i.ariaDescribedBy?i.ariaDescribedBy:"tagslist-"+p,"aria-required":i.required,onClick:z?void 0:ot},o.createElement("div",{id:"tagslist-"+p,className:(0,s.A)("k-input-values k-chip-list k-selection-multiple",(r={},r["k-chip-list-".concat(gn[gt]||gt)]=gt,r))},wt.length>0?o.createElement(it,{tag:i.tag,onTagDelete:lt,data:wt,guid:p,focused:de?ie.current.find((function(e){return j(e,de,v)})):void 0,size:gt}):O),o.createElement("span",{className:"k-input-inner"},o.createElement("span",{className:"k-input-value-text"}," ")),i.loading&&o.createElement(u.a,{className:"k-input-loading-icon",name:"loading"}),Re&&!z&&wt.length>0&&o.createElement(Le,{onClick:st}),o.createElement("select",{name:N,ref:ne,tabIndex:-1,"aria-hidden":!0,title:H,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},o.createElement("option",{value:i.valueMap?i.valueMap.call(void 0,W):W})),!Ve&&o.createElement(b.G,{popupClass:(0,s.A)(y.popupClass,"k-multiselecttree-popup"),className:(0,s.A)(y.className,{"k-rtl":"rtl"===Be}),style:Fe,animate:y.animate,anchor:J.current,show:Te,onOpen:Xe,onClose:Qe,appendTo:y.appendTo,ref:ce},i.filterable&&o.createElement(E,{value:void 0===i.filter?Ne:i.filter,ref:X,onChange:dt,onKeyDown:at,tabIndex:Z,size:gt,rounded:yt,fillMode:bt}),m.length>0?o.createElement(nn,{ref:oe,tabIndex:Z,data:m,focusIdField:v,textField:i.textField,checkField:V,checkIndeterminateField:R,expandField:i.expandField,childrenField:A,expandIcons:!0,onItemClick:$e,onCheckChange:$e,onExpandChange:ct,checkboxes:!0,size:gt,item:i.item,dir:Be}):o.createElement(ft,null,mt.toLanguageString(te,le[te])))),Ve&&(We=i.filterable?o.createElement(E,{value:void 0===i.filter?Ne:i.filter,ref:Q,onChange:dt,onKeyDown:at,size:gt,rounded:yt,fillMode:bt}):null,Ue={adaptiveTitle:i.adaptiveTitle,expand:Te,onClose:function(e){return i.onCancel?pt(e):st(e)},windowWidth:Ce,mobileFilter:We,footer:{cancelText:mt.toLanguageString(se,le[se]),onCancel:function(e){return i.onCancel?pt(e):st(e)},applyText:mt.toLanguageString(ae,le[ae]),onApply:function(e){return Ze(e)}}},o.createElement(ut,mn({},Ue),o.createElement(Se.M,{className:"!k-overflow-hidden"},o.createElement("div",{className:"k-list-container"},o.createElement("div",{className:"k-list k-list-lg"},m.length>0?o.createElement(nn,{ref:oe,tabIndex:Z,data:m,focusIdField:v,textField:i.textField,checkField:V,checkIndeterminateField:R,expandField:i.expandField,childrenField:A,expandIcons:!0,onItemClick:$e,onCheckChange:$e,onExpandChange:ct,checkboxes:!0,size:gt,item:i.item,dir:Be}):o.createElement(ft,null,mt.toLanguageString(te,le[te]))))))));return H?o.createElement(h._,{label:H,editorValue:Re,editorPlaceholder:O,editorValid:vt,editorDisabled:z,editorId:p,style:{width:k?k.width:void 0},children:kt,dir:Be}):kt})),xn={opened:r.bool,disabled:r.bool,dir:r.string,tabIndex:r.number,accessKey:r.string,data:r.array,value:r.any,valueMap:r.func,placeholder:r.string,dataItemKey:r.string.isRequired,textField:r.string.isRequired,checkField:r.string,checkIndeterminateField:r.string,expandField:r.string,subItemsField:r.string,className:r.string,style:r.object,label:r.string,validationMessage:r.string,validityStyles:r.bool,valid:r.bool,required:r.bool,name:r.string,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,filterable:r.bool,filter:r.string,loading:r.bool,tags:r.arrayOf(r.shape({text:r.string,data:r.arrayOf(r.any)})),popupSettings:r.shape({animate:r.oneOfType([r.bool,r.shape({openDuration:r.number,closeDuration:r.number})]),popupClass:r.string,className:r.string,appendTo:r.any,width:r.oneOfType([r.string,r.number]),height:r.oneOfType([r.string,r.number])}),onOpen:r.func,onClose:r.func,onFocus:r.func,onBlur:r.func,onChange:r.func,onFilterChange:r.func,onExpandChange:r.func,onCancel:r.func,item:r.func,listNoData:r.func,adaptiveTitle:r.string,adaptive:r.bool};kn.displayName="KendoReactMultiSelectTree",kn.defaultProps=bn,kn.propTypes=xn;var zn=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Cn=function(e,t){var n={};return e&&e.length&&e.forEach((function(e){n[t(e)]=!0})),n},Sn=function(e,t){var n=t.items,o=t.dataItemKey,r=t.value,i=t.subItemsField,a=void 0===i?"items":i,s=t.operation,l=(0,St.Y)(o),c=Cn(r,l);if("clear"===s)return[];if("delete"===s){var u=Cn(n,l);return r.filter((function(e){return!u[l(e)]}))}for(var d,p=n[0],h=l(p),f=(0,St.Y)(a),m=zn([],e,!0),v=[],g=[];m.length;){var y=m.pop();if(h===l(y)){g=v.map((function(e){return e.item})),d=y;break}v&&v.length&&v[v.length-1].parentPosition===m.length&&v.pop(),(E=f(y))&&E.length&&(v.push({item:y,parentPosition:m.length}),m.push.apply(m,E))}for(var b=zn([],f(d)||[],!0),w=[];b.length;)y=b.pop(),w.push(y),(E=f(y))&&E.length&&b.push.apply(b,E);var k=[];if(c[h]){var x=l(d),z=Cn(w,l),C=Cn(g,l);k.push.apply(k,r.filter((function(e){var t=l(e);return!z[t]&&x!==t&&!C[t]})))}else{k.push.apply(k,r),k.push(d),k.push.apply(k,w.filter((function(e){return!c[l(e)]})));for(var S=g.filter((function(e){return!c[l(e)]})),I=Cn(k,l),M=S.length-1;M>-1;M--){var E,O=S[M];if((E=f(O)).filter((function(e){return I[l(e)]})).length<E.length)break;k.push(O),I[l(O)]=!0}}return k}},2696:(e,t,n)=>{function o(e){this.content=e}n.r(t),n.d(t,{AddMarkStep:()=>be,AddNodeMarkStep:()=>ke,AllSelection:()=>rt,AttrStep:()=>qe,CellSelection:()=>nl,ContentMatch:()=>T,DOMParser:()=>J,DOMSerializer:()=>se,Decoration:()=>Wa,DecorationSet:()=>$a,EditorState:()=>ht,EditorView:()=>ys,Fragment:()=>s,GapCursor:()=>qd,InputRule:()=>Uc,MapResult:()=>pe,Mapping:()=>fe,Mark:()=>d,MarkType:()=>G,Node:()=>N,NodeRange:()=>O,NodeSelection:()=>nt,NodeType:()=>q,Plugin:()=>mt,PluginKey:()=>yt,RemoveMarkStep:()=>we,RemoveNodeMarkStep:()=>xe,ReplaceAroundStep:()=>Ce,ReplaceError:()=>p,ReplaceStep:()=>ze,ResolvedPos:()=>S,Schema:()=>Z,Selection:()=>Ye,SelectionRange:()=>Je,Slice:()=>h,Step:()=>ve,StepMap:()=>he,StepResult:()=>ge,TableMap:()=>Bs,TextSelection:()=>et,Transaction:()=>lt,Transform:()=>Ge,TransformError:()=>$e,__endComposition:()=>gs,__parseFromClipboard:()=>vs,__serializeForClipboard:()=>ms,activeNode:()=>Bn,addColSpan:()=>el,addColumn:()=>Pl,addColumnAfter:()=>up,addColumnBefore:()=>cp,addListNodes:()=>Gn,addRow:()=>Al,addRowAfter:()=>ap,addRowBefore:()=>ip,alignBlocks:()=>An,alignCenterRules:()=>pr,alignJustifyRules:()=>hr,alignLeftRules:()=>ur,alignRemoveRules:()=>fr,alignRightRules:()=>dr,applyInlineStyle:()=>Cn,applyLink:()=>In,autoJoin:()=>Lo,baseKeymap:()=>Uo,blockNodes:()=>Hn,blockquote:()=>qo,bold:()=>iu,buildKeymap:()=>hu,buildListKeymap:()=>fu,bulletList:()=>Un,canBeIndented:()=>Xo,canIndentAsListItem:()=>Yo,canInsert:()=>Et,canJoin:()=>Ne,canOutdentAsListItem:()=>Jo,canSplit:()=>He,caretColor:()=>md,caretColorKey:()=>fd,cellAround:()=>Ws,chainCommands:()=>_o,changeTextBlock:()=>On,cleanFormatting:()=>_n,cleanMarks:()=>hn,cleanTextBlockFormatting:()=>Pn,closeDoubleQuote:()=>Qc,closeHistory:()=>Bc,closeSingleQuote:()=>tu,colCount:()=>Js,columnIsHeader:()=>tl,columnResizing:()=>Il,columnResizingPluginKey:()=>Sl,convertMsLists:()=>zu,createParagraphNear:()=>Co,createTable:()=>ep,cspFix:()=>od,deleteColumn:()=>dp,deleteRow:()=>jl,deleteSelection:()=>ro,deleteTable:()=>ec,domToPmDoc:()=>rn,dropCursor:()=>Wd,dropPoint:()=>Re,ellipsis:()=>Jc,emDash:()=>Yc,exitCode:()=>zo,expandSelection:()=>Lt,expandToWordWrap:()=>_t,find:()=>Ku,findAll:()=>Wu,findAt:()=>ju,findCell:()=>Ys,findWrapping:()=>Ee,fixTables:()=>sl,fixTablesKey:()=>il,formatBlockElements:()=>Nn,fragmentToHtml:()=>nn,gapCursor:()=>Gd,getActiveMarks:()=>yn,getBlockFormats:()=>Vn,getHtml:()=>sn,getInlineStyles:()=>kn,getMark:()=>gn,getNodeFromSelection:()=>Rt,getSelectionText:()=>Tt,goToNextCell:()=>Ql,hasMark:()=>fn,hasNode:()=>Rn,hasSameMarkup:()=>Vt,history:()=>_c,htmlToFragment:()=>tn,imageResizeKey:()=>ld,imageResizing:()=>hd,inSameTable:()=>Zs,indent:()=>Qo,indentBlocks:()=>Go,indentHtml:()=>Bt,indentRules:()=>no,inputRules:()=>$c,insertImage:()=>En,insertNode:()=>Pt,insertPoint:()=>Te,insertText:()=>Mn,isAligned:()=>Ln,isInTable:()=>Us,isIndented:()=>Zo,italic:()=>au,joinBackward:()=>ao,joinDown:()=>bo,joinForward:()=>mo,joinPoint:()=>Ve,joinTextblockBackward:()=>so,joinTextblockForward:()=>lo,joinUp:()=>yo,keydownHandler:()=>Ts,keymap:()=>Vs,lift:()=>wo,liftBlockquote:()=>$o,liftEmptyBlock:()=>So,liftListItem:()=>Jn,liftTarget:()=>Me,link:()=>du,listItem:()=>qn,listStyle:()=>ir,macBaseKeymap:()=>Wo,marks:()=>fc,mergeCells:()=>Wl,moveCellForward:()=>Gs,newlineInCode:()=>ko,nextCell:()=>Xs,nodes:()=>kc,openDoubleQuote:()=>Xc,openSingleQuote:()=>eu,orderedList:()=>Wn,outdent:()=>er,outdentRules:()=>oo,parentBlockFormat:()=>Dn,parseContent:()=>an,pasteCleanup:()=>Pu,pcBaseKeymap:()=>Ko,placeholder:()=>Yu,pmAddColumnAfter:()=>Tl,pmAddColumnBefore:()=>Vl,pmAddRowAfter:()=>_l,pmAddRowBefore:()=>Ll,pmDeleteColumn:()=>Dl,pmDocToFragment:()=>on,redo:()=>jc,redoDepth:()=>Wc,removeAllMarks:()=>pn,removeAttribute:()=>Mu,removeColSpan:()=>Qs,removeComments:()=>Su,removeLink:()=>Sn,removeTag:()=>Iu,replace:()=>Uu,replaceAll:()=>qu,replaceImageSourcesFromRtf:()=>Fu,replaceStep:()=>De,rowIsHeader:()=>Bl,sanitize:()=>Cu,sanitizeClassAttr:()=>Eu,sanitizeStyleAttr:()=>Nu,selectAll:()=>Ho,selectNodeBackward:()=>po,selectNodeForward:()=>vo,selectParentNode:()=>Oo,selectTextblockEnd:()=>To,selectTextblockStart:()=>Vo,selectedLineTextOnly:()=>Dt,selectedRect:()=>Nl,selectionCell:()=>qs,selectionMarks:()=>vn,setBlockType:()=>Do,setCellAttr:()=>$l,setHtml:()=>ln,sinkListItem:()=>Xn,smartQuotes:()=>nu,spacesFix:()=>Qu,splitBlock:()=>Mo,splitBlockAs:()=>Io,splitBlockKeepMarks:()=>Eo,splitCell:()=>Ul,splitCellWithType:()=>ql,splitListItem:()=>Yn,strikethrough:()=>lu,subscript:()=>cu,superscript:()=>uu,tableColumnResizeKey:()=>kd,tableEditing:()=>tc,tableEditingKey:()=>Ks,tableNodeTypes:()=>js,tableNodes:()=>Fs,tableResizeKey:()=>wd,tableResizing:()=>Kd,tableRowResizeKey:()=>xd,textHighlight:()=>id,textHighlightKey:()=>rd,textblockTypeInputRule:()=>ru,toggleHeader:()=>Zl,toggleHeaderCell:()=>Xl,toggleHeaderColumn:()=>Jl,toggleHeaderRow:()=>Yl,toggleInlineFormat:()=>zn,toggleList:()=>ar,toggleMark:()=>Bo,toggleOrderedList:()=>lr,toggleUnorderedList:()=>sr,trimWhitespace:()=>Zt,underline:()=>su,undo:()=>Fc,undoDepth:()=>Kc,undoInputRule:()=>Zc,updateColumnsOnResize:()=>Cl,wrapIn:()=>Ro,wrapInList:()=>Zn,wrappingInputRule:()=>ou}),o.prototype={constructor:o,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,i=r.find(e),a=r.content.slice();return-1==i?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new o(a)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new o(n)},addToStart:function(e,t){return new o([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new o(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(-1==a?i.length:a,0,t,n),new o(i)},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=o.from(e)).size?new o(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=o.from(e)).size?new o(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=o.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},o.from=function(e){if(e instanceof o)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new o(t)};const r=o;function i(e,t,n){for(let o=0;;o++){if(o==e.childCount||o==t.childCount)return e.childCount==t.childCount?null:n;let r=e.child(o),a=t.child(o);if(r!=a){if(!r.sameMarkup(a))return n;if(r.isText&&r.text!=a.text){for(let e=0;r.text[e]==a.text[e];e++)n++;return n}if(r.content.size||a.content.size){let e=i(r.content,a.content,n+1);if(null!=e)return e}n+=r.nodeSize}else n+=r.nodeSize}}function a(e,t,n,o){for(let r=e.childCount,i=t.childCount;;){if(0==r||0==i)return r==i?null:{a:n,b:o};let s=e.child(--r),l=t.child(--i),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:o};if(s.isText&&s.text!=l.text){let e=0,t=Math.min(s.text.length,l.text.length);for(;e<t&&s.text[s.text.length-e-1]==l.text[l.text.length-e-1];)e++,n--,o--;return{a:n,b:o}}if(s.content.size||l.content.size){let e=a(s.content,l.content,n-1,o-1);if(e)return e}n-=c,o-=c}else n-=c,o-=c}}class s{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,o=0,r){for(let i=0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,o+a,r||null,i)&&s.content.size){let r=a+1;s.nodesBetween(Math.max(0,e-r),Math.min(s.content.size,t-r),n,o+r)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,o){let r="",i=!0;return this.nodesBetween(e,t,((a,s)=>{a.isText?(r+=a.text.slice(Math.max(e,s)-s,t-s),i=!n):a.isLeaf?(o?r+="function"==typeof o?o(a):o:a.type.spec.leafText&&(r+=a.type.spec.leafText(a)),i=!n):!i&&a.isBlock&&(r+=n,i=!0)}),0),r}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,o=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(n)&&(o[o.length-1]=t.withText(t.text+n.text),r=1);r<e.content.length;r++)o.push(e.content[r]);return new s(o,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let n=[],o=0;if(t>e)for(let r=0,i=0;i<t;r++){let a=this.content[r],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),o+=a.nodeSize),i=s}return new s(n,o)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let o=this.content.slice(),r=this.size+t.nodeSize-n.nodeSize;return o[e]=t,new s(o,r)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let o=this.content[t];e(o,n,t),n+=o.nodeSize}}findDiffStart(e,t=0){return i(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return a(this,e,t,n)}findIndex(e,t=-1){if(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(let n=0,o=0;;n++){let r=o+this.child(n).nodeSize;if(r>=e)return r==e||t>0?c(n+1,r):c(n,o);o=r}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,n=0;for(let o=0;o<e.length;o++){let r=e[o];n+=r.nodeSize,o&&r.isText&&e[o-1].sameMarkup(r)?(t||(t=e.slice(0,o)),t[t.length-1]=r.withText(t[t.length-1].text+r.text)):t&&t.push(r)}return new s(t||e,n)}static from(e){if(!e)return s.empty;if(e instanceof s)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new s([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}s.empty=new s([],0);const l={index:0,offset:0};function c(e,t){return l.index=e,l.offset=t,l}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!u(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class d{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let o=0;o<e.length;o++){let r=e[o];if(this.eq(r))return e;if(this.type.excludes(r.type))t||(t=e.slice(0,o));else{if(r.type.excludes(this.type))return e;!n&&r.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),n=!0),t&&t.push(r)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let 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)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return d.none;if(e instanceof d)return[e];let t=e.slice();return t.sort(((e,t)=>e.type.rank-t.type.rank)),t}}d.none=[];class p extends Error{}class h{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=m(this.content,e+this.openStart,t);return n&&new h(n,this.openStart,this.openEnd)}removeBetween(e,t){return new h(f(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return h.empty;let n=t.openStart||0,o=t.openEnd||0;if("number"!=typeof n||"number"!=typeof o)throw new RangeError("Invalid input for Slice.fromJSON");return new h(s.fromJSON(e,t.content),n,o)}static maxOpen(e,t=!0){let n=0,o=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(let n=e.lastChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.lastChild)o++;return new h(e,n,o)}}function f(e,t,n){let{index:o,offset:r}=e.findIndex(t),i=e.maybeChild(o),{index:a,offset:s}=e.findIndex(n);if(r==t||i.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(o,i.copy(f(i.content,t-r-1,n-r-1)))}function m(e,t,n,o){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r);if(i==t||a.isText)return o&&!o.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=m(a.content,t-i-1,n);return s&&e.replaceChild(r,a.copy(s))}function v(e,t,n){if(n.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return g(e,t,n,0)}function g(e,t,n,o){let r=e.index(o),i=e.node(o);if(r==t.index(o)&&o<e.depth-n.openStart){let a=g(e,t,n,o+1);return i.copy(i.content.replaceChild(r,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=o||t.depth!=o){let{start:r,end:a}=function(e,t){let n=t.depth-e.openStart,o=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)o=t.node(e).copy(s.from(o));return{start:o.resolveNoCache(e.openStart+n),end:o.resolveNoCache(o.content.size-e.openEnd-n)}}(n,e);return x(i,z(e,r,a,t,o))}{let o=e.parent,r=o.content;return x(o,r.cut(0,e.parentOffset).append(n.content).append(r.cut(t.parentOffset)))}}return x(i,C(e,t,o))}function y(e,t){if(!t.type.compatibleContent(e.type))throw new p("Cannot join "+t.type.name+" onto "+e.type.name)}function b(e,t,n){let o=e.node(n);return y(o,t.node(n)),o}function w(e,t){let 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 k(e,t,n,o){let r=(t||e).node(n),i=0,a=t?t.index(n):r.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(w(e.nodeAfter,o),i++));for(let e=i;e<a;e++)w(r.child(e),o);t&&t.depth==n&&t.textOffset&&w(t.nodeBefore,o)}function x(e,t){return e.type.checkContent(t),e.copy(t)}function z(e,t,n,o,r){let i=e.depth>r&&b(e,t,r+1),a=o.depth>r&&b(n,o,r+1),l=[];return k(null,e,r,l),i&&a&&t.index(r)==n.index(r)?(y(i,a),w(x(i,z(e,t,n,o,r+1)),l)):(i&&w(x(i,C(e,t,r+1)),l),k(t,n,r,l),a&&w(x(a,C(n,o,r+1)),l)),k(o,null,r,l),new s(l)}function C(e,t,n){let o=[];return k(null,e,n,o),e.depth>n&&w(x(b(e,t,n+1),C(e,t,n+1)),o),k(t,null,n,o),new s(o)}h.empty=new h(s.empty,0,0);class S{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(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]}after(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}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],o=e.child(t);return n?e.child(t).cut(n):o}get nodeBefore(){let 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)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],o=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)o+=n.child(t).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),o=e.maybeChild(t);if(!n){let e=n;n=o,o=e}let r=n.marks;for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||o&&r[i].isInSet(o.marks)||(r=r[i--].removeFromSet(r));return r}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,o=e.parent.maybeChild(e.index());for(var r=0;r<n.length;r++)!1!==n[r].type.spec.inclusive||o&&n[r].isInSet(o.marks)||(n=n[r--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let 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 O(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],o=0,r=t;for(let t=e;;){let{index:e,offset:i}=t.content.findIndex(r),a=r-i;if(n.push(t,e,o+i),!a)break;if(t=t.child(e),t.isText)break;r=a-1,o+=i+1}return new S(t,n,r)}static resolveCached(e,t){for(let n=0;n<I.length;n++){let o=I[n];if(o.pos==t&&o.doc==e)return o}let n=I[M]=S.resolve(e,t);return M=(M+1)%E,n}}let I=[],M=0,E=12;class O{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const H=Object.create(null);class N{constructor(e,t,n,o=d.none){this.type=e,this.attrs=t,this.marks=o,this.content=n||s.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,o=0){this.content.nodesBetween(e,t,n,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,o){return this.content.textBetween(e,t,n,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||H)&&d.sameSet(this.marks,n||d.none)}copy(e=null){return e==this.content?this:new N(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new N(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return h.empty;let o=this.resolve(e),r=this.resolve(t),i=n?0:o.sharedDepth(t),a=o.start(i),s=o.node(i).content.cut(o.pos-a,r.pos-a);return new h(s,o.depth-i,r.depth-i)}replace(e,t,n){return v(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let o=this.content.child(t-1);return{node:o,index:t-1,offset:n-o.nodeSize}}resolve(e){return S.resolveCached(this,e)}resolveNoCache(e){return S.resolve(this,e)}rangeHasMark(e,t,n){let o=!1;return t>e&&this.nodesBetween(e,t,(e=>(n.isInSet(e.marks)&&(o=!0),!o))),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),V(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=s.empty,o=0,r=n.childCount){let i=this.contentMatchAt(e).matchFragment(n,o,r),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=o;e<r;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,o){if(o&&!this.type.allowsMarks(o))return!1;let r=this.contentMatchAt(e).matchType(n),i=r&&r.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=d.none;for(let 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((e=>e.type.name))}`);this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let 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((e=>e.toJSON()))),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let 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)}let o=s.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,n)}}N.prototype.text=void 0;class P extends N{constructor(e,t,n,o){if(super(e,t,null,o),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):V(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new P(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new P(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function V(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class T{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new R(e,t);if(null==n.next)return T.empty;let o=D(n);n.next&&n.err("Unexpected trailing text");let r=function(e){let t=Object.create(null);return function n(o){let r=[];o.forEach((t=>{e[t].forEach((({term:t,to:n})=>{if(!t)return;let o;for(let e=0;e<r.length;e++)r[e][0]==t&&(o=r[e][1]);j(e,n).forEach((e=>{o||r.push([t,o=[]]),-1==o.indexOf(e)&&o.push(e)}))}))}));let i=t[o.join(",")]=new T(o.indexOf(e.length-1)>-1);for(let e=0;e<r.length;e++){let o=r[e][1].sort(F);i.next.push({type:r[e][0],next:t[o.join(",")]||n(o)})}return i}(j(e,0))}(function(e){let t=[[]];return r(function e(t,i){if("choice"==t.type)return t.exprs.reduce(((t,n)=>t.concat(e(n,i))),[]);if("seq"!=t.type){if("star"==t.type){let a=n();return o(i,a),r(e(t.expr,a),a),[o(a)]}if("plus"==t.type){let a=n();return r(e(t.expr,i),a),r(e(t.expr,a),a),[o(a)]}if("opt"==t.type)return[o(i)].concat(e(t.expr,i));if("range"==t.type){let a=i;for(let o=0;o<t.min;o++){let o=n();r(e(t.expr,a),o),a=o}if(-1==t.max)r(e(t.expr,a),a);else for(let i=t.min;i<t.max;i++){let i=n();o(a,i),r(e(t.expr,a),i),a=i}return[o(a)]}if("name"==t.type)return[o(i,void 0,t.value)];throw new Error("Unknown expr type")}for(let o=0;;o++){let a=e(t.exprs[o],i);if(o==t.exprs.length-1)return a;r(a,i=n())}}(e,0),n()),t;function n(){return t.push([])-1}function o(e,n,o){let r={term:o,to:n};return t[e].push(r),r}function r(e,t){e.forEach((e=>e.to=t))}}(o));return function(e,t){for(let n=0,o=[e];n<o.length;n++){let e=o[n],r=!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let{type:n,next:a}=e.next[t];i.push(n.name),!r||n.isText||n.hasRequiredAttrs()||(r=!1),-1==o.indexOf(a)&&o.push(a)}r&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(r,n),r}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let o=this;for(let r=t;o&&r<n;r++)o=o.matchType(e.child(r).type);return o}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let o=[this];return function r(i,a){let l=i.matchFragment(e,n);if(l&&(!t||l.validEnd))return s.from(a.map((e=>e.createAndFill())));for(let e=0;e<i.next.length;e++){let{type:t,next:n}=i.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==o.indexOf(n)){o.push(n);let e=r(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let o=n.shift(),r=o.match;if(r.matchType(e)){let e=[];for(let t=o;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<r.next.length;e++){let{type:i,next:a}=r.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||o.type&&!a.validEnd||(n.push({match:i.contentMatch,type:i,via:o}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let o=0;o<n.next.length;o++)-1==e.indexOf(n.next[o].next)&&t(n.next[o].next)}(this),e.map(((t,n)=>{let o=n+(t.validEnd?"*":" ")+" ";for(let n=0;n<t.next.length;n++)o+=(n?", ":"")+t.next[n].type.name+"->"+e.indexOf(t.next[n].next);return o})).join("\n")}}T.empty=new T(!0);class R{constructor(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()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function D(e){let t=[];do{t.push(B(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function B(e){let t=[];do{t.push(A(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function A(e){let t=function(e){if(e.eat("(")){let t=D(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,o=n[t];if(o)return[o];let r=[];for(let e in n){let o=n[e];o.groups.indexOf(t)>-1&&r.push(o)}return 0==r.length&&e.err("No node type or group '"+t+"' found"),r}(e,e.next).map((t=>(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==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)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=_(e,t)}return t}function L(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function _(e,t){let n=L(e),o=n;return e.eat(",")&&(o="}"!=e.next?L(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:t}}function F(e,t){return t-e}function j(e,t){let n=[];return function t(o){let r=e[o];if(1==r.length&&!r[0].term)return t(r[0].to);n.push(o);for(let e=0;e<r.length;e++){let{term:o,to:i}=r[e];o||-1!=n.indexOf(i)||t(i)}}(t),n.sort(F)}function K(e){let t=Object.create(null);for(let n in e){let o=e[n];if(!o.hasDefault)return null;t[n]=o.default}return t}function W(e,t){let n=Object.create(null);for(let o in e){let r=t&&t[o];if(void 0===r){let t=e[o];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+o);r=t.default}n[o]=r}return n}function U(e){let t=Object.create(null);if(e)for(let n in e)t[n]=new $(e[n]);return t}class q{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=U(n.attrs),this.defaultAttrs=K(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==T.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:W(this.attrs,e)}create(e=null,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new N(this,this.computeAttrs(e),s.from(t),d.setFrom(n))}createChecked(e=null,t,n){return t=s.from(t),this.checkContent(t),new N(this,this.computeAttrs(e),t,d.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),(t=s.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let o=this.contentMatch.matchFragment(t),r=o&&o.fillBefore(s.empty,!0);return r?new N(this,e,t.append(r),d.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let 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.none:e}static compile(e,t){let n=Object.create(null);e.forEach(((e,o)=>n[e]=new q(e,t,o)));let o=t.spec.topNode||"doc";if(!n[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let e in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class ${constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class G{constructor(e,t,n,o){this.name=e,this.rank=t,this.schema=n,this.spec=o,this.attrs=U(o.attrs),this.excluded=null;let r=K(this.attrs);this.instance=r?new d(this,r):null}create(e=null){return!e&&this.instance?this.instance:new d(this,W(this.attrs,e))}static compile(e,t){let n=Object.create(null),o=0;return e.forEach(((e,r)=>n[e]=new G(e,o++,t,r))),n}removeFromSet(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}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Z{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=r.from(e.nodes),t.marks=r.from(e.marks||{}),this.nodes=q.compile(this.spec.nodes,this),this.marks=G.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw new RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],o=t.spec.content||"",r=t.spec.marks;t.contentMatch=n[o]||(n[o]=T.parse(o,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.markSet="_"==r?null:r?Y(this,r.split(" ")):""!=r&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=null==n?[t]:""==n?[]:Y(this,n.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,o){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,o)}text(e,t){let n=this.nodes.text;return new P(n,n.defaultAttrs,e,d.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return N.fromJSON(this,e)}markFromJSON(e){return d.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Y(e,t){let n=[];for(let o=0;o<t.length;o++){let r=t[o],i=e.marks[r],a=i;if(i)n.push(i);else for(let t in e.marks){let o=e.marks[t];("_"==r||o.spec.group&&o.spec.group.split(" ").indexOf(r)>-1)&&n.push(a=o)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[o]+"'")}return n}class J{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)}))}parse(e,t={}){let n=new oe(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new oe(this,t,!0);return n.addAll(e,t.from,t.to),h.maxOpen(n.finish())}matchTag(e,t,n){for(let o=n?this.tags.indexOf(n)+1:0;o<this.tags.length;o++){let n=this.tags[o];if(re(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,o){for(let r=o?this.styles.indexOf(o)+1:0;r<this.styles.length;r++){let o=this.styles[r],i=o.style;if(!(0!=i.indexOf(e)||o.context&&!n.matchesContext(o.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(o.getAttrs){let e=o.getAttrs(t);if(!1===e)continue;o.attrs=e||void 0}return o}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,o=0;for(;o<t.length;o++){let e=t[o];if((null==e.priority?50:e.priority)<n)break}t.splice(o,0,e)}for(let t in e.marks){let o=e.marks[t].spec.parseDOM;o&&o.forEach((e=>{n(e=ie(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)}))}for(let t in e.nodes){let o=e.nodes[t].spec.parseDOM;o&&o.forEach((e=>{n(e=ie(e)),e.node||e.ignore||e.mark||(e.node=t)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new J(e,J.schemaRules(e)))}}const X={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},Q={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ee={ol:!0,ul:!0};function te(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class ne{constructor(e,t,n,o,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=o,this.solid=r,this.options=a,this.content=[],this.activeMarks=d.none,this.stashMarks=[],this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;t<n.length;t++){let o=n[t];(this.type?this.type.allowsMarkType(o.type):ae(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!X.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class oe{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0;let o,r=t.topNode,i=te(null,t.preserveWhitespace,0)|(n?4:0);o=r?new ne(r.type,r.attrs,d.none,d.none,!0,t.topMatch||r.type.contentMatch,i):new ne(n?null:e.schema.topNodeType,null,d.none,d.none,!0,null,i),this.nodes=[o],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){3==e.nodeType?this.addTextNode(e):1==e.nodeType&&this.addElement(e)}withStyleRules(e,t){let n=e.getAttribute("style");if(!n)return t();let o=this.readStyles(function(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,o=[];for(;t=n.exec(e);)o.push(t[1],t[2].trim());return o}(n));if(!o)return;let[r,i]=o,a=this.top;for(let e=0;e<i.length;e++)this.removePendingMark(i[e],a);for(let e=0;e<r.length;e++)this.addPendingMark(r[e]);t();for(let e=0;e<r.length;e++)this.removePendingMark(r[e],a);for(let e=0;e<i.length;e++)this.addPendingMark(i[e])}addTextNode(e){let 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){let o=n.content[n.content.length-1],r=e.previousSibling;(!o||r&&"BR"==r.nodeName||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let n,o=e.nodeName.toLowerCase();ee.hasOwnProperty(o)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ee.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let r=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(r?r.ignore:Q.hasOwnProperty(o))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);let t,n=this.top,i=this.needsBlock;if(X.hasOwnProperty(o))n.content.length&&n.content[0].isInline&&this.open&&(this.open--,n=this.top),t=!0,n.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);r&&r.skip?this.addAll(e):this.withStyleRules(e,(()=>this.addAll(e))),t&&this.sync(n),this.needsBlock=i}else this.withStyleRules(e,(()=>{this.addElementByRule(e,r,!1===r.consuming?n:void 0)}))}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=d.none,n=d.none;for(let o=0;o<e.length;o+=2)for(let r;;){let i=this.parser.matchStyle(e[o],e[o+1],this,r);if(!i)break;if(i.ignore)return null;if(i.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach((e=>{i.clearMark(e)&&(n=e.addToSet(n))})):t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1!==i.consuming)break;r=i}return[t,n]}addElementByRule(e,t,n){let o,r,i;t.node?(r=this.parser.schema.nodes[t.node],r.isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):o=this.enter(r,t.attrs||null,t.preserveWhitespace)):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));let 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((e=>this.insertNode(e)));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}o&&this.sync(a)&&this.open--,i&&this.removePendingMark(i,a)}addAll(e,t,n){let o=t||0;for(let r=t?e.childNodes[t]:e.firstChild,i=null==n?null:e.childNodes[n];r!=i;r=r.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(r);this.findAtPoint(e,o)}findPlace(e){let t,n;for(let o=this.open;o>=0;o--){let r=this.nodes[o],i=r.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,n=r,!i.length))break;if(r.solid)break}if(!t)return!1;this.sync(n);for(let e=0;e<t.length;e++)this.enterInner(t[e],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let n=t.activeMarks;for(let o=0;o<e.marks.length;o++)t.type&&!t.type.allowsMarkType(e.marks[o].type)||(n=e.marks[o].addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n){let o=this.findPlace(e.create(t));return o&&this.enterInner(e,t,!0,n),o}enterInner(e,t=null,n=!1,o){this.closeExtra();let r=this.top;r.applyPending(e),r.match=r.match&&r.match.matchType(e);let i=te(e,o,r.options);4&r.options&&0==r.content.length&&(i|=4),this.nodes.push(new ne(e,t,r.activeMarks,r.pendingMarks,n,null,i)),this.open++}closeExtra(e=!1){let 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}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let 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)}findAround(e,t,n){if(e!=t&&this.find)for(let o=0;o<this.find.length;o++)null==this.find[o].pos&&1==e.nodeType&&e.contains(this.find[o].node)&&t.compareDocumentPosition(this.find[o].node)&(n?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let 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))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,o=!(this.isOpen||n&&n.parent.type!=this.nodes[0].type),r=-(n?n.depth+1:0)+(o?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=r;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&o?this.nodes[a].type:n&&a>=r?n.node(a-r).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}addPendingMark(e){let t=function(e,t){for(let 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)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let o=this.nodes[n];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let t=o.popFromStashMark(e);t&&o.type&&o.type.allowsMarkType(t.type)&&(o.activeMarks=t.addToSet(o.activeMarks))}if(o==t)break}}}function re(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ie(e){let t={};for(let n in e)t[n]=e[n];return t}function ae(e,t){let n=t.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:o,next:r}=e.edge(n);if(o==t)return!0;if(i.indexOf(r)<0&&a(r))return!0}};if(a(r.contentMatch))return!0}}class se{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||(n=ce(t).createDocumentFragment());let o=n,r=[];return e.forEach((e=>{if(r.length||e.marks.length){let n=0,i=0;for(;n<r.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(r[n][0])||!1===t.type.spec.spanning)break;n++,i++}else i++}for(;n<r.length;)o=r.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],a=this.serializeMark(n,e.isInline,t);a&&(r.push([n,o]),o.appendChild(a.dom),o=a.contentDOM||a.dom)}}o.appendChild(this.serializeNodeInner(e,t))})),n}serializeNodeInner(e,t){let{dom:n,contentDOM:o}=se.renderSpec(ce(t),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,o)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let o=e.marks.length-1;o>=0;o--){let r=this.serializeMark(e.marks[o],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n}serializeMark(e,t,n={}){let o=this.marks[e.type.name];return o&&se.renderSpec(ce(n),o(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o,r=t[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let a=n?e.createElementNS(n,r):e.createElement(r),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){l=2;for(let e in s)if(null!=s[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),s[e]):a.setAttribute(e,s[e])}}for(let r=l;r<t.length;r++){let i=t[r];if(0===i){if(r<t.length-1||r>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:t,contentDOM:r}=se.renderSpec(e,i,n);if(a.appendChild(t),r){if(o)throw new RangeError("Multiple content holes");o=r}}}return{dom:a,contentDOM:o}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new se(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=le(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return le(e.marks)}}function le(e){let t={};for(let n in e){let o=e[n].spec.toDOM;o&&(t[n]=o)}return t}function ce(e){return e.document||window.document}const ue=Math.pow(2,16);function de(e){return 65535&e}class pe{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class he{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&he.empty)return he.empty}recover(e){let t=0,n=de(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/ue}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let o=0,r=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?o:0);if(s>e)break;let l=this.ranges[a+r],c=this.ranges[a+i],u=s+l;if(e<=u){let r=s+o+((l?e==s?-1:e==u?1:t:t)<0?0:c);if(n)return r;let i=e==s?2:e==u?1:4;return(t<0?e!=s:e!=u)&&(i|=8),new pe(r,i,e==(t<0?s:u)?null:a/3+(e-s)*ue)}o+=c-l}return n?e+o:new pe(e+o,0,null)}touches(e,t){let n=0,o=de(t),r=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?n:0);if(a>e)break;let s=this.ranges[t+r];if(e<=a+s&&t==3*o)return!0;n+=this.ranges[t+i]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let o=0,r=0;o<this.ranges.length;o+=3){let i=this.ranges[o],a=i-(this.inverted?r:0),s=i+(this.inverted?0:r),l=this.ranges[o+t],c=this.ranges[o+n];e(a,a+l,s,s+c),r+=c-l}}invert(){return new he(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?he.empty:new he(e<0?[0,-e,0]:[0,0,e])}}he.empty=new he([]);class fe{constructor(e=[],t,n=0,o=e.length){this.maps=e,this.mirror=t,this.from=n,this.to=o}slice(e=0,t=this.maps.length){return new fe(this.maps,this.mirror,e,t)}copy(){return new fe(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let o=e.getMirror(t);this.appendMap(e.maps[t],null!=o&&o<t?n+o:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let o=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=o&&o>t?n-o-1:void 0)}}invert(){let e=new fe;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let o=0;for(let n=this.from;n<this.to;n++){let r=this.maps[n].mapResult(e,t);if(null!=r.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this.maps[t].recover(r.recover);continue}}o|=r.delInfo,e=r.pos}return n?e:new pe(e,o,null)}}const me=Object.create(null);class ve{getMap(){return he.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=me[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(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}}class ge{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new ge(e,null)}static fail(e){return new ge(null,e)}static fromReplace(e,t,n,o){try{return ge.ok(e.replace(t,n,o))}catch(e){if(e instanceof p)return ge.fail(e.message);throw e}}}function ye(e,t,n){let o=[];for(let r=0;r<e.childCount;r++){let i=e.child(r);i.content.size&&(i=i.copy(ye(i.content,t,i))),i.isInline&&(i=t(i,n,r)),o.push(i)}return s.fromArray(o)}class be extends ve{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),o=n.node(n.sharedDepth(this.to)),r=new h(ye(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),o),t.openStart,t.openEnd);return ge.fromReplace(e,this.from,this.to,r)}invert(){return new we(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new be(t.pos,n.pos,this.mark)}merge(e){return e instanceof be&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new be(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new be(t.from,t.to,e.markFromJSON(t.mark))}}ve.jsonID("addMark",be);class we extends ve{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new h(ye(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return ge.fromReplace(e,this.from,this.to,n)}invert(){return new be(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new we(t.pos,n.pos,this.mark)}merge(e){return e instanceof we&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new we(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new we(t.from,t.to,e.markFromJSON(t.mark))}}ve.jsonID("removeMark",we);class ke extends ve{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return ge.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return ge.fromReplace(e,this.pos,this.pos+1,new h(s.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new ke(this.pos,t.marks[n]);return new ke(this.pos,this.mark)}}return new xe(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ke(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ke(t.pos,e.markFromJSON(t.mark))}}ve.jsonID("addNodeMark",ke);class xe extends ve{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return ge.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return ge.fromReplace(e,this.pos,this.pos+1,new h(s.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new ke(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new xe(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new xe(t.pos,e.markFromJSON(t.mark))}}ve.jsonID("removeNodeMark",xe);class ze extends ve{constructor(e,t,n,o=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=o}apply(e){return this.structure&&Se(e,this.from,this.to)?ge.fail("Structure replace would overwrite content"):ge.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new he([this.from,this.to-this.from,this.slice.size])}invert(e){return new ze(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new ze(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof ze)||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;{let t=this.slice.size+e.slice.size==0?h.empty:new h(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new ze(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?h.empty:new h(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new ze(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new ze(t.from,t.to,h.fromJSON(e,t.slice),!!t.structure)}}ve.jsonID("replace",ze);class Ce extends ve{constructor(e,t,n,o,r,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=o,this.slice=r,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Se(e,this.from,this.gapFrom)||Se(e,this.gapTo,this.to)))return ge.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return ge.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?ge.fromReplace(e,this.from,this.to,n):ge.fail("Content does not fit in gap")}getMap(){return new he([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Ce(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),r=e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||o<t.pos||r>n.pos?null:new Ce(t.pos,n.pos,o,r,this.slice,this.insert,this.structure)}toJSON(){let 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}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ce(t.from,t.to,t.gapFrom,t.gapTo,h.fromJSON(e,t.slice),t.insert,!!t.structure)}}function Se(e,t,n){let o=e.resolve(t),r=n-t,i=o.depth;for(;r>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,r--;if(r>0){let e=o.node(i).maybeChild(o.indexAfter(i));for(;r>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,r--}}return!1}function Ie(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Me(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let o=e.$from.node(n),r=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&o.canReplace(r,i,t))return n;if(0==n||o.type.spec.isolating||!Ie(o,r,i))break}return null}function Ee(e,t,n=null,o=e){let r=function(e,t){let{parent:n,startIndex:o,endIndex:r}=e,i=n.contentMatchAt(o).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return n.canReplaceWith(o,r,a)?i:null}(e,t),i=r&&function(e,t){let{parent:n,startIndex:o,endIndex:r}=e,i=n.child(o),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=o;s&&e<r;e++)s=s.matchType(n.child(e).type);return s&&s.validEnd?a:null}(o,t);return i?r.map(Oe).concat({type:t,attrs:n}).concat(i.map(Oe)):null}function Oe(e){return{type:e,attrs:null}}function He(e,t,n=1,o){let r=e.resolve(t),i=r.depth-n,a=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!a.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let e=r.depth-1,t=n-2;e>i;e--,t--){let n=r.node(e),i=r.index(e);if(n.type.spec.isolating)return!1;let a=n.content.cutByIndex(i,n.childCount),s=o&&o[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=o&&o[t]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(a))return!1}let s=r.indexAfter(i),l=o&&o[0];return r.node(i).canReplaceWith(s,s,l?l.type:r.node(i+1).type)}function Ne(e,t){let n=e.resolve(t),o=n.index();return Pe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function Pe(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function Ve(e,t,n=-1){let o=e.resolve(t);for(let e=o.depth;;e--){let r,i,a=o.index(e);if(e==o.depth?(r=o.nodeBefore,i=o.nodeAfter):n>0?(r=o.node(e+1),a++,i=o.node(e).maybeChild(a)):(r=o.node(e).maybeChild(a-1),i=o.node(e+1)),r&&!r.isTextblock&&Pe(r,i)&&o.node(e).canReplace(a,a+1))return t;if(0==e)break;t=n<0?o.before(e):o.after(e)}}function Te(e,t,n){let o=e.resolve(t);if(o.parent.canReplaceWith(o.index(),o.index(),n))return t;if(0==o.parentOffset)for(let e=o.depth-1;e>=0;e--){let t=o.index(e);if(o.node(e).canReplaceWith(t,t,n))return o.before(e+1);if(t>0)return null}if(o.parentOffset==o.parent.content.size)for(let e=o.depth-1;e>=0;e--){let t=o.indexAfter(e);if(o.node(e).canReplaceWith(t,t,n))return o.after(e+1);if(t<o.node(e).childCount)return null}return null}function Re(e,t,n){let o=e.resolve(t);if(!n.content.size)return t;let r=n.content;for(let e=0;e<n.openStart;e++)r=r.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=o.depth;t>=0;t--){let n=t==o.depth?0:o.pos<=(o.start(t+1)+o.end(t+1))/2?-1:1,i=o.index(t)+(n>0?1:0),a=o.node(t),s=!1;if(1==e)s=a.canReplace(i,i,r);else{let e=a.contentMatchAt(i).findWrapping(r.firstChild.type);s=e&&a.canReplaceWith(i,i,e[0])}if(s)return 0==n?o.pos:n<0?o.before(t+1):o.after(t+1)}return null}function De(e,t,n=t,o=h.empty){if(t==n&&!o.size)return null;let r=e.resolve(t),i=e.resolve(n);return Be(r,i,o)?new ze(t,n,o):new Ae(r,i,o).fit()}function Be(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}ve.jsonID("replaceAround",Ce);class Ae{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=s.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=s.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;let r=this.placed,i=n.depth,a=o.depth;for(;i&&a&&1==r.childCount;)r=r.firstChild.content,i--,a--;let s=new h(r,i,a);return e>-1?new Ce(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new ze(n.pos,o.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,o=this.unplaced.openEnd;n<e;n++){let r=t.firstChild;if(t.childCount>1&&(o=0),r.type.spec.isolating&&o<=n){e=n;break}t=r.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,o=null;n?(o=Fe(this.unplaced.content,n-1).firstChild,e=o.content):e=this.unplaced.content;let r=e.firstChild;for(let e=this.depth;e>=0;e--){let i,{type:a,match:l}=this.frontier[e],c=null;if(1==t&&(r?l.matchType(r.type)||(c=l.fillBefore(s.from(r),!1)):o&&a.compatibleContent(o.type)))return{sliceDepth:n,frontierDepth:e,parent:o,inject:c};if(2==t&&r&&(i=l.findWrapping(r.type)))return{sliceDepth:n,frontierDepth:e,parent:o,wrap:i};if(o&&l.matchType(o.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=Fe(e,t);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new h(e,t+1,Math.max(n,o.size+t>=e.size-n?t+1:0)),0))}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=Fe(e,t);if(o.childCount<=1&&t>0){let r=e.size-t<=t+o.size;this.unplaced=new h(Le(e,t-1,1),t-1,r?t-1:n)}else this.unplaced=new h(Le(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:r}){for(;this.depth>t;)this.closeFrontierNode();if(r)for(let e=0;e<r.length;e++)this.openFrontierNode(r[e]);let i=this.unplaced,a=n?n.content:i.content,l=i.openStart-e,c=0,u=[],{match:d,type:p}=this.frontier[t];if(o){for(let e=0;e<o.childCount;e++)u.push(o.child(e));d=d.matchFragment(o)}let f=a.size+e-(i.content.size-i.openEnd);for(;c<a.childCount;){let e=a.child(c),t=d.matchType(e.type);if(!t)break;c++,(c>1||0==l||e.content.size)&&(d=t,u.push(je(e.mark(p.allowedMarks(e.marks)),1==c?l:0,c==a.childCount?f:-1)))}let m=c==a.childCount;m||(f=-1),this.placed=_e(this.placed,t,s.from(u)),this.frontier[t].match=d,m&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=m?0==e?h.empty:new h(Le(i.content,e-1,1),e-1,f<0?i.openEnd:e-1):new h(Le(i.content,e,c),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!Ke(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;let{depth:n}=this.$to,o=this.$to.after(n);for(;n>1&&o==this.$to.end(--n);)++o;return o}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:o}=this.frontier[t],r=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=Ke(e,t,o,n,r);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:o}=this.frontier[n],r=Ke(e,n,o,t,!0);if(!r||r.childCount)continue e}return{depth:t,fit:i,move:r?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=_e(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),o=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,o)}return e}openFrontierNode(e,t=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=_e(this.placed,this.depth,s.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(s.empty,!0);e.childCount&&(this.placed=_e(this.placed,this.frontier.length,e))}}function Le(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Le(e.firstChild.content,t-1,n)))}function _e(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(_e(e.lastChild.content,t-1,n)))}function Fe(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function je(e,t,n){if(t<=0)return e;let o=e.content;return t>1&&(o=o.replaceChild(0,je(o.firstChild,t-1,1==o.childCount?n-1:0))),t>0&&(o=e.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(e.type.contentMatch.matchFragment(o).fillBefore(s.empty,!0)))),e.copy(o)}function Ke(e,t,n,o,r){let i=e.node(t),a=r?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=o.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(let o=n;o<t.childCount;o++)if(!e.allowsMarks(t.child(o).marks))return!0;return!1}(n,i.content,a)?s:null}function We(e,t,n,o,r){if(t<n){let r=e.firstChild;e=e.replaceChild(0,r.copy(We(r.content,t+1,n,o,r)))}if(t>o){let t=r.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(s.empty,!0))}return e}function Ue(e,t){let n=[];for(let o=Math.min(e.depth,t.depth);o>=0;o--){let r=e.start(o);if(r<e.pos-(e.depth-o)||t.end(o)>t.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(r==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==r-1)&&n.push(o)}return n}class qe extends ve{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return ge.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let o=t.type.create(n,null,t.marks);return ge.fromReplace(e,this.pos,this.pos+1,new h(s.from(o),0,t.isLeaf?0:1))}getMap(){return he.empty}invert(e){return new qe(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new qe(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new qe(t.pos,t.attr,t.value)}}ve.jsonID("attr",qe);let $e=class extends Error{};$e=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},$e.prototype=Object.create(Error.prototype),$e.prototype.constructor=$e,$e.prototype.name="TransformError";class Ge{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new fe}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new $e(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=h.empty){let o=De(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,n){return this.replace(e,t,new h(s.from(n),0,0))}delete(e,t){return this.replace(e,t,h.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let r=e.doc.resolve(t),i=e.doc.resolve(n);if(Be(r,i,o))return e.step(new ze(t,n,o));let a=Ue(r,e.doc.resolve(n));0==a[a.length-1]&&a.pop();let s=-(r.depth+1);a.unshift(s);for(let e=r.depth,t=r.pos-1;e>0;e--,t--){let n=r.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?s=e:r.before(e)==t&&a.splice(1,0,-e)}let l=a.indexOf(s),c=[],u=o.openStart;for(let e=o.content,t=0;;t++){let n=e.firstChild;if(c.push(n),t==o.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=c[e],n=(d=t.type).spec.defining||d.spec.definingForContent;if(n&&!t.sameMarkup(r.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}var d;for(let t=o.openStart;t>=0;t--){let s=(t+u+1)%(o.openStart+1),d=c[s];if(d)for(let t=0;t<a.length;t++){let c=a[(t+l)%a.length],u=!0;c<0&&(u=!1,c=-c);let p=r.node(c-1),f=r.index(c-1);if(p.canReplaceWith(f,f,d.type,d.marks))return e.replace(r.before(c),u?i.after(c):n,new h(We(o.content,0,o.openStart,s),s,o.openEnd))}}let p=e.steps.length;for(let s=a.length-1;s>=0&&(e.replace(t,n,o),!(e.steps.length>p));s--){let e=a[s];e<0||(t=r.before(e),n=i.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,o){if(!o.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=Te(e.doc,t,o.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new h(s.from(o),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let o=e.doc.resolve(t),r=e.doc.resolve(n),i=Ue(o,r);for(let t=0;t<i.length;t++){let n=i[t],a=t==i.length-1;if(a&&0==n||o.node(n).type.contentMatch.validEnd)return e.delete(o.start(n),r.end(n));if(n>0&&(a||o.node(n-1).canReplace(o.index(n-1),r.indexAfter(n-1))))return e.delete(o.before(n),r.after(n))}for(let i=1;i<=o.depth&&i<=r.depth;i++)if(t-o.start(i)==o.depth-i&&n>o.end(i)&&r.end(i)-n!=r.depth-i)return e.delete(o.before(i),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:o,$to:r,depth:i}=t,a=o.before(i+1),l=r.after(i+1),c=a,u=l,d=s.empty,p=0;for(let e=i,t=!1;e>n;e--)t||o.index(e)>0?(t=!0,d=s.from(o.node(e).copy(d)),p++):c--;let f=s.empty,m=0;for(let e=i,t=!1;e>n;e--)t||r.after(e+1)<r.end(e)?(t=!0,f=s.from(r.node(e).copy(f)),m++):u++;e.step(new Ce(c,u,a,l,new h(d.append(f),p,m),d.size-p,!0))}(this,e,t),this}join(e,t=1){return function(e,t,n){let o=new ze(t-n,t+n,h.empty,!0);e.step(o)}(this,e,t),this}wrap(e,t){return function(e,t,n){let o=s.empty;for(let e=n.length-1;e>=0;e--){if(o.size){let t=n[e].type.contentMatch.matchFragment(o);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=s.from(n[e].type.create(n[e].attrs,o))}let r=t.start,i=t.end;e.step(new Ce(r,i,r,i,new h(o,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,o=null){return function(e,t,n,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,((t,n)=>{if(t.isTextblock&&!t.hasMarkup(o,r)&&function(e,t,n){let o=e.resolve(t),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}(e.doc,e.mapping.slice(i).map(n),o)){e.clearIncompatible(e.mapping.slice(i).map(n,1),o);let a=e.mapping.slice(i),l=a.map(n,1),c=a.map(n+t.nodeSize,1);return e.step(new Ce(l,c,l+1,c-1,new h(s.from(o.create(r,null,t.marks)),0,0),1,!0)),!1}}))}(this,e,t,n,o),this}setNodeMarkup(e,t,n=null,o){return function(e,t,n,o,r){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let a=n.create(o,null,r||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new Ce(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new h(s.from(a),0,0),1,!0))}(this,e,t,n,o),this}setNodeAttribute(e,t,n){return this.step(new qe(e,t,n)),this}addNodeMark(e,t){return this.step(new ke(e,t)),this}removeNodeMark(e,t){if(!(t instanceof d)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new xe(e,t)),this}split(e,t=1,n){return function(e,t,n=1,o){let r=e.doc.resolve(t),i=s.empty,a=s.empty;for(let e=r.depth,t=r.depth-n,l=n-1;e>t;e--,l--){i=s.from(r.node(e).copy(i));let t=o&&o[l];a=s.from(t?t.type.create(t.attrs,a):r.node(e).copy(a))}e.step(new ze(t,t,new h(i.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){return function(e,t,n,o){let r,i,a=[],s=[];e.doc.nodesBetween(t,n,((e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!o.isInSet(u)&&c.type.allowsMarkType(o.type)){let c=Math.max(l,t),d=Math.min(l+e.nodeSize,n),p=o.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(r&&r.to==c&&r.mark.eq(u[e])?r.to=d:a.push(r=new we(c,d,u[e])));i&&i.to==c?i.to=d:s.push(i=new be(c,d,o))}})),a.forEach((t=>e.step(t))),s.forEach((t=>e.step(t)))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,o){let r=[],i=0;e.doc.nodesBetween(t,n,((e,a)=>{if(!e.isInline)return;i++;let s=null;if(o instanceof G){let t,n=e.marks;for(;t=o.isInSet(n);)(s||(s=[])).push(t),n=t.removeFromSet(n)}else o?o.isInSet(e.marks)&&(s=[o]):s=e.marks;if(s&&s.length){let o=Math.min(a+e.nodeSize,n);for(let e=0;e<s.length;e++){let n,l=s[e];for(let e=0;e<r.length;e++){let t=r[e];t.step==i-1&&l.eq(r[e].style)&&(n=t)}n?(n.to=o,n.step=i):r.push({style:l,from:Math.max(a,t),to:o,step:i})}}})),r.forEach((t=>e.step(new we(t.from,t.to,t.style))))}(this,e,t,n),this}clearIncompatible(e,t,n){return function(e,t,n,o=n.contentMatch){let r=e.doc.nodeAt(t),i=[],a=t+1;for(let t=0;t<r.childCount;t++){let l=r.child(t),c=a+l.nodeSize,u=o.matchType(l.type);if(u){o=u;for(let t=0;t<l.marks.length;t++)n.allowsMarkType(l.marks[t].type)||e.step(new we(a,c,l.marks[t]));if(l.isText&&!n.spec.code){let e,t,o=/\r?\n|\r/g;for(;e=o.exec(l.text);)t||(t=new h(s.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),i.push(new ze(a+e.index,a+e.index+e[0].length,t))}}else i.push(new ze(a,c,h.empty));a=c}if(!o.validEnd){let t=o.fillBefore(s.empty,!0);e.replace(a,a,new h(t,0,0))}for(let t=i.length-1;t>=0;t--)e.step(i[t])}(this,e,t,n),this}}const Ze=Object.create(null);class Ye{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Je(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=h.empty){let n=t.content.lastChild,o=null;for(let e=0;e<t.openEnd;e++)o=n,n=n.lastChild;let r=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(r);e.replaceRange(c.map(s.pos),c.map(l.pos),a?h.empty:t),0==a&&st(e,r,(n?n.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,o=this.ranges;for(let r=0;r<o.length;r++){let{$from:i,$to:a}=o[r],s=e.mapping.slice(n),l=s.map(i.pos),c=s.map(a.pos);r?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),st(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let o=e.parent.inlineContent?new et(e):at(e.node(0),e.parent,e.pos,e.index(),t,n);if(o)return o;for(let o=e.depth-1;o>=0;o--){let r=t<0?at(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):at(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new rt(e.node(0))}static atStart(e){return at(e,e,0,0,1)||new rt(e)}static atEnd(e){return at(e,e,e.content.size,e.childCount,-1)||new rt(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=Ze[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Ze)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ze[e]=t,t.prototype.jsonID=e,t}getBookmark(){return et.between(this.$anchor,this.$head).getBookmark()}}Ye.prototype.visible=!0;class Je{constructor(e,t){this.$from=e,this.$to=t}}let Xe=!1;function Qe(e){Xe||e.parent.inlineContent||(Xe=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class et extends Ye{constructor(e,t=e){Qe(e),Qe(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return Ye.near(n);let o=e.resolve(t.map(this.anchor));return new et(o.parent.inlineContent?o:n,n)}replace(e,t=h.empty){if(super.replace(e,t),t==h.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof et&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new tt(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new et(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let o=e.resolve(t);return new this(o,n==t?o:e.resolve(n))}static between(e,t,n){let o=e.pos-t.pos;if(n&&!o||(n=o>=0?1:-1),!t.parent.inlineContent){let e=Ye.findFrom(t,n,!0)||Ye.findFrom(t,-n,!0);if(!e)return Ye.near(t,n);t=e.$head}return e.parent.inlineContent||(0==o||(e=(Ye.findFrom(e,-n,!0)||Ye.findFrom(e,n,!0)).$anchor).pos<t.pos!=o<0)&&(e=t),new et(e,t)}}Ye.jsonID("text",et);class tt{constructor(e,t){this.anchor=e,this.head=t}map(e){return new tt(e.map(this.anchor),e.map(this.head))}resolve(e){return et.between(e.resolve(this.anchor),e.resolve(this.head))}}class nt extends Ye{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:o}=t.mapResult(this.anchor),r=e.resolve(o);return n?Ye.near(r):new nt(r)}content(){return new h(s.from(this.node),0,0)}eq(e){return e instanceof nt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new ot(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new nt(e.resolve(t.anchor))}static create(e,t){return new nt(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}nt.prototype.visible=!1,Ye.jsonID("node",nt);class ot{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new tt(n,n):new ot(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&nt.isSelectable(n)?new nt(t):Ye.near(t)}}class rt extends Ye{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=h.empty){if(t==h.empty){e.delete(0,e.doc.content.size);let t=Ye.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new rt(e)}map(e){return new rt(e)}eq(e){return e instanceof rt}getBookmark(){return it}}Ye.jsonID("all",rt);const it={map(){return this},resolve:e=>new rt(e)};function at(e,t,n,o,r,i=!1){if(t.inlineContent)return et.create(e,n);for(let a=o-(r>0?0:1);r>0?a<t.childCount:a>=0;a+=r){let o=t.child(a);if(o.isAtom){if(!i&&nt.isSelectable(o))return nt.create(e,n-(r<0?o.nodeSize:0))}else{let t=at(e,o,n+r,r<0?o.childCount:0,r,i);if(t)return t}n+=o.nodeSize*r}return null}function st(e,t,n){let o=e.steps.length-1;if(o<t)return;let r,i=e.steps[o];(i instanceof ze||i instanceof Ce)&&(e.mapping.maps[o].forEach(((e,t,n,o)=>{null==r&&(r=o)})),e.setSelection(Ye.near(e.doc.resolve(r),n)))}class lt extends Ge{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){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}setSelection(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}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return d.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||d.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let o=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let r=this.storedMarks;if(!r){let e=this.doc.resolve(t);r=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,o.text(e,r)),this.selection.empty||this.setSelection(Ye.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function ct(e,t){return t&&e?e.bind(t):e}class ut{constructor(e,t,n){this.name=e,this.init=ct(t.init,n),this.apply=ct(t.apply,n)}}const dt=[new ut("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new ut("selection",{init:(e,t)=>e.selection||Ye.atStart(t.doc),apply:e=>e.selection}),new ut("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,o)=>o.selection.$cursor?e.storedMarks:null}),new ut("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class pt{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=dt.slice(),t&&t.forEach((e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new ut(e.key,e.spec.state,e))}))}}class ht{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),o=null;for(;;){let r=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let s=o?o[i].n:0,l=o?o[i].state:this,c=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(c&&n.filterTransaction(c,i)){if(c.setMeta("appendedTransaction",e),!o){o=[];for(let e=0;e<this.config.plugins.length;e++)o.push(e<i?{state:n,n:t.length}:{state:this,n:0})}t.push(c),n=n.applyInner(c),r=!0}o&&(o[i]={state:n,n:t.length})}}if(!r)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new ht(this.config),n=this.config.fields;for(let o=0;o<n.length;o++){let r=n[o];t[r.name]=r.apply(e,this[r.name],this,t)}return t}get tr(){return new lt(this)}static create(e){let t=new pt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new ht(t);for(let o=0;o<t.fields.length;o++)n[t.fields[o].name]=t.fields[o].init(e,n);return n}reconfigure(e){let t=new pt(this.schema,e.plugins),n=t.fields,o=new ht(t);for(let t=0;t<n.length;t++){let r=n[t].name;o[r]=this.hasOwnProperty(r)?this[r]:n[t].init(e,o)}return o}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((e=>e.toJSON()))),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[n],r=o.spec.state;r&&r.toJSON&&(t[n]=r.toJSON.call(o,this[o.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new pt(e.schema,e.plugins),r=new ht(o);return o.fields.forEach((o=>{if("doc"==o.name)r.doc=N.fromJSON(e.schema,t.doc);else if("selection"==o.name)r.selection=Ye.fromJSON(r.doc,t.selection);else if("storedMarks"==o.name)t.storedMarks&&(r.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let i in n){let a=n[i],s=a.spec.state;if(a.key==o.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(r[o.name]=s.fromJSON.call(a,e,t[i],r))}r[o.name]=o.init(e,r)}})),r}}function ft(e,t,n){for(let o in e){let r=e[o];r instanceof Function?r=r.bind(t):"handleDOMEvents"==o&&(r=ft(r,t,{})),n[o]=r}return n}class mt{constructor(e){this.spec=e,this.props={},e.props&&ft(e.props,this,this.props),this.key=e.key?e.key.key:gt("plugin")}getState(e){return e[this.key]}}const vt=Object.create(null);function gt(e){return e in vt?e+"$"+ ++vt[e]:(vt[e]=0,e+"$")}class yt{constructor(e="key"){this.key=gt(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}var bt="k-parent-node",wt="k-colgroup-data",kt="k-resizable-node",xt="k-editor-resize-handle",zt="data-dir-table-resize",Ct="data-dir-image-resize",St=function(){return St=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},St.apply(this,arguments)};function It(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Mt=function(e,t){var n=t.style,o=t.value,r=t.newValue;if(!e)return{changed:!1,style:null};var i=e.split(/\s*;\s*/).filter((function(e){return Boolean(e)})),a=i.filter((function(e){var t=e.split(/\s*:\s*/);return!(t[0].toLowerCase()===n&&o.test(t[1]))}));return r&&a.push(n+": "+r),{style:a.join("; ")+(a.length?";":""),changed:Boolean(r)||a.length!==i.length}},Et=function(e,t){for(var n=e.selection.$from,o=n.depth;o>=0;o--){var r=n.index(o);if(n.node(o).canReplaceWith(r,r,t))return!0}return!1},Ot=function(e){return e instanceof N?e.type.name:e.name},Ht=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 o=n.$from,r=o.depth;r>0;r--){var i=o.node(r);if(e(i)&&0==(t-=1))return{depth:r,node:i}}}}((function(t){return Ot(t)===Ot(e)}),t)(n)}},Nt=function(e){var t={};for(var n in e)n&&(e[n]||0===e[n])&&(t[n]=e[n]);return t},Pt=function(e,t){return function(n,o){var r=n.selection,i=n.tr;r instanceof nt&&r.node.type.name===e.type.name&&e.isLeaf&&!e.isText&&1===e.nodeSize?(i.setNodeMarkup(r.from,null,St(St({},Nt(r.node.attrs)),Nt(e.attrs))),i.setSelection(nt.create(i.doc,r.from))):i.replaceSelectionWith(e),t&&i.scrollIntoView(),o(i)}},Vt=function(e,t,n,o){var r=s.from(an(e,n,o)),i=s.from(an(t,n,o));return r.eq(i)},Tt=function(e){var t=e.selection;if(t instanceof et||t instanceof rt){var n=t.content().content;return n.textBetween(0,n.size)}return""},Rt=function(e){if(e.selection instanceof nt)return e.selection.node},Dt=function(e){var t="",n=!1,o=e.selection,r=e.doc,i=o.$from,a=o.$to,s=o.from,l=o.to;return i.sameParent(a)&&(r.nodesBetween(s,l,(function(e){n=n||e.isLeaf&&!e.isText})),n||(t=Tt(e))),t},Bt=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$/,"")},At={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},Lt=function(e,t,n){if(!n.applyToWord||!e.selection.empty)return{state:e,dispatch:t};var o=!0===n.applyToWord?At:n.applyToWord,r=null,i=e.tr,a=e.selection,s=a.$head.nodeBefore,l=a.$head.nodeAfter;if(s&&"text"===s.type.name&&s.text&&l&&"text"===l.type.name&&l.text){var c=[];a.$head.parent.descendants((function(e,t){return c.push({node:e,pos:t}),!1}));for(var u=a.$head.parentOffset,d=c.findIndex((function(e){var t=e.node,n=e.pos;return n<=u&&n+t.nodeSize>=u})),p=c[d].node.text,h=!1,f=d-1;f>=0;f--){var m=c[f];!h&&m&&"text"===m.node.type.name?p=m.node.text+p:(h=!0,u-=m.node.nodeSize)}for(f=d+1;f<c.length&&((m=c[f])&&"text"===m.node.type.name);f++)p+=m.node.text;var v=p.substring(0,u),g=p.substring(u),y=o.before.exec(v),b=o.after.exec(g);if(y&&b){var w=y[0].length,k=b[0].length,x=r=a.from;return i.setSelection(et.create(e.doc,x-w,x+k)),{state:{tr:i,selection:i.selection,doc:i.doc,storedMarks:null,schema:i.doc.type.schema},dispatch:function(e){e.setSelection(et.create(e.doc,r)),t(e)}}}}return{state:e,dispatch:t}},_t=function(e,t){return function(n,o,r){var i=Lt(n,o,t),a=i.state,s=i.dispatch;return e(t)(a,s)}},Ft=function(e){return(e||"").split(/\s*;\s*/).filter(Boolean).map((function(e){var t,n=e.split(/\s*:\s*/);return(t={})[n[0]]=n[1],t})).reduce((function(e,t){return St(St({},e),t)}),{})},jt=function(e,t,n){var o=e.getAttribute(t);void 0!==n&&n!==o?"style"===t?(e.removeAttribute(t),function(e,t){var n=Ft(t);for(var o in n)o&&void 0!==e.style[o]&&(e.style[o]=n[o])}(e,n)):e.setAttribute(t,n):void 0===n&&e.removeAttribute(t)},Kt=function(){function e(e,t){this.nodes=e,this.marks=t}return e.renderSpec=function(t,n,o){if(void 0===o&&(o=null),"string"==typeof n)return{dom:t.createTextNode(n)};if(null!=n.nodeType)return{dom:n};if(n.dom&&null!=n.dom.nodeType)return n;var r,i=n[0],a=i.indexOf(" ");a>0&&(o=i.slice(0,a),i=i.slice(a+1));var s=o?t.createElementNS(o,i):t.createElement(i),l=n[1],c=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l))for(var u in c=2,l)null!=l[u]&&((a=u.indexOf(" "))>0?s.setAttributeNS(u.slice(0,a),u.slice(a+1),l[u]):jt(s,u,l[u]));for(var d=c;d<n.length;d++){var p=n[d];if(0===p){if(d<n.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var h=e.renderSpec(t,p,o),f=h.dom,m=h.contentDOM;if(s.appendChild(f),m){if(r)throw new RangeError("Multiple content holes");r=m}}return{dom:s,contentDOM:r}},e.fromSchema=function(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))},e.nodesFromSchema=function(e){var t=Wt(e.nodes);return t.text||(t.text=function(e){return e.text}),t},e.marksFromSchema=function(e){return Wt(e.marks)},e.prototype.serializeFragment=function(e,t,n){var o=this;void 0===t&&(t={}),n||(n=Ut(t).createDocumentFragment());var r=n,i=[];return e.forEach((function(e){if(i.length||e.marks.length){for(var n=0,a=0;n<i.length&&a<e.marks.length;){var s=e.marks[a];if(o.marks[s.type.name]){if(!s.eq(i[n][0])||!1===s.type.spec.spanning)break;n++,a++}else a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){var l=e.marks[a++],c=o.serializeMark(l,e.isInline,t);c&&(i.push([l,r]),r.appendChild(c.dom),r=c.contentDOM||c.dom)}}r.appendChild(o.serializeNodeInner(e,t))})),n},e.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),o=e.marks.length-1;o>=0;o--){var r=this.serializeMark(e.marks[o],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n},e.prototype.serializeMark=function(t,n,o){void 0===o&&(o={});var r=this.marks[t.type.name];return r&&e.renderSpec(Ut(o),r(t,n))},e.prototype.serializeNodeInner=function(t,n){var o=e.renderSpec(Ut(n),this.nodes[t.type.name](t)),r=o.dom,i=o.contentDOM;if(i){if(t.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(t.content,n,i)}return r},e}();function Wt(e){var t={};for(var n in e)if(e[n]){var o=e[n].spec.toDOM;o&&(t[n]=o)}return t}function Ut(e){return e.document||window.document}var qt=["div","ol","ul","li","table","tbody","thead","tfoot","caption","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],$t=function(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter((function(e){return e.getAttribute(bt)===t})).forEach((function(e){e.removeAttribute(bt),n.appendChild(e)})),n.children.length&&e.appendChild(n)},Gt=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(bt,t),e.parentNode&&e.parentNode.insertBefore(n,e)})),e.remove()}))},Zt=function(e,t){void 0===t&&(t=qt);var n=t.join("|");return e.replace(new RegExp("\\s*(<(?:"+n+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+n+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},Yt="data-style",Jt=" "+Yt+"=",Xt=/<[^>]+>/gm,Qt=/\sstyle=/gm,en=function(e){return e.replace(Qt,Jt)},tn=function(e){var t,n=document.createElement("template");return n.innerHTML=function(e){return e.replace(Xt,en)}(e),t=n.content,Array.from(t.querySelectorAll("["+Yt+"]")).forEach((function(e){var t=e.getAttribute(Yt);e.removeAttribute(Yt),function(e,t){e.split(";").filter((function(e){return""!==e})).forEach((function(e){var n=e.split(":");t.style[n[0].trim()]=n[1].trim()}))}(t,e)})),n.content},nn=function(e){return Array.from(e.childNodes).reduce((function(e,t){return e+(t.outerHTML||t.textContent||"")}),"")},on=function(e){var t=Kt.fromSchema(e.type.schema).serializeFragment(e.content);return function(e){Array.from(e.querySelectorAll("table")).forEach((function(e){$t(e,"thead"),$t(e,"tbody"),$t(e,"tfoot");var t=Array.from(e.children).find((function(e){return 0===e.children.length}));t&&t.remove();var n=e.parentNode instanceof HTMLDivElement?e.parentNode:null;if(n&&n.matches("div[table]")){e.style.marginLeft=n.style.marginLeft,e.style.marginRight=n.style.marginRight;var o=Array.from(n.children).find((function(e){return e.matches("div[caption]")}));if(o&&"<img>"!==o.innerHTML){var r=e.createCaption();for(o.id&&(r.id=o.id),o.className&&(r.className=o.className),Array.from(o.style).forEach((function(e){r.style[e]=o.style[e]}));o.firstChild;)r.appendChild(o.firstChild)}n.style.width&&!e.style.width&&(e.style.width=n.style.width),n.parentNode.insertBefore(e,n),n.parentNode.removeChild(n)}}))}(t),t},rn=function(e,t,n){return J.fromSchema(t).parse(e,n)},an=function(e,t,n){var o,r=tn(e);return o=r,Array.from(o.querySelectorAll("table")).forEach((function(e){var t=Array.from(e.children);t.some((function(e){return"THEAD"===e.nodeName||"TFOOT"===e.nodeName}))&&(Gt(t,"thead"),Gt(t,"tbody"),Gt(t,"tfoot"));var n=t.find((function(e){return"COLGROUP"===e.nodeName}));if(n&&(e.setAttribute(wt,n.outerHTML),n.remove()),e.caption||e.style.marginLeft||e.style.marginRight){var o=document.createElement("div");if(o.setAttribute("table",""),o.style.display="table",o.style.marginLeft=e.style.marginLeft,o.style.marginRight=e.style.marginRight,e.caption){var r=document.createElement("div");for(r.setAttribute("caption",""),e.caption.id&&(r.id=e.caption.id),e.caption.className&&(r.className=e.caption.className),Array.from(e.caption.style).forEach((function(t){r.style[t]=e.caption.style[t]}));e.caption.firstChild;)r.appendChild(e.caption.firstChild);e.removeChild(e.caption),o.appendChild(r)}e.parentNode.insertBefore(o,e),o.appendChild(e),/%/.test(e.style.width)&&(o.style.width=e.style.width,e.style.width="")}})),rn(r,t,n)},sn=function(e){var t=on(e.doc);return nn(t)},ln=function(e,t,n){return void 0===t&&(t="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(o,r){return r(o.tr.setSelection(new rt(o.doc)).replaceSelectionWith(an(e,o.schema,n)).setMeta("commandName",t))}},cn=function(e,t,n){for(var o=function(o){var r=t[o],i=r.$from,a=r.$to,s=0===i.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,a.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},r=0;r<t.length;r++){var i=o(r);if(i)return i.v}return!1},un=function(e,t,n){return function(o,r){var i=o.selection,a=i.empty,s=i.$cursor,l=i.ranges;if(a&&!s||!cn(o.doc,l,e))return!1;if(r)if(s)e.isInSet(o.storedMarks||s.marks())?r(n.removeStoredMark(e)):r(n.addStoredMark(e.create(t)));else{for(var c=!1,u=0;!c&&u<l.length;u++){var d=l[u],p=d.$from,h=d.$to;c=o.doc.rangeHasMark(p.pos,h.pos,e)}for(u=0;u<l.length;u++){var f=l[u];p=f.$from,h=f.$to,c?n.removeMark(p.pos,h.pos,e):n.addMark(p.pos,h.pos,e.create(t))}r(n.scrollIntoView())}return!0}},dn=function(e,t,n,o){void 0===o&&(o=null);var r=[],i=0;return e.doc.nodesBetween(t,n,(function(e,a){if(e.isInline){i++;var s=null;if(o instanceof G){var l=o.isInSet(e.marks);l&&(s=[l])}else o?o.isInSet(e.marks)&&(s=[o]):s=e.marks;if(s&&s.length)for(var c=Math.min(a+e.nodeSize,n),u=0;u<s.length;u++){for(var d=s[u],p=void 0,h=0;h<r.length;h++){var f=r[h];f.step===i-1&&d.eq(f.style)&&(p=f)}p?(p.to=c,p.step=i):r.push({style:d,from:Math.max(a,t),to:c,step:i})}}})),r.forEach((function(t){return e.step(new we(t.from,t.to,t.style))})),e},pn=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var o,r=e.tr;hn(r,{except:(o=n,o instanceof Array?o:[o])}),r.docChanged&&t(r)}},hn=function(e,t){var n=t.except,o=e.doc,r=e.selection,i=o.type.schema,a=r.empty,s=r.ranges,l=(n||[]).map((function(e){return e.name}));if(!a){var c=Object.keys(i.marks).map((function(e){return i.marks[e]})).filter((function(e){return-1===l.indexOf(e.name)}));s.forEach((function(t){var n=t.$from,o=t.$to;c.forEach((function(t){return e.removeMark(n.pos,o.pos,t)}))}))}},fn=function(e,t){var n,o=e.schema.marks,r=(t.altMarks||[]).filter((function(e){return o[e]})),i=t.altStyle,a=e.selection,s=a.from,l=a.$from,c=a.to,u=a.empty,d=o[t.mark],p=e.doc,h=!1;return u?(n=e.storedMarks||l.marks(),h=d&&d.isInSet(n)||r.some((function(e){return o[e].isInSet(n)}))):h=d&&p.rangeHasMark(s,c,d)||r.some((function(e){return p.rangeHasMark(s,c,o[e])})),!h&&i&&o.style?vn(e,o.style).some((function(e){return null!==mn(e,i)})):Boolean(h)},mn=function(e,t){for(var n=(e&&e.attrs.style||"").split(/\s*;\s*/).filter((function(e){return Boolean(e)})),o=0;o<n.length;o++){var r=n[o].split(/\s*:\s*/);if(r[0].toLowerCase()===t.name&&t.value.test(r[1]))return r[1]}return null},vn=function(e,t){var n=e.selection,o=n.from,r=n.$from,i=n.to,a=n.empty,s=[];return a?s.push(t.isInSet(e.storedMarks||r.marks())):e.doc.nodesBetween(o,i,(function(e){e.isInline&&s.push(t.isInSet(e.marks))})),s},gn=function(e,t){var n=vn(e,t),o=n.filter((function(e){return Boolean(e)}));return n.length===o.length?n[0]:void 0},yn=function(e,t){var n=vn(e,t),o=n.filter((function(e){return Boolean(e)}));return{hasNodesWithoutMarks:n.length!==o.length,marks:o}},bn=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),o=n&&n.attrs.style;return Mt(o,t)},wn=function(e,t,n,o,r){var i=r.create({style:o.style}),a=[],s=[],l=null,c=null;return e.doc.nodesBetween(t,n,(function(e,u,d){if(e.isInline){var p=e.marks;if(!i.isInSet(p)&&d.type.allowsMarkType(i.type)){var h=Math.max(u,t),f=Math.min(u+e.nodeSize,n),m=bn(p,o);if(m.changed||o.newValue){for(var v=m.changed?{style:m.style||null}:{style:[o.style]+": "+o.newValue+";"},g=r.isInSet(p)?p.find((function(e){return"style"===e.type.name})):null,y=g?St(St({},g.attrs),v):v,b=r.create(y),w=b.addToSet(p),k=0;k<p.length;k++)p[k].isInSet(w)||(l&&l.to===h&&l.mark.eq(p[k])?l.to=f:(l=new we(h,f,p[k]),a.push(l)));var x=c&&c.to===h,z=x&&b.attrs.style===c.mark.attrs.style;x&&z?c.to=f:Object.keys(y).some((function(e){return null!==y[e]}))&&(c=new be(h,f,b),s.push(c))}}}})),a.forEach((function(t){return e.step(t)})),s.forEach((function(t){return e.step(t)})),a.length+s.length>0},kn=function(e,t){var n=e.schema.marks.style;return(n?vn(e,n):[]).map((function(e){return mn(e,t)})).filter((function(e){return null!==e}))},xn=function(e,t){return function(n,o,r){var i=n.selection,a=i.empty,s=i.ranges,l=n.selection instanceof et&&n.selection.$cursor;if(a&&!l||!cn(n.doc,s,e))return!1;var c,u,d,p,h=!1;if(o){var f=r||n.tr;if(l){var m=n.storedMarks||l.marks();if(e.isInSet(m)){var v=bn(m,t),g=m.find((function(e){return"style"===e.type.name})),y=St(St({},g?g.attrs:{}),{style:v.style||null});if(c=g.attrs,u=y,d=Object.keys(c),p=Object.keys(u),d.length===p.length&&d.every((function(e){return c[e]===u[e]})))return!1;o(f.removeStoredMark(e)),Object.keys(y).some((function(e){return null!==y[e]}))&&o(f.addStoredMark(e.create(y))),h=!0}}else{for(var b=0;b<s.length;b++){var w=s[b],k=w.$from,x=w.$to;h=wn(f,k.pos,x.pos,t,e)||h}h&&(f.scrollIntoView(),o(f))}}return h}},zn=function(e,t,n){return function(o,r){var i=o.schema.marks,a=e.altStyle,s=e.altMarks,l=void 0===s?[]:s,c=e.mark,u=t||o.tr,d=!1,p=!1,h=function(){return p=!0};a&&i.style&&(d=xn(i.style,{style:a.name,value:a.value})(o,h,u));var f=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([c],l).filter((function(e){return i[e]})).map((function(e){return fn(o,{mark:e})&&i[e]})).filter((function(e){return e}));return f.length?function(e,t,n,o){var r=t.selection,i=r.$cursor,a=r.ranges;if(o=o||t.tr,i)e.forEach((function(e){e.isInSet(t.storedMarks||i.marks())&&n(o.removeStoredMark(e))}));else{for(var s=function(t){var n=a[t],r=n.$from,i=n.$to;e.forEach((function(e){dn(o,r.pos,i.pos,e)}))},l=0;l<a.length;l++)s(l);n(o.scrollIntoView())}}(f,o,h,u):d||un(i[c],n,u)(o,h),p&&r(u),p}},Cn=function(e,t){return function(n,o){var r=n.schema.marks.style,i={style:e.style,value:/^.+$/,newValue:e.value},a=n.tr;t&&a.setMeta("commandName",t),a.setMeta("args",e);var s=n.selection,l=s.empty,c=s.$cursor,u=s.ranges;if(l&&!c||!r||!cn(n.doc,u,r))return!1;if(c){var d=n.storedMarks||c.marks(),p=r.isInSet(d)?d.find((function(e){return"style"===e.type.name})):null,h={style:null};if(p&&p.attrs.style){var f=Mt(p.attrs.style,i);f.changed&&f.style&&(h.style=f.style)}else i.newValue&&(h.style=[i.style]+": "+i.newValue+";");var m=p?St(St({},p.attrs),h):h;return Object.keys(m).some((function(e){return null!==m[e]}))?o(a.addStoredMark(r.create(m))):o(a.removeStoredMark(r)),!0}return xn(r,i)(n,o,a)}},Sn=function(e,t){return function(n,o){var r=n.selection.$cursor;if(r){var i=r.parent,a=r.index(),s=n.schema.marks[e.mark],l=i.child(a).marks.find((function(e){return e.type===s})),c=i.childCount,u=r.pos-r.textOffset,d=i.child(a).nodeSize,p=void 0,h=void 0;for(p=a-1;p>=0&&l.isInSet(i.child(p).marks);)d+=h=i.child(p).nodeSize,u-=h,p-=1;for(p=a+1;p<c&&l.isInSet(i.child(p).marks);)d+=i.child(p).nodeSize,p+=1;o(dn(t||n.tr,u,u+d,l))}else zn(e,t)(n,o)}},In=function(e,t){var n=e.mark,o=e.attrs;return void 0===t&&(t="link"),function(e,r){var i=e.schema.marks,a=e.tr;t&&(a.setMeta("commandName",t),a.setMeta("args",o));var s=!1,l=function(){return s=!0};if(function(e,t){var n=vn(e,t);return 1===n.length&&n[0]?n[0]:null}(e,i[n]))!function(e,t){return function(n,o){var r=n.selection,i=r.$cursor,a=r.from,s=r.to,l=n.schema.marks[e.mark];if(i){var c=i.parent,u=i.index(),d=c.child(u).marks.find((function(e){return e.type===l})),p=c.childCount,h=i.pos-i.textOffset,f=c.child(u).nodeSize,m=void 0,v=void 0;for(m=u-1;m>=0&&d.isInSet(c.child(m).marks);)f+=v=c.child(m).nodeSize,h-=v,m-=1;for(m=u+1;m<p&&d.isInSet(c.child(m).marks);)f+=c.child(m).nodeSize,m+=1;t.removeMark(h,h+f,l),t.addMark(h,h+f,l.create(e.attrs)),o(t)}else t.doc.nodesBetween(a,s,(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)),o(t))}))}}({mark:n,attrs:o},a)(e,l);else{var c=e;fn(e,{mark:n})&&(Sn({mark:n,attrs:o},a)(e,l),c=ht.create({doc:a.doc,selection:a.selection})),s?un(i[n],o,a)(c,l):zn({mark:n},a,o)(c,l)}return s&&r(a),s}},Mn=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}},En=function(e){return function(t,n){var o=t.schema.nodes.image.createAndFill(e);Pt(o)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}},On=function(e,t,n,o){if(!n.isTextblock)return!1;e.selection.ranges.forEach((function(r){var i=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,o)&&function(e,t,n){var o=e.resolve(t),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}(e.doc,e.mapping.slice(i).map(a),n)){e.clearIncompatible(e.mapping.slice(i).map(a,1),n);var l=e.mapping.slice(i),c=l.map(a,1),u=l.map(a+r.nodeSize,1),d=new h(s.from(n.create(o,null,r.marks)),0,0);return e.step(new Ce(c,u,c+1,u-1,d,1,!0)),!1}}))}))},Hn=function(e,t){void 0===t&&(t={blocksInSelection:!1});var n=e.doc,o=e.selection,r=o.$from,i=o.ranges,a=t.blocksInSelection,s=[],l=o instanceof nt?o.node:void 0;return l?l.isBlock?(s.push(l),l.nodesBetween(0,l.content.size,(function(e){e.isBlock&&s.push(e)}))):!a&&r.parent&&r.parent.isBlock&&s.push(r.parent):i.forEach((function(e){var t=e.$from.pos,o=e.$to.pos;n.nodesBetween(t,o,(function(e,n,r,i){e.isBlock&&(!a||n>=t&&n+e.content.size+2<=o)&&s.push(e)}))})),s},Nn=function(e,t){return function(n,o){var r=Hn(n),i=n.schema.nodes,a=n.tr;a.setMeta("commandName",t),a.setMeta("args",{value:e}),r.forEach((function(t){if(t.type.isTextblock)if("p"===e){var n=t.attrs,o=n.level,r=It(n,["level"]);On(a,t,i.paragraph,r)}else if(/^h[1-6]$/i.test(e))o=parseInt(e.substr(1),10),On(a,t,i.heading,St(St({},t.attrs),{level:o}));else if("blockquote"===e){var s=t.attrs;o=s.level,r=It(s,["level"]),On(a,t,i.blockquote,r)}}));var s=a.docChanged;return s&&o(a.scrollIntoView()),s}},Pn=function(e,t){void 0===t&&(t={blocksInSelection:!0});var n=e.doc,o=e.selection,r=t.blocksInSelection,i=t.blockNodeType;Hn({doc:n,selection:o},{blocksInSelection:r}).filter((function(e){return e.isTextblock})).forEach((function(t){var n=t.attrs||{},o=n.style,r=void 0===o?"":o,a=n.class,s=void 0===a?"":a,l=It(n,["style","class"]),c=i||t.type;(r||s||c!==t.type)&&On(e,t,c,l)}))},Vn=function(e){var t=Hn(e),n=e.schema.nodes,o=[];return t.forEach((function(e){e.type===n.paragraph?o.push("p"):e.type===n.heading?o.push("h"+e.attrs.level):e.type===n.blockquote&&n.blockquote.isTextblock&&o.push("blockquote")})),o},Tn=function(e,t){var n,o,r=e.attrs.style;return r&&t.forEach((function(e){o={style:e.name,value:/^.+$/,newValue:e.value},n=Mt(r,o),r=n.changed?n.style:r})),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})},Rn=function(e,t){var n=e.selection,o=n.from,r=n.to,i=!1;return e.doc.nodesBetween(o,r,(function(e){return!(i=i||e.type===t)})),i},Dn=function(e){var t=Vn(e);return 1===new Set(t).size?t[0]:null},Bn=function(e){return{tag:Dn(e)||""}},An=function(e,t){return function(n,o){var r=Hn(n),i=n.tr;i.setMeta("commandName",t),r.forEach((function(t){if(t.type.isTextblock){var n=e.find((function(e){return e.node===t.type.name}));if(n){var o=Tn(t,n.style);On(i,t,t.type,o)}}}));var a=i.docChanged;return a&&o(i.scrollIntoView()),a}},Ln=function(e,t){var n=Hn(e),o=!1;return n.forEach((function(e){if(!o&&e.type.isTextblock&&e.attrs.style){var n=t.find((function(t){return t.node===e.type.name}));n&&(o=n.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),o},_n=function(e){return void 0===e&&(e={blocksInSelection:!0}),function(t,n){var o=t.tr,r=e.blocksInSelection,i=e.blockNodeType,a=(e.exceptMarks||[t.schema.marks.link]).filter(Boolean);hn(o,{except:a}),Pn(o,{blocksInSelection:r,blockNodeType:i});var s=o.docChanged;return s&&n&&n(o),s}};const Fn=["ol",0],jn=["ul",0],Kn=["li",0],Wn={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1})}],toDOM:e=>1==e.attrs.order?Fn:["ol",{start:e.attrs.order},0]},Un={parseDOM:[{tag:"ul"}],toDOM:()=>jn},qn={parseDOM:[{tag:"li"}],toDOM:()=>Kn,defining:!0};function $n(e,t){let n={};for(let t in e)n[t]=e[t];for(let e in t)n[e]=t[e];return n}function Gn(e,t,n){return e.append({ordered_list:$n(Wn,{content:"list_item+",group:n}),bullet_list:$n(Un,{content:"list_item+",group:n}),list_item:$n(qn,{content:t})})}function Zn(e,t=null){return function(n,o){let{$from:r,$to:i}=n.selection,a=r.blockRange(i),l=!1,c=a;if(!a)return!1;if(a.depth>=2&&r.node(a.depth-1).type.compatibleContent(e)&&0==a.startIndex){if(0==r.index(a.depth-1))return!1;let e=n.doc.resolve(a.start-2);c=new O(e,e,a.depth),a.endIndex<a.parent.childCount&&(a=new O(r,n.doc.resolve(i.end(a.depth)),a.depth)),l=!0}let u=Ee(c,e,t,a);return!!u&&(o&&o(function(e,t,n,o,r){let i=s.empty;for(let e=n.length-1;e>=0;e--)i=s.from(n[e].type.create(n[e].attrs,i));e.step(new Ce(t.start-(o?2:0),t.end,t.start,t.end,new h(i,0,0),n.length,!0));let a=0;for(let e=0;e<n.length;e++)n[e].type==r&&(a=e+1);let l=n.length-a,c=t.start+n.length-(o?2:0),u=t.parent;for(let n=t.startIndex,o=t.endIndex,r=!0;n<o;n++,r=!1)!r&&He(e.doc,c,l)&&(e.split(c,l),c+=2*l),c+=u.child(n).nodeSize;return e}(n.tr,a,u,l,e).scrollIntoView()),!0)}}function Yn(e,t){return function(n,o){let{$from:r,$to:i,node:a}=n.selection;if(a&&a.isBlock||r.depth<2||!r.sameParent(i))return!1;let l=r.node(-1);if(l.type!=e)return!1;if(0==r.parent.content.size&&r.node(-1).childCount==r.indexAfter(-1)){if(3==r.depth||r.node(-3).type!=e||r.index(-2)!=r.node(-2).childCount-1)return!1;if(o){let t=s.empty,i=r.index(-1)?1:r.index(-2)?2:3;for(let e=r.depth-i;e>=r.depth-3;e--)t=s.from(r.node(e).copy(t));let a=r.indexAfter(-1)<r.node(-2).childCount?1:r.indexAfter(-2)<r.node(-3).childCount?2:3;t=t.append(s.from(e.createAndFill()));let l=r.before(r.depth-(i-1)),c=n.tr.replace(l,r.after(-a),new h(t,4-i,0)),u=-1;c.doc.nodesBetween(l,c.doc.content.size,((e,t)=>{if(u>-1)return!1;e.isTextblock&&0==e.content.size&&(u=t+1)})),u>-1&&c.setSelection(Ye.near(c.doc.resolve(u))),o(c.scrollIntoView())}return!0}let c=i.pos==r.end()?l.contentMatchAt(0).defaultType:null,u=n.tr.delete(r.pos,i.pos),d=c?[t?{type:e,attrs:t}:null,{type:c}]:void 0;return!!He(u.doc,r.pos,2,d)&&(o&&o(u.split(r.pos,2,d).scrollIntoView()),!0)}}function Jn(e){return function(t,n){let{$from:o,$to:r}=t.selection,i=o.blockRange(r,(t=>t.childCount>0&&t.firstChild.type==e));return!!i&&(!n||(o.node(i.depth-1).type==e?function(e,t,n,o){let r=e.tr,i=o.end,a=o.$to.end(o.depth);i<a&&(r.step(new Ce(i-1,a,i,a,new h(s.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new O(r.doc.resolve(o.$from.pos),r.doc.resolve(a),o.depth));const l=Me(o);if(null==l)return!1;r.lift(o,l);let c=r.mapping.map(i,-1)-1;return Ne(r.doc,c)&&r.join(c),t(r.scrollIntoView()),!0}(t,n,e,i):function(e,t,n){let o=e.tr,r=n.parent;for(let e=n.end,t=n.endIndex-1,i=n.startIndex;t>i;t--)e-=r.child(t).nodeSize,o.delete(e-1,e+1);let i=o.doc.resolve(n.start),a=i.nodeAfter;if(o.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let l=0==n.startIndex,c=n.endIndex==r.childCount,u=i.node(-1),d=i.index(-1);if(!u.canReplace(d+(l?0:1),d+1,a.content.append(c?s.empty:s.from(r))))return!1;let p=i.pos,f=p+a.nodeSize;return o.step(new Ce(p-(l?1:0),f+(c?1:0),p+1,f-1,new h((l?s.empty:s.from(r.copy(s.empty))).append(c?s.empty:s.from(r.copy(s.empty))),l?0:1,c?0:1),l?0:1)),t(o.scrollIntoView()),!0}(t,n,i)))}}function Xn(e){return function(t,n){let{$from:o,$to:r}=t.selection,i=o.blockRange(r,(t=>t.childCount>0&&t.firstChild.type==e));if(!i)return!1;let a=i.startIndex;if(0==a)return!1;let l=i.parent,c=l.child(a-1);if(c.type!=e)return!1;if(n){let o=c.lastChild&&c.lastChild.type==l.type,r=s.from(o?e.create():null),a=new h(s.from(e.create(null,s.from(l.type.create(null,r)))),o?3:1,0),u=i.start,d=i.end;n(t.tr.step(new Ce(u-(o?3:1),d,u,d,a,1,!0)).scrollIntoView())}return!0}}var Qn={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},eo={listType:Qn.orderedList,types:St({},Qn)},to={listType:Qn.bulletList,types:St({},Qn)},no={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:St({},Qn)},oo={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:St({},Qn)};const ro=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function io(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const ao=(e,t,n)=>{let o=io(e,n);if(!o)return!1;let r=ho(o);if(!r){let n=o.blockRange(),r=n&&Me(n);return null!=r&&(t&&t(e.tr.lift(n,r).scrollIntoView()),!0)}let i=r.nodeBefore;if(!i.type.spec.isolating&&No(e,r,t))return!0;if(0==o.parent.content.size&&(uo(i,"end")||nt.isSelectable(i))){let n=De(e.doc,o.before(),o.after(),h.empty);if(n&&n.slice.size<n.to-n.from){if(t){let o=e.tr.step(n);o.setSelection(uo(i,"end")?Ye.findFrom(o.doc.resolve(o.mapping.map(r.pos,-1)),-1):nt.create(o.doc,r.pos-i.nodeSize)),t(o.scrollIntoView())}return!0}}return!(!i.isAtom||r.depth!=o.depth-1||(t&&t(e.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),0))},so=(e,t,n)=>{let o=io(e,n);if(!o)return!1;let r=ho(o);return!!r&&co(e,r,t)},lo=(e,t,n)=>{let o=fo(e,n);if(!o)return!1;let r=go(o);return!!r&&co(e,r,t)};function co(e,t,n){let o=t.nodeBefore,r=t.pos-1;for(;!o.isTextblock;r--){if(o.type.spec.isolating)return!1;let e=o.lastChild;if(!e)return!1;o=e}let i=t.nodeAfter,a=t.pos+1;for(;!i.isTextblock;a++){if(i.type.spec.isolating)return!1;let e=i.firstChild;if(!e)return!1;i=e}let s=De(e.doc,r,a,h.empty);if(!s||s.from!=r||s instanceof ze&&s.slice.size>=a-r)return!1;if(n){let t=e.tr.step(s);t.setSelection(et.create(t.doc,r)),n(t.scrollIntoView())}return!0}function uo(e,t,n=!1){for(let o=e;o;o="start"==t?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&1!=o.childCount)return!1}return!1}const po=(e,t,n)=>{let{$head:o,empty:r}=e.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):o.parentOffset>0)return!1;i=ho(o)}let a=i&&i.nodeBefore;return!(!a||!nt.isSelectable(a)||(t&&t(e.tr.setSelection(nt.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),0))};function ho(e){if(!e.parent.type.spec.isolating)for(let 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 fo(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const mo=(e,t,n)=>{let o=fo(e,n);if(!o)return!1;let r=go(o);if(!r)return!1;let i=r.nodeAfter;if(No(e,r,t))return!0;if(0==o.parent.content.size&&(uo(i,"start")||nt.isSelectable(i))){let n=De(e.doc,o.before(),o.after(),h.empty);if(n&&n.slice.size<n.to-n.from){if(t){let o=e.tr.step(n);o.setSelection(uo(i,"start")?Ye.findFrom(o.doc.resolve(o.mapping.map(r.pos)),1):nt.create(o.doc,o.mapping.map(r.pos))),t(o.scrollIntoView())}return!0}}return!(!i.isAtom||r.depth!=o.depth-1||(t&&t(e.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),0))},vo=(e,t,n)=>{let{$head:o,empty:r}=e.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):o.parentOffset<o.parent.content.size)return!1;i=go(o)}let a=i&&i.nodeAfter;return!(!a||!nt.isSelectable(a)||(t&&t(e.tr.setSelection(nt.create(e.doc,i.pos)).scrollIntoView()),0))};function go(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let 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}const yo=(e,t)=>{let n,o=e.selection,r=o instanceof nt;if(r){if(o.node.isTextblock||!Ne(e.doc,o.from))return!1;n=o.from}else if(n=Ve(e.doc,o.from,-1),null==n)return!1;if(t){let o=e.tr.join(n);r&&o.setSelection(nt.create(o.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},bo=(e,t)=>{let n,o=e.selection;if(o instanceof nt){if(o.node.isTextblock||!Ne(e.doc,o.to))return!1;n=o.to}else if(n=Ve(e.doc,o.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0},wo=(e,t)=>{let{$from:n,$to:o}=e.selection,r=n.blockRange(o),i=r&&Me(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)},ko=(e,t)=>{let{$head:n,$anchor:o}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(o)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))};function xo(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const zo=(e,t)=>{let{$head:n,$anchor:o}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),i=n.indexAfter(-1),a=xo(r.contentMatchAt(i));if(!a||!r.canReplaceWith(i,i,a))return!1;if(t){let o=n.after(),r=e.tr.replaceWith(o,o,a.createAndFill());r.setSelection(Ye.near(r.doc.resolve(o),1)),t(r.scrollIntoView())}return!0},Co=(e,t)=>{let n=e.selection,{$from:o,$to:r}=n;if(n instanceof rt||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=xo(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,a=e.tr.insert(n,i.createAndFill());a.setSelection(et.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},So=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(He(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let o=n.blockRange(),r=o&&Me(o);return null!=r&&(t&&t(e.tr.lift(o,r).scrollIntoView()),!0)};function Io(e){return(t,n)=>{let{$from:o,$to:r}=t.selection;if(t.selection instanceof nt&&t.selection.node.isBlock)return!(!o.parentOffset||!He(t.doc,o.pos)||(n&&n(t.tr.split(o.pos).scrollIntoView()),0));if(!o.parent.isBlock)return!1;if(n){let i=r.parentOffset==r.parent.content.size,a=t.tr;(t.selection instanceof et||t.selection instanceof rt)&&a.deleteSelection();let s=0==o.depth?null:xo(o.node(-1).contentMatchAt(o.indexAfter(-1))),l=e&&e(r.parent,i),c=l?[l]:i&&s?[{type:s}]:void 0,u=He(a.doc,a.mapping.map(o.pos),1,c);if(c||u||!He(a.doc,a.mapping.map(o.pos),1,s?[{type:s}]:void 0)||(s&&(c=[{type:s}]),u=!0),u&&(a.split(a.mapping.map(o.pos),1,c),!i&&!o.parentOffset&&o.parent.type!=s)){let e=a.mapping.map(o.before()),t=a.doc.resolve(e);s&&o.node(-1).canReplaceWith(t.index(),t.index()+1,s)&&a.setNodeMarkup(a.mapping.map(o.before()),s)}n(a.scrollIntoView())}return!0}}const Mo=Io(),Eo=(e,t)=>Mo(e,t&&(n=>{let o=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();o&&n.ensureMarks(o),t(n)})),Oo=(e,t)=>{let n,{$from:o,to:r}=e.selection,i=o.sharedDepth(r);return 0!=i&&(n=o.before(i),t&&t(e.tr.setSelection(nt.create(e.doc,n))),!0)},Ho=(e,t)=>(t&&t(e.tr.setSelection(new rt(e.doc))),!0);function No(e,t,n){let o,r,i=t.nodeBefore,a=t.nodeAfter;if(i.type.spec.isolating||a.type.spec.isolating)return!1;if(function(e,t,n){let o=t.nodeBefore,r=t.nodeAfter,i=t.index();return!(!(o&&r&&o.type.compatibleContent(r.type))||(!o.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-o.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!r.isTextblock&&!Ne(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,o.type,o.contentMatchAt(o.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;let l=t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(r=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&r.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,l=s.empty;for(let e=o.length-1;e>=0;e--)l=s.from(o[e].create(null,l));l=s.from(i.copy(l));let c=e.tr.step(new Ce(t.pos-1,r,t.pos,r,new h(l,1,0),o.length,!0)),u=r+2*o.length;Ne(c.doc,u)&&c.join(u),n(c.scrollIntoView())}return!0}let c=Ye.findFrom(t,1),u=c&&c.$from.blockRange(c.$to),d=u&&Me(u);if(null!=d&&d>=t.depth)return n&&n(e.tr.lift(u,d).scrollIntoView()),!0;if(l&&uo(a,"start",!0)&&uo(i,"end")){let o=i,r=[];for(;r.push(o),!o.isTextblock;)o=o.lastChild;let l=a,c=1;for(;!l.isTextblock;l=l.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,l.content)){if(n){let o=s.empty;for(let e=r.length-1;e>=0;e--)o=s.from(r[e].copy(o));n(e.tr.step(new Ce(t.pos-r.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new h(o,r.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Po(e){return function(t,n){let o=t.selection,r=e<0?o.$from:o.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return!!r.node(i).isTextblock&&(n&&n(t.tr.setSelection(et.create(t.doc,e<0?r.start(i):r.end(i)))),!0)}}const Vo=Po(-1),To=Po(1);function Ro(e,t=null){return function(n,o){let{$from:r,$to:i}=n.selection,a=r.blockRange(i),s=a&&Ee(a,e,t);return!!s&&(o&&o(n.tr.wrap(a,s).scrollIntoView()),!0)}}function Do(e,t=null){return function(n,o){let r=!1;for(let o=0;o<n.selection.ranges.length&&!r;o++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[o];n.doc.nodesBetween(i,a,((o,i)=>{if(r)return!1;if(o.isTextblock&&!o.hasMarkup(e,t))if(o.type==e)r=!0;else{let t=n.doc.resolve(i),o=t.index();r=t.parent.canReplaceWith(o,o+1,e)}}))}if(!r)return!1;if(o){let r=n.tr;for(let o=0;o<n.selection.ranges.length;o++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[o];r.setBlockType(i,a,e,t)}o(r.scrollIntoView())}return!0}}function Bo(e,t=null){return function(n,o){let{empty:r,$cursor:i,ranges:a}=n.selection;if(r&&!i||!function(e,t,n){for(let o=0;o<t.length;o++){let{$from:r,$to:i}=t[o],a=0==r.depth&&e.inlineContent&&e.type.allowsMarkType(n);if(e.nodesBetween(r.pos,i.pos,(e=>{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return!0}return!1}(n.doc,a,e))return!1;if(o)if(i)e.isInSet(n.storedMarks||i.marks())?o(n.tr.removeStoredMark(e)):o(n.tr.addStoredMark(e.create(t)));else{let r=!1,i=n.tr;for(let t=0;!r&&t<a.length;t++){let{$from:o,$to:i}=a[t];r=n.doc.rangeHasMark(o.pos,i.pos,e)}for(let n=0;n<a.length;n++){let{$from:o,$to:s}=a[n];if(r)i.removeMark(o.pos,s.pos,e);else{let n=o.pos,r=s.pos,a=o.nodeAfter,l=s.nodeBefore,c=a&&a.isText?/^\s*/.exec(a.text)[0].length:0,u=l&&l.isText?/\s*$/.exec(l.text)[0].length:0;n+c<r&&(n+=c,r-=u),i.addMark(n,r,e.create(t))}}o(i.scrollIntoView())}return!0}}function Ao(e,t){return n=>{if(!n.isGeneric)return e(n);let o=[];for(let e=0;e<n.mapping.maps.length;e++){let t=n.mapping.maps[e];for(let e=0;e<o.length;e++)o[e]=t.map(o[e]);t.forEach(((e,t,n,r)=>o.push(n,r)))}let r=[];for(let e=0;e<o.length;e+=2){let i=o[e],a=o[e+1],s=n.doc.resolve(i),l=s.sharedDepth(a),c=s.node(l);for(let e=s.indexAfter(l),n=s.after(l+1);n<=a;++e){let o=c.maybeChild(e);if(!o)break;if(e&&-1==r.indexOf(n)){let i=c.child(e-1);i.type==o.type&&t(i,o)&&r.push(n)}n+=o.nodeSize}}r.sort(((e,t)=>e-t));for(let e=r.length-1;e>=0;e--)Ne(n.doc,r[e])&&n.join(r[e]);e(n)}}function Lo(e,t){let n=Array.isArray(t)?e=>t.indexOf(e.type.name)>-1:t;return(t,o,r)=>e(t,o&&Ao(o,n),r)}function _o(...e){return function(t,n,o){for(let r=0;r<e.length;r++)if(e[r](t,n,o))return!0;return!1}}let Fo=_o(ro,ao,po),jo=_o(ro,mo,vo);const Ko={Enter:_o(ko,Co,So,Mo),"Mod-Enter":zo,Backspace:Fo,"Mod-Backspace":Fo,"Shift-Backspace":Fo,Delete:jo,"Mod-Delete":jo,"Mod-a":Ho},Wo={"Ctrl-h":Ko.Backspace,"Alt-Backspace":Ko["Mod-Backspace"],"Ctrl-d":Ko.Delete,"Ctrl-Alt-Backspace":Ko["Mod-Delete"],"Alt-Delete":Ko["Mod-Delete"],"Alt-d":Ko["Mod-Delete"],"Ctrl-a":Vo,"Ctrl-e":To};for(let e in Ko)Wo[e]=Ko[e];const Uo=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&"darwin"==os.platform())?Wo:Ko;var qo=function(e,t){return Ro(e.schema.nodes.blockquote)(e,t)},$o=function(e,t){var n=e.selection,o=n.$from,r=n.$to,i=e.schema.nodes.blockquote,a=e.doc,s=-1,l=o.blockRange(r);l&&a.nodesBetween(l.start,l.end,(function(e,t,n,o){e.type===i&&(s=t)}));var c=-1!==s;return t&&c&&t(e.tr.lift(l,a.resolve(s).depth)),c},Go=function(e,t,n){return function(o,r){var i=Hn(o),a=o.tr;a.setMeta("commandName",t),i.forEach((function(t){if(t.type.isTextblock){var o=void 0,r=e.find((function(e){return e.node===t.type.name}));if(r){var i="rtl"===n?r.rtlStyle:r.style,s={name:i,value:r.step>0?""+r.step+r.unit:""};if(t.attrs.style){var l=new RegExp(i+":\\s?(\\d+)"+r.unit,"i"),c=t.attrs.style.match(l);if(c){var u=parseFloat(c[1])+r.step;u=u<=0?"":u,s.value=""+u+(u?r.unit:"")}}o=Tn(t,[s])}o&&On(a,t,t.type,o)}}));var s=a.docChanged;return s&&r(a.scrollIntoView()),s}},Zo=function(e,t,n){var o=Hn(e),r=!1;return o.forEach((function(e){if(!r&&e.type.isTextblock&&e.attrs.style){var o=t.find((function(t){return t.node===e.type.name}));if(o){var i="rtl"===n?o.rtlStyle:o.style,a=new RegExp(i+":\\s?\\d+"+o.unit,"i");r=a.test(e.attrs.style)}}})),r},Yo=function(e,t){return Xn(t)(e)},Jo=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],o=e.schema.nodes[t.listsTypes.orderedList],r=e.schema.nodes[t.listsTypes.bulletList],i=!!Ht(o,2)(e.selection),a=!!Ht(r,2)(e.selection);return(i||a)&&Jn(n)(e)},Xo=function(e,t){var n=e.schema.nodes,o=n[no.listsTypes.listItem];return(Zo(e,t.nodes)||no.nodes.some((function(t){return n[t.node]&&Rn(e,n[t.node])})))&&!Rn(e,o)},Qo=function(e,t){var n=e.schema.nodes[no.listsTypes.listItem],o=Xo(e,no);Yo(e,n)?Xn(n)(e,t):o&&Go(no.nodes)(e,t)},er=function(e,t){var n=e.schema.nodes,o=n[oo.listsTypes.listItem],r=Xo(e,oo);Rn(e,n.blockquote)?$o(e,t):Jo(e,oo)?Jn(o)(e,t):r&&Go(oo.nodes)(e,t)},tr=function(e,t,n){for(var o=t.depth,r=e.nodes[n.bulletList],i=e.nodes[n.orderedList],a=e.nodes[n.listItem],s=t.depth;s>0;s--){var l=t.node(s);if(l.type!==r&&l.type!==i||(o=s),l.type!==r&&l.type!==i&&l.type!==a)break}return o-1};function nr(e,t,n,o){var r=o||e.schema.nodes.listItem,i=t.$from,a=t.$to,l=i.blockRange(a,(function(e){return e.childCount&&e.firstChild.type===r}));if(!l||l.depth<2||i.node(l.depth-1).type!==r)return n;var c=l.end,u=a.end(l.depth);return c<u&&(n.step(new Ce(c-1,u,c,u,new h(s.from(r.create(void 0,l.parent.copy())),1,0),1,!0)),l=new O(n.doc.resolve(i.pos),n.doc.resolve(u),l.depth)),n.lift(l,Me(l)).scrollIntoView()}function or(e){return function(t,n){var o=t.tr,r=t.selection,i=r.$from,a=r.$to;return o.doc.nodesBetween(i.pos,a.pos,(function(n,r){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var i=new nt(o.doc.resolve(o.mapping.map(r))),a=i.$from.blockRange(i.$to);if(!a||i.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var s=a&&Me(a);if(null==s)return!1;o.lift(a,s)}})),n&&n(o),!0}}var rr=/list\-style\-type:\s?([\w-]+)/,ir=function(e){var t=e.style||"",n=rr.exec(t);return n&&n[1]||""},ar=function(e,t,n,o,r){var i=o.listType,a=o.listAttrs,s=void 0===a?{style:null}:a,l=e.selection,c=l.$from.node(l.$from.depth-2),u=l.$to.node(l.$to.depth-2);if(c&&c.type.name===i&&ir(c.attrs)===ir(s)&&u&&u.type.name===i&&ir(u.attrs)===ir(s)){var d=n.state.schema.nodes,p={bulletList:d[o.bulletList],orderedList:d[o.orderedList],listItem:d[o.listItem]},h=function(e,t){for(var n,o=t.bulletList,r=t.orderedList,i=t.listItem,a=e.depth-1;a>0;a--){var s=e.node(a);if(s.type!==o&&s.type!==r||(n=a),s.type!==o&&s.type!==r&&s.type!==i)break}return n}(l.$to,p),f=function(e,t,n,o,r,i){i||(i=e.schema.nodes.listItem);var a=!1;return r.doc.nodesBetween(t,n,(function(n,s){if(!a&&n.type===i&&s>t){a=!0;for(var l=o+3;l>o+2;){var c=r.doc.resolve(r.mapping.map(s));l=c.depth;var u=r.doc.resolve(r.mapping.map(s+n.textContent.length)),d=new et(c,u);r=nr(e,d,r,i)}}})),r}(e,l.$to.pos,l.$to.end(h),h,n.state.tr,p.listItem);return f=function(e,t,n){var o=e.selection,r=o.from,i=o.to,a=e.schema.nodes,s=a.paragraph,l=a.heading,c=[];t.doc.nodesBetween(r,i,(function(e,t){e.type!==s&&e.type!==l||c.push({node:e,pos:t})}));for(var u=c.length-1;u>=0;u--){var d=c[u],p=t.doc.resolve(t.mapping.map(d.pos));if(p.depth>0){var h;h=d.node.textContent&&d.node.textContent.length>0?t.doc.resolve(t.mapping.map(d.pos+d.node.textContent.length)):t.doc.resolve(t.mapping.map(d.pos+1));var f=p.blockRange(h);f&&t.lift(f,tr(e.schema,p,n))}}return t}(e,f,o),f.setMeta("commandName",r),t(f),!0}return function(e){return function(t,n,o){if(!o)return!1;var r,i,a=(t=o.state).schema.nodes[e.listType],s=t.selection,l=s.$from,c=s.$to,u=l.node(-2),d=l.node(-3),p=function(e,t,n,o){return 0===function(e,t,n){for(var o=Array(),r=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var o=t.node(t.depth),r=t;t.depth>=1;)(o=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(o.type.name)&&(r=t);return r}(e,t).depth,i=e.resolve(t.start(r));i.pos<=n.start(n.depth);){var a=Math.min(i.depth,r),s=i.node(a);if(s&&o.push(s),0===a)break;var l=e.resolve(i.after(a));if(l.start(a)>=e.nodeSize-2)break;l.depth!==i.depth&&(l=e.resolve(l.pos+2)),i=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return o}(e,t,n).filter((function(e){return e.type!==o})).length}(t.doc,l,c,a);return(u&&u.type===a||d&&d.type===a)&&p?or(e)(t,n):(p||(or(e)(t,n),t=o.state),(r=a,void 0===(i=e.listAttrs)&&(i={}),Lo(Zn(r,i),(function(e,t){return e.type===t.type&&e.type===r})))(t,n))}}(o)(e,t,n)};function sr(e,t,n){return ar(e,t,n,St({listType:to.listType},to.types))}function lr(e,t,n){return ar(e,t,n,St({listType:eo.listType},eo.types))}var cr=function(e,t){return{name:e,value:t}},ur=[{node:"paragraph",style:[cr("text-align","left")]},{node:"heading",style:[cr("text-align","left")]},{node:"table_caption_external",style:[cr("text-align","left")]}],dr=[{node:"paragraph",style:[cr("text-align","right")]},{node:"heading",style:[cr("text-align","right")]},{node:"table_caption_external",style:[cr("text-align","right")]}],pr=[{node:"paragraph",style:[cr("text-align","center")]},{node:"heading",style:[cr("text-align","center")]},{node:"table_caption_external",style:[cr("text-align","center")]}],hr=[{node:"paragraph",style:[cr("text-align","justify")]},{node:"heading",style:[cr("text-align","justify")]},{node:"table_caption_external",style:[cr("text-align","justify")]}],fr=[{node:"paragraph",style:[cr("text-align","")]},{node:"heading",style:[cr("text-align","")]},{node:"table_caption_external",style:[cr("text-align","")]}];const mr=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},vr=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let gr=null;const yr=function(e,t,n){let o=gr||(gr=document.createRange());return o.setEnd(e,null==n?e.nodeValue.length:n),o.setStart(e,t||0),o},br=function(e,t,n,o){return n&&(kr(e,t,n,o,-1)||kr(e,t,n,o,1))},wr=/^(img|br|input|textarea|hr)$/i;function kr(e,t,n,o,r){for(;;){if(e==n&&t==o)return!0;if(t==(r<0?0:xr(e))){let n=e.parentNode;if(!n||1!=n.nodeType||zr(e)||wr.test(e.nodeName)||"false"==e.contentEditable)return!1;t=mr(e)+(r<0?0:1),e=n}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 zr(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Cr=function(e){return e.focusNode&&br(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Sr(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const Ir="undefined"!=typeof navigator?navigator:null,Mr="undefined"!=typeof document?document:null,Er=Ir&&Ir.userAgent||"",Or=/Edge\/(\d+)/.exec(Er),Hr=/MSIE \d/.exec(Er),Nr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Er),Pr=!!(Hr||Nr||Or),Vr=Hr?document.documentMode:Nr?+Nr[1]:Or?+Or[1]:0,Tr=!Pr&&/gecko\/(\d+)/i.test(Er);Tr&&(/Firefox\/(\d+)/.exec(Er)||[0,0])[1];const Rr=!Pr&&/Chrome\/(\d+)/.exec(Er),Dr=!!Rr,Br=Rr?+Rr[1]:0,Ar=!Pr&&!!Ir&&/Apple Computer/.test(Ir.vendor),Lr=Ar&&(/Mobile\/\w+/.test(Er)||!!Ir&&Ir.maxTouchPoints>2),_r=Lr||!!Ir&&/Mac/.test(Ir.platform),Fr=!!Ir&&/Win/.test(Ir.platform),jr=/Android \d/.test(Er),Kr=!!Mr&&"webkitFontSmoothing"in Mr.documentElement.style,Wr=Kr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Ur(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function qr(e,t){return"number"==typeof e?e:e[t]}function $r(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*o}}function Gr(e,t,n){let o=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let a=n||e.dom;a;a=vr(a)){if(1!=a.nodeType)continue;let e=a,n=e==i.body,s=n?Ur(i):$r(e),l=0,c=0;if(t.top<s.top+qr(o,"top")?c=-(s.top-t.top+qr(r,"top")):t.bottom>s.bottom-qr(o,"bottom")&&(c=t.bottom-t.top>s.bottom-s.top?t.top+qr(r,"top")-s.top:t.bottom-s.bottom+qr(r,"bottom")),t.left<s.left+qr(o,"left")?l=-(s.left-t.left+qr(r,"left")):t.right>s.right-qr(o,"right")&&(l=t.right-s.right+qr(r,"right")),l||c)if(n)i.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,o=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let r=e.scrollLeft-n,i=e.scrollTop-o;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function Zr(e){let t=[],n=e.ownerDocument;for(let o=e;o&&(t.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),e!=n);o=vr(o));return t}function Yr(e,t){for(let n=0;n<e.length;n++){let{dom:o,top:r,left:i}=e[n];o.scrollTop!=r+t&&(o.scrollTop=r+t),o.scrollLeft!=i&&(o.scrollLeft=i)}}let Jr=null;function Xr(e,t){let n,o,r,i,a=2e8,s=0,l=t.top,c=t.top;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(1==u.nodeType)e=u.getClientRects();else{if(3!=u.nodeType)continue;e=yr(u).getClientRects()}for(let p=0;p<e.length;p++){let h=e[p];if(h.top<=l&&h.bottom>=c){l=Math.max(h.bottom,l),c=Math.min(h.top,c);let e=h.left>t.left?h.left-t.left:h.right<t.left?t.left-h.right:0;if(e<a){n=u,a=e,o=e&&3==n.nodeType?{left:h.right<t.left?h.right:h.left,top:t.top}:t,1==u.nodeType&&e&&(s=d+(t.left>=(h.left+h.right)/2?1:0));continue}}else h.top>t.top&&!r&&h.left<=t.left&&h.right>=t.left&&(r=u,i={left:Math.max(h.left,Math.min(h.right,t.left)),top:h.top});!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(s=d+1)}}return!n&&r&&(n=r,o=i,a=0),n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,o=document.createRange();for(let r=0;r<n;r++){o.setEnd(e,r+1),o.setStart(e,r);let n=oi(o,1);if(n.top!=n.bottom&&Qr(t,n))return{node:e,offset:r+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}(n,o):!n||a&&1==n.nodeType?{node:e,offset:s}:Xr(n,o)}function Qr(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function ei(e,t,n){let o=e.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(t.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let n=e.childNodes[i];if(1==n.nodeType){let e=n.getClientRects();for(let o=0;o<e.length;o++){let r=e[o];if(Qr(t,r))return ei(n,t,r)}}if((i=(i+1)%o)==r)break}return e}function ti(e,t){let n,o=e.dom.ownerDocument,r=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{let o=e.caretPositionFromPoint(t,n);if(o)return{node:o.offsetNode,offset:o.offset}}catch(e){}if(e.caretRangeFromPoint){let o=e.caretRangeFromPoint(t,n);if(o)return{node:o.startContainer,offset:o.startOffset}}}(o,t.left,t.top);i&&({node:n,offset:r}=i);let a,s=(e.root.elementFromPoint?e.root:o).elementFromPoint(t.left,t.top);if(!s||!e.dom.contains(1!=s.nodeType?s.parentNode:s)){let n=e.dom.getBoundingClientRect();if(!Qr(t,n))return null;if(s=ei(e.dom,t,n),!s)return null}if(Ar)for(let e=s;n&&e;e=vr(e))e.draggable&&(n=void 0);if(s=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(s,t),n){if(Tr&&1==n.nodeType&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let e,o=n.childNodes[r];"IMG"==o.nodeName&&(e=o.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&r++}n==e.dom&&r==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=r&&1==n.nodeType&&"BR"==n.childNodes[r-1].nodeName||(a=function(e,t,n,o){let r=-1;for(let n=t,i=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0);if(!t)return null;if(1==t.dom.nodeType&&(t.node.isBlock&&t.parent&&!i||!t.contentDOM)){let e=t.dom.getBoundingClientRect();if(t.node.isBlock&&t.parent&&!i&&(i=!0,e.left>o.left||e.top>o.top?r=t.posBefore:(e.right<o.left||e.bottom<o.top)&&(r=t.posAfter)),!t.contentDOM&&r<0&&!t.node.isText)return(t.node.isBlock?o.top<(e.top+e.bottom)/2:o.left<(e.left+e.right)/2)?t.posBefore:t.posAfter}n=t.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n,-1)}(e,n,r,t))}null==a&&(a=function(e,t,n){let{node:o,offset:r}=Xr(t,n),i=-1;if(1==o.nodeType&&!o.firstChild){let e=o.getBoundingClientRect();i=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(o,r,i)}(e,s,t));let l=e.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function ni(e){return e.top<e.bottom||e.left<e.right}function oi(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(ni(e))return e}return Array.prototype.find.call(n,ni)||e.getBoundingClientRect()}const ri=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function ii(e,t,n){let{node:o,offset:r,atom:i}=e.docView.domFromPos(t,n<0?-1:1),a=Kr||Tr;if(3==o.nodeType){if(!a||!ri.test(o.nodeValue)&&(n<0?r:r!=o.nodeValue.length)){let e=r,t=r,i=n<0?1:-1;return n<0&&!r?(t++,i=-1):n>=0&&r==o.nodeValue.length?(e--,i=1):n<0?e--:t++,ai(oi(yr(o,e,t),i),i<0)}{let e=oi(yr(o,r,r),n);if(Tr&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let t=oi(yr(o,r-1,r-1),-1);if(t.top==e.top){let n=oi(yr(o,r,r+1),-1);if(n.top!=e.top)return ai(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(null==i&&r&&(n<0||r==xr(o))){let e=o.childNodes[r-1];if(1==e.nodeType)return si(e.getBoundingClientRect(),!1)}if(null==i&&r<xr(o)){let e=o.childNodes[r];if(1==e.nodeType)return si(e.getBoundingClientRect(),!0)}return si(o.getBoundingClientRect(),n>=0)}if(null==i&&r&&(n<0||r==xr(o))){let e=o.childNodes[r-1],t=3==e.nodeType?yr(e,xr(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return ai(oi(t,1),!1)}if(null==i&&r<xr(o)){let e=o.childNodes[r];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?yr(e,0,a?0:1):1==e.nodeType?e:null:null;if(t)return ai(oi(t,-1),!0)}return ai(oi(3==o.nodeType?yr(o):o,-n),n>=0)}function ai(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function si(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function li(e,t,n){let o=e.state,r=e.root.activeElement;o!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{o!=t&&e.updateState(o),r!=e.dom&&r&&r.focus()}}const ci=/[\u0590-\u08ac]/;let ui=null,di=null,pi=!1;class hi{constructor(e,t,n,o){this.parent=e,this.children=t,this.dom=n,this.contentDOM=o,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let o=this.children[t];if(o==e)return n;n+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,o;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(o=n.pmViewDesc)||o.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(o)+o.size:this.posAtStart}{let n,o;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(o=n.pmViewDesc)||o.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(o):this.posAtEnd}}let o;if(e==this.dom&&this.contentDOM)o=t>mr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){o=!1;break}if(t.previousSibling)break}if(null==o&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){o=!0;break}if(t.nextSibling)break}}return(null==o?n>0:o)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,o=e;o;o=o.parentNode){let r,i=this.getDesc(o);if(i&&(!t||i.node)){if(!n||!(r=i.nodeDOM)||(1==r.nodeType?r.contains(1==e.nodeType?e:e.parentNode):r==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let o=e;o;o=o.parentNode){let r=this.getDesc(o);if(r)return r.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let o=this.children[t],r=n+o.size;if(n==e&&r!=n){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<r)return o.descAt(e-n-o.border);n=r}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,o=0;for(let t=0;n<this.children.length;n++){let r=this.children[n],i=t+r.size;if(i>e||r instanceof wi){o=e-t;break}t=i}if(o)return this.children[n].domFromPos(o-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof fi&&e.side>=0;n--);if(t<=0){let e,o=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,o=!1);return e&&t&&o&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?mr(e.dom)+1:0}}{let e,o=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,o=!1);return e&&o&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?mr(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,r=-1;for(let i=n,a=0;;a++){let n=this.children[a],s=i+n.size;if(-1==o&&e<=s){let r=i+n.border;if(e>=r&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,r);e=i;for(let t=a;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){o=mr(n.dom)+1;break}e-=n.size}-1==o&&(o=0)}if(o>-1&&(s>t||a==this.children.length-1)){t=s;for(let e=a+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){r=mr(n.dom);break}t+=n.size}-1==r&&(r=this.contentDOM.childNodes.length);break}i=s}return{node:this.contentDOM,from:e,to:t,fromOffset:o,toOffset:r}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,o=!1){let r=Math.min(e,t),i=Math.max(e,t);for(let a=0,s=0;a<this.children.length;a++){let l=this.children[a],c=s+l.size;if(r>s&&i<c)return l.setSelection(e-s-l.border,t-s-l.border,n,o);s=c}let a=this.domFromPos(e,e?-1:1),s=t==e?a:this.domFromPos(t,t?-1:1),l=n.getSelection(),c=!1;if((Tr||Ar)&&e==t){let{node:e,offset:t}=a;if(3==e.nodeType){if(c=!(!t||"\n"!=e.nodeValue[t-1]),c&&t==e.nodeValue.length)for(let t,n=e;n;n=n.parentNode){if(t=n.nextSibling){"BR"==t.nodeName&&(a=s={node:t.parentNode,offset:mr(t)+1});break}let e=n.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];c=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(Tr&&l.focusNode&&l.focusNode!=s.node&&1==l.focusNode.nodeType){let e=l.focusNode.childNodes[l.focusOffset];e&&"false"==e.contentEditable&&(o=!0)}if(!(o||c&&Ar)&&br(a.node,a.offset,l.anchorNode,l.anchorOffset)&&br(s.node,s.offset,l.focusNode,l.focusOffset))return;let u=!1;if((l.extend||e==t)&&!c){l.collapse(a.node,a.offset);try{e!=t&&l.extend(s.node,s.offset),u=!0}catch(e){}}if(!u){if(e>t){let e=a;a=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(a.node,a.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,o=0;o<this.children.length;o++){let r=this.children[o],i=n+r.size;if(n==i?e<=i&&t>=n:e<i&&t>n){let o=n+r.border,a=i-r.border;if(e>=o&&t<=a)return this.dirty=e==n||t==i?2:1,void(e!=o||t!=a||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-o,t-o):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class fi extends hi{constructor(e,t,n,o){let r,i=t.type.toDOM;if("function"==typeof i&&(i=i(n,(()=>r?r.parent?r.parent.posBeforeChild(r):void 0:o))),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,r=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class mi extends hi{constructor(e,t,n,o){super(e,[],t,null),this.textDOM=n,this.text=o}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class vi extends hi{constructor(e,t,n,o){super(e,[],n,o),this.mark=t}static create(e,t,n,o){let r=o.nodeViews[t.type.name],i=r&&r(t,o,n);return i&&i.dom||(i=se.renderSpec(document,t.type.spec.toDOM(t,n))),new vi(e,t,i.dom,i.contentDOM||i.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let o=vi.create(this.parent,this.mark,!0,n),r=this.children,i=this.size;t<i&&(r=Vi(r,t,i,n)),e>0&&(r=Vi(r,0,e,n));for(let e=0;e<r.length;e++)r[e].parent=o;return o.children=r,o}}class gi extends hi{constructor(e,t,n,o,r,i,a,s,l){super(e,[],r,i),this.node=t,this.outerDeco=n,this.innerDeco=o,this.nodeDOM=a}static create(e,t,n,o,r,i){let a,s=r.nodeViews[t.type.name],l=s&&s(t,r,(()=>a?a.parent?a.parent.posBeforeChild(a):void 0:i),n,o),c=l&&l.dom,u=l&&l.contentDOM;if(t.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(t.text);else c||({dom:c,contentDOM:u}=se.renderSpec(document,t.type.spec.toDOM(t)));u||t.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable="false"),t.type.spec.draggable&&(c.draggable=!0));let d=c;return c=Ei(c,n,t),l?a=new ki(e,t,n,o,c,u||null,d,l,r,i+1):t.isText?new bi(e,t,n,o,c,d,r):new gi(e,t,n,o,c,u||null,d,r,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>s.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&Oi(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,o=t,r=e.composing?this.localCompositionInfo(e,t):null,i=r&&r.pos>-1?r:null,a=r&&r.pos<0,s=new Ni(this,i&&i.node,e);!function(e,t,n,o){let r=t.locals(e),i=0;if(0==r.length){for(let n=0;n<e.childCount;n++){let a=e.child(n);o(a,r,t.forChild(i,a),n),i+=a.nodeSize}return}let a=0,s=[],l=null;for(let c=0;;){let u,d,p,h;for(;a<r.length&&r[a].to==i;){let e=r[a++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(Pi);for(let e=0;e<d.length;e++)n(d[e],c,!!l)}else n(u,c,!!l);if(l)h=-1,p=l,l=null;else{if(!(c<e.childCount))break;h=c,p=e.child(c++)}for(let e=0;e<s.length;e++)s[e].to<=i&&s.splice(e--,1);for(;a<r.length&&r[a].from<=i&&r[a].to>i;)s.push(r[a++]);let f=i+p.nodeSize;if(p.isText){let e=f;a<r.length&&r[a].from<e&&(e=r[a].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<f&&(l=p.cut(e-i),p=p.cut(0,e-i),f=e,h=-1)}o(p,p.isInline&&!p.isLeaf?s.filter((e=>!e.inline)):s.slice(),t.forChild(i,p),h),i=f}}(this.node,this.innerDeco,((t,r,i)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!i&&s.syncToMarks(r==this.node.childCount?d.none:this.node.child(r).marks,n,e),s.placeWidget(t,e,o)}),((t,i,l,c)=>{let u;s.syncToMarks(t.marks,n,e),s.findNodeMatch(t,i,l,c)||a&&e.state.selection.from>o&&e.state.selection.to<o+t.nodeSize&&(u=s.findIndexWithChild(r.node))>-1&&s.updateNodeAt(t,i,l,u,e)||s.updateNextNode(t,i,l,e,c,o)||s.addNode(t,i,l,e,o),o+=t.nodeSize})),s.syncToMarks([],n,e),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),xi(this.contentDOM,this.children,e),Lr&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:o}=e.state.selection;if(!(e.state.selection instanceof et)||n<t||o>t+this.node.content.size)return null;let r=e.domSelectionRange(),i=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=xr(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(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,r=function(e,t,n,o){for(let r=0,i=0;r<e.childCount&&i<=o;){let a=e.child(r++),s=i;if(i+=a.nodeSize,!a.isText)continue;let l=a.text;for(;r<e.childCount;){let t=e.child(r++);if(i+=t.nodeSize,!t.isText)break;l+=t.text}if(i>=n){let e=s<o?l.lastIndexOf(t,o-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==o&&l.length>=o+t.length-s&&l.slice(o-s,o-s+t.length)==t)return o}}return-1}(this.node.content,e,n-t,o-t);return r<0?null:{node:i,pos:r,text:e}}return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:o}){if(this.getDesc(t))return;let r=t;for(;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=void 0)}let i=new mi(this,r,t,o);e.input.compositionNodes.push(i),this.children=Vi(this.children,n,n+o.length,e,i)}update(e,t,n,o){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,o),0))}updateInner(e,t,n,o){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(Oi(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Ii(this.dom,this.nodeDOM,Si(this.outerDeco,this.node,t),Si(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function yi(e,t,n,o,r){Ei(o,t,e);let i=new gi(void 0,e,t,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class bi extends gi{constructor(e,t,n,o,r,i,a){super(e,t,n,o,r,null,i,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,o){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,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=0,0))}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let o=this.node.cut(e,t),r=document.createTextNode(o.text);return new bi(this.parent,o,this.outerDeco,this.innerDeco,r,r,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}}class wi extends hi{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class ki extends gi{constructor(e,t,n,o,r,i,a,s,l,c){super(e,t,n,o,r,i,a,l,c),this.spec=s}update(e,t,n,o){if(3==this.dirty)return!1;if(this.spec.update){let r=this.spec.update(e,t,n);return r&&this.updateInner(e,t,n,o),r}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,o){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function xi(e,t,n){let o=e.firstChild,r=!1;for(let i=0;i<t.length;i++){let a=t[i],s=a.dom;if(s.parentNode==e){for(;s!=o;)o=Hi(o),r=!0;o=o.nextSibling}else r=!0,e.insertBefore(s,o);if(a instanceof vi){let t=o?o.previousSibling:e.lastChild;xi(a.contentDOM,a.children,n),o=t?t.nextSibling:e.firstChild}}for(;o;)o=Hi(o),r=!0;r&&n.trackWrites==e&&(n.trackWrites=null)}const zi=function(e){e&&(this.nodeName=e)};zi.prototype=Object.create(null);const Ci=[new zi];function Si(e,t,n){if(0==e.length)return Ci;let o=n?Ci[0]:new zi,r=[o];for(let i=0;i<e.length;i++){let a=e[i].type.attrs;if(a){a.nodeName&&r.push(o=new zi(a.nodeName));for(let e in a){let i=a[e];null!=i&&(n&&1==r.length&&r.push(o=new zi(t.isInline?"span":"div")),"class"==e?o.class=(o.class?o.class+" ":"")+i:"style"==e?o.style=(o.style?o.style+";":"")+i:"nodeName"!=e&&(o[e]=i))}}}return r}function Ii(e,t,n,o){if(n==Ci&&o==Ci)return t;let r=t;for(let t=0;t<o.length;t++){let i=o[t],a=n[t];if(t){let t;a&&a.nodeName==i.nodeName&&r!=e&&(t=r.parentNode)&&t.nodeName.toLowerCase()==i.nodeName||(t=document.createElement(i.nodeName),t.pmIsDeco=!0,t.appendChild(r),a=Ci[0]),r=t}Mi(r,a||Ci[0],i)}return r}function Mi(e,t,n){for(let o in t)"class"==o||"style"==o||"nodeName"==o||o in n||e.removeAttribute(o);for(let o in n)"class"!=o&&"style"!=o&&"nodeName"!=o&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){let o=t.class?t.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.remove(o[t]);for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.add(r[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=o.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function Ei(e,t,n){return Ii(e,e,Ci,Si(t,n,1!=e.nodeType))}function Oi(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function Hi(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class Ni{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,o=n.children.length,r=e.childCount,i=new Map,a=[];e:for(;r>0;){let s;for(;;)if(o){let e=n.children[o-1];if(!(e instanceof vi)){s=e,o--;break}n=e,o=e.children.length}else{if(n==t)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(r-1))break;--r,i.set(s,r),a.push(s)}}return{index:r,matched:i,matches:a.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let o=0,r=this.stack.length>>1,i=Math.min(r,e.length);for(;o<i&&(o==r-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&!1!==e[o].type.spec.spanning;)o++;for(;o<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);let o=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[r])&&!this.isLocked(n.dom)){o=t;break}}if(o>-1)o>this.index&&(this.changed=!0,this.destroyBetween(this.index,o)),this.top=this.top.children[this.index];else{let o=vi.create(this.top,e[r],t,n);this.top.children.splice(this.index,0,o),this.top=o,this.changed=!0}this.index=0,r++}}findNodeMatch(e,t,n,o){let r,i=-1;if(o>=this.preMatch.index&&(r=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&r.matchesNode(e,t,n))i=this.top.children.indexOf(r,this.index);else for(let o=this.index,r=Math.min(this.top.children.length,o+5);o<r;o++){let r=this.top.children[o];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){i=o;break}}return!(i<0||(this.destroyBetween(this.index,i),this.index++,0))}updateNodeAt(e,t,n,o,r){let i=this.top.children[o];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,r)&&(this.destroyBetween(this.index,o),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,o,r,i){for(let a=this.index;a<this.top.children.length;a++){let s=this.top.children[a];if(s instanceof gi){let l=this.preMatch.matched.get(s);if(null!=l&&l!=r)return!1;let c,u=s.dom,d=this.isLocked(u)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&Oi(t,s.outerDeco));if(!d&&s.update(e,t,n,o))return this.destroyBetween(this.index,a),s.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(s,e,t,n,o,i)))return this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(o,i+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,o,r,i){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content))return null;let a=gi.create(this.top,t,n,o,r,i);if(a.contentDOM){a.children=e.children,e.children=[];for(let e of a.children)e.parent=a}return e.destroy(),a}addNode(e,t,n,o,r){let i=gi.create(this.top,e,t,n,o,r);i.contentDOM&&i.updateChildren(o,r+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,n){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(!o||!o.matchesWidget(e)||e!=o.widget&&o.widget.type.toDOM.parentNode){let o=new fi(this.top,e,t,n);this.top.children.splice(this.index++,0,o),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof vi;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof bi)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Ar||Dr)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let o=new wi(this.top,[],n,null);t!=this.top?t.children.push(o):t.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function Pi(e,t){return e.type.side-t.type.side}function Vi(e,t,n,o,r){let i=[];for(let a=0,s=0;a<e.length;a++){let l=e[a],c=s,u=s+=l.size;c>=n||u<=t?i.push(l):(c<t&&i.push(l.slice(0,t-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(l.slice(n-c,l.size,o)))}return i}function Ti(e,t=null){let n=e.domSelectionRange(),o=e.state.doc;if(!n.focusNode)return null;let r=e.docView.nearestDesc(n.focusNode),i=r&&0==r.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s,l,c=o.resolve(a);if(Cr(n)){for(s=c;r&&!r.node;)r=r.parent;let e=r.node;if(r&&e.isAtom&&nt.isSelectable(e)&&r.parent&&(!e.isInline||!function(e,t,n){for(let o=0==t,r=t==xr(e);o||r;){if(e==n)return!0;let t=mr(e);if(!(e=e.parentNode))return!1;o=o&&0==t,r=r&&t==xr(e)}}(n.focusNode,n.focusOffset,r.dom))){let e=r.posBefore;l=new nt(a==e?c:o.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;s=o.resolve(t)}return l||(l=Ki(e,s,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)),l}function Ri(e){return e.editable?e.hasFocus():Ui(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Di(e,t=!1){let n=e.state.selection;if(Fi(e,n),Ri(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Dr){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&br(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange(),o=e.cursorWrapper.dom,r="IMG"==o.nodeName;r?n.setEnd(o.parentNode,mr(o)+1):n.setEnd(o,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&Pr&&Vr<=11&&(o.disabled=!0,o.disabled=!1)}(e);else{let o,r,{anchor:i,head:a}=n;!Bi||n instanceof et||(n.$from.parent.inlineContent||(o=Ai(e,n.from)),n.empty||n.$from.parent.inlineContent||(r=Ai(e,n.to))),e.docView.setSelection(i,a,e.root,t),Bi&&(o&&_i(o),r&&_i(r)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),o=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==o&&n.anchorOffset==r||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{Ri(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Bi=Ar||Dr&&Br<63;function Ai(e,t){let{node:n,offset:o}=e.docView.domFromPos(t,0),r=o<n.childNodes.length?n.childNodes[o]:null,i=o?n.childNodes[o-1]:null;if(Ar&&r&&"false"==r.contentEditable)return Li(r);if(!(r&&"false"!=r.contentEditable||i&&"false"!=i.contentEditable)){if(r)return Li(r);if(i)return Li(i)}}function Li(e){return e.contentEditable="true",Ar&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function _i(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Fi(e,t){if(t instanceof nt){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(ji(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else ji(e)}function ji(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Ki(e,t,n,o){return e.someProp("createSelectionBetween",(o=>o(e,t,n)))||et.between(t,n,o)}function Wi(e){return!(e.editable&&!e.hasFocus())&&Ui(e)}function Ui(e){let t=e.domSelectionRange();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 qi(e,t){let{$anchor:n,$head:o}=e.selection,r=t>0?n.max(o):n.min(o),i=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return i&&Ye.findFrom(i,t)}function $i(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Gi(e,t,n){let o=e.state.selection;if(!(o instanceof et)){if(o instanceof nt&&o.node.isInline)return $i(e,new et(t>0?o.$to:o.$from));{let n=qi(e.state,t);return!!n&&$i(e,n)}}if(!o.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=qi(e.state,t);return!!(n&&n instanceof nt)&&$i(e,n)}if(!(_r&&n.indexOf("m")>-1)){let n,r=o.$head,i=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText)return!1;let a=t<0?r.pos-i.nodeSize:r.pos;return!!(i.isAtom||(n=e.docView.descAt(a))&&!n.contentDOM)&&(nt.isSelectable(i)?$i(e,new nt(t<0?e.state.doc.resolve(r.pos-i.nodeSize):r)):!!Kr&&$i(e,new et(e.state.doc.resolve(t<0?a:a+i.nodeSize))))}}function Zi(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Yi(e,t){if("false"==e.contentEditable)return!0;let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function Ji(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let r,i,a=!1;for(Tr&&1==n.nodeType&&o<Zi(n)&&Yi(n.childNodes[o],-1)&&(a=!0);;)if(o>0){if(1!=n.nodeType)break;{let e=n.childNodes[o-1];if(Yi(e,-1))r=n,i=--o;else{if(3!=e.nodeType)break;n=e,o=n.nodeValue.length}}}else{if(Xi(n))break;{let t=n.previousSibling;for(;t&&Yi(t,-1);)r=n.parentNode,i=mr(t),t=t.previousSibling;if(t)n=t,o=Zi(n);else{if(n=n.parentNode,n==e.dom)break;o=0}}}a?Qi(e,n,o):r&&Qi(e,r,i)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,o=t.focusOffset;if(!n)return;let r,i,a=Zi(n);for(;;)if(o<a){if(1!=n.nodeType)break;if(!Yi(n.childNodes[o],1))break;r=n,i=++o}else{if(Xi(n))break;{let t=n.nextSibling;for(;t&&Yi(t,1);)r=t.parentNode,i=mr(t)+1,t=t.nextSibling;if(t)n=t,o=0,a=Zi(n);else{if(n=n.parentNode,n==e.dom)break;o=a=0}}}r&&Qi(e,r,i)}(e)}function Xi(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Qi(e,t,n){if(3!=t.nodeType){let e,o;(o=function(e,t){for(;e&&t==e.childNodes.length&&!zr(e);)t=mr(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=o,n=0):(e=function(e,t){for(;e&&!t&&!zr(e);)t=mr(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let o=e.domSelection();if(Cr(o)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),o.removeAllRanges(),o.addRange(e)}else o.extend&&o.extend(t,n);e.domObserver.setCurSelection();let{state:r}=e;setTimeout((()=>{e.state==r&&Di(e)}),50)}function ea(e,t){let n=e.state.doc.resolve(t);if(!Dr&&!Fr&&n.parent.inlineContent){let o=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),r=(n.top+n.bottom)/2;if(r>o.top&&r<o.bottom&&Math.abs(n.left-o.left)>1)return n.left<o.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),r=(n.top+n.bottom)/2;if(r>o.top&&r<o.bottom&&Math.abs(n.left-o.left)>1)return n.left>o.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function ta(e,t,n){let o=e.state.selection;if(o instanceof et&&!o.empty||n.indexOf("s")>-1)return!1;if(_r&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=qi(e.state,t);if(n&&n instanceof nt)return $i(e,n)}if(!r.parent.inlineContent){let n=t<0?r:i,a=o instanceof rt?Ye.near(n,t):Ye.findFrom(n,t);return!!a&&$i(e,a)}return!1}function na(e,t){if(!(e.state.selection instanceof et))return!0;let{$head:n,$anchor:o,empty:r}=e.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let o=e.state.tr;return t<0?o.delete(n.pos-i.nodeSize,n.pos):o.delete(n.pos,n.pos+i.nodeSize),e.dispatch(o),!0}return!1}function oa(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function ra(e,t){e.someProp("transformCopied",(n=>{t=n(t,e)}));let n=[],{content:o,openStart:r,openEnd:i}=t;for(;r>1&&i>1&&1==o.childCount&&1==o.firstChild.childCount;){r--,i--;let e=o.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),o=e.content}let a=e.someProp("clipboardSerializer")||se.fromSchema(e.state.schema),s=fa(),l=s.createElement("div");l.appendChild(a.serializeFragment(o,{document:s}));let c,u=l.firstChild,d=0;for(;u&&1==u.nodeType&&(c=pa[u.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=s.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),d++}u=l.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",`${r} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`),{dom:l,text:e.someProp("clipboardTextSerializer",(n=>n(t,e)))||t.content.textBetween(0,t.content.size,"\n\n")}}function ia(e,t,n,o,r){let i,a,l=r.parent.type.spec.code;if(!n&&!t)return null;let c=t&&(o||l||!n);if(c){if(e.someProp("transformPastedText",(n=>{t=n(t,l||o,e)})),l)return t?new h(s.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):h.empty;let n=e.someProp("clipboardTextParser",(n=>n(t,r,o,e)));if(n)a=n;else{let n=r.marks(),{schema:o}=e.state,a=se.fromSchema(o);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(o.text(e,n)))}))}}else e.someProp("transformPastedHTML",(t=>{n=t(n,e)})),i=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,o=fa().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e);if((n=r&&pa[r[1].toLowerCase()])&&(e=n.map((e=>"<"+e+">")).join("")+e+n.map((e=>"</"+e+">")).reverse().join("")),o.innerHTML=e,n)for(let e=0;e<n.length;e++)o=o.querySelector(n[e])||o;return o}(n),Kr&&function(e){let t=e.querySelectorAll(Dr?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let o=t[n];1==o.childNodes.length&&" "==o.textContent&&o.parentNode&&o.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),o)}}(i);let u=i&&i.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let e=+d[3];e>0;e--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||J.fromSchema(e.state.schema);a=t.parseSlice(i,{preserveWhitespace:!(!c&&!d),context:r,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||aa.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(d)a=function(e,t){if(!e.size)return e;let n,o=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}let{content:r,openStart:i,openEnd:a}=e;for(let e=n.length-2;e>=0;e-=2){let t=o.nodes[n[e]];if(!t||t.hasRequiredAttrs())break;r=s.from(t.create(n[e+1],r)),i++,a++}return new h(r,i,a)}(da(a,+d[1],+d[2]),d[4]);else if(a=h.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let o,r=t.node(n).contentMatchAt(t.index(n)),i=[];if(e.forEach((e=>{if(!i)return;let t,n=r.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&o.length&&la(n,o,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=ca(i[i.length-1],o.length));let t=sa(e,n);i.push(t),r=r.matchType(t.type),o=n}})),i)return s.from(i)}return e}(a.content,r),!0),a.openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e<a.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=a.content.lastChild;t<a.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);a=da(a,e,t)}return e.someProp("transformPasted",(t=>{a=t(a,e)})),a}const aa=/^(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 sa(e,t,n=0){for(let o=t.length-1;o>=n;o--)e=t[o].create(null,s.from(e));return e}function la(e,t,n,o,r){if(r<e.length&&r<t.length&&e[r]==t[r]){let i=la(e,t,n,o.lastChild,r+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(r==e.length-1?n.type:e[r+1]))return o.copy(o.content.append(s.from(sa(n,e,r+1))))}}function ca(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,ca(e.lastChild,t-1)),o=e.contentMatchAt(e.childCount).fillBefore(s.empty,!0);return e.copy(n.append(o))}function ua(e,t,n,o,r,i){let a=t<0?e.firstChild:e.lastChild,l=a.content;return e.childCount>1&&(i=0),r<o-1&&(l=ua(l,t,n,o,r+1,i)),r>=n&&(l=t<0?a.contentMatchAt(0).fillBefore(l,i<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(s.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(l))}function da(e,t,n){return t<e.openStart&&(e=new h(ua(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new h(ua(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const pa={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let ha=null;function fa(){return ha||(ha=document.implementation.createHTMLDocument("title"))}const ma={},va={},ga={touchstart:!0,touchmove:!0};class ya{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ba(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function wa(e){e.someProp("handleDOMEvents",(t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>ka(e,t))}))}function ka(e,t){return e.someProp("handleDOMEvents",(n=>{let o=n[t.type];return!!o&&(o(e,t)||t.defaultPrevented)}))}function xa(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function za(e){return{left:e.clientX,top:e.clientY}}function Ca(e,t,n,o,r){if(-1==o)return!1;let i=e.state.doc.resolve(o);for(let o=i.depth+1;o>0;o--)if(e.someProp(t,(t=>o>i.depth?t(e,n,i.nodeAfter,i.before(o),r,!0):t(e,n,i.node(o),i.before(o),r,!1))))return!0;return!1}function Sa(e,t,n){e.focused||e.focus();let o=e.state.tr.setSelection(t);"pointer"==n&&o.setMeta("pointer",!0),e.dispatch(o)}function Ia(e,t,n,o){return Ca(e,"handleDoubleClickOn",t,n,o)||e.someProp("handleDoubleClick",(n=>n(e,t,o)))}function Ma(e,t,n,o){return Ca(e,"handleTripleClickOn",t,n,o)||e.someProp("handleTripleClick",(n=>n(e,t,o)))||function(e,t,n){if(0!=n.button)return!1;let o=e.state.doc;if(-1==t)return!!o.inlineContent&&(Sa(e,et.create(o,0,o.content.size),"pointer"),!0);let r=o.resolve(t);for(let t=r.depth+1;t>0;t--){let n=t>r.depth?r.nodeAfter:r.node(t),i=r.before(t);if(n.inlineContent)Sa(e,et.create(o,i+1,i+1+n.content.size),"pointer");else{if(!nt.isSelectable(n))continue;Sa(e,nt.create(o,i),"pointer")}return!0}}(e,n,o)}function Ea(e){return Ra(e)}va.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!Na(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!jr||!Dr||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!Lr||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",(t=>t(e,n)))||function(e,t){let n=t.keyCode,o=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||_r&&72==n&&"c"==o)return na(e,-1)||Ji(e,-1);if(46==n&&!t.shiftKey||_r&&68==n&&"c"==o)return na(e,1)||Ji(e,1);if(13==n||27==n)return!0;if(37==n||_r&&66==n&&"c"==o){let t=37==n?"ltr"==ea(e,e.state.selection.from)?-1:1:-1;return Gi(e,t,o)||Ji(e,t)}if(39==n||_r&&70==n&&"c"==o){let t=39==n?"ltr"==ea(e,e.state.selection.from)?1:-1:1;return Gi(e,t,o)||Ji(e,t)}return 38==n||_r&&80==n&&"c"==o?ta(e,-1,o)||Ji(e,-1):40==n||_r&&78==n&&"c"==o?function(e){if(!Ar||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;oa(e,n,"true"),setTimeout((()=>oa(e,n,"false")),20)}return!1}(e)||ta(e,1,o)||Ji(e,1):o==(_r?"m":"c")&&(66==n||73==n||89==n||90==n)}(e,n)?n.preventDefault():ba(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",(t=>t(e,Sr(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},va.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},va.keypress=(e,t)=>{let n=t;if(Na(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||_r&&n.metaKey)return;if(e.someProp("handleKeyPress",(t=>t(e,n))))return void n.preventDefault();let o=e.state.selection;if(!(o instanceof et&&o.$from.sameParent(o.$to))){let t=String.fromCharCode(n.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",(n=>n(e,o.$from.pos,o.$to.pos,t)))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const Oa=_r?"metaKey":"ctrlKey";ma.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let o=Ea(e),r=Date.now(),i="singleClick";r-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,o=t.y-e.clientY;return n*n+o*o<100}(n,e.input.lastClick)&&!n[Oa]&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(za(n));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Ha(e,a,n,!!o)):("doubleClick"==i?Ia:Ma)(e,a.pos,a.inside,n)?n.preventDefault():ba(e,"pointer"))};class Ha{constructor(e,t,n,o){let r,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[Oa],this.allowDefault=n.shiftKey,t.inside>-1)r=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);r=n.parent,i=n.depth?n.before():0}const a=o?null:n.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s?s.dom:null;let{selection:l}=e.state;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||l instanceof nt&&l.from<=i&&l.to>i)&&(this.mightDrag={node:r,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!Tr||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((()=>{this.view.input.mouseDown==this&&this.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)),ba(e,"pointer")}done(){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((()=>Di(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(za(e))),this.updateAllowDefault(e),this.allowDefault||!t?ba(this.view,"pointer"):function(e,t,n,o,r){return Ca(e,"handleClickOn",t,n,o)||e.someProp("handleClick",(n=>n(e,t,o)))||(r?function(e,t){if(-1==t)return!1;let n,o,r=e.state.selection;r instanceof nt&&(n=r.node);let i=e.state.doc.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e);if(nt.isSelectable(t)){o=n&&r.$from.depth>0&&e>=r.$from.depth&&i.before(r.$from.depth+1)==r.$from.pos?i.before(r.$from.depth):i.before(e);break}}return null!=o&&(Sa(e,nt.create(e.state.doc,o),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),o=n.nodeAfter;return!!(o&&o.isAtom&&nt.isSelectable(o))&&(Sa(e,new nt(n),"pointer"),!0)}(e,n))}(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||Ar&&this.mightDrag&&!this.mightDrag.node.isAtom||Dr&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Sa(this.view,Ye.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):ba(this.view,"pointer")}move(e){this.updateAllowDefault(e),ba(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function Na(e,t){return!!e.composing||!!(Ar&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}ma.touchstart=e=>{e.input.lastTouch=Date.now(),Ea(e),ba(e,"pointer")},ma.touchmove=e=>{e.input.lastTouch=Date.now(),ba(e,"pointer")},ma.contextmenu=e=>Ea(e);const Pa=jr?5e3:-1;function Va(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((()=>Ra(e)),t))}function Ta(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Ra(e,t=!1){if(!(jr&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Ta(e),t||e.docView&&e.docView.dirty){let t=Ti(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}va.compositionstart=va.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||n.marks(),Ra(e,!0),e.markCursor=null;else if(Ra(e),Tr&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,o=t.focusOffset;n&&1==n.nodeType&&0!=o;){let t=o<0?n.lastChild:n.childNodes[o-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}n=t,o=-1}}e.input.composing=!0}Va(e,Pa)},va.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,Va(e,20))};const Da=Pr&&Vr<15||Lr&&Wr<604;function Ba(e,t,n,o,r){let i=ia(e,t,n,o,e.state.selection.$from);if(e.someProp("handlePaste",(t=>t(e,r,i||h.empty))))return!0;if(!i)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=a?e.state.tr.replaceSelectionWith(a,o):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}ma.copy=va.cut=(e,t)=>{let n=t,o=e.state.selection,r="cut"==n.type;if(o.empty)return;let i=Da?null:n.clipboardData,a=o.content(),{dom:s,text:l}=ra(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}(e,s),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},va.paste=(e,t)=>{let n=t;if(e.composing&&!jr)return;let o=Da?null:n.clipboardData,r=e.input.shiftKey&&45!=e.input.lastKeyCode;o&&Ba(e,o.getData("text/plain"),o.getData("text/html"),r,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,o=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Ba(e,o.value,null,r,t):Ba(e,o.textContent,o.innerHTML,r,t)}),50)}(e,n)};class Aa{constructor(e,t){this.slice=e,this.move=t}}const La=_r?"altKey":"ctrlKey";ma.dragstart=(e,t)=>{let n=t,o=e.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=e.state.selection,i=r.empty?null:e.posAtCoords(za(n));if(i&&i.pos>=r.from&&i.pos<=(r instanceof nt?r.to-1:r.to));else if(o&&o.mightDrag)e.dispatch(e.state.tr.setSelection(nt.create(e.state.doc,o.mightDrag.pos)));else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&e.dispatch(e.state.tr.setSelection(nt.create(e.state.doc,t.posBefore)))}let a=e.state.selection.content(),{dom:s,text:l}=ra(e,a);n.dataTransfer.clearData(),n.dataTransfer.setData(Da?"Text":"text/html",s.innerHTML),n.dataTransfer.effectAllowed="copyMove",Da||n.dataTransfer.setData("text/plain",l),e.dragging=new Aa(a,!n[La])},ma.dragend=e=>{let t=e.dragging;window.setTimeout((()=>{e.dragging==t&&(e.dragging=null)}),50)},va.dragover=va.dragenter=(e,t)=>t.preventDefault(),va.drop=(e,t)=>{let n=t,o=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let r=e.posAtCoords(za(n));if(!r)return;let i=e.state.doc.resolve(r.pos),a=o&&o.slice;a?e.someProp("transformPasted",(t=>{a=t(a,e)})):a=ia(e,n.dataTransfer.getData(Da?"Text":"text/plain"),Da?null:n.dataTransfer.getData("text/html"),!1,i);let s=!(!o||n[La]);if(e.someProp("handleDrop",(t=>t(e,n,a||h.empty,s))))return void n.preventDefault();if(!a)return;n.preventDefault();let l=a?Re(e.state.doc,i.pos,a):i.pos;null==l&&(l=i.pos);let c=e.state.tr;s&&c.deleteSelection();let u=c.mapping.map(l),d=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,p=c.doc;if(d?c.replaceRangeWith(u,u,a.content.firstChild):c.replaceRange(u,u,a),c.doc.eq(p))return;let f=c.doc.resolve(u);if(d&&nt.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new nt(f));else{let t=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,n,o,r)=>t=r)),c.setSelection(Ki(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},ma.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Di(e)}),20))},ma.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},ma.beforeinput=(e,t)=>{if(Dr&&jr&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(t=>t(e,Sr(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let e in va)ma[e]=va[e];function _a(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Fa{constructor(e,t){this.toDOM=e,this.spec=t||qa,this.side=this.spec.side||0}map(e,t,n,o){let{pos:r,deleted:i}=e.mapResult(t.from+o,this.side<0?-1:1);return i?null:new Wa(r-n,r-n,this)}valid(){return!0}eq(e){return this==e||e instanceof Fa&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&_a(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class ja{constructor(e,t){this.attrs=e,this.spec=t||qa}map(e,t,n,o){let r=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-n;return r>=i?null:new Wa(r,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof ja&&_a(this.attrs,e.attrs)&&_a(this.spec,e.spec)}static is(e){return e.type instanceof ja}destroy(){}}class Ka{constructor(e,t){this.attrs=e,this.spec=t||qa}map(e,t,n,o){let r=e.mapResult(t.from+o,1);if(r.deleted)return null;let i=e.mapResult(t.to+o,-1);return i.deleted||i.pos<=r.pos?null:new Wa(r.pos-n,i.pos-n,this)}valid(e,t){let n,{index:o,offset:r}=e.content.findIndex(t.from);return r==t.from&&!(n=e.child(o)).isText&&r+n.nodeSize==t.to}eq(e){return this==e||e instanceof Ka&&_a(this.attrs,e.attrs)&&_a(this.spec,e.spec)}destroy(){}}class Wa{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new Wa(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new Wa(e,e,new Fa(t,n))}static inline(e,t,n,o){return new Wa(e,t,new ja(n,o))}static node(e,t,n,o){return new Wa(e,t,new Ka(n,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof ja}get widget(){return this.type instanceof Fa}}const Ua=[],qa={};class $a{constructor(e,t){this.local=e.length?e:Ua,this.children=t.length?t:Ua}static create(e,t){return t.length?Qa(t,e,0,qa):Ga}find(e,t,n){let o=[];return this.findInner(null==e?0:e,null==t?1e9:t,o,0,n),o}findInner(e,t,n,o,r){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=t&&a.to>=e&&(!r||r(a.spec))&&n.push(a.copy(a.from+o,a.to+o))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,n,o+a,r)}}map(e,t,n){return this==Ga||0==e.maps.length?this:this.mapInner(e,t,0,0,n||qa)}mapInner(e,t,n,o,r){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,n,o);s&&s.type.valid(t,s)?(i||(i=[])).push(s):r.onRemove&&r.onRemove(this.local[a].spec)}return this.children.length?function(e,t,n,o,r,i,a){let s=e.slice();for(let e=0,t=i;e<n.maps.length;e++){let o=0;n.maps[e].forEach(((e,n,i,a)=>{let l=a-i-(n-e);for(let a=0;a<s.length;a+=3){let c=s[a+1];if(c<0||e>c+t-o)continue;let u=s[a]+t-o;n>=u?s[a+1]=e<=u?-2:-1:i>=r&&l&&(s[a]+=l,s[a+1]+=l)}o+=l})),t=n.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let c=n.map(e[t]+i),u=c-r;if(u<0||u>=o.content.size){l=!0;continue}let d=n.map(e[t+1]+i,-1)-r,{index:p,offset:h}=o.content.findIndex(u),f=o.maybeChild(p);if(f&&h==u&&h+f.nodeSize==d){let o=s[t+2].mapInner(n,f,c+1,e[t]+i+1,a);o!=Ga?(s[t]=u,s[t+1]=d,s[t+2]=o):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,o,r,i,a){function s(e,t){for(let i=0;i<e.local.length;i++){let s=e.local[i].map(o,r,t);s?n.push(s):a.onRemove&&a.onRemove(e.local[i].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)-1==e[n+1]&&s(e[n+2],t[n]+i+1);return n}(s,e,t,n,r,i,a),c=Qa(l,o,0,a);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new $a(t.sort(es),s)}(this.children,i||[],e,t,n,o,r):i?new $a(i.sort(es),Ua):Ga}add(e,t){return t.length?this==Ga?$a.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let o,r=0;e.forEach(((e,i)=>{let a,s=i+n;if(a=Ja(t,e,s)){for(o||(o=this.children.slice());r<o.length&&o[r]<i;)r+=3;o[r]==i?o[r+2]=o[r+2].addInner(e,a,s+1):o.splice(r,0,i,i+e.nodeSize,Qa(a,e,s+1,qa)),r+=3}}));let i=Ya(r?Xa(t):t,-n);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new $a(i.length?this.local.concat(i).sort(es):this.local,o||this.children)}remove(e){return 0==e.length||this==Ga?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,o=this.local;for(let o=0;o<n.length;o+=3){let r,i=n[o]+t,a=n[o+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>i&&t.to<a&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let s=n[o+2].removeInner(r,i+1);s!=Ga?n[o+2]=s:(n.splice(o,3),o-=3)}if(o.length)for(let n,r=0;r<e.length;r++)if(n=e[r])for(let e=0;e<o.length;e++)o[e].eq(n,t)&&(o==this.local&&(o=this.local.slice()),o.splice(e--,1));return n==this.children&&o==this.local?this:o.length||n.length?new $a(o,n):Ga}forChild(e,t){if(this==Ga)return this;if(t.isLeaf)return $a.empty;let n,o;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(n=this.children[t+2]);break}let r=e+1,i=r+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>r&&t.type instanceof ja){let e=Math.max(r,t.from)-r,n=Math.min(i,t.to)-r;e<n&&(o||(o=[])).push(t.copy(e,n))}}if(o){let e=new $a(o.sort(es),Ua);return n?new Za([e,n]):e}return n||Ga}eq(e){if(this==e)return!0;if(!(e instanceof $a)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return ts(this.localsInner(e))}localsInner(e){if(this==Ga)return Ua;if(e.inlineContent||!this.local.some(ja.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof ja||t.push(this.local[e]);return t}}$a.empty=new $a([],[]),$a.removeOverlap=ts;const Ga=$a.empty;class Za{constructor(e){this.members=e}map(e,t){const n=this.members.map((n=>n.map(e,t,qa)));return Za.from(n)}forChild(e,t){if(t.isLeaf)return $a.empty;let n=[];for(let o=0;o<this.members.length;o++){let r=this.members[o].forChild(e,t);r!=Ga&&(r instanceof Za?n=n.concat(r.members):n.push(r))}return Za.from(n)}eq(e){if(!(e instanceof Za)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let o=0;o<this.members.length;o++){let r=this.members[o].localsInner(e);if(r.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<r.length;e++)t.push(r[e])}else t=r}return t?ts(n?t:t.sort(es)):Ua}static from(e){switch(e.length){case 0:return Ga;case 1:return e[0];default:return new Za(e.every((e=>e instanceof $a))?e:e.reduce(((e,t)=>e.concat(t instanceof $a?t:t.members)),[]))}}}function Ya(e,t){if(!t||!e.length)return e;let n=[];for(let o=0;o<e.length;o++){let r=e[o];n.push(new Wa(r.from+t,r.to+t,r.type))}return n}function Ja(e,t,n){if(t.isLeaf)return null;let o=n+t.nodeSize,r=null;for(let t,i=0;i<e.length;i++)(t=e[i])&&t.from>n&&t.to<o&&((r||(r=[])).push(t),e[i]=null);return r}function Xa(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Qa(e,t,n,o){let r=[],i=!1;t.forEach(((t,a)=>{let s=Ja(e,t,a+n);if(s){i=!0;let e=Qa(s,t,n+a+1,o);e!=Ga&&r.push(a,a+t.nodeSize,e)}}));let a=Ya(i?Xa(e):e,-n).sort(es);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||(o.onRemove&&o.onRemove(a[e].spec),a.splice(e--,1));return a.length||r.length?new $a(a,r):Ga}function es(e,t){return e.from-t.from||e.to-t.to}function ts(e){let t=e;for(let n=0;n<t.length-1;n++){let o=t[n];if(o.from!=o.to)for(let r=n+1;r<t.length;r++){let i=t[r];if(i.from!=o.from){i.from<o.to&&(t==e&&(t=e.slice()),t[n]=o.copy(o.from,i.from),ns(t,r,o.copy(i.from,o.to)));break}i.to!=o.to&&(t==e&&(t=e.slice()),t[r]=i.copy(i.from,o.to),ns(t,r+1,i.copy(o.to,i.to)))}}return t}function ns(e,t,n){for(;t<e.length&&es(n,e[t])>0;)t++;e.splice(t,0,n)}function rs(e){let t=[];return e.someProp("decorations",(n=>{let o=n(e.state);o&&o!=Ga&&t.push(o)})),e.cursorWrapper&&t.push($a.create(e.state.doc,[e.cursorWrapper.deco])),Za.from(t)}const is={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},as=Pr&&Vr<=11;class ss{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class ls{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ss,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver((e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);Pr&&Vr<=11&&e.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),as&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,is)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout((()=>this.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(Wi(this.view)){if(this.suppressingSelectionUpdates)return Di(this.view);if(Pr&&Vr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&br(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let t=e.focusNode;t;t=vr(t))n.add(t);for(let o=e.anchorNode;o;o=vr(o))if(n.has(o)){t=o;break}let o=t&&this.view.docView.nearestDesc(t);return o&&o.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&Wi(e)&&!this.ignoreSelectionChange(n),r=-1,i=-1,a=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(r=r<0?n.from:Math.min(n.from,r),i=i<0?n.to:Math.max(n.to,i),n.typeOver&&(a=!0))}if(Tr&&s.length>1){let e=s.filter((e=>"BR"==e.nodeName));if(2==e.length){let t=e[0],n=e[1];t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}let l=null;r<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Cr(n)&&(l=Ti(e))&&l.eq(Ye.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Di(e),this.currentSelection.set(n),e.scrollToSelection()):(r>-1||o)&&(r>-1&&(e.docView.markDirty(r,i),function(e){if(!cs.has(e)&&(cs.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace))){if(e.requiresGeckoHackNode=Tr,us)return;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."),us=!0}}(e)),this.handleDOMChange(r,i,a,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Di(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let 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(let n=0;n<e.addedNodes.length;n++)t.push(e.addedNodes[n]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let o=e.previousSibling,r=e.nextSibling;if(Pr&&Vr<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:i}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(o=n),(!i||Array.prototype.indexOf.call(e.addedNodes,i)<0)&&(r=i)}let i=o&&o.parentNode==e.target?mr(o)+1:0,a=n.localPosFromDOM(e.target,i,-1),s=r&&r.parentNode==e.target?mr(r):e.target.childNodes.length;return{from:a,to:n.localPosFromDOM(e.target,s,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}}}let cs=new WeakMap,us=!1;function ds(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(Ar&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||Ar&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const ps=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function hs(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Ki(e,t.resolve(n.anchor),t.resolve(n.head))}function fs(e,t,n){let o=e.depth,r=t?e.end():e.pos;for(;o>0&&(t||e.indexAfter(o)==e.node(o).childCount);)o--,r++,t=!1;if(n){let t=e.node(o).maybeChild(e.indexAfter(o));for(;t&&!t.isLeaf;)t=t.firstChild,r++}return r}const ms=ra,vs=ia,gs=Ra;class ys{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new ya,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(zs),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=ks(this),ws(this),this.nodeViews=xs(this),this.docView=yi(this.state.doc,bs(this),rs(this),this.dom,this),this.domObserver=new ls(this,((e,t,n,o)=>function(e,t,n,o,r){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=Ti(e,t);if(n&&!e.state.selection.eq(n)){if(Dr&&jr&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",(t=>t(e,Sr(13,"Enter")))))return;let o=e.state.tr.setSelection(n);"pointer"==t?o.setMeta("pointer",!0):"key"==t&&o.scrollIntoView(),i&&o.setMeta("composition",i),e.dispatch(o)}return}let a=e.state.doc.resolve(t),l=a.sharedDepth(n);t=a.before(l+1),n=e.state.doc.resolve(n).after(l+1);let c,u,d=e.state.selection,p=function(e,t,n){let o,{node:r,fromOffset:i,toOffset:a,from:s,to:l}=e.docView.parseRange(t,n),c=e.domSelectionRange(),u=c.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(o=[{node:u,offset:c.anchorOffset}],Cr(c)||o.push({node:c.focusNode,offset:c.focusOffset})),Dr&&8===e.input.lastKeyCode)for(let e=a;e>i;e--){let t=r.childNodes[e-1],n=t.pmViewDesc;if("BR"==t.nodeName&&!n){a=e;break}if(!n||n.size)break}let d=e.state.doc,p=e.someProp("domParser")||J.fromSchema(e.state.schema),h=d.resolve(s),f=null,m=p.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:a,preserveWhitespace:"pre"!=h.parent.type.whitespace||"full",findPositions:o,ruleFromNode:ds,context:h});if(o&&null!=o[0].pos){let e=o[0].pos,t=o[1]&&o[1].pos;null==t&&(t=e),f={anchor:e+s,head:t+s}}return{doc:m,sel:f,from:s,to:l}}(e,t,n),h=e.state.doc,f=h.slice(p.from,p.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(c=e.state.selection.to,u="end"):(c=e.state.selection.from,u="start"),e.input.lastKeyCode=null;let m=function(e,t,n,o,r){let i=e.findDiffStart(t,n);if(null==i)return null;let{a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);return"end"==r&&(o-=a+Math.max(0,i-Math.min(a,s))-i),a<i&&e.size<t.size?(i-=o<=i&&o>=a?i-o:0,s=i+(s-a),a=i):s<i&&(i-=o<=i&&o>=s?i-o:0,a=i+(a-s),s=i),{start:i,endA:a,endB:s}}(f.content,p.doc.content,p.from,c,u);if((Lr&&e.input.lastIOSEnter>Date.now()-225||jr)&&r.some((e=>1==e.nodeType&&!ps.test(e.nodeName)))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",(t=>t(e,Sr(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(!m){if(!(o&&d instanceof et&&!d.empty&&d.$head.sameParent(d.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if(p.sel){let t=hs(e,e.state.doc,p.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);i&&n.setMeta("composition",i),e.dispatch(n)}}return}m={start:d.from,endA:d.to,endB:d.to}}if(Dr&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from&&p.sel.head==p.sel.anchor){let e=m.endB-m.start;p.sel={anchor:p.sel.anchor+e,head:p.sel.anchor+e}}e.input.domChangeCount++,e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof et&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=p.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=p.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),Pr&&Vr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>p.from&&"  "==p.doc.textBetween(m.start-p.from-1,m.start-p.from+1)&&(m.start--,m.endA--,m.endB--);let v,g=p.doc.resolveNoCache(m.start-p.from),y=p.doc.resolveNoCache(m.endB-p.from),b=h.resolve(m.start),w=g.sameParent(y)&&g.parent.inlineContent&&b.end()>=m.endA;if((Lr&&e.input.lastIOSEnter>Date.now()-225&&(!w||r.some((e=>"DIV"==e.nodeName||"P"==e.nodeName)))||!w&&g.pos<p.doc.content.size&&!g.sameParent(y)&&(v=Ye.findFrom(p.doc.resolve(g.pos+1),1,!0))&&v.head==y.pos)&&e.someProp("handleKeyDown",(t=>t(e,Sr(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>m.start&&function(e,t,n,o,r){if(!o.parent.isTextblock||n-t<=r.pos-o.pos||fs(o,!0,!1)<r.pos)return!1;let i=e.resolve(t);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=e.resolve(fs(i,!0,!0));return!(!a.parent.isTextblock||a.pos>n||fs(a,!0,!1)<n)&&o.parent.content.cut(o.parentOffset).eq(a.parent.content)}(h,m.start,m.endA,g,y)&&e.someProp("handleKeyDown",(t=>t(e,Sr(8,"Backspace")))))return void(jr&&Dr&&e.domObserver.suppressSelectionUpdates());Dr&&jr&&m.endB==m.start&&(e.input.lastAndroidDelete=Date.now()),jr&&!w&&g.start()!=y.start()&&0==y.parentOffset&&g.depth==y.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==m.endA&&(m.endB-=2,y=p.doc.resolveNoCache(m.endB-p.from),setTimeout((()=>{e.someProp("handleKeyDown",(function(t){return t(e,Sr(13,"Enter"))}))}),20));let k,x,z,C=m.start,S=m.endA;if(w)if(g.pos==y.pos)Pr&&Vr<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((()=>Di(e)),20)),k=e.state.tr.delete(C,S),x=h.resolve(m.start).marksAcross(h.resolve(m.endA));else if(m.endA==m.endB&&(z=function(e,t){let n,o,r,i=e.firstChild.marks,a=t.firstChild.marks,l=i,c=a;for(let e=0;e<a.length;e++)l=a[e].removeFromSet(l);for(let e=0;e<i.length;e++)c=i[e].removeFromSet(c);if(1==l.length&&0==c.length)o=l[0],n="add",r=e=>e.mark(o.addToSet(e.marks));else{if(0!=l.length||1!=c.length)return null;o=c[0],n="remove",r=e=>e.mark(o.removeFromSet(e.marks))}let u=[];for(let e=0;e<t.childCount;e++)u.push(r(t.child(e)));if(s.from(u).eq(e))return{mark:o,type:n}}(g.parent.content.cut(g.parentOffset,y.parentOffset),b.parent.content.cut(b.parentOffset,m.endA-b.start()))))k=e.state.tr,"add"==z.type?k.addMark(C,S,z.mark):k.removeMark(C,S,z.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,y.parentOffset);if(e.someProp("handleTextInput",(n=>n(e,C,S,t))))return;k=e.state.tr.insertText(t,C,S)}if(k||(k=e.state.tr.replace(C,S,p.doc.slice(m.start-p.from,m.endB-p.from))),p.sel){let t=hs(e,k.doc,p.sel);t&&!(Dr&&jr&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastAndroidDelete<Date.now()-100)&&(t.head==C||t.head==k.mapping.map(S)-1)||Pr&&t.empty&&t.head==C)&&k.setSelection(t)}x&&k.ensureMarks(x),i&&k.setMeta("composition",i),e.dispatch(k.scrollIntoView())}(this,e,t,n,o))),this.domObserver.start(),function(e){for(let t in ma){let n=ma[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!xa(e,t)||ka(e,t)||!e.editable&&t.type in va||n(e,t)},ga[t]?{passive:!0}:void 0)}Ar&&e.dom.addEventListener("input",(()=>null)),wa(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&wa(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(zs),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,o=!1,r=!1;e.storedMarks&&this.composing&&(Ta(this),r=!0),this.state=e;let i=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(i||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=xs(this);(function(e,t){let n=0,o=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let e in t)o++;return n!=o})(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(i||t.handleDOMEvents!=this._props.handleDOMEvents)&&wa(this),this.editable=ks(this),ws(this);let a=rs(this),s=bs(this),l=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",c=o||!this.docView.matchesNode(e.doc,s,a);!c&&e.selection.eq(n.selection)||(r=!0);let u="preserve"==l&&r&&null==this.dom.style.overflowAnchor&&function(e){let t,n,o=e.dom.getBoundingClientRect(),r=Math.max(0,o.top);for(let i=(o.left+o.right)/2,a=r+1;a<Math.min(innerHeight,o.bottom);a+=5){let o=e.root.elementFromPoint(i,a);if(!o||o==e.dom||!e.dom.contains(o))continue;let s=o.getBoundingClientRect();if(s.top>=r-20){t=o,n=s.top;break}}return{refDOM:t,refTop:n,stack:Zr(e.dom)}}(this);if(r){this.domObserver.stop();let t=c&&(Pr||Dr)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(n.selection,e.selection);if(c){let n=Dr?this.trackWrites=this.domSelectionRange().focusNode:null;!o&&this.docView.update(e.doc,s,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=yi(e.doc,s,a,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return br(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?Di(this,t):(Fi(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():u&&function({refDOM:e,refTop:t,stack:n}){let o=e?e.getBoundingClientRect().top:0;Yr(n,0==o?0:o-t)}(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(e=>e(this))));else if(this.state.selection instanceof nt){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&Gr(this,t.getBoundingClientRect(),e)}else Gr(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}someProp(e,t){let n,o=this._props&&this._props[e];if(null!=o&&(n=t?t(o):o))return n;for(let o=0;o<this.directPlugins.length;o++){let r=this.directPlugins[o].props[e];if(null!=r&&(n=t?t(r):r))return n}let r=this.state.plugins;if(r)for(let o=0;o<r.length;o++){let i=r[o].props[e];if(null!=i&&(n=t?t(i):i))return n}}hasFocus(){if(Pr){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Jr)return e.focus(Jr);let t=Zr(e);e.focus(null==Jr?{get preventScroll(){return Jr={preventScroll:!0},!0}}:void 0),Jr||(Jr=!1,Yr(t,0))}(this.dom),Di(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let e=this.dom.parentNode;e;e=e.parentNode)if(9==e.nodeType||11==e.nodeType&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e;return e||document}posAtCoords(e){return ti(this,e)}coordsAtPos(e,t=1){return ii(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let o=this.docView.posFromDOM(e,t,n);if(null==o)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return function(e,t,n){return ui==t&&di==n?pi:(ui=t,di=n,pi="up"==n||"down"==n?function(e,t,n){let o=t.selection,r="up"==n?o.$from:o.$to;return li(e,t,(()=>{let{node:t}=e.docView.domFromPos(r.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let o=ii(e,r.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=yr(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let r=t[e];if(r.bottom>r.top+1&&("up"==n?o.top-r.top>2*(r.bottom-o.top):r.bottom-o.bottom>2*(o.bottom-r.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){let{$head:o}=t.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,i=!r,a=r==o.parent.content.size,s=e.domSelection();return ci.test(o.parent.textContent)&&s.modify?li(e,t,(()=>{let{focusNode:t,focusOffset:r,anchorNode:i,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=o.depth?e.docView.domAfterPos(o.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),p=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&r==d;try{s.collapse(i,a),t&&(t!=i||r!=a)&&s.extend&&s.extend(t,r)}catch(e){}return null!=l&&(s.caretBidiLevel=l),p})):"left"==n||"backward"==n?i:a}(e,t,n))}(this,t||this.state,e)}pasteHTML(e,t){return Ba(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Ba(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],rs(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){ka(e,t)||!ma[t.type]||!e.editable&&t.type in va||ma[t.type](e,t)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return Ar&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function(e){let t;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0);let o=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return br(s.node,s.offset,i,a)&&([o,r,i,a]=[i,a,o,r]),{anchorNode:o,anchorOffset:r,focusNode:i,focusOffset:a}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function bs(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))})),t.translate||(t.translate="no"),[Wa.node(0,e.state.doc.content.size,t)]}function ws(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Wa.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function ks(e){return!e.someProp("editable",(t=>!1===t(e.state)))}function xs(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function zs(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")}for(var Cs={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:"'"},Ss={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Is="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ms="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Es=0;Es<10;Es++)Cs[48+Es]=Cs[96+Es]=String(Es);for(Es=1;Es<=24;Es++)Cs[Es+111]="F"+Es;for(Es=65;Es<=90;Es++)Cs[Es]=String.fromCharCode(Es+32),Ss[Es]=String.fromCharCode(Es);for(var Os in Cs)Ss.hasOwnProperty(Os)||(Ss[Os]=Cs[Os]);const Hs="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function Ns(e){let t,n,o,r,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;e++){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))r=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);Hs?r=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),r&&(a="Meta-"+a),o&&(a="Shift-"+a),a}function Ps(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function Vs(e){return new mt({props:{handleKeyDown:Ts(e)}})}function Ts(e){let t=function(e){let t=Object.create(null);for(let n in e)t[Ns(n)]=e[n];return t}(e);return function(e,n){let o,r=function(e){var t=!(Is&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Ms&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Ss:Cs)[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),i=t[Ps(r,n)];if(i&&i(e.state,e.dispatch,e))return!0;if(1==r.length&&" "!=r){if(n.shiftKey){let o=t[Ps(r,n,!1)];if(o&&o(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(o=Cs[n.keyCode])&&o!=r){let r=t[Ps(o,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var Rs,Ds;if("undefined"!=typeof WeakMap){let e=new WeakMap;Rs=t=>e.get(t),Ds=(t,n)=>(e.set(t,n),n)}else{const e=[],t=10;let n=0;Rs=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},Ds=(o,r)=>(n==t&&(n=0),e[n++]=o,e[n++]=r)}var Bs=class{constructor(e,t,n,o){this.width=e,this.height=t,this.map=n,this.problems=o}findCell(e){for(let t=0;t<this.map.length;t++){const n=this.map[t];if(n!=e)continue;const o=t%this.width,r=t/this.width|0;let i=o+1,a=r+1;for(let e=1;i<this.width&&this.map[t+e]==n;e++)i++;for(let e=1;a<this.height&&this.map[t+this.width*e]==n;e++)a++;return{left:o,top:r,right:i,bottom:a}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let 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`)}nextCell(e,t,n){const{left:o,right:r,top:i,bottom:a}=this.findCell(e);return"horiz"==t?(n<0?0==o:r==this.width)?null:this.map[i*this.width+(n<0?o-1:r)]:(n<0?0==i:a==this.height)?null:this.map[o+this.width*(n<0?i-1:a)]}rectBetween(e,t){const{left:n,right:o,top:r,bottom:i}=this.findCell(e),{left:a,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(n,a),top:Math.min(r,l),right:Math.max(o,s),bottom:Math.max(i,c)}}cellsInRect(e){const t=[],n={};for(let o=e.top;o<e.bottom;o++)for(let r=e.left;r<e.right;r++){const i=o*this.width+r,a=this.map[i];n[a]||(n[a]=!0,r==e.left&&r&&this.map[i-1]==a||o==e.top&&o&&this.map[i-this.width]==a||t.push(a))}return t}positionAt(e,t,n){for(let o=0,r=0;;o++){const i=r+n.child(o).nodeSize;if(o==e){let n=t+e*this.width;const o=(e+1)*this.width;for(;n<o&&this.map[n]<r;)n++;return n==o?i-1:this.map[n]}r=i}}static get(e){return Rs(e)||Ds(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);const t=function(e){let t=-1,n=!1;for(let o=0;o<e.childCount;o++){const r=e.child(o);let i=0;if(n)for(let t=0;t<o;t++){const n=e.child(t);for(let e=0;e<n.childCount;e++){const r=n.child(e);t+r.attrs.rowspan>o&&(i+=r.attrs.colspan)}}for(let e=0;e<r.childCount;e++){const t=r.child(e);i+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),n=e.childCount,o=[];let r=0,i=null;const a=[];for(let e=0,r=t*n;e<r;e++)o[e]=0;for(let s=0,l=0;s<n;s++){const c=e.child(s);l++;for(let e=0;;e++){for(;r<o.length&&0!=o[r];)r++;if(e==c.childCount)break;const u=c.child(e),{colspan:d,rowspan:p,colwidth:h}=u.attrs;for(let e=0;e<p;e++){if(e+s>=n){(i||(i=[])).push({type:"overlong_rowspan",pos:l,n:p-e});break}const c=r+e*t;for(let e=0;e<d;e++){0==o[c+e]?o[c+e]=l:(i||(i=[])).push({type:"collision",row:s,pos:l,n:d-e});const n=h&&h[e];if(n){const o=(c+e)%t*2,r=a[o];null==r||r!=n&&1==a[o+1]?(a[o]=n,a[o+1]=1):r==n&&a[o+1]++}}}r+=d,l+=u.nodeSize}const u=(s+1)*t;let d=0;for(;r<u;)0==o[r++]&&d++;d&&(i||(i=[])).push({type:"missing",row:s,n:d}),l++}const s=new Bs(t,n,o,i);let l=!1;for(let e=0;!l&&e<a.length;e+=2)null!=a[e]&&a[e+1]<n&&(l=!0);return l&&function(e,t,n){e.problems||(e.problems=[]);const o={};for(let r=0;r<e.map.length;r++){const i=e.map[r];if(o[i])continue;o[i]=!0;const a=n.nodeAt(i);if(!a)throw new RangeError(`No cell with offset ${i} found`);let s=null;const l=a.attrs;for(let n=0;n<l.colspan;n++){const o=t[(r+n)%e.width*2];null==o||l.colwidth&&l.colwidth[n]==o||((s||(s=As(l)))[n]=o)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}(s,a,e),s}(e))}};function As(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function Ls(e,t){if("string"==typeof e)return{};const n=e.getAttribute("data-colwidth"),o=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((e=>Number(e))):null,r=Number(e.getAttribute("colspan")||1),i={colspan:r,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:o&&o.length==r?o:null};for(const n in t){const o=t[n].getFromDOM,r=o&&o(e);null!=r&&(i[n]=r)}return i}function _s(e,t){const n={};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(","));for(const o in t){const r=t[o].setDOMAttr;r&&r(e.attrs[o],n)}return n}function Fs(e){const t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(const e in t)n[e]={default:t[e].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:()=>["table",["tbody",0]]},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:()=>["tr",0]},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:e=>Ls(e,t)}],toDOM:e=>["td",_s(e,t),0]},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:e=>Ls(e,t)}],toDOM:e=>["th",_s(e,t),0]}}}function js(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const n in e.nodes){const o=e.nodes[n],r=o.spec.tableRole;r&&(t[r]=o)}}return t}var Ks=new yt("selectingCells");function Ws(e){for(let 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 Us(e){const t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function qs(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;const n=Ws(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){const o=t.type.spec.tableRole;if("cell"==o||"header_cell"==o)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){const o=t.type.spec.tableRole;if("cell"==o||"header_cell"==o)return e.doc.resolve(n-t.nodeSize)}}(t.$head);if(n)return n;throw new RangeError(`No cell found around position ${t.head}`)}function $s(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function Gs(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function Zs(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Ys(e){return Bs.get(e.node(-1)).findCell(e.pos-e.start(-1))}function Js(e){return Bs.get(e.node(-1)).colCount(e.pos-e.start(-1))}function Xs(e,t,n){const o=e.node(-1),r=Bs.get(o),i=e.start(-1),a=r.nextCell(e.pos-i,t,n);return null==a?null:e.node(0).resolve(i+a)}function Qs(e,t,n=1){const o={...e,colspan:e.colspan-n};return o.colwidth&&(o.colwidth=o.colwidth.slice(),o.colwidth.splice(t,n),o.colwidth.some((e=>e>0))||(o.colwidth=null)),o}function el(e,t,n=1){const o={...e,colspan:e.colspan+n};if(o.colwidth){o.colwidth=o.colwidth.slice();for(let e=0;e<n;e++)o.colwidth.splice(t,0,0)}return o}function tl(e,t,n){const o=js(t.type.schema).header_cell;for(let r=0;r<e.height;r++)if(t.nodeAt(e.map[n+r*e.width]).type!=o)return!1;return!0}var nl=class extends Ye{constructor(e,t=e){const n=e.node(-1),o=Bs.get(n),r=e.start(-1),i=o.rectBetween(e.pos-r,t.pos-r),a=e.node(0),s=o.cellsInRect(i).filter((e=>e!=t.pos-r));s.unshift(t.pos-r);const l=s.map((e=>{const t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);const o=r+e+1;return new Je(a.resolve(o),a.resolve(o+t.content.size))}));super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(e,t){const n=e.resolve(t.map(this.$anchorCell.pos)),o=e.resolve(t.map(this.$headCell.pos));if($s(n)&&$s(o)&&Zs(n,o)){const e=this.$anchorCell.node(-1)!=n.node(-1);return e&&this.isRowSelection()?nl.rowSelection(n,o):e&&this.isColSelection()?nl.colSelection(n,o):new nl(n,o)}return et.between(n,o)}content(){const e=this.$anchorCell.node(-1),t=Bs.get(e),n=this.$anchorCell.start(-1),o=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),r={},i=[];for(let n=o.top;n<o.bottom;n++){const a=[];for(let i=n*t.width+o.left,s=o.left;s<o.right;s++,i++){const n=t.map[i];if(r[n])continue;r[n]=!0;const s=t.findCell(n);let l=e.nodeAt(n);if(!l)throw RangeError(`No cell with offset ${n} found`);const c=o.left-s.left,u=s.right-o.right;if(c>0||u>0){let e=l.attrs;if(c>0&&(e=Qs(e,0,c)),u>0&&(e=Qs(e,e.colspan-u,u)),s.left<o.left){if(l=l.type.createAndFill(e),!l)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(s.top<o.top||s.bottom>o.bottom){const e={...l.attrs,rowspan:Math.min(s.bottom,o.bottom)-Math.max(s.top,o.top)};l=s.top<o.top?l.type.createAndFill(e):l.type.create(e,l.content)}a.push(l)}i.push(e.child(n).copy(s.from(a)))}const a=this.isColSelection()&&this.isRowSelection()?e:i;return new h(s.from(a),1,1)}replace(e,t=h.empty){const n=e.steps.length,o=this.ranges;for(let r=0;r<o.length;r++){const{$from:i,$to:a}=o[r],s=e.mapping.slice(n);e.replace(s.map(i.pos),s.map(a.pos),r?h.empty:t)}const r=Ye.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);r&&e.setSelection(r)}replaceWith(e,t){this.replace(e,new h(s.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),n=Bs.get(t),o=this.$anchorCell.start(-1),r=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-o,this.$headCell.pos-o));for(let n=0;n<r.length;n++)e(t.nodeAt(r[n]),o+r[n])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const n=e+this.$anchorCell.nodeAfter.attrs.rowspan,o=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,o)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){const n=e.node(-1),o=Bs.get(n),r=e.start(-1),i=o.findCell(e.pos-r),a=o.findCell(t.pos-r),s=e.node(0);return i.top<=a.top?(i.top>0&&(e=s.resolve(r+o.map[i.left])),a.bottom<o.height&&(t=s.resolve(r+o.map[o.width*(o.height-1)+a.right-1]))):(a.top>0&&(t=s.resolve(r+o.map[a.left])),i.bottom<o.height&&(e=s.resolve(r+o.map[o.width*(o.height-1)+i.right-1]))),new nl(e,t)}isRowSelection(){const e=this.$anchorCell.node(-1),t=Bs.get(e),n=this.$anchorCell.start(-1),o=t.colCount(this.$anchorCell.pos-n),r=t.colCount(this.$headCell.pos-n);if(Math.min(o,r)>0)return!1;const i=o+this.$anchorCell.nodeAfter.attrs.colspan,a=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,a)==t.width}eq(e){return e instanceof nl&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){const n=e.node(-1),o=Bs.get(n),r=e.start(-1),i=o.findCell(e.pos-r),a=o.findCell(t.pos-r),s=e.node(0);return i.left<=a.left?(i.left>0&&(e=s.resolve(r+o.map[i.top*o.width])),a.right<o.width&&(t=s.resolve(r+o.map[o.width*(a.top+1)-1]))):(a.left>0&&(t=s.resolve(r+o.map[a.top*o.width])),i.right<o.width&&(e=s.resolve(r+o.map[o.width*(i.top+1)-1]))),new nl(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new nl(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new nl(e.resolve(t),e.resolve(n))}getBookmark(){return new ol(this.$anchorCell.pos,this.$headCell.pos)}};nl.prototype.visible=!1,Ye.jsonID("cell",nl);var ol=class{constructor(e,t){this.anchor=e,this.head=t}map(e){return new ol(e.map(this.anchor),e.map(this.head))}resolve(e){const 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&&Zs(t,n)?new nl(t,n):Ye.near(n,1)}};function rl(e){if(!(e.selection instanceof nl))return null;const t=[];return e.selection.forEachCell(((e,n)=>{t.push(Wa.node(n,n+e.nodeSize,{class:"selectedCell"}))})),$a.create(e.doc,t)}var il=new yt("fix-tables");function al(e,t,n,o){const r=e.childCount,i=t.childCount;e:for(let a=0,s=0;a<i;a++){const i=t.child(a);for(let t=s,o=Math.min(r,a+3);t<o;t++)if(e.child(t)==i){s=t+1,n+=i.nodeSize;continue e}o(i,n),s<r&&e.child(s).sameMarkup(i)?al(e.child(s),i,n+1,o):i.nodesBetween(0,i.content.size,o,n+1),n+=i.nodeSize}}function sl(e,t){let n;const o=(t,o)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,o){const r=Bs.get(t);if(!r.problems)return o;o||(o=e.tr);const i=[];for(let e=0;e<r.height;e++)i.push(0);for(let e=0;e<r.problems.length;e++){const a=r.problems[e];if("collision"==a.type){const e=t.nodeAt(a.pos);if(!e)continue;const r=e.attrs;for(let e=0;e<r.rowspan;e++)i[a.row+e]+=a.n;o.setNodeMarkup(o.mapping.map(n+1+a.pos),null,Qs(r,r.colspan-a.n,a.n))}else if("missing"==a.type)i[a.row]+=a.n;else if("overlong_rowspan"==a.type){const e=t.nodeAt(a.pos);if(!e)continue;o.setNodeMarkup(o.mapping.map(n+1+a.pos),null,{...e.attrs,rowspan:e.attrs.rowspan-a.n})}else if("colwidth mismatch"==a.type){const e=t.nodeAt(a.pos);if(!e)continue;o.setNodeMarkup(o.mapping.map(n+1+a.pos),null,{...e.attrs,colwidth:a.colwidth})}}let a,s;for(let e=0;e<i.length;e++)i[e]&&(null==a&&(a=e),s=e);for(let l=0,c=n+1;l<r.height;l++){const n=t.child(l),r=c+n.nodeSize,u=i[l];if(u>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);const i=[];for(let n=0;n<u;n++){const n=js(e.schema)[t].createAndFill();n&&i.push(n)}const d=0!=l&&a!=l-1||s!=l?r-1:c+1;o.insert(o.mapping.map(d),i)}c=r}return o.setMeta(il,{fixTables:!0})}(e,t,o,n))};return t?t.doc!=e.doc&&al(t.doc,e.doc,0,o):e.doc.descendants(o),n}function ll(e,t){const n=e.createAndFill();return new Ge(n).replace(0,n.content.size,t).doc}function cl(e,t,n,o,r,i,a,s){if(0==a||a==t.height)return!1;let l=!1;for(let c=r;c<i;c++){const r=a*t.width+c,i=t.map[r];if(t.map[r-t.width]==i){l=!0;const r=n.nodeAt(i),{top:u,left:d}=t.findCell(i);e.setNodeMarkup(e.mapping.slice(s).map(i+o),null,{...r.attrs,rowspan:a-u}),e.insert(e.mapping.slice(s).map(t.positionAt(a,d,n)),r.type.createAndFill({...r.attrs,rowspan:u+r.attrs.rowspan-a})),c+=r.attrs.colspan-1}}return l}function ul(e,t,n,o,r,i,a,s){if(0==a||a==t.width)return!1;let l=!1;for(let c=r;c<i;c++){const r=c*t.width+a,i=t.map[r];if(t.map[r-1]==i){l=!0;const r=n.nodeAt(i),u=t.colCount(i),d=e.mapping.slice(s).map(i+o);e.setNodeMarkup(d,null,Qs(r.attrs,a-u,r.attrs.colspan-(a-u))),e.insert(d+r.nodeSize,r.type.createAndFill(Qs(r.attrs,0,a-u))),c+=r.attrs.rowspan-1}}return l}function dl(e,t,n,o,r){let i=n?e.doc.nodeAt(n-1):e.doc;if(!i)throw new Error("No table found");let a=Bs.get(i);const{top:l,left:c}=o,u=c+r.width,d=l+r.height,p=e.tr;let f=0;function m(){if(i=n?p.doc.nodeAt(n-1):p.doc,!i)throw new Error("No table found");a=Bs.get(i),f=p.mapping.maps.length}(function(e,t,n,o,r,i,a){const l=js(e.doc.type.schema);let c,u;if(r>t.width)for(let i=0,s=0;i<t.height;i++){const d=n.child(i);s+=d.nodeSize;const p=[];let h;h=null==d.lastChild||d.lastChild.type==l.cell?c||(c=l.cell.createAndFill()):u||(u=l.header_cell.createAndFill());for(let e=t.width;e<r;e++)p.push(h);e.insert(e.mapping.slice(a).map(s-1+o),p)}if(i>t.height){const d=[];for(let e=0,o=(t.height-1)*t.width;e<Math.max(t.width,r);e++){const r=!(e>=t.width)&&n.nodeAt(t.map[o+e]).type==l.header_cell;d.push(r?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const p=l.row.create(null,s.from(d)),h=[];for(let e=t.height;e<i;e++)h.push(p);e.insert(e.mapping.slice(a).map(o+n.nodeSize-2),h)}return!(!c&&!u)})(p,a,i,n,u,d,f)&&m(),cl(p,a,i,n,c,u,l,f)&&m(),cl(p,a,i,n,c,u,d,f)&&m(),ul(p,a,i,n,l,d,c,f)&&m(),ul(p,a,i,n,l,d,u,f)&&m();for(let e=l;e<d;e++){const t=a.positionAt(e,c,i),o=a.positionAt(e,u,i);p.replace(p.mapping.slice(f).map(t+n),p.mapping.slice(f).map(o+n),new h(r.rows[e-l],0,0))}m(),p.setSelection(new nl(p.doc.resolve(n+a.positionAt(l,c,i)),p.doc.resolve(n+a.positionAt(d-1,u-1,i)))),t(p)}var pl=Ts({ArrowLeft:fl("horiz",-1),ArrowRight:fl("horiz",1),ArrowUp:fl("vert",-1),ArrowDown:fl("vert",1),"Shift-ArrowLeft":ml("horiz",-1),"Shift-ArrowRight":ml("horiz",1),"Shift-ArrowUp":ml("vert",-1),"Shift-ArrowDown":ml("vert",1),Backspace:vl,"Mod-Backspace":vl,Delete:vl,"Mod-Delete":vl});function hl(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function fl(e,t){return(n,o,r)=>{if(!r)return!1;const i=n.selection;if(i instanceof nl)return hl(n,o,Ye.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;const a=wl(r,e,t);if(null==a)return!1;if("horiz"==e)return hl(n,o,Ye.near(n.doc.resolve(i.head+t),t));{const r=n.doc.resolve(a),i=Xs(r,e,t);let s;return s=i?Ye.near(i,1):t<0?Ye.near(n.doc.resolve(r.before(-1)),-1):Ye.near(n.doc.resolve(r.after(-1)),1),hl(n,o,s)}}}function ml(e,t){return(n,o,r)=>{if(!r)return!1;const i=n.selection;let a;if(i instanceof nl)a=i;else{const o=wl(r,e,t);if(null==o)return!1;a=new nl(n.doc.resolve(o))}const s=Xs(a.$headCell,e,t);return!!s&&hl(n,o,new nl(a.$anchorCell,s))}}function vl(e,t){const n=e.selection;if(!(n instanceof nl))return!1;if(t){const o=e.tr,r=js(e.schema).cell.createAndFill().content;n.forEachCell(((e,t)=>{e.content.eq(r)||o.replace(o.mapping.map(t+1),o.mapping.map(t+e.nodeSize-1),new h(r,0,0))})),o.docChanged&&t(o)}return!0}function gl(e,t){const n=Ws(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new nl(n))),!0)}function yl(e,t,n){if(!Us(e.state))return!1;let o=function(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:o}=e;for(;1==t.childCount&&(n>0&&o>0||"table"==t.child(0).type.spec.tableRole);)n--,o--,t=t.child(0).content;const r=t.child(0),i=r.type.spec.tableRole,a=r.type.schema,l=[];if("row"==i)for(let e=0;e<t.childCount;e++){let r=t.child(e).content;const i=e?0:Math.max(0,n-1),s=e<t.childCount-1?0:Math.max(0,o-1);(i||s)&&(r=ll(js(a).row,new h(r,i,s)).content),l.push(r)}else{if("cell"!=i&&"header_cell"!=i)return null;l.push(n||o?ll(js(a).row,new h(t,n,o)).content:t)}return function(e,t){const n=[];for(let e=0;e<t.length;e++){const o=t[e];for(let t=o.childCount-1;t>=0;t--){const{rowspan:r,colspan:i}=o.child(t).attrs;for(let t=e;t<e+r;t++)n[t]=(n[t]||0)+i}}let o=0;for(let e=0;e<n.length;e++)o=Math.max(o,n[e]);for(let r=0;r<n.length;r++)if(r>=t.length&&t.push(s.empty),n[r]<o){const i=js(e).cell.createAndFill(),a=[];for(let e=n[r];e<o;e++)a.push(i);t[r]=t[r].append(s.from(a))}return{height:t.length,width:o,rows:t}}(a,l)}(n);const r=e.state.selection;if(r instanceof nl){o||(o={width:1,height:1,rows:[s.from(ll(js(e.state.schema).cell,n))]});const t=r.$anchorCell.node(-1),i=r.$anchorCell.start(-1),a=Bs.get(t).rectBetween(r.$anchorCell.pos-i,r.$headCell.pos-i);return o=function({width:e,height:t,rows:n},o,r){if(e!=o){const t=[],r=[];for(let e=0;e<n.length;e++){const i=n[e],a=[];for(let n=t[e]||0,r=0;n<o;r++){let s=i.child(r%i.childCount);n+s.attrs.colspan>o&&(s=s.type.createChecked(Qs(s.attrs,s.attrs.colspan,n+s.attrs.colspan-o),s.content)),a.push(s),n+=s.attrs.colspan;for(let n=1;n<s.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+s.attrs.colspan}r.push(s.from(a))}n=r,e=o}if(t!=r){const e=[];for(let o=0,i=0;o<r;o++,i++){const a=[],l=n[i%t];for(let e=0;e<l.childCount;e++){let t=l.child(e);o+t.attrs.rowspan>r&&(t=t.type.create({...t.attrs,rowspan:Math.max(1,r-t.attrs.rowspan)},t.content)),a.push(t)}e.push(s.from(a))}n=e,t=r}return{width:e,height:t,rows:n}}(o,a.right-a.left,a.bottom-a.top),dl(e.state,e.dispatch,i,a,o),!0}if(o){const t=qs(e.state),n=t.start(-1);return dl(e.state,e.dispatch,n,Bs.get(t.node(-1)).findCell(t.pos-n),o),!0}return!1}function bl(e,t){var n;if(t.ctrlKey||t.metaKey)return;const o=kl(e,t.target);let r;if(t.shiftKey&&e.state.selection instanceof nl)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&o&&null!=(r=Ws(e.state.selection.$anchor))&&(null==(n=xl(e,t))?void 0:n.pos)!=r.pos)i(r,t),t.preventDefault();else if(!o)return;function i(t,n){let o=xl(e,n);const r=null==Ks.getState(e.state);if(!o||!Zs(t,o)){if(!r)return;o=t}const i=new nl(t,o);if(r||!e.state.selection.eq(i)){const n=e.state.tr.setSelection(i);r&&n.setMeta(Ks,t.pos),e.dispatch(n)}}function a(){e.root.removeEventListener("mouseup",a),e.root.removeEventListener("dragstart",a),e.root.removeEventListener("mousemove",s),null!=Ks.getState(e.state)&&e.dispatch(e.state.tr.setMeta(Ks,-1))}function s(n){const r=n,s=Ks.getState(e.state);let l;if(null!=s)l=e.state.doc.resolve(s);else if(kl(e,r.target)!=o&&(l=xl(e,t),!l))return a();l&&i(l,r)}e.root.addEventListener("mouseup",a),e.root.addEventListener("dragstart",a),e.root.addEventListener("mousemove",s)}function wl(e,t,n){if(!(e.state.selection instanceof et))return null;const{$head:o}=e.state.selection;for(let r=o.depth-1;r>=0;r--){const i=o.node(r);if((n<0?o.index(r):o.indexAfter(r))!=(n<0?0:i.childCount))return null;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){const i=o.before(r),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?i:null}}return null}function kl(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t;return null}function xl(e,t){const n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?Ws(e.state.doc.resolve(n.pos)):null}var zl=class{constructor(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")),Cl(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Cl(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}};function Cl(e,t,n,o,r,i){var a;let s=0,l=!0,c=t.firstChild;const u=e.firstChild;if(u){for(let e=0,n=0;e<u.childCount;e++){const{colspan:a,colwidth:d}=u.child(e).attrs;for(let e=0;e<a;e++,n++){const a=r==n?i:d&&d[e],u=a?a+"px":"";s+=a||o,a||(l=!1),c?(c.style.width!=u&&(c.style.width=u),c=c.nextSibling):t.appendChild(document.createElement("col")).style.width=u}}for(;c;){const e=c.nextSibling;null==(a=c.parentNode)||a.removeChild(c),c=e}l?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}var Sl=new yt("tableColumnResizing");function Il({handleWidth:e=5,cellMinWidth:t=25,View:n=zl,lastColumnResizable:o=!0}={}){const r=new mt({key:Sl,state:{init:(e,o)=>(r.spec.props.nodeViews[js(o.schema).table.name]=(e,o)=>new n(e,t,o),new Ml(-1,!1)),apply:(e,t)=>t.apply(e)},props:{attributes:e=>{const t=Sl.getState(e);return t&&t.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(t,n)=>{!function(e,t,n,o,r){const i=Sl.getState(e.state);if(i&&!i.dragging){const o=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList&&e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target);let a=-1;if(o){const{left:r,right:i}=o.getBoundingClientRect();t.clientX-r<=n?a=El(e,t,"left",n):i-t.clientX<=n&&(a=El(e,t,"right",n))}if(a!=i.activeHandle){if(!r&&-1!==a){const t=e.state.doc.resolve(a),n=t.node(-1),o=Bs.get(n),r=t.start(-1);if(o.colCount(t.pos-r)+t.nodeAfter.attrs.colspan-1==o.width-1)return}Hl(e,a)}}}(t,n,e,0,o)},mouseleave:e=>{!function(e){const t=Sl.getState(e.state);t&&t.activeHandle>-1&&!t.dragging&&Hl(e,-1)}(e)},mousedown:(e,n)=>{!function(e,t,n){const o=Sl.getState(e.state);if(!o||-1==o.activeHandle||o.dragging)return!1;const r=e.state.doc.nodeAt(o.activeHandle),i=function(e,t,{colspan:n,colwidth:o}){const r=o&&o[o.length-1];if(r)return r;const i=e.domAtPos(t);let a=i.node.childNodes[i.offset].offsetWidth,s=n;if(o)for(let e=0;e<n;e++)o[e]&&(a-=o[e],s--);return a/s}(e,o.activeHandle,r.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",s);const o=Sl.getState(e.state);(null==o?void 0:o.dragging)&&(function(e,t,n){const o=e.state.doc.resolve(t),r=o.node(-1),i=Bs.get(r),a=o.start(-1),s=i.colCount(o.pos-a)+o.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<i.height;e++){const t=e*i.width+s;if(e&&i.map[t]==i.map[t-i.width])continue;const o=i.map[t],u=r.nodeAt(o).attrs,d=1==u.colspan?0:s-i.colCount(o);if(u.colwidth&&u.colwidth[d]==n)continue;const p=u.colwidth?u.colwidth.slice():(c=u.colspan,Array(c).fill(0));p[d]=n,l.setNodeMarkup(a+o,null,{...u,colwidth:p})}var c;l.docChanged&&e.dispatch(l)}(e,o.activeHandle,Ol(o.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Sl,{setDragging:null})))}function s(t){if(!t.which)return a(t);const o=Sl.getState(e.state);if(o&&o.dragging){const r=Ol(o.dragging,t,n);!function(e,t,n,o){const r=e.state.doc.resolve(t),i=r.node(-1),a=r.start(-1),s=Bs.get(i).colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1;let l=e.domAtPos(r.start(-1)).node;for(;l&&"TABLE"!=l.nodeName;)l=l.parentNode;l&&Cl(i,l.firstChild,l,o,s,n)}(e,o.activeHandle,r,n)}}e.dispatch(e.state.tr.setMeta(Sl,{setDragging:{startX:t.clientX,startWidth:i}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",s),t.preventDefault()}(e,n,t)}},decorations:e=>{const t=Sl.getState(e);if(t&&t.activeHandle>-1)return function(e,t){const n=[],o=e.doc.resolve(t),r=o.node(-1);if(!r)return $a.empty;const i=Bs.get(r),a=o.start(-1),s=i.colCount(o.pos-a)+o.nodeAfter.attrs.colspan;for(let e=0;e<i.height;e++){const t=s+e*i.width-1;if(!(s!=i.width&&i.map[t]==i.map[t+1]||0!=e&&i.map[t]==i.map[t-i.width])){const e=i.map[t],o=a+e+r.nodeAt(e).nodeSize-1,s=document.createElement("div");s.className="column-resize-handle",n.push(Wa.widget(o,s))}}return $a.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return r}var Ml=class{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){const t=this,n=e.getMeta(Sl);if(n&&null!=n.setHandle)return new Ml(n.setHandle,!1);if(n&&void 0!==n.setDragging)return new Ml(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let n=e.mapping.map(t.activeHandle,-1);return $s(e.doc.resolve(n))||(n=-1),new Ml(n,t.dragging)}return t}};function El(e,t,n,o){const r="right"==n?-o:o,i=e.posAtCoords({left:t.clientX+r,top:t.clientY});if(!i)return-1;const{pos:a}=i,s=Ws(e.state.doc.resolve(a));if(!s)return-1;if("right"==n)return s.pos;const l=Bs.get(s.node(-1)),c=s.start(-1),u=l.map.indexOf(s.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function Ol(e,t,n){const o=t.clientX-e.startX;return Math.max(n,e.startWidth+o)}function Hl(e,t){e.dispatch(e.state.tr.setMeta(Sl,{setHandle:t}))}function Nl(e){const t=e.selection,n=qs(e),o=n.node(-1),r=n.start(-1),i=Bs.get(o);return{...t instanceof nl?i.rectBetween(t.$anchorCell.pos-r,t.$headCell.pos-r):i.findCell(n.pos-r),tableStart:r,map:i,table:o}}function Pl(e,{map:t,tableStart:n,table:o},r){let i=r>0?-1:0;tl(t,o,r+i)&&(i=0==r||r==t.width?null:0);for(let a=0;a<t.height;a++){const s=a*t.width+r;if(r>0&&r<t.width&&t.map[s-1]==t.map[s]){const i=t.map[s],l=o.nodeAt(i);e.setNodeMarkup(e.mapping.map(n+i),null,el(l.attrs,r-t.colCount(i))),a+=l.attrs.rowspan-1}else{const l=null==i?js(o.type.schema).cell:o.nodeAt(t.map[s+i]).type,c=t.positionAt(a,r,o);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function Vl(e,t){if(!Us(e))return!1;if(t){const n=Nl(e);t(Pl(e.tr,n,n.left))}return!0}function Tl(e,t){if(!Us(e))return!1;if(t){const n=Nl(e);t(Pl(e.tr,n,n.right))}return!0}function Rl(e,{map:t,table:n,tableStart:o},r){const i=e.mapping.maps.length;for(let a=0;a<t.height;){const s=a*t.width+r,l=t.map[s],c=n.nodeAt(l),u=c.attrs;if(r>0&&t.map[s-1]==l||r<t.width-1&&t.map[s+1]==l)e.setNodeMarkup(e.mapping.slice(i).map(o+l),null,Qs(u,r-t.colCount(l)));else{const t=e.mapping.slice(i).map(o+l);e.delete(t,t+c.nodeSize)}a+=u.rowspan}}function Dl(e,t){if(!Us(e))return!1;if(t){const n=Nl(e),o=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;Rl(o,n,e),e!=n.left;e--){const e=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=Bs.get(e)}t(o)}return!0}function Bl(e,t,n){var o;const r=js(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if((null==(o=t.nodeAt(e.map[i+n*e.width]))?void 0:o.type)!=r)return!1;return!0}function Al(e,{map:t,tableStart:n,table:o},r){var i;let a=n;for(let e=0;e<r;e++)a+=o.child(e).nodeSize;const s=[];let l=r>0?-1:0;Bl(t,o,r+l)&&(l=0==r||r==t.height?null:0);for(let a=0,c=t.width*r;a<t.width;a++,c++)if(r>0&&r<t.height&&t.map[c]==t.map[c-t.width]){const r=t.map[c],i=o.nodeAt(r).attrs;e.setNodeMarkup(n+r,null,{...i,rowspan:i.rowspan+1}),a+=i.colspan-1}else{const e=null==l?js(o.type.schema).cell:null==(i=o.nodeAt(t.map[c+l*t.width]))?void 0:i.type,n=null==e?void 0:e.createAndFill();n&&s.push(n)}return e.insert(a,js(o.type.schema).row.create(null,s)),e}function Ll(e,t){if(!Us(e))return!1;if(t){const n=Nl(e);t(Al(e.tr,n,n.top))}return!0}function _l(e,t){if(!Us(e))return!1;if(t){const n=Nl(e);t(Al(e.tr,n,n.bottom))}return!0}function Fl(e,{map:t,table:n,tableStart:o},r){let i=0;for(let e=0;e<r;e++)i+=n.child(e).nodeSize;const a=i+n.child(r).nodeSize,s=e.mapping.maps.length;e.delete(i+o,a+o);for(let i=0,a=r*t.width;i<t.width;i++,a++){const l=t.map[a];if(r>0&&l==t.map[a-t.width]){const t=n.nodeAt(l).attrs;e.setNodeMarkup(e.mapping.slice(s).map(l+o),null,{...t,rowspan:t.rowspan-1}),i+=t.colspan-1}else if(r<t.width&&l==t.map[a+t.width]){const a=n.nodeAt(l),c=a.attrs,u=a.type.create({...c,rowspan:a.attrs.rowspan-1},a.content),d=t.positionAt(r+1,i,n);e.insert(e.mapping.slice(s).map(o+d),u),i+=c.colspan-1}}}function jl(e,t){if(!Us(e))return!1;if(t){const n=Nl(e),o=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;Fl(o,n,e),e!=n.top;e--){const e=n.tableStart?o.doc.nodeAt(n.tableStart-1):o.doc;if(!e)throw RangeError("No table found");n.table=e,n.map=Bs.get(n.table)}t(o)}return!0}function Kl(e){const t=e.content;return 1==t.childCount&&t.child(0).isTextblock&&0==t.child(0).childCount}function Wl(e,t){const n=e.selection;if(!(n instanceof nl)||n.$anchorCell.pos==n.$headCell.pos)return!1;const o=Nl(e),{map:r}=o;if(function({width:e,height:t,map:n},o){let r=o.top*e+o.left,i=r,a=(o.bottom-1)*e+o.left,s=r+(o.right-o.left-1);for(let t=o.top;t<o.bottom;t++){if(o.left>0&&n[i]==n[i-1]||o.right<e&&n[s]==n[s+1])return!0;i+=e,s+=e}for(let i=o.left;i<o.right;i++){if(o.top>0&&n[r]==n[r-e]||o.bottom<t&&n[a]==n[a+e])return!0;r++,a++}return!1}(r,o))return!1;if(t){const n=e.tr,i={};let a,l,c=s.empty;for(let e=o.top;e<o.bottom;e++)for(let t=o.left;t<o.right;t++){const s=r.map[e*r.width+t],u=o.table.nodeAt(s);if(!i[s]&&u)if(i[s]=!0,null==a)a=s,l=u;else{Kl(u)||(c=c.append(u.content));const e=n.mapping.map(s+o.tableStart);n.delete(e,e+u.nodeSize)}}if(null==a||null==l)return!0;if(n.setNodeMarkup(a+o.tableStart,null,{...el(l.attrs,l.attrs.colspan,o.right-o.left-l.attrs.colspan),rowspan:o.bottom-o.top}),c.size){const e=a+1+l.content.size,t=Kl(l)?a+1:e;n.replaceWith(t+o.tableStart,e+o.tableStart,c)}n.setSelection(new nl(n.doc.resolve(a+o.tableStart))),t(n)}return!0}function Ul(e,t){const n=js(e.schema);return ql((({node:e})=>n[e.type.spec.tableRole]))(e,t)}function ql(e){return(t,n)=>{var o;const r=t.selection;let i,a;if(r instanceof nl){if(r.$anchorCell.pos!=r.$headCell.pos)return!1;i=r.$anchorCell.nodeAfter,a=r.$anchorCell.pos}else{if(i=function(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(r.$from),!i)return!1;a=null==(o=Ws(r.$from))?void 0:o.pos}if(null==i||null==a)return!1;if(1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(n){let o=i.attrs;const s=[],l=o.colwidth;o.rowspan>1&&(o={...o,rowspan:1}),o.colspan>1&&(o={...o,colspan:1});const c=Nl(t),u=t.tr;for(let e=0;e<c.right-c.left;e++)s.push(l?{...o,colwidth:l&&l[e]?[l[e]]:null}:o);let d;for(let t=c.top;t<c.bottom;t++){let n=c.map.positionAt(t,c.left,c.table);t==c.top&&(n+=i.nodeSize);for(let o=c.left,r=0;o<c.right;o++,r++)o==c.left&&t==c.top||u.insert(d=u.mapping.map(n+c.tableStart,1),e({node:i,row:t,col:o}).createAndFill(s[r]))}u.setNodeMarkup(a,e({node:i,row:c.top,col:c.left}),s[0]),r instanceof nl&&u.setSelection(new nl(u.doc.resolve(r.$anchorCell.pos),d?u.doc.resolve(d):void 0)),n(u)}return!0}}function $l(e,t){return function(n,o){if(!Us(n))return!1;const r=qs(n);if(r.nodeAfter.attrs[e]===t)return!1;if(o){const i=n.tr;n.selection instanceof nl?n.selection.forEachCell(((n,o)=>{n.attrs[e]!==t&&i.setNodeMarkup(o,null,{...n.attrs,[e]:t})})):i.setNodeMarkup(r.pos,null,{...r.nodeAfter.attrs,[e]:t}),o(i)}return!0}}function Gl(e,t,n){const o=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<o.length;e++){const r=t.table.nodeAt(o[e]);if(r&&r.type!==n.header_cell)return!1}return!0}function Zl(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!Us(t))return!1;if(n){const o=js(t.schema),r=Nl(t),i=t.tr,a=r.map.cellsInRect("column"==e?{left:r.left,top:0,right:r.right,bottom:r.map.height}:"row"==e?{left:0,top:r.top,right:r.map.width,bottom:r.bottom}:r),s=a.map((e=>r.table.nodeAt(e)));for(let e=0;e<a.length;e++)s[e].type==o.header_cell&&i.setNodeMarkup(r.tableStart+a[e],o.cell,s[e].attrs);if(0==i.steps.length)for(let e=0;e<a.length;e++)i.setNodeMarkup(r.tableStart+a[e],o.header_cell,s[e].attrs);n(i)}return!0}}(e):function(t,n){if(!Us(t))return!1;if(n){const o=js(t.schema),r=Nl(t),i=t.tr,a=Gl("row",r,o),s=Gl("column",r,o),l=("column"===e?a:"row"===e&&s)?1:0,c="column"==e?{left:0,top:l,right:1,bottom:r.map.height}:"row"==e?{left:l,top:0,right:r.map.width,bottom:1}:r,u="column"==e?s?o.cell:o.header_cell:"row"==e?a?o.cell:o.header_cell:o.cell;r.map.cellsInRect(c).forEach((e=>{const t=e+r.tableStart,n=i.doc.nodeAt(t);n&&i.setNodeMarkup(t,u,n.attrs)})),n(i)}return!0}}var Yl=Zl("row",{useDeprecatedLogic:!0}),Jl=Zl("column",{useDeprecatedLogic:!0}),Xl=Zl("cell",{useDeprecatedLogic:!0});function Ql(e){return function(t,n){if(!Us(t))return!1;const o=function(e,t){if(t<0){const t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){const o=e.node(-1).child(t),r=o.lastChild;if(r)return n-1-r.nodeSize;n-=o.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;const t=e.node(-1);for(let n=e.indexAfter(-1),o=e.after();n<t.childCount;n++){const e=t.child(n);if(e.childCount)return o+1;o+=e.nodeSize}}return null}(qs(t),e);if(null==o)return!1;if(n){const e=t.doc.resolve(o);n(t.tr.setSelection(et.between(e,Gs(e))).scrollIntoView())}return!0}}function ec(e,t){const n=e.selection.$anchor;for(let o=n.depth;o>0;o--)if("table"==n.node(o).type.spec.tableRole)return t&&t(e.tr.delete(n.before(o),n.after(o)).scrollIntoView()),!0;return!1}function tc({allowTableNodeSelection:e=!1}={}){return new mt({key:Ks,state:{init:()=>null,apply(e,t){const n=e.getMeta(Ks);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;const{deleted:o,pos:r}=e.mapping.mapResult(t);return o?null:r}},props:{decorations:rl,handleDOMEvents:{mousedown:bl},createSelectionBetween:e=>null!=Ks.getState(e.state)?e.state.selection:null,handleTripleClick:gl,handleKeyDown:pl,handlePaste:yl},appendTransaction:(t,n,o)=>function(e,t,n){const o=(t||e).selection,r=(t||e).doc;let i,a;if(o instanceof nt&&(a=o.node.type.spec.tableRole)){if("cell"==a||"header_cell"==a)i=nl.create(r,o.from);else if("row"==a){const e=r.resolve(o.from+1);i=nl.rowSelection(e,e)}else if(!n){const e=Bs.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];i=nl.create(r,t+1,n)}}else o instanceof et&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,o=t.pos,r=e.depth;for(;r>=0&&!(e.after(r+1)<e.end(r));r--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,o--);return n==o&&/row|table/.test(e.node(r).type.spec.tableRole)}(o)?i=et.create(r,o.from):o instanceof et&&function({$from:e,$to:t}){let n,o;for(let t=e.depth;t>0;t--){const o=e.node(t);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){n=o;break}}for(let e=t.depth;e>0;e--){const n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){o=n;break}}return n!==o&&0===t.parentOffset}(o)&&(i=et.create(r,o.$from.start(),o.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(o,sl(o,n),e)})}var nc=["blockquote",0],oc=["hr"],rc=["pre",["code",0]],ic=["ol",0],ac=["ul",0],sc=["li",0],lc=function(e){for(var t,n={},o=e.attributes,r=0;r<o.length;r++)n[(t=o[r]).name]=t.value;return n},cc=function(e){var t={};return e.forEach((function(e){t[e]={default:null}})),t},uc=function(){return cc(["style","class","id"])},dc=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},pc=function(e,t){void 0===t&&(t=[]);var n={},o=function(o){o&&null!==e[o]&&!t.find((function(e){return e===o}))&&(n[o]=e[o])};for(var r in e)o(r);return n},hc=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},fc=St(St(St(St(St(St(St(St(St(St({link:{attrs:St(St({},uc()),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:lc}],toDOM:function(e){return["a",pc(e.attrs),0]}}},hc("strong")),hc("b")),hc("em")),hc("i")),hc("del")),hc("sub")),hc("sup")),hc("code")),{style:{attrs:St({},uc()),parseDOM:[{tag:"span",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["span",pc(e.attrs),0]:["span",0]}}}),hc("u")),mc=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},vc=St(St(St(St(St({},mc("style")),mc("class")),mc("id")),mc("headers")),mc("scope")),gc={doc:{content:"colgroup*"},col:{attrs:cc(["id","class","style","span"]),parseDOM:[{getAttrs:lc,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:cc(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:lc,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},yc=new Z({nodes:gc,marks:{}}),bc=function(e){var t=rn(tn(e),yc,{preserveWhitespace:!1});return on(t).firstChild},wc=Fs({tableGroup:"block",cellContent:"block+",cellAttributes:vc});wc.table_row.attrs=St(St({},wc.table_row.attrs),cc([bt,"style","class","id"])),wc.table_row.toDOM=function(e){return["tr",pc(e.attrs),0]},wc.table_row.parseDOM=[{tag:"tr",getAttrs:lc}],wc.table.attrs=St(St({},wc.table.attrs),cc(["style","class","id",wt,kt])),wc.table.toDOM=function(e){var t=dc(e.attrs)?pc(e.attrs,[wt,kt]):{},n=null;if(e.attrs[wt]&&!function(e){for(var t=!1,n=e.child(0),o=0;o<n.childCount;o++)if(n.child(o).attrs.colwidth){t=!0;break}return t}(e)){var o=bc(e.attrs[wt]);if(o){var r=Array.from(o.children).map((function(e){return["col",lc(e)]}));n=["colgroup",lc(o)].concat(r)}}return n?["table",t,n,["tbody",0]]:["table",t,["tbody",0]]},wc.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=lc(e),n=Array.from(e.childNodes).find((function(e){return"COLGROUP"===e.nodeName}));return n&&(t[wt]=n.outerHTML),t}}];var kc=St({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:St({},uc()),parseDOM:[{tag:"p",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["p",pc(e.attrs),0]:["p",0]}},table_wrapper:{content:"(table_caption_external | table)+",group:"block",defining:!0,attrs:{table:{default:null},style:{default:null}},parseDOM:[{tag:"div[table]",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["div",pc(e.attrs),0]:["div",0]}},table_caption_external:{content:"inline+",group:"block",attrs:St({caption:{default:null}},uc()),parseDOM:[{tag:"div[caption]",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["div",pc(e.attrs),0]:["div",0]}},div:{content:"block*",group:"block",attrs:St({},uc()),parseDOM:[{tag:"div",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["div",pc(e.attrs),0]:["div",0]}},blockquote:{attrs:St({},uc()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["blockquote",pc(e.attrs),0]:nc}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return oc}},heading:{attrs:St(St({},uc()),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return St(St({},lc(e)),{level:1})}},{tag:"h2",getAttrs:function(e){return St(St({},lc(e)),{level:2})}},{tag:"h3",getAttrs:function(e){return St(St({},lc(e)),{level:3})}},{tag:"h4",getAttrs:function(e){return St(St({},lc(e)),{level:4})}},{tag:"h5",getAttrs:function(e){return St(St({},lc(e)),{level:5})}},{tag:"h6",getAttrs:function(e){return St(St({},lc(e)),{level:6})}}],toDOM:function(e){return dc(e.attrs,"level")?["h"+e.attrs.level,pc(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 rc}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:St({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},uc()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["img",pc(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:St({},uc()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["br",pc(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:St(St({},uc()),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return St(St({},lc(e)),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?dc(e.attrs,"order")?["ol",pc(e.attrs,["order"]),0]:ic:["ol",St(St({},pc(e.attrs,["order"])),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:St({},uc()),parseDOM:[{tag:"ul",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["ul",pc(e.attrs),0]:ac}},list_item:{content:"(paragraph | heading) block*",attrs:St({},uc()),parseDOM:[{tag:"li",getAttrs:lc}],toDOM:function(e){return dc(e.attrs)?["li",pc(e.attrs),0]:sc},defining:!0}},wc),xc=200,zc=function(){};zc.prototype.append=function(e){return e.length?(e=zc.from(e),!this.length&&e||e.length<xc&&this.leafAppend(e)||this.length<xc&&e.leafPrepend(this)||this.appendInner(e)):this},zc.prototype.prepend=function(e){return e.length?zc.from(e).append(this):this},zc.prototype.appendInner=function(e){return new Sc(this,e)},zc.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?zc.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},zc.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},zc.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)},zc.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var o=[];return this.forEach((function(t,n){return o.push(e(t,n))}),t,n),o},zc.from=function(e){return e instanceof zc?e:e&&e.length?new Cc(e):zc.empty};var Cc=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,o){for(var r=t;r<n;r++)if(!1===e(this.values[r],o+r))return!1},t.prototype.forEachInvertedInner=function(e,t,n,o){for(var r=t-1;r>=n;r--)if(!1===e(this.values[r],o+r))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=xc)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=xc)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}(zc);zc.empty=new Cc([]);var Sc=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,o){var r=this.left.length;return!(t<r&&!1===this.left.forEachInner(e,t,Math.min(n,r),o))&&!(n>r&&!1===this.right.forEachInner(e,Math.max(t-r,0),Math.min(this.length,n)-r,o+r))&&void 0},t.prototype.forEachInvertedInner=function(e,t,n,o){var r=this.left.length;return!(t>r&&!1===this.right.forEachInvertedInner(e,t-r,Math.max(n,r)-r,o+r))&&!(n<r&&!1===this.left.forEachInvertedInner(e,Math.min(t,r),n,o))&&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}(zc);const Ic=zc;class Mc{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,o,r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}t&&(n=this.remapping(r,this.items.length),o=n.maps.length);let i,a,s=e.tr,l=[],c=[];return this.items.forEach(((e,t)=>{if(!e.step)return n||(n=this.remapping(r,t+1),o=n.maps.length),o--,void c.push(e);if(n){c.push(new Ec(e.map));let t,r=e.step.map(n.slice(o));r&&s.maybeStep(r).doc&&(t=s.mapping.maps[s.mapping.maps.length-1],l.push(new Ec(t,void 0,void 0,l.length+c.length))),o--,t&&n.appendMap(t,o)}else s.maybeStep(e.step);return e.selection?(i=n?e.selection.map(n.slice(o)):e.selection,a=new Mc(this.items.slice(0,r).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:s,selection:i}}addTransform(e,t,n,o){let r=[],i=this.eventCount,a=this.items,s=!o&&a.length?a.get(a.length-1):null;for(let n=0;n<e.steps.length;n++){let l,c=e.steps[n].invert(e.docs[n]),u=new Ec(e.mapping.maps[n],c,t);(l=s&&s.merge(u))&&(u=l,n?r.pop():a=a.slice(0,a.length-1)),r.push(u),t&&(i++,t=void 0),o||(s=u)}let l=i-n.depth;return l>Hc&&(a=function(e,t){let n;return e.forEach(((e,o)=>{if(e.selection&&0==t--)return n=o,!1})),e.slice(n)}(a,l),i-=l),new Mc(a.append(r),i)}remapping(e,t){let n=new fe;return this.items.forEach(((t,o)=>{let r=null!=t.mirrorOffset&&o-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,r)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new Mc(this.items.append(e.map((e=>new Ec(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],o=Math.max(0,this.items.length-t),r=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach((e=>{e.selection&&a--}),o);let s=t;this.items.forEach((t=>{let o=r.getMirror(--s);if(null==o)return;i=Math.min(i,o);let l=r.maps[o];if(t.step){let i=e.steps[o].invert(e.docs[o]),c=t.selection&&t.selection.map(r.slice(s+1,o));c&&a++,n.push(new Ec(l,i,c))}else n.push(new Ec(l))}),o);let l=[];for(let e=t;e<i;e++)l.push(new Ec(r.maps[e]));let c=this.items.slice(0,o).append(l).append(n),u=new Mc(c,a);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u}emptyItemCount(){let e=0;return this.items.forEach((t=>{t.step||e++})),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,o=[],r=0;return this.items.forEach(((i,a)=>{if(a>=e)o.push(i),i.selection&&r++;else if(i.step){let e=i.step.map(t.slice(n)),a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&r++;let l,c=new Ec(a.invert(),e,s),u=o.length-1;(l=o.length&&o[u].merge(c))?o[u]=l:o.push(c)}}else i.map&&n--}),this.items.length,0),new Mc(Ic.from(o.reverse()),r)}}Mc.empty=new Mc(Ic.empty,0);class Ec{constructor(e,t,n,o){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new Ec(t.getMap().invert(),t,this.selection)}}}class Oc{constructor(e,t,n,o,r){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=o,this.prevComposition=r}}const Hc=20;function Nc(e){let t=[];return e.forEach(((e,n,o,r)=>t.push(o,r))),t}function Pc(e,t){if(!e)return null;let n=[];for(let o=0;o<e.length;o+=2){let r=t.map(e[o],1),i=t.map(e[o+1],-1);r<=i&&n.push(r,i)}return n}function Vc(e,t,n,o){let r=Dc(t),i=Ac.get(t).spec.config,a=(o?e.undone:e.done).popEvent(t,r);if(!a)return;let s=a.selection.resolve(a.transform.doc),l=(o?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new Oc(o?l:a.remaining,o?a.remaining:l,null,0,-1);n(a.transform.setSelection(s).setMeta(Ac,{redo:o,historyState:c}).scrollIntoView())}let Tc=!1,Rc=null;function Dc(e){let t=e.plugins;if(Rc!=t){Tc=!1,Rc=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){Tc=!0;break}}return Tc}function Bc(e){return e.setMeta(Lc,!0)}const Ac=new yt("history"),Lc=new yt("closeHistory");function _c(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new mt({key:Ac,state:{init:()=>new Oc(Mc.empty,Mc.empty,null,0,-1),apply:(t,n,o)=>function(e,t,n,o){let r,i=n.getMeta(Ac);if(i)return i.historyState;n.getMeta(Lc)&&(e=new Oc(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(Ac))return a.getMeta(Ac).redo?new Oc(e.done.addTransform(n,void 0,o,Dc(t)),e.undone,Nc(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new Oc(e.done,e.undone.addTransform(n,void 0,o,Dc(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(r=n.getMeta("rebased"))?new Oc(e.done.rebased(n,r),e.undone.rebased(n,r),Pc(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Oc(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Pc(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let r=n.getMeta("composition"),i=0==e.prevTime||!a&&e.prevComposition!=r&&(e.prevTime<(n.time||0)-o.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach(((e,o)=>{for(let r=0;r<t.length;r+=2)e<=t[r+1]&&o>=t[r]&&(n=!0)})),n}(n,e.prevRanges)),s=a?Pc(e.prevRanges,n.mapping):Nc(n.mapping.maps[n.steps.length-1]);return new Oc(e.done.addTransform(n,i?t.selection.getBookmark():void 0,o,Dc(t)),Mc.empty,s,n.time,null==r?e.prevComposition:r)}}(n,o,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,o="historyUndo"==n?Fc:"historyRedo"==n?jc:null;return!!o&&(t.preventDefault(),o(e.state,e.dispatch))}}}})}const Fc=(e,t)=>{let n=Ac.getState(e);return!(!n||0==n.done.eventCount||(t&&Vc(n,e,t,!1),0))},jc=(e,t)=>{let n=Ac.getState(e);return!(!n||0==n.undone.eventCount||(t&&Vc(n,e,t,!0),0))};function Kc(e){let t=Ac.getState(e);return t?t.done.eventCount:0}function Wc(e){let t=Ac.getState(e);return t?t.undone.eventCount:0}class Uc{constructor(e,t){var n;this.match=e,this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,o,r){let i=n;if(t[1]){let e=t[0].lastIndexOf(t[1]);i+=t[0].slice(e+t[1].length);let n=(o+=e)-r;n>0&&(i=t[0].slice(e-n,e)+i,o=r)}return e.tr.insertText(i,o,r)}):t}}const qc=500;function $c({rules:e}){let t=new mt({state:{init:()=>null,apply(e,t){return e.getMeta(this)||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:(n,o,r,i)=>Gc(n,o,r,i,e,t),handleDOMEvents:{compositionend:n=>{setTimeout((()=>{let{$cursor:o}=n.state.selection;o&&Gc(n,o.pos,o.pos,"",e,t)}))}}},isInputRules:!0});return t}function Gc(e,t,n,o,r,i){if(e.composing)return!1;let a=e.state,s=a.doc.resolve(t);if(s.parent.type.spec.code)return!1;let l=s.parent.textBetween(Math.max(0,s.parentOffset-qc),s.parentOffset,null,"")+o;for(let s=0;s<r.length;s++){let c=r[s].match.exec(l),u=c&&r[s].handler(a,c,t-(c[0].length-o.length),n);if(u)return e.dispatch(u.setMeta(i,{transform:u,from:t,to:n,text:o})),!0}return!1}const Zc=(e,t)=>{let n=e.plugins;for(let o=0;o<n.length;o++){let r,i=n[o];if(i.spec.isInputRules&&(r=i.getState(e))){if(t){let n=e.tr,o=r.transform;for(let e=o.steps.length-1;e>=0;e--)n.step(o.steps[e].invert(o.docs[e]));if(r.text){let t=n.doc.resolve(r.from).marks();n.replaceWith(r.from,r.to,e.schema.text(r.text,t))}else n.delete(r.from,r.to);t(n)}return!0}}return!1},Yc=new Uc(/--$/,"—"),Jc=new Uc(/\.\.\.$/,"…"),Xc=new Uc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Qc=new Uc(/"$/,"”"),eu=new Uc(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),tu=new Uc(/'$/,"’"),nu=[Xc,Qc,eu,tu];function ou(e,t,n=null,o){return new Uc(e,((e,r,i,a)=>{let s=n instanceof Function?n(r):n,l=e.tr.delete(i,a),c=l.doc.resolve(i).blockRange(),u=c&&Ee(c,t,s);if(!u)return null;l.wrap(c,u);let d=l.doc.resolve(i-1).nodeBefore;return d&&d.type==t&&Ne(l.doc,i-1)&&(!o||o(r,d))&&l.join(i-1),l}))}function ru(e,t,n=null){return new Uc(e,((e,o,r,i)=>{let a=e.doc.resolve(r),s=n instanceof Function?n(o):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t)?e.tr.delete(r,i).setBlockType(r,r,t,s):null}))}var iu={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},au={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},su={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},lu={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},cu={mark:"sub"},uu={mark:"sup"},du={mark:"link"},pu="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),hu=function(e,t){var n={},o=t&&t.applyToWord||!1;if(n["Mod-z"]=Fc,n["Shift-Mod-z"]=jc,n.Backspace=_o(Zc,ro,ao,po),n.Enter=_o(ko,Co,So,Eo),pu||(n["Mod-y"]=jc),e.marks.strong&&(n["Mod-b"]=_t(zn,St(St({},iu),{applyToWord:o}))),e.marks.em&&(n["Mod-i"]=_t(zn,St(St({},au),{applyToWord:o}))),e.marks.u&&(n["Mod-u"]=_t(zn,St(St({},su),{applyToWord:o}))),e.nodes.hard_break){var r=e.nodes.hard_break,i=_o(zo,(function(e,t){return t(e.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0}));n["Shift-Enter"]=i}return n},fu=function(e){var t,n={};return e.nodes.list_item&&(n.Enter=(t=e.nodes.list_item,function(e,n){return Yn(t)(e,(function(t){var o=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();o&&t.ensureMarks(o),n(t)}))})),n},mu=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,vu=function(e){return/^MsoListParagraph/.test(e.className)},gu=function(e){var t=e.innerHTML;return(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},yu=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},bu=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},wu=function(e,t){var n=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var o=e;o.getAttribute("datalist")?(n.push(e),t.add(n)):vu(o)&&n.length?n.push(e):(n=[],"DIV"===o.nodeName?wu(o.children,t):"TABLE"===o.nodeName&&Array.from(o.querySelectorAll("td,th")).forEach((function(e){wu(e.children,t)})))}}))},ku=function(e){var t,n=e.innerHTML,o=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=o(gu(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:bu(o(gu(e)))}:void 0},xu=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?gu(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 o=document.createElement("li");return o.appendChild(tn(t)),o},zu=function(e){var t=tn(function(e){return e.replace(mu,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e)),n=new Set;return wu(t.children,n),n.forEach((function(e){return function(e){var t,n,o,r,i,a,s,l,c,u,d,p,h,f=-1,m={};for(l=0;l<e.length;l++){var v=(h={datalist:(c=e[l]).getAttribute("datalist"),datalevel:c.getAttribute("datalevel")}).datalist,g=ku(c);if(u=g&&g.tag){if(d=h.datalevel||parseFloat(c.style.marginLeft||0),h.datalevel||c.style.marginLeft){var y=u+v;m[d]||(m[d]={}),(!n||n<0)&&(n=d,o=v,r=(s=e.filter((function(e){return e.getAttribute("datalist")===String(o)})))[s.length-1],a=yu(u,g&&g.style),c.parentNode.insertBefore(a,c),f=d,m[d][y]=a),i=r===c,p=m[d][y],(d>f||!p)&&(p=yu(u,g&&g.style),m[d][y]=p,t.appendChild(p)),t=xu(c),p.appendChild(t),i?n=f=-1:f=d}}else!t||i&&!vu(c)||(c.style.marginLeft&&(c.style.marginLeft=""),c.style.marginLeft&&(c.style.margin=""),t.appendChild(c))}}(e)})),nn(t)},Cu=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,"")},Su=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},Iu=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},Mu=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},Eu=function(e){/^Mso/.test(e.value)&&Mu(e)},Ou=/\s*;\s*/,Hu=/\s*:\s*/,Nu=function(e){var t,n,o=e.value.split(Ou).filter((function(e){return Boolean(e)})),r=e.ownerElement.style,i="";o.forEach((function(e){var o;o=e.split(Hu),t=o[0],n=o[1],void 0!==r[t]&&(i+=t+": "+n+"; ")})),(i=i.trim())?e.value=i:Mu(e)},Pu=function(e,t){var n=e;if(t.convertMsLists&&(n=zu(n)),t.stripTags&&(n=Iu(n,t.stripTags)),t.attributes){var o=tn(n);Array.from(o.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 o=e.attributes[n];t[o.name]?t[o.name](o):t["*"]&&t["*"](o)}"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=nn(o)}return n};function Vu(e){for(var t=e.length,n=new Array(t/2),o=0;o<t;o+=2)n[o]=String.fromCharCode(parseInt(e.substring(o,o+2),16));return btoa(n.join(""))}var Tu=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,Ru=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,Du=new RegExp("(?:("+Ru.source+"))([\\da-fA-F\\s]+)\\}","g"),Bu=/[^\da-fA-F]/g,Au=/file:\/[^'"]+\.(jpg|png|gif)/i,Lu=/\\(png|jpeg)blip\\/,_u="text/rtf",Fu=function(e,t){var n=e.match(Tu);if(!n||-1===t.types.indexOf(_u))return e;var o=t.getData(_u),r=[],i=o.match(Du);if(!o||!i)return e;for(var a=0,s=i;a<s.length;a++){var l=s[a],c=Lu.exec(l);if(c){var u=l.replace(Ru,"").replace(Bu,"");r.push("data:image/"+c[1]+";base64,"+Vu(u))}}return n.length!==r.length?e:e.replace(Tu,(function(e){var t=r.shift()||"";return e.replace(Au,t)}))},ju=function(e,t,n,o,r){var i,a,s,l,c,u,d=[],p=[],h=t.matchCase,f=t.matchWord,m=t.useRegExp,v=t.text;if(m&&(/^\\$/.test(v)||/[^\\]\\$/.test(v))&&(v=v.substring(0,v.length-1)),!v)return d;var g=h?"g":"gi",y=m?new RegExp(v,g):Zu(v,g);return e.nodesBetween(n,o,(function(t,h,m){if(r(d))return!1;t.inlineContent&&h+t.content.size>=n&&(p.length=0,t.nodesBetween(0,t.content.size,(function(t,m,v,g){if(r(d))return!1;var b=1+h+m;if(t.isText&&b+t.nodeSize>=n){if(c=t.text||"",u=v.childCount-1>=g+1&&v.child(g+1),p.push(n<=b?{text:c,start:b}:{text:c.slice(n-b),start:n}),u&&u.isText)return;for(a=p.map((function(e){return e.text})).join(""),i=y.exec(a);null!==i&&(s=p[0].start+i.index,l=s+i[0].length,n<=s&&o>=l&&Gu(i,f)&&d.push(et.create(e,s,l)),!r(d));)i=y.exec(a)}else p.length=0})))})),d},Ku=function(e,t){var n=t.backward,o=t.matchCyclic,r=It(t,["backward","matchCyclic"]),i=n?function(){return!1}:function(e){return e.length>0},a=e.doc,s=e.selection,l=[];return n?!(l=ju(a,r,0,s.from,i)).length&&o&&(l=ju(a,r,s.from,a.content.size,i)):!(l=ju(a,r,s.to,a.content.size,i)).length&&o&&(l=ju(a,r,0,s.to,i)),l.length?l[l.length-1]:null},Wu=function(e,t){return ju(e,t,0,e.content.size,(function(){return!1}))},Uu=function(e,t,n){var o=e.from,r=e.to;return n.insertText(t,o,r).setSelection(et.create(n.doc,o,o+t.length)),n},qu=function(e,t,n){var o=Wu(e.doc,n);if(0===o.length)return null;for(var r=e.tr,i=o.length-1;i>=0;i--)r.insertText(t,o[i].from,o[i].to);return r},$u=/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/,Gu=function(e,t){if(t){if(!0===t){var n=e.input,o=n.charAt(e.index-1),r=n.charAt(e.index+e[0].length);return $u.test(o)&&$u.test(r)}return t(e)}return!0},Zu=function(e,t){var n=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(n,t)};function Yu(e){var t={class:"k-placeholder","data-placeholder":e};return new mt({key:new yt("placeholder"),props:{decorations:function(e){var n=e.doc,o=n.content.firstChild;if(!(0===n.childCount||1===n.childCount&&o.inlineContent&&0===o.childCount))return $a.empty;var r=[];return n.descendants((function(e,n){r.push(Wa.node(n,n+e.nodeSize,t))})),$a.create(n,r)}}})}var Ju=/\s+/g,Xu=/text-align/,Qu=function(){return new mt({key:new yt("spaces-fix"),props:{decorations:function(e){var t,n,o,r,i=[],a=e.doc;return a.nodesBetween(0,a.content.size,(function(e,a,s){if(e.type.isText&&function(e){return Xu.test(e&&e.attrs&&e.attrs.style||"")}(s))for(n=Ju.exec(e.text||"");null!==n;){if(t=a+n.index,o=n[0].length,n.index+o<n.input.length)for(r=0;r<=o-1;r+=2)i.push(Wa.inline(t+r,t+r+1,{style:"white-space: normal"}));n=Ju.exec(e.text||"")}})),$a.create(a,i)}}})},ed=function(e,t){for(var n in t)n&&jt(e,n,t[n])},td=function(e,t,n,o){void 0===o&&(o=!1),this.node=e,this.view=t,this.dom=document.createElement(n),ed(this.dom,e.attrs),this.contentDOM=o?void 0:this.dom},nd=function(e,t,n){this.mark=e,this.view=t,this.dom=document.createElement("span"),ed(this.dom,e.attrs),this.contentDOM=this.dom},od=function(){return new mt({key:new yt("csp-fix"),props:{nodeViews:{paragraph:function(e,t){return new td(e,t,"p")},div:function(e,t){return new td(e,t,"div")},table_wrapper:function(e,t){return new td(e,t,"div")},table_caption_external:function(e,t){return new td(e,t,"div")},table:function(e,t){return new td(e,t,"table")},table_row:function(e,t){return new td(e,t,"tr")},table_cell:function(e,t){return new td(e,t,"td")},table_header:function(e,t){return new td(e,t,"th")},image:function(e,t){return new td(e,t,"img",!0)}},markViews:{style:function(e,t,n){return new nd(e,t,n)}}}})},rd=new yt("highlight");function id(e){return void 0===e&&(e=rd),new mt({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 Wa.inline(e.from,e.to,e.attrs)}));return $a.create(e.doc,t)}}})}var ad={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}},sd=Object.keys(ad),ld=new yt("image-resize"),cd=function(e,t,n){e.style[t]=n+"px"},ud=/[^\-]width:|[^\-]height:/,dd=/^.+$/,pd=function(){function e(e,t,n,o){this.activeHandle=e,this.dragging=t,this.rect=n,this.nodePosition=o}return e.prototype.apply=function(t){var n=t.getMeta(ld);return n?new e(n.activeHandle,n.setDragging,n.rect,n.nodePosition):this},e}(),hd=function(e){return void 0===e&&(e={node:"image",lockRatio:!0}),new mt({key:ld,view:function(t){return{resize:function(){ld.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 o=t.state,r=o.selection,i=o.schema.nodes[e.node],a=ld.getState(o),s=a.rect;if(r instanceof nt&&i===r.node.type){var l=t.nodeDOM(r.from),c={top:l.offsetTop,left:l.offsetLeft,width:l.offsetWidth,height:l.offsetHeight};if(!n.selection.eq(r)||s&&(s.width!==c.width||s.height!==c.height||s.top!==c.top||s.left!==c.left)){var u=o.tr;u.setMeta(ld,{rect:c,nodePosition:r.from}),t.dispatch(u),this.attachResize()}}else s&&(a.rect=null,a.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new pd("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(t,n){return function(e,t,n){var o=t.target.getAttribute(Ct);if(!o)return!1;var r=ld.getState(e.state);t.preventDefault();var i=e.state.tr;function a(t){!function(e,t,n){var o=ld.getState(e.state),r=o.rect,i=o.dragging,a=o.nodePosition,s=o.activeHandle;if(i&&r){var l=e.nodeDOM(a),c=ad[s],u=(t.clientX-i.startX)*c.x,d=(t.clientY-i.startY)*c.y,p=c.x?u+l.width:r.width,h=c.y?d+l.height:r.height;if(n.lockRatio&&c.x&&c.y){var f=Math.min(p/l.width,h/l.height),m=l.width*f,v=l.height*f;i.startX=t.clientX-(p-m)*c.x,i.startY=t.clientY-(h-v)*c.y,p=m,h=v}else i.startX=c.x?t.clientX:i.startX,i.startY=c.y?t.clientY:i.startY;cd(l,"width",p),cd(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 i.setMeta(ld,{setDragging:{startX:t.clientX,startY:t.clientY},activeHandle:o,rect:r.rect,nodePosition:r.nodePosition}),i.setMeta("addToHistory",!1),e.dispatch(i),t.view.addEventListener("mouseup",(function t(n){n.view.removeEventListener("mouseup",t),n.view.removeEventListener("mousemove",a),function(e){var t=ld.getState(e.state),n=t.rect,o=t.dragging,r=t.nodePosition;if(o&&n){var i=e.state.selection;if(i instanceof nt){var a=i.node.attrs,s=n.width,l=n.height,c=void 0;if(ud.test(a.style||"")){var u=Mt(a.style,{style:"width",value:dd,newValue:s+"px"}),d=Mt(u.style||"",{style:"height",value:dd,newValue:l+"px"}).style;c=St(St({},a),{style:d})}else c=St(St({},a),{width:s,height:l});var p=i.node.type.createAndFill(c);if(p){var h=e.state.tr;h.replaceWith(r,r+1,p),h.setSelection(nt.create(h.doc,r)),h.setMeta("commandName","image-resize"),h.setMeta("args",c),h.setMeta(ld,{setDragging:null,activeHandle:null,rect:n,nodePosition:r}),e.dispatch(h)}}}}(e)})),t.view.addEventListener("mousemove",a),!0}(t,n,e)}},decorations:function(t){var n=t.selection,o=t.schema.nodes[e.node],r=ld.getState(t).rect;if(r&&n instanceof nt&&o===n.node.type){var i=document.createElement("div");i.className="k-editor-resize-handles-wrapper",i.style.width=r.width+"px",i.style.height=r.height+"px",i.style.top=r.top+"px",i.style.left=r.left+"px";for(var a=0;a<sd.length;a++){var s=document.createElement("div");s.className=xt+" "+sd[a],s.setAttribute(Ct,sd[a]),i.appendChild(s)}return $a.create(t.doc,[Wa.widget(t.selection.from+1,i)])}return $a.empty}}})},fd=new yt("caret-color");function md(){return new mt({key:fd,props:{decorations:function(e){var t=e.doc,n=e.selection,o=e.storedMarks;if(!n.empty||!o)return $a.empty;var r=mn((o||[]).find((function(e){return"style"===e.type.name})),{name:"color",value:/^.+$/});if(!r)return $a.empty;var i=n.$anchor.parent,a=[];return t.descendants((function(e,t){e.eq(i)&&a.push(Wa.node(t,t+e.nodeSize,{style:"caret-color: "+r}))})),$a.create(t,a)}}})}var vd=function(){function e(e,t){this.node=e,this.view=t,this.dom=document.createElement("div"),this.dom.className="k-editor-resize-wrap-element",this.table=this.dom.appendChild(document.createElement("table")),e.attrs[wt]&&this.renderColgroup(e.attrs[wt]);var n=this.table.appendChild(document.createElement("tbody"));this.setAttributes(this.table,e.attrs),this.resizeHandles=sd.map((function(e){var t=document.createElement("span");return t.className=xt+" "+e,t.setAttribute(zt,e),t})),this.contentDOM=n}return e.prototype.update=function(e){var t=this;if(e.type!==this.node.type)return!1;var n=this.node;return this.node=e,e.attrs[kt]?this.resizeHandles.forEach((function(e){t.dom.appendChild(e)})):Array.from(this.dom.children).filter((function(e){return e.classList.contains(xt)})).forEach((function(e){return e.remove()})),this.setAttributes(this.table,e.attrs),n.attrs[wt]!==e.attrs[wt]&&this.renderColgroup(e.attrs[wt]),!0},e.prototype.ignoreMutation=function(e){return"attributes"===e.type&&(e.target===this.table||e.target.firstChild===this.table||this.colgroup&&this.colgroup.contains(e.target))},e.prototype.destroy=function(){this.node=void 0,this.view=void 0,this.table=void 0,this.colgroup=void 0,this.resizeHandles=void 0},e.prototype.renderColgroup=function(e){this.table&&this.table.firstChild&&"COLGROUP"===this.table.firstChild.nodeName&&this.table.removeChild(this.table.firstChild),e&&(this.colgroup=bc(e),this.table.insertBefore(this.colgroup,this.table.firstChild))},e.prototype.setAttributes=function(e,t){var n=[wt,kt];for(var o in t)o&&-1===n.indexOf(o)&&jt(e,o,t[o]);/%$/.test(e.style.width)?(this.dom.style.width=e.style.width,e.style.width=""):this.dom.style.width=""},e}(),gd=function(){function e(e,t){this.node=e,this.view=t,this.dom=document.createElement("div"),this.setAttributes(this.dom,e.attrs),this.contentDOM=this.dom}return e.prototype.update=function(e){return e.type===this.node.type&&(this.node=e,this.setAttributes(this.dom,e.attrs),!0)},e.prototype.ignoreMutation=function(e){return"attributes"===e.type&&"style"===e.attributeName},e.prototype.destroy=function(){this.node=void 0,this.view=void 0},e.prototype.setAttributes=function(e,t){for(var n in t)n&&jt(e,n,t[n]);if(e.setAttribute("table",""),/%/.test(e.style.width)){var o=this.node&&this.node.lastChild,r=(o?Ft(o.attrs.style):{}).width||"";r&&!/%/.test(r)&&(e.style.width="")}},e}(),yd=/^.+$/;function bd(e,t,n){var o;if(new RegExp("[^-]?"+t+":").test(e.style||"")){var r=Mt(e.style||"",{style:t,value:yd,newValue:n}).style;o=St(St({},e),{style:r})}else o=e.style?St(St({},e),{style:e.style.replace(/;$/,"")+"; "+t+": "+n+";"}):St(St({},e),{style:t+": "+n+";"});return o}var wd=new yt("table-resize"),kd=new yt("table-column-resizing"),xd=new yt("table-row-resizing");function zd(e,t){var n=!1;return(n=(n=n||e!==wd&&Boolean(wd.get(t))&&wd.getState(t).dragging)||e!==kd&&Boolean(kd.get(t))&&kd.getState(t).dragging)||e!==xd&&Boolean(xd.get(t))&&xd.getState(t).dragging}function Cd(e,t){var n=!1;return(n=n||e!==kd&&Boolean(kd.get(t))&&kd.getState(t).activeHandle>-1)||e!==xd&&Boolean(xd.get(t))&&xd.getState(t).activeHandle>-1}function Sd(e){return e&&e.firstChild&&"TABLE"===e.firstChild.nodeName?e.firstChild:e}function Id(e){for(;e&&"TD"!==e.nodeName&&"TH"!==e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}function Md(e){for(var t=function(e){var t=Array.from(e&&e.rows||[]),n=Array.from(t&&t[0]&&t[0].cells||[]).map((function(e){return e.colSpan})).reduce((function(e,t){return e+t}),0),o=t.map((function(){return new Array(n)}));return t.forEach((function(e,t){var n=0;Array.from(e.cells).forEach((function(e){for(var r=0;r<e.colSpan;r++){for(var i=0;i<e.rowSpan;i++){var a=o[t+i].findIndex((function(e,t){return t>=n&&!e}));o[t+i][a]=e}n++}}))})),o}(e.closest("table")),n=null,o=function(o){if(t[o].forEach((function(t,r){e===t&&(n={rowIndex:o,cellIndex:r})})),n)return"break"},r=0;r<t.length&&"break"!==o(r);r++);return n||{rowIndex:-1,cellIndex:-1}}function Ed(e,t){for(var n=e.depth;n>0;n--){var o=e.node(n);if(t(o))return{node:o,depth:n}}return null}function Od(e,t,n){var o=e.posAtCoords({left:t.clientX,top:t.clientY});if(!o)return-1;var r=e.state.doc.resolve(o.pos),i=Ed(r,(function(e){return"table"===e.type.spec.tableRole}));if(null===i)return-1;var a=r.start(i.depth),s=i.node,l=Bs.get(s);return a+l.map[l.width*n.rowIndex+n.cellIndex]}var Hd=function(){function e(e,t){this.activeHandle=e,this.dragging=t}return e.prototype.apply=function(t){var n,o=this,r=t.getMeta(kd);if(r&&null!=r.setHandle)return new e(r.setHandle,null);if(r&&void 0!==r.setDragging)return new e(o.activeHandle,r.setDragging);if(o.activeHandle>-1&&t.docChanged){var i=t.mapping.map(o.activeHandle,-1);n=t.doc.resolve(i),Boolean("row"===n.parent.type.spec.tableRole&&n.nodeAfter)||(i=-1),o=new e(i,o.dragging)}return o},e}();function Nd(e,t,n){var o=t.clientX-e.startX;return Math.max(n,e.startWidth+o)}function Pd(e,t){var n=e.state.tr;n.setMeta("addToHistory",!1),n.setMeta(kd,{setHandle:t}),e.dispatch(n)}var Vd={southeast:!0,southwest:!0,northwest:!0,northeast:!0},Td=St({east:!0,west:!0},Vd),Rd=St({south:!0,north:!0},Vd),Dd=function(){function e(e,t,n){this.activeHandle=e,this.dragging=t,this.nodePosition=n}return e.prototype.apply=function(t){var n=t.getMeta(wd);return n?new e(n.activeHandle,n.setDragging,n.nodePosition):this},e}(),Bd=function(e){var t=Array.from(e.firstChild.children).map((function(e){return e.offsetWidth})),n=Array.from(e.rows).map((function(e){return e.offsetHeight})),o=t.reduce((function(e,t){return e+t}),0),r=n.reduce((function(e,t){return e+t}),0),i=e.offsetHeight;return{width:o,height:r,colsWidth:t,rowsHeight:n,offsetWidth:e.offsetWidth,offsetHeight:i}},Ad=function(e,t){var n=t.target.getAttribute(zt);if(!n)return!1;var o=wd.getState(e.state);t.preventDefault();var r=e.state.tr;r.setMeta(wd,{setDragging:{startX:t.clientX,startY:t.clientY},activeHandle:n,nodePosition:o.nodePosition}),r.setMeta("addToHistory",!1),function(e,t,n){var o=e.state.doc.nodeAt(n),r=Sd(e.nodeDOM(n)),i=Bd(r),a=i.width,s=i.height,l=i.colsWidth,c=i.rowsHeight,u=i.offsetWidth,d=i.offsetHeight,p=r.firstChild,h=Array.from(p&&p.children||[]),f=!1;h.forEach((function(e,t){e.style.width&&!/%$/.test(e.style.width)&&(e.style.width=100*l[t]/a+"%",f=!0)}));var m=!1;o.forEach((function(e,o,r){var i=Ft(e.attrs.style).height;i&&!/%$/.test(i)&&(t.setNodeMarkup(n+o+1,null,bd(e.attrs,"height",100*c[r]/s+"%")),m=!0)}));var v=o.attrs;Ft(v.style).width!==u+"px"&&(v=bd(v,"width",u+"px")),f&&(v[wt]=p.outerHTML),m&&(v=bd(v,"height",d+"px")),(f||m)&&t.setNodeMarkup(n,null,v)}(e,r,o.nodePosition),e.dispatch(r);var i=t.view||window;function a(t){!function(e,t){var n,o=wd.getState(e.state),r=o.dragging,i=o.nodePosition,a=o.activeHandle;if(!(i<0)&&r){var s=Sd(e.nodeDOM(i)),l=s.getBoundingClientRect(),c=ad[a],u=(t.clientX-r.startX)*c.x,d=(t.clientY-r.startY)*c.y,p=(s.ownerDocument&&s.ownerDocument.defaultView||window).getComputedStyle(s),h=/px/.test(p.width)?parseFloat(p.width):s.offsetWidth,f=/px/.test(p.height)?parseFloat(p.height):s.offsetHeight,m=c.x?u+h:l.width,v=c.y?d+f:l.height;if(r.startX=c.x?t.clientX:r.startX,r.startY=c.y?t.clientY:r.startY,Td[a]&&(s.style.width=m+"px"),Rd[a]&&(s.style.height=v+"px"),/px/.test(s.style.width)){var g=null===(n=s.parentNode)||void 0===n?void 0:n.parentNode;g instanceof HTMLDivElement&&g.matches("div[table]")&&/%/.test(g.style.width)&&(g.style.width="")}}}(e,t)}return i.addEventListener("mouseup",(function t(n){i.removeEventListener("mouseup",t),i.removeEventListener("mousemove",a),function(e){var t=wd.getState(e.state),n=t.dragging,o=t.nodePosition,r=t.activeHandle;if(n){var i=e.state.doc.nodeAt(o),a=Sd(e.nodeDOM(o)),s=Bd(a);if(i){var l=s.offsetWidth+"px",c=s.offsetHeight+"px",u=e.state.tr,d=i.attrs,p=Ft(d.style);if(Td[r]&&a.style.width&&p.width!==l&&(d=bd(d,"width",l)),Rd[r]&&a.style.height&&p.height!==c&&(d=bd(d,"height",c)),d=function(e,t,n,o){var r=e.state.doc.nodeAt(n),i=Sd(e.nodeDOM(n)),a=(i.ownerDocument&&i.ownerDocument.defaultView||window).getComputedStyle,s=Array.from(i.rows);r.forEach((function(e,o,r){var i=Ft(e.attrs.style).height;i&&!/px$/.test(i)&&t.setNodeMarkup(n+o+1,null,bd(e.attrs,"height",a(s[r]).height))}));var l=i.firstChild,c=Array.from(l&&l.children||[]),u=!1;c.forEach((function(e,t){e.style.width&&!/px$/.test(e.style.width)&&(e.style.width=a(c[t]).width,u=!0)}));var d=St({},o);return u&&(d[wt]=l.outerHTML),d}(e,u,o,d),u.setNodeMarkup(o,null,d),u.setMeta("commandName","node-resize"),u.setMeta("args",d),u.setMeta(wd,{setDragging:null,activeHandle:null,nodePosition:o}),!/%/.test(Ft(d.style).width||"")){var h=u.doc.resolve(o),f=Ed(h,(function(e){return"table_wrapper"===e.type.name}));if(f&&/%/.test(Ft(f.node.attrs.style).width||"")){var m=bd(f.node.attrs,"width",""),v=h.start(f.depth)-1;u.setNodeMarkup(v,null,m)}}e.dispatch(u)}}}(e)})),i.addEventListener("mousemove",a),!0},Ld=function(){function e(){}return e.prototype.ignoreMutation=function(e){return"attributes"===e.type&&"style"===e.attributeName&&"TR"===e.target.nodeName},e}();function _d(){var e=new mt({key:xd,state:{init:function(e,t){return this.spec.props.nodeViews[js(t.schema).row.name]=function(e,t){return new Ld},new Fd(-1,null)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Cd(xd,e)?null:xd.getState(e).activeHandle>-1?{class:"resize-cursor-vertical"}:null},handleDOMEvents:{mousemove:function(e,t){return zd(xd,e.state)||function(e,t,n){var o=xd.getState(e.state);if(!o.dragging){var r=Id(t.target),i=-1;if(r){var a=Md(r),s=r.getBoundingClientRect(),l=s.top,c=s.bottom;Math.abs(t.clientY-l)<=5&&a.rowIndex>0?(a.rowIndex-=r.rowSpan,i=Od(e,t,a)):c-t.clientY>0&&c-t.clientY<=5&&(i=Od(e,t,a))}i!==o.activeHandle&&jd(e,i)}}(e,t),!1},mouseleave:function(e){return function(e){var t=xd.getState(e.state);t.activeHandle>-1&&!t.dragging&&jd(e,-1)}(e),!1},mousedown:function(e,t){return function(e,t){var n=xd.getState(e.state);if(-1===n.activeHandle||n.dragging)return!1;var o=e.state.doc.resolve(n.activeHandle),r=o.parent,i=o.node(-1),a=Ft(r.attrs.style).height,s=Ft(i.attrs.style).height,l=a?parseFloat(a):0;function c(t){t.view.removeEventListener("mouseup",c),t.view.removeEventListener("mousemove",u);var n=xd.getState(e.state);if(n.dragging){var o=e.state.tr.setMeta(xd,{setDragging:null});!function(e,t,n){var o=e.state.doc,r=o.resolve(n),i=r.parent,a=r.posAtIndex(0)-1,s=e.nodeDOM(a),l=s.ownerDocument&&s.ownerDocument.defaultView||window;s.style.height=l.getComputedStyle(s).height,t.setNodeMarkup(a,null,bd(i.attrs,"height",s.style.height));var c=s&&s.closest("table"),u=c&&c.style.height;if(u){var d=o.resolve(a),p=d.start(d.depth)-1;t.setNodeMarkup(p,null,bd(d.parent.attrs,"height",u))}}(e,o,n.activeHandle),e.dispatch(o)}}function u(t){if(!t.which)return c(t);var n=xd.getState(e.state),o=function(e,t){var n=t.clientY-e.startY;return e.startHeight.rowHeight+n}(n.dragging,t),r=t.clientY-n.dragging.startY;!function(e,t,n,o,r){var i=e.nodeDOM(t),a=i&&i.parentNode;if(a){a.style.height=n+"px";var s=a.ownerDocument&&a.ownerDocument.defaultView||window;a.style.height=s.getComputedStyle(a).height;var l=a.closest("table"),c=parseFloat(r)+o+"px",u=l&&l.style.height;u&&u!==c&&(l.style.height=parseFloat(r)+o+"px",l.style.height=s.getComputedStyle(l).height)}}(e,n.activeHandle,o,r,s)}return a||(l=e.nodeDOM(n.activeHandle).offsetHeight),e.dispatch(e.state.tr.setMeta(xd,{setDragging:{startY:t.clientY,startHeight:{rowHeight:l,tableHeight:s}}})),t.view.addEventListener("mouseup",c),t.view.addEventListener("mousemove",u),t.preventDefault(),!0}(e,t)}},decorations:function(e){if(zd(xd,e))return $a.empty;var t=xd.getState(e);return t.activeHandle>-1?function(e,t){var n=[];if("number"!=typeof t)return $a.empty;for(var o=e.doc.resolve(t),r=o.node(-1),i=Bs.get(r),a=o.start(-1),s=[],l=t-a,c=-1,u=0;u<i.height;u++)s.push(i.map.slice(u*i.width,u*i.width+i.width)),-1!==s[u].indexOf(l)&&(c=u);var d=[];return s[c].forEach((function(e,t){s[c+1]&&e===s[c+1][t]||d.push(e)})),d.forEach((function(e){var t=r.nodeAt(e),o=a+e+(t?t.nodeSize:0)-1,i=document.createElement("div");i.className="row-resize-handle",n.push(Wa.widget(o,i))})),$a.create(e.doc,n)}(e,t.activeHandle):void 0},nodeViews:{}}});return e}var Fd=function(){function e(e,t){this.activeHandle=e,this.dragging=t}return e.prototype.apply=function(t){var n,o=this,r=t.getMeta(xd);if(r&&null!=r.setHandle)return new e(r.setHandle,null);if(r&&void 0!==r.setDragging)return new e(o.activeHandle,r.setDragging);if(o.activeHandle>-1){var i=t.mapping.map(o.activeHandle,-1);"row"===(n=t.doc.resolve(i)).parent.type.spec.tableRole&&n.nodeAfter||(i=null),o=new e(i,o.dragging)}return o},e}();function jd(e,t){var n=e.state.tr;n.setMeta("addToHistory",!1),n.setMeta(xd,{setHandle:t}),e.dispatch(n)}var Kd=function(){return[(void 0===t&&(t={node:"table"}),new mt({key:wd,view:function(e){return{selectedNode:function(e,t){var n=e.selection;if(n instanceof nt&&t===n.node.type&&n instanceof nt)return{node:n.node,pos:n.from};var o=Ed(n.$from,(function(e){return e.type===t})),r=o&&o.node;return r?{node:r,pos:n.$from.start(o.depth)-1}:null},update:function(e,n){var o,r,i,a,s,l=e.state,c=l.schema.nodes[t.node],u=this.selectedNode(l,c),d=this.selectedNode(n,c);if((u||!d||n.doc.eq(e.state.doc))&&(u||d)){var p=l.tr;if(p.setMeta("addToHistory",!1),u&&d&&u.pos!==d.pos){p.setMeta(wd,{nodePosition:u.pos});var h=p.doc.nodeAt(d.pos);h&&h.type.name===c.name&&p.setNodeMarkup(d.pos,c,St(St({},d.node.attrs),((o={})[kt]=!1,o))),p.setNodeMarkup(u.pos,c,St(St({},u.node.attrs),((r={})[kt]=!0,r))),e.dispatch(p)}else u&&d&&u.pos===d.pos&&!u.node.attrs[kt]&&!l.selection.eq(n.selection)?(p.setMeta(wd,{nodePosition:u.pos}),e.dispatch(p.setNodeMarkup(u.pos,c,St(St({},u.node.attrs),((i={})[kt]=!0,i))))):u&&!d?(p.setMeta(wd,{nodePosition:u.pos}),e.dispatch(p.setNodeMarkup(u.pos,c,St(St({},u.node.attrs),((a={})[kt]=!0,a))))):!u&&d&&(p.setMeta(wd,{nodePosition:-1}),e.dispatch(p.setNodeMarkup(d.pos,c,St(St({},d.node.attrs),((s={})[kt]=!1,s)))))}}}},state:{init:function(){return new Dd("",null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(e,t){return Ad(e,t)}}}})),(e=new mt({key:kd,state:{init:function(e,t){return new Hd(-1,null)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Cd(kd,e)?null:kd.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,t){return zd(kd,e.state)||function(e,t,n){var o=kd.getState(e.state);if(!o.dragging){var r=Id(t.target),i=-1;if(r){var a=Md(r),s=r.getBoundingClientRect(),l=s.left,c=s.right;Math.abs(t.clientX-l)<=5&&a.cellIndex>0?(a.cellIndex-=r.colSpan,i=Od(e,t,a)):c-t.clientX>0&&c-t.clientX<=5&&(i=Od(e,t,a))}i!==o.activeHandle&&Pd(e,i)}}(e,t),!1},mouseleave:function(e){return function(e){var t=kd.getState(e.state);t.activeHandle>-1&&!t.dragging&&Pd(e,-1)}(e),!1},mousedown:function(e,t){return function(e,t,n){var o,r=kd.getState(e.state);if(-1===r.activeHandle||r.dragging)return!1;for(var i=e.state.doc.resolve(r.activeHandle),a=i.parent,s=i.index(),l=0,c=0;c<=s;c++)l+=a.child(c).attrs.colspan;var u,d,p=i.node(i.depth-1),h=e.domAtPos(r.activeHandle),f=h.node.childNodes[h.offset].closest("table");if(p.attrs[wt])(u=(v=f.firstChild).children[l-1]).style.width||(u.style.width=u.offsetWidth+"px");else{var m=0;for(c=0;c<a.childCount;c++)m+=a.child(c).attrs.colspan;var v=document.createElement("colgroup"),g=new Array(m);for(c=0;c<m;c++)g[c]=document.createElement("col"),v.appendChild(g[c]);f.insertBefore(v,f.firstChild),(u=g[s]).style.width=u.offsetWidth+"px",d=St(St({},p.attrs),((o={})[wt]="<colgroup>"+g.reduce((function(e,t){return e+t.outerHTML}),"")+"</colgroup>",o))}var y=parseFloat(u.style.width),b=e.state.tr.setMeta(kd,{setDragging:{startX:t.clientX,startWidth:y}});if(!f.style.width){var w=Array.from(u.parentNode.children).map((function(e){return e.style.width}));if(w.every(Boolean)){var k=w.reduce((function(e,t){return e+parseFloat(t)}),0);d=bd(d||p.attrs,"width",k+"px")}}if(d){var x=i.posAtIndex(0,i.depth-1)-1;b.setNodeMarkup(x,null,d)}function z(t){t.view.removeEventListener("mouseup",z),t.view.removeEventListener("mousemove",C);var o=kd.getState(e.state);if(o.dragging){var r=e.state.tr;!function(e,t,n,o){var r,i=e.state.doc.resolve(n),a=i.node(-1),s=i.start(-1),l=i.posAtIndex(0,i.depth-1)-1,c=e.nodeDOM(s).closest("table"),u=a.attrs;if(a&&u[wt]){var d=c.firstChild;u=St(St({},u),((r={})[wt]=d.outerHTML,r))}var p=c.style.width;c&&p&&Ft(u.style).width!==p&&(u=bd(u,"width",p)),t.setNodeMarkup(l,null,u)}(e,r,o.activeHandle,Nd(o.dragging,t,n)),e.dispatch(r.setMeta(kd,{setDragging:null}))}}function C(t){if(!t.which)return z(t);var o=kd.getState(e.state),r=Nd(o.dragging,t,n);!function(e,t,n,o){var r=e.state.doc.resolve(t),i=r.node(-1),a=r.start(-1),s=Bs.get(i).colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,l=e.domAtPos(r.start(-1)).node;"TABLE"!==l.nodeName&&(l=l.closest("table"));var c=l,u=c.firstChild,d=Array.from(u.children);if(d[s].style.width=n+"px",c.style.width){var p=d.map((function(e){return e.style.width}));if(p.every(Boolean)){var h=p.reduce((function(e,t){return e+parseFloat(t)}),0);c.style.width=h+"px"}}}(e,o.activeHandle,r)}return e.dispatch(b),t.view.addEventListener("mouseup",z),t.view.addEventListener("mousemove",C),t.preventDefault(),!0}(e,t,25)}},decorations:function(e){if(!zd(kd,e)){var t=kd.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],o=e.doc.resolve(t),r=o.node(-1),i=Bs.get(r),a=o.start(-1),s=[],l=t-a,c=-1,u=0;u<i.height;u++)s.push(i.map.slice(u*i.width,u*i.width+i.width)),-1===c&&(c=s[u].lastIndexOf(l));var d=[];return s.forEach((function(e){var t=e[c];e[c]!==e[c+1]&&d.push(t)})),d.forEach((function(e){var t=a+e+r.nodeAt(e).nodeSize-1,o=document.createElement("div");o.className="column-resize-handle",n.push(Wa.widget(t,o))})),$a.create(e.doc,n)}(e,t.activeHandle)}return $a.empty},nodeViews:{table_wrapper:function(e,t){return new gd(e,t)},table:function(e,t){return new vd(e,t)}}}}),e),_d()];var e,t};function Wd(e={}){return new mt({view:t=>new Ud(t,e)})}class Ud{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}}))}destroy(){this.handlers.forEach((({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t)))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent;if(n){let n=t.nodeBefore,o=t.nodeAfter;if(n||o){let t=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(t){let r=t.getBoundingClientRect(),i=n?r.bottom:r.top;n&&o&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:r.left,right:r.right,top:i-this.width/2,bottom:i+this.width/2}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let o,r,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!i||i==document.body&&"static"==getComputedStyle(i).position)o=-pageXOffset,r=-pageYOffset;else{let e=i.getBoundingClientRect();o=e.left-i.scrollLeft,r=e.top-i.scrollTop}this.element.style.left=e.left-o+"px",this.element.style.top=e.top-r+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),o=n&&n.type.spec.disableDropCursor,r="function"==typeof o?o(this.editorView,t,e):o;if(t&&!r){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=Re(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class qd extends Ye{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return qd.valid(n)?new qd(n):Ye.near(n)}content(){return h.empty}eq(e){return e instanceof qd&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new qd(e.resolve(t.pos))}getBookmark(){return new $d(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),o=e.node(t);if(0!=n)for(let e=o.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),o=e.node(t);if(n!=o.childCount)for(let e=o.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(o.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let o=t.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,t,n=!1){e:for(;;){if(!n&&qd.valid(e))return e;let o=e.pos,r=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){r=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;o+=t;let a=e.doc.resolve(o);if(qd.valid(a))return a}for(;;){let i=t>0?r.firstChild:r.lastChild;if(!i){if(r.isAtom&&!r.isText&&!nt.isSelectable(r)){e=e.doc.resolve(o+r.nodeSize*t),n=!1;continue e}break}r=i,o+=t;let a=e.doc.resolve(o);if(qd.valid(a))return a}return null}}}qd.prototype.visible=!1,qd.findFrom=qd.findGapCursorFrom,Ye.jsonID("gapcursor",qd);class $d{constructor(e){this.pos=e}map(e){return new $d(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return qd.valid(t)?new qd(t):Ye.near(t)}}function Gd(){return new mt({props:{decorations:Qd,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&qd.valid(n)?new qd(n):null,handleClick:Jd,handleKeyDown:Zd,handleDOMEvents:{beforeinput:Xd}}})}const Zd=Ts({ArrowLeft:Yd("horiz",-1),ArrowRight:Yd("horiz",1),ArrowUp:Yd("vert",-1),ArrowDown:Yd("vert",1)});function Yd(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,o,r){let i=e.selection,a=t>0?i.$to:i.$from,s=i.empty;if(i instanceof et){if(!r.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}let l=qd.findGapCursorFrom(a,t,s);return!!l&&(o&&o(e.tr.setSelection(new qd(l))),!0)}}function Jd(e,t,n){if(!e||!e.editable)return!1;let o=e.state.doc.resolve(t);if(!qd.valid(o))return!1;let r=e.posAtCoords({left:n.clientX,top:n.clientY});return!(r&&r.inside>-1&&nt.isSelectable(e.state.doc.nodeAt(r.inside))||(e.dispatch(e.state.tr.setSelection(new qd(o))),0))}function Xd(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof qd))return!1;let{$from:n}=e.state.selection,o=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!o)return!1;let r=s.empty;for(let e=o.length-1;e>=0;e--)r=s.from(o[e].createAndFill(null,r));let i=e.state.tr.replace(n.pos,n.pos,new h(r,0,0));return i.setSelection(et.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function Qd(e){if(!(e.selection instanceof qd))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",$a.create(e.doc,[Wa.widget(e.selection.head,t,{key:"gapcursor"})])}var ep=function(e,t,n){for(var o,r=e.table,i=e.table_row,a=e.table_cell,s=[],l=0;l<t+1;l++){o=[];for(var c=0;c<n+1;c++)o.push(a.createAndFill());s.push(i.createAndFill(void 0,o))}return r.createAndFill(void 0,s)},tp=/^table$/,np=/^table_row$/,op=/^table_cell|table_header$/,rp=function(e,t){for(var n=e.$head,o=n.depth;o>0;o--){var r=n.node(o);if(t.test(r.type.name))return{pos:n.before(o),node:r}}return null},ip=function(e,t){var n=t&&function(e){var n,o=rp(e.selection,np),r=rp(e.selection,tp);if(o&&r&&o.node.attrs[bt]){for(var i=0,a=0;a<r.node.nodeSize;a++)if(r.node.child(a).eq(o.node)){i=a;break}var s=r.node.child(i-1),l=o.pos-s.nodeSize;e.setNodeMarkup(l,void 0,((n={})[bt]=o.node.attrs[bt],n))}return t(e)};return Ll(e,n)},ap=function(e,t){return _l(e,t&&function(e){var n,o=rp(e.selection,np);if(o&&o.node.attrs[bt]){var r=o.pos+o.node.nodeSize;e.setNodeMarkup(r,void 0,((n={})[bt]=o.node.attrs[bt],n))}return t(e)})},sp=function(e,t){if(!e)return-1;var n=Bs.get(e.node),o=rp(t,op),r=n.map.indexOf(o.pos-e.pos-1),i=-1;return-1!==r&&(i=r%n.width),i},lp=function(e,t,n){var o,r=sp(t,e.selection),i=bc(t.node.attrs[wt]);i.insertBefore(i.ownerDocument.createElement("col"),i.children[r+n]),e.setNodeMarkup(t.pos,null,St(St({},t.node.attrs),((o={})[wt]=i.outerHTML,o)))},cp=function(e,t){return Vl(e,t&&function(e){var n=rp(e.selection,tp);return n.node.attrs[wt]?(lp(e,n,-1),t(e)):t(e)})},up=function(e,t){return Tl(e,t&&function(e){var n=rp(e.selection,tp);return n.node.attrs[wt]?(lp(e,n,1),t(e)):t(e)})},dp=function(e,t){var n=rp(e.selection,tp),o=n&&n.node.attrs[wt],r=sp(n,e.selection),i=t&&function(e){if(!o)return t(e);var i=e.doc.nodeAt(n.pos);return function(e,t,n){var o,r=bc(t.node.attrs[wt]);r.removeChild(r.children[n]),e.setNodeMarkup(t.pos,null,St(St({},t.node.attrs),((o={})[wt]=r.outerHTML,o)))}(e,{node:i,pos:n.pos},r),t(e)};return Dl(e,i)}},8696:(e,t,n)=>{n.r(t),n.d(t,{accessibilityIcon:()=>Xn,aggregateFieldsIcon:()=>xc,alignBottomIcon:()=>Gi,alignCenterIcon:()=>Yi,alignItemsBaselineAltIcon:()=>ci,alignItemsBaselineIcon:()=>ri,alignItemsCenterAltIcon:()=>ai,alignItemsCenterIcon:()=>ti,alignItemsEndAltIcon:()=>si,alignItemsEndIcon:()=>ni,alignItemsStartAltIcon:()=>ii,alignItemsStartIcon:()=>ei,alignItemsStretchAltIcon:()=>li,alignItemsStretchIcon:()=>oi,alignJustifyIcon:()=>Xi,alignLeftIcon:()=>Zi,alignMiddleIcon:()=>$i,alignRemoveIcon:()=>Qi,alignRightIcon:()=>Ji,alignSelfCenterAltIcon:()=>Cr,alignSelfCenterIcon:()=>kr,alignSelfEndAltIcon:()=>Sr,alignSelfEndIcon:()=>xr,alignSelfStartAltIcon:()=>zr,alignSelfStartIcon:()=>wr,alignSelfStretchAltIcon:()=>Qr,alignSelfStretchIcon:()=>Xr,alignToGridIcon:()=>Tr,alignTopIcon:()=>qi,allIcon:()=>Pi,anchorIcon:()=>Os,applyFormatIcon:()=>fs,arrowDownIcon:()=>E,arrowLeftIcon:()=>O,arrowOverflowDownIcon:()=>k,arrowRightIcon:()=>M,arrowRotateCcwIcon:()=>Et,arrowRotateCcwSmallIcon:()=>Nt,arrowRotateCwIcon:()=>Ot,arrowRotateCwSmallIcon:()=>Pt,arrowUpIcon:()=>I,arrowsAxesIcon:()=>T,arrowsLeftRightIcon:()=>ne,arrowsMoveIcon:()=>An,arrowsNoChangeIcon:()=>w,arrowsNoRepeatIcon:()=>Ht,arrowsSwapIcon:()=>R,arrowsTopBottomIcon:()=>oe,barcodeIcon:()=>eo,barcodeOutlineIcon:()=>Qn,barcodeQrCodeScannerIcon:()=>io,barcodeScannerIcon:()=>to,behanceBoxIcon:()=>lc,behanceIcon:()=>sc,bellIcon:()=>_o,binocularsIcon:()=>rs,bloggerBoxIcon:()=>Hl,bloggerIcon:()=>Ol,blurIcon:()=>pr,boldIcon:()=>ki,bookIcon:()=>$a,borderBottomIcon:()=>ya,borderColorIcon:()=>Ct,borderLeftIcon:()=>ba,borderRadiusBottomLeftIcon:()=>re,borderRadiusBottomRightIcon:()=>ie,borderRadiusIcon:()=>le,borderRadiusTopLeftIcon:()=>ae,borderRadiusTopRightIcon:()=>se,borderRightIcon:()=>wa,borderStyleBottomIcon:()=>ce,borderStyleIcon:()=>he,borderStyleLeftIcon:()=>ue,borderStyleRightIcon:()=>de,borderStyleTopIcon:()=>pe,borderTopIcon:()=>ga,borderTypeIcon:()=>St,bordersAllIcon:()=>pa,bordersInsideHorizontalIcon:()=>ma,bordersInsideIcon:()=>fa,bordersInsideVerticalIcon:()=>va,bordersNoneIcon:()=>ka,bordersOutsideIcon:()=>ha,bordersShowHideIcon:()=>xa,boxSizingIcon:()=>fe,brightnessContrastIcon:()=>sr,bringBackwardIcon:()=>br,bringForwardIcon:()=>yr,bringToBackIcon:()=>gr,bringToFrontIcon:()=>vr,brushIcon:()=>or,buildingBlocksIcon:()=>zs,buttonIcon:()=>Ma,calculatorIcon:()=>Ln,calendarDateIcon:()=>Oa,calendarIcon:()=>Tt,cameraIcon:()=>Wo,cancelCircleIcon:()=>Zt,cancelIcon:()=>$t,cancelOutlineIcon:()=>Gt,caretAltDownIcon:()=>c,caretAltExpandIcon:()=>b,caretAltLeftIcon:()=>u,caretAltRightIcon:()=>l,caretAltToBottomIcon:()=>h,caretAltToLeftIcon:()=>f,caretAltToRightIcon:()=>p,caretAltToTopIcon:()=>d,caretAltUpIcon:()=>s,caretBlIcon:()=>i,caretBrIcon:()=>r,caretDoubleAltDownIcon:()=>g,caretDoubleAltLeftIcon:()=>y,caretDoubleAltRightIcon:()=>v,caretDoubleAltUpIcon:()=>m,caretTlIcon:()=>a,caretTrIcon:()=>o,cartIcon:()=>_n,categorizeIcon:()=>B,cellSplitHorizontallyIcon:()=>qs,cellSplitVerticallyIcon:()=>$s,cellsMergeHorizontallyIcon:()=>Ws,cellsMergeIcon:()=>Ks,cellsMergeVerticallyIcon:()=>Us,changeManuallyIcon:()=>Aa,chartAreaClusteredIcon:()=>Ju,chartAreaRangeIcon:()=>ed,chartAreaStacked100Icon:()=>Qu,chartAreaStackedIcon:()=>Xu,chartBarClusteredIcon:()=>$u,chartBarRangeIcon:()=>Yu,chartBarStacked100Icon:()=>Zu,chartBarStackedIcon:()=>Gu,chartBubbleIcon:()=>fd,chartCandlestickIcon:()=>md,chartChoroplethIcon:()=>kd,chartColumnClusteredIcon:()=>Ku,chartColumnRangeIcon:()=>qu,chartColumnStacked100Icon:()=>Uu,chartColumnStackedIcon:()=>Wu,chartDoughnutIcon:()=>ld,chartLineIcon:()=>td,chartLineMarkersIcon:()=>rd,chartLineStacked100Icon:()=>od,chartLineStacked100MarkersIcon:()=>ad,chartLineStackedIcon:()=>nd,chartLineStackedMarkersIcon:()=>id,chartOhlcIcon:()=>vd,chartPieIcon:()=>sd,chartRadarFilledIcon:()=>bd,chartRadarIcon:()=>gd,chartRadarMarkersIcon:()=>yd,chartRoseIcon:()=>wd,chartScatterIcon:()=>cd,chartScatterSmoothLinesIcon:()=>dd,chartScatterSmoothLinesMarkersIcon:()=>ud,chartScatterStraightLinesIcon:()=>hd,chartScatterStraightLinesMarkersIcon:()=>pd,checkCircleIcon:()=>Xt,checkIcon:()=>Yt,checkOutlineIcon:()=>Jt,checkboxCheckedIcon:()=>To,checkboxIcon:()=>Vo,checkboxIndeterminateIcon:()=>Ro,checkboxNullIcon:()=>Do,chevronDoubleDownIcon:()=>me,chevronDoubleLeftIcon:()=>ve,chevronDoubleRightIcon:()=>ge,chevronDoubleUpIcon:()=>ye,chevronDownIcon:()=>C,chevronLeftIcon:()=>S,chevronRightIcon:()=>z,chevronUpIcon:()=>x,circleIcon:()=>Bo,clearCssIcon:()=>ms,clipboardCodeIcon:()=>ls,clipboardHtmlIcon:()=>ds,clipboardIcon:()=>ss,clipboardMarkdownIcon:()=>ps,clipboardTextIcon:()=>hs,clipboardWordAltIcon:()=>us,clipboardWordIcon:()=>cs,clockArrowRotateIcon:()=>ho,clockIcon:()=>Vt,closedCaptionsIcon:()=>zo,cloudIcon:()=>Yc,codeIcon:()=>Fc,codeSnippetIcon:()=>Sa,colResizeIcon:()=>V,columnFreezeIcon:()=>Js,columnsIcon:()=>G,commentIcon:()=>Ja,commentRemoveIcon:()=>Xa,commentsRemoveIcon:()=>Qa,connectorIcon:()=>Fn,convertLowercaseIcon:()=>Ii,convertUppercaseIcon:()=>Mi,copyFormatIcon:()=>vs,copyIcon:()=>is,cropIcon:()=>Yo,crosstabIcon:()=>fl,crosstabWizardIcon:()=>ml,csIcon:()=>$c,csprojIcon:()=>Uc,css3Icon:()=>Lc,cssIcon:()=>jc,customFormatIcon:()=>ll,customIconIcon:()=>qa,cutIcon:()=>as,dataCsvIcon:()=>uu,dataIcon:()=>Qc,dataJsonIcon:()=>du,dataOdsIcon:()=>be,dataRestIcon:()=>Vu,dataSdsIcon:()=>at,dataSqlIcon:()=>pu,dataWebIcon:()=>hu,decimalDecreaseIcon:()=>ul,decimalIncreaseIcon:()=>cl,decreaseHorizontalSpacingIcon:()=>Fr,decreaseVerticalSpacingIcon:()=>Ur,deliciousBoxIcon:()=>Pl,deliciousIcon:()=>Nl,detailSectionIcon:()=>au,diggBoxIcon:()=>Tl,diggIcon:()=>Vl,dimensionsIcon:()=>Jr,displayBlockIcon:()=>ke,displayFlexIcon:()=>xe,displayInlineBlockIcon:()=>ct,displayInlineFlexIcon:()=>ze,divIcon:()=>Ni,divideIcon:()=>Jn,documentManagerIcon:()=>Ua,dollarIcon:()=>al,downloadIcon:()=>zn,downloadLightIcon:()=>st,dragAndDropIcon:()=>D,dribbbleBoxIcon:()=>uc,dribbbleIcon:()=>cc,dropletIcon:()=>ir,dropletSlashIcon:()=>Pr,dropletSliderIcon:()=>Ce,editToolsIcon:()=>Da,envelopBoxIcon:()=>Dl,envelopIcon:()=>Rl,envelopLinkIcon:()=>Es,envelopeBoxIcon:()=>ht,envelopeIcon:()=>mt,envelopeLinkIcon:()=>ft,equalIcon:()=>$n,exclamationCircleIcon:()=>Ko,exeIcon:()=>Wc,exportIcon:()=>Fu,eyeIcon:()=>Tn,eyeSlashIcon:()=>lt,eyedropperIcon:()=>$r,facebookBoxIcon:()=>Al,facebookIcon:()=>Bl,fileAddIcon:()=>Cc,fileAscxIcon:()=>Rc,fileAudioIcon:()=>zu,fileBacIcon:()=>Dc,fileConfigIcon:()=>Tc,fileCsvIcon:()=>Ic,fileDataIcon:()=>Iu,fileDiscImageIcon:()=>Mu,fileErrorIcon:()=>Nu,fileExcelIcon:()=>Mc,fileFlashIcon:()=>Vc,fileFooterIcon:()=>tu,fileHeaderIcon:()=>eu,fileHorizontalIcon:()=>Jc,fileIcon:()=>zc,fileImageIcon:()=>Cu,fileMdbIcon:()=>Oc,filePdfIcon:()=>Nc,filePptIcon:()=>Hc,filePresentationIcon:()=>Su,fileProgrammingIcon:()=>Eu,filePsdIcon:()=>Pc,fileReportIcon:()=>Se,fileTxtIcon:()=>Sc,fileTypescriptIcon:()=>Tu,fileVideoIcon:()=>xu,fileWordIcon:()=>Ec,fileWrenchIcon:()=>wi,fileZipIcon:()=>Bc,filesErrorIcon:()=>Pu,filmIcon:()=>Ac,filterAddExpressionIcon:()=>bn,filterAddGroupIcon:()=>wn,filterClearIcon:()=>mn,filterIcon:()=>fn,filterSmallIcon:()=>vn,filterSortAscSmallIcon:()=>gn,filterSortDescSmallIcon:()=>yn,flashManagerIcon:()=>os,flipHorizontalIcon:()=>Xo,flipVerticalIcon:()=>Qo,folderAddIcon:()=>bc,folderIcon:()=>gc,folderMoreIcon:()=>kc,folderOpenIcon:()=>yc,folderUpIcon:()=>wc,fontFamilyIcon:()=>Ci,fontGrowIcon:()=>yt,fontShrinkIcon:()=>bt,fontSizeIcon:()=>dl,foregroundColorIcon:()=>Si,formElementIcon:()=>Ca,formIcon:()=>za,formatCodeBlockIcon:()=>xs,formulaFxIcon:()=>ol,forwardIcon:()=>yo,fullscreenExitIcon:()=>Nr,fullscreenIcon:()=>Hr,gapColumnIcon:()=>Ie,gapRowIcon:()=>Me,gaugeLinearIcon:()=>dt,gaugeRadialIcon:()=>pt,gearIcon:()=>Nn,gearsIcon:()=>Pn,globeIcon:()=>kl,globeLinkIcon:()=>Is,globeOutlineIcon:()=>wl,globeUnlinkIcon:()=>Ms,googleBoxIcon:()=>_l,googleIcon:()=>Ll,googlePlusBoxIcon:()=>jl,googlePlusIcon:()=>Fl,graphIcon:()=>ju,grayscaleIcon:()=>dr,greaterOrEqualIcon:()=>Yn,gridIcon:()=>A,gridLayoutIcon:()=>L,groupBoxIcon:()=>Ha,groupCollectionIcon:()=>fu,groupFooterSectionIcon:()=>ou,groupHeaderSectionIcon:()=>nu,groupIcon:()=>_,groupSectionIcon:()=>lu,h1Icon:()=>Vi,h2Icon:()=>Ti,h3Icon:()=>Ri,h4Icon:()=>Di,h5Icon:()=>Bi,h6Icon:()=>Ai,handIcon:()=>so,handleDragIcon:()=>j,handleResizeAltIcon:()=>Ee,handleResizeIcon:()=>Oe,hdIcon:()=>xo,heartIcon:()=>Ho,heartOutlineIcon:()=>Oo,homeIcon:()=>te,horizontalRuleIcon:()=>ta,html5Icon:()=>_c,hyperlinkOpenIcon:()=>Sn,hyperlinkOpenSmIcon:()=>In,imageAbsolutePositionIcon:()=>pl,imageAddIcon:()=>Ga,imageEditIcon:()=>Za,imageExportIcon:()=>qo,imageIcon:()=>Uo,imageMapEditorIcon:()=>Ya,imageResizeIcon:()=>Zo,imagesIcon:()=>He,importIcon:()=>_u,inboxIcon:()=>El,increaseHorizontalSpacingIcon:()=>_r,increaseVerticalSpacingIcon:()=>Wr,indentIcon:()=>Fi,infoCircleIcon:()=>Fo,inheritedIcon:()=>ku,insertBottomIcon:()=>Ui,insertMiddleIcon:()=>Wi,insertTopIcon:()=>Ki,invertColorsIcon:()=>cr,italicIcon:()=>xi,jsIcon:()=>Kc,justifyContentAroundAltIcon:()=>bi,justifyContentAroundIcon:()=>fi,justifyContentBetweenAltIcon:()=>yi,justifyContentBetweenIcon:()=>hi,justifyContentCenterAltIcon:()=>vi,justifyContentCenterIcon:()=>di,justifyContentEndAltIcon:()=>gi,justifyContentEndIcon:()=>pi,justifyContentStartAltIcon:()=>mi,justifyContentStartIcon:()=>ui,kpiStatusDenyIcon:()=>Wn,kpiStatusHoldIcon:()=>Un,kpiStatusOpenIcon:()=>qn,launchIcon:()=>Mn,layout1By4Icon:()=>W,layout2By2Icon:()=>U,layoutIcon:()=>K,layoutSideBySideIcon:()=>q,layoutStackedIcon:()=>$,lessOrEqualIcon:()=>Zn,letterSpaceIcon:()=>Ne,levelDownIcon:()=>H,levelToTopIcon:()=>P,levelUpIcon:()=>N,lineHeightIcon:()=>Pe,linkAddIcon:()=>Ss,linkIcon:()=>Ft,linkVerticalIcon:()=>Kt,linkedinBoxIcon:()=>Wl,linkedinIcon:()=>Kl,listLatinBigIcon:()=>Ve,listLatinSmallIcon:()=>Te,listOrderedIcon:()=>Li,listRomanBigIcon:()=>Re,listRomanLowerIcon:()=>Lu,listRomanSmallIcon:()=>De,listRomanUpperIcon:()=>Au,listUnorderedIcon:()=>_i,listUnorderedOutlineIcon:()=>Be,listUnorderedSquareIcon:()=>Ae,lockIcon:()=>Ut,loginIcon:()=>kn,logoutIcon:()=>xn,makeHorizontalSpacingEqualIcon:()=>Lr,makeSameHeightIcon:()=>Ar,makeSameSizeIcon:()=>Dr,makeSameWidthIcon:()=>Br,makeVerticalSpacingEqualIcon:()=>Kr,mapMarkerIcon:()=>xl,mapMarkerTargetIcon:()=>zl,maxHeightIcon:()=>Le,maxWidthIcon:()=>_e,mediaManagerIcon:()=>ts,menuIcon:()=>J,minHeightIcon:()=>Fe,minWidthIcon:()=>je,minusCircleIcon:()=>ln,minusIcon:()=>an,minusOutlineIcon:()=>sn,minusSmIcon:()=>Kn,mirrorIcon:()=>Jo,moreHorizontalIcon:()=>Q,moreVerticalIcon:()=>X,musicNotesIcon:()=>So,myspaceBoxIcon:()=>ql,myspaceIcon:()=>Ul,nonRecurrenceIcon:()=>we,notEqualIcon:()=>Gn,outdentIcon:()=>ji,outlineOffsetIcon:()=>Ke,outlineWidthIcon:()=>We,overlapIcon:()=>ee,paddingBottomIcon:()=>Ue,paddingIcon:()=>Ze,paddingLeftIcon:()=>qe,paddingRightIcon:()=>$e,paddingTopIcon:()=>Ge,pageFooterSectionIcon:()=>iu,pageHeaderSectionIcon:()=>ru,paletteIcon:()=>rr,paneFreezeIcon:()=>Zs,paperPlaneIcon:()=>ut,paperclipAltIcon:()=>_t,paperclipIcon:()=>Lt,paragraphAddIcon:()=>Ra,parameterBooleanIcon:()=>mu,parameterDateTimeIcon:()=>vu,parameterFloatIcon:()=>gu,parameterIntegerIcon:()=>yu,parameterStringIcon:()=>bu,parametersByteArrayIcon:()=>Ou,parametersIcon:()=>cu,parametersUnknownIcon:()=>Hu,passwordIcon:()=>Ta,pauseIcon:()=>mo,pauseSmIcon:()=>Mo,pencilIcon:()=>Bt,percentIcon:()=>sl,photosIcon:()=>Vr,pinIcon:()=>Cl,pinterestBoxIcon:()=>Gl,pinterestIcon:()=>$l,playIcon:()=>fo,playSmIcon:()=>Io,playlistIcon:()=>Co,plusCircleIcon:()=>rn,plusIcon:()=>nn,plusOutlineIcon:()=>on,plusSmIcon:()=>jn,pointerIcon:()=>lo,positionBottomIcon:()=>Ye,positionLeftIcon:()=>Je,positionRightIcon:()=>Xe,positionTopIcon:()=>Qe,printIcon:()=>Dt,puzzlePieceIcon:()=>Cs,qrCodeIcon:()=>oo,qrCodeOutlineIcon:()=>no,qrCodeScannerIcon:()=>ro,questionCircleIcon:()=>jo,radiobuttonCheckedIcon:()=>Lo,radiobuttonIcon:()=>Ao,redditBoxIcon:()=>Yl,redditIcon:()=>Zl,redoIcon:()=>Mt,regularExpressionIcon:()=>et,removeHorizontalSpacingIcon:()=>jr,removeVerticalSpacingIcon:()=>qr,reorderIcon:()=>Y,replaceAllIcon:()=>tt,replaceSingleIcon:()=>nt,reportElementIcon:()=>ot,rewindIcon:()=>go,rightDoubleQuotesIcon:()=>rt,rotateIcon:()=>er,rotateLeftIcon:()=>nr,rotateRightIcon:()=>tr,roundCornersIcon:()=>mr,rowFreezeIcon:()=>Ys,rowsIcon:()=>Z,rssBoxIcon:()=>pc,rssIcon:()=>dc,saveIcon:()=>Rt,searchIcon:()=>Rn,selectAllIcon:()=>Ia,selectBoxIcon:()=>Ea,setColumnPositionIcon:()=>po,shapeLineIcon:()=>ar,shapesIcon:()=>fr,shareIcon:()=>Il,sharpenIcon:()=>hr,signatureIcon:()=>ao,silverlightIcon:()=>es,sizeToGridIcon:()=>Rr,slidersIcon:()=>lr,slnIcon:()=>Zc,snapGridIcon:()=>Gr,snapToGridlinesIcon:()=>Zr,snapToSnaplinesIcon:()=>Yr,sortAscIcon:()=>cn,sortAscSmallIcon:()=>pn,sortClearIcon:()=>dn,sortDescIcon:()=>un,sortDescSmallIcon:()=>hn,spellCheckerIcon:()=>Qs,starIcon:()=>Po,starOutlineIcon:()=>No,stickIcon:()=>co,stopIcon:()=>vo,stopSmIcon:()=>Eo,strikethroughIcon:()=>Ei,stripAllFormattingIcon:()=>gs,stripCssFormatIcon:()=>ys,stripFontElementsIcon:()=>bs,stripSpanElementsIcon:()=>ws,stripWordFormattingIcon:()=>ks,stumbleUponBoxIcon:()=>Xl,stumbleUponIcon:()=>Jl,subreportIcon:()=>Xc,subscriptIcon:()=>Oi,sumIcon:()=>rl,supscriptIcon:()=>Hi,symbolIcon:()=>il,tableAddIcon:()=>Hs,tableAlignBottomCenterIcon:()=>ca,tableAlignBottomLeftIcon:()=>la,tableAlignBottomRightIcon:()=>ua,tableAlignMiddleCenterIcon:()=>aa,tableAlignMiddleLeftIcon:()=>ia,tableAlignMiddleRightIcon:()=>sa,tableAlignRemoveIcon:()=>da,tableAlignTopCenterIcon:()=>oa,tableAlignTopLeftIcon:()=>na,tableAlignTopRightIcon:()=>ra,tableBodyIcon:()=>vl,tableCellDeleteIcon:()=>Fs,tableCellIcon:()=>Vs,tableCellPropertiesIcon:()=>Ts,tableColumnDeleteIcon:()=>Ls,tableColumnGroupsIcon:()=>gl,tableColumnInsertLeftIcon:()=>Rs,tableColumnInsertRightIcon:()=>Ds,tableCornerIcon:()=>yl,tableDeleteIcon:()=>js,tableIcon:()=>Ns,tablePositionCenterIcon:()=>Du,tablePositionEndIcon:()=>Bu,tablePositionStartIcon:()=>Ru,tablePropertiesIcon:()=>Ps,tableRowDeleteIcon:()=>_s,tableRowGroupsIcon:()=>bl,tableRowInsertAboveIcon:()=>Bs,tableRowInsertBelowIcon:()=>As,tableUnmergeIcon:()=>Gs,tableWizardIcon:()=>hl,tellAFriendBoxIcon:()=>ec,tellAFriendIcon:()=>Ql,templateManagerIcon:()=>Ba,textClipIcon:()=>zt,textOverflowIcon:()=>wt,textTruncateIcon:()=>xt,textWrapArrowIcon:()=>kt,textWrapIcon:()=>ea,textareaIcon:()=>Na,textboxHiddenIcon:()=>Va,textboxIcon:()=>Pa,thumbnailsDownIcon:()=>Er,thumbnailsLeftIcon:()=>Or,thumbnailsRightIcon:()=>Mr,thumbnailsUpIcon:()=>Ir,tocSectionIcon:()=>su,tocSectionLevelIcon:()=>wu,toggleFullScreenModeIcon:()=>nl,toolbarFloatIcon:()=>Xs,trackChangesAcceptAllIcon:()=>ja,trackChangesAcceptIcon:()=>Fa,trackChangesEnableIcon:()=>_a,trackChangesIcon:()=>La,trackChangesRejectAllIcon:()=>Wa,trackChangesRejectIcon:()=>Ka,transparencyIcon:()=>ur,trashIcon:()=>At,tumblrBoxIcon:()=>nc,tumblrIcon:()=>tc,twitterBoxIcon:()=>rc,twitterIcon:()=>oc,underlineIcon:()=>zi,undoIcon:()=>It,ungroupIcon:()=>F,unlinkIcon:()=>jt,unlinkVerticalIcon:()=>Wt,unlockIcon:()=>qt,unpinIcon:()=>Sl,unstickIcon:()=>uo,uploadIcon:()=>Cn,userIcon:()=>Ml,validationDataIcon:()=>tl,validationXhtmlIcon:()=>el,vbIcon:()=>Gc,vbprojIcon:()=>qc,videoExternalIcon:()=>ns,vimeoBoxIcon:()=>fc,vimeoIcon:()=>hc,volumeDownIcon:()=>bo,volumeMuteIcon:()=>ko,volumeUpIcon:()=>wo,warningCircleIcon:()=>vt,warningTriangleIcon:()=>gt,wholeWordIcon:()=>it,windowIcon:()=>En,windowMinimizeIcon:()=>Hn,windowRestoreIcon:()=>On,wrenchIcon:()=>Vn,xCircleIcon:()=>tn,xIcon:()=>Qt,xOutlineIcon:()=>en,yammerBoxIcon:()=>ac,yammerIcon:()=>ic,youtubeBoxIcon:()=>vc,youtubeIcon:()=>mc,zoomActualSizeIcon:()=>$o,zoomBestFitIcon:()=>Go,zoomInIcon:()=>Dn,zoomOutIcon:()=>Bn});const o={name:"caret-tr",content:'<path d="M352 160v192L160 160h192z" />',viewBox:"0 0 512 512"},r={name:"caret-br",content:'<path d="M352 352H160l192-192v192z" />',viewBox:"0 0 512 512"},i={name:"caret-bl",content:'<path d="M160 352V160l192 192H160z" />',viewBox:"0 0 512 512"},a={name:"caret-tl",content:'<path d="M160 160h192L160 352V160z" />',viewBox:"0 0 512 512"},s={name:"caret-alt-up",content:'<path d="m256 160 128 192H128l128-192z" />',viewBox:"0 0 512 512"},l={name:"caret-alt-right",content:'<path d="M352 256 160 384V128l192 128z" />',viewBox:"0 0 512 512"},c={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},u={name:"caret-alt-left",content:'<path d="m160 256 192-128v256L160 256z" />',viewBox:"0 0 512 512"},d={name:"caret-alt-to-top",content:'<path d="m128 352 128-192 128 192H128zm256-224H128v32h256v-32z" />',viewBox:"0 0 512 512"},p={name:"caret-alt-to-right",content:'<path d="m128 128 192 128-192 128V128zm224 256V128h-32v256h32z" />',viewBox:"0 0 512 512"},h={name:"caret-alt-to-bottom",content:'<path d="M384 128 256 320 128 128h256zM128 352h256v-32H128v32z" />',viewBox:"0 0 512 512"},f={name:"caret-alt-to-left",content:'<path d="M352 384 160 256l192-128v256zM128 128v256h32V128h-32z" />',viewBox:"0 0 512 512"},m={name:"caret-double-alt-up",content:'<path d="m128 448 128-192 128 192H128zM256 64 128 256h256L256 64z" />',viewBox:"0 0 512 512"},v={name:"caret-double-alt-right",content:'<path d="m64 128 192 128L64 384V128zm384 128L256 128v256l192-128z" />',viewBox:"0 0 512 512"},g={name:"caret-double-alt-down",content:'<path d="M384 64 256 256 128 64h256zM256 448l128-192-128 1H128l128 191z" />',viewBox:"0 0 512 512"},y={name:"caret-double-alt-left",content:'<path d="M448 384 256 256.001l192-128V384zM64 256.001 256 384V128L64 256.001z" />',viewBox:"0 0 512 512"},b={name:"caret-alt-expand",content:'<path d="M128 288h256L256 480 128 288zM256 32 128 224h256.001L256 32z" />',viewBox:"0 0 512 512"},w={name:"arrows-no-change",content:'<path d="M256 160 128 352 0 160h256zm96 0L224 352h256.001L352 160z" />',viewBox:"0 0 512 512"},k={name:"arrow-overflow-down",content:'<path d="M384 160 256 352 128 160h256zM128 96v32h256V96H128z" />',viewBox:"0 0 512 512"},x={name:"chevron-up",content:'<path d="m129.941 353.941 126.06-126.06 126.061 126.06L416 320 256.001 160 96 320l33.941 33.941z" />',viewBox:"0 0 512 512"},z={name:"chevron-right",content:'<path d="m158.059 129.941 126.06 126.06-126.06 126.061L192 416l160-159.999L192 96l-33.941 33.941z" />',viewBox:"0 0 512 512"},C={name:"chevron-down",content:'<path d="m382.059 158.059-126.06 126.06-126.061-126.06L96 192l159.999 160L416 192l-33.941-33.941z" />',viewBox:"0 0 512 512"},S={name:"chevron-left",content:'<path d="m353.941 382.059-126.06-126.06 126.06-126.061L320 96 160 255.999 320 416l33.941-33.941z" />',viewBox:"0 0 512 512"},I={name:"arrow-up",content:'<path d="M384 288h-96v128h-64l-.001-128H128L255.999 96 384 288z" />',viewBox:"0 0 512 512"},M={name:"arrow-right",content:'<path d="M224 384v-96H96v-64h128v-96l192 128-192 128z" />',viewBox:"0 0 512 512"},E={name:"arrow-down",content:'<path d="M128 224h96V96h64l.001 128H384L256.001 416 128 224z" />',viewBox:"0 0 512 512"},O={name:"arrow-left",content:'<path d="M288 128v96h128v64l-128 .001V384L96 256.001 288 128z" />',viewBox:"0 0 512 512"},H={name:"level-down",content:'<path d="M288 192v64h64l-80 128-80-128h64v-64H128v-32h288v32H288z" />',viewBox:"0 0 512 512"},N={name:"level-up",content:'<path d="m128 288 80-128 80 128h-64v64h192v32H192v-96h-64z" />',viewBox:"0 0 512 512"},P={name:"level-to-top",content:'<path d="m128 288 80-128 80 128h-64v64h192v32H192v-96h-64zm288-160H96v32h320v-32z" />',viewBox:"0 0 512 512"},V={name:"col-resize",content:'<path d="M128 255h64v33h-64v64.6L0 271.9l128-80.7V255zm96 225h64V32h-64v448zm288-207.9-128-80.7V256h-64v33h64v63.9l128-80.8z" />',viewBox:"0 0 512 512"},T={name:"arrows-axes",content:'<path d="M352 480v-64H128v64H96v-64H32v-32h64V160H32l80-128 80 128h-64v224h224v-64l128 80-128 80z" />',viewBox:"0 0 512 512"},R={name:"arrows-swap",content:'<path d="M256 160h-64v224h-32V160H96l80-128 80 128zm96 192V128h-32v224h-64l80 128 80-128h-64z" />',viewBox:"0 0 512 512"},D={name:"drag-and-drop",content:'<path d="m32 128 192 112L32 352V128zm224 96v32h224v-32H256z" />',viewBox:"0 0 512 512"},B={name:"categorize",content:'<path d="M32 32v192l160-96L32 32zm0 448V288l160 96-160 96zM192 64h288v32H192V64zm0 96h288v32H192v-32zm0 160h288v32H192v-32zm0 96h288v32H192v-32z" />',viewBox:"0 0 512 512"},A={name:"grid",content:'<path d="M32 32h128v128H32V32zm160 448h128V352H192v128zm-160 0h128V352H32v128zm0-160h128V192H32v128zm160 0h128V192H192v128zM352 32v128h128V32H352zm0 288h128V192H352v128zM192 160h128V32H192v128zm160 320h128V352H352v128z" />',viewBox:"0 0 512 512"},L={name:"grid-layout",content:'<path d="M32 32h96v96H32V32zm128 0v96h320V32H160zM32 288h96v-96H32v96zm128 0h320v-96H160v96zM32 448h96v-96H32v96zm128 0h320v-96H160v96z" />',viewBox:"0 0 512 512"},_={name:"group",content:'<path d="M32 256h192v192H32V256zm0-32h192V32H32v192zm224 224h192V256H256v192zm0-416v192h192V32H256z" />',viewBox:"0 0 512 512"},F={name:"ungroup",content:'<path d="M32 256h192v192H32V256zm32-64h128V64H64v128zm224 224h128V288H288v128zM256 32v192h192V32H256z" />',viewBox:"0 0 512 512"},j={name:"handle-drag",content:'<path d="M160 64h64v384h-64V64zm96 0v384h64V64h-64z" />',viewBox:"0 0 512 512"},K={name:"layout",content:'<path d="M192 416h256v64H192v-64zm0-32h256v-64H192v64zM32 480h128V128H32v352zm160-288h256v-64H192v64zm0 96h256v-64H192v64zM32 0v96h416V0H32z" />',viewBox:"0 0 512 512"},W={name:"layout-1-by-4",content:'<path d="M32 0h192v480H32V0zm224 0v96h192V0H256zm0 224h192v-96H256v96zm0 128h192v-96H256v96zm0 128h192v-96H256v96z" />',viewBox:"0 0 512 512"},U={name:"layout-2-by-2",content:'<path d="M32 224h192V0H32v224zm224 0h192V0H256v224zM32 480h192V256H32v224zm224 0h192V256H256v224z" />',viewBox:"0 0 512 512"},q={name:"layout-side-by-side",content:'<path d="M32 384h416v96H32v-96zm0-32h416v-96H32v96zm0-128h416v-96H32v96zM32 0v96h416V0H32z" />',viewBox:"0 0 512 512"},$={name:"layout-stacked",content:'<path d="M32 256h192v96H32v-96zm0 224h192v-96H32v96zm224-128h192v-96H256v96zM32 0v224h416V0H32zm224 480h192v-96H256v96z" />',viewBox:"0 0 512 512"},G={name:"columns",content:'<path d="M64 32h96v448H64V32zm128 448h96V32h-96v448zM320 32v448h96V32h-96z" />',viewBox:"0 0 512 512"},Z={name:"rows",content:'<path d="M480 64v96H32V64h448zM32 192v96h448v-96H32zm448 128H32v96h448v-96z" />',viewBox:"0 0 512 512"},Y={name:"reorder",content:'<path d="M480 128v64H32v-64h448zM32 224v64h448v-64H32zm448 96H32v64h448v-64z" />',viewBox:"0 0 512 512"},J={name:"menu",content:'<path d="M480 32v96H32V32h448zM32 192v96h448v-96H32zm448 160H32v96h448v-96z" />',viewBox:"0 0 512 512"},X={name:"more-vertical",content:'<path d="M240 128c26.4 0 48-21.6 48-48s-21.6-48-48-48-48 21.6-48 48 21.6 48 48 48zm0 64c-26.4 0-48 21.6-48 48s21.6 48 48 48 48-21.6 48-48-21.6-48-48-48zm0 160c-26.4 0-48 21.6-48 48s21.6 48 48 48 48-21.6 48-48-21.6-48-48-48z" />',viewBox:"0 0 512 512"},Q={name:"more-horizontal",content:'<path d="M128 240c0-26.4-21.6-48-48-48s-48 21.6-48 48 21.6 48 48 48 48-21.6 48-48zm64 0c0 26.4 21.6 48 48 48s48-21.6 48-48-21.6-48-48-48-48 21.6-48 48zm160 0c0 26.4 21.6 48 48 48s48-21.6 48-48-21.6-48-48-48-48 21.6-48 48z" />',viewBox:"0 0 512 512"},ee={name:"overlap",content:'<path d="M320 320V64H64v256h256zM192 448h256V192h-96v160H192v96z" />',viewBox:"0 0 512 512"},te={name:"home",content:'<path d="M480 256c0 17.7-14.3 32-32 32-9.1 0-17.4-3.8-23.2-10l-8.8-8.7V416c0 17.7-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32v-96h-64v96c0 17.7-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32V268.6l-8.3 8.9C81.8 284 73.4 288 64 288c-17.7 0-32-14.3-32-32 0-8.5 3.3-16.1 8.6-21.9l.2-.2 1-1 191-191.3 1-1c5.8-5.5 13.6-8.9 22.2-8.9 9.1 0 17.3 3.8 23.1 9.9L470.3 233l.7.7.3.3c5.4 5.8 8.7 13.5 8.7 22z" />',viewBox:"0 0 512 512"},ne={name:"arrows-left-right",content:'<path d="m512 240-128-80v64H128v-64L0 240l128 80v-64h256v64z" />',viewBox:"0 0 512 512"},oe={name:"arrows-top-bottom",content:'<path d="m240 512 80-128h-64V128h64L240 0l-80 128h64v256h-64z" />',viewBox:"0 0 512 512"},re={name:"border-radius-bottom-left",content:'<path d="M384 368c0 8.8-7.2 16-16 16h-64c-97 0-176-79-176-176v-64c0-8.8 7.2-16 16-16s16 7.2 16 16v64c0 79.4 64.6 144 144 144h64c8.8 0 16 7.2 16 16z" />',viewBox:"0 0 512 512"},ie={name:"border-radius-bottom-right",content:'<path d="M368 128c8.8 0 16 7.2 16 16v64c0 97-79 176-176 176h-64c-8.8 0-16-7.2-16-16s7.2-16 16-16h64c79.4 0 144-64.6 144-144v-64c0-8.8 7.2-16 16-16z" />',viewBox:"0 0 512 512"},ae={name:"border-radius-top-left",content:'<path d="M144 384c-8.8 0-16-7.2-16-16v-64c0-97 79-176 176-176h64c8.8 0 16 7.2 16 16s-7.2 16-16 16h-64c-79.4 0-144 64.6-144 144v64c0 8.8-7.2 16-16 16z" />',viewBox:"0 0 512 512"},se={name:"border-radius-top-right",content:'<path d="M128 144c0-8.8 7.2-16 16-16h64c97 0 176 79 176 176v64c0 8.8-7.2 16-16 16s-16-7.2-16-16v-64c0-79.4-64.6-144-144-144h-64c-8.8 0-16-7.2-16-16z" />',viewBox:"0 0 512 512"},le={name:"border-radius",content:'<path d="M64 32h96v32H64v96H32V32h32zm384 416h-96v32h128V352h-32v96zM352 32v32h96v96h32V32H352zM64 352H32v128h128v-32H64v-96z" />',viewBox:"0 0 512 512"},ce={name:"border-style-bottom",content:'<path d="M96 480v-64h320v64H96zm1-416h320V32H97v32zM64 416V96H32v320h32zm416 0V96h-32v320h32z" />',viewBox:"0 0 512 512"},ue={name:"border-style-left",content:'<path d="M32 96h64v320H32V96zm416 1v320h32V97h-32zM96 64h320V32H96v32zm0 416h320v-32H96v32z" />',viewBox:"0 0 512 512"},de={name:"border-style-right",content:'<path d="M480 416h-64V96h64v320zm-416-1V95H32v320h32zm352 33H96v32h320v-32zm0-416H96v32h320V32z" />',viewBox:"0 0 512 512"},pe={name:"border-style-top",content:'<path d="M416 32v64H96V32h320zm-1 416H95v32h320v-32zm33-352v320h32V96h-32zM32 96v320h32V96H32z" />',viewBox:"0 0 512 512"},he={name:"border-style",content:'<path d="M32 96h32v320H32zm416 1h32v320h-32zM96 32h320v32H96zm0 416h320v32H96z" />',viewBox:"0 0 512 512"},fe={name:"box-sizing",content:'<path d="M32 0H0v480h480V0H32zm416 448H32V32h416v416zm-96-320h-32V96h32v32zM96 192H64v-32h32v32zm0-64H64V96h32v32zm64 0h-32V96h32v32zm64 0h-32V96h32v32zm64 0h-32V96h32v32zM96 256H64v-32h32v32zm320-128h-32V96h32v32zm0 128h-32v-32h32v32zm0-64h-32v-32h32v32zM96 384H64v-32h32v32zm256 0h-32v-32h32v32zm-192 0h-32v-32h32v32zm64 0h-32v-32h32v32zm64 0h-32v-32h32v32zm128 0h-32v-32h32v32zM96 320H64v-32h32v32zm320 0h-32v-32h32v32z" />',viewBox:"0 0 512 512"},me={name:"chevron-double-down",content:'<path d="M382.1 224 256 350.1 129.9 224 96 257.9l160 160 160-160-33.9-33.9zm0-128L256 222.1 129.9 96 96 129.9l160 160 160-160L382.1 96z" />',viewBox:"0 0 512 512"},ve={name:"chevron-double-left",content:'<path d="M289 383 162.9 257 289 130.9 255 97 95 257l160 160 34-34zm128 0L290.9 257 417 130.9 383 97 223 257l160 160 34-34z" />',viewBox:"0 0 512 512"},ge={name:"chevron-double-right",content:'<path d="M223 130.9 349.1 257 223 383l34 34 160-160L257 97l-34 33.9zm-128 0L221.1 257 95 383l34 34 160-160L129 97l-34 33.9z" />',viewBox:"0 0 512 512"},ye={name:"chevron-double-up",content:'<path d="m129.9 289.9 126.1-126L382.1 290l33.9-34L256 96 96 256l33.9 33.9zm0 128 126.1-126L382.1 418l33.9-34-160-160L96 384l33.9 33.9z" />',viewBox:"0 0 512 512"},be={name:"data-ods",content:'<path d="M415.94 93.61v.33c-.53 33.88-86.26 61.29-191.93 61.29S32.6 127.82 32.07 93.94v-.33C32.06 59.59 118 32 224 32s191.94 27.59 191.94 61.61Zm-.06 46.39v.32c-.53 33.88-86.26 61.29-191.93 61.29S32.54 174.2 32 140.32V140l.12 86.81v.32c.53 33.88 86.26 61.29 191.93 61.29S415.46 261 416 227.13v-.32Zm.12 180-.07-52v.32c-.34 21.73-35.73 40.8-88.93 51.68Zm-256 6.11C85.73 317.69 32.43 295 32 268.32V268l.12 86.81v.32C32.55 381.8 85.8 404.47 160 412.9Zm73.5 123.55q-22.26 0-36.28-14.49t-14-37.76q0-24.57 14.24-39.74t37.72-15.18q22.18 0 35.88 14.53t13.69 38.3q0 24.42-14.2 39.38t-37.05 14.96Zm1-87.08q-12.28 0-19.51 9.22t-7.23 24.39q0 15.39 7.23 24.35a23.15 23.15 0 0 0 18.93 9q12.07 0 19.15-8.71t7.08-24.17q0-16.11-6.86-25.08t-18.78-9Zm68.9 85.28V344.23h36.71q55.22 0 55.21 50.51 0 24.21-15.06 38.66t-40.15 14.46Zm23.34-84.63v65.69h11.57q15.17 0 23.81-9.1t8.64-24.82q0-14.82-8.56-23.31t-24-8.49Zm82.49 80.65v-23.12a44.75 44.75 0 0 0 13.66 7.91 43.91 43.91 0 0 0 14.89 2.64 33.06 33.06 0 0 0 7.7-.8 18 18 0 0 0 5.49-2.2 9.67 9.67 0 0 0 3.29-3.33 8.29 8.29 0 0 0 1.08-4.15 9 9 0 0 0-1.73-5.42 18.77 18.77 0 0 0-4.74-4.41 49 49 0 0 0-7.12-3.9q-4.11-1.87-8.89-3.83-12.14-5.06-18.1-12.36a27 27 0 0 1-6-17.63 28.05 28.05 0 0 1 3.25-13.91 27.71 27.71 0 0 1 8.85-9.58 39.85 39.85 0 0 1 13-5.53 66.6 66.6 0 0 1 15.61-1.77 93.91 93.91 0 0 1 14.34 1 56.36 56.36 0 0 1 11.53 3v21.6a35.76 35.76 0 0 0-5.68-3.18 44.84 44.84 0 0 0-6.32-2.27 48.64 48.64 0 0 0-6.47-1.34 45.54 45.54 0 0 0-6.1-.43 31.65 31.65 0 0 0-7.23.76 18.18 18.18 0 0 0-5.49 2.13 10.47 10.47 0 0 0-3.47 3.29 7.77 7.77 0 0 0-1.23 4.3 8.27 8.27 0 0 0 1.37 4.66 15.88 15.88 0 0 0 3.91 3.9 40.85 40.85 0 0 0 6.14 3.61q3.61 1.77 8.16 3.65a91.56 91.56 0 0 1 11.17 5.53 39.85 39.85 0 0 1 8.49 6.61 25.82 25.82 0 0 1 5.42 8.42 29.82 29.82 0 0 1 1.88 11q0 8.67-3.29 14.56a26.68 26.68 0 0 1-8.92 9.54 38.57 38.57 0 0 1-13.12 5.24 75.82 75.82 0 0 1-15.79 1.59 88.11 88.11 0 0 1-16.22-1.44 49.18 49.18 0 0 1-13.31-4.34Z" />',viewBox:"0 0 512 512"},we={name:"non-recurrence",content:'<path d="m321 434.2 47.5 47.5C335.5 501 297 512 256 512 132.3 512 32 411.7 32 288c0-41 11-79.5 30.3-112.6l47.5 47.5c-8.9 19.9-13.8 41.9-13.8 65 0 88.2 71.8 160 160 160 23.1.1 45.2-4.8 65-13.7Zm118.3-17.5c12.9-18.3 23.1-38.7 30.1-60.4 6.9-21.5 10.6-44.5 10.6-68.3 0-40.8-10.9-79.1-30-112l-55.5 32c13.6 23.5 21.5 50.9 21.5 80 0 4.8-.2 9.5-.6 14.2-2.2 24.8-10.1 47.9-22.3 68.2L173.6 150.9c20.3-12.2 43.4-20.1 68.2-22.3 4.7-.4 9.4-.6 14.2-.6v64l160-96L256 0v64c-23.8 0-46.7 3.7-68.3 10.6-21.8 7-42.1 17.2-60.4 30.1L22.6 0 0 22.6 489.4 512l22.6-22.6-72.7-72.7Z" />',viewBox:"0 0 512 512"},ke={name:"display-block",content:'<path d="M32 32h448v32H32zm0 416h448v32H32zm0-64h448V128H32v256zm64-192h320v128H96V192z" />',viewBox:"0 0 512 512"},xe={name:"display-flex",content:'<path d="M32 32v448h448V32H32zm416 416H64V64h384v384zM128 128h96v256h-96zm160 0h96v256h-96z" />',viewBox:"0 0 512 512"},ze={name:"display-inline-flex",content:'<path d="M96 416h320V96H96v320zm32-288h256v256H128V128zm32 32h64v192h-64zm128 0h64v192h-64zM32 32h32v448H32zm416 0h32v448h-32z" />',viewBox:"0 0 512 512"},Ce={name:"droplet-slider",content:'<path d="M192 384v32c-53 0-96-43-96-96h32c0 35.3 28.7 64 64 64zm160-72c0 92.8-71.6 168-160 168S32 404.8 32 312C32 181.3 192 32 192 32s160 149.3 160 280zm-32 0c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-47.8 64.3-73 122.8-73 169 0 75 57.4 136 128 136s128-61 128-136zm128-88h-32v256h32V224zm0-192h-32v64h32V32zm-64 96v64h96v-64h-96z" />',viewBox:"0 0 512 512"},Se={name:"file-report",content:'<path d="M416 32H96a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h320a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32Zm0 416H96V64h320Zm-96-96-160 .14V384l160-.14Zm32-64-192 .17V320l192-.17ZM223.15 127.9a64 64 0 1 0 64 64h-64Zm32-32v64h64a64 64 0 0 0-63.99-64Z" />',viewBox:"0 0 512 512"},Ie={name:"gap-column",content:'<path d="M32 32v448h448V32H32zm416 416H64V64h384v384zM96 96h96v320H96zm224 0h96v320h-96z" />',viewBox:"0 0 512 512"},Me={name:"gap-row",content:'<path d="M480 32H32v448h448V32zM64 448V64h384v384H64zM96 96h320v96H96zm0 224h320v96H96z" />',viewBox:"0 0 512 512"},Ee={name:"handle-resize-alt",content:'<path d="M480 224v256H224v-64h192V224h64z" />',viewBox:"0 0 512 512"},Oe={name:"handle-resize",content:'<path d="m379.5 475.5-22.6-22.6 96-96 22.6 22.6-96 96zm79.7-208.2-22.6-22.6-191.9 191.9 22.6 22.6 191.9-191.9z" />',viewBox:"0 0 512 512"},He={name:"images",content:'<path d="M256 288c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm96-64v192c0 17.7-14.3 32-32 32H64c-17.7 0-32-14.3-32-32V224c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32zm-31.8 0c-.1-.1-.1-.1 0 0l-256.1-.1-.1.1v149.9l74.6-70 85.3 80 53.3-50 42.7 40 .3-149.9zm63.8-96H128c-17.7 0-32 14.3-32 32h288v224c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32zm64-64H192c-17.7 0-32 14.3-32 32h288v224c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32z" />',viewBox:"0 0 512 512"},Ne={name:"letter-space",content:'<path d="m310 336 26 80h48L280 96h-48L128 416h48l26-80h108zm-54-166.2L294.4 288h-76.8L256 169.8zM448 32h32v448h-32zM32 32h32v448H32z" />',viewBox:"0 0 512 512"},Pe={name:"line-height",content:'<path d="m310 336 26 80h48L280 96h-48L128 416h48l26-80h108zm-54-166.2L294.4 288h-76.8L256 169.8zM32 32h448v32H32zm0 416h448v32H32z" />',viewBox:"0 0 512 512"},Ve={name:"list-latin-big",content:'<path d="M115.1 136H72.6l-7.4 24H32.1L79.3 31.5h29.1L155.9 160h-33.3l-7.5-24zm-35-23.9h27.6L93.8 67.5l-13.7 44.6zM42.1 320V191.5h46.2c16.5 0 29.1 3 37.7 9.1 8.6 6.1 12.9 14.9 12.9 26.4 0 6.6-1.5 12.3-4.6 17-3.1 4.7-7.6 8.2-13.5 10.4 6.7 1.8 11.9 5.1 15.4 9.9 3.6 4.8 5.4 10.7 5.4 17.7 0 12.6-4 22.1-12 28.4-8 6.3-19.8 9.5-35.4 9.7H42.1zm31-74.9h16.2c6.8-.1 11.6-1.3 14.5-3.7 2.9-2.4 4.3-6 4.3-10.7 0-5.4-1.6-9.3-4.7-11.7-3.1-2.4-8.2-3.6-15.1-3.6H73.1v29.7zm0 20.3v30.8h20.3c5.6 0 9.9-1.3 12.9-3.8 3-2.6 4.5-6.2 4.5-10.8 0-10.7-5.3-16.1-16-16.2H73.1zm73 171.1c-.4 8.9-2.8 16.8-7.2 23.7-4.4 6.9-10.6 12.2-18.6 15.9-8 3.8-17.1 5.6-27.3 5.6-16.9 0-30.2-5.5-39.9-16.5s-14.6-26.5-14.6-46.6v-6.4c0-12.6 2.2-23.6 6.6-33.1 4.4-9.4 10.7-16.7 18.9-21.9 8.2-5.1 17.8-7.7 28.6-7.7 15.6 0 28.1 4.1 37.6 12.3 9.5 8.2 14.9 19.5 16.2 33.9h-30.9c-.2-7.8-2.2-13.4-5.9-16.9-3.7-3.4-9.4-5.1-16.9-5.1-7.7 0-13.4 2.9-16.9 8.6-3.6 5.8-5.5 15-5.6 27.6v9.1c0 13.7 1.7 23.5 5.2 29.4 3.4 5.9 9.4 8.8 17.8 8.8 7.1 0 12.6-1.7 16.3-5 3.8-3.4 5.8-8.7 6-16h30.6zM192 96h288v32H192V96zm0 160h288v32H192v-32zm0 160h288v32H192v-32z" />',viewBox:"0 0 512 512"},Te={name:"list-latin-small",content:'<path d="M94.5 152c-1.1-1.9-2-4.8-2.8-8.6-5.5 6.9-13.1 10.3-22.9 10.3-9 0-16.7-2.7-22.9-8.2-6.3-5.4-9.4-12.3-9.4-20.5 0-10.4 3.8-18.2 11.5-23.5 7.6-5.3 18.8-7.9 33.4-7.9h9.2v-5.1c0-8.8-3.8-13.2-11.4-13.2-7.1 0-10.6 3.5-10.6 10.5H38.7c0-9.2 3.9-16.7 11.8-22.5s17.9-8.6 30.1-8.6 21.8 3 28.9 8.9c7.1 5.9 10.7 14.1 10.9 24.4v42.3c.1 8.8 1.5 15.5 4.1 20.1v1.5l-30 .1zm-18.6-19.4c3.7 0 6.8-.8 9.2-2.4 2.4-1.6 4.2-3.4 5.3-5.4v-15.3h-8.6c-10.4 0-15.5 4.6-15.5 13.9 0 2.7.9 4.9 2.7 6.6 1.8 1.7 4.1 2.6 6.9 2.6zM129.4 280c0 15.7-3.2 27.7-9.7 36.1s-15.6 12.6-27.4 12.6c-9.7 0-17.5-3.9-23.5-11.6l-1.2 9.8H41V191.4h29.7v47.7c5.5-6.3 12.7-9.4 21.4-9.4 11.9 0 21.1 4.3 27.5 12.8 6.5 8.5 9.7 20.5 9.7 36l.1 1.5zm-29.8-1.9c0-9.2-1.2-15.7-3.7-19.6-2.4-3.9-6.2-5.9-11.3-5.9-6.7 0-11.4 2.6-13.9 7.7v37.9c2.5 5.1 7.2 7.6 14.1 7.6 7 0 11.4-3.4 13.3-10.2 1-3.4 1.5-9.2 1.5-17.5zM81.1 452.8c4.2 0 7.4-1.1 9.7-3.4s3.4-5.4 3.4-9.5h27.9c0 10.5-3.8 19.1-11.3 25.8-7.5 6.7-17.2 10.1-29 10.1-13.9 0-24.8-4.4-32.8-13.1s-12-20.8-12-36.2v-1.2c0-9.6 1.8-18.2 5.3-25.6 3.6-7.4 8.7-13.1 15.4-17 6.7-4 14.7-6 23.8-6 12.4 0 22.3 3.4 29.6 10.3 7.3 6.9 10.9 16.2 10.9 28H94.2c0-4.9-1.2-8.7-3.6-11.4-2.4-2.6-5.6-4-9.7-4-7.7 0-12.2 4.9-13.5 14.7-.4 3.1-.6 7.4-.6 12.9 0 9.6 1.1 16.2 3.4 19.9s5.9 5.7 10.9 5.7zM192 96h288v32H192V96zm0 160h288v32H192v-32zm0 160h288v32H192v-32z" />',viewBox:"0 0 512 512"},Re={name:"list-roman-big",content:'<path d="M32 32h32v128H32V32zm0 288h32V192H32v128zm64 0h32V192H96v128zM32 480h32V352H32v128zm64 0h32V352H96v128zm64 0h32V352h-32v128zM128 96h352v32H128V96zm64 160h288v32H192v-32zm64 160h224v32H256v-32zM96 152c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm64 160c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm64 160c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8z" />',viewBox:"0 0 512 512"},De={name:"list-roman-small",content:'<path d="M32 64h16v96H32V64zm0 256h16v-96H32v96zm32 0h16v-96H64v96zM32 480h16v-96H32v96zm32 0h16v-96H64v96zm32 0h16v-96H96v96zM48 40c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 112c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 160c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM48 200c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM48 360c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 112c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM128 96h352v32H128V96zm32 160h320v32H160v-32zm32 160h288v32H192v-32z" />',viewBox:"0 0 512 512"},Be={name:"list-unordered-outline",content:'<path d="M192 80h288v32H192V80zm0 160h288v32H192v-32zm0 160h288v32H192v-32zM80 80c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16m0-32c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 192c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16m0-32c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 192c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16m0-32c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z" />',viewBox:"0 0 512 512"},Ae={name:"list-unordered-square",content:'<path d="M128 160H32V64h96v96zm0 64H32v96h96v-96zm0 160H32v96h96v-96zm64-256h288V96H192v32zm0 160h288v-32H192v32zm0 160h288v-32H192v32z" />',viewBox:"0 0 512 512"},Le={name:"max-height",content:'<path d="M384 0H96v32h288zm0 479H240.6L320 352h-64V160h64L240 32l-80 128h64v192h-64l79.4 127H96v32h288z" />',viewBox:"0 0 512 512"},_e={name:"max-width",content:'<path d="M0 96v288h32V96zm479 0v143.4L352 160v64H160v-64L32 240l128 80v-64h192v64l127-79.4V384h32V96z" />',viewBox:"0 0 512 512"},Fe={name:"min-height",content:'<path d="M240 192H96v32h288v-32zm144 96H96v32h288zM160 448h160l-80-128zm64 0h32v64h-32zm32-384V0h-32v64h-64l80 128 80-128z" />',viewBox:"0 0 512 512"},je={name:"min-width",content:'<path d="M192 240v144h32V96h-32zm96-144v288h32V96zm160 224V160l-128 80zm0-96h64v32h-64zm-384 0H0v32h64v64l128-80-128-80z" />',viewBox:"0 0 512 512"},Ke={name:"outline-offset",content:'<path d="M448 32H32v448h448V32h-32zm0 416H64V64h384v384zM160 320v32h192V160H160v160zm32-128h128v128H192V192z" />',viewBox:"0 0 512 512"},We={name:"outline-width",content:'<path d="M416 32H32v448h448V32h-64zm0 384H96V96h320v320zm-256-32h224V128H128v256h32zm0-224h192v192H160V160z" />',viewBox:"0 0 512 512"},Ue={name:"padding-bottom",content:'<path d="M288.2 352H256v64h64v64H160v-64h64v-64h-32v-64h96.2v64zM160 32h64v96h-32.2v32H288v-32h-32V32h64V0H160v32zm192 192v-32.2h-32V288h32v-32h96v64h32V160h-32v64h-96zm-224 32v32.2h32V192h-32v32H32v-64H0v160h32v-64h96z" />',viewBox:"0 0 512 512"},qe={name:"padding-left",content:'<path d="M128 288.2V256H64v64H0V160h64v64h64v-32h64v96.2h-64zM448 160v64h-96v-32.2h-32V288h32v-32h96v64h32V160h-32zM256 352h32.2v-32H192v32h32v96h-64v32h160v-32h-64v-96zm-32-224h-32.2v32H288v-32h-32V32h64V0H160v32h64v96z" />',viewBox:"0 0 512 512"},$e={name:"padding-right",content:'<path d="M352 191.8V224h64v-64h64v160h-64v-64h-64v32h-64v-96.2h64zM32 320v-64h96v32.2h32V192h-32v32H32v-64H0v160h32zm192-192h-32.2v32H288v-32h-32V32h64V0H160v32h64v96zm32 224h32.2v-32H192v32h32v96h-64v32h160v-32h-64v-96z" />',viewBox:"0 0 512 512"},Ge={name:"padding-top",content:'<path d="M191.8 128H224V64h-64V0h160v64h-64v64h32v64h-96.2v-64zM320 448h-64v-96h32.2v-32H192v32h32v96h-64v32h160v-32zM128 256v32.2h32V192h-32v32H32v-64H0v160h32v-64h96zm224-32v-32.2h-32V288h32v-32h96v64h32V160h-32v64h-96z" />',viewBox:"0 0 512 512"},Ze={name:"padding",content:'<path d="M128 288.2V256H32v64H0V160h32v64h96v-32h32v96.2h-32zM448 160v64h-96v-32.2h-32V288h32v-32h96v64h32V160h-32zM256 352h32.2v-32H192v32h32v96h-64v32h160v-32h-64v-96zm-32-224h-32.2v32H288v-32h-32V32h64V0H160v32h64v96z" />',viewBox:"0 0 512 512"},Ye={name:"position-bottom",content:'<path d="M32 64v416h448V32H32v32zm416 0v384H64V64h384zM96 320h320v96H96z" />',viewBox:"0 0 512 512"},Je={name:"position-left",content:'<path d="M448 32H32v448h448V32h-32zm0 416H64V64h384v384zM96 96h96v320H96z" />',viewBox:"0 0 512 512"},Xe={name:"position-right",content:'<path d="M64 480h416V32H32v448h32zm0-416h384v384H64V64zm256 32h96v320h-96z" />',viewBox:"0 0 512 512"},Qe={name:"position-top",content:'<path d="M480 448V32H32v448h448v-32zm-416 0V64h384v384H64zM96 96h320v96H96z" />',viewBox:"0 0 512 512"},et={name:"regular-expression",content:'<path d="M442.6 299.7 352 247.4V352h-64V247.4l-90.6 52.3-32-55.4L256 192l-90.6-52.3 32-55.4 90.6 52.3V32h64v104.6l90.6-52.3 32 55.4L384 192l90.6 52.3-32 55.4zM80 384c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z" />',viewBox:"0 0 512 512"},tt={name:"replace-all",content:'<path d="M288 288h192v192H288V288zm64-64H224V32h128v192zM320 64h-64v128h64V64zM160 352H96V160h96V96H96c-35.3 0-64 28.7-64 64v192c0 35.3 28.7 64 64 64h64v64l96-96-96-96v64zM448 32v192h32V32h-32zm-32 0h-32v192h32V32z" />',viewBox:"0 0 512 512"},nt={name:"replace-single",content:'<path d="M288 288h192v192H288V288zM32 160v192c0 35.3 28.7 64 64 64h64v64l96-96-96-96v64H96V160h160V96H96c-35.3 0-64 28.7-64 64zM480 32v192H288V32h192zm-32 32H320v128h128V64z" />',viewBox:"0 0 512 512"},ot={name:"report-element",content:'<path d="M480 320V192H160v48H96v-80h256V32H32v128h32v320h32v-48h64v48h256V352H160v48H96V272h64v48ZM64 64h256v64H64Zm128 320h192v64H192v-64Z" />',viewBox:"0 0 512 512"},rt={name:"right-double-quotes",content:'<path d="M136 100.2c-57.4 0-104 46.6-104 104s46.6 104 104 104c20.1 0 38.9-5.7 54.8-15.6-14.2 30.5-37.4 55.2-69.2 73.7-44 25.6-89.1 29.6-89.6 29.6l1.3 15.9 1.3 15.9c2.1-.2 51.8-4.4 102-33.2 47.1-27 103.3-81.3 103.3-186.1.1-1.4.1-2.8.1-4.3 0-57.3-46.6-103.9-104-103.9zm344 104c0-57.4-46.6-104-104-104s-104 46.6-104 104 46.6 104 104 104c20.1 0 38.9-5.7 54.8-15.6-14.2 30.5-37.4 55.2-69.2 73.7-44 25.6-89.1 29.6-89.6 29.6l2.6 31.9c2.1-.2 51.8-4.4 102-33.2 47.1-27 103.3-81.3 103.3-186.1.1-1.4.1-2.8.1-4.3z" />',viewBox:"0 0 512 512"},it={name:"whole-word",content:'<path d="M379 243.6c-2.7-9.3-6.5-17.2-11.7-23.8-5-6.4-11.4-11.4-18.6-15-7.4-3.5-15.9-5.2-25.3-5.2-16.3 0-30 6.9-41.4 20.5V160h-26v192h26v-14.8c10.8 9.8 24.1 14.8 39.7 14.8 8.7 0 16.9-1.8 24.3-5.4 7.5-3.8 14-8.9 19.5-15.5 5.5-6.8 9.7-14.9 12.9-24.4 3-9.6 4.6-20.3 4.6-32.1 0-11.5-1.3-21.8-4-31zm-31.8 73.7c-6.6 9.5-15.6 14.2-26.8 14.2-14.5 0-27.3-5.9-38.4-17.8v-69.1c11.9-16.6 25-24.9 39.4-24.9 11.4 0 20 4.6 26.2 13.9 6.1 9.2 9.3 22.9 9.3 41 0 18.9-3.3 33.3-9.7 42.7zm-139-107.8c-10.6-7.5-25.2-11.1-44.1-11.1-40.5 0-61.7 15-63.6 44.6h26.1c.7-16.2 12.8-24.4 36-24.4 11 0 19.2 1.6 24.4 4.8 2.6 1.6 4.6 3.4 6.2 5.1 1.5 1.8 2.5 4 3.2 6.6s1.1 5.6 1.4 9.4c.1 3.6.1 8.3.1 13.5h-12.8c-59.3.1-89.1 17.3-89.1 51.5 0 6.4 1.3 12 3.8 17.2 2.4 5.3 5.9 9.6 10.4 13.4 4.4 3.8 9.8 6.7 16 8.7 6.1 2.2 12.7 3.2 20 3.2 20.9 0 51.8-18.6 51.8-18.6V351h26v-97.5c0-22-5.4-36.6-15.8-44zm-10.2 100c-2.3 3.4-5.1 6.3-8.4 9-3.2 2.6-6.8 4.9-10.7 6.8-3.9 1.8-8 3.3-12.2 4.3s-8.6 1.4-12.8 1.4c-9.6 0-17-2-22.5-5.9-5.5-4.1-8.3-9.8-8.3-17.2 0-20.6 18.9-30.9 56.9-30.9h18v32.5zM448 96h-32v320h32V96zm0-32H64V32h384v32zm0 415.6H64v-32h384v32z" />',viewBox:"0 0 512 512"},at={name:"data-sds",content:'<path d="M224 152.54c105.6 0 191.4-27.4 191.9-61.3v-.3c0-34-85.9-61.6-191.9-61.6S32.1 56.94 32.1 90.94v.3c.5 33.9 86.3 61.3 191.9 61.3Zm-191.9 71.9c.5 33.9 86.3 61.3 191.9 61.3s191.4-27.4 192-61.3v-.3l-.1-86.5c-.5 33.9-86.3 61.3-191.9 61.3s-191.49-27.4-192-61.29l.1 86.49v.3Zm-.1 41.21.1 86.49v.3c.4 26.7 53.7 49.3 127.9 57.8v-86.8c-74.29-8.4-127.59-31.1-128-57.79Zm320 37.69 105 70-105 70v-52.5H189v-35h163v-52.5Z" />',viewBox:"0 0 512 512"},st={name:"download-light",content:'<path d="M368 256 256 384 144 256h96V32h32v224h96Zm112 192H32v32h448v-32Z" />',viewBox:"0 0 512 512"},lt={name:"eye-slash",content:'<path d="m245.43 358.68 24.92 24.92c-4.75.26-9.54.4-14.34.4-94.7 0-179.7-51.5-224-128 13.19-22.83 30.01-43.43 49.65-61.1l23.01 23.01C91.46 229.29 79.51 242.07 69.8 256c26.33 33.77 54.15 53.86 72.6 65.1 39.18 23.88 77.54 33.37 103.03 37.58m131.42-4.44L480 457.39 457.39 480 345.51 368.12s-.07.03-.1.04L232.2 254.94l.11-.03-39.21-39.21-.03.11-26.8-26.8s.04-.05.06-.08l-7.01-7.01s-.06.03-.09.04l-24.17-24.17s.06-.03.09-.05L32 54.61 54.61 32l111.87 111.87A260.193 260.193 0 0 1 256 128c94.8 0 179.8 51.5 224 128-24 41.53-60.05 75.69-103.15 98.24Zm-7.25-33.14c27.8-16.4 54.1-38.7 72.6-65.1-18.4-26.4-44.8-48.7-72.6-65.1-12.2-7.2-25.1-13.2-38.4-17.9 22.6 20.5 36.8 50.1 36.8 83 0 25.15-8.31 48.37-22.32 67.08l7.01 7.01c5.76-2.76 11.41-5.74 16.91-8.99Z" />',viewBox:"0 0 512 512"},ct={name:"display-inline-block",content:'<path d="M448 32h32v448h-32zM32 32h32v448H32zm64 352h320V128H96v256zm64-192h192v128H160V192z" />',viewBox:"0 0 512 512"},ut={name:"paper-plane",content:'<path d="M469.783 271.879 54.329 446.734c-13.149 5.534-26.266-8.042-21.225-21.967l48.3-133.404c2.16-5.966 7.298-10.169 13.326-10.901C312.467 256 239.85 263.839 312.467 256c-72.618-7.839 0 0-217.739-24.462-6.027-.732-11.165-4.935-13.325-10.901l-48.3-133.404C28.063 73.308 41.18 59.732 54.33 65.266l415.454 174.855c13.623 5.734 13.623 26.024 0 31.758Z" />',viewBox:"0 0 512 512"},dt={name:"gauge-linear",content:'<path d="M16 164h480v184H16V164ZM90 58h110l-55 74-55-74ZM16 380h36v74H16v-74Zm444 0h36v74h-36v-74Zm-222 0h36v74h-36v-74Zm-111 0h36v36h-36v-36Zm222 0h36v36h-36v-36Z" />',viewBox:"0 0 512 512"},pt={name:"gauge-radial",content:'<path d="M256 16C123.5 16 16 123.5 16 256s107.5 240 240 240 240-107.5 240-240S388.5 16 256 16Zm0 445.7c-113.4 0-205.7-92.3-205.7-205.7 0-113.4 92.3-205.7 205.7-205.7 113.4 0 205.7 92.3 205.7 205.7 0 113.4-92.3 205.7-205.7 205.7Zm0-377.1c94.7 0 171.4 76.7 171.5 171.5h-68.6c0-56.8-46.2-102.9-102.9-102.9-22.2 0-42.8 7-59.6 19l37.4 37.4c6.7-3.2 14.3-5 22.2-5 28.4 0 51.4 23 51.4 51.4s-23 51.4-51.4 51.4-51.4-23-51.4-51.4c0-8 1.8-15.5 5-22.2l-37.4-37.4c-11.9 16.9-19 37.4-19 59.6H84.6c0-41.2 14.5-78.9 38.7-108.5l-12.7-12.7 24.2-24.2 12.7 12.7c29.6-24.2 67.3-38.7 108.5-38.7Z" />',viewBox:"0 0 512 512"},ht={name:"envelope-box",content:'<path d="m377 182.4-88.8 88.8-31.2 29-33.2-29-88.8-88.8c-7.7 2-13.8 8.1-15.8 15.8l73 73-73 73c2 7.7 8.1 13.8 15.8 15.8l73-73 49 44.8 47-44.8 73 73c7.7-2 13.8-8.1 15.8-15.8l-73-73 73-73c-2-7.7-8.1-13.8-15.8-15.8zM448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-32 329.6c0 12.4-10 22.4-22.4 22.4H118.4C106 384 96 374 96 361.6V182.4c0-12.4 10-22.4 22.4-22.4h275.2c12.4 0 22.4 10 22.4 22.4v179.2z" />',viewBox:"0 0 512 512"},ft={name:"envelope-link",content:'<path d="M224 432c0-5.1.8-10.1 2.3-14.7C232.5 398 250.6 384 272 384h64c-1.5-1.9-3-3.8-4.6-5.6-14.6-16.2-35.8-26.4-59.4-26.4-12.2 0-23.8 2.7-34.1 7.6-4.4 2.1-8.6 4.6-12.5 7.4-16.4 11.8-28.2 29.7-32 50.4-.9 4.7-1.4 9.6-1.4 14.6 0 44.2 35.8 80 80 80 26.2 0 49.4-12.6 64-32h-64c-26.5 0-48-21.5-48-48zm208-80c-26.2 0-49.4 12.6-64 32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48h-64c14.6 19.4 37.8 32 64 32 44.2 0 80-35.8 80-80s-35.8-80-80-80zm0 64H272c-8.8 0-16 7.2-16 16s7.2 16 16 16h160c8.8 0 16-7.2 16-16s-7.2-16-16-16zM32 0C14.3 0 0 14.3 0 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H32zm23.7 32L224 200.3 392.3 32c11 2.9 19.7 11.6 22.6 22.6L310.6 158.9l104.3 104.3c-2.9 11-11.6 19.7-22.6 22.6L288 181.5l-64 64-64-64L55.7 285.8c-11-2.9-19.7-11.6-22.6-22.6l104.3-104.3L33.1 54.6C36 43.6 44.7 34.9 55.7 32z" />',viewBox:"0 0 512 512"},mt={name:"envelope",content:'<path d="M64 96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zm23.7 32L256 296.3 424.3 128c11 2.9 19.7 11.6 22.6 22.6L342.6 254.9l104.3 104.3c-2.9 11-11.6 19.7-22.6 22.6L320 277.5l-64 64-64-64L87.7 381.8c-11-2.9-19.7-11.6-22.6-22.6l104.3-104.3L65.1 150.6c2.9-11 11.6-19.7 22.6-22.6z" />',viewBox:"0 0 512 512"},vt={name:"warning-circle",content:'<path d="M256 480c123.7 0 224-100.3 224-224S379.7 32 256 32 32 132.3 32 256s100.3 224 224 224Zm-32-352v160h64V128h-64Zm0 256v-64h64v64h-64Z" />',viewBox:"0 0 512 512"},gt={name:"warning-triangle",content:'<path d="M256 32 0 480h512L256 32Zm-32 160h64v160h-64V192Zm0 256v-64h64v64h-64Z" />',viewBox:"0 0 512 512"},yt={name:"font-grow",content:'<path d="m384 32-96 128h192L384 32ZM222 96h-60L32 480h60l32.4-96h135.2l32.4 96h60L222 96Zm-78 230.4 48-141.7 48 141.7h-96Z" />',viewBox:"0 0 512 512"},bt={name:"font-shrink",content:'<path d="m384 160 96-128H288l96 128Zm-152 0h-48L80 480h48l25.9-80h108.2l25.9 80h48L232 160Zm-62.4 192L208 233.9 246.4 352h-76.8Z" />',viewBox:"0 0 512 512"},wt={name:"text-overflow",content:'<path d="M288 304v176h32V304h-32zm0-272v176h32V32h-32zM64 32v448h32V32H64zm288 288v-48H128v-32h224v-48l96 64-96 64z" />',viewBox:"0 0 512 512"},kt={name:"text-wrap-arrow",content:'<path d="M64 176v32h384v-32H64Zm0-64v32h384v-32H64Zm0 256v32h160v-32H64Zm0-64v32h160v-32H64Zm0 128v32h160v-32H64Zm288-32v.12c5.22.04 10.43.04 16.04-.12H352Zm94.44-64.64c-1.28 7.68-4.16 15.04-8 22.4-2.06 3.65-4.27 7.06-6.65 10.24-15.2 20.5-36.6 31.17-63.75 32H352v48l-96-64 96-64v48h14.12c18.88 0 33.28-7.68 43.2-23.68 2.24-3.84 3.84-7.68 5.12-11.52 2.24-8.32 2.24-16.96 0-24.96-2.88-10.56-9.28-20.48-18.88-26.88-8.64-6.08-18.24-8.96-28.8-8.96H64v-32h305.32c34.24.32 65.6 24.32 75.2 56.96.96 3.2 1.6 6.08 1.92 9.28 1.92 9.92 2.24 19.52 0 29.12ZM64 48v32h384V48H64Z" />',viewBox:"0 0 512 512"},xt={name:"text-truncate",content:'<path d="M448 32v384h-32V64H95.92L96 480H64V32h384Zm0 416h-32v32h32v-32Zm-64 .08h-31.92V480H384v-31.92Zm-64-.08h-32v32h32v-32Z" />',viewBox:"0 0 512 512"},zt={name:"text-clip",content:'<path d="M64 32v448h32V32H64Zm384 448V32h-32v448h32ZM320 320v-48H128v-32h192v-48l96 64-96 64Z" />',viewBox:"0 0 512 512"},Ct={name:"border-color",content:'<path d="M480 384v96H168l95.9-96H480Zm-80-182.14L121.86 480H32v-89.86L310.14 112 400 201.86Zm-65.28-24.89-22.4-22.4L82.56 384.01l-5.44 5.44 22.72 22.72L128 384.01l206.72-207.04Zm136.02-45.98L426.03 176 336 86.29l45.01-45.02c12.36-12.36 32.33-12.36 45.01 0l44.71 45.02c12.36 12.04 12.36 32.33 0 44.69l.01.01Z" />',viewBox:"0 0 512 512"},St={name:"border-type",content:'<path d="M479 96H33v64h446V96ZM96 384c0-17.67-14.33-32-32-32s-32 14.33-32 32 14.33 32 32 32 32-14.33 32-32Zm128 0c0-17.67-14.33-32-32-32s-32 14.33-32 32 14.33 32 32 32 32-14.33 32-32Zm128 0c0-17.67-14.33-32-32-32s-32 14.33-32 32 14.33 32 32 32 32-14.33 32-32Zm128 0c0-17.67-14.33-32-32-32s-32 14.33-32 32 14.33 32 32 32 32-14.33 32-32ZM224 224H32v64h192v-64Zm256 0H288v64h192v-64Z" />',viewBox:"0 0 512 512"},It={name:"undo",content:'<path d="M479.9 416c-57.7-56.6-136.7-96-223.9-96v128L32 256 256 64v128c122.2 0 221.5 102.4 223.9 224z" />',viewBox:"0 0 512 512"},Mt={name:"redo",content:'<path d="M256 192V64l224 192-224 192V320c-87.2 0-166.2 39.4-223.9 96C34.5 294.4 133.9 192 256 192z" />',viewBox:"0 0 512 512"},Et={name:"arrow-rotate-ccw",content:'<path d="m62 176 55.5 32C103.8 231.6 96 258.9 96 288c0 88.2 71.8 160 160 160s160-71.8 160-160-71.8-160-160-160v64L96 96 256 0v64c123.7 0 224 100.3 224 224S379.7 512 256 512 32 411.7 32 288c0-40.8 10.9-79.1 30-112z" />',viewBox:"0 0 512 512"},Ot={name:"arrow-rotate-cw",content:'<path d="M480 288c0 123.7-100.3 224-224 224S32 411.7 32 288 132.3 64 256 64V0l160 96-160 96v-64c-88.2 0-160 71.8-160 160s71.8 160 160 160 160-71.8 160-160c0-29.1-7.8-56.4-21.5-80l55.5-32c19.1 32.9 30 71.2 30 112z" />',viewBox:"0 0 512 512"},Ht={name:"arrows-no-repeat",content:'<path d="m321 434.2 47.5 47.5C335.5 501 297 512 256 512 132.3 512 32 411.7 32 288c0-41 11-79.5 30.3-112.6l47.5 47.5c-8.9 19.9-13.8 41.9-13.8 65 0 88.2 71.8 160 160 160 23.1.1 45.2-4.8 65-13.7zm118.3-17.5c12.9-18.3 23.1-38.7 30.1-60.4 6.9-21.5 10.6-44.5 10.6-68.3 0-40.8-10.9-79.1-30-112l-55.5 32c13.6 23.5 21.5 50.9 21.5 80 0 4.8-.2 9.5-.6 14.2-2.2 24.8-10.1 47.9-22.3 68.2L173.6 150.9c20.3-12.2 43.4-20.1 68.2-22.3 4.7-.4 9.4-.6 14.2-.6v64l160-96L256 0v64c-23.8 0-46.7 3.7-68.3 10.6-21.8 7-42.1 17.2-60.4 30.1L22.6 0 0 22.6 489.4 512l22.6-22.6-72.7-72.7z" />',viewBox:"0 0 512 512"},Nt={name:"arrow-rotate-ccw-small",content:'<path d="m101.4 238.6 46.4 12.4c-2.5 9.3-3.8 19-3.8 29 0 61.8 50.2 112 112 112s112-50.2 112-112-50.2-112-112-112v56l-128-80 128-80v56c88.4 0 160 71.6 160 160s-71.6 160-160 160S96 368.4 96 280c0-14.3 1.9-28.2 5.4-41.4z" />',viewBox:"0 0 512 512"},Pt={name:"arrow-rotate-cw-small",content:'<path d="M416 280c0 88.4-71.6 160-160 160S96 368.4 96 280s71.6-160 160-160V64l128 80-128 80v-56c-61.8 0-112 50.2-112 112s50.2 112 112 112 112-50.2 112-112c0-10-1.3-19.7-3.8-29l46.4-12.4c3.5 13.2 5.4 27.1 5.4 41.4z" />',viewBox:"0 0 512 512"},Vt={name:"clock",content:'<path d="M256 128h-32v160h160v-32H256V128zm0-96C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-105.9 0-192-86.1-192-192S150.1 64 256 64s192 86.1 192 192-86.1 192-192 192z" />',viewBox:"0 0 512 512"},Tt={name:"calendar",content:'<path d="M416 416H288V288h128v128zm64-352v384c0 17.6-14.4 32-32 32H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h64V0h64v32h128V0h64v32h64c17.6 0 32 14.4 32 32zm-32 128H64v255.9l.1.1 383.9-.1V192zm0-127.9c-.1-.1-.1-.1 0 0l-64-.1v32h-64V64H192v32h-64V64H64.1l-.1.1V160h384V64.1z" />',viewBox:"0 0 512 512"},Rt={name:"save",content:'<path d="M384 32H64c-17.6 0-32 14.4-32 32v384c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V128l-96-96zm-64 32v128h-64V64h64zm128 384-383.9.1-.1-.1V64.1l.1-.1H96v160h256V64h18.7l77.3 77.3V448z" />',viewBox:"0 0 512 512"},Dt={name:"print",content:'<path d="M448 160h-32V96l-64-64H128c-17.7 0-32 14.3-32 32v96H64c-17.6 0-32 14.4-32 32v160c0 17.6 14.4 32 32 32h32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32v-64h32c17.6 0 32-14.4 32-32V192c0-17.6-14.4-32-32-32zM128 64h192v64h64v64H128V64zm320 256h-64v127.9l-.1.1H128.1l-.1-.1V320H64v-32h384v32zm-288 0h192v32H160v-32zm0 64h160v32H160v-32z" />',viewBox:"0 0 512 512"},Bt={name:"pencil",content:'<path d="m334.9 86.6 45.3-45.3c12.4-12.4 32.8-12.4 45.3 0l45.3 45.3c12.4 12.4 12.4 32.8 0 45.3l-45.3 45.3-90.6-90.6zm-22.6 22.6L32 389.5V480h90.5l280.3-280.3-90.5-90.5zM99.9 412.1l-22.6-22.6 235-235 22.6 22.6-235 235z" />',viewBox:"0 0 512 512"},At={name:"trash",content:'<path d="M416 96h-96V64c0-17.6-14.4-32-32-32h-96c-17.6 0-32 14.4-32 32v32H64v64h32v288c0 17.6 14.4 32 32 32h224c17.6 0 32-14.4 32-32V160h32V96zM192 64h95.9l.1.1V96h-96c.1-.1.1-32.1 0-32zm160 384H128.1l-.1-.1V160h32v256h32V160h32v256h32V160h32v256h32V160h32v288z" />',viewBox:"0 0 512 512"},Lt={name:"paperclip",content:'<path d="M384 128v256h-32V128c0-52.9-43.1-96-96-96s-96 43.1-96 96v288c0 35.3 28.7 64 64 64s64-28.7 64-64V128c0-17.6-14.4-32-32-32s-32 14.4-32 32v256h-32V128c0-35.3 28.7-64 64-64s64 28.7 64 64v288c0 52.9-43.1 96-96 96s-96-43.1-96-96V128C128 57.4 185.4 0 256 0s128 57.4 128 128z" />',viewBox:"0 0 512 512"},_t={name:"paperclip-alt",content:'<path d="M407 452.1c-18.6 18.6-43 27.9-67.5 27.9s-48.9-9.3-67.6-27.9L69.3 249.4c-49.7-49.7-49.7-130.5 0-180.2s130.5-49.7 180.2 0l180.2 180.2-22.7 22.5L226.9 91.8c-37.2-37.2-97.9-37.2-135.1 0-37.2 37.2-37.2 97.9 0 135.1l202.7 202.7c24.8 24.8 65.2 24.8 90.1 0 24.8-24.8 24.8-65.2 0-90.1L181.9 136.8c-12.4-12.4-32.7-12.4-45 0s-12.4 32.7 0 45L317 362l-22.5 22.5-180.2-180.1c-24.8-24.8-24.8-65.2 0-90.1s65.2-24.8 90.1 0L407 317c37.3 37.2 37.3 97.9 0 135.1z" />',viewBox:"0 0 512 512"},Ft={name:"link",content:'<path d="M384 384c-47.4 0-88.7-25.8-110.8-64H384c35.4 0 64-28.6 64-64s-28.7-64-64-64H273.2c22.1-38.2 63.5-64 110.8-64 70.7 0 128 57.3 128 128s-57.3 128-128 128zM96 256c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32s-14.3 32-32 32H128c-17.7 0-32-14.3-32-32zm-32 0c0 35.4 28.6 64 64 64h110.8c-22.1 38.2-63.5 64-110.8 64C57.3 384 0 326.7 0 256s57.3-128 128-128c47.4 0 88.7 25.8 110.8 64H128c-35.4 0-64 28.6-64 64z" />',viewBox:"0 0 512 512"},jt={name:"unlink",content:'<path d="M384 384c-47.4 0-88.7-25.8-110.8-64H384c35.4 0 64-28.6 64-64s-28.7-64-64-64H273.2c22.1-38.2 63.5-64 110.8-64 70.7 0 128 57.3 128 128s-57.3 128-128 128zM64 256c0 35.4 28.6 64 64 64h110.8c-22.1 38.2-63.5 64-110.8 64C57.3 384 0 326.7 0 256s57.3-128 128-128c47.4 0 88.7 25.8 110.8 64H128c-35.3 0-64 28.6-64 64zM272 97.6V0h-32v97.6c5.2-1 10.5-1.6 16-1.6s10.8.6 16 1.6zm-60.1 11.7-69-69-22.6 22.6 69 69c5.9-9 13.6-16.7 22.6-22.6zm110.8 22.6 69-69-22.6-22.6-69 69c9 5.9 16.7 13.6 22.6 22.6zM256 416c-5.5 0-10.8-.6-16-1.6V512h32v-97.6c-5.2 1-10.5 1.6-16 1.6zm-66.7-35.9-69 69 22.6 22.6 69-69c-9-5.9-16.7-13.6-22.6-22.6zm110.8 22.6 69 69 22.6-22.6-69-69c-5.9 9-13.6 16.7-22.6 22.6z" />',viewBox:"0 0 512 512"},Kt={name:"link-vertical",content:'<path d="M128 384c0-47.4 25.8-88.7 64-110.8V384c0 35.4 28.6 64 64 64s64-28.7 64-64V273.2c38.2 22.1 64 63.5 64 110.8 0 70.7-57.3 128-128 128s-128-57.3-128-128zM256 96c17.7 0 32 14.3 32 32v256c0 17.7-14.3 32-32 32s-32-14.3-32-32V128c0-17.7 14.3-32 32-32zm0-32c-35.4 0-64 28.6-64 64v110.8c-38.2-22.1-64-63.5-64-110.8C128 57.3 185.3 0 256 0s128 57.3 128 128c0 47.4-25.8 88.7-64 110.8V128c0-35.4-28.6-64-64-64z" />',viewBox:"0 0 512 512"},Wt={name:"unlink-vertical",content:'<path d="M414.4 272H512v-32h-97.6c1 5.2 1.6 10.5 1.6 16s-.5 10.8-1.6 16zm-11.6-60.1 69-69-22.6-22.6-69 69c8.9 5.9 16.6 13.6 22.6 22.6zm-22.7 110.8 69 69 22.6-22.6-69-69c-5.9 9-13.6 16.7-22.6 22.6zM96 256c0-5.5.6-10.8 1.6-16H0v32h97.6c-1-5.2-1.6-10.5-1.6-16zm35.9-66.8-69-69-22.6 22.6 69 69c5.9-8.9 13.6-16.6 22.6-22.6zm-22.6 110.9-69 69 22.6 22.6 69-69c-9-5.9-16.7-13.6-22.6-22.6zM128 384c0-47.4 25.8-88.7 64-110.8V384c0 35.4 28.6 64 64 64s64-28.7 64-64V273.2c38.2 22.1 64 63.5 64 110.8 0 70.7-57.3 128-128 128s-128-57.3-128-128zM256 64c-35.4 0-64 28.6-64 64v110.8c-38.2-22.1-64-63.5-64-110.8C128 57.3 185.3 0 256 0s128 57.3 128 128c0 47.4-25.8 88.7-64 110.8V128c0-35.4-28.6-64-64-64z" />',viewBox:"0 0 512 512"},Ut={name:"lock",content:'<path d="M384 224h-32v-96c0-53-43-96-96-96s-96 43-96 96v96h-32c-17.6 0-32 14.4-32 32v192c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V256c0-17.6-14.4-32-32-32zm-192-96c0-35.3 28.7-64 64-64s64 28.7 64 64v96H192v-96zm64 256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z" />',viewBox:"0 0 512 512"},qt={name:"unlock",content:'<path d="M416 224H224v-96c0-53-43-96-96-96s-96 43-96 96v128h32V128c0-35.3 28.7-64 64-64s64 28.7 64 64v96h-32c-17.6 0-32 14.4-32 32v192c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V256c0-17.6-14.4-32-32-32zM288 384c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z" />',viewBox:"0 0 512 512"},$t={name:"cancel",content:'<path d="M256 32c-50.3 0-96.8 16.6-134.1 44.6-17.2 12.8-32.4 28.1-45.3 45.3C48.6 159.2 32 205.7 32 256c0 123.7 100.3 224 224 224 50.3 0 96.8-16.6 134.1-44.6 17.2-12.8 32.4-28.1 45.3-45.3 28-37.4 44.6-83.8 44.6-134.1 0-123.7-100.3-224-224-224zm0 384c-88.2 0-160-71.8-160-160 0-32.6 9.8-62.9 26.6-88.2l221.6 221.6C318.9 406.2 288.6 416 256 416zm133.4-71.8L167.8 122.6C193.1 105.8 223.4 96 256 96c88.2 0 160 71.8 160 160 0 32.6-9.8 62.9-26.6 88.2z" />',viewBox:"0 0 512 512"},Gt={name:"cancel-outline",content:'<path d="M256 32c-56.1 0-107.4 20.6-146.7 54.7-8.1 7-15.6 14.6-22.6 22.6C52.6 148.6 32 199.9 32 256c0 123.7 100.3 224 224 224 56.1 0 107.4-20.6 146.7-54.7 8.1-7 15.6-14.6 22.6-22.6C459.4 363.4 480 312.1 480 256c0-123.7-100.3-224-224-224zm0 416c-106 0-192-86-192-192 0-47.2 17.1-90.5 45.4-124L380 402.6c-33.5 28.3-76.8 45.4-124 45.4zm146.6-68L132 109.4C165.5 81.1 208.8 64 256 64c106 0 192 86 192 192 0 47.2-17.1 90.5-45.4 124z" />',viewBox:"0 0 512 512"},Zt={name:"cancel-circle",content:'<path d="m169.4 214.6 128 128c-12.5 6-26.6 9.4-41.4 9.4-52.9 0-96-43.1-96-96 0-14.8 3.4-28.8 9.4-41.4zM256 160c-14.8 0-28.8 3.4-41.4 9.4l128 128c6-12.5 9.4-26.6 9.4-41.4 0-52.9-43.1-96-96-96zm224 96c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-64 0c0-88.2-71.8-160-160-160-32.6 0-62.9 9.8-88.2 26.6-17.9 11.9-33.4 27.3-45.3 45.3C105.8 193.1 96 223.4 96 256c0 88.2 71.8 160 160 160 32.6 0 62.9-9.8 88.2-26.6 17.9-11.9 33.4-27.3 45.3-45.3 16.7-25.2 26.5-55.5 26.5-88.1z" />',viewBox:"0 0 512 512"},Yt={name:"check",content:'<path d="M434.7 82.7 480 128 192 416 32 256l45.3-45.3L192 325.5 434.7 82.7z" />',viewBox:"0 0 512 512"},Jt={name:"check-outline",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192zm-32-154-83-83-45 45 128 128 176-176-45-45-131 131z" />',viewBox:"0 0 512 512"},Xt={name:"check-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm-32 352L96 256l45-45 83 83 147-147 45 45-192 192z" />',viewBox:"0 0 512 512"},Qt={name:"x",content:'<path d="M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96l45.3 45.3z" />',viewBox:"0 0 512 512"},en={name:"x-outline",content:'<path d="M384 338.7 338.7 384 256 301.3 173.3 384 128 338.7l82.7-82.7-82.7-82.7 45.3-45.3 82.7 82.7 82.7-82.7 45.3 45.3-82.7 82.7 82.7 82.7zM256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192z" />',viewBox:"0 0 512 512"},tn={name:"x-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm128 306.7L338.7 384 256 301.3 173.3 384 128 338.7l82.7-82.7-82.7-82.7 45.3-45.3 82.7 82.7 82.7-82.7 45.3 45.3-82.7 82.7 82.7 82.7z" />',viewBox:"0 0 512 512"},nn={name:"plus",content:'<path d="M288 224V96h-64v128H96v64h128v128h64V288h128v-64H288z" />',viewBox:"0 0 512 512"},on={name:"plus-outline",content:'<path d="M288 288v96h-64v-96h-96v-64h96v-96h64v96h96v64h-96zM256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192z" />',viewBox:"0 0 512 512"},rn={name:"plus-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm32 256v96h-64v-96h-96v-64h96v-96h64v96h96v64h-96z" />',viewBox:"0 0 512 512"},an={name:"minus",content:'<path d="M96 224v64h320v-64H96z" />',viewBox:"0 0 512 512"},sn={name:"minus-outline",content:'<path d="M128 224h256v64H128v-64zM256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192z" />',viewBox:"0 0 512 512"},ln={name:"minus-circle",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zM128 288v-64h256v64H128z" />',viewBox:"0 0 512 512"},cn={name:"sort-asc",content:'<path d="M96 352h320v64H96v-64zm0-128h224v64H96v-64zm0-128h128v64H96V96z" />',viewBox:"0 0 512 512"},un={name:"sort-desc",content:'<path d="M96 96h320v64H96V96zm0 128h224v64H96v-64zm0 128h128v64H96v-64z" />',viewBox:"0 0 512 512"},dn={name:"sort-clear",content:'<path d="m110.9 224 64 64H96v-64h14.9zM96 416h128v-64H96v64zm214.6-128h9.4v-64h-73.4l-64-64H416V96H118.6l-64-64L32 54.6 457.4 480l22.6-22.6L310.6 288z" />',viewBox:"0 0 512 512"},pn={name:"sort-asc-small",content:'<path d="M256 192v224h-32V192h-96L240 64l112 128h-96z" />',viewBox:"0 0 512 512"},hn={name:"sort-desc-small",content:'<path d="M352 288 240 416 128 288h96V64h32v224h96z" />',viewBox:"0 0 512 512"},fn={name:"filter",content:'<path d="M64 64v32l160 160v224l64-64V256L448 96V64H64z" />',viewBox:"0 0 512 512"},mn={name:"filter-clear",content:'<path d="m143.5 64 168.2 168.2L288 256v160l-64 64V256L64 96V64h79.5zm236.1 100.4L448 96V64H279.3l-64-64L192 22l298 298 22-23.3-132.4-132.3z" />',viewBox:"0 0 512 512"},vn={name:"filter-small",content:'<path d="M128 128h256v32l-96 96v96l-64 64V256l-96-96v-32z" />',viewBox:"0 0 512 512"},gn={name:"filter-sort-asc-small",content:'<path d="M448 128v32l-96 96v64l-32 64V256l-96-96v-32h224zM64 224h64v160h32V224h64l-80-96-80 96z" />',viewBox:"0 0 512 512"},yn={name:"filter-sort-desc-small",content:'<path d="M448 128v32l-96 96v64l-32 64V256l-96-96v-32h224zM144 384l80-96h-64V128h-32v160H64l80 96z" />',viewBox:"0 0 512 512"},bn={name:"filter-add-expression",content:'<path d="M480 64v32H32V64h448zm-192 96h192v-32H288v32zm0 128h192v-64H288v64zm0 96h192v-32H288v32zm0 64h192v-32H288v32zM96 352h64v-64h64v-64h-64v-64H96v64H32v64h64v64z" />',viewBox:"0 0 512 512"},wn={name:"filter-add-group",content:'<path d="M352 352v32h-32v64h32v32h-64V352h64zm64 0v32h32v64h-32v32h64V352h-64zM160 160H96v64H32v64h64v64h64v-64h64v-64h-64v-64zm128 0h192v-32H288v32zM32 64v32h448V64H32zm256 224h192v-64H288v64z" />',viewBox:"0 0 512 512"},kn={name:"login",content:'<path d="M384 480h96V32h-96v448zM32 224v64h128v96l160-128-160-128v96H32z" />',viewBox:"0 0 512 512"},xn={name:"logout",content:'<path d="M128 32H32v448h96V32zm64 192v64h128v96l160-128-160-128v96H192z" />',viewBox:"0 0 512 512"},zn={name:"download",content:'<path d="M32 384v96h448v-96H32zM288 32h-64v128h-96l128 160 128-160h-96V32z" />',viewBox:"0 0 512 512"},Cn={name:"upload",content:'<path d="M32 384v96h448v-96H32zm192-64h64V192h96L256 32 128 192h96v128z" />',viewBox:"0 0 512 512"},Sn={name:"hyperlink-open",content:'<path d="M32 480h448V256h-32v192H64V64h192V32H32v448zM320 32l56.9 56.9.5.5L224 242.7l45.3 45.3 153.3-153.4L480 192V32H320z" />',viewBox:"0 0 512 512"},In={name:"hyperlink-open-sm",content:'<path d="M96 416h320v-96h-32v64H128V128h64V96H96v320zM256 96h160v160l-57.4-57.4L237.3 320 192 274.7l121.4-121.4-.5-.5L256 96z" />',viewBox:"0 0 512 512"},Mn={name:"launch",content:'<path d="M96 96v320h96v-32h-64V128h256v64h32V96H96zm320 160v160H256l57.4-57.4L192 237.3l45.3-45.3 121.4 121.4.5-.5L416 256z" />',viewBox:"0 0 512 512"},En={name:"window",content:'<path d="M96 96v320h320V96H96zm288 288H128V192h256v192z" />',viewBox:"0 0 512 512"},On={name:"window-restore",content:'<path d="M448 32v288h-32V128H160V32h288zM64 192h288v288H64V192zm32 256h224V288H96v160z" />',viewBox:"0 0 512 512"},Hn={name:"window-minimize",content:'<path d="M416 288v64H96v-64h320z" />',viewBox:"0 0 512 512"},Nn={name:"gear",content:'<path d="m462.7 317.9-41.5-31.4c1.8-9.9 2.8-20.1 2.8-30.5 0-10.4-1-20.6-2.8-30.5l41.5-31.4c6.4-4.9 8.2-13.8 4.2-20.8L433 114.6c-4-7-12.6-9.9-20.1-6.7l-48 20.2c-15.4-13.2-33.3-23.6-52.8-30.5L305.8 46c-1-8-7.8-14-15.9-14h-67.8c-8.1 0-14.9 6-15.9 14l-6.5 51.6c-19.5 6.9-37.4 17.3-52.8 30.5l-48-20.2c-7.4-3.1-16-.2-20.1 6.7l-33.9 58.7c-4 7-2.2 15.9 4.2 20.8l41.5 31.4C89 235.4 88 245.6 88 256c0 10.4 1 20.6 2.8 30.5l-41.5 31.4c-6.4 4.9-8.2 13.8-4.2 20.8L79 397.4c4 7 12.6 9.9 20.1 6.7l48-20.2c15.4 13.2 33.3 23.6 52.8 30.5l6.5 51.6c1 8 7.8 14 15.9 14h67.8c8.1 0 14.9-6 15.9-14l6.5-51.6c19.5-6.9 37.4-17.3 52.8-30.5l48 20.2c7.4 3.1 16 .2 20.1-6.7l33.9-58.7c3.7-7 1.9-15.9-4.6-20.8zM256 340c-46.4 0-84-37.6-84-84s37.6-84 84-84 84 37.6 84 84-37.6 84-84 84z" />',viewBox:"0 0 512 512"},Pn={name:"gears",content:'<path d="m331.9 364.2-29.6-22.4c1.3-7.1 2-14.3 2-21.8 0-7.4-.7-14.7-2-21.8l29.6-22.4c4.6-3.5 5.9-9.8 3-14.8l-24.2-42c-2.9-5-9-7.1-14.3-4.8L262 228.7c-11-9.4-23.8-16.9-37.7-21.8l-4.6-36.9c-.7-5.7-5.6-10-11.3-10H160c-5.8 0-10.6 4.3-11.3 10l-4.6 36.9c-13.9 4.9-26.7 12.4-37.7 21.8l-34.3-14.5c-5.3-2.2-11.5-.2-14.3 4.8l-24.3 42c-2.9 5-1.6 11.3 3 14.8l29.6 22.4c-1.3 7.1-2 14.3-2 21.8 0 7.4.7 14.7 2 21.8l-29.6 22.4c-4.6 3.5-5.9 9.8-3 14.8l24.2 42c2.9 5 9 7.1 14.3 4.8l34.3-14.5c11 9.4 23.8 16.9 37.7 21.8l4.6 36.9c.7 5.7 5.6 10 11.3 10h48.4c5.8 0 10.6-4.3 11.3-10l4.6-36.9c13.9-4.9 26.7-12.4 37.7-21.8l34.3 14.5c5.3 2.2 11.5.2 14.3-4.8l24.2-41.9c3-5 1.8-11.4-2.8-14.9zM184.2 380c-33.1 0-60-26.9-60-60s26.9-60 60-60 60 26.9 60 60-26.9 60-60 60zm293.1-225.5L459.4 141c.8-4.2 1.2-8.6 1.2-13 0-4.5-.4-8.8-1.2-13l17.8-13.4c2.7-2.1 3.5-5.9 1.8-8.9l-14.5-25.2c-1.8-3-5.4-4.2-8.6-2.8l-20.6 8.7c-6.7-5.7-14.3-10.1-22.7-13.1L409.9 38c-.4-3.4-3.3-6-6.8-6h-29c-3.4 0-6.4 2.5-6.8 6l-2.7 22.2c-8.3 2.9-16 7.5-22.7 13.1l-20.6-8.7c-3.2-1.4-6.9-.1-8.6 2.8l-14.5 25.2c-1.8 3-1 6.9 1.8 8.9l17.8 13.4c-.8 4.2-1.2 8.6-1.2 13 0 4.5.4 8.8 1.2 13L300 154.5c-2.7 2.1-3.5 5.9-1.8 8.9l14.5 25.2c1.8 3 5.4 4.2 8.6 2.8l20.6-8.7c6.7 5.7 14.3 10.1 22.7 13.1l2.7 22.2c.4 3.4 3.3 6 6.8 6h29c3.4 0 6.4-2.5 6.8-6l2.7-22.2c8.3-2.9 16-7.5 22.7-13.1l20.6 8.7c3.2 1.4 6.9.1 8.6-2.8l14.5-25.2c1.8-3 1-6.9-1.7-8.9zm-88.7 9.5c-19.9 0-36.1-16.2-36.1-36.1s16.2-36.1 36.1-36.1c19.9 0 36.1 16.2 36.1 36.1-.1 19.9-16.1 36.1-36.1 36.1z" />',viewBox:"0 0 512 512"},Vn={name:"wrench",content:'<path d="M470.7 402.7 306 238.1c9-18.8 14-39.8 14-62.1 0-79.5-64.5-144-144-144-22.2 0-43.3 5-62.1 14l76.4 76.4c12.4 12.4 12.4 32.8 0 45.3l-22.6 22.6c-12.4 12.4-32.8 12.4-45.3 0L46 113.9c-9 18.8-14 39.9-14 62.1 0 79.5 64.5 144 144 144 22.3 0 43.4-5.1 62.2-14.1l164.7 164.7c12.3 12.5 32.7 12.5 45.1.1l22.7-22.7c12.4-12.4 12.4-32.8 0-45.3zM448 425.5 425.4 448 265.8 288.5c8.3-6.7 15.9-14.3 22.6-22.6L448 425.5z" />',viewBox:"0 0 512 512"},Tn={name:"eye",content:'<path d="M256 128c-94.8 0-179.8 51.5-224 128 44.3 76.5 129.3 128 224 128s179.8-51.5 224-128c-44.2-76.5-129.2-128-224-128zm-32 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM69.8 256c18.4-26.4 44.8-48.7 72.6-65.1 12.2-7.2 25.1-13.2 38.4-17.9-22.6 20.5-36.8 50.1-36.8 83s14.2 62.5 36.8 83c-13.3-4.7-26.2-10.7-38.4-17.9-27.8-16.4-54.2-38.7-72.6-65.1zm299.8 65.1c-12.2 7.2-25.1 13.2-38.4 17.9 22.6-20.5 36.8-50.1 36.8-83s-14.2-62.5-36.8-83c13.3 4.7 26.2 10.7 38.4 17.9 27.8 16.4 54.2 38.7 72.6 65.1-18.5 26.4-44.8 48.7-72.6 65.1z" />',viewBox:"0 0 512 512"},Rn={name:"search",content:'<path d="M365.3 320h-22.7l-26.7-26.7C338.5 265.7 352 230.4 352 192c0-88.4-71.6-160-160-160S32 103.6 32 192s71.6 160 160 160c38.4 0 73.7-13.5 101.3-36.1l26.7 26.7v22.7L434.7 480l45.3-45.3L365.3 320zM64 192c0-70.7 57.3-128 128-128s128 57.3 128 128-57.3 128-128 128S64 262.7 64 192z" />',viewBox:"0 0 512 512"},Dn={name:"zoom-in",content:'<path d="M288 224h-64v64h-64v-64H96v-64h64V96h64v64h64v64zm192 210.7L434.7 480 320 365.3v-22.7l-26.7-26.7C265.7 338.5 230.4 352 192 352c-88.4 0-160-71.6-160-160S103.6 32 192 32s160 71.6 160 160c0 38.4-13.5 73.7-36.1 101.3l26.7 26.7h22.7L480 434.7zM192 320c70.7 0 128-57.3 128-128S262.7 64 192 64 64 121.3 64 192s57.3 128 128 128z" />',viewBox:"0 0 512 512"},Bn={name:"zoom-out",content:'<path d="M288 224H96v-64h192v64zm192 210.7L434.7 480 320 365.3v-22.7l-26.7-26.7C265.7 338.5 230.4 352 192 352c-88.4 0-160-71.6-160-160S103.6 32 192 32s160 71.6 160 160c0 38.4-13.5 73.7-36.1 101.3l26.7 26.7h22.7L480 434.7zM192 320c70.7 0 128-57.3 128-128S262.7 64 192 64 64 121.3 64 192s57.3 128 128 128z" />',viewBox:"0 0 512 512"},An={name:"arrows-move",content:'<path d="M384 320v-32h-96v96h32l-64 96-64-96h32v-96h-96v32l-96-64 96-64v32h96v-96h-32l64-96 64 96h-32v96h96v-32l96 64-96 64z" />',viewBox:"0 0 512 512"},Ln={name:"calculator",content:'<path d="M64 64v384h384V64H64zm96 352H96v-64h64v64zm0-96H96v-64h64v64zm96 96h-64v-64h64v64zm0-96h-64v-64h64v64zm160 96h-96V256h96v160zm0-224H96V96h320v96z" />',viewBox:"0 0 512 512"},_n={name:"cart",content:'<path d="M192 368c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm144-48c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM128 96V64H32v32h64v192h288v-32H128V96zm32 128h256v-32H160v32zm0-96v32h288v-32H160z" />',viewBox:"0 0 512 512"},Fn={name:"connector",content:'<path d="M416 112c0 26.51-21.49 48-48 48-20.898 0-38.667-13.359-45.258-32H256v288h-98.742c-6.591 18.641-24.36 32-45.258 32-26.51 0-48-21.49-48-48s21.49-48 48-48c20.898 0 38.667 13.359 45.258 32H224V96h98.742c6.591-18.641 24.36-32 45.258-32 26.51 0 48 21.49 48 48z" />',viewBox:"0 0 512 512"},jn={name:"plus-sm",content:'<path d="M352 224v64h-64v64h-64v-64h-64v-64h64v-64h64v64h64z" />',viewBox:"0 0 512 512"},Kn={name:"minus-sm",content:'<path d="M352 224v64H160v-64h192z" />',viewBox:"0 0 512 512"},Wn={name:"kpi-status-deny",content:'<path d="M480 256 256 480 32 256 256 32l224 224z" />',viewBox:"0 0 512 512"},Un={name:"kpi-status-hold",content:'<path d="M256 64 32 448h448L256 64z" />',viewBox:"0 0 512 512"},qn={name:"kpi-status-open",content:'<path d="M480 256c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224z" />',viewBox:"0 0 512 512"},$n={name:"equal",content:'<path d="M96 288h320v64H96v-64zm0-128v64h320v-64H96z" />',viewBox:"0 0 512 512"},Gn={name:"not-equal",content:'<path d="m290.7 224-37.3 64H416v64H216l-56 96h-48l56-96H96v-64h109.3l37.3-64H96v-64h184l56-96h48l-56 96h88v64H290.7z" />',viewBox:"0 0 512 512"},Zn={name:"less-or-equal",content:'<path d="m318.1 352-160-160 160-160L352 65.9 225.9 192 352 318.1 318.1 352zM128 416v32h256v-32H128z" />',viewBox:"0 0 512 512"},Yn={name:"greater-or-equal",content:'<path d="M160 318.1 286.1 192 160 65.9 193.9 32l160 160-160 160-33.9-33.9zM128 416v32h256v-32H128z" />',viewBox:"0 0 512 512"},Jn={name:"divide",content:'<path d="M416 64 192 448h-64L352 64h64z" />',viewBox:"0 0 512 512"},Xn={name:"accessibility",content:'<path d="M208 48c0-26.5 21.5-48 48-48s48 21.5 48 48-21.5 48-48 48-48-21.5-48-48zm240 112v-32H64v32l128 16v80l-32 224h48l32-160h32l32 160h48l-32-224v-80l128-16z" />',viewBox:"0 0 512 512"},Qn={name:"barcode-outline",content:'<path d="M96 384H64V128h32v256zm96-256h-64v224h64V128zm64 0h-32v224h32V128zm64 0h-32v224h32V128zm64 0h-32v224h32V128zm64 0h-32v256h32V128zm64-32v320c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h448c17.7 0 32 14.3 32 32zm-32 0H32v320h448V96z" />',viewBox:"0 0 512 512"},eo={name:"barcode",content:'<path d="M480 64H32C14.3 64 0 78.3 0 96v320c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM96 384H64V128h32v256zm96-32h-64V128h64v224zm64 0h-32V128h32v224zm64 0h-32V128h32v224zm64 0h-32V128h32v224zm64 32h-32V128h32v256z" />',viewBox:"0 0 512 512"},to={name:"barcode-scanner",content:'<path d="M32 96H0V0h96v32H32v64zm0 288H0v96h96v-32H32v-64zM416 0v32h64v64h32V0h-96zm64 448h-64v32h96v-96h-32v64zm-192-32h32V288h-32v128zm32-352h-32v128h32V64zm-64 0h-32v128h32V64zM128 416h64V288h-64v128zm-64 0h32V288H64v128zM192 64h-64v128h64V64zm32 352h32V288h-32v128zM64 64v128h32V64H64zm384 0h-32v128h32V64zm0 352V288h-32v128h32zm-96 0h32V288h-32v128zm32-352h-32v128h32V64zm96 160H32v32h448v-32z" />',viewBox:"0 0 512 512"},no={name:"qr-code-outline",content:'<path d="M192 224v32h-32v-32h32zm-64 64h32v-32h-32v32zm-32-64v32h32v-32H96zm-32 64h32v-32H64v32zm128 0h32v-32h-32v32zm64-64h-32v32h32v-32zm32-32h-32v32h32v-32zm-64-32v32h32v-32h-32zm64-32h-32v32h32v-32zm-64-32v32h32V96h-32zm64-32h-32v32h32V64zm32 192v-32h-32v32h32zm-96 32v32h32v-32h-32zm64-32h-32v32h32v-32zm0 64h-32v32h32v-32zm-64 32v32h32v-32h-32zm32 32v32h32v-32h-32zm-32 64h32v-32h-32v32zm64-96v32h32v-32h-32zm32-32v-32h-32v32h32zm32-32v-32h-32v32h32zm32-64h-32v32h32v-32zm32 64v-32h-32v32h32zm32-64h-32v32h32v-32zm-64 96v-32h-32v32h32zm-32 32v-32h-32v32h32zm0 32h32v-32h-32v32zm32-32h32v-32h-32v32zm64-32v-32h-32v32h32zm-128 64v32h32v-32h-32zm-32 64h32v-32h-32v32zm64 0h32v-32h-32v32zm32-32h32v-32h-32v32zm64-32v-32h-32v32h32zm0 64v-32h-32v32h32zM512 0v512H0V0h512zm-32 32H32v448h448V32zm-32 160H320V64h128v128zm-32-32-.5-64H352v64h64zm-224 32H64V64h128v128zm-32-32-.5-64H96v64h64zm32 288H64V320h128v128zm-32-32-.5-64H96v64h64z" />',viewBox:"0 0 512 512"},oo={name:"qr-code",content:'<path d="M320 0v192h192V0H320zm160 160H352V32h128v128zm-32-32h-64V64h64v64zM0 0v192h192V0H0zm160 160H32V32h128v128zm-32-32H64V64h64v64zM0 320v192h192V320H0zm160 160H32V352h128v128zm-32-32H64v-64h64v64zm32-224h32v32h-32v-32zm0 64h-32v-32h32v32zm-64-64h32v32H96v-32zm-32 32H32v-32h32v32zm32 32H64v-32h32v32zm128 0h-32v-32h32v32zm32-32h-32v-32h32v32zm0-64h32v32h-32v-32zm0 0h-32v-32h32v32zm0-64h32v32h-32v-32zm0 0h-32V96h32v32zm0-64h32v32h-32V64zm0 0h-32V32h32v32zm64 192h-32v-32h32v32zm-96 32h32v32h-32v-32zm64 0h-32v-32h32v32zm0 64h-32v-32h32v32zm-32 32h-32v-32h32v32zm0 0h32v32h-32v-32zm0 64h-32v-32h32v32zm64-64h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h32v32h-32v-32zm64 0h-32v-32h32v32zm32 32h-32v-32h32v32zm32-32h-32v-32h32v32zm-96 32h32v32h-32v-32zm0 64h-32v-32h32v32zm0 0h32v32h-32v-32zm32-32h32v32h-32v-32zm32-32h32v32h-32v-32zm-96 96h32v32h-32v-32zm0 64h-32v-32h32v32zm-32 32h-32v-32h32v32zm192-192h-32v-32h32v32zM352 416h32v32h-32v-32zm0 64h-32v-32h32v32zm64-64h-32v-32h32v32zm32-96h32v32h-32v-32zm0 64h-32v-32h32v32zm-32 32h32v32h-32v-32zm0 64h-32v-32h32v32zm64-64h-32v-32h32v32zm0 64h-32v-32h32v32zm32-32h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h-32v-32h32v32zM256 512h-32v-32h32v32zm64 0h-32v-32h32v32zm32-32h32v32h-32v-32zm64 0h32v32h-32v-32zm96 32h-32v-32h32v32z" />',viewBox:"0 0 512 512"},ro={name:"qr-code-scanner",content:'<path d="M512 0v96h-32V32h-64V0h96zm-32 448h-64v32h96v-96h-32v64zM64 64h128v128H64V64zm32 96h64V96H96v64zM32 32h64V0H0v96h32V32zm0 224h448v-32H32v32zm0 128H0v96h96v-32H32v-64zM288 96h-32v32h32V96zm-64-32v32h32V64h-32zm224 128H320V64h128v128zm-32-96h-64v64h64V96zm-128 96v-32h-32v32h32zm-32-64h-32v32h32v-32zM64 288h128v128H64V288zm32 96h64v-64H96v64zm192-64h-32v32h32v-32zm-64-32v32h32v-32h-32zm32 128h32v-32h-32v32zm-32-64v32h32v-32h-32zm96-64h-32v32h32v-32zm-32 64v32h32v-32h-32zm64 0v-32h-32v32h32zm-32 64h32v-32h-32v32zm64-128h-32v32h32v-32zm-32 64v32h32v-32h-32zm64 0v-32h-32v32h32zm0 64v-32h-32v32h32zm32-128h-32v32h32v-32zm0 96v-32h-32v32h32z" />',viewBox:"0 0 512 512"},io={name:"barcode-qr-code-scanner",content:'<path d="M256 288h32v128h-32V288zm64 128h64V288h-64v128zm128 0V288h-32v128h32zM32 32h64V0H0v96h32V32zm0 352H0v96h96v-32H32v-64zM416 0v32h64v64h32V0h-96zm64 448h-64v32h96v-96h-32v64zm0-224H32v32h448v-32zM288 64h-32v128h32V64zm96 0h-64v128h64V64zm64 0h-32v128h32V64zM64 64h96v96H64V64zm32 64h32V96H96v32zm128 32h-32v32h32v-32zm0-96h-32v64h32V64zM64 320h96v96H64v-96zm32 64h32v-32H96v32zm96 0v32h32v-64h-32v32zm0-64h32v-32h-32v32z" />',viewBox:"0 0 512 512"},ao={name:"signature",content:'<path d="M32 448h448v32H32v-32zM448 32H288v64h160V32zm-96 340.9L256 224l32-96h160l32 96-96 148.9V416h-32v-43.1zm0-59.1V256h32v57.8l60.8-94.3-19.9-59.5H311.1l-19.9 59.6 60.8 94.2zM78.8 377.3c8.7-10.3 23.9-25.6 37.2-17.3 14.9 9.3 25.1 42.1 56.9 43.8 27.2-.6 18.9-34.6 36.7-33.2 16.6 0 19.5 47.8 46.5 47.9 25.7.1 37.4-14.5 37.3-28 .1-29-62.5-87.7-85.4-98-21.4-9.6-34-2.3-39.7 6-5.3 7.9 9.3 34.5-13.7 41.2-17.3 1.5-29.2-33.2-62.1-33.2S77 354.1 32 352c13.1 6 32.8 42 46.8 25.3z" />',viewBox:"0 0 512 512"},so={name:"hand",content:'<path d="M442.5 130.7c-15.5-6.7-33.7-.2-41.4 15.1-8.2 21.3-23.3 79.9-25.8 87.6-2.1 6.5-5 12-11.3 9.7-4.7-1.7-3.5-7.2-2.4-12.6l2.7-17 18.1-112.4c2.8-17.4-9-33.8-26.5-36.6-17.4-2.8-33.8 9-36.6 26.5L304 197.9s-2.1 14.1-3 18.7c-1 5.2-1.4 12.3-7.7 11.9-5-.3-5.3-3.8-5.3-7.3V64c0-17.6-14.2-31.9-31.8-32h.1-.3c-17.7 0-32 14.3-32 32v.4c0 1.1.9 140.6.6 149.7-.2 5.4-.7 9.5-6.8 10.3-7.8 1.1-8.6-8-8.6-8l-3.1-20.9v.7L190 90.8v.1c-2.6-17.5-18.9-29.5-36.2-26.9-17.5 2.6-29.5 18.9-26.9 36.2 0 .1 0 .2.1.3l24.8 165.3 2.4 15.9c.5 3.2-.7 6.6-3.3 8.6l-.1.1c-4.1 3.1-10 2.5-13.5-1.4l-12.2-13.2-37.3-41-.1-.1c-11.9-13-32.1-14-45.3-2.1-13 11.9-14 32.1-2.1 45.2l55.7 61s34.1 49 62.5 88.4c28.3 39.3 72.3 52.4 129.5 52.4s113.9-21.8 126.9-95.4c13.7-78.5 6.5-107.9 23.7-150.4 11.6-28.9 15.1-45.8 21.1-63.2 5.4-15.6-1.9-33.3-17.2-39.9z" />',viewBox:"0 0 512 512"},lo={name:"pointer",content:'<path d="m285.5 326.1 43.9 124.4-83.5 29.5-43.8-124.2L128 416V32l256 288-98.5 6.1z" />',viewBox:"0 0 512 512"},co={name:"stick",content:'<path d="M192 96c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v32h128V96zm128 160c0 35.3-28.7 64-64 64s-64-28.7-64-64v-96H64v96c0 106 86 192 192 192s192-86 192-192v-96H320v96zm96-192h-64c-17.7 0-32 14.3-32 32v32h128V96c0-17.7-14.3-32-32-32z" />',viewBox:"0 0 512 512"},uo={name:"unstick",content:'<path d="M290.6 131.4c12.4-12.4 12.4-32.6 0-45l-45-45c-12.4-12.4-32.6-12.4-45 0L178 63.8l90.1 90 22.5-22.4zM268.1 334c-24.9 24.9-65.2 24.9-90.1 0s-24.9-65.2 0-90.1l67.5-67.5-90-90.1L88 153.9C13.4 228.5 13.4 349.4 88 424s195.5 74.6 270.1 0l67.5-67.5-90-90.1-67.5 67.6zm202.6-67.5-45-45c-12.4-12.4-32.6-12.4-45 0L358.2 244l90 90 22.5-22.5c12.4-12.4 12.4-32.6 0-45z" />',viewBox:"0 0 512 512"},po={name:"set-column-position",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM192 416H96V96h96v320zm224 0H224v-32h192v32zm0-64H224v-64h192v64zm0-96H224v-64h192v64zm0-96H224V96h192v64z" />',viewBox:"0 0 512 512"},ho={name:"clock-arrow-rotate",content:'<path d="M256 32C132.3 32 32 132.3 32 256h32c0-105.9 86.1-192 192-192s192 86.1 192 192-86.1 192-192 192c-57 0-108.3-25-143.5-64.5L176 320H32v144l57.8-57.8C130.8 451.5 190 480 256 480c123.7 0 224-100.3 224-224S379.7 32 256 32Zm-32 96v160h160v-32H256V128h-32Z" />',viewBox:"0 0 512 512"},fo={name:"play",content:'<path d="M0 512V0l512 256L0 512z" />',viewBox:"0 0 512 512"},mo={name:"pause",content:'<path d="M320 0h160v512H320V0zM32 512h160V0H32v512z" />',viewBox:"0 0 512 512"},vo={name:"stop",content:'<path d="M512 512H0V0h512v512z" />',viewBox:"0 0 512 512"},go={name:"rewind",content:'<path d="M256 256 512 96v320L256 256zm0 160V96L0 256l256 160z" />',viewBox:"0 0 512 512"},yo={name:"forward",content:'<path d="M0 416V96l256 160L0 416zm512-160L256 96v320l256-160z" />',viewBox:"0 0 512 512"},bo={name:"volume-down",content:'<path d="M0 352h96l128 128V32L96 160H0v192zm288 28V132c55.2 14.2 96 64.3 96 124s-40.8 109.8-96 124z" />',viewBox:"0 0 512 512"},wo={name:"volume-up",content:'<path d="M0 352h96l128 128V32L96 160H0v192zm288 28V132c55.2 14.2 96 64.3 96 124s-40.8 109.8-96 124zm0-380v44.8c45.2 0 88.3 20.8 121.2 58.4C444.6 143.6 464 197.8 464 256s-19.4 112.4-54.8 152.8c-33 37.7-76 58.4-121.2 58.4V512c123.7 0 224-114.6 224-256S411.7 0 288 0z" />',viewBox:"0 0 512 512"},ko={name:"volume-mute",content:'<path d="M96 160 224 32v448L96 352H0V160h96zm416 29.3L466.7 144 400 210.7 333.2 144 288 189.3l66.7 66.7-66.7 66.7 45.3 45.3 66.7-66.7 66.7 66.7 45.3-45.3-66.8-66.7 66.8-66.7z" />',viewBox:"0 0 512 512"},xo={name:"hd",content:'<path d="M480 64H32C14.4 64 0 78.4 0 96v320c0 17.6 14.4 32 32 32h448c17.6 0 32-14.4 32-32V96c0-17.6-14.4-32-32-32zM256 384h-64v-96h-64v96H64V128h64v96h64v-96h64v256zm210.3-68.9c-5.1 16.2-11.8 29.4-19.8 39.1-8.2 9.8-18.2 17.4-29.8 22.4-11.5 4.9-26.3 7.4-43.9 7.4H288V128h82.6c20.3 0 35.4 2.2 46.1 6.8 10.7 4.6 20.6 12.2 29.5 22.8 8.7 10.5 15.7 24.1 20.6 40.6 4.8 16.2 7.3 36.5 7.3 60.3-.1 21.5-2.7 40.6-7.8 56.6zm-54.2-94.2c2.6 8.5 3.9 20.5 3.9 35.6 0 14.5-1.3 26.3-3.9 35.1-2.5 8.4-5.5 14.4-8.9 18-3.3 3.5-7.5 6-12.8 7.7-3.8 1.2-11.8 2.7-28.3 2.7H336V192h12.9c21.4 0 30.6.9 34.5 1.7 6.9 1.4 12.6 4.1 17.5 8.4 4.9 4.5 8.7 10.8 11.2 18.8z" />',viewBox:"0 0 512 512"},zo={name:"closed-captions",content:'<path d="M480 64H32S0 64 0 96v320c0 32 32 32 32 32h448c32 0 32-32 32-32V96s0-32-32-32zM240 205c-6.1-4.5-13.5-7.8-21.9-10.1-8.5-2.3-17.1-3.5-25.8-3.5-18 0-32.2 5.8-42.6 17.4-10.4 11.6-15.6 27.4-15.6 47.3 0 19.8 5.2 35.4 15.6 46.9 10.4 11.5 24.3 17.2 41.7 17.2 16.1 0 32.3-4.6 47.6-13.8V373c-17.2 7.4-38.2 11-62.1 11-23.4 0-43.6-5-60.6-15.1s-29.9-24.4-38.9-43-13.4-40-13.4-64.3c0-26.1 5-49.4 15-69.7 10-20.4 24.2-36.1 42.5-47.2s39.4-16.7 63.2-16.7c19 0 37.4 2.6 55.3 7.8V205zm208 0c-6.1-4.5-13.5-7.8-21.9-10.1-8.5-2.3-17.1-3.5-25.8-3.5-18 0-32.2 5.8-42.6 17.4-10.4 11.6-15.6 27.4-15.6 47.3 0 19.8 5.2 35.4 15.6 46.9s24.3 17.2 41.7 17.2c16.1 0 32.3-4.6 47.6-13.8V373c-17.2 7.4-38.2 11-62.1 11-23.4 0-43.6-5-60.6-15.1s-29.9-24.4-38.9-43-13.4-40-13.4-64.3c0-26.1 5-49.4 15-69.7 10-20.4 24.2-36.1 42.5-47.2s39.4-16.7 63.2-16.7c19 0 37.4 2.6 55.3 7.8V205z" />',viewBox:"0 0 512 512"},Co={name:"playlist",content:'<path d="M0 256h320v64H0v-64zM512 64H0V0h512v64zm-128 64.8V397c-13.4-8-30-12.8-48-12.8-44.2 0-80 28.7-80 64s35.8 64 80 64 80-28.7 80-64V193h96v-65l-128 .8zM0 128v64h320v-64H0z" />',viewBox:"0 0 512 512"},So={name:"music-notes",content:'<path d="M160 170v-64m0-.2v259c-13.4-8-30-12.8-48-12.8-44.2 0-80 28.7-80 64s35.8 64 80 64 80-28.7 80-64V162.5l256-59.1v165.4c-13.4-8-30-12.8-48-12.8-44.2 0-80 28.7-80 64s35.8 64 80 64 80-28.7 80-64V32l-320 73.8z" />',viewBox:"0 0 512 512"},Io={name:"play-sm",content:'<path d="M96 416V96l320 160L96 416z" />',viewBox:"0 0 512 512"},Mo={name:"pause-sm",content:'<path d="M288 96h96v320h-96V96zM96 416h96V96H96v320z" />',viewBox:"0 0 512 512"},Eo={name:"stop-sm",content:'<path d="M416 416H96V96h320v320z" />',viewBox:"0 0 512 512"},Oo={name:"heart-outline",content:'<path d="M447.2 96.8c-43.7-43.7-114.7-43.7-158.4 0L256 129.6l-32.8-32.8c-43.7-43.7-114.7-43.7-158.4 0s-43.7 116.3 0 160l32.8 32.8L256 448l158.4-158.4 32.8-32.8c43.7-43.7 43.7-116.3 0-160zm-22.6 137.4L256 402.7 87.4 234.2C72.3 219.1 64 198.7 64 176.8s8.3-42.3 23.4-57.4C102.5 104.3 122.6 96 144 96s41.5 8.3 56.6 23.4l55.4 55.4 55.4-55.4C326.5 104.3 346.6 96 368 96s41.5 8.3 56.6 23.4c15.1 15.1 23.4 35.5 23.4 57.4s-8.3 42.3-23.4 57.4z" />',viewBox:"0 0 512 512"},Ho={name:"heart",content:'<path d="m447.2 256.8-32.8 32.8L256 448 97.6 289.6l-32.8-32.8c-43.7-43.7-43.7-116.3 0-160s114.7-43.7 158.4 0l32.8 32.8 32.8-32.8c43.7-43.7 114.7-43.7 158.4 0s43.7 116.3 0 160z" />',viewBox:"0 0 512 512"},No={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1l122-111.7zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5-90.9-57.9z" />',viewBox:"0 0 512 512"},Po={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480 256 391.5z" />',viewBox:"0 0 512 512"},Vo={name:"checkbox",content:'<path d="M64 64v384h384V64H64zm352 352H96V96h320v320z" />',viewBox:"0 0 512 512"},To={name:"checkbox-checked",content:'<path d="M64 64v384h384V64H64zm352 352H96V96h320v320zm-77.3-269.3L384 192 224 352l-96-96 45.3-45.3 50.7 50.7 114.7-114.7z" />',viewBox:"0 0 512 512"},Ro={name:"checkbox-indeterminate",content:'<path d="M128 128h256v256H128V128zM64 64v384h384V64H64zm352 352H96V96h320v320z" />',viewBox:"0 0 512 512"},Do={name:"checkbox-null",content:'<path d="M192 64h128v32H192V64zm224 0h-64v32h64v64h32V64h-32zm0 256h32V192h-32v128zm0 96h-64v32h96v-96h-32v64zm-224 32h128v-32H192v32zm-96-96H64v96h96v-32H96v-64zm0-160H64v128h32V192zM64 64v96h32V96h64V64H64z" />',viewBox:"0 0 512 512"},Bo={name:"circle",content:'<path d="M384 256c0 70.7-57.3 128-128 128s-128-57.3-128-128 57.3-128 128-128 128 57.3 128 128z" />',viewBox:"0 0 512 512"},Ao={name:"radiobutton",content:'<path d="M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64zm0 352c-88.4 0-160-71.6-160-160S167.6 96 256 96s160 71.6 160 160-71.6 160-160 160z" />',viewBox:"0 0 512 512"},Lo={name:"radiobutton-checked",content:'<path d="M351.6 255.3c0 53.2-43.1 96.4-96.4 96.4s-96.4-43.1-96.4-96.4 43.1-96.4 96.4-96.4 96.4 43.2 96.4 96.4zM256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64zm0 352c-88.4 0-160-71.6-160-160S167.6 96 256 96s160 71.6 160 160-71.6 160-160 160z" />',viewBox:"0 0 512 512"},_o={name:"bell",content:'<path d="M192 416h128c0 35.3-28.7 64-64 64s-64-28.7-64-64zm160-256c0-42-26.9-77.6-64.4-90.7.3-1.7.4-3.5.4-5.3 0-17.7-14.3-32-32-32s-32 14.3-32 32c0 1.8.2 3.6.4 5.3C186.9 82.4 160 118 160 160c0 88.4-43 160-96 160v64h384v-64c-53 0-96-71.6-96-160z" />',viewBox:"0 0 512 512"},Fo={name:"info-circle",content:'<path d="M288 352h32v32H192v-32h32v-96h-32v-32h96v128zm0-224h-64v64h64v-64zm192 128c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-32 0c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" />',viewBox:"0 0 512 512"},jo={name:"question-circle",content:'<path d="M352 192c0 45.2-23.4 65.9-40.6 81-15.1 13.3-23.4 20.7-23.4 47h-64c0-55.2 27.1-79.2 45.1-95 13.8-12.1 18.9-16.7 18.9-33 0-17.6-14.4-32-32-32s-32 14.4-32 32h-64c0-53 43-96 96-96s96 43 96 96zM224 416h64v-64h-64v64zm256-160c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-32 0c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" />',viewBox:"0 0 512 512"},Ko={name:"exclamation-circle",content:'<path d="M224 128h64v160h-64V128zm0 256h64v-64h-64v64zm256-128c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-32 0c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" />',viewBox:"0 0 512 512"},Wo={name:"camera",content:'<path d="M448 128h-64l-64-64H192l-64 64H64c-17.6 0-32 14.4-32 32v288c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V160c0-17.6-14.4-32-32-32zM256 416c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112zm64-112c0 35.3-28.7 64-64 64s-64-28.7-64-64 28.7-64 64-64 64 28.7 64 64z" />',viewBox:"0 0 512 512"},Uo={name:"image",content:'<path d="M304 160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm144-96H64c-17.6 0-32 14.4-32 32v320c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V96c0-17.6-14.4-32-32-32zm-.1 272-64-64-80 80L176 224 64 336V96.1l.1-.1h383.8l.1.1-.1 239.9z" />',viewBox:"0 0 512 512"},qo={name:"image-export",content:'<path d="M384 384v-79.9l-32-32-80 80-128-128-112 112v-240l.1-.1h383.8l.1.1-.1 223.9H448V96c0-17.6-14.4-32-32-32H32C14.4 64 0 78.4 0 96v320c0 17.6 14.4 32 32 32h256v-64h96zM272 160c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm48 288h96v64l96-80-96-80v64h-96v32z" />',viewBox:"0 0 512 512"},$o={name:"zoom-actual-size",content:'<path d="M0 32v128L128 32H0zm384 0 128 128V32H384zm-260.6 96c-15.1 0-27.4 12.3-27.4 27.4v201.2c0 15.1 12.3 27.4 27.4 27.4h265.2c15.1 0 27.4-12.3 27.4-27.4V155.4c0-15.1-12.3-27.4-27.4-27.4H123.4zM384 160v160l-48-64-48 64-80-96-80 96V160h256zm-96 32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM0 352v128h128L0 352zm512 0L384 480h128V352z" />',viewBox:"0 0 512 512"},Go={name:"zoom-best-fit",content:'<path d="M388.6 128H123.4c-15.1 0-27.4 12.3-27.4 27.4v201.2c0 15.1 12.3 27.4 27.4 27.4h265.2c15.1 0 27.4-12.3 27.4-27.4V155.4c0-15.1-12.3-27.4-27.4-27.4zM384 320l-48-64-48 64-80-96-80 96V160h256v160zM0 160l96 96-96 96V160zm160 320 96-96 96 96H160zM352 32l-96 96-96-96h192zm160 128v192l-96-96 96-96zm-256 64c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32z" />',viewBox:"0 0 512 512"},Zo={name:"image-resize",content:'<path d="M427.3 404.7 352 329.4V32H32v320h297.4l75.3 75.3L352 480h128V352l-52.7 52.7zM64 320V64h256v233.4L203.3 180.7 256 128H128v128l52.7-52.7L297.4 320H64z" />',viewBox:"0 0 512 512"},Yo={name:"crop",content:'<path d="M0 96h64v64H0V96zm448 256v64h64v-64h-64zm-32-224c0-17.6-14.4-32-32-32H192v64h160v320h64V128zM96 384c0 17.6 14.4 32 32 32h192v-64H160V32H96v352z" />',viewBox:"0 0 512 512"},Jo={name:"mirror",content:'<path d="M192 64H32v384h160V64zm-31 352s0 .1 0 0l-96.9.1-.1-.1V96.1l.1-.1H160v320h1zm95 64h-32V32h32v448zm32-416h160v384H288V64z" />',viewBox:"0 0 512 512"},Xo={name:"flip-horizontal",content:'<path d="M448 448H288V64l160 384zm-384 0L224 64v384H64zm128-224-80 192h80V224z" />',viewBox:"0 0 512 512"},Qo={name:"flip-vertical",content:'<path d="M64 288h384L64 448V288zm0-224v160h384L64 64zm32 128v-80l192 80H96z" />',viewBox:"0 0 512 512"},er={name:"rotate",content:'<path d="M256 448c8.2 0 16.2-.6 24-1.8v32.3c-7.9 1-15.9 1.5-24 1.5s-16.1-.5-24-1.5v-32.3c7.8 1.2 15.8 1.8 24 1.8zm-116-7c12.7 9.7 26.6 17.8 41.5 24l16.2-28c-15.1-5.9-29.1-14.1-41.5-24.1L140 441zm-61-78.5c6.3 14.9 14.4 28.8 24 41.5l28-16.2c-10-12.5-18.1-26.4-24.1-41.5L79 362.5zM256 128v64l128-80-128-80v64c-8.1 0-16.1.5-24 1.5-17.7 2.2-34.6 6.8-50.5 13.5-14.9 6.3-28.8 14.4-41.5 24-14 10.6-26.4 23-37 37-9.7 12.7-17.8 26.6-24 41.5-6.7 15.9-11.3 32.8-13.5 50.5-1 7.9-1.5 15.9-1.5 24s.5 16.1 1.5 24h32.3c-1.2-7.8-1.8-15.8-1.8-24s.6-16.2 1.8-24c1.8-11.9 4.9-23.4 9.2-34.3 5.9-15.1 14.1-29.1 24.1-41.5 7.4-9.3 15.8-17.7 25.1-25.1 12.5-10 26.4-18.1 41.5-24.1 10.9-4.3 22.4-7.4 34.3-9.2 7.8-1.2 15.8-1.8 24-1.8zm190.5 136h-32.3c1.2 7.8 1.8 15.8 1.8 24s-.6 16.2-1.8 24h32.3c1-7.9 1.5-15.9 1.5-24s-.5-16.1-1.5-24zm-65.6 123.8 28 16.2c9.7-12.7 17.8-26.6 24-41.5l-28-16.2c-5.8 15.1-14 29.1-24 41.5zM314.3 437l16.2 28c14.9-6.3 28.8-14.4 41.5-24l-16.2-28c-12.4 9.9-26.4 18.1-41.5 24z" />',viewBox:"0 0 512 512"},tr={name:"rotate-right",content:'<path d="M320 448V64l160 384H320zm-32 0H32l256-160v160zm-32-102.3L143.6 416H256v-70.3zM64 160v128h32v-96h96v64l96-80-96-80v64H64z" />',viewBox:"0 0 512 512"},nr={name:"rotate-left",content:'<path d="M32 448 192 64v384H32zm192-160 256 160H224V288zm32 128h112.4L256 345.7V416zm64-256V96l-96 80 96 80v-64h96v96h32V160H320z" />',viewBox:"0 0 512 512"},or={name:"brush",content:'<path d="M32 480s46.4-5.6 96-16c22.3-4.7 46.9-14 70.7-37.7 56.9-56.9.2-112.9.2-112.9s-56.7-56.9-113.3-.2c-23.4 23.4-20.1 57.1-19.7 89.8.8 59.7-33.9 77-33.9 77zM470.7 64 448 41.3c-12.4-12.4-32.8-12.4-45.3 0L204.3 239.8c11.5 5.8 20.8 12.2 27.7 17.6 5.3 4.2 9.2 7.7 11.3 9.8l.8.8.8.8c2.1 2.1 5.6 5.9 9.7 11.1 5.4 6.8 11.8 16.2 17.6 27.6l23.5-23.5 174.9-174.9c12.5-12.3 12.5-32.7.1-45.1zM448 86.6 277.4 257.3c-4.8-5.8-8.6-9.9-10.6-11.9-2.3-2.3-6.3-6.1-12-10.7L425.4 64h.1L448 86.6z" />',viewBox:"0 0 512 512"},rr={name:"palette",content:'<path d="m206 256.6 160-160c-2.2-5.7-4.8-11.1-7.9-16.3-24.2-40.8-60.1-66-107.8-75.9-2.3-.5-4.7-1-7.1-1.4C192-5.8 143.1 4.8 96.5 34.6 49.3 64.7 19.2 107.2 6.1 162c-13 54.8-5.2 106.4 23.4 154.6 14.2 23.8 31.3 43.2 51.4 58.4 3.8-25.2 13.4-52 36.4-75 31.3-31.4 64-41.3 88.7-43.4zM288 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-96-32c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM64 256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm0-128c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm438.7 12.9L480 118.3c-12.4-12.4-32.8-12.4-45.3 0L281.1 271.9c11.5 5.8 20.8 12.2 27.7 17.6 5.3 4.2 9.2 7.7 11.3 9.8l11.3 12.7c5.4 6.8 11.8 16.2 17.6 27.6l153.5-153.5c12.6-12.4 12.6-32.8.2-45.2zM354.3 289.3c-4.8-5.8-8.6-9.9-10.6-11.9-2.3-2.3-6.3-6.1-12-10.7L457.4 141h.1l22.5 22.5-125.7 125.8zm-78.7 169c-23.8 23.7-48.4 33-70.7 37.7-49.6 10.4-96 16-96 16s34.7-17.3 33.9-77c-.4-32.7-3.7-66.4 19.7-89.8 56.6-56.7 113.3.2 113.3.2s56.7 56-.2 112.9z" />',viewBox:"0 0 512 512"},ir={name:"droplet",content:'<path d="M256 384v32c-53 0-96-43-96-96h32c0 35.3 28.7 64 64 64zm160-72c0 92.8-71.6 168-160 168S96 404.8 96 312C96 181.3 256 32 256 32s160 149.3 160 280zm-32 0c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-47.8 64.3-73 122.8-73 169 0 75 57.4 136 128 136s128-61 128-136z" />',viewBox:"0 0 512 512"},ar={name:"shape-line",content:'<path d="M480 54.6 54.6 480 32 457.4 457.4 32 480 54.6z" />',viewBox:"0 0 512 512"},sr={name:"brightness-contrast",content:'<path d="M165.5 346.5c12.4 12.5 12.4 32.9 0 45.3l-22.6 22.6c-12.5 12.4-32.8 12.4-45.3 0-12.4-12.5-12.4-32.9 0-45.3l22.6-22.6c12.5-12.4 32.9-12.4 45.3 0zM256 128c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v32c0 17.6 14.4 32 32 32zm135.8 37.5 22.6-22.6c12.4-12.4 12.4-32.8 0-45.3-12.4-12.4-32.8-12.4-45.3 0l-22.6 22.6c-12.4 12.4-12.4 32.8 0 45.3 12.5 12.4 32.8 12.4 45.3 0zm-271.6 0c12.4 12.4 32.8 12.4 45.3 0 12.4-12.4 12.4-32.8 0-45.3l-22.6-22.6c-12.4-12.4-32.8-12.4-45.3 0-12.4 12.5-12.4 32.8 0 45.3l22.6 22.6zM128 256c0-17.6-14.4-32-32-32H64c-17.6 0-32 14.4-32 32s14.4 32 32 32h32c17.6 0 32-14.4 32-32zm263.8 90.5c-12.4-12.4-32.8-12.4-45.3 0-12.4 12.5-12.4 32.8 0 45.3l22.6 22.6c12.4 12.4 32.8 12.4 45.3 0 12.4-12.4 12.4-32.8 0-45.3l-22.6-22.6zM448 224h-32c-17.6 0-32 14.4-32 32s14.4 32 32 32h32c17.6 0 32-14.4 32-32s-14.4-32-32-32zm-96 32c0 53-43 96-96 96s-96-43-96-96 43-96 96-96 96 43 96 96zm-32 0c0-35.3-28.7-64-64-64v128c35.3 0 64-28.7 64-64zm-64 128c-17.6 0-32 14.4-32 32v32c0 17.6 14.4 32 32 32s32-14.4 32-32v-32c0-17.6-14.4-32-32-32z" />',viewBox:"0 0 512 512"},lr={name:"sliders",content:'<path d="M480 96v32H285.3c-6.6 18.6-24.4 32-45.3 32s-38.7-13.4-45.3-32H32V96h162.7c6.6-18.6 24.4-32 45.3-32s38.7 13.4 45.3 32H480zm-112 96c-20.9 0-38.7 13.4-45.3 32H32v32h290.7c6.6 18.6 24.4 32 45.3 32s38.7-13.4 45.3-32H480v-32h-66.7c-6.6-18.6-24.4-32-45.3-32zM176 320c-20.9 0-38.7 13.4-45.3 32H32v32h98.7c6.6 18.6 24.4 32 45.3 32s38.7-13.4 45.3-32H480v-32H221.3c-6.6-18.6-24.4-32-45.3-32z" />',viewBox:"0 0 512 512"},cr={name:"invert-colors",content:'<path d="m320 32-64 48 64 48V96h64v64h-32l48 64 48-64h-32V64h-96V32zM32 64v192h192V64H32zm192 192v192h192V256H224zM64 96h128v128H64V96z" />',viewBox:"0 0 512 512"},ur={name:"transparency",content:'<path d="M64 64v352h352V64H64zm32 32h96v96h96V96h96v96h-96v96h96v96h-96v-96h-96v96H96v-96h96v-96H96V96z" />',viewBox:"0 0 512 512"},dr={name:"grayscale",content:'<path d="M32 64C14.3 64 0 78.3 0 96v320c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32H32zm0 32h416v320H32V96zm48 32c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16zm64 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16zm0 4c6.6 0 12 5.4 12 12v224c0 6.6-5.4 12-12 12s-12-5.4-12-12V144c0-6.6 5.4-12 12-12zm-64 1c6.1 0 11 4.9 11 11v224c0 6.1-4.9 11-11 11s-11-4.9-11-11V144c0-6.1 4.9-11 11-11zm-64 2c5 0 9 4 9 9v224c0 5-4 9-9 9s-9-4-9-9V144c0-5 4-9 9-9zm-64 1c4.4 0 8 3.6 8 8v224c0 4.4-3.6 8-8 8s-8-3.6-8-8V144c0-4.4 3.6-8 8-8zm-64 4c2.2 0 4 1.8 4 4v224c0 2.2-1.8 4-4 4s-4-1.8-4-4V144c0-2.2 1.8-4 4-4z" />',viewBox:"0 0 512 512"},pr={name:"blur",content:'<path d="M384 320c0 64-32 128-128 128-64 0-128-48-128-128 0-96 128-128 128-256 0 0 128 129.1 128 256z" />',viewBox:"0 0 512 512"},hr={name:"sharpen",content:'<path d="M256 32 128 480h256L256 32zm0 116.5L341.6 448H170.4L256 148.5z" />',viewBox:"0 0 512 512"},fr={name:"shapes",content:'<path d="M480 32H160v131.204C86.969 178.029 32 242.594 32 320c0 88.365 71.635 160 160 160 77.406 0 141.972-54.969 156.797-128H480V32zM192 448c-70.692 0-128-57.308-128-128 0-59.643 40.793-109.758 96-123.967 1.173-.302 2.354-.583 3.539-.852.357-.081.717-.156 1.076-.234a125.086 125.086 0 0 1 3.764-.762 126.34 126.34 0 0 1 2.557-.448c.369-.061.736-.125 1.105-.184 2.423-.379 4.869-.69 7.335-.932.379-.037.759-.067 1.139-.101a132.167 132.167 0 0 1 3.913-.29c.872-.051 1.747-.091 2.623-.125.392-.015.782-.033 1.174-.045 1.254-.036 2.512-.06 3.775-.06 70.692 0 128 57.308 128 128 0 1.264-.023 2.521-.06 3.775-.012.393-.03.782-.045 1.174a126.511 126.511 0 0 1-.207 3.922c-.06.874-.13 1.744-.207 2.613-.034.38-.064.761-.102 1.14a127.326 127.326 0 0 1-.933 7.339c-.057.365-.121.728-.181 1.092a128.132 128.132 0 0 1-.683 3.785c-.17.86-.349 1.718-.535 2.571-.075.346-.147.692-.226 1.037a135.047 135.047 0 0 1-.855 3.552c-14.208 55.207-64.323 96-123.966 96zm256-128h-96c0-88.365-71.635-160-160-160V64h256v256z" />',viewBox:"0 0 512 512"},mr={name:"round-corners",content:'<path d="M448 320c0 70.692-57.308 128-128 128H192c-70.692 0-128-57.308-128-128V192c0-70.692 57.308-128 128-128h128c70.692 0 128 57.308 128 128v128z" />',viewBox:"0 0 512 512"},vr={name:"bring-to-front",content:'<path d="M96 128V96h96V64H64v128h32v-64zm224 256h64V128H128v256h192zm96-64v96h-96v32h128V320h-32z" />',viewBox:"0 0 512 512"},gr={name:"bring-to-back",content:'<path d="M128 192h64V64H64v128h64zM96 96h64v64H96V96zm192 192h96V128H224v96h-96v160h160v-96zm128 32h-96v128h128V320h-32zm0 96h-64v-64h64v64z" />',viewBox:"0 0 512 512"},yr={name:"bring-forward",content:'<path d="M448 192v256H192V320H64V64h256v128h128zm-32 32h-96v96h-96v96h192V224z" />',viewBox:"0 0 512 512"},br={name:"bring-backward",content:'<path d="M192 192v256h256V192H192zm224 224H224V224h192v192zM320 64H64v256h96V160h160V64z" />',viewBox:"0 0 512 512"},wr={name:"align-self-start",content:'<path d="M31 32h32v448H31V32zm288 64H95v128h224V96zm128 192v128H95V288h352zm-32 32H127v64h288v-64z" />',viewBox:"0 0 512 512"},kr={name:"align-self-center",content:'<path d="M255 288v-64h96V96h-96V32h-32v64h-96v128h96v64H63v128h160v64h32v-64h160V288H255zm128 96H95v-64h288v64z" />',viewBox:"0 0 512 512"},xr={name:"align-self-end",content:'<path d="M64 416h352V288H64v128zm32-96h288v64H96v-64zm96-224h224v128H192V96zm288-64v448h-32V32h32z" />',viewBox:"0 0 512 512"},zr={name:"align-self-start-alt",content:'<path d="M95 96h128v224H95V96zm192 0h128v352H287V96zm32 320h64V128h-64v288zM31 32v32h448V32H31z" />',viewBox:"0 0 512 512"},Cr={name:"align-self-center-alt",content:'<path d="M415 224V64H287v160h-64v-96H95v96H31v32h64v96h128v-96h64v160h128V256h64v-32h-64zm-32 0v160h-64V96h64v128z" />',viewBox:"0 0 512 512"},Sr={name:"align-self-end-alt",content:'<path d="M479 449v32H31v-32h448zM223 193H95v224h128V193zm192 224H287V65h128v352zM383 97h-64v288h64V97z" />',viewBox:"0 0 512 512"},Ir={name:"thumbnails-up",content:'<path d="M352 32h96v96h-96V32zm-160 0h96v96h-96V32zM32 32h96v96H32V32zm0 160h416v256H32V192z" />',viewBox:"0 0 512 512"},Mr={name:"thumbnails-right",content:'<path d="M352 352h96v96h-96v-96zm0-160h96v96h-96v-96zm0-160h96v96h-96V32zM32 32h256v416H32V32z" />',viewBox:"0 0 512 512"},Er={name:"thumbnails-down",content:'<path d="M352 352h96v96h-96v-96zm-160 0h96v96h-96v-96zm-160 0h96v96H32v-96zm0-320h416v256H32V32z" />',viewBox:"0 0 512 512"},Or={name:"thumbnails-left",content:'<path d="M32 32v96h96V32H32zm160 0v416h256V32H192zM32 192v96h96v-96H32zm0 160v96h96v-96H32z" />',viewBox:"0 0 512 512"},Hr={name:"fullscreen",content:'<path d="M0 32h160v64H64v96H0V32zm64 288H0v160h160v-64H64v-96zM352 32v64h96v96h64V32H352zm96 384h-96v64h160V320h-64v96z" />',viewBox:"0 0 512 512"},Nr={name:"fullscreen-exit",content:'<path d="M160 32H96v96H0v64h160V32zM96 480h64V320H0v64h96v96zm416-288v-64h-96V32h-64v160h160zm-96 192h96v-64H352v160h64v-96z" />',viewBox:"0 0 512 512"},Pr={name:"droplet-slash",content:'<path d="m317.9 431 23.2 23.2C316.5 470.6 287.3 480 256 480c-88.4 0-160-75.2-160-168 0-27.8 7.2-56.4 18.6-84.2l24.8 24.8C131.9 274 128 293.9 128 312c0 75 57.4 136 128 136 22.4 0 43.5-6.2 61.9-17zM256 416v-32c-35.3 0-64-28.7-64-64h-32c0 53 43 96 96 96zm224 41.4L457.4 480 32 54.6 54.6 32l108.7 108.7C207 77.7 256 32 256 32s160 149.3 160 280c0 24.1-4.9 47.1-13.6 67.8l77.6 77.6zM384 312c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-1.4 1.9-2.7 3.7-4.1 5.6-.8 1.1-1.5 2.1-2.3 3.2l-1.5 2.1-3 4.2c-.2.3-.4.5-.6.8-1 1.5-2.1 3-3.1 4.5-.1.1-.1.2-.2.3l191.2 191.2c.5-1.6 1-3.3 1.4-4.9 0-.2.1-.4.1-.5.4-1.5.8-2.9 1.1-4.4.1-.3.1-.6.2-.9.3-1.4.6-2.7.9-4.1.1-.4.2-.8.2-1.2.2-1.3.5-2.6.7-3.9.1-.5.2-1 .2-1.5.2-1.2.3-2.5.5-3.7.1-.5.1-1.1.2-1.6l.3-3.6c0-.6.1-1.1.1-1.7.1-1.3.2-2.5.2-3.8 0-.5.1-1 .1-1.6.4-1.9.4-3.7.4-5.5z" />',viewBox:"0 0 512 512"},Vr={name:"photos",content:'<path d="M256 288c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm96-64v192c0 17.7-14.3 32-32 32H64c-17.7 0-32-14.3-32-32V224c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32zm-31.8 0c-.1-.1-.1-.1 0 0l-256.1-.1-.1.1v149.9l74.6-70 85.3 80 53.3-50 42.7 40 .3-149.9zm63.8-96H128c-17.7 0-32 14.3-32 32h288v224c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32zm64-64H192c-17.7 0-32 14.3-32 32h288v224c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32z" />',viewBox:"0 0 512 512"},Tr={name:"align-to-grid",content:'<path d="M320 320H128V128h192v192zM96 0H64v512h32V0zm352 0h-32v512h32V0zm64 64H0v32h512V64zm0 352H0v32h512v-32z" />',viewBox:"0 0 512 512"},Rr={name:"size-to-grid",content:'<path d="M384 384H128V128h256v256zM96 0H64v512h32V0zm352 0h-32v512h32V0zm64 64H0v32h512V64zm0 352H0v32h512v-32z" />',viewBox:"0 0 512 512"},Dr={name:"make-same-size",content:'<path d="M288 192v96h-96v-96h96zM240.1 0l-48.4 64H224v64h33V64h31.6L240.1 0zM256 416v-64h-32v64h-32l48 64 48-64h-32zm224-175.9-64-48.4V224h-64v33h64v31.6l64-48.5zM64 224v-32L0 240l64 48v-32h64v-32H64zM128 0H0v128h32V32h96V0zm320 0h-96v32h96v96h32V0h-32zM32 448v-96H0v128h128v-32H32zm416-96v96h-96v32h128V352h-32z" />',viewBox:"0 0 512 512"},Br={name:"make-same-width",content:'<path d="M480 128H0V32h480v96zm-192 96h-96v96h96v-96zm192 48.1-64-48.4V256h-64v33h64v31.6l64-48.5zM64 256v-32L0 272l64 48v-32h64v-32H64zm384 96v96h-96v32h128V352h-32zM32 448v-96H0v128h128v-32H32z" />',viewBox:"0 0 512 512"},Ar={name:"make-same-height",content:'<path d="M128 0v480H32V0h96zm96 192v96h96v-96h-96zM272.1 0l-48.4 64H256v64h33V64h31.6L272.1 0zM288 416v-64h-32v64h-32l48 64 48-64h-32zM448 0h-96v32h96v96h32V0h-32zm0 352v96h-96v32h128V352h-32z" />',viewBox:"0 0 512 512"},Lr={name:"make-horizontal-spacing-equal",content:'<path d="M480 160v160h-96v-64h-96v160h-96V256H96v96H32V128h64v96h96V64h96v160h96v-64h96z" />',viewBox:"0 0 512 512"},_r={name:"increase-horizontal-spacing",content:'<path d="M480 96v160h-96v-64h-96v160h-96V192H96v96H32V64h64v96h96V0h96v160h96V96h96zM335.7 352l-22.6 22.6 57.4 57.4-57.4 57.4 22.6 22.6 80-80-80-80zM64 432l80 80 22.6-22.6-57.3-57.4 57.4-57.4L144 352l-80 80z" />',viewBox:"0 0 512 512"},Fr={name:"decrease-horizontal-spacing",content:'<path d="M480 96v160h-96v-64h-96v160h-96V192H96v96H32V64h64v96h96V0h96v160h96V96h96zM111.6 352 89 374.6l57.4 57.4L89 489.4l22.6 22.6 80-80-80-80zM288 432l80 80 22.6-22.6-57.3-57.4 57.4-57.4L368 352l-80 80z" />',viewBox:"0 0 512 512"},jr={name:"remove-horizontal-spacing",content:'<path d="M480 96v160h-96v-64h-96v160h-96V192H96v96H32V64h64v96h96V0h96v160h96V96h96zm-32.5 278.2-22.6-22.6-57.4 57.4-57.4-57.4-22.6 22.6 57.4 57.4-57.4 57.4 22.6 22.6 57.4-57.4 57.4 57.4 22.6-22.6-57.4-57.4 57.4-57.4zm-256 0-22.6-22.6-57.4 57.4-57.4-57.4-22.6 22.6 57.4 57.4L31.5 489l22.6 22.6 57.4-57.4 57.4 57.4 22.6-22.6-57.4-57.4 57.4-57.4z" />',viewBox:"0 0 512 512"},Kr={name:"make-vertical-spacing-equal",content:'<path d="M256 320v96h96v64H128v-64h96v-96H64v-96h160v-96h-64V32h160v96h-64v96h160v96H256z" />',viewBox:"0 0 512 512"},Wr={name:"increase-vertical-spacing",content:'<path d="M192 320v96h96v64H64v-64h96v-96H0v-96h160v-96H96V32h160v96h-64v96h160v96H192zm320 48.1-22.6-22.6-57.4 57.3-57.4-57.4-22.6 22.7 80 80 80-80zM432 96l-80 80 22.6 22.6 57.4-57.4 57.4 57.4L512 176l-80-80z" />',viewBox:"0 0 512 512"},Ur={name:"decrease-vertical-spacing",content:'<path d="M191 320v96h96v64H63v-64h96v-96H-1v-96h160v-96H95V32h160v96h-64v96h160v96H191zm160 105.4 22.6 22.6 57.4-57.4 57.4 57.4 22.6-22.6-80-80-80 80zm80-226.8 80-80L488.4 96 431 153.4 373.6 96 351 118.6l80 80z" />',viewBox:"0 0 512 512"},qr={name:"remove-vertical-spacing",content:'<path d="M192 320v96h96v64H64v-64h96v-96H0v-96h160v-96H96V32h160v96h-64v96h160v96H192zm320 22.6L489.4 320 432 377.4 374.6 320 352 342.6l57.4 57.4-57.4 57.4 22.6 22.6 57.4-57.4 57.4 57.4 22.6-22.6-57.4-57.4 57.4-57.4zm0-288L489.4 32 432 89.4 374.6 32 352 54.6l57.4 57.4-57.4 57.4 22.6 22.6 57.4-57.4 57.4 57.4 22.6-22.6-57.4-57.4L512 54.6z" />',viewBox:"0 0 512 512"},$r={name:"eyedropper",content:'<path d="m461.1 56.9-6.2-6.2c-25-25-65.5-25-90.5 0l-60.8 60.8-4.3-4.3c-6.2-6.2-16.4-6.2-22.6 0l-9.4 9.4c-6.2 6.2-6.2 16.4 0 22.6l4.3 4.3L70.8 344.4c-8.2 8.2-14 18.5-16.8 29.7l-21.5 85.7c-2.2 8.6 3.1 17.4 11.7 19.5 2.6.6 5.2.6 7.8 0l85.7-21.4c11.3-2.8 21.5-8.6 29.7-16.8l200.8-200.8 4.4 4.4c6.2 6.2 16.4 6.2 22.6 0l9.4-9.4c6.2-6.2 6.2-16.4 0-22.6l-4.4-4.4 60.8-60.8c25-25 24.9-65.5.1-90.6zM224 320h-64l144-144 32 32-112 112z" />',viewBox:"0 0 512 512"},Gr={name:"snap-grid",content:'<path d="M480 128V96h-96V0h-32v96h-96V0h-32v96h-96V0H96v96H0v32h96v96H0v32h96v96H0v32h96v96h32v-96h96v96h32v-96h96v96h32v-96h96v-32h-96v-96h96v-32h-96v-96h96zm-352 0h96v96h-96v-96zm0 224v-96h96v96h-96zm224 0h-96v-96h96v96zm0-128h-96v-96h96v96z" />',viewBox:"0 0 512 512"},Zr={name:"snap-to-gridlines",content:'<path d="M160 32H0v416h288V32H160zm-32 384H32v-96h96v96zm0-128H32v-96h96v96zm0-128H32V64h96v96zm128 256h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96zm256 80c0 44.2-35.8 80-80 80h-32v-32h32c26.5 0 48-21.5 48-48s-21.5-48-48-48h-32v-32h32c44.2 0 80 35.8 80 80zm-160-48h32v-32h-32v32zm0 128h32v-32h-32v32z" />',viewBox:"0 0 512 512"},Yr={name:"snap-to-snaplines",content:'<path d="M224 128h96V96h-96V32h-32v64h-64V32H96v64H32v32h64v256H32v32h64v64h32v-64h64v64h32v-64h256v-32H224V128zm-32 256h-64V128h64v256zm208-64h-32v-32h32c26.5 0 48-21.5 48-48s-21.5-48-48-48h-32v-32h32c44.2 0 80 35.8 80 80s-35.8 80-80 80zm-48-160h-32v32h32v-32zm-32 160h32v-32h-32v32z" />',viewBox:"0 0 512 512"},Jr={name:"dimensions",content:'<path d="M320 0H0v512h128V128h384V0H320zM32 32h64v64H32V32zm64 352H64v32h32v64H32V320h64v64zm0-192H64v32h32v64H32V128h64v64zm128-96V64h-32v32h-64V32h160v64h-64zm256 0h-64V64h-32v32h-64V32h160v64z" />',viewBox:"0 0 512 512"},Xr={name:"align-self-stretch",content:'<path d="M95 96h320v128H95V96zM31 480h32V32H31v448zm64-192h320v128H95V288zm32 96h256v-64H127v64zM447 32v448h32V32h-32z" />',viewBox:"0 0 512 512"},Qr={name:"align-self-stretch-alt",content:'<path d="M223 96v320H95V96h128zM31 480h448v-32H31v32zM415 96v320H287V96h128zm-32 32h-64v256h64V128zM31 32v32h448V32H31z" />',viewBox:"0 0 512 512"},ei={name:"align-items-start",content:'<path d="M319 224H95V96h224v128zM31 480h32V32H31v448zm64-192v128h352V288H95z" />',viewBox:"0 0 512 512"},ti={name:"align-items-center",content:'<path d="M415 416H255v64h-32v-64H63V288h160v-64h-96V96h96V32h32v64h96v128h-96v64h160v128z" />',viewBox:"0 0 512 512"},ni={name:"align-items-end",content:'<path d="M192 96h224v128H192V96zm256-64v448h32V32h-32zM64 416h352V288H64v128z" />',viewBox:"0 0 512 512"},oi={name:"align-items-stretch",content:'<path d="M415 224H95V96h320v128zM31 480h32V32H31v448zM447 32v448h32V32h-32zM96 416h320V288H96v128z" />',viewBox:"0 0 512 512"},ri={name:"align-items-baseline",content:'<path d="M415 224V64H287v160h-64v-96H95v96H31v32h64v96h128v-96h64v160h128V256h64v-32h-64zm-224 96h-64v-64h64v64zm192 64h-64V256h64v128z" />',viewBox:"0 0 512 512"},ii={name:"align-items-start-alt",content:'<path d="M96 96h128v224H96V96zM32 32v32h448V32H32zm256 416h128V96H288v352z" />',viewBox:"0 0 512 512"},ai={name:"align-items-center-alt",content:'<path d="M479 256h-64v160H287V256h-64v96H95v-96H31v-32h64v-96h128v96h64V64h128v160h64v32z" />',viewBox:"0 0 512 512"},si={name:"align-items-end-alt",content:'<path d="M223 417H95V193h128v224zM31 449v32h448v-32H31zM415 65H287v352h128V65z" />',viewBox:"0 0 512 512"},li={name:"align-items-stretch-alt",content:'<path d="M223 96v320H95V96h128zM31 480h448v-32H31v32zm0-448v32h448V32H31zm256 63v320h128V95H287z" />',viewBox:"0 0 512 512"},ci={name:"align-items-baseline-alt",content:'<path d="M255 288v-64h96V96h-96V32h-32v64h-96v128h96v64H63v128h160v64h32v-64h160V288H255zm-32 96H95v-64h128v64zm0-192h-64v-64h64v64z" />',viewBox:"0 0 512 512"},ui={name:"justify-content-start",content:'<path d="M95 96h128v320H95V96zM31 480h32V32H31v448zM255 95v320h128V95H255z" />',viewBox:"0 0 512 512"},di={name:"justify-content-center",content:'<path d="M63 96h128v320H63V96zm160 384h32V32h-32v448zm64-385v320h128V95H287z" />',viewBox:"0 0 512 512"},pi={name:"justify-content-end",content:'<path d="M128 96h128v320H128V96zm320-64v448h32V32h-32zM288 415h128V95H288v320z" />',viewBox:"0 0 512 512"},hi={name:"justify-content-between",content:'<path d="M63 96h128v320H63V96zm416-64v448h32V32h-32zM319 415h128V95H319v320zM-1 480h32V32H-1v448z" />',viewBox:"0 0 512 512"},fi={name:"justify-content-around",content:'<path d="M95 96h128v320H95V96zm384-64v448h32V32h-32zM287 415h128V95H287v320zM-1 480h32V32H-1v448z" />',viewBox:"0 0 512 512"},mi={name:"justify-content-start-alt",content:'<path d="M415 224H95V96h320v128zM31 32v32h448V32H31zm65 352h320V256H96v128z" />',viewBox:"0 0 512 512"},vi={name:"justify-content-center-alt",content:'<path d="M415 192H95V64h320v128zM31 224v32h448v-32H31zm65 192h320V288H96v128z" />',viewBox:"0 0 512 512"},gi={name:"justify-content-end-alt",content:'<path d="M415 257H95V129h320v128zM31 449v32h448v-32H31zm65-32h320V289H96v128z" />',viewBox:"0 0 512 512"},yi={name:"justify-content-between-alt",content:'<path d="M95 64h320v128H95V64zM31 512h448v-32H31v32zm65-64h320V320H96v128zM31 0v32h448V0H31z" />',viewBox:"0 0 512 512"},bi={name:"justify-content-around-alt",content:'<path d="M95 96h320v128H95V96zM31 512h448v-32H31v32zm65-96h320V288H96v128zM31 0v32h448V0H31z" />',viewBox:"0 0 512 512"},wi={name:"file-wrench",content:'<path d="M470.7 480 448 502.7c-12.4 12.4-32.8 12.4-45.1-.1l-93.1-93.1c-11.8 4.2-24.5 6.5-37.8 6.5-61.9 0-112-50.1-112-112 0-13.2 2.3-25.9 6.5-37.6l48.9 48.9c12.4 12.4 32.8 12.4 45.3 0l22.6-22.6c12.4-12.4 12.4-32.8 0-45.3l-48.9-48.9c11.8-4.2 24.4-6.5 37.6-6.5 61.9 0 112 50.1 112 112 0 13.2-2.3 25.9-6.5 37.6l93.2 93.1c12.4 12.5 12.4 32.9 0 45.3zm-22.8-23-86.3-86.3c-6.4 8.6-14 16.2-22.6 22.6l86.4 86.3 22.6-22.5v-.1h-.1zM96 64h224v96h96v128h32V128l-96-96H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h160v-32H96V64z" />',viewBox:"0 0 512 512"},ki={name:"bold",content:'<path d="M128 96h115.8c25.3 0 44.2 1.1 56.6 3.2 12.4 2.1 23.6 6.5 33.4 13.2 9.8 6.7 18 15.6 24.6 26.7 6.6 11.1 9.8 23.6 9.8 37.4 0 15-4.1 28.7-12.1 41.2-8.1 12.5-19.1 21.9-32.9 28.2 19.5 5.7 34.5 15.4 45 29s15.7 29.8 15.7 48.2c0 14.6-3.4 28.7-10.2 42.4-6.7 13.8-16 24.8-27.7 33s-26.1 13.3-43.3 15.2c-10.8 1.2-36.7 1.9-78 2.2H128V96zm64 53v74h30.9c25.2 0 40.8-.4 46.9-1.1 11.1-1.3 19.7-5.2 26.1-11.5 6.3-6.3 9.5-14.7 9.5-25 0-9.9-2.7-18-8.2-24.1-5.5-6.2-13.6-10-24.4-11.2-6.4-.7-24.8-1.1-55.2-1.1H192zm0 127.1V362h48.6c23.4 0 38.1-.7 44.5-2 9.6-1.8 17.5-6 23.6-12.8 6.1-6.8 9-15.9 9-27.3 0-9.6-2.3-17.9-7-24.6-4.7-6.7-11.4-11.6-20.3-14.7-8.8-3.1-28-4.6-57.5-4.6l-40.9.1z" />',viewBox:"0 0 512 512"},xi={name:"italic",content:'<path d="m377.2 128 6.8-32H198.8l-6.8 32h59.2l-54.4 256h-62l-6.8 32h185.2l6.8-32h-59.2l54.4-256h62z" />',viewBox:"0 0 512 512"},zi={name:"underline",content:'<path d="M128 416h256v32H128v-32zM320 64v224c0 11.6-3.5 16-10.3 20.3-11.8 7.4-31.3 11.7-53.7 11.7s-41.9-4.3-53.7-11.7c-6.8-4.3-10.3-8.7-10.3-20.3V64h-64v224c0 70.4 64.3 96 128 96s128-25.6 128-96V64h-64z" />',viewBox:"0 0 512 512"},Ci={name:"font-family",content:'<path d="M224 416V160h-95l-.8-64H384v64h-96v256h-64z" />',viewBox:"0 0 512 512"},Si={name:"foreground-color",content:'<path d="M299.5 96h-87.1L96 416h64l23.3-64h145.4l23.3 64h64L299.5 96zm-92.9 192L256 152.2 305.4 288h-98.8z" />',viewBox:"0 0 512 512"},Ii={name:"convert-lowercase",content:'<path d="M480.1 416H436v-36h-.7c-13.8 24-34.1 36-60.8 36-19.7 0-35.1-5.3-46.3-16-11.1-10.7-16.7-24.9-16.7-42.5 0-37.8 21.7-59.9 65.3-66.2l59.4-8.4c0-28.6-13.5-42.8-40.7-42.8-23.8 0-45.4 8.2-64.5 24.7V225c21.1-12.5 45.5-18.8 73.1-18.8 50.6 0 75.9 25 75.9 74.8v135h.1zM436 313.1l-42 5.9c-13 1.7-22.8 4.9-29.4 9.5s-9.9 12.7-9.9 24.3c0 8.5 3 15.4 9.1 20.8s14.2 8.1 24.3 8.1c13.8 0 25.2-4.8 34.3-14.5 9-9.7 13.6-21.9 13.6-36.6v-17.5zM240 416h48L184 96h-48L32 416h48l26-80h108l26 80zM121.6 288 160 169.8 198.4 288h-76.8z" />',viewBox:"0 0 512 512"},Mi={name:"convert-uppercase",content:'<path d="M200.1 416H156v-36h-.7c-13.8 24-34.1 36-60.8 36-19.7 0-35.1-5.3-46.3-16-11.1-10.7-16.7-24.9-16.7-42.5 0-37.8 21.7-59.9 65.3-66.2l59.4-8.4c0-28.6-13.5-42.8-40.7-42.8-23.8 0-45.4 8.2-64.5 24.7V225c21.1-12.5 45.5-18.8 73.1-18.8 50.6 0 75.9 25 75.9 74.8v135h.1zM157 313.1l-42 5.9c-13 1.7-22.8 4.9-29.4 9.5s-9.9 12.7-9.9 24.3c0 8.5 3 15.4 9.1 20.8s14.2 8.1 24.3 8.1c13.8 0 25.2-4.8 34.3-14.5 9-9.7 13.6-21.9 13.6-36.6v-17.5zM432 416h48L376 96h-48L224 416h48l26-80h108l26 80zM313.6 288 352 169.8 390.4 288h-76.8z" />',viewBox:"0 0 512 512"},Ei={name:"strikethrough",content:'<path d="M393.9 320c.1-23.9 4.5-41.4 13.5-52.5 9.1-11.1 20.8-16.7 35.3-16.7 9.6 0 17.7 3.1 24.5 9.3 6.8 6.2 11.4 15.4 14.1 27.7l27.9-4.7c-3.3-18.4-10.8-32.7-22.5-42.7s-26.8-15-45.2-15c-14.5 0-28.1 3.6-40.4 11.1-12.4 7.4-21.6 18.5-27.7 33.2-5.9 14.4-8.9 31.2-9.1 50.4h-25.5v-2.2c0-13.2-1.7-25.6-5.1-37.1-3.4-11.5-8.1-21.4-14.2-29.6-6-8.1-13.7-14.5-23-19s-19.2-6.8-29.6-6.8c-18.9 0-34.3 8.2-46.4 24.6v-90H192v160h-45v-25.8c0-13.7-.5-23.3-1.4-28.5-1.7-8.5-4.7-15.5-9-21.1-4.3-5.5-10.9-10.2-19.9-13.8-9-3.6-20.8-5.5-35.3-5.5-14.6 0-27.4 2.1-38.5 6.4-11.1 4.3-19.5 10.4-25.4 18.4-5.8 8-10 18.4-12.6 31.4l28.1 4.1c3.1-13 7.8-22 14.3-27.1s16.4-7.7 29.9-7.7c14.5 0 25.4 3.5 32.7 10.5 5.4 5.1 8.1 14 8.1 26.6 0 1.1 0 3.8-.2 8.1-11 4.1-28 7.7-51.2 10.7-11.4 1.5-19.9 3-25.5 4.7-6.7 2-12.9 4.9-18.5 8.6H0v32h1.2c-.8 3.8-1.2 7.7-1.2 11.8 0 15.2 5 27.8 15 37.6S39.3 416 57.9 416c11.3 0 21.8-1.9 31.6-6s20.1-10.9 30.7-20.6h.1c.8 8.6 2.7 20.3 5.7 26.7h30c-3.6-7-6-18.4-7.3-26.1-1-6-1.6-18.7-1.8-37.9h45v64h26.6V389c11.4 18 27.1 27 47.1 27 20.1 0 37.3-8.5 51.7-25.6 8.6-10.2 14.6-23 18-38.3h31.8c3.3 16 9.4 29.2 18.3 39.5 14.1 16.3 32.7 24.5 55.9 24.5 18.5 0 34.1-6 46.8-17.8 12.1-11.3 19.8-26.7 23.2-46.2h.5v-32H393.9zm-280.7 42.6c-4.1 9-10.4 16.1-19 21.4-8.6 5.2-18.4 7.8-29.5 7.8-11.2 0-19.6-2.8-25.4-8.2-5.8-5.6-8.7-12.4-8.7-20.7 0-3.9.7-7.5 2.1-10.9h83.6c-.7 4.1-1.8 7.7-3.1 10.6zm105.1-43.3c0-22.2 4.6-39.2 13.7-50.9 9.1-11.8 20-17.6 32.5-17.6s23.1 5.6 31.8 17c8.8 11.3 13.1 28.7 13.2 52.3h-91.3c.1-.3.1-.6.1-.8zm77.6 53.6c-9.1 11.8-20 17.7-32.5 17.7-15.5 0-27.7-8-36.7-23.9-2.2-3.9-4-8.8-5.3-14.7H306c-2.4 8.3-5.7 15.3-10.1 20.9zm173.5 6.6c-7.5 7.5-16.9 11.2-28.2 11.2-14 0-25.4-5.6-34.1-16.7-4.4-5.6-7.7-12.9-9.9-21.9h85.5c-2.6 11.9-7 21.1-13.3 27.4z" />',viewBox:"0 0 512 512"},Oi={name:"subscript",content:'<path d="m198.6 304 89.4 89.4-22.6 22.6-89.4-89.4L86.6 416 64 393.4l89.4-89.4L64 214.6 86.6 192l89.4 89.4 89.4-89.4 22.6 22.6-89.4 89.4zm167.7 144h81.4v32H320v-11.9c0-8 1.7-15.3 5-21.7 3.3-6.4 7.5-12.1 12.5-17.2s10.5-9.6 16.4-13.5c5.9-3.9 11.6-7.4 16.9-10.6 5.6-3.3 10.6-6.4 14.8-9.4 4.2-3 7.8-6 10.7-8.9 2.9-3 5.1-6 6.5-9 1.4-3 2.1-6.3 2.1-9.7 0-6.7-2.3-11.8-7-15.3-4.6-3.4-11.7-5.2-21.3-5.2-16.5 0-32.3 5.4-47.4 16.1v-30.5c16.7-8.9 35.5-13.3 56.5-13.3 9.7 0 18.5 1 26.2 3.1 7.7 2.1 14.3 5.1 19.6 8.9 5.4 3.9 9.4 8.6 12.3 14.1 2.8 5.5 4.2 11.7 4.2 18.5 0 7.2-1.4 13.7-4.1 19.3-2.7 5.6-6.3 10.8-10.8 15.4-4.5 4.6-9.7 8.8-15.6 12.7-5.9 3.8-12 7.6-18.3 11.1-4.3 2.5-8.4 5-12.4 7.4-4 2.5-7.5 4.9-10.5 7.2-3.1 2.6-7.1 6.6-10 10.4z" />',viewBox:"0 0 512 512"},Hi={name:"supscript",content:'<path d="m198.6 304 89.4 89.4-22.6 22.6-89.4-89.4L86.6 416 64 393.4l89.4-89.4L64 214.6 86.6 192l89.4 89.4 89.4-89.4 22.6 22.6-89.4 89.4zm167.7-112h81.4v32H320v-11.9c0-8 1.7-15.3 5-21.7s7.5-12.1 12.5-17.2 10.5-9.6 16.4-13.5 11.6-7.4 16.9-10.6c5.6-3.3 10.6-6.4 14.8-9.4 4.2-3 7.8-6 10.7-8.9 2.9-3 5.1-6 6.5-9s2.1-6.3 2.1-9.7c0-6.7-2.3-11.8-7-15.3-4.6-3.4-11.7-5.2-21.3-5.2-16.5 0-32.3 5.4-47.4 16.1V77.3c16.7-8.9 35.5-13.3 56.5-13.3 9.7 0 18.5 1 26.2 3.1s14.3 5.1 19.6 8.9c5.4 3.9 9.4 8.6 12.3 14.1 2.8 5.5 4.2 11.7 4.2 18.5 0 7.2-1.4 13.7-4.1 19.3-2.7 5.6-6.3 10.8-10.8 15.4-4.5 4.6-9.7 8.8-15.6 12.7-5.9 3.8-12 7.6-18.3 11.1-4.3 2.5-8.4 5-12.4 7.4-4 2.5-7.5 4.9-10.5 7.2-3.1 2.5-7.1 6.5-10 10.3z" />',viewBox:"0 0 512 512"},Ni={name:"div",content:'<path d="M0 416v-6h7.1c7.9 0 13.6-3 16.9-9.1 2-3.6 3-11.8 3-24.5V231.6c0-14-1.3-22.8-3.9-26.3-3.6-4.9-9-7.3-16.1-7.3H0v-6h77.6c28.5 0 50.2 3.8 65 11.4 14.9 7.6 26.8 20.3 35.8 38 9 17.7 13.6 38.2 13.6 61.5 0 31.2-8.1 57.2-24.2 78.1-18.1 23.3-45.6 35-82.6 35H0zm54-16.2c11.9 3.1 21.9 4.6 29.9 4.6 21.7 0 39.8-9 54.1-26.9 14.3-17.9 21.5-42.3 21.5-73 0-30.9-7.2-55.3-21.5-73.2-14.3-17.8-32.8-26.8-55.2-26.8-8.4 0-18 1.6-28.8 4.8v190.5zM298 410v6h-83v-6h6.7c7.8 0 13.5-2.7 17-8.1 2.2-3.5 3.3-12 3.3-25.5V231.6c0-11.4-.6-18.9-1.8-22.5-.9-2.8-2.8-5.1-5.7-7.1-4.1-2.6-8.4-4-12.8-4H215v-6h83v6h-7c-7.9 0-13.7 2.7-17.4 8.1-2.4 3.5-3.6 12-3.6 25.5v144.9c0 11.4.6 18.9 1.9 22.5 1 2.8 3 5.1 6 7.1 4.1 2.6 8.5 4 13.1 4h7zm214-218v6c-6.4 1.4-11.3 3.9-14.6 7.4-4.7 5.3-8.9 13.4-12.6 24.2L421.6 416h-4.9l-67.9-188.8c-3.5-9.7-5.9-15.6-7.4-17.8-2.2-3.3-5-5.9-8.2-7.8-3.3-1.9-7.6-3.1-13.2-3.6v-6h74v6c-8.4 1-13.8 2.7-16.3 5.2s-3.7 5.7-3.7 9.5c0 5.4 2 13.8 6.1 25.2l46.1 128.4L469 239.5c4.2-12.5 6.3-21.2 6.3-26 0-3.1-1.3-6.1-3.9-9-2.6-2.9-6.9-4.9-13.1-6.1-.4-.1-1.2-.3-2.3-.5v-6h56zm0-96H0v32h512V96z" />',viewBox:"0 0 512 512"},Pi={name:"all",content:'<path d="M120.1 343H52l-12 34.4c-2.9 8.5-4.4 14.8-4.4 19 0 3.3 1.3 6.2 3.8 8.8s8.1 4.2 16.5 4.9v5.9H0v-6c7.4-1.6 12.2-3.7 14.4-6.3 4.4-5.2 9.4-15.7 14.8-31.5L91.4 192H96l61.6 182.2c5 14.6 9.5 24.1 13.5 28.5 4 4.4 9.7 6.8 16.9 7.3v6h-70v-5.9c7-.4 11.7-1.9 14.2-4.3 2.5-2.5 3.7-5.5 3.7-9 0-4.7-1.7-12.2-5.2-22.3L120.1 343zm-3.5-12-30-88.5L55.8 331h60.8zm227.7 23.1 4.3 1.2-15.1 60.7H197v-6h6.5c7.4 0 12.6-3.1 15.8-9.3 1.8-3.5 2.7-11.7 2.7-24.5V222.7c0-14-1.2-13.9-3.6-17.5-3.3-4.9-8.3-7.3-14.9-7.3H196v-6h80v6.1s-15.4 1-19.2 3.3c-3.8 2.3-6.4 5.2-7.8 8.8-1.4 3.5-2.1 3.1-2 16.5v149.6c-.1 9.1.6 15.4 2 18.8 1 2.3 2.7 4 4.8 5.1 2.2 1.1 9 1.7 20.4 1.9h12.9c13.6-.2 23.1-1.5 28.6-4s10.5-7 15-13.5 9.1-16.6 13.6-30.4zm163.4 0 4.3 1.2-15.1 60.7H360v-6h6.5c7.4 0 12.6-3.1 15.8-9.3 1.8-3.5 2.7-11.7 2.7-24.5V222.7c0-14-1.2-13.9-3.6-17.5-3.3-4.9-8.3-7.3-14.9-7.3H360v-6h80v6.1s-16.1 1-19.9 3.3-6.4 5.2-7.8 8.8c-1.4 3.5-2.1 3.1-2.4 16.5v149.6c.3 9.1 1 15.4 2.4 18.8 1 2.3 2.7 4 4.8 5.1s9 1.7 20.4 1.9h12.9c13.6-.2 23.1-1.5 28.6-4s10.5-7 15-13.5 9.2-16.6 13.7-30.4zM512 96H0v32h512V96z" />',viewBox:"0 0 512 512"},Vi={name:"h1",content:'<path d="M128 288h96v-57c0-11.2-.7-18.6-2.1-22.2-1.1-2.7-3.3-5-6.8-7-4.6-2.6-10.1-3.9-15.3-3.9H192v-6h96v6h-7.7c-5.1 0-10 1.2-14.5 3.7-3.4 1.7-5.7 4.3-7 7.8-1.2 3.5-1.8 10.7-1.8 28.3V384c0 4.3.7 11.6 2.1 15.2 1.1 2.7 3.2 5 6.6 7 4.7 2.6 9.6 3.9 14.7 3.9h7.7v6h-96v-6h7.7c9 0 16.2-2.6 20.3-7.9 2.7-3.5 4.1-11.8 4.1-24.9V304h-96v73.1c0 11.1.7 18.4 2.1 22 1.1 2.7 3.4 5 6.8 7 4.7 2.6 9.6 3.9 14.8 3.9h8.3v6H64v-6h7.8c9.1 0 16.2-2.6 20.3-7.9 2.6-3.5 3.9-11.8 3.9-18.1V237.9c0-18.1-.7-25.5-2.1-29-1.1-2.7-3.3-5-6.6-7-4.8-2.6-10.3-3.9-15.5-3.9H64v-6h96v6h-8c-5.3 0-10.2 1.2-14.9 3.7-3.4 1.7-5.7 4.3-7.1 7.8-1.3 3.5-2 10.7-2 21.4V288zm192-69.9 63-26.1h1v185.3c0 12.3.5 20 1.5 23s3.2 5.3 6.4 7 14.1 2.5 24.1 2.8v6h-96v-6c10.4-.2 20.9-1.1 23.9-2.7s5.1-3.7 6.3-6.3c1.2-2.6 1.8-10.5 1.8-23.7V258.8c0-16-.5-26.2-1.6-30.8-.8-3.5-2.1-6-4.1-7.6-2-1.6-4.4-2.4-7.2-2.4-4 0-9.5 1.7-16.7 5l-2.4-4.9zM512 96H0v32h512V96z" />',viewBox:"0 0 512 512"},Ti={name:"h2",content:'<path d="M128 288h96v-57c0-11.2-.7-18.6-2.1-22.2-1.1-2.7-3.3-5-6.8-7-4.6-2.6-10.1-3.9-15.3-3.9H192v-6h96v6h-7.7c-5.1 0-10 1.2-14.5 3.7-3.4 1.7-5.7 4.3-7 7.8-1.2 3.5-1.8 10.7-1.8 28.3V384c0 4.3.7 11.6 2.1 15.2 1.1 2.7 3.2 5 6.6 7 4.7 2.6 9.6 3.9 14.7 3.9h7.7v6h-96v-6h7.7c9 0 16.2-2.6 20.3-7.9 2.7-3.5 4.1-11.8 4.1-24.9V304h-96v73.1c0 11.1.7 18.4 2.1 22 1.1 2.7 3.4 5 6.8 7 4.7 2.6 9.6 3.9 14.8 3.9h8.3v6H64v-6h7.8c9.1 0 16.2-2.6 20.3-7.9 2.6-3.5 3.9-11.8 3.9-18.1V237.9c0-18.1-.7-25.5-2.1-29-1.1-2.7-3.3-5-6.6-7-4.8-2.6-10.3-3.9-15.5-3.9H64v-6h96v6h-8c-5.3 0-10.2 1.2-14.9 3.7-3.4 1.7-5.7 4.3-7.1 7.8-1.3 3.5-2 10.7-2 21.4V288zm336 86-15.3 42H320v-5.5c38.2-34.9 65.1-63.3 80.7-85.4 15.6-22.1 23.4-42.3 23.4-60.6 0-14-4.3-25.4-12.8-34.4-8.6-9-18.8-13.5-30.7-13.5-10.8 0-20.5 3.2-29.1 9.5-8.6 6.3-15 15.6-19.1 27.8h-6c2.7-20 9.7-35.4 20.9-46.1 11.2-10.7 25.2-16.1 42-16.1 17.9 0 32.8 5.7 44.7 17.2 12 11.5 17.9 25 17.9 40.6 0 11.1-2.6 22.3-7.8 33.4-8 17.5-21 36.1-39 55.7-27 29.4-43.8 47.2-50.5 53.3h56.9c11.8 0 20-.4 24.8-1.3 4.7-.9 9-2.6 12.8-5.3 3.8-2.7 7.1-6.5 10-11.4l4.9.1zm48-278H0v32h512V96z" />',viewBox:"0 0 512 512"},Ri={name:"h3",content:'<path d="M128 288h96v-57c0-11.2-.7-18.6-2.1-22.2-1.1-2.7-3.3-5-6.8-7-4.6-2.6-10.1-3.9-15.3-3.9H192v-6h96v6h-7.7c-5.1 0-10 1.2-14.5 3.7-3.4 1.7-5.7 4.3-7 7.8-1.2 3.5-1.8 10.7-1.8 28.3V384c0 4.3.7 11.6 2.1 15.2 1.1 2.7 3.2 5 6.6 7 4.7 2.6 9.6 3.9 14.7 3.9h7.7v6h-96v-6h7.7c9 0 16.2-2.6 20.3-7.9 2.7-3.5 4.1-11.8 4.1-24.9V304h-96v73.1c0 11.1.7 18.4 2.1 22 1.1 2.7 3.4 5 6.8 7 4.7 2.6 9.6 3.9 14.8 3.9h8.3v6H64v-6h7.8c9.1 0 16.2-2.6 20.3-7.9 2.6-3.5 3.9-11.8 3.9-18.1V237.9c0-18.1-.7-25.5-2.1-29-1.1-2.7-3.3-5-6.6-7-4.8-2.6-10.3-3.9-15.5-3.9H64v-6h96v6h-8c-5.3 0-10.2 1.2-14.9 3.7-3.4 1.7-5.7 4.3-7.1 7.8-1.3 3.5-2 10.7-2 21.4V288zm195.6-50.6c6.4-14.5 14.5-25.7 24.3-33.6 9.8-7.9 22-11.9 36.6-11.9 18 0 31.9 5.6 41.5 16.9 7.3 8.4 11 17.3 11 26.9 0 15.7-10.3 31.9-30.9 48.7 13.8 5.2 24.3 12.6 31.4 22.3 7.1 9.7 10.6 21 10.6 34 0 18.7-6.2 34.8-18.6 48.5-16.2 17.8-39.6 26.7-70.2 26.7-15.2 0-25.5-1.8-31-5.4s-8.2-7.5-8.2-11.6c0-3.1 1.3-5.8 3.9-8.1 2.6-2.3 5.7-3.5 9.4-3.5 2.8 0 5.6.4 8.5 1.3 1.9.5 6.1 2.5 12.8 5.8 6.6 3.3 11.2 5.3 13.8 6 4.1 1.2 8.5 1.8 13.1 1.8 11.3 0 21.1-4.2 29.5-12.6s12.5-18.3 12.5-29.8c0-8.4-1.9-16.5-5.8-24.5-2.9-5.9-6-10.4-9.5-13.5-4.8-4.2-11.3-8.1-19.6-11.5s-16.8-5.2-25.4-5.2H358v-4.8c8.7-1.1 17.5-4.1 26.3-9.1s15.2-11 19.2-18 6-14.7 6-23.1c0-10.9-3.6-19.8-10.7-26.5s-16-10.1-26.6-10.1c-17.2 0-31.5 8.8-43 26.4l-5.6-2.5zM512 96H0v32h512V96z" />',viewBox:"0 0 512 512"},Di={name:"h4",content:'<path d="M128 288h96v-57c0-11.2-.7-18.6-2.1-22.2-1.1-2.7-3.3-5-6.8-7-4.6-2.6-10.1-3.9-15.3-3.9H192v-6h96v6h-7.7c-5.1 0-10 1.2-14.5 3.7-3.4 1.7-5.7 4.3-7 7.8-1.2 3.5-1.8 10.7-1.8 28.3V384c0 4.3.7 11.6 2.1 15.2 1.1 2.7 3.2 5 6.6 7 4.7 2.6 9.6 3.9 14.7 3.9h7.7v6h-96v-6h7.7c9 0 16.2-2.6 20.3-7.9 2.7-3.5 4.1-11.8 4.1-24.9V304h-96v73.1c0 11.1.7 18.4 2.1 22 1.1 2.7 3.4 5 6.8 7 4.7 2.6 9.6 3.9 14.8 3.9h8.3v6H64v-6h7.8c9.1 0 16.2-2.6 20.3-7.9 2.6-3.5 3.9-11.8 3.9-18.1V237.9c0-18.1-.7-25.5-2.1-29-1.1-2.7-3.3-5-6.6-7-4.8-2.6-10.3-3.9-15.5-3.9H64v-6h96v6h-8c-5.3 0-10.2 1.2-14.9 3.7-3.4 1.7-5.7 4.3-7.1 7.8-1.3 3.5-2 10.7-2 21.4V288zm341 47v23h-29v58h-27v-58h-93v-20.7L422.1 192H440v143h29zm-56 0V226.1L336 335h77zm99-239H0v32h512V96z" />',viewBox:"0 0 512 512"},Bi={name:"h5",content:'<path d="M128 288h96v-57c0-11.2-.7-18.6-2.1-22.2-1.1-2.7-3.3-5-6.8-7-4.6-2.6-10.1-3.9-15.3-3.9H192v-6h96v6h-7.7c-5.1 0-10 1.2-14.5 3.7-3.4 1.7-5.7 4.3-7 7.8-1.2 3.5-1.8 10.7-1.8 28.3V384c0 4.3.7 11.6 2.1 15.2 1.1 2.7 3.2 5 6.6 7 4.7 2.6 9.6 3.9 14.7 3.9h7.7v6h-96v-6h7.7c9 0 16.2-2.6 20.3-7.9 2.7-3.5 4.1-11.8 4.1-24.9V304h-96v73.1c0 11.1.7 18.4 2.1 22 1.1 2.7 3.4 5 6.8 7 4.7 2.6 9.6 3.9 14.8 3.9h8.3v6H64v-6h7.8c9.1 0 16.2-2.6 20.3-7.9 2.6-3.5 3.9-11.8 3.9-18.1V237.9c0-18.1-.7-25.5-2.1-29-1.1-2.7-3.3-5-6.6-7-4.8-2.6-10.3-3.9-15.5-3.9H64v-6h96v6h-8c-5.3 0-10.2 1.2-14.9 3.7-3.4 1.7-5.7 4.3-7.1 7.8-1.3 3.5-2 10.7-2 21.4V288zm320-96-12.6 28h-66L355 249.1c28.6 4.2 51.2 14.9 68 32 14.3 14.7 21.5 32 21.5 51.9 0 11.6-2.3 22.3-7 32.1s-10.6 18.2-17.7 25.2c-7.1 6.9-15 12.5-23.8 16.7-12.4 6-25.1 8.9-38.2 8.9-13.2 0-22.7-2.2-28.7-6.7s-9-9.4-9-14.9c0-3 1.2-5.7 3.7-8s5.6-3.5 9.4-3.5c2.8 0 5.3.4 7.4 1.3 2.1.9 5.7 3.1 10.8 6.7 8.1 5.6 16.3 8.4 24.6 8.4 12.6 0 23.7-4.8 33.3-14.4s14.3-21.2 14.3-35c0-13.3-4.3-25.7-12.8-37.3-8.5-11.5-20.3-20.4-35.3-26.7-11.8-4.9-27.8-7.7-48.1-8.4l42.1-85.5H448zm64-96H0v32h512V96z" />',viewBox:"0 0 512 512"},Ai={name:"h6",content:'<path d="M128 288h96v-57c0-11.2-.7-18.6-2.1-22.2-1.1-2.7-3.3-5-6.8-7-4.6-2.6-10.1-3.9-15.3-3.9H192v-6h96v6h-7.7c-5.1 0-10 1.2-14.5 3.7-3.4 1.7-5.7 4.3-7 7.8-1.2 3.5-1.8 10.7-1.8 28.3V384c0 4.3.7 11.6 2.1 15.2 1.1 2.7 3.2 5 6.6 7 4.7 2.6 9.6 3.9 14.7 3.9h7.7v6h-96v-6h7.7c9 0 16.2-2.6 20.3-7.9 2.7-3.5 4.1-11.8 4.1-24.9V304h-96v73.1c0 11.1.7 18.4 2.1 22 1.1 2.7 3.4 5 6.8 7 4.7 2.6 9.6 3.9 14.8 3.9h8.3v6H64v-6h7.8c9.1 0 16.2-2.6 20.3-7.9 2.6-3.5 3.9-11.8 3.9-18.1V237.9c0-18.1-.7-25.5-2.1-29-1.1-2.7-3.3-5-6.6-7-4.8-2.6-10.3-3.9-15.5-3.9H64v-6h96v6h-8c-5.3 0-10.2 1.2-14.9 3.7-3.4 1.7-5.7 4.3-7.1 7.8-1.3 3.5-2 10.7-2 21.4V288zm316-96v5.9c-13.1 1.4-23.9 4.2-32.2 8.4s-16.5 10.6-24.6 19.2c-8.1 8.6-14.8 18.2-20.2 28.7-5.3 10.6-9.8 23.1-13.4 37.6 14.3-10.5 28.7-15.8 43.2-15.8 13.8 0 25.8 5.9 36 17.8S448 321 448 339.6c0 18-5.1 34.5-15.4 49.3-12.3 18-28.7 27-49 27-13.8 0-25.6-4.9-35.2-14.6-18.9-19-28.4-43.6-28.4-73.8 0-19.3 3.6-37.7 10.9-55s17.6-32.8 31.1-46.3 26.4-22.5 38.8-27.2 23.8-7 34.5-7h8.7zm-92.9 111.4c-1.8 14.3-2.7 25.9-2.7 34.7 0 10.2 1.8 21.2 5.3 33.2 3.5 11.9 8.8 21.4 15.8 28.4 5.1 5 11.3 7.5 18.5 7.5 8.7 0 16.4-4.3 23.2-13 6.8-8.7 10.2-21.1 10.2-37.2 0-18.1-3.4-33.8-10.2-47.1S394.8 290 382.4 290c-3.8 0-7.8.8-12.2 2.5-4.3 1.6-10.7 5.2-19.1 10.9zM512 96H0v32h512V96z" />',viewBox:"0 0 512 512"},Li={name:"list-ordered",content:'<path d="M192 64h288v32H192V64zm0 160h288v32H192v-32zm0 160h288v32H192v-32zM96 32v128H64V64c-1.5 1.3-14.9 7.8-22.1 10V50.8c7.2-2.1 13.9-4.8 20.3-8 6.3-3.3 12.1-6.8 17.2-10.7L96 32zM66.7 297h61.1v23H32v-9.5c0-6.4 1.2-12.2 3.7-17.3 2.5-5.1 5.6-9.7 9.3-13.8 3.7-4.1 7.8-7.7 12.3-10.8 4.5-3.1 8.7-6 12.7-8.5 4.2-2.6 7.9-5.1 11.1-7.6 3.2-2.4 5.9-4.8 8-7.2 2.2-2.4 3.8-4.8 4.9-7.2s1.6-5 1.6-7.8c0-5.4-1.7-9.5-5.2-12.2-3.5-2.8-8.8-4.1-16-4.1-12.4 0-24.2 4.3-35.5 12.9v-24.4c12.5-7.1 26.6-10.6 42.4-10.6 7.3 0 13.8.8 19.6 2.5 5.8 1.7 10.7 4.1 14.7 7.2 4 3.1 7.1 6.9 9.2 11.3 2.1 4.4 3.2 9.3 3.2 14.8 0 5.8-1 10.9-3.1 15.5-2 4.5-4.8 8.6-8.1 12.3-3.4 3.7-7.3 7.1-11.7 10.1-4.4 3.1-9 6-13.8 8.9-3.2 2-6.3 4-9.3 5.9-3 2-5.6 3.9-7.9 5.8s-4.1 3.8-5.4 5.6c-1.3 1.8-2 3.6-2 5.2zM32 473.8V450c10.1 6 21.8 9.1 35.3 9.1 8.5 0 15.1-1.5 19.8-4.5 4.7-3 7.1-7.2 7.1-12.5 0-5.5-2.9-9.8-8.8-12.8-5.8-3-13.9-4.5-24.1-4.5h-14V404h12.9c19.6 0 29.4-5.4 29.4-16.1 0-10.1-7.5-15.1-22.6-15.1-10.1 0-19.9 2.7-29.4 8v-22.3c10.6-4.4 22.9-6.6 37-6.6 15.4 0 27.4 2.8 36 8.5s12.9 13.1 12.9 22.2c0 16.2-10 26.3-29.9 30.4v.4c10.6 1.1 19 4.3 25.2 9.5 6.2 5.3 9.2 11.7 9.2 19.4 0 11.6-5.1 20.7-15.4 27.4S88.1 480 69.9 480c-15.5 0-28.2-2.1-37.9-6.2z" />',viewBox:"0 0 512 512"},_i={name:"list-unordered",content:'<path d="M192 64h288v32H192V64zm0 160h288v32H192v-32zm0 160h288v32H192v-32zM80 32c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 160c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 160c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z" />',viewBox:"0 0 512 512"},Fi={name:"indent",content:'<path d="M480 64H32V32h448v32zm0 32H224v32h256V96zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H32v32h448v-32zM160 240 32 128v224l128-112z" />',viewBox:"0 0 512 512"},ji={name:"outdent",content:'<path d="M480 64H32V32h448v32zm0 32H224v32h256V96zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H224v32h256v-32zm0 64H32v32h448v-32zm-320-64V128L32 240l128 112z" />',viewBox:"0 0 512 512"},Ki={name:"insert-top",content:'<path d="M192 320h192v32H192v-32zm0-128h288v-32H192v32zm192 64H192v32h192v-32zM32 64v224l96-112L32 64z" />',viewBox:"0 0 512 512"},Wi={name:"insert-middle",content:'<path d="M192 128h192v32H192v-32zm0 128h288v-32H192v32zm192 64H192v32h192v-32zM32 128v224l96-112-96-112z" />',viewBox:"0 0 512 512"},Ui={name:"insert-bottom",content:'<path d="M192 224h192v32H192v-32zm0 128h288v-32H192v32zm192-192H192v32h192v-32zM32 224v224l96-112-96-112z" />',viewBox:"0 0 512 512"},qi={name:"align-top",content:'<path d="M480 64H32V32h448v32zm-64 32H96v32h320V96zm64 64H32v32h448v-32z" />',viewBox:"0 0 512 512"},$i={name:"align-middle",content:'<path d="M480 192H32v-32h448v32zm-64 32H96v32h320v-32zm64 64H32v32h448v-32z" />',viewBox:"0 0 512 512"},Gi={name:"align-bottom",content:'<path d="M480 352H32v-32h448v32zm-64 32H96v32h320v-32zm64 64H32v32h448v-32z" />',viewBox:"0 0 512 512"},Zi={name:"align-left",content:'<path d="M448 96H64V64h384v32zm-96 32H64v32h288v-32zm96 64H64v32h384v-32zm-96 64H64v32h288v-32zm96 64H64v32h384v-32zm-96 64H64v32h288v-32z" />',viewBox:"0 0 512 512"},Yi={name:"align-center",content:'<path d="M448 96H64V64h384v32zm-64 64H128v-32h256v32zm64 64H64v-32h384v32zm-64 64H128v-32h256v32zm64 64H64v-32h384v32zm-64 64H128v-32h256v32z" />',viewBox:"0 0 512 512"},Ji={name:"align-right",content:'<path d="M64 192h384v32H64v-32zm384-96V64H64v32h384zm-288 64h288v-32H160v32zM64 320v32h384v-32H64zm96-32h288v-32H160v32zm0 96v32h288v-32H160z" />',viewBox:"0 0 512 512"},Xi={name:"align-justify",content:'<path d="M448 160H64v-32h384v32zm0-96H64v32h384V64zM64 352h384v-32H64v32zm0-64h384v-32H64v32zm0-64h384v-32H64v32zm0 192h384v-32H64v32z" />',viewBox:"0 0 512 512"},Qi={name:"align-remove",content:'<path d="m78.9 192 32 32H64v-32h14.9zM64 288h110.9l-32-32H64v32zm0 64h174.9l-32-32H64v32zm0 32v32h238.9l-32-32H64zm393.4 96 22.6-22.6-41.4-41.4h9.4v-32h-41.4l-32-32H448v-32H342.6l-32-32H448v-32H278.6l-32-32H448v-32H214.6l-32-32H448v-32H150.6l-32-32H448V64H86.6l-32-32L32 54.6" />',viewBox:"0 0 512 512"},ea={name:"text-wrap",content:'<path d="M480 96v32H96V96h384zM352 256v224H32V256h320zm-32 32H64v160h256V288zm-32 32H96v32h192v-32zm0 96v-32H96v32h192zM64 64h288V32H32v160h320v-32H64V64z" />',viewBox:"0 0 512 512"},ta={name:"horizontal-rule",content:'<path d="M320 96H32V64h288v32zm96 32H32v32h384v-32zm64 96H32v64h448v-64zM320 352H32v32h288v-32zm96 64H32v32h384v-32z" />',viewBox:"0 0 512 512"},na={name:"table-align-top-left",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm32 64h192V64H96v32zm0 64h320v-32H96v32zm0 64h192v-32H96v32z" />',viewBox:"0 0 512 512"},oa={name:"table-align-top-center",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm288 32H160v32h192V64zm64 64H96v32h320v-32zm-64 64H160v32h192v-32z" />',viewBox:"0 0 512 512"},ra={name:"table-align-top-right",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm352 32H224v32h192V64zm0 64H96v32h320v-32zm0 64H224v32h192v-32z" />',viewBox:"0 0 512 512"},ia={name:"table-align-middle-left",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm32 160h192v-32H96v32zm0 64h320v-32H96v32zm0 64h192v-32H96v32z" />',viewBox:"0 0 512 512"},aa={name:"table-align-middle-center",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm288 128H160v32h192v-32zm64 64H96v32h320v-32zm-64 64H160v32h192v-32z" />',viewBox:"0 0 512 512"},sa={name:"table-align-middle-right",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm352 128H224v32h192v-32zm0 64H96v32h320v-32zm0 64H224v32h192v-32z" />',viewBox:"0 0 512 512"},la={name:"table-align-bottom-left",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm32 256h192v-32H96v32zm0 64h320v-32H96v32zm0 64h192v-32H96v32z" />',viewBox:"0 0 512 512"},ca={name:"table-align-bottom-center",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm288 224H160v32h192v-32zm64 64H96v32h320v-32zm-64 64H160v32h192v-32z" />',viewBox:"0 0 512 512"},ua={name:"table-align-bottom-right",content:'<path d="M32 480V0h448v480H32zM64 32v416h384V32H64zm352 224H224v32h192v-32zm0 64H96v32h320v-32zm0 64H224v32h192v-32z" />',viewBox:"0 0 512 512"},da={name:"table-align-remove",content:'<path d="M32 0v480h448V0H32zm416 448H64V32h384v416zM131.6 224l29.9 32H128v-32h3.6zm-3.6 64h63.4l29.9 32H128v-32zm123.1 64 29.9 32H128v-32h123.1zM96 92l22.6-22.6L143.5 96H384v32H173.4l29.9 32H384v32H233.1l29.9 32h121v32h-91.2l29.9 32H384v32h-31.4l63.4 68-22.6 22.6L96 92z" />',viewBox:"0 0 512 512"},pa={name:"borders-all",content:'<path d="M32 32v416h416V32H32zm32 32h160v160H64V64zm0 352V256h160v160H64zm352 0H256V256h160v160zm0-192H256V64h160v160z" />',viewBox:"0 0 512 512"},ha={name:"borders-outside",content:'<path d="M128 256H96v-32h32v32zm64-32h-32v32h32v-32zm64 0h-32v32h32v-32zm0-64h-32v32h32v-32zm0-64h-32v32h32V96zm0 256h-32v32h32v-32zm0-64h-32v32h32v-32zm64-64h-32v32h32v-32zm64 0h-32v32h32v-32zm64-192v416H32V32h416zm-32 32H64v352h352V64z" />',viewBox:"0 0 512 512"},fa={name:"borders-inside",content:'<path d="M64 64H32V32h32v32zm0 32H32v32h32V96zm0 64H32v32h32v-32zm0 128H32v32h32v-32zm0 64H32v32h32v-32zM448 96h-32v32h32V96zm0 64h-32v32h32v-32zm0 128h-32v32h32v-32zm0 64h-32v32h32v-32zM128 32H96v32h32V32zm64 0h-32v32h32V32zM64 416H32v32h32v-32zm64 0H96v32h32v-32zm64 0h-32v32h32v-32zm128 0h-32v32h32v-32zm64 0h-32v32h32v-32zm64 0h-32v32h32v-32zM320 32h-32v32h32V32zm64 0h-32v32h32V32zm64 0h-32v32h32V32zm0 192H256V32h-32v192H32v32h192v192h32V256h192v-32z" />',viewBox:"0 0 512 512"},ma={name:"borders-inside-horizontal",content:'<path d="M448 224v32H32v-32h416zM64 32H32v32h32V32zm0 96H32V96h32v32zm0 64H32v-32h32v32zm0 128H32v-32h32v32zm0 64H32v-32h32v32zm384-256h-32V96h32v32zm0 64h-32v-32h32v32zm0 128h-32v-32h32v32zm0 64h-32v-32h32v32zM128 64H96V32h32v32zm64 0h-32V32h32v32zm64 0h-32V32h32v32zm0 64h-32V96h32v32zm0 64h-32v-32h32v32zm0 128h-32v-32h32v32zm0 64h-32v-32h32v32zm0 64h-32v-32h32v32zM64 416H32v32h32v-32zm64 32H96v-32h32v32zm64 0h-32v-32h32v32zm128-32h-32v32h32v-32zm64 32h-32v-32h32v32zm64 0h-32v-32h32v32zM320 32h-32v32h32V32zm64 32h-32V32h32v32zm64 0h-32V32h32v32z" />',viewBox:"0 0 512 512"},va={name:"borders-inside-vertical",content:'<path d="M256 448h-32V32h32v416zM448 64V32h-32v32h32zm-96 0V32h32v32h-32zm-64 0V32h32v32h-32zm-128 0V32h32v32h-32zm-64 0V32h32v32H96zm256 384v-32h32v32h-32zm-64 0v-32h32v32h-32zm-128 0v-32h32v32h-32zm-64 0v-32h32v32H96zm320-320V96h32v32h-32zm0 64v-32h32v32h-32zm0 64v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32h-32zm-128 0v-32h32v32h-32zm-64 0v-32h32v32H96zm-64 0v-32h32v32H32zM64 64V32H32v32h32zm-32 64V96h32v32H32zm0 64v-32h32v32H32zm32 128v-32H32v32h32zm-32 64v-32h32v32H32zm0 64v-32h32v32H32zm416-128v-32h-32v32h32zm-32 64v-32h32v32h-32zm0 64v-32h32v32h-32z" />',viewBox:"0 0 512 512"},ga={name:"border-top",content:'<path d="M448 32v32H32V32h416zM64 96H32v32h32V96zm0 96H32v-32h32v32zm0 64H32v-32h32v32zm0 64H32v-32h32v32zm0 64H32v-32h32v32zm384-192h-32v-32h32v32zm0 64h-32v-32h32v32zm0 64h-32v-32h32v32zm0 64h-32v-32h32v32zM128 256H96v-32h32v32zm64 0h-32v-32h32v32zm64-128h-32V96h32v32zm0 64h-32v-32h32v32zm0 64h-32v-32h32v32zm0 64h-32v-32h32v32zm0 64h-32v-32h32v32zm0 64h-32v-32h32v32zM64 416H32v32h32v-32zm64 32H96v-32h32v32zm64 0h-32v-32h32v32zm128-32h-32v32h32v-32zm64 32h-32v-32h32v32zm64 0h-32v-32h32v32zM320 224h-32v32h32v-32zm64 32h-32v-32h32v32zm64-128h-32V96h32v32z" />',viewBox:"0 0 512 512"},ya={name:"border-bottom",content:'<path d="M32 448v-32h416v32H32zm32-96H32v32h32v-32zm0-32H32v-32h32v32zm0-64H32v-32h32v32zm0-64H32v-32h32v32zm0-64H32V96h32v32zm384 192h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h-32V96h32v32zM128 256H96v-32h32v32zm64 0h-32v-32h32v32zm64 128h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h-32v-32h32v32zm0-64h-32V96h32v32zm0-64h-32V32h32v32zM64 32H32v32h32V32zm64 32H96V32h32v32zm64 0h-32V32h32v32zm128-32h-32v32h32V32zm64 32h-32V32h32v32zm64 0h-32V32h32v32zM320 224h-32v32h32v-32zm64 32h-32v-32h32v32zm64 128h-32v-32h32v32z" />',viewBox:"0 0 512 512"},ba={name:"border-left",content:'<path d="M32 32h32v416H32V32zm96 32V32H96v32h32zm32 0V32h32v32h-32zm64 0V32h32v32h-32zm64 0V32h32v32h-32zm64 0V32h32v32h-32zM160 448v-32h32v32h-32zm64 0v-32h32v32h-32zm64 0v-32h32v32h-32zm64 0v-32h32v32h-32zM224 128V96h32v32h-32zm0 64v-32h32v32h-32zM96 256v-32h32v32H96zm64 0v-32h32v32h-32zm64 0v-32h32v32h-32zm64 0v-32h32v32h-32zm64 0v-32h32v32h-32zm64 0v-32h32v32h-32zm32-192V32h-32v32h32zm-32 64V96h32v32h-32zm0 64v-32h32v32h-32zm32 128v-32h-32v32h32zm-32 64v-32h32v32h-32zm0 64v-32h32v32h-32zM256 320v-32h-32v32h32zm-32 64v-32h32v32h-32zM96 448v-32h32v32H96z" />',viewBox:"0 0 512 512"},wa={name:"border-right",content:'<path d="M448 448h-32V32h32v416zM384 64V32h-32v32h32zm-96 0V32h32v32h-32zm-64 0V32h32v32h-32zm-64 0V32h32v32h-32zm-64 0V32h32v32H96zm192 384v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32H96zm128-320V96h32v32h-32zm0 64v-32h32v32h-32zm128 64v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32H96zm-64 0v-32h32v32H32zM64 64V32H32v32h32zm-32 64V96h32v32H32zm0 64v-32h32v32H32zm32 128v-32H32v32h32zm-32 64v-32h32v32H32zm0 64v-32h32v32H32zm224-128v-32h-32v32h32zm-32 64v-32h32v32h-32zm128 64v-32h32v32h-32z" />',viewBox:"0 0 512 512"},ka={name:"borders-none",content:'<path d="M384 64V32h-32v32h32zm-96 0V32h32v32h-32zm-64 0V32h32v32h-32zm-64 0V32h32v32h-32zm-64 0V32h32v32H96zm192 384v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32H96zm128-320V96h32v32h-32zm0 64v-32h32v32h-32zm128 64v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32h-32zm-64 0v-32h32v32H96zm-64 0v-32h32v32H32zM64 64V32H32v32h32zm-32 64V96h32v32H32zm0 64v-32h32v32H32zm32 128v-32H32v32h32zm-32 64v-32h32v32H32zm0 64v-32h32v32H32zm384-192v-32h32v32h-32zm32-192V32h-32v32h32zm-32 64V96h32v32h-32zm0 64v-32h32v32h-32zm32 128v-32h-32v32h32zm-32 64v-32h32v32h-32zm0 64v-32h32v32h-32zM256 320v-32h-32v32h32zm-32 64v-32h32v32h-32zm128 64v-32h32v32h-32z" />',viewBox:"0 0 512 512"},xa={name:"borders-show-hide",content:'<path d="M64 448h128v32H32V32h448v128h-32V64H64v384zm384 0h-64v32h96v-96h-32v64zM160 288v-64H96v64h64zm64 0h64v-64h-64v64zm160-32v-32h-32v32h32zM288 96h-64v64h64V96zm0 384L160 352l45-45 83 83 147-147 45 45-192 192z" />',viewBox:"0 0 512 512"},za={name:"form",content:'<path d="M416 32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32H96V0H64v32H32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32V96h32V64h-32V32h-32zm0 384H64V64h352v352zm32 64v-32h32v32h-32zm32-448h-32V0h32v32zM0 448h32v32H0v-32zM32 0v32H0V0h32z" />',viewBox:"0 0 512 512"},Ca={name:"form-element",content:'<path d="M416 32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32H96V0H64v32H32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32V96h32V64h-32V32h-32zm0 384H64V64h352v352zm32 64v-32h32v32h-32zm32-448h-32V0h32v32zM0 448h32v32H0v-32zM32 0v32H0V0h32zm160 128H96v32h96v-32zm192 0H224v32h160v-32zm0 64H224v32h160v-32zm0 64H224v32h160v-32zm0 64H224v32h160v-32zm-192 0H96v32h96v-32zm0-64H96v32h96v-32zm0-64H96v32h96v-32z" />',viewBox:"0 0 512 512"},Sa={name:"code-snippet",content:'<path d="M416 32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32h-32V0h-32v32H96V0H64v32H32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32H0v32h32v32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v32h32v-32h32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32v-32h32v-32h-32V96h32V64h-32V32h-32zm0 256v128H64V64h352v224zM32 0v32H0V0h32zM0 448h32v32H0v-32zm198.6-265.4L141.3 240l57.4 57.4L176 320l-80-80 80-80 22.6 22.6zM304 160l80 80-80 80-22.6-22.6 57.4-57.4-57.4-57.4L304 160zM480 32h-32V0h32v32zm-32 448v-32h32v32h-32z" />',viewBox:"0 0 512 512"},Ia={name:"select-all",content:'<path d="M448 448h32v32h-32v-32zm0-448h32v32h-32V0zM0 448h32v32H0v-32zM0 0h32v32H0V0zm448 384h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32v-32zm0-64h32v32h-32V64zM0 384h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0v-32zm0-64h32v32H0V64zm128 384h32v32h-32v-32zm-64 0h32v32H64v-32zm128 0h32v32h-32v-32zm64 0h32v32h-32v-32zm64 0h32v32h-32v-32zm64 0h32v32h-32v-32zM64 0h32v32H64V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm64 0h32v32h-32V0zm-96 64 53.4 53.4L240 218.9 138.6 117.4 192 64H64v128l53.5-53.5L218.9 240 117.5 341.5 64 288v128h128l-53.4-53.4L240 261.1l101.4 101.5L288 416h128V288l-53.5 53.5L261.1 240l101.4-101.5L416 192V64H288z" />',viewBox:"0 0 512 512"},Ma={name:"button",content:'<path d="m130.1 130.1 36.1 93.9H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h384c17.6 0 32 14.4 32 32v128c0 17.6-14.4 32-32 32h-73.8l-244.1-93.9zM480 299 185.8 185.8 299 480l22.6-113.1L434.7 480l45.3-45.3-113.1-113.1L480 299z" />',viewBox:"0 0 512 512"},Ea={name:"select-box",content:'<path d="M384 352H128v-32h256v32zm0 32H128v32h256v-32zm0-128H128v32h256v-32zm96-192v128c0 17.6-14.4 32-32 32v224c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V224c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h384c17.6 0 32 14.4 32 32zM352 96l32 64 32-64h-64zm64 128H96v224h320V224z" />',viewBox:"0 0 512 512"},Oa={name:"calendar-date",content:'<path d="M448 32h-64V0h-64v32H192V0h-64v32H64c-17.6 0-32 14.4-32 32v384c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32zm0 416-383.9.1-.1-.1V192h384v256zm0-288H64V64.1l.1-.1H128v32h64V64h128v32h64V64h63.9l.1.1V160zM192 270.6S171.9 288 142 288v-32c29.9 0 58-32 58-32h24v192h-32V270.6zM384 416H256v-14.2c0-9.7 1.6-18.4 4.8-26 3.3-7.7 7.3-14.6 12.2-20.7 4.8-6.1 10.2-11.5 15.9-16.2 5.7-4.7 11.3-8.9 16.4-12.7 5.5-3.9 10.3-7.7 14.4-11.3 4.2-3.6 7.6-7.2 10.4-10.7 2.8-3.5 4.9-7.1 6.3-10.8 1.4-3.6 2.1-7.5 2.1-11.7 0-8.1-2.3-14.1-6.8-18.4-4.5-4.1-11.5-6.2-20.7-6.2-16 0-31.5 6.4-46.1 19.4v-37.1c16.5-10.6 35-16.1 55.5-16.1 9.6 0 18.2 1.3 25.7 3.8 7.6 2.5 14.1 6.1 19.3 10.7s9.3 10.3 12.1 17c2.7 6.6 4.1 14.1 4.1 22.3 0 8.7-1.4 16.6-4 23.3-2.7 6.8-6.3 12.9-10.6 18.5-4.5 5.6-9.5 10.6-15.3 15.2-5.8 4.6-11.8 9.1-18 13.4-4.2 3-8.3 5.9-12.2 8.9-3.9 2.9-7.4 5.8-10.4 8.7-3 2.9-5.3 5.7-7.1 8.4-1.9 2.7-2.7 7.8-2.7 10.3H384V416z" />',viewBox:"0 0 512 512"},Ha={name:"group-box",content:'<path d="M144 81.6c-10.6-7.5-25.2-11.1-44.1-11.1-40.5 0-61.7 15-63.6 45.2h26.1c.7-16.8 12.8-25 36-25 11 0 19.2 1.6 24.4 4.8 2.6 1.6 4.6 3.3 6.2 5.1 1.5 1.9 2.5 4 3.2 6.6.7 2.6 1.2 5.6 1.4 9.4.1 3.6.1 8.2.1 13.6h-12.8c-59.4 0-89.1 17.2-89.1 51.4 0 6.4 1.3 12 3.8 17.2 2.5 5.3 6 9.7 10.4 13.4 4.4 3.8 9.7 6.6 16 8.7 6.1 2.2 12.8 3.2 20 3.2 20.9 0 38.2-6.2 51.7-18.6v17.9H160v-97.8c0-22.1-5.4-36.7-16-44zm-10.1 100.2c-2.3 3.3-5.1 6.2-8.4 9-3.2 2.6-6.8 4.9-10.7 6.8-3.9 1.9-8 3.3-12.2 4.3-4.2 1-8.6 1.4-12.8 1.4-9.6 0-17-2-22.5-5.9-5.5-4-8.3-9.8-8.3-17.2 0-20.7 18.9-30.9 56.9-30.9h18v32.5zM316 115.7c-2.7-9.3-6.6-17.2-11.8-23.8-5-6.4-11.4-11.5-18.7-15-7.5-3.4-16-5.2-25.5-5.2-16.4 0-30.2 6.9-41.7 20.5V32H192v192h26.2v-14.8c10.9 9.7 24.3 14.8 40 14.8 8.8 0 17-1.9 24.5-5.4 7.6-3.7 14.1-8.9 19.7-15.5 5.5-6.7 9.8-14.9 13-24.4 3-9.6 4.6-20.4 4.6-32.1 0-11.5-1.3-21.8-4-30.9zm-32.6 73.6c-6.6 9.5-15.6 14.2-26.8 14.2-14.5 0-27.4-5.9-38.4-17.8v-69.1c11.9-16.6 25-24.9 39.4-24.9 11.4 0 20 4.6 26.2 13.9 6.2 9.2 9.3 22.9 9.3 41 .1 18.9-3.2 33.3-9.7 42.7zM450 110c1.8 3.2 2.7 6.9 3 11.2h27c-.9-7.3-3.1-13.8-6.4-19.6-3.3-5.8-7.6-10.5-12.7-14.2-5.2-3.9-11.2-6.8-18-8.8-6.9-2-14.2-3-22.2-3-10.3 0-19.5 1.6-28 4.9-8.5 3.3-15.7 8.1-21.8 14.4-6 6.3-10.7 14.1-14 23.3-3.3 9.2-4.9 19.7-4.9 31.5 0 11.9 1.6 22.5 4.9 31.7 3.1 9.2 7.8 17 13.9 23.2 6 6.3 13.3 11.1 21.8 14.4 8.3 3.3 17.9 5 28.2 5 8 0 15.3-1 22.2-3 6.8-2 12.8-4.9 18-8.8 5.1-3.9 9.4-8.8 12.7-14.4 3.3-5.6 5.5-12.1 6.4-19.6h-27c-.3 4.2-1.2 7.9-3 11.2-1.8 3.2-4.2 5.9-7 8.1-3 2.2-6.3 3.9-10.1 4.9-3.9 1.2-7.9 1.7-12.2 1.7-6.3 0-11.9-1.2-17-3.5-5.2-2.3-9.7-5.8-13.4-10.4-3.7-4.5-6.6-10.2-8.5-17-2.1-6.8-3.1-14.7-3.1-23.6 0-9.1 1-17.1 3.1-23.9 2.1-6.9 5.1-12.5 8.8-17.1 3.7-4.5 8-7.8 13.3-10.1 5.1-2.3 10.7-3.5 16.8-3.5 4.3 0 8.3.6 12.2 1.7 3.9 1.2 7.2 2.7 10.1 4.9 2.8 2.4 5.2 5.1 6.9 8.4zM128 256h256v32H128v-32zm0 64h256v32H128v-32zm0 64h256v32H128v-32zm256 32H128v-32h256v32zm0-128H128v-32h256v32zm0 64H128v-32h256v32zm32-96h32v192c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V256h32v192h320V256z" />',viewBox:"0 0 512 512"},Na={name:"textarea",content:'<path d="M448 448h-32V256h32v192zM194 334c1.8 3.2 2.7 6.9 3 11.2h27c-.9-7.3-3.1-13.8-6.4-19.6-3.3-5.8-7.6-10.5-12.7-14.2-5.2-3.9-11.2-6.8-18-8.8-6.9-2-14.2-3-22.2-3-10.3 0-19.5 1.6-28 4.9-8.5 3.3-15.7 8.1-21.8 14.4-6 6.3-10.7 14.1-14 23.3-3.3 9.2-4.9 19.7-4.9 31.5 0 11.9 1.6 22.5 4.9 31.7 3.1 9.2 7.8 17 13.9 23.2 6 6.3 13.3 11.1 21.8 14.4 8.3 3.3 17.9 5 28.2 5 8 0 15.3-1 22.2-3 6.8-2 12.8-4.9 18-8.8 5.1-3.9 9.4-8.8 12.7-14.4 3.3-5.6 5.5-12.1 6.4-19.6h-27c-.3 4.2-1.2 7.9-3 11.2-1.8 3.2-4.2 5.9-7 8.1-3 2.2-6.3 3.9-10.1 4.9-3.9 1.2-7.9 1.7-12.2 1.7-6.3 0-11.9-1.2-17-3.5-5.2-2.3-9.7-5.8-13.4-10.4-3.7-4.5-6.6-10.2-8.5-17-2.1-6.8-3.1-14.7-3.1-23.6 0-9.1 1-17.1 3.1-23.9 2.1-6.9 5.1-12.5 8.8-17.1 3.7-4.5 8-7.8 13.3-10.1 5.1-2.3 10.7-3.5 16.8-3.5 4.3 0 8.3.6 12.2 1.7 3.9 1.2 7.2 2.7 10.1 4.9 2.8 2.4 5.2 5.1 6.9 8.4zm14-252.4c-10.6-7.5-25.2-11.1-44.1-11.1-40.5 0-61.7 15-63.6 45.2h26.1c.7-16.8 12.8-25 36-25 11 0 19.2 1.6 24.4 4.8 2.6 1.6 4.6 3.3 6.2 5.1 1.5 1.9 2.5 4 3.2 6.6.7 2.6 1.2 5.6 1.4 9.4.1 3.6.1 8.2.1 13.6h-12.8c-59.4 0-89.1 17.2-89.1 51.4 0 6.4 1.3 12 3.8 17.2 2.5 5.3 6 9.7 10.4 13.4 4.4 3.8 9.7 6.6 16 8.7 6.1 2.2 12.8 3.2 20 3.2 20.9 0 38.2-6.2 51.7-18.6v17.9H224v-97.8c0-22.1-5.4-36.7-16-44zm-10.1 100.2c-2.3 3.3-5.1 6.2-8.4 9-3.2 2.6-6.8 4.9-10.7 6.8-3.9 1.9-8 3.3-12.2 4.3-4.2 1-8.6 1.4-12.8 1.4-9.6 0-17-2-22.5-5.9-5.5-4-8.3-9.8-8.3-17.2 0-20.7 18.9-30.9 56.9-30.9h18v32.5zM380 115.7c-2.7-9.3-6.6-17.2-11.8-23.8-5-6.4-11.4-11.5-18.7-15-7.5-3.4-16-5.2-25.5-5.2-16.4 0-30.2 6.9-41.7 20.5V32H256v192h26.2v-14.8c10.9 9.7 24.3 14.8 40 14.8 8.8 0 17-1.9 24.5-5.4 7.6-3.7 14.1-8.9 19.7-15.5 5.5-6.7 9.8-14.9 13-24.4 3-9.6 4.6-20.4 4.6-32.1 0-11.5-1.3-21.8-4-30.9zm-32.6 73.6c-6.6 9.5-15.6 14.2-26.8 14.2-14.5 0-27.4-5.9-38.4-17.8v-69.1c11.9-16.6 25-24.9 39.4-24.9 11.4 0 20 4.6 26.2 13.9 6.2 9.2 9.3 22.9 9.3 41 .1 18.9-3.2 33.3-9.7 42.7zM256 370.6c0 11.8 1.6 22.5 4.6 32.1 3.2 9.5 7.5 17.6 13 24.4 5.6 6.6 12.1 11.8 19.7 15.5 7.5 3.6 15.7 5.4 24.5 5.4 15.7 0 29.1-5 40-14.8V448H384V256h-26.2v60.1c-11.5-13.6-25.3-20.5-41.7-20.5-9.5 0-18 1.7-25.5 5.2-7.3 3.6-13.7 8.6-18.7 15-5.2 6.6-9.1 14.5-11.8 23.8-2.8 9.2-4.1 19.5-4.1 31zm26.8 0c0-18.1 3.2-31.8 9.3-41 6.2-9.3 14.8-13.9 26.2-13.9 14.4 0 27.5 8.3 39.4 24.9v69.1c-11.1 11.9-23.9 17.8-38.4 17.8-11.2 0-20.2-4.7-26.8-14.2-6.4-9.4-9.7-23.8-9.7-42.7z" />',viewBox:"0 0 512 512"},Pa={name:"textbox",content:'<path d="M208 209.6c-10.6-7.5-25.2-11.1-44.1-11.1-40.5 0-61.7 15-63.6 45.2h26.1c.7-16.8 12.8-25 36-25 11 0 19.2 1.6 24.4 4.8 2.6 1.6 4.6 3.3 6.2 5.1 1.5 1.9 2.5 4 3.2 6.6.7 2.6 1.2 5.6 1.4 9.4.1 3.6.1 8.2.1 13.6h-12.8c-59.4 0-89.1 17.2-89.1 51.4 0 6.4 1.3 12 3.8 17.2 2.5 5.3 6 9.7 10.4 13.4 4.4 3.8 9.7 6.6 16 8.7 6.1 2.2 12.8 3.2 20 3.2 20.9 0 38.2-6.2 51.7-18.6v17.9H224v-97.8c0-22.1-5.4-36.7-16-44zm-10.1 100.2c-2.3 3.3-5.1 6.2-8.4 9-3.2 2.6-6.8 4.9-10.7 6.8-3.9 1.9-8 3.3-12.2 4.3-4.2 1-8.6 1.4-12.8 1.4-9.6 0-17-2-22.5-5.9-5.5-4-8.3-9.8-8.3-17.2 0-20.7 18.9-30.9 56.9-30.9h18v32.5zm170.3-89.9c-5-6.4-11.4-11.5-18.7-15-7.5-3.4-16-5.2-25.5-5.2-16.4 0-30.2 6.9-41.7 20.5V160H256v192h26.2v-14.8c10.9 9.7 24.3 14.8 40 14.8 8.8 0 17-1.9 24.5-5.4 7.6-3.7 14.1-8.9 19.7-15.5 5.5-6.7 9.8-14.9 13-24.4 3-9.6 4.6-20.4 4.6-32.1 0-11.5-1.3-21.8-4-31-2.8-9.3-6.7-17.1-11.8-23.7zm-20.8 97.4c-6.6 9.5-15.6 14.2-26.8 14.2-14.5 0-27.4-5.9-38.4-17.8v-69.1c11.9-16.6 25-24.9 39.4-24.9 11.4 0 20 4.6 26.2 13.9 6.2 9.2 9.3 22.9 9.3 41 .1 18.9-3.2 33.3-9.7 42.7zM448 64v384h-32V64h32z" />',viewBox:"0 0 512 512"},Va={name:"textbox-hidden",content:'<path d="M0 160h32v64H0v-64zm0-32h32V64H0v64zm0 288h32v-64H0v64zm160 96h64v-32h-64v32zm-96 0h64v-32H64v32zM352 0h-64v32h64V0zm-96 0h-64v32h64V0zM0 512h32v-64H0v64zM448 0h-64v32h64V0zM160 0H96v32h64V0zM64 0H0v32h64V0zM0 320h32v-64H0v64zm480 128h32v-64h-32v64zm0-96h32v-64h-32v64zm0-96h32v-64h-32v64zm0-96h32V96h-32v64zm0-160v64h32V0h-32zm-32 512h64v-32h-64v32zm-192 0h64v-32h-64v32zm96 0h64v-32h-64v32zm-6-165.4c-7.4 3.6-15.6 5.4-24.3 5.4-15.6 0-28.9-5-39.7-14.8V352h-26V160h26v60.1c11.4-13.6 25.1-20.5 41.4-20.5 9.4 0 17.9 1.7 25.3 5.2 7.2 3.6 13.6 8.6 18.6 15 5.2 6.6 9 14.5 11.7 23.8 2.7 9.2 4 19.5 4 31 0 11.8-1.6 22.5-4.6 32.1-3.2 9.5-7.4 17.6-12.9 24.4-5.5 6.6-12 11.7-19.5 15.5zm10.9-72c0-18.1-3.2-31.8-9.3-41-6.2-9.3-14.8-13.9-26.2-13.9-14.4 0-27.5 8.3-39.4 24.9v69.1c11.1 11.9 23.9 17.8 38.4 17.8 11.2 0 20.2-4.7 26.8-14.2 6.4-9.4 9.7-23.8 9.7-42.7zM224 253.5V351h-26v-17.6S167.1 352 146.2 352c-7.3 0-13.9-1-20-3.2-6.2-2-11.6-4.9-16-8.7-4.5-3.8-8-8.1-10.4-13.4-2.5-5.2-3.8-10.8-3.8-17.2 0-34.2 29.8-51.4 89.1-51.5h12.8c0-5.2 0-9.9-.1-13.5-.3-3.8-.7-6.8-1.4-9.4-.7-2.6-1.7-4.8-3.2-6.6-1.6-1.7-3.6-3.5-6.2-5.1-5.2-3.2-13.4-4.8-24.4-4.8-23.2 0-35.3 8.2-36 24.4h-26.1c1.9-29.6 23.1-44.6 63.6-44.6 18.9 0 33.5 3.6 44.1 11.1 10.4 7.4 15.8 22 15.8 44zM198 277h-18c-38 0-56.9 10.3-56.9 30.9 0 7.4 2.8 13.1 8.3 17.2 5.5 3.9 12.9 5.9 22.5 5.9 4.2 0 8.6-.4 12.8-1.4s8.3-2.5 12.2-4.3c3.9-1.9 7.5-4.2 10.7-6.8 3.3-2.7 6.1-5.6 8.4-9V277zM448 64h-32v384h32V64z" />',viewBox:"0 0 512 512"},Ta={name:"password",content:'<path d="M480 64v384h-32V64h32zM174.2 221.1l-11.3-11.3-34.9 34.9V192H96v52.7l-34.9-34.9-11.3 11.3L84.7 256H32v32h52.7l-34.9 34.9 11.3 11.3L96 299.3V352h32v-52.7l34.9 34.9 11.3-11.3-34.9-34.9H192v-32h-52.7l34.9-34.9zm224 0-11.3-11.3-34.9 34.9V192h-32v52.7l-34.9-34.9-11.3 11.3 34.9 34.9H256v32h52.7l-34.9 34.9 11.3 11.3 34.9-34.9V352h32v-52.7l34.9 34.9 11.3-11.3-34.9-34.9H416v-32h-52.7l34.9-34.9z" />',viewBox:"0 0 512 512"},Ra={name:"paragraph-add",content:'<path d="M320 96h-64v352h-32V96h-64v352h-32V256c-53 0-96-43-96-96s43-96 96-96h192v32zm96 256v-64h-32v64h-64v32h64v64h32v-64h64v-32h-64z" />',viewBox:"0 0 512 512"},Da={name:"edit-tools",content:'<path d="m260.6 288 11.5 31.5 56.2-56.6L244.2 32H139.8L0 416h76.8l28-76.8 18.6-51.2h137.2zm-17.5-48H140.9L192 99.5 243.1 240zM224 413.3V480h66.7l169.7-168.5-67.9-67.9L224 413.3zm55.3 34-22.6-22.6 135.8-135.8 22.6 22.6-135.8 135.8zm223.4-178-22.6 22.6-67.9-67.9 22.5-22.7c12.5-12.4 32.9-12.4 45.3 0l22.7 22.7c12.4 12.4 12.4 32.8 0 45.3z" />',viewBox:"0 0 512 512"},Ba={name:"template-manager",content:'<path d="M377.2 292.1c-5.5 5.3-7.2 6.4-7.4 6.6-.2.1-.4.2-.9.2-.1-.2-.3-.7-.5-1.7s-.5-4.2-.5-15.1v-31.7c0-9.9-.7-16.2-2.3-19.7-2.4-5.4-6.1-9.4-11.2-12-6.2-3.1-14-4.7-23.3-4.7-12.3 0-22.1 2.8-29 8.4-7.2 5.7-10.9 12.3-10.9 19.4 0 4.1 1.2 7.5 3.6 10 2.5 2.7 5.7 4 9.6 4 3.9 0 7.2-1.3 9.6-3.8 2.4-2.4 3.6-5.9 3.6-10.2l-.2-5.8c0-1.9.9-3.5 2.7-5.1 1.8-1.6 4.4-2.4 7.9-2.4 4.7 0 8.1 1.3 10.4 3.9 1.7 1.9 3.6 6.3 3.6 16.8v.9c-15.6 5.6-26.5 10.2-33.4 14.1-7.8 4.4-13.1 9.1-16.3 14.3-2.5 3.9-3.7 8.5-3.7 13.8 0 8.2 2.5 14.9 7.5 20 5 5.2 11.6 7.8 19.4 7.8 4.9 0 9.5-1 13.8-2.9 2.2-1 6.6-3.9 13.5-8.9.7 2.9 1.9 5.2 3.5 6.9 2.8 3.1 6.6 4.7 11.2 4.7 8.5 0 17.1-5.6 25.7-16.8l.8-1v-16.3l-6.8 6.3zm-35.2-.2c-8.9 6.7-14.1 8.1-16.9 8.1h-.1c-2.8 0-5.1-1.1-7.4-3.6-2.3-2.4-3.5-5.6-3.5-9.5 0-3 .9-5.8 2.8-8.4 2.1-2.8 5.7-5.6 10.6-8.2 2.4-1.3 7.2-3.4 14.4-6.2l.1 27.8zm-97.9 12.2c-1.3-1.4-4-5.6-7.9-17.9L195.6 160h-7.7l-41 124.9c-4.1 12.7-7 17.9-8.8 20.1-.3.4-1.8 1.8-7.4 3.1l-2.8.6V320h43v-11.7l-3.2-.3c-6.6-.6-8.3-2-8.6-2.3-.9-.9-1.3-1.9-1.3-3 0-1.6.5-4.8 2.6-11.5l5.3-16.2h42.1l4.6 14c2.6 8.1 3.1 12 3.1 13.8 0 1.3-.4 2.2-1.3 3.2-.3.4-1.9 1.6-7 1.9l-3.3.2V320h52v-11.8l-3.2-.3c-3.8-.3-6.6-1.5-8.6-3.8zM172.5 254l14.7-44.6 14.4 44.6h-29.1zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-224-32h-64v-64h64v64zm96 0h-64v-64h64v64zm96 0h-64v-64h64v64z" />',viewBox:"0 0 512 512"},Aa={name:"change-manually",content:'<path d="m416 353 32-32v159H32V32h416v64h-32V64H64v384h352v-95zm-192-3.7V416h66.7l169.7-168.5-67.9-67.9L224 349.3zm55.3 34-22.6-22.6 135.8-135.8 22.6 22.6-135.8 135.8zM502.7 160 480 137.3c-12.4-12.4-32.8-12.4-45.3 0L412.2 160l67.9 67.9 22.6-22.6c12.4-12.5 12.4-32.9 0-45.3zM191.9 416H167v-22h-.6c-7.9 14.6-19.4 22-34.6 22-11.2 0-20-3.3-26.3-9.8S96 391 96 380.3c0-23.1 12.4-36.5 37.2-40.4l33.9-5.1c0-17.4-7.7-26.1-23.2-26.1-13.6 0-25.8 5-36.8 15v-24.2c12-7.6 25.9-11.5 41.7-11.5 28.8 0 43.3 15.2 43.3 45.6V416h-.2zM167 353.1l-23.9 3.6c-7.4 1-13 3-16.8 5.8s-5.6 7.8-5.6 14.9c0 5.2 1.7 9.4 5.2 12.7 3.5 3.3 8.1 5 13.9 5 7.9 0 14.4-3 19.5-8.9 5.2-5.9 7.7-13.4 7.7-22.4v-10.7z" />',viewBox:"0 0 512 512"},La={name:"track-changes",content:'<path d="m412.2 256 22.6-22.6c12.4-12.4 32.8-12.4 45.3 0l22.6 22.6c12.4 12.4 12.4 32.8 0 45.3L480 323.8 412.2 256zm-19.7 19.6L250.9 417.2 224 445.3V512h66.7l28.1-26.9 141.6-141.6-67.9-67.9zM279.3 479.3 268 468l-11.3-11.3 135.8-135.8 22.6 22.6-135.8 135.8zM288 160H160v32h128v-32zm64 64H160v32h192v-32zm-64 64H160v32h128v-32zm-64 64h-64v32h64v-32zm188.2-96 22.6-22.6c12.4-12.4 32.8-12.4 45.3 0l22.6 22.6c12.4 12.4 12.4 32.8 0 45.3L480 323.8 412.2 256zm-19.7 19.6L250.9 417.2 224 445.3V512h66.7l28.1-26.9 141.6-141.6-67.9-67.9zM279.3 479.3 268 468l-11.3-11.3 135.8-135.8 22.6 22.6-135.8 135.8zM96 416V64h224v96h96v32h32v-64l-96-96H96c-17.7 0-32 14.3-32 32v352c0 17.7 14.3 32 32 32h96v-32H96zM0 512h192v-32H0v32z" />',viewBox:"0 0 512 512"},_a={name:"track-changes-enable",content:'<path d="M502.7 173.3 480 195.8 412.2 128l22.6-22.6c12.4-12.4 32.8-12.4 45.3 0l22.6 22.6c12.4 12.4 12.4 32.8 0 45.3zm-110.2-25.7 67.9 67.9-141.6 141.6-28.1 26.9H224v-66.7l26.9-28.1 141.6-141.6zm22.6 67.9-22.6-22.6-135.8 135.8L268 340l11.3 11.3 135.8-135.8zM160 320h32v-32h-32v32zm0-64h96v-32h-96v32zm128-96H160v32h128v-32zM160 384h32v-32h-32v32zm256 64H96V64h224v96l80.11-79.89L352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V273.155l-32 32V448z" />',viewBox:"0 0 512 512"},Fa={name:"track-changes-accept",content:'<path d="M128 128H96V64c0-17.7 14.3-32 32-32h224l64 64h-96V64H128v64zm122.9 193.2L224 349.3V416h66.7l28.1-26.9 141.6-141.6-67.9-67.9-141.6 141.6zm28.4 62.1L268 372l-11.3-11.3 135.8-135.8 22.6 22.6-135.8 135.8zM416 337.155l32-32V448c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32v-96h32v96h288V337.155zM502.7 205.3 480 227.8 412.2 160l22.6-22.6c12.4-12.4 32.8-12.4 45.3 0l22.6 22.6c12.4 12.4 12.4 32.8 0 45.3zM288 144 112 320 0 208l45-45 67 67L243 99l45 45zm-96 272h-32v-32h32v32z" />',viewBox:"0 0 512 512"},ja={name:"track-changes-accept-all",content:'<path d="M128 160H96V96c0-17.7 14.3-32 32-32h224l64 64h-96V96H128v64zm264.5 51.6 67.9 67.9-141.6 141.6-28.1 26.9H224v-66.7l26.9-28.1 141.6-141.6zm22.6 67.9-22.6-22.6-135.8 135.8L268 404l11.3 11.3 135.8-135.8zM416 480H128v-96H96v96c0 17.7 14.3 32 32 32h288c17.7 0 32-14.3 32-32V337.155l-32 32V480zm86.7-288-22.6-22.6c-12.5-12.4-32.9-12.4-45.3 0L412.2 192l67.8 67.8 22.7-22.5c12.4-12.5 12.4-32.9 0-45.3zM160 448h32v-32h-32v32zM64 32h256L288 0H64C46.3 0 32 14.3 32 32v128h32V32zm0 352H32v32c0 17.7 14.3 32 32 32v-64zm179-253L112 262l-67-67-45 45 112 112 176-176-45-45z" />',viewBox:"0 0 512 512"},Ka={name:"track-changes-reject",content:'<path d="M102.627 272 160 329.373 137.373 352 80 294.627 22.627 352 0 329.373 57.373 272 0 214.627 22.627 192 80 249.373 137.373 192 160 214.627 102.627 272zM192 384v-32h-32v32h32zm310.7-256-22.6-22.6c-12.5-12.4-32.9-12.4-45.3 0L412.2 128l67.8 67.8 22.7-22.5c12.4-12.5 12.4-32.9 0-45.3zM96 64h224v96l80.11-79.89L352 32H96c-17.7 0-32 14.3-32 32v96h32V64zm296.5 83.6 67.9 67.9-141.6 141.6-28.1 26.9H224v-66.7l26.9-28.1 141.6-141.6zm22.6 67.9-22.6-22.6-135.8 135.8L268 340l11.3 11.3 135.8-135.8zM416 448H96v-64H64v64c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V273.155l-32 32V448z" />',viewBox:"0 0 512 512"},Wa={name:"track-changes-reject-all",content:'<path d="M102.627 272 160 329.373 137.373 352 80 294.627 22.627 352 0 329.373 57.373 272 0 214.627 22.627 192 80 249.373 137.373 192 160 214.627 102.627 272zM128 96h192v32h96l-64-64H128c-17.7 0-32 14.3-32 32v64h32V96zm264.5 115.6 67.9 67.9-141.6 141.6-28.1 26.9H224v-66.7l26.9-28.1 141.6-141.6zm22.6 67.9-22.6-22.6-135.8 135.8L268 404l11.3 11.3 135.8-135.8zM416 480H128v-96H96v96c0 17.7 14.3 32 32 32h288c17.7 0 32-14.3 32-32V337.155l-32 32V480zm86.7-288-22.6-22.6c-12.5-12.4-32.9-12.4-45.3 0L412.2 192l67.8 67.8 22.7-22.5c12.4-12.5 12.4-32.9 0-45.3zM160 448h32v-32h-32v32zM64 32h256L288 0H64C46.3 0 32 14.3 32 32v128h32V32zm0 352H32v32c0 17.7 14.3 32 32 32v-64z" />',viewBox:"0 0 512 512"},Ua={name:"document-manager",content:'<path d="M64 416h224v32H64v-32zm224-64H64v32h224v-32zM400 0C288 0 288 96 288 96v160s0 64 80 64 80-64 80-64V96s0-32-48-32-48 32-48 32v128h32V116c0-11 .6-20 16-20s16 9 16 20v140s0 32-48 32-48-32-48-32V96s0-64 80-64 80 64 80 64v128h32V96s0-96-112-96zM106.7 288 96 320H64l64-192h32l64 192h-32l-10.7-32h-74.6zm10.6-32h53.3L144 176l-26.7 80zM320 480H32V96h224V64H32C14.3 64 0 78.3 0 96v384c0 17.7 14.3 32 32 32h288c17.7 0 32-14.3 32-32V352h-32v128z" />',viewBox:"0 0 512 512"},qa={name:"custom-icon",content:'<path d="M352 249H196.6c.6 23.8 7.2 42.2 19.8 55.2s30 18.8 52 19.4c4.9.1-1.1 28.8-12.4 28.8-30.9 0-51.6-9.7-69.3-29.1-17.8-19.4-26.7-46.8-26.7-82 0-33.3 9.7-60.4 29.1-81.4s43.5-31.4 72.4-31.4c28.8 0 51.1 9.1 66.9 27.2S352 199 352 231.1V249zm-36-29.9c-.1-19.8-5.1-35.2-14.7-46.2-9.7-11-23.1-16.5-40.3-16.5-16.6 0-30.7 5.8-42.4 17.3-11.6 11.6-18.8 26.7-21.5 45.3l118.9.1zM448 384V64c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h256l96-96zm-32-32h-96v96H96V64h320v288z" />',viewBox:"0 0 512 512"},$a={name:"book",content:'<path d="M448 480V96h-32v352H128c-17.6 0-32-14.4-32-32s14.4-32 32-32h256V32H128c-35.2 0-64 28.8-64 64v320c0 23.6 12.9 44.2 32 55.3 9.4 5.5 20.4 8.7 32 8.7h320zM128 64h224v288H128V64zm192 64H160V96h160v32zm0 128H160v-32h160v32zm-32-64H160v-32h128v32z" />',viewBox:"0 0 512 512"},Ga={name:"image-add",content:'<path d="M272 160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm80 112-16 16-64 64-128-128L32 336V96.1l.1-.1h383.8l.1.1-.1 191.9H448V96c0-17.6-14.4-32-32-32H32C14.4 64 0 78.4 0 96v320c0 17.6 14.4 32 32 32h256v-64h64V272zm128 144h-32v-64h-32v64h-64v32h64v64h32v-64h64v-32h-32z" />',viewBox:"0 0 512 512"},Za={name:"image-edit",content:'<path d="M304 160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm-32.6 159.4L176 224 64 336V96.1l.1-.1h383.8l.1.1V160h32V96c0-17.6-14.4-32-32-32H64c-17.6 0-32 14.4-32 32v320c0 17.6 14.4 32 32 32h128v-47.5l79.4-81.1zm189-7.9L290.7 480H224v-66.7l168.5-169.7 67.9 67.9zm-45.3 0-22.6-22.6-135.8 135.8 22.6 22.6 135.8-135.8zm64.9 25.6zM447.9 448c17.7 0 32.1-14.4 32.1-32v-78.9L369.1 448h78.8zm54.8-224L480 201.3c-12.4-12.4-32.8-12.4-45.3 0L412.2 224l67.9 67.9 22.6-22.6c12.4-12.5 12.4-32.9 0-45.3z" />',viewBox:"0 0 512 512"},Ya={name:"image-map-editor",content:'<path d="M448 64H64c-17.6 0-32 14.4-32 32v320c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V96c0-17.6-14.4-32-32-32zM96 384H64v-32h32v32zm96 0h-64v-32h64v32zm96 0h-64v-32h64v32zm96 0h-64v-32h64v32zm64 0h-32v-32h32v32zm-.1-48-64-64-80 80L176 224 64 336V192h32v-32H64V96.1l.1-.1H128v32h32V96h287.9l.1.1-.1 239.9zM352 208c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm-224-48h32v32h-32v-32z" />',viewBox:"0 0 512 512"},Ja={name:"comment",content:'<path d="M448 32H64c-17.6 0-32 14.4-32 32v416l96-96h320c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32zm0 319.942a.53.53 0 0 1-.058.058H114.745L64 402.745V64.057a.511.511 0 0 1 .057-.057h383.885c.02.017.041.038.058.057v287.885z" />',viewBox:"0 0 512 512"},Xa={name:"comment-remove",content:'<path d="M114.745 352 64 402.745V64.057a.511.511 0 0 1 .057-.057h383.885c.02.017.041.038.058.057V256h32V64c0-17.6-14.4-32-32-32H64c-17.6 0-32 14.4-32 32v416l96-96h128v-32H114.745zM480 342.627 457.373 320 400 377.373 342.627 320 320 342.627 377.373 400 320 457.373 342.627 480 400 422.627 457.373 480 480 457.373 422.627 400 480 342.627z" />',viewBox:"0 0 512 512"},Qa={name:"comments-remove",content:'<path d="M480 64c0-17.6-14.4-32-32-32H160c-17.6 0-32 14.4-32 32v32h32V64.1l.1-.1H448l.1.1V256l-.1.1h32V64zM377.4 400l22.6 22.6-57.4 57.4-22.6-22.6 57.4-57.4zm0 0L320 342.6l22.6-22.6 57.4 57.4-22.6 22.6zm45.2 0 57.4 57.4-22.6 22.6-57.4-57.4-22.6-22.6 22.6-22.6 57.4-57.4 22.6 22.6-57.4 57.4zm-304.3-16L64 420.2V160.1l.1-.1H352l.1.1V256h32v-96c0-17.6-14.4-32-32-32H64c-17.6 0-32 14.4-32 32v320l96-64h128v-32H118.3z" />',viewBox:"0 0 512 512"},es={name:"silverlight",content:'<path d="M256 0 0 256l256 256 256-256L256 0zm-75.9 324c-21.6 0-40.5-6.3-52.1-13.7v-33.2c14.5 10.8 32.9 17.9 51.4 17.9 16.3 0 28.6-5 28.6-17.6 0-10.6-6.8-14.5-18.9-18.9l-23.6-7.9c-23.9-7.9-39.7-20.3-39.7-47 0-29.9 25.7-46.2 57.3-46.2 19.7 0 35.8 4.7 48.8 12.6v32.9c-13.9-10.2-29.1-16.8-47.8-16.8-14.5 0-25.5 4.9-25.5 16 0 9.9 6.5 13.9 17.9 17.6l25.2 8.6c27.1 9.2 39.4 23.9 39.4 47.8.2 31.9-26.8 47.9-61 47.9zm95.9-4V160h32v128h76v32H276z" />',viewBox:"0 0 512 512"},ts={name:"media-manager",content:'<path d="M192 384V128l192 128-192 128zm32-319.3V0C108.2 14.4 14.4 108.2 0 224h64.7c13.5-80.3 79-145.8 159.3-159.3zm64 382.6V512c115.8-14.4 209.6-108.2 224-224h-64.7c-13.5 80.3-79 145.8-159.3 159.3zM64.7 288H0c14.4 115.8 108.2 209.6 224 224v-64.7c-80.3-13.5-145.8-79-159.3-159.3zm382.6-64H512C497.6 108.2 403.8 14.4 288 0v64.7c80.3 13.5 145.8 79 159.3 159.3z" />',viewBox:"0 0 512 512"},ns={name:"video-external",content:'<path d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm-64 384V128l192 128-192 128z" />',viewBox:"0 0 512 512"},os={name:"flash-manager",content:'<path d="M255.9 0C114.6 0 0 114.6 0 256.1 0 397.4 114.6 512 255.9 512 397.4 512 512 397.4 512 256.1 512 114.6 397.4 0 255.9 0zM384 160c-30.1.3-48.4-4.6-81.2 64H352v64h-64s-53.5 129.4-160 128c-.8-14.2 0-43.9 0-64 70.5-10.7 93.6-88.3 109.9-126.9C286.3 74.5 384 95.1 384 95.1V160z" />',viewBox:"0 0 512 512"},rs={name:"binoculars",content:'<path d="M480 288v96c0 17.7-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32v-64H192v64c0 17.7-14.3 32-32 32H64c-17.7 0-32-14.3-32-32v-96c0-17.7 14.3-32 32-32v-64c0-17.7 14.3-32 32-32v-32c0-17.7 14.3-32 32-32h64s32 0 32 32v128h64V128c0-32 32-32 32-32h64c17.7 0 32 14.3 32 32v32c17.7 0 32 14.3 32 32v64c17.7 0 32 14.3 32 32zM208 64h16V32h-96v32h80zm160 0h16V32h-96v32h80zM48 448H32v32h160v-32H48zm272 32h160v-32H320v32z" />',viewBox:"0 0 512 512"},is={name:"copy",content:'<path d="M384 96H192c-17.7 0-32 14.3-32 32v320c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V192l-96-96zm64 352H192V128h160v96h96v224zM64 384h64v32H64c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32h192l32 32H64v320z" />',viewBox:"0 0 512 512"},as={name:"cut",content:'<path d="M480 32h-45.3L256 210.7 210.7 256l-69.5 69.5c-9.1-3.6-18.9-5.5-29.2-5.5-44.2 0-80 35.8-80 80 0 10.3 2 20.2 5.5 29.2 8.1 20.7 24.6 37.1 45.3 45.3 9.1 3.6 18.9 5.5 29.2 5.5 44.2 0 80-35.8 80-80 0-10.3-2-20.2-5.5-29.2l69.5-69.5 69.5 69.5c-3.6 9.1-5.5 18.9-5.5 29.2 0 44.2 35.8 80 80 80 10.3 0 20.2-2 29.2-5.5 20.7-8.1 37.1-24.6 45.3-45.3 3.6-9.1 5.5-18.9 5.5-29.2 0-44.2-35.8-80-80-80-10.3 0-20.2 2-29.2 5.5L301.3 256 480 77.3V32zM160 400c0 26.5-21.5 48-48 48-.9 0-1.8 0-2.7-.1-24.4-1.3-43.9-20.9-45.3-45.3 0-.9-.1-1.8-.1-2.7 0-26.5 21.5-48 48-48 .9 0 1.8 0 2.7.1 24.4 1.3 43.9 20.9 45.3 45.3.1.9.1 1.8.1 2.7zm237.3-47.9c.9 0 1.8-.1 2.7-.1 26.5 0 48 21.5 48 48 0 .9 0 1.8-.1 2.7-1.3 24.4-20.9 43.9-45.3 45.3-.9 0-1.8.1-2.7.1-26.5 0-48-21.5-48-48 0-.9 0-1.8.1-2.7 1.4-24.5 20.9-44 45.3-45.3zM240 256c0-8.8 7.2-16 16-16s16 7.2 16 16-7.2 16-16 16-16-7.2-16-16zm-74.5-45.3L32 77.3V32h45.3l133.5 133.5-45.3 45.2z" />',viewBox:"0 0 512 512"},ss={name:"clipboard",content:'<path d="M416 32H311.4C300.3 12.9 279.7 0 256 0s-44.3 12.9-55.4 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-160 0c17.7 0 32 14.3 32 32h-64c0-17.7 14.3-32 32-32zm160 416H96V64h64v64h192V64h64v384z" />',viewBox:"0 0 512 512"},ls={name:"clipboard-code",content:'<path d="M214.6 361.4 192 384l-80-80 80-80 22.6 22.6-57.3 57.4 57.3 57.4zM448 64v384c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32h104.6C211.7 12.9 232.3 0 256 0s44.3 12.9 55.4 32H416c17.7 0 32 14.3 32 32zm-224 0h64c0-17.7-14.3-32-32-32s-32 14.3-32 32zm192 0h-64v64H160V64H96v384h320V64zM297.4 246.6l57.4 57.4-57.4 57.4L320 384l80-80-80-80-22.6 22.6z" />',viewBox:"0 0 512 512"},cs={name:"clipboard-word",content:'<path d="m128 160 48.5 192h46.7L256 238.4 285.3 352h43.1L384 160h-73v35h19.3l-22.2 86-28.8-121h-45.4l-33.1 119.3-25-119.3H128zM416 32H311.4C300.3 12.9 279.7 0 256 0s-44.3 12.9-55.4 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-160 0c17.7 0 32 14.3 32 32h-64c0-17.7 14.3-32 32-32zm160 416H96V64h64v64h192V64h64v384zm-32-32H128v-32h256v32z" />',viewBox:"0 0 512 512"},us={name:"clipboard-word-alt",content:'<path d="m128 160 48.5 192h46.7L256 238.4 285.3 352h43.1L384 160h-73v35h19.3l-22.2 86-28.8-121h-45.4l-33.1 119.3-25-119.3H128zM416 32H311.4C300.3 12.9 279.7 0 256 0s-44.3 12.9-55.4 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-160 0c17.7 0 32 14.3 32 32h-64c0-17.7 14.3-32 32-32zm160 416H96V64h64v64h192V64h64v384z" />',viewBox:"0 0 512 512"},ds={name:"clipboard-html",content:'<path d="M214.6 361.4 192 384l-80-80 80-80 22.6 22.6-57.3 57.4 57.3 57.4zM448 64v384c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32h104.6C211.7 12.9 232.3 0 256 0s44.3 12.9 55.4 32H416c17.7 0 32 14.3 32 32zm-224 0h64c0-17.7-14.3-32-32-32s-32 14.3-32 32zm192 0h-64v64H160V64H96v384h320V64zM271.2 183.9 209.8 416l30.9 8.3L302.2 192l-31-8.1zm26.2 62.7 57.4 57.4-57.4 57.4L320 384l80-80-80-80-22.6 22.6z" />',viewBox:"0 0 512 512"},ps={name:"clipboard-markdown",content:'<path d="M226 224h30v128h-32v-72.8l-32.2 45.6L160 279v73h-32V224h32l31.8 46.2L226 224zm126 64h32l-48 64-48-64h32l.2-64H352v64zm64-256H311.4C300.3 12.9 279.7 0 256 0s-44.3 12.9-55.4 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-160 0c17.7 0 32 14.3 32 32h-64c0-17.7 14.3-32 32-32zm160 416H96V64h64v64h192V64h64v384z" />',viewBox:"0 0 512 512"},hs={name:"clipboard-text",content:'<path d="M416 32H311.4C300.3 12.9 279.7 0 256 0s-44.3 12.9-55.4 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-160 0c17.7 0 32 14.3 32 32h-64c0-17.7 14.3-32 32-32zm160 416H96V64h64v64h192V64h64v384zm-32-224H128v-32h256v32zm0 64H128v-32h256v32zm0 64H128v-32h256v32zm0 64H128v-32h256v32z" />',viewBox:"0 0 512 512"},fs={name:"apply-format",content:'<path d="M380.984 313.69c12.445 12.445 12.445 32.81 0 45.255L266.529 470.658c-12.445 12.445-32.787 12.467-45.255 0L0 248.898c18.584 18.584 40.255-4.835 40.255-4.835L154.71 132.671c12.445-12.445 32.81-12.445 45.255 0L380.984 313.69zm89.682-227.101-45.255-45.255c-12.445-12.445-32.81-12.445-45.255 0l-67.882 67.882-22.627-22.627c-12.445-12.445-32.81-12.445-45.255 0l-22.627 22.627 181.019 181.019 22.627-22.627c12.445-12.445 12.445-32.81 0-45.255l-22.627-22.627 67.882-67.882c12.445-12.446 12.445-32.81 0-45.255z" />',viewBox:"0 0 512 512"},ms={name:"clear-css",content:'<path d="M402.784 290.235 221.765 109.216l22.627-22.627c12.445-12.445 32.81-12.445 45.255 0l22.627 22.627 67.882-67.882c12.445-12.445 32.81-12.445 45.255 0l45.255 45.255c12.445 12.445 12.445 32.81 0 45.255l-67.882 67.882 22.627 22.627c12.445 12.445 12.445 32.81 0 45.255l-22.627 22.627zm-21.8 23.455-181.02-181.019c-12.346-12.346-32.483-12.437-44.953-.287L54.627 32 32 54.627l100.074 100.074-91.819 89.362S18.585 267.482 0 248.898l221.274 221.76c12.467 12.467 32.81 12.445 45.255 0l91.851-89.651L457.373 480 480 457.373l-98.73-98.73c12.151-12.47 12.06-32.607-.286-44.953z" />',viewBox:"0 0 512 512"},vs={name:"copy-format",content:'<path d="M96 480h160v32H64v-64H0V288h32v128h32v-64h32v128zm32-32h96v-32h-96v32zm0-96v32h32v-32h-32zm284.2-92.6L253.8 101c-12.4-12.4-32.9-12.4-45.3.1l-69.8 69.8-.2.2c-11.6 11.6-30 12.7-42.5 2.7l200.9 200.9c12.5 12.5 32.8 12.4 45.3 0l69.9-69.9c12.5-12.5 12.5-33 .1-45.4zM502.7 32 480 9.3c-12.4-12.4-32.8-12.4-45.3 0l-67.9 67.9-22.6-22.6c-12.4-12.4-32.8-12.4-45.3 0l-22.6 22.6 158.4 158.4 22.6-22.6c12.4-12.4 12.4-32.8 0-45.3l-22.6-22.6 67.9-67.9c12.5-12.4 12.5-32.8.1-45.2z" />',viewBox:"0 0 512 512"},gs={name:"strip-all-formatting",content:'<path d="M32 480h224v32H0v.1V256h32v224zm32-32h159v-32H64v32zm97-96H63v32h98v-32zm-65-64H64v32h32v-32zm316.2-28.6L253.8 101c-12.4-12.4-32.9-12.4-45.3.1l-69.8 69.8-.2.2c-11.6 11.6-30 12.7-42.5 2.7l200.9 200.9c12.5 12.5 32.8 12.4 45.3 0l69.9-69.9c12.5-12.5 12.5-33 .1-45.4zM502.7 32 480 9.3c-12.4-12.4-32.8-12.4-45.3 0l-67.9 67.9-22.6-22.6c-12.4-12.4-32.8-12.4-45.3 0l-22.6 22.6 158.4 158.4 22.6-22.6c12.4-12.4 12.4-32.8 0-45.3l-22.6-22.6 67.9-67.9c12.5-12.4 12.5-32.8.1-45.2z" />',viewBox:"0 0 512 512"},ys={name:"strip-css-format",content:'<path d="M0 288v224h416V288H0zm145 65.9c-10-6.2-21-9.3-33.4-9.3-13.6 0-24.5 4.6-32.9 13.7-8.3 9.1-12.5 21.5-12.5 37.1 0 15 3.9 26.9 11.8 35.8s18.4 13.3 31.7 13.3c12.7 0 24.3-3.3 34.3-9.9v31.8c-9.9 5.5-23.7 8.2-40.7 8.2-22.2 0-39.6-7-52.3-20.9-12.7-14-19-32.5-19-55.8 0-24.7 7.1-44.8 21.4-60.2 14.3-15.4 32.8-23.1 55.6-23.1 14.1 0 26 1.9 36 5.7v33.6zM260.6 450c-3.1 5.9-7.2 10.6-12.4 14.2-5.2 3.6-11.3 6.2-18.2 7.8-7 1.6-14.3 2.4-21.9 2.4-7.9 0-15.4-.7-22.5-2.2-7.2-1.4-13.4-3.6-18.5-6.5v-34.4c5.8 5.3 12.2 9.2 18.9 11.8 6.9 2.6 13.8 3.9 20.7 3.9 4.1 0 7.7-.4 10.7-1.2 3.1-.8 5.6-1.9 7.7-3.3 2-1.4 3.6-3.1 4.6-5 1-1.9 1.5-4 1.5-6.2 0-3-.8-5.7-2.4-8.1-1.6-2.4-3.8-4.6-6.6-6.6s-6.1-4-9.9-5.8c-3.8-1.9-8-3.8-12.4-5.7-11.3-5-19.6-11.2-25.1-18.4-5.5-7.3-8.3-15.9-8.3-26.2 0-8.1 1.5-15 4.5-20.7s7.1-10.6 12.3-14.3c5.2-3.7 11.2-6.5 18-8.3 6.9-1.8 14.1-2.6 21.7-2.6 7.5 0 14.2.5 19.9 1.5 5.8 1 11.2 2.5 16 4.5v32.2c-2.4-1.8-5.1-3.4-7.9-4.7-2.9-1.4-5.8-2.5-8.8-3.4s-6-1.6-9-2c-3-.4-5.8-.6-8.5-.6-3.7 0-7.1.4-10.1 1.1-3 .8-5.6 1.8-7.7 3.2-2.1 1.4-3.7 3-4.8 4.9-1.1 1.9-1.7 4-1.7 6.4 0 2.6.6 4.9 1.9 7 1.3 2.1 3.1 4 5.4 5.8 2.3 1.8 5.2 3.6 8.6 5.4s7.2 3.6 11.4 5.5c5.8 2.6 11 5.3 15.5 8.3 4.6 2.9 8.6 6.2 11.8 9.9 3.3 3.7 5.8 7.9 7.6 12.6 1.7 4.7 2.6 10.2 2.6 16.3 0 8.5-1.6 15.7-4.6 21.5zm119 0c-3.1 5.9-7.2 10.6-12.4 14.2-5.2 3.6-11.3 6.2-18.2 7.8-7 1.6-14.3 2.4-21.9 2.4-7.9 0-15.4-.7-22.5-2.2-7.2-1.4-13.4-3.6-18.5-6.5v-34.4c5.8 5.3 12.2 9.2 18.9 11.8 6.9 2.6 13.8 3.9 20.7 3.9 4.1 0 7.7-.4 10.7-1.2 3.1-.8 5.6-1.9 7.7-3.3 2-1.4 3.6-3.1 4.6-5 1-1.9 1.5-4 1.5-6.2 0-3-.8-5.7-2.4-8.1-1.6-2.4-3.8-4.6-6.6-6.6s-6.1-4-9.9-5.8c-3.8-1.9-8-3.8-12.4-5.7-11.3-5-19.6-11.2-25.1-18.4-5.5-7.3-8.3-15.9-8.3-26.2 0-8.1 1.5-15 4.5-20.7 3-5.8 7.1-10.6 12.3-14.3 5.2-3.7 11.2-6.5 18-8.3 6.9-1.8 14.1-2.6 21.7-2.6 7.5 0 14.2.5 19.9 1.5 5.8 1 11.2 2.5 16 4.5v32.2c-2.4-1.8-5.1-3.4-7.9-4.7-2.9-1.4-5.8-2.5-8.8-3.4-3-.9-6-1.6-9-2-3-.4-5.8-.6-8.5-.6-3.7 0-7.1.4-10.1 1.1-3 .8-5.6 1.8-7.7 3.2-2.1 1.4-3.7 3-4.8 4.9-1.1 1.9-1.7 4-1.7 6.4 0 2.6.6 4.9 1.9 7 1.3 2.1 3.1 4 5.4 5.8 2.4 1.8 5.2 3.6 8.6 5.4 3.4 1.8 7.2 3.6 11.4 5.5 5.8 2.6 11 5.3 15.5 8.3 4.6 2.9 8.5 6.2 11.8 9.9 3.3 3.7 5.8 7.9 7.6 12.6 1.7 4.7 2.6 10.2 2.6 16.3 0 8.5-1.5 15.7-4.6 21.5zM502.7 32 480 9.3c-12.4-12.4-32.8-12.4-45.3 0l-67.9 67.9-22.6-22.6c-12.4-12.4-32.8-12.4-45.3 0l-22.6 22.6 158.4 158.4 22.6-22.6c12.4-12.4 12.4-32.8 0-45.3l-22.6-22.6 67.9-67.9c12.5-12.4 12.5-32.8.1-45.2zm-246.9 69.9c-12.4-12.4-32.8-12.4-45.3 0l-79.7 79.7c-12.4 12.4-32.8 12.4-45.3 0L160 256h249.9L255.8 101.9z" />',viewBox:"0 0 512 512"},bs={name:"strip-font-elements",content:'<path d="M502.666 31.961 480.039 9.334c-12.445-12.445-32.81-12.445-45.255 0l-67.882 67.882-22.627-22.627c-12.445-12.445-32.81-12.445-45.255 0l-22.627 22.627 158.392 158.392 22.627-22.627c12.445-12.445 12.445-32.81 0-45.255l-22.627-22.627 67.882-67.882c12.444-12.446 12.444-32.811-.001-45.256zm-246.848 69.936c-12.445-12.445-32.81-12.445-45.255 0l-79.706 79.706c-12.445 12.445-32.81 12.445-45.255 0L160 256h249.921L255.818 101.897zM176 348.121 200.706 416h-49.412L176 348.121zM0 288v224h352V288H0zm224 192-11.647-32h-72.706L128 480H96l58.235-160h43.53L256 480h-32z" />',viewBox:"0 0 512 512"},ws={name:"strip-span-elements",content:'<path d="M96 288 0 400l96 112h256V288H96zm170.3 167.5c-3.9 5.9-9.3 10.6-16.1 14.2-6.8 3.6-14.6 6.2-23.6 7.8-9 1.6-18.4 2.4-28.4 2.4-10.2 0-20-.7-29.2-2.2-9.2-1.4-17.2-3.6-24-6.5v-34.5c7.5 5.2 15.7 9.2 24.6 11.8 8.8 2.6 17.8 3.9 26.8 3.9 5.3 0 9.9-.4 13.9-1.2 3.9-.8 7.2-1.9 9.9-3.3 2.6-1.4 4.6-3.1 5.9-5 1.3-1.9 2-4 2-6.2 0-3-1-5.7-3.1-8.1-2.1-2.4-4.9-4.6-8.5-6.6-3.6-2-7.9-4-12.8-5.8-4.9-1.9-10.3-3.8-16-5.7-14.6-5-25.4-11.2-32.6-18.4-7.2-7.3-10.7-16-10.7-26.3 0-8.1 2-15 5.9-20.8 3.9-5.8 9.2-10.5 15.9-14.3 6.7-3.7 14.5-6.5 23.3-8.3 8.8-1.8 18.2-2.6 28.1-2.6 9.7 0 18.3.5 25.8 1.5s14.4 2.5 20.7 4.5v32.3c-3.1-1.8-6.5-3.4-10.2-4.7-3.7-1.4-7.5-2.5-11.4-3.4-3.9-.9-7.8-1.6-11.6-2-3.9-.4-7.5-.6-11-.6-4.8 0-9.1.4-13 1.1-3.9.8-7.2 1.8-9.9 3.2-2.7 1.4-4.8 3-6.2 4.9-1.5 1.9-2.2 4-2.2 6.4 0 2.6.8 4.9 2.5 7 1.6 2.1 4 4 7 5.8 3 1.8 6.7 3.6 11.1 5.4 4.3 1.8 9.2 3.6 14.7 5.4 7.5 2.6 14.2 5.3 20.1 8.3 5.9 2.9 11 6.2 15.3 9.9 4.2 3.7 7.5 7.9 9.8 12.6 2.3 4.7 3.4 10.2 3.4 16.4-.3 8.6-2.3 15.9-6.2 21.7zM502.7 32 480 9.3c-12.4-12.4-32.8-12.4-45.3 0l-67.9 67.9-22.6-22.6c-12.4-12.4-32.8-12.4-45.3 0l-22.6 22.6 158.4 158.4 22.6-22.6c12.4-12.4 12.4-32.8 0-45.3l-22.6-22.6 67.9-67.9c12.5-12.4 12.5-32.8.1-45.2zm-246.9 69.9c-12.4-12.4-32.8-12.4-45.3 0l-79.7 79.7c-12.4 12.4-32.8 12.4-45.3 0L160 256h249.9L255.8 101.9z" />',viewBox:"0 0 512 512"},ks={name:"strip-word-formatting",content:'<path d="M0 288v224h352V288H0zm239.3 192h-37.7L176 385.4 147.4 480h-40.9L64 320h40.6l21.9 100.4L155.8 320h40.4l25.2 100.4 19.4-71.4H224v-29h64l-48.7 160zM502.7 77.2l-67.9 67.9 22.6 22.6c12.4 12.4 12.4 32.8 0 45.3l-22.6 22.6L276.4 77.2 299 54.6c12.4-12.4 32.8-12.4 45.3 0l22.6 22.6 67.9-67.9c12.4-12.4 32.8-12.4 45.3 0L502.7 32c12.4 12.4 12.4 32.8 0 45.2zM409.9 256H160l-74.4-74.4c12.4 12.4 32.8 12.4 45.3 0l79.7-79.7c12.4-12.4 32.8-12.4 45.3 0l154 154.1z" />',viewBox:"0 0 512 512"},xs={name:"format-code-block",content:'<path d="M224 352v160h288V352H224zm102.6 105.4L304 480l-48-48 22.6-22.6L304 384l22.6 22.6-25.3 25.4 25.3 25.4zM432 480l-22.6-22.6 25.4-25.4-25.4-25.4L432 384l25.4 25.4L480 432l-48 48zM192 160V32c0-17.6-14.4-32-32-32h-32c-17.6 0-32 14.4-32 32v128L0 256h288l-96-96zm96 128H0v192h64V320h32v160h32V320h32v160h32V320h96v-32z" />',viewBox:"0 0 512 512"},zs={name:"building-blocks",content:'<path d="M127.9 289V128H160V80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v48h64V80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v48h32v160l-256.1 1zM96 320v-48c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v48H0v128h224V320H96zm384 0v-48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H288v128h224V320h-32z" />',viewBox:"0 0 512 512"},Cs={name:"puzzle-piece",content:'<path d="M480 352c0 1 0 2-.1 2.9v.8c0 .8-.1 1.7-.2 2.5v.5c-.1 1-.2 1.9-.4 2.8-.1.4-.1.9-.2 1.3s-.1.8-.2 1.2c-.1.4-.2.7-.2 1.1l-.6 2.7c-.1.4-.2.7-.3 1.1 0 .2-.1.5-.2.7-.2.5-.4 1.1-.5 1.7-.3.9-.6 1.8-.9 2.6 0 .1-.1.2-.1.3-.3.8-.6 1.6-.9 2.3-.1.2-.2.5-.3.7-.3.8-.7 1.5-1 2.3 0 .1-.1.2-.1.2-.4.8-.8 1.6-1.3 2.4l-.6 1.2c-.2.4-.4.7-.6 1.1-.2.3-.3.6-.5.8-.5.8-1 1.5-1.5 2.3l-.6.9c-.2.4-.5.7-.7 1-.2.3-.5.6-.7.9-.5.7-1.1 1.4-1.7 2.1l-.3.3-1.5 1.8c-.2.2-.3.4-.5.5-.6.7-1.2 1.3-1.9 2-.6.6-1.3 1.3-2 1.9-.4.3-.7.7-1.1 1-.3.3-.7.6-1 .9-.2.1-.3.3-.5.4-.7.6-1.4 1.1-2.1 1.7-.3.3-.7.5-1 .8-.3.2-.6.5-1 .7l-.9.6c-.8.5-1.5 1-2.3 1.5-.2.1-.5.3-.7.4-.4.2-.7.4-1.1.6-.4.2-.8.5-1.3.7-.8.4-1.6.9-2.4 1.3-.1.1-.2.1-.3.2-.3.2-.7.4-1 .5-.6.2-1.2.5-1.9.8-.8.3-1.6.6-2.3.9-.1 0-.2.1-.3.1-.9.3-1.7.6-2.6.9-.6.2-1.2.3-1.7.6-.2.1-.5.1-.7.2-.4.1-.7.2-1.1.3l-2.7.6c-.3.1-.5.1-.8.2-.5.1-1.1.2-1.7.3-.4.1-.8.1-1.2.2-.9.1-1.9.3-2.8.4-.2 0-.5 0-.7.1-.4.1-.9.1-1.3.1-.6 0-1.1.1-1.7.1-1 0-2 .1-2.9.1-1.2 0-2.3 0-3.5-.1-.4 0-.7-.1-1.1-.1-.8-.1-1.6-.1-2.3-.2-.4 0-.9-.1-1.3-.2l-2.1-.3c-.4-.1-.9-.2-1.3-.2-.7-.1-1.4-.3-2-.4-.4-.1-.9-.2-1.3-.3-.7-.2-1.4-.3-2-.5l-1.2-.3c-.7-.2-1.4-.4-2.1-.7-.4-.1-.7-.2-1.1-.4-.8-.3-1.5-.6-2.3-.9-.3-.1-.5-.2-.8-.3-1-.4-1.9-.8-2.8-1.2-.1 0-.1-.1-.2-.1-3.1-1.5-6-3.2-8.8-5.1-.1 0-.1-.1-.2-.2-.8-.6-1.7-1.2-2.5-1.8-.1-.1-.2-.2-.3-.2-.8-.6-1.6-1.2-2.3-1.9-.3-.2-.6-.5-.8-.7-.5-.4-1-.8-1.4-1.3l-.5-.5c-.8-.8-1.6-1.5-2.3-2.3l-1.5-1.5c-.3-.3-.5-.6-.7-.9-.1-.2-.2-.3-.4-.5-4.9-5.7-12-8.9-19.5-8.9h-1.4c-14.3 0-25.9 11.6-25.9 25.9v70H217.9c-14.3 0-25.9-11.6-25.9-25.9v-1.4c0-7.5 3.3-14.6 8.9-19.5 15-12.5 24.2-31.6 23-52.9-1.8-32.5-28.3-58.7-60.9-60.2-36.7-1.7-67 27.6-67 63.9 0 19.6 8.8 37.1 22.6 48.8 5.9 5 9.4 12.2 9.4 19.9v1.4c0 14.3-11.6 25.9-25.9 25.9H32V192h70.1c14.3 0 25.9-11.6 25.9-25.9v-1.4c0-7.5-3.3-14.6-8.9-19.5l-.3-.3c-.7-.5-1.4-1.1-2-1.7l-.6-.6c-.8-.8-1.6-1.5-2.3-2.3l-.2-.2c-.7-.7-1.4-1.5-2.1-2.3-.1-.1-.2-.2-.2-.3-.7-.8-1.3-1.5-1.9-2.3-.1-.1-.2-.2-.2-.3-.6-.8-1.2-1.6-1.8-2.5l-.2-.2c-1.9-2.8-3.6-5.7-5.1-8.8 0-.1-.1-.1-.1-.2-.4-.9-.9-1.9-1.2-2.8-.1-.3-.2-.5-.3-.8-.3-.8-.6-1.5-.9-2.3-.1-.3-.2-.7-.4-1.1-.2-.7-.5-1.4-.7-2.1l-.3-1.2c-.2-.7-.4-1.4-.5-2-.1-.4-.2-.9-.3-1.3-.1-.7-.3-1.4-.4-2-.1-.4-.2-.9-.2-1.3l-.3-2.1c-.1-.4-.1-.9-.2-1.3-.1-.8-.1-1.6-.2-2.3 0-.4-.1-.7-.1-1.1-.1-1.2-.1-2.3-.1-3.5 0-1 0-2 .1-2.9 0-.4 0-.9.1-1.3 0-.7.1-1.4.2-2v-.4c.1-.9.2-1.9.4-2.8 0-.2.1-.4.1-.7.1-.8.3-1.6.4-2.4 0-.2.1-.4.1-.5l.6-2.7c0-.1.1-.3.1-.4.2-.7.4-1.4.6-2.2l.3-.9c.3-.9.6-1.8.9-2.6 0-.1.1-.2.1-.3.3-.8.6-1.6.9-2.3.1-.2.2-.5.3-.7.3-.8.7-1.5 1-2.3 0-.1.1-.2.1-.3.4-.8.8-1.6 1.3-2.4l.3-.6c.4-.7.7-1.3 1.1-1.9.1-.2.2-.3.3-.5.5-.8 1-1.5 1.5-2.3.1-.1.2-.3.3-.4.4-.6.9-1.2 1.3-1.8.1-.2.3-.4.4-.6.5-.7 1.1-1.4 1.7-2.1l.3-.3 1.5-1.8c.2-.2.3-.4.5-.5.6-.7 1.2-1.3 1.9-2 .6-.6 1.3-1.3 2-1.9.2-.2.4-.3.5-.5l1.8-1.5.3-.3c.7-.6 1.4-1.1 2.1-1.7.2-.1.3-.3.5-.4.6-.5 1.3-.9 1.9-1.3.2-.1.3-.2.5-.3.8-.5 1.5-1 2.3-1.5.1-.1.3-.2.4-.2.6-.4 1.3-.8 1.9-1.1.2-.1.5-.3.7-.4.8-.4 1.6-.9 2.4-1.3.1 0 .2-.1.2-.1.8-.4 1.5-.7 2.3-1 .2-.1.5-.2.7-.3.8-.3 1.5-.6 2.3-.9.1 0 .2-.1.3-.1.9-.3 1.7-.6 2.6-.9.3-.1.6-.2.8-.3.7-.2 1.4-.4 2.2-.6.2 0 .3-.1.5-.1l2.7-.6c.2 0 .4-.1.6-.1.8-.2 1.6-.3 2.3-.4.2 0 .5-.1.7-.1.9-.1 1.9-.3 2.8-.4.2 0 .4 0 .5-.1.8-.1 1.6-.1 2.5-.2h.7c1 0 1.9-.1 2.9-.1s2 0 3 .1h.7c.9.1 1.8.1 2.7.2h.2c30 3.1 53.9 26.9 57.1 57 0 .3.1.7.1 1 .1.7.1 1.4.2 2.1 0 .5 0 .9.1 1.4v5c0 .5-.1 1-.1 1.4 0 .6-.1 1.2-.1 1.7s-.1 1-.2 1.5c-.1.6-.1 1.1-.2 1.7-.1.5-.1 1-.2 1.5s-.2 1.1-.3 1.6l-.3 1.5c-.1.5-.2 1-.4 1.5-.1.5-.2 1-.4 1.5-.1.5-.3.9-.4 1.4-.2.5-.3 1-.5 1.5-.1.4-.3.9-.4 1.3-.2.5-.4 1.1-.6 1.6-.1.4-.3.8-.5 1.2-.2.6-.4 1.1-.7 1.7-.1.3-.3.7-.4 1-.3.6-.5 1.2-.8 1.8-.1.2-.2.5-.4.7-.3.7-.7 1.3-1 2 0 .1-.1.2-.1.2-3.8 6.7-8.7 12.7-14.5 17.7h-.1c-5.8 5-9.4 12.2-9.4 19.9v1.4c0 14.3 11.6 25.9 25.9 25.9H320v116.7c0 6.3 5.1 11.3 11.3 11.3H357c5.2 0 9.1-4.1 10-9.2 0-.1.1-.1.1-.2 5-5.8 10.9-10.8 17.7-14.5.1 0 .2-.1.2-.1.7-.4 1.3-.7 2-1 .2-.1.5-.2.7-.4.6-.3 1.2-.6 1.8-.8.3-.1.7-.3 1-.4.6-.2 1.1-.5 1.7-.7.4-.2.8-.3 1.2-.5.5-.2 1.1-.4 1.6-.6.4-.2.9-.3 1.3-.4.5-.2 1-.3 1.5-.5.5-.1.9-.3 1.4-.4.5-.1 1-.3 1.5-.4.5-.1 1-.2 1.5-.4l1.5-.3c.5-.1 1.1-.2 1.6-.3.5-.1 1-.2 1.5-.2.6-.1 1.1-.1 1.7-.2.5-.1 1-.1 1.5-.2.6-.1 1.1-.1 1.7-.1.5 0 1-.1 1.4-.1h5c.5 0 .9 0 1.4.1.7 0 1.4.1 2.1.2.3 0 .7.1 1 .1 30 3.1 53.9 27 57 57.1v.2c.1.9.2 1.8.2 2.7v.7c.2.4.2 1.4.2 2.4z" />',viewBox:"0 0 512 512"},Ss={name:"link-add",content:'<path d="M384 384zm64 32v-64h-32v64h-64v32h64v64h32v-64h64v-32h-64zM96 256c0-17.7 14.3-32 32-32h256c17.7 0 32 14.3 32 32s-14.3 32-32 32H128c-17.7 0-32-14.3-32-32zm-32 0c0 35.4 28.6 64 64 64h110.8c-22.1 38.2-63.5 64-110.8 64C57.3 384 0 326.7 0 256s57.3-128 128-128c47.4 0 88.7 25.8 110.8 64H128c-35.4 0-64 28.6-64 64zm416 84.7c19.9-22.6 32-52.2 32-84.7 0-70.7-57.3-128-128-128-47.3 0-88.7 25.8-110.8 64H384c35.3 0 64 28.6 64 64s-28.6 64-64 64h96v20.7zM384 320H273.2c22.1 38.2 63.4 64 110.8 64v-64z" />',viewBox:"0 0 512 512"},Is={name:"globe-link",content:'<path d="M161.7 412.6C69.1 391.2 0 308.1 0 209 0 93.6 93.6 0 209 0s209 93.6 209 209c0 58.2-23.8 110.8-62.2 148.7-20.5-23.1-50.4-37.7-83.8-37.7-3.9 0-7.8.2-11.6.6 12-15.9 26.4-28.8 41.3-33 22.6-18.6 21.6-35.2 18.6-50.2-7-12.6-38.7-23.6-68.8-49.7-18.1-4-40.2 7.5-48.7-3.5-8.5-11.1-48.7-27.1-31.1-44.7s44.2.5 54.8-35.7C236.9 67.6 259 82.6 270 82.6c11.1 0 13.1-26.1-7.5-35.7-20.6-9.5-49.7-19.6-100.5-14.6-50.7 5-86.4 27.6-75.4 47.7 11.1 20.1 44.2 83.9 81.4 94.5 37.2 10.6 35.7 20.2 41.7 27.1 6 7-11.3 22.2 5.1 50.8 8.9 12 17 5 21 25.1 1.9 9.4-2.7 30.3-6.4 50.8-34.9 14.4-61 46-67.7 84.3zM224 432c0-5.1.8-10.1 2.3-14.7C232.5 398 250.6 384 272 384h64c-1.5-1.9-3-3.8-4.6-5.6-14.6-16.2-35.8-26.4-59.4-26.4-12.2 0-23.8 2.7-34.1 7.6-4.4 2.1-8.6 4.6-12.5 7.4-16.4 11.8-28.2 29.7-32 50.4-.9 4.7-1.4 9.6-1.4 14.6 0 44.2 35.8 80 80 80 26.2 0 49.4-12.6 64-32h-64c-26.5 0-48-21.5-48-48zm208-80c-26.2 0-49.4 12.6-64 32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48h-64c14.6 19.4 37.8 32 64 32 44.2 0 80-35.8 80-80s-35.8-80-80-80zm0 64H272c-8.8 0-16 7.2-16 16s7.2 16 16 16h160c8.8 0 16-7.2 16-16s-7.2-16-16-16z" />',viewBox:"0 0 512 512"},Ms={name:"globe-unlink",content:'<path d="M161.7 412.6C69.1 391.2 0 308.1 0 209 0 93.6 93.6 0 209 0s209 93.6 209 209c0 58.2-23.8 110.8-62.2 148.7-20.5-23.1-50.4-37.7-83.8-37.7-3.9 0-7.8.2-11.6.6 12-15.9 26.4-28.8 41.3-33 22.6-18.6 21.6-35.2 18.6-50.2-7-12.6-38.7-23.6-68.8-49.7-18.1-4-40.2 7.5-48.7-3.5-8.5-11.1-48.7-27.1-31.1-44.7s44.2.5 54.8-35.7C236.9 67.6 259 82.6 270 82.6s13.1-26.1-7.5-35.7c-20.6-9.5-49.7-19.6-100.5-14.6-50.7 5-86.4 27.6-75.4 47.7 11.1 20.1 44.2 83.9 81.4 94.5 37.2 10.6 35.7 20.2 41.7 27.1 6 7-11.3 22.2 5.1 50.8 8.9 12 17 5 21 25.1 1.9 9.4-2.7 30.3-6.4 50.8-34.9 14.4-61 46-67.7 84.3M224 432c0-5.1.8-10.1 2.3-14.7C232.5 398 250.6 384 272 384h64c-1.5-1.9-3-3.8-4.6-5.6-14.6-16.2-35.8-26.4-59.4-26.4-12.2 0-23.8 2.7-34.1 7.6-4.4 2.1-8.6 4.6-12.5 7.4-16.4 11.8-28.2 29.7-32 50.4-.9 4.7-1.4 9.6-1.4 14.6 0 44.2 35.8 80 80 80 26.2 0 49.4-12.6 64-32h-64c-26.5 0-48-21.5-48-48m208-80c-26.2 0-49.4 12.6-64 32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48h-64c14.6 19.4 37.8 32 64 32 44.2 0 80-35.8 80-80s-35.8-80-80-80" />',viewBox:"0 0 512 512"},Es={name:"envelop-link",content:'<path d="M224 432c0-5.1.8-10.1 2.3-14.7C232.5 398 250.6 384 272 384h64c-1.5-1.9-3-3.8-4.6-5.6-14.6-16.2-35.8-26.4-59.4-26.4-12.2 0-23.8 2.7-34.1 7.6-4.4 2.1-8.6 4.6-12.5 7.4-16.4 11.8-28.2 29.7-32 50.4-.9 4.7-1.4 9.6-1.4 14.6 0 44.2 35.8 80 80 80 26.2 0 49.4-12.6 64-32h-64c-26.5 0-48-21.5-48-48zm208-80c-26.2 0-49.4 12.6-64 32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48h-64c14.6 19.4 37.8 32 64 32 44.2 0 80-35.8 80-80s-35.8-80-80-80zm0 64H272c-8.8 0-16 7.2-16 16s7.2 16 16 16h160c8.8 0 16-7.2 16-16s-7.2-16-16-16zM32 0C14.3 0 0 14.3 0 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H32zm23.7 32L224 200.3 392.3 32c11 2.9 19.7 11.6 22.6 22.6L310.6 158.9l104.3 104.3c-2.9 11-11.6 19.7-22.6 22.6L288 181.5l-64 64-64-64L55.7 285.8c-11-2.9-19.7-11.6-22.6-22.6l104.3-104.3L33.1 54.6C36 43.6 44.7 34.9 55.7 32z" />',viewBox:"0 0 512 512"},Os={name:"anchor",content:'<path d="m352 288 44.5 44.5c-22.3 40.7-61.7 70.7-108.5 80.3V151.4c19.1-11.1 32-31.8 32-55.4 0-35.3-28.7-64-64-64s-64 28.7-64 64c0 23.6 12.9 44.3 32 55.4v261.4c-46.8-9.5-86.2-39.6-108.5-80.3L160 288H32v128l36.9-36.9C108.9 439.9 177.8 480 256 480s147.1-40.1 187.1-100.9L480 416V288H352zM256 64c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32z" />',viewBox:"0 0 512 512"},Hs={name:"table-add",content:'<path d="M448 320V32H32v416h288V320h128zm-288 96H64v-96h96v96zm0-128H64v-96h96v96zm0-128H64V64h96v96zm128 256h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96zm32-96h96v96h-96V64zm0 224v-96h96v96h-96zm192 128v32h-64v64h-32v-64h-64v-32h64v-64h32v64h64z" />',viewBox:"0 0 512 512"},Ns={name:"table",content:'<path d="M32 32v416h416V32H32zm256 32v96h-96V64h96zm0 128v96h-96v-96h96zM64 64h96v96H64V64zm0 128h96v96H64v-96zm0 224v-96h96v96H64zm128 0v-96h96v96h-96zm224 0h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96z" />',viewBox:"0 0 512 512"},Ps={name:"table-properties",content:'<path d="m502.666 77.216-22.627 22.627-67.882-67.882 22.627-22.627c12.445-12.445 32.81-12.445 45.255 0l22.627 22.627c12.445 12.445 12.445 32.81 0 45.255zM392.483 51.635l67.882 67.882L290.66 288H224v-66.66L392.483 51.635zm22.627 67.882L392.483 96.89 256.719 232.654l22.627 22.627L415.11 119.517zM384 256l32-32v288H0V96h288l-32 32h-96v224h224v-96zM128 384H32v96h96v-96zm0-128H32v96h96v-96zm0-128H32v96h96v-96zm128 256h-96v96h96v-96zm128 0h-96v96h96v-96z" />',viewBox:"0 0 512 512"},Vs={name:"table-cell",content:'<path d="M32 32v416h416V32H32zm128 384H64v-96h96v96zm0-128H64v-96h96v96zm0-128H64V64h96v96zm128 256h-96v-96h96v96zm0-256h-96V64h96v96zm128 256h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96z" />',viewBox:"0 0 512 512"},Ts={name:"table-cell-properties",content:'<path d="m502.666 77.216-22.627 22.627-67.882-67.882 22.627-22.627c12.445-12.445 32.81-12.445 45.255 0l22.627 22.627c12.445 12.445 12.445 32.81 0 45.255zM384 256l32-32v288H0V96h288l-32 32h-96v96h32v96h96v32h96v-96zM128 384H32v96h96v-96zm0-128H32v96h96v-96zm0-128H32v96h96v-96zm128 256h-96v96h96v-96zm128 0h-96v96h96v-96zm8.483-332.365 67.882 67.882-141.588 141.588L290.66 288H224v-66.66l26.895-28.118L392.483 51.635zm22.627 67.882L392.483 96.89 256.719 232.654l11.314 11.314 11.314 11.314L415.11 119.517z" />',viewBox:"0 0 512 512"},Rs={name:"table-column-insert-left",content:'<path d="M32 480V0h128v480H32zM480 32v416H192V32h288zM224 160h96V64h-96v96zm0 128h96v-96h-96v96zm0 128h96v-96h-96v96zm224-96h-96v96h96v-96zm0-32v-96h-96v96h96zm0-224h-96v96h96V64z" />',viewBox:"0 0 512 512"},Ds={name:"table-column-insert-right",content:'<path d="M352 480V0h128v480H352zM320 32v416H32V32h288zm-32 32h-96v96h96V64zm0 128h-96v96h96v-96zm0 128h-96v96h96v-96zM64 416h96v-96H64v96zm96-128v-96H64v96h96zM64 160h96V64H64v96z" />',viewBox:"0 0 512 512"},Bs={name:"table-row-insert-above",content:'<path d="M480 160H0V32h480v128zM32 192h416v288H32V192zm32 32v96h96v-96H64zm128 0v96h96v-96h-96zm128 0v96h96v-96h-96zm96 224v-96h-96v96h96zm-128-96h-96v96h96v-96zm-128 96v-96H64v96h96z" />',viewBox:"0 0 512 512"},As={name:"table-row-insert-below",content:'<path d="M480 480H0V352h480v128zM32 32h416v288H32V32zm128 256v-96H64v96h96zm128 0v-96h-96v96h96zm128 0v-96h-96v96h96zM320 64v96h96V64h-96zm-32 0h-96v96h96V64zM64 64v96h96V64H64z" />',viewBox:"0 0 512 512"},Ls={name:"table-column-delete",content:'<path d="M192 288v224h128V288H192zm0-288v64h128V0H192zm160 32h128v416H352V32zm96 288h-64v96h64v-96zm0-128h-64v96h64v-96zm0-128h-64v96h64V64zM32 32h128v416H32V32zm96 288H64v96h64v-96zm0-128H64v96h64v-96zm0-128H64v96h64V64zm128 89.373L313.373 96 336 118.627 278.627 176 336 233.373 313.373 256 256 198.627 198.627 256 176 233.373 233.373 176 176 118.627 198.627 96 256 153.373z" />',viewBox:"0 0 512 512"},_s={name:"table-row-delete",content:'<path d="M224 192H0v128h224V192zm288 0h-64v128h64V192zm-32 160v128H64V352h416zm-288 96v-64H96v64h96zm128 0v-64h-96v64h96zm128 0v-64h-96v64h96zm32-416v128H64V32h416zm-288 96V64H96v64h96zm128 0V64h-96v64h96zm128 0V64h-96v64h96zm-89.373 128L416 313.373 393.373 336 336 278.627 278.627 336 256 313.373 313.373 256 256 198.627 278.627 176 336 233.373 393.373 176 416 198.627 358.627 256z" />',viewBox:"0 0 512 512"},Fs={name:"table-cell-delete",content:'<path d="M96 192h160v128H96V192zM32 352h160v128H32V352zm32 32v64h96v-64H64zm128-224H32V32h160v128zm-32-96H64v64h96V64zm262.627 192L480 313.373 457.373 336 400 278.627 342.627 336 320 313.373 377.373 256 320 198.627 342.627 176 400 233.373 457.373 176 480 198.627 422.627 256z" />',viewBox:"0 0 512 512"},js={name:"table-delete",content:'<path d="M32 32v416h416V32H32zm384 128h-64v32h64v96h-64v32h64v96h-96v-64h-32v64h-96v-64h-32v64H64v-96h64v-32H64v-96h64v-32H64V64h96v64h32V64h96v64h32V64h96v96zm-153.4 80 57.4 57.4-22.6 22.6-57.4-57.4-57.4 57.4-22.6-22.6 57.4-57.4-57.4-57.4 22.6-22.6 57.4 57.4 57.4-57.4 22.6 22.6-57.4 57.4z" />',viewBox:"0 0 512 512"},Ks={name:"cells-merge",content:'<path d="M32 32v448h416V32H32zm160 32h96v64h-96V64zM64 64h96v64H64V64zm96 384H64v-64h96v64zm128 0h-96v-64h96v64zm128 0h-96v-64h96v64zm0-96H64V160h352v192zm0-224h-96V64h96v64z" />',viewBox:"0 0 512 512"},Ws={name:"cells-merge-horizontally",content:'<path d="M32 32v416h416V32H32zm160 32h96v96h-96V64zM64 64h96v96H64V64zm96 352H64v-96h96v96zm128 0h-96v-96h96v96zm128 0h-96v-96h96v96zm0-128H64v-96h352v96zm0-128h-96V64h96v96z" />',viewBox:"0 0 512 512"},Us={name:"cells-merge-vertically",content:'<path d="M32 448h416V32H32v416zm32-160v-96h96v96H64zm0 128v-96h96v96H64zm352-96v96h-96v-96h96zm0-128v96h-96v-96h96zm0-128v96h-96V64h96zm-128 0v352h-96V64h96zm-128 0v96H64V64h96z" />',viewBox:"0 0 512 512"},qs={name:"cell-split-horizontally",content:'<path d="M32 32v416h416V32H32zm32 32h160v64H64V64zm160 160h-64v-64h64v64zM64 160h64v64H64v-64zm0 96h160v64H64v-64zm0 160v-64h160v64H64zm192-256h64v64h-64v-64zm160 256H256v-64h160v64zm0-96H256v-64h160v64zm0-96h-64v-64h64v64zm0-96H256V64h160v64z" />',viewBox:"0 0 512 512"},$s={name:"cell-split-vertically",content:'<path d="M32 448h416V32H32v416zm32-32V256h64v160H64zm160-160v64h-64v-64h64zm-64 160v-64h64v64h-64zm96 0V256h64v160h-64zm160 0h-64V256h64v160zM160 224v-64h64v64h-64zM416 64v160h-64V64h64zm-96 0v160h-64V64h64zm-96 0v64h-64V64h64zm-96 0v160H64V64h64z" />',viewBox:"0 0 512 512"},Gs={name:"table-unmerge",content:'<path d="M32 32v416h416V32H32zm160 32h96v96h-96V64zm96 128v96h-96v-96h96zM64 64h96v96H64V64zm0 128h96v96H64v-96zm96 224H64v-96h96v96zm128 0h-96v-96h96v96zm128 0h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96z" />',viewBox:"0 0 512 512"},Zs={name:"pane-freeze",content:'<path d="M32 32v416h416V32H32zm256 32 96 96h-64l-96-96h64zm-128 0 96 96h-64L96 64h64zM64 96l96 96v64l-96-96V96zm0 128 96 96v64l-96-96v-64zm0 192v-64l64 64H64zm224 0h-96v-96h96v96zm0-128h-96v-96h96v96zm128 128h-96v-96h96v96zm0-128h-96v-96h96v96zM352 64h64v64l-64-64z" />',viewBox:"0 0 512 512"},Ys={name:"row-freeze",content:'<path d="M32 448h416V32H32v416zM64 96l64 64H64V96zm96-32 96 96h-64L96 64h64zm128 0 96 96h-64l-96-96h64zm128 64-64-64h64v64zm-96 160v-96h96v96h-96zm-128 0v-96h96v96h-96zm-32 0H64v-96h96v96zm160 128v-96h96v96h-96zm-128 0v-96h96v96h-96zm-128 0v-96h96v96H64z" />',viewBox:"0 0 512 512"},Js={name:"column-freeze",content:'<path d="M32 32v416h416V32H32zm128 32v64L96 64h64zM64 96l96 96v64l-96-96V96zm0 128 96 96v64l-96-96v-64zm0 192v-64l64 64H64zm224 0h-96v-96h96v96zm0-128h-96v-96h96v96zm-96-128V64h96v96h-96zm224 256h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96z" />',viewBox:"0 0 512 512"},Xs={name:"toolbar-float",content:'<path d="M64 352h416v128H64V352zm96 32H96v64h96v-64h-32zm160 0h-96v64h96v-64zm32 0v64h96v-64h-96zM63.961 131.844l90.51 90.51 45.255-45.255-90.51-90.51-45.255 45.255zm0 0 90.51 90.51 45.255-45.255-90.51-90.51-45.255 45.255zm158.392 67.882 67.882-67.882-22.627-22.627-22.627 22.627-90.51-90.51c-12.445-12.445-32.81-12.445-45.255 0l-67.882 67.882c-12.445 12.445-12.445 32.81 0 45.255l90.51 90.51-22.627 22.627 22.627 22.627 67.882-67.882L297.373 320 320 297.373l-97.647-97.647zm-67.882 22.627-90.51-90.51 45.255-45.255 90.51 90.51-45.255 45.255zM480 256h-64v64h64v-64z" />',viewBox:"0 0 512 512"},Qs={name:"spell-checker",content:'<path d="M113.2 206.2c-7.4 6.2-15.6 10.7-24.6 13.5s-19.3 4.2-31 4.2c-8.4 0-16.1-1-23.1-2.9s-13.1-4.9-18.2-8.8c-5.1-3.9-9.1-8.8-12-14.6C1.4 192 0 185.2 0 177.5c0-18.9 8.1-32.9 24.4-41.9s40.9-13.5 74-13.5h13.7c0-2.6 0-5.3-.1-8.2-.1-2.9-.3-5.4-.7-7.6-.8-7.6-3.5-13.2-8-17-4.5-3.7-11.8-5.6-21.7-5.6-10.4 0-18.1 1.9-23.3 5.8s-7.8 9.5-7.8 16.8H7c2.4-32.7 27.8-49 76.3-49 6.6 0 12.6.2 17.9.6 5.3.4 10.2 1.1 14.6 2 4.4 1 8.6 2.2 12.5 3.7 3.9 1.5 7.6 3.4 11.4 5.7 3.5 2.2 6.4 4.7 9 7.4 2.5 2.8 4.6 6.1 6.4 9.9 1.7 3.9 3 8.3 3.8 13.3s1.2 10.8 1.2 17.4V224h-46.8l-.1-17.8zm-1-58H96.8c-16.2 0-28.4 2-36.5 5.9s-12.2 10.6-12.2 20.2c0 7.3 2.5 12.7 7.5 16.2s11.5 5.2 19.4 5.2c7.6 0 14.6-1.5 21.2-4.5s11.9-6.9 15.8-11.7v-31.3h.2zm125.2-61.6c5.5-7.2 12.3-12.8 20.2-16.7C265.5 66 274 64 283.1 64c10.2 0 19.2 1.9 26.8 5.7 7.7 3.8 14.1 9.2 19.3 16.3 5.2 7.1 9.1 15.7 11.7 25.9s4 21.6 4 34.3-1.2 19-4.3 29.4c-3 10.4-7.6 17.9-13.3 25.2-5.7 7.3-12.6 13-20.7 17.1s-17.3 6.1-27.5 6.1c-17.5 0-31.9-5.2-43.3-15.6V224H192V0h45.4v86.6zm0 91.7c4.4 4.1 9.1 7.2 14.1 9.4 5 2.1 10.5 3.2 16.5 3.2 9.8 0 17.4-4.3 22.7-12.8 5.3-8.6 7.9-14.7 7.9-31.8 0-32.7-9.6-49-28.7-49-6.2 0-12 1.9-17.4 5.6s-10.5 9-15.1 15.8v59.6zM442.2 224c-12.4 0-23.4-1.8-33.3-5.4-9.8-3.6-18.1-8.8-25-15.6-6.8-6.8-12-15.2-15.7-25.1-3.7-9.9-5.5-21.3-5.5-34s1.8-24 5.5-33.9 8.9-18.2 15.9-25.1c6.9-6.9 15.3-12.1 25.2-15.6 9.9-3.6 21.1-5.4 33.6-5.4 20 0 36 4.7 48 14.1s19 23 21 40.9h-41c-1-7-3.9-12.7-8.8-16.9-4.9-4.2-11.2-6.3-19.2-6.3-10.2 0-18.4 3.9-24.5 11.6s-9.2 19.9-9.2 36.6c0 16.5 3.1 28.7 9.2 36.5s14.3 11.7 24.5 11.7c7.9 0 14.4-2.1 19.3-6.3s7.8-9.8 8.7-16.9h41c-2.5 17.7-9.7 31.2-21.5 40.7-11.6 9.6-27.7 14.4-48.2 14.4zm69.8 0L224 512 64 352l64-64 96 96 288-160" />',viewBox:"0 0 512 512"},el={name:"validation-xhtml",content:'<path d="M192 224h-54l-26.2-96L86 224H32L0 64h42l22 96 22-96h52l22 96 22-96h42l-32 160zm272.5-121.8c4.7 4.2 7.4 9.8 8.5 16.8h38.9c-2-17.9-8.6-31.3-19.9-40.8-11.5-9.3-26.5-14-45.6-14-11.9 0-22.5 1.7-32 5.3-9.4 3.6-17.4 8.9-23.9 15.7-6.7 6.9-11.6 15.2-15.1 25-3.5 10-5.3 21.2-5.3 33.8 0 12.8 1.8 24 5.3 33.8 3.5 10 8.3 18.4 14.8 25.1 6.5 6.7 14.5 11.8 23.8 15.4 9.4 3.6 20 5.4 31.6 5.4 19.4 0 34.7-4.8 45.9-14.3 11.2-9.5 18-23 20.4-40.5H473c-.9 7-3.7 12.6-8.3 16.8-4.7 4.3-10.7 6.3-18.3 6.3-9.8 0-17.5-3.9-23.5-11.7-5.8-7.8-8.6-19.9-8.6-36.3 0-16.7 2.8-28.7 8.6-36.5 5.9-7.8 13.6-11.5 23.5-11.5 7.5 0 13.6 2 18.1 6.2zM316.7 219.8c7.3-2.3 13.6-5.8 18.9-10.2l.1-.1c5.2-4.6 9.1-9.9 11.8-16.1 2.8-6 4.2-12.7 4.2-20.7 0-10-2.7-18.4-8-25.3-3.5-4.4-7.9-7.9-13.2-10.5.3-.3.7-.5 1-.8 3.1-2.4 5.5-5 7.6-8.1 2-3 3.5-6.2 4.5-9.4 1-3.5 1.5-6.9 1.5-10.4 0-6.6-1.3-12.6-3.9-18.1-2.6-5.4-6.4-10.3-11.4-14.2-4.8-4.2-10.5-7.2-17-9.1-6.3-1.8-13.7-2.8-22.1-2.8-7.4 0-14.3 1-20.8 3.1-6.3 2.1-11.7 5.2-16.9 9.3-5 4.1-9 9.2-11.9 15.1-3 5.9-4.9 12.7-5.6 20.3l-.5 5.1h38.2l.5-4.4c1.6-14.6 9.9-16.5 16.9-16.5 4.8 0 8.3 1.1 10.7 3.3l.1.1c2.7 2.5 3.3 7.1 3.3 10.4 0 5.6-1.2 9.4-3.8 11.4l-.1.1c-2.8 2.4-7.2 3.5-13.4 3.5H276v31h13.7c7.4 0 12.8 1.4 16.3 4 3.3 2.7 4.9 6.5 4.9 12.2 0 2.9-.5 5.6-1.4 8-.9 2.3-2.1 4.1-3.9 5.9-1.4 1.5-3.4 2.7-5.9 3.6-2.4.9-5.2 1.4-8.4 1.4-3.4 0-6.3-.4-9-1.3-2.2-.8-4.1-2-5.7-3.5-1.6-1.6-2.8-3.3-3.7-5.2-.8-1.9-1.2-4.1-1.5-6.7l-.4-4.2h-39.1l.3 5c.5 7.4 2.3 14.5 5.3 21 3.1 6.1 7.8 11.8 14.2 16.6 4.9 3.8 10.8 6.6 17.8 8.4h.4c6.4 1.5 13.8 2.3 22.1 2.3 9.5 0 17.5-1.2 24.7-3.5zM64 352l64-64 96 96 288-160-288 288L64 352z" />',viewBox:"0 0 512 512"},tl={name:"validation-data",content:'<path d="m64 352 64-64 96 96 288-160-288 288L64 352zm48.6-193.6c0 13-2.5 24.4-7.6 34.4s-12.3 17.7-21.8 23.1c-9.4 5.4-20.3 8.1-32.7 8.1H0V96h49.5c42.1 0 63.1 20.8 63.1 62.4zm-38 .3c0-6.3-1.2-12-3.5-17-2.4-5-5.7-8.9-10.1-11.7-4.4-2.7-9.6-4.1-15.6-4.1H36v68h10.1c8.6 0 15.6-3.2 20.7-9.5 5.2-6.4 7.8-14.9 7.8-25.7zM216.2 224l-5.5-24h-37.2l-5.9 24H128l42.3-128h45.9L256 224h-39.8zm-23.6-100h-.9c-.1 1.4-.5 3.8-1.2 7.1s-4.1 17.2-10.4 41.9h23.4l-8.6-34.7c-1.1-5-1.9-9.8-2.3-14.3zm127.4 4v96h-32v-96h-32V96h98v32h-34zm120.2 96-5.5-24h-37.2l-5.9 24H352l42.3-128h45.9L480 224h-39.8zm-23.6-100h-.9c-.1 1.4-.5 3.8-1.2 7.1s-4.1 17.2-10.4 41.9h23.4l-8.6-34.7c-1.1-5-1.9-9.8-2.3-14.3z" />',viewBox:"0 0 512 512"},nl={name:"toggle-full-screen-mode",content:'<path d="M448 32H64c-17.6 0-32 14.4-32 32v288c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32zm0 319.942a.53.53 0 0 1-.058.058H64.058a.454.454 0 0 1-.058-.058V64.057a.511.511 0 0 1 .057-.057h383.885c.02.017.041.038.058.057v287.885zM384 480H128c35.346 0 64-28.654 64-64h128c0 35.346 28.654 64 64 64zm32-160H96c58.263-113.973 183.21-192 320-192v192z" />',viewBox:"0 0 512 512"},ol={name:"formula-fx",content:'<path d="m214 183.4-24.7 110c-11.5 53.4-22.7 92.1-33.7 116.1-11 24-23.8 41.8-38.4 53.2-14.7 11.6-31.5 17.3-50.5 17.3-12 0-20.7-2.7-26.3-8-5.6-5.3-8.4-11.5-8.4-18.7 0-6.7 2.3-12.5 7-17.4 4.7-4.9 10.8-7.3 18.3-7.3 6.3 0 11.2 1.9 14.5 5.6 3.4 3.7 5.1 8.5 5.1 14.2 0 5.2-1 9.1-3.2 11.6-2.1 2.5-3.2 4.2-3.2 5l1 1.7c.8.8 1.8 1.2 3 1.2 4.2 0 7.8-1.5 10.8-4.7 7.4-7.7 13-17 16.6-27.9 2.5-7.5 7.4-27.4 14.5-59.5l43-192.6h-29.3l7-28.7c10.5.2 18.2-1.4 23-4.7 4.8-3.3 9.8-10.6 15.2-22 15.4-33.1 31.7-60.1 48.9-74.4S260.4 32 281.5 32c13.5 0 23.3 3 29.4 9.1 6.1 6.1 9.2 13.9 9.2 23.5 0 8.5-2 15.2-6.1 20.2-4.1 5.1-9.2 7.5-15.2 7.5-5.6 0-10.3-2-13.9-6.1-3.6-4.1-5.5-9-5.5-14.7 0-4.1 1.1-8.4 3.5-13 2.3-4.6 3.5-7.7 3.5-9.3 0-1.8-.5-3.3-1.6-4.4-1-1.1-2.4-1.7-4.1-1.7-8.3 0-16.8 5.9-25.5 17.9-14.3 19.1-25.9 52.5-34.5 93.8h30.5l-7.4 28.7-29.8-.1zm78.7 22.7 68.9-14.1c12.5 23.3 21.3 48.9 26.5 76.9 12.9-22.7 22.7-38.6 29.3-47.6 8.8-12.2 16.1-20.1 21.8-23.8 5.8-3.7 11.9-5.5 18.3-5.5 7.2 0 12.8 2.4 16.7 7 3.9 4.7 5.8 11 5.8 19 0 7.5-2 13.6-5.8 18.4-3.9 4.7-8.7 7.1-14.5 7.1-4.2 0-9-.9-14.5-2.7-5.4-1.8-9.3-2.7-11.3-2.7-5.6 0-10.8 2.4-15.8 7-6.8 6.4-15.2 20.1-25.3 41 11.2 46.9 20.1 75.5 26.9 85.8 3.9 6.1 7.9 9.2 12.1 9.2 3.4 0 6.4-1 8.9-3 3.8-3.3 9.7-11.5 17.6-24.6l7.1 4.9c-11.6 22.2-22.9 37.9-34 46.9-8.4 7-16.7 10.6-24.9 10.6-8.4 0-15.4-2.3-21-6.7-5.6-4.5-10.6-11.7-14.9-21.8-4.4-10-9.5-26.2-15.4-48.4-15.4 23.3-27.5 40.3-36.3 51-8.7 10.7-16 17.7-21.8 21-5.8 3.3-12 4.9-18.6 4.9-6.8 0-12.3-2.4-16.3-7-4-4.7-6-10.8-6-18.3 0-7.9 2.2-14.5 6.5-19.6 4.3-5.2 9.9-7.7 16.6-7.7 3.6 0 7.6 1.3 12.1 3.7 6.6 3.8 11.3 5.7 14.2 5.7 3.8 0 7.2-.9 10.3-2.8 3.9-2.4 9-7.4 15-15.3 3.7-4.8 10.5-15.1 20.4-31-12.6-55.8-22.5-89.1-29.6-100-4.5-7-10.2-10.6-17-10.6-3.6 0-7.9.6-13 1.9l1-8.8z" />',viewBox:"0 0 512 512"},rl={name:"sum",content:'<path d="M416 64v128l-64-64H160l128 128-128 128h192l64-64v128H96v-64l128-128L96 128V64h320z" />',viewBox:"0 0 512 512"},il={name:"symbol",content:'<path d="m448 416 32-32v96H320V375.8c11.4-5.1 22.2-11.5 32-19 38.9-29.7 64-76.9 64-130.1C416 136.8 344.4 64 256 64S96 136.8 96 226.7c0 53.2 25.1 100.5 64 130.1 9.8 7.5 20.6 13.9 32 19V480H32v-96l32 32h96v-18.5C84.3 366.7 32 300.6 32 224 32 118 132.3 32 256 32s224 86 224 192c0 76.6-52.3 142.7-128 173.5V416h96z" />',viewBox:"0 0 512 512"},al={name:"dollar",content:'<path d="M326.6 273c-8.3-7.3-18.4-13.6-30.4-19.1-11.8-5.4-25.2-10.2-40.2-14.5V131.3c6.5.8 13 2.2 17.7 4.2 7.5 3.3 13.7 7.8 18.8 13.7 5.1 5.8 8.9 12.7 11.4 20.7 2.6 8 3.8 16.7 3.8 26.2H352c0-29.2-7.5-52-22.5-68.8s-36-26.8-62.9-30.1c0 0-5-.4-10.6-.8V32h-32v66.2c-11.9 1.5-22.6 4.3-32.2 8.4-10.6 4.5-19.6 10.3-27.1 17.5-7.5 7.2-13.2 15.6-17.2 25.4-4 9.7-6 20.5-6 32.2 0 12.7 2.2 23.8 6.7 33.4s11 18.2 19.5 25.6 18.8 13.8 30.9 19.3c7.8 3.5 16.3 6.8 25.4 9.7v110.7c-2.7-.4-5.4-.9-8.1-1.5-7.9-1.8-15.2-5.1-21.7-9.8-6.5-4.7-11.8-11-15.8-19s-6-18-6-30H128c0 16.2 2.6 30 7.9 41.6 5.3 11.6 12.4 21.2 21.3 28.6 8.9 7.5 19.1 13.3 30.6 17.3s23.4 6.5 35.7 7.5c0 0 .2 0 .5.1V480h32v-64.7c1.9-.2 3.1-.3 3.1-.3 14.1-1.3 26.9-4.1 38.4-8.3 11.5-4.3 21.3-10 29.4-17.1 8.1-7.1 14.3-15.6 18.6-25.4 4.3-9.8 6.5-20.9 6.5-33.2 0-12.5-2.2-23.5-6.5-33-4.3-9.4-10.6-17.8-18.9-25zm-104.7-46.2c-8.8-4.1-15.9-8.4-21.2-12.9s-9.1-9.6-11.3-15c-2.2-5.5-3.4-11.6-3.4-18.5 0-7.4 1.2-14.1 3.6-20.3 2.4-6.1 6-11.3 10.8-15.7 4.8-4.3 10.9-7.7 18.3-10.1 1.7-.6 3.5-1 5.3-1.5v94.9c-.6-.2-1.4-.5-2.1-.9zm81 125.2c-3 6.2-7.5 11.4-13.2 15.8-5.8 4.3-12.8 7.7-21.2 10-3.9 1.1-8.1 1.9-12.5 2.5V279.2c5.6 2 10.7 4.1 15.3 6.2 8.6 4 15.6 8.3 20.9 13 5.4 4.7 9.3 9.7 11.7 15.1 2.4 5.4 3.6 11.3 3.6 17.7 0 7.7-1.5 14.7-4.6 20.8z" />',viewBox:"0 0 512 512"},sl={name:"percent",content:'<path d="M352 64h32L160 448h-32L352 64zm16 160c-44.2 0-80 50.1-80 112s35.8 112 80 112 80-50.1 80-112-35.8-112-80-112zm0 192c-22.7 0-48-32.9-48-80s25.3-80 48-80 48 32.9 48 80-25.3 80-48 80zM144 64c-44.2 0-80 50.1-80 112s35.8 112 80 112 80-50.1 80-112-35.8-112-80-112zm0 192c-22.7 0-48-32.9-48-80s25.3-80 48-80 48 32.9 48 80-25.3 80-48 80z" />',viewBox:"0 0 512 512"},ll={name:"custom-format",content:'<path d="M128 128v224H80V182.4s-13.1 19.1-48 19.1v-40.6c34.9 0 61.7-32.9 61.7-32.9H128zm94.4 184H320v40H169v-16.6c.3-11.3 2.2-21.4 6-30.3 3.8-9 8.6-17 14.3-24.1s12-13.4 18.8-18.9 13.3-10.4 19.4-14.8c6.5-4.6 12.1-9 17-13.2s9-8.4 12.3-12.5 5.8-8.3 7.5-12.6c1.6-4.2 2.5-8.8 2.5-13.6 0-9.4-2.7-16.5-8-21.4-5.3-4.8-13.5-7.2-24.4-7.2-18.9 0-37.1 7.5-54.4 22.6v-42.7c19.2-12.4 40.8-18.6 64.8-18.6 11.2 0 21.2 1.5 30 4.4 8.9 2.9 16.4 7.1 22.5 12.5s10.8 12 14.1 19.7c3.2 7.7 4.8 16.4 4.8 25.9 0 10.1-1.6 19.2-4.7 27-3.1 7.9-7.3 15.1-12.4 21.5-5.2 6.5-11.1 12.4-17.9 17.7-6.8 5.4-13.8 10.6-21 15.6-4.9 3.5-9.7 6.9-14.2 10.4-4.6 3.4-8.6 6.8-12.1 10.1s-6.2 6.6-8.3 9.8c-2.2 3.1-3.2 9.3-3.2 9.3zM341 341.2v-41.7s32.1 15.8 51.5 15.8c12.2 0 21.8-2.6 28.6-7.9 6.8-5.3 10.2-12.5 10.2-21.9 0-9.7-4.2-17.1-12.7-22.3-8.4-5.3-20-7.9-34.8-7.2H364v-37h17.7c28.4 0 42.6-9.4 42.6-28.1 0-17.6-10.9-26.4-32.7-26.4-14.7 0-28.8 4.7-42.6 14v-38.9c15.4-7.7 33.1-11.5 53.6-11.5 22.3 0 39.6 5 52.1 14.9 12.4 10 18.7 22.9 18.7 38.8 0 28.3-14.5 46-43.4 53.2v.3c15.5 1.9 27.6 7.5 36.5 16.8 8.9 9.2 13.3 20.6 13.3 34 0 20.3-7.4 36.4-22.4 48.2-15 11.8-35.5 17.7-61.7 17.7-22.3.1-40.6-3.5-54.7-10.8z" />',viewBox:"0 0 512 512"},cl={name:"decimal-increase",content:'<path d="M384 256c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64 35.4 0 64-28.7 64-64v-64c0-35.3-28.6-64-64-64zm32 118c0 23.6-14.3 42.7-32 42.7-17.6 0-32-19.1-32-42.7v-42.7c0-23.5 14.4-42.6 32-42.6 17.7 0 32 19.1 32 42.6V374zM384 32c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64 35.4 0 64-28.7 64-64V96c0-35.3-28.6-64-64-64zm32 118c0 23.6-14.3 42.7-32 42.7-17.6 0-32-19.1-32-42.7v-42.7c0-23.6 14.4-42.7 32-42.7 17.7 0 32 19.1 32 42.7V150zM224 256c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64s64-28.7 64-64v-64c0-35.3-28.6-64-64-64zm32 118c0 23.6-14.3 42.7-32 42.7s-32-19.1-32-42.7v-42.7c0-23.5 14.3-42.6 32-42.6s32 19.1 32 42.6V374zM96 416h32v32H96v-32zm160-224h32v32h-32v-32zM192 32v192L64 128l128-96z" />',viewBox:"0 0 512 512"},ul={name:"decimal-decrease",content:'<path d="M384 32c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64 35.4 0 64-28.7 64-64V96c0-35.3-28.6-64-64-64zm32 116.7c0 23.5-14.3 42.6-32 42.6-17.6 0-32-19.1-32-42.6V106c0-23.6 14.4-42.7 32-42.7 17.7 0 32 19.1 32 42.7v42.7zM384 256c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64 35.4 0 64-28.7 64-64v-64c0-35.3-28.6-64-64-64zm32 116.7c0 23.6-14.3 42.7-32 42.7-17.6 0-32-19.1-32-42.7V330c0-23.6 14.4-42.7 32-42.7 17.7 0 32 19.1 32 42.7v42.7zM224 32c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64 35.4 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64zm32 116.7c0 23.5-14.3 42.6-32 42.6s-32-19.1-32-42.6V106c0-23.6 14.3-42.7 32-42.7s32 19.1 32 42.7v42.7zM128 224H96v-32h32v32zm128 192h32v32h-32v-32zM64 256l128 96-128 96V256z" />',viewBox:"0 0 512 512"},dl={name:"font-size",content:'<path d="M97 224 32 416h29l16.9-50H146l16.9 50h29l-65-192H97zm-8.9 112 23.9-70.6 23.9 70.6H88.1zM376 96h-48L224 416h48l26-80h108l26 80h48L376 96zm-62.4 192L352 169.8 390.4 288h-76.8z" />',viewBox:"0 0 512 512"},pl={name:"image-absolute-position",content:'<path d="M416 240c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm96-80v320c0 17.7-14.3 32-32 32H160c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h320c17.7 0 32 14.3 32 32zm-32 26.7c0-14.7-11.9-26.7-26.7-26.7H186.7c-14.7 0-26.7 11.9-26.7 26.7V384l96-96 96 96 64-64 64 64V186.7zM32 0H0v512h32v-64h32v-32H32v-64h32v-32H32v-64h32v-32H32v-64h32v-32H32V32h96v32h32V32h64v32h32V32h64v32h32V32h64v32h32V32h64V0H32z" />',viewBox:"0 0 512 512"},hl={name:"table-wizard",content:'<path d="M160 384V160h224v96l32 32V0H0v416h288l-32-32h-96zM288 32h96v96h-96V32zm-128 0h96v96h-96V32zm-32 352H32v-96h96v96zm0-128H32v-96h96v96zm0-128H32V32h96v96zm376.6 362.1-15.5 15.5c-8.6 8.6-22.4 8.6-31 0l-124-124c-8.6-8.6-8.6-22.4 0-31l15.5-15.5c8.6-8.6 22.4-8.6 31 0l124 124c8.6 8.5 8.6 22.4 0 31zm-158.5-209-21-14.8c-3.2-2.3-5.1-6-5.1-10l.3-25.7c.1-6.6-5.2-12.1-11.8-12.2-2.6 0-5.2.8-7.3 2.4l-20.6 15.4c-3.2 2.4-7.3 3-11 1.8l-24.3-8.3c-6.8-2.3-14.3 1.9-15.7 9.3-.4 2.1-.1 4.2.5 6.2l8.2 24.1c1.3 3.7.6 7.8-1.8 11l-15.4 20.6c-4.3 5.8-2.6 14.2 4 17.8 1.9 1 4 1.4 6.1 1.4l25.4-.3c3.9-.1 7.7 1.8 10 5.1l14.8 21c4.2 5.9 12.7 6.9 18.1 1.7 1.5-1.5 2.6-3.3 3.2-5.3l7.5-24.3c1.2-3.8 4.1-6.7 7.9-7.9l24.5-7.6c6.3-2 9.8-8.7 7.9-15-.7-2.7-2.3-4.9-4.4-6.4z" />',viewBox:"0 0 512 512"},fl={name:"crosstab",content:'<path d="M192.3 32H32v160h1v288h447V32H192.3zm-.3 416H96v-96h96v96zm0-128H96v-96h96v96zm0-128H96V96h96v96zm128 256h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V96h96v96zm128 256h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V96h96v96z" />',viewBox:"0 0 512 512"},ml={name:"crosstab-wizard",content:'<path d="M192 416V192h224v96l32 32V0H0v160h1v288h318.7l-31.9-32H192zM320 64h96v96h-96V64zm-128 0h96v96h-96V64zm-32 352H64v-96h96v96zm0-128H64v-96h96v96zm0-128H64V64h96v96zm344.6 330.1-15.5 15.5c-8.6 8.6-22.4 8.6-31 0l-124-124c-8.6-8.6-8.6-22.4 0-31l15.5-15.5c8.6-8.6 22.4-8.6 31 0l124 124c8.6 8.5 8.6 22.4 0 31zM221.2 300.8c-4.3 5.8-2.6 14.2 4 17.8 1.9 1 4 1.4 6.1 1.4l25.4-.3c3.9-.1 7.7 1.8 10 5.1l14.8 21c4.2 5.9 12.7 6.9 18.1 1.7 1.5-1.5 2.6-3.3 3.2-5.3l7.5-24.3c1.2-3.8 4.1-6.7 7.9-7.9l24.5-7.6c6.3-2 9.9-8.7 7.9-15-.8-2.5-2.4-4.7-4.5-6.2l-21-14.8c-3.2-2.3-5.1-6-5.1-10l.3-25.7c.1-6.6-5.2-12.1-11.8-12.2-2.6 0-5.2.8-7.3 2.4l-20.6 15.4c-3.2 2.4-7.3 3-11 1.8l-24.3-8.3c-6.8-2.3-14.3 1.9-15.7 9.3-.4 2.1-.1 4.2.5 6.2l8.2 24.1c1.3 3.7.6 7.8-1.8 11l-15.3 20.4z" />',viewBox:"0 0 512 512"},vl={name:"table-body",content:'<path d="M32 32v416h416V32H32zm256 32v96h-96V64h96zm128 256v64L224 192h64l128 128zM64 64h96v96H64V64zm0 128h96v96H64v-96zm0 224v-96h96v96H64zm128 0v-64l64 64h-64zm128 0L192 288v-64l192 192h-64zm96-160-64-64h64v64zm0-96h-96V64h96v96z" />',viewBox:"0 0 512 512"},gl={name:"table-column-groups",content:'<path d="M32 32v416h416V32H32zm256 32v64l-64-64h64zm0 320-96-96v-64l96 96v64zM192 96l96 96v64l-96-96V96zM64 64h96v96H64V64zm0 128h96v96H64v-96zm0 224v-96h96v96H64zm128 0v-64l64 64h-64zm224 0h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96z" />',viewBox:"0 0 512 512"},yl={name:"table-corner",content:'<path d="M32 32v416h416V32H32zm256 32v96h-96V64h96zm0 128v96h-96v-96h96zM160 64v64L96 64h64zM64 96l64 64H64V96zm0 96h96v96H64v-96zm0 224v-96h96v96H64zm128 0v-96h96v96h-96zm224 0h-96v-96h96v96zm0-128h-96v-96h96v96zm0-128h-96V64h96v96z" />',viewBox:"0 0 512 512"},bl={name:"table-row-groups",content:'<path d="M32 32v416h416V32H32zm256 32v96h-96V64h96zm-64 128h64l96 96h-64l-96-96zm32 96h-64l-96-96h64l96 96zM64 64h96v96H64V64zm0 160 64 64H64v-64zm0 192v-96h96v96H64zm128 0v-96h96v96h-96zm224 0h-96v-96h96v96zm0-160-64-64h64v64zm0-96h-96V64h96v96z" />',viewBox:"0 0 512 512"},wl={name:"globe-outline",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zM64 256c0-57 24.8-108.2 64.3-143.3.3 1.8 1 3.6 1.9 5.4 11.9 22.1 47.7 92.5 87.8 104.1 40.1 11.6 38.6 22.2 45 29.9 6.5 7.7-12.2 24.4 5.6 55.9 9.6 13.2 18.3 5.5 22.6 27.6 4.1 21-20.6 95-7.8 110.4-9 1.3-18.1 2-27.4 2-106 0-192-86-192-192zm222.4 189.6c10.5-37 41.8-89.2 75.8-98.9 24.4-20.5 23.3-38.8 20.1-55.4-7.6-13.9-41.7-26-74.3-54.8-19.5-4.4-43.4 8.3-52.6-3.9-9.2-12.2-52.6-29.9-33.6-49.3s47.7.6 59.1-39.3 35.2-23.2 47.2-23.2S342.2 92 320 81.5c-16.7-7.9-38.6-16.1-71.7-17.4 2.6-.1 5.2-.2 7.8-.2 106 0 192 86 192 192C448 351.7 378 431 286.4 445.6z" />',viewBox:"0 0 512 512"},kl={name:"globe",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm106.2 314.7c-34.7 10-66.7 64.2-76.4 101.3-17.9-9.4 9.8-90.2 5.4-112.4-4.3-22.1-13-14.4-22.6-27.6-17.8-31.5.9-48.3-5.6-55.9-6.5-7.7-4.9-18.3-45-29.9-40.1-11.6-75.9-81.9-87.8-104.1-11.9-22.1 26.6-47 81.3-52.6 10.3-1 19.7-1.5 28.4-1.5 37.8.1 61.9 9 80 17.5 22.2 10.5 20.1 39.3 8.1 39.3s-35.8-16.6-47.2 23.2-40.1 19.9-59.1 39.3 24.4 37.1 33.6 49.3c9.2 12.2 33.1-.6 52.6 3.9 32.6 28.8 66.7 41 74.3 54.8 3.3 16.6 4.4 34.9-20 55.4z" />',viewBox:"0 0 512 512"},xl={name:"map-marker",content:'<path d="M256 0C158.8 0 80 78.8 80 176s176 336 176 336 176-238.8 176-336S353.2 0 256 0zm0 288c-61.9 0-112-50.1-112-112S194.1 64 256 64s112 50.1 112 112-50.1 112-112 112z" />',viewBox:"0 0 512 512"},zl={name:"map-marker-target",content:'<path d="M256 0C158.8 0 80 78.8 80 176s176 336 176 336 176-238.8 176-336S353.2 0 256 0zm0 288c-61.9 0-112-50.1-112-112S194.1 64 256 64s112 50.1 112 112-50.1 112-112 112zm48-112c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48z" />',viewBox:"0 0 512 512"},Cl={name:"pin",content:'<path d="M320 256V96c0-17.6-14.4-32-32-32h-96c-17.6 0-32 14.4-32 32v160H96v32h128v160h32V288h128v-32h-64zm-128 0V96h64v160h-64z" />',viewBox:"0 0 512 512"},Sl={name:"unpin",content:'<path d="M256 320h160c17.6 0 32-14.4 32-32v-96c0-17.6-14.4-32-32-32H256V96h-32v128H64v32h160v128h32v-64zm0-128h160v64H256v-64z" />',viewBox:"0 0 512 512"},Il={name:"share",content:'<path d="M480 432c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-10.6 2.1-20.7 5.8-30l-158.6-88.1C152.9 327.6 133.4 336 112 336c-44.2 0-80-35.8-80-80s35.8-80 80-80c21.4 0 40.9 8.4 55.2 22.1L325.8 110c-3.8-9.3-5.8-19.4-5.8-30 0-44.2 35.8-80 80-80s80 35.8 80 80-35.8 80-80 80c-22 0-41.9-8.9-56.4-23.3l-158 87.8c4.1 9.7 6.4 20.3 6.4 31.5s-2.3 21.8-6.4 31.5l158 87.8C358.1 360.9 378 352 400 352c44.2 0 80 35.8 80 80z" />',viewBox:"0 0 512 512"},Ml={name:"user",content:'<path d="M352 128c0 53-43 96-96 96s-96-43-96-96 43-96 96-96 96 43 96 96zm-96 128c-106 0-192 86-192 192 0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32 0-106-86-192-192-192z" />',viewBox:"0 0 512 512"},El={name:"inbox",content:'<path d="M384 32H128L32 288v160c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V288L384 32zM150.2 64h211.6l84 224H352l-32 64H192l-32-64H66.2l84-224z" />',viewBox:"0 0 512 512"},Ol={name:"blogger",content:'<path d="M188.9 64C119.9 64 64 119.5 64 188v136.1C64 392.5 119.9 448 188.9 448h134.4c69 0 124.7-55.5 124.7-123.9v-87.9c0-13.7-11-28.2-24.8-28.2h-21.5c-13.2 0-24.7-11.2-25.6-24 0-68.5-55.2-120-124.2-120h-63zm-4.9 96h72c13.2 0 24 10.8 24 24s-10.8 24-24 24h-72c-13.2 0-24-10.8-24-24s10.8-24 24-24zm0 144h144c13.2 0 24 10.8 24 24s-10.8 24-24 24H184c-13.2 0-24-10.8-24-24s10.8-24 24-24z" />',viewBox:"0 0 512 512"},Hl={name:"blogger-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-31 280.7c0 57.1-46.6 103.3-104.2 103.3H200.4C142.7 416 96 369.8 96 312.7V199.3C96 142.2 142.7 96 200.4 96h52.1C310 96 356 138.9 356 196c.7 10.7 10.4 20 21.4 20h18c11.5 0 20.7 12.1 20.6 23.5l1 73.2zM196 216h60c11 0 20-9 20-20s-9-20-20-20h-60c-11 0-20 9-20 20s9 20 20 20zm120 80H196c-11 0-20 9-20 20s9 20 20 20h120c11 0 20-9 20-20s-9-20-20-20z" />',viewBox:"0 0 512 512"},Nl={name:"delicious",content:'<path d="M256 32h224v224H256V32zM32 256h224v224H32V256z" />',viewBox:"0 0 512 512"},Pl={name:"delicious-box",content:'<path d="M480 448V64c0-17.7-14.3-32-32-32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32zm-224-32V256H96V96h160v160h160v160H256z" />',viewBox:"0 0 512 512"},Vl={name:"digg",content:'<path d="M96 96v64H32v160h96V96H96zm64 0v32h32V96h-32zm0 64v160h32V160h-32zm64 0v160h64v32h-64v32h96V160h-96zm128 0v160h64v32h-64v32h96V160h-96zM64 192h32v96H64v-96zm192 0h32v96h-32v-96zm128 0h32v96h-32v-96z" />',viewBox:"0 0 512 512"},Tl={name:"digg-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM160 203.5V352H64V192h64v-64h32v75.5zM212 352h-32V192h32v160zm0-192h-32v-32h32v32zm119 153.7V416h-96v-32h64v-32h-64V192h96v121.7zm117 0V416h-96v-32h64v-32h-64V192h96v121.7zM96 224h32v96H96v-96zm171 0h32v96h-32v-96zm117 0h32v96h-32v-96z" />',viewBox:"0 0 512 512"},Rl={name:"envelop",content:'<path d="M64 96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zm23.7 32L256 296.3 424.3 128c11 2.9 19.7 11.6 22.6 22.6L342.6 254.9l104.3 104.3c-2.9 11-11.6 19.7-22.6 22.6L320 277.5l-64 64-64-64L87.7 381.8c-11-2.9-19.7-11.6-22.6-22.6l104.3-104.3L65.1 150.6c2.9-11 11.6-19.7 22.6-22.6z" />',viewBox:"0 0 512 512"},Dl={name:"envelop-box",content:'<path d="m377 182.4-88.8 88.8-31.2 29-33.2-29-88.8-88.8c-7.7 2-13.8 8.1-15.8 15.8l73 73-73 73c2 7.7 8.1 13.8 15.8 15.8l73-73 49 44.8 47-44.8 73 73c7.7-2 13.8-8.1 15.8-15.8l-73-73 73-73c-2-7.7-8.1-13.8-15.8-15.8zM448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-32 329.6c0 12.4-10 22.4-22.4 22.4H118.4C106 384 96 374 96 361.6V182.4c0-12.4 10-22.4 22.4-22.4h275.2c12.4 0 22.4 10 22.4 22.4v179.2z" />',viewBox:"0 0 512 512"},Bl={name:"facebook",content:'<path d="M290 32c-59.8 0-96 32-96 96v64h-66v96h66v192h96V288h80l14-96h-94v-32c0-32 32-32 32-32h62V34.9c-7.2-.9-65.4-2.9-94-2.9z" />',viewBox:"0 0 512 512"},Al={name:"facebook-box",content:'<path d="M57.6 32C43.6 32 32 43.5 32 57.6v396.8c0 14 11.5 25.6 25.6 25.6h396.8c14 0 25.6-11.5 25.6-25.6V57.6c0-14-11.5-25.6-25.6-25.6H57.6zm315.8 65.5c24.1 0 42 2.3 42 2.3L414 155s-18.2-.2-38.1-.2c-21.5 0-24.9 9.9-24.9 26.1V224h64.1l-2.8 59H351v165h-63V283h-44v-59h44v-50.5c0-39.6 25.8-76 85.4-76z" />',viewBox:"0 0 512 512"},Ll={name:"google",content:'<path d="M268.3 33c-16.1-1-33.4 1-52 4.9s-36.4 12.8-53.2 26.5c-12.6 11-21.9 23.4-28.3 37.3-6.3 13.9-9.4 27.7-9.4 41.5 0 11.4 2.1 22.7 6.5 33.8 4.3 11.1 10.6 21.1 18.8 29.7 8.2 8.6 18.4 15.6 30.6 20.9 12.2 5.3 26.1 7.9 41.8 7.9 3.1 0 6.2-.1 9.4-.3s6.3-.5 9.4-.9c-1.6 3.5-2.9 7-4.1 10.3-1.2 3.3-1.8 7.6-1.8 12.6 0 9 1.9 16.5 5.6 22.6s7.7 11.9 12 17.4c-6.7.4-14.5 1-23.5 1.8s-18.6 2.1-28.8 4.1-20.5 4.6-30.9 7.9-20.1 7.7-29.1 13.2c-17.2 10.2-29.1 22-35.6 35.6-6.5 13.6-9.7 25.6-9.7 36.2 0 11 2.6 21.5 7.7 31.5s12.9 18.9 23.5 26.7c10.6 7.9 23.8 14.1 39.7 18.8 15.9 4.7 34.4 7 55.5 7 25.1 0 47.3-3.2 66.7-9.7s35.6-14.9 48.5-25.3 22.7-22.3 29.4-35.6c6.7-13.3 10-26.9 10-40.6 0-10.2-1.4-19.3-4.2-27.1-2.7-7.9-6.4-14.9-10.8-21.2-4.5-6.3-9.8-12.2-15.9-17.7s-12.3-11-18.5-16.5l-21.1-16.5c-3.2-2.8-6.5-6-10-9.7s-5.3-8.9-5.3-15.6c0-6.7 1.8-12.2 5.3-16.5s7.2-8.4 11.2-12.4c6.2-4.7 12.4-9.7 18.2-15 5.9-5.3 11.2-11.2 15.9-17.6 4.7-6.5 8.4-13.8 11.2-22.1 2.7-8.2 4.1-17.9 4.1-28.8s-1.5-20.8-4.7-29.5c-3.1-8.6-6.8-16.2-11.2-22.7-4.3-6.5-8.8-12-13.5-16.5S315.3 52 315.3 52H352l31.7-20-115.4 1zm-37.1 17.8c12.2 0 22.8 3.6 32 10.9s17 16.4 23.2 27.5c6.2 11 11 22.8 14.1 35.4s4.7 24.2 4.7 34.8c0 5.5-.8 12.4-2.3 20.7s-5.7 15.7-12.4 22.4c-4.7 4.7-10.7 8.7-18 11.8-7.3 3.2-14.6 4.7-22 4.7-12.5 0-23.4-3.6-32.6-10.9-9.2-7.3-16.9-16.3-22.9-26.8-6.1-10.6-10.6-22-13.5-34.2s-4.4-23.2-4.4-33.1c0-7.9.9-15.5 2.7-23S185 76.6 190 70.3c4.7-5.9 10.8-10.6 18.2-14.1 7.5-3.6 15.1-5.4 23-5.4zM260 314h7.3c1.8 0 3.8.2 6.2.6 11 7.8 20.6 14.9 28.8 21.2 8.2 6.2 14.9 12.4 20 18.2 5.1 5.9 8.9 11.8 11.5 18 2.5 6 3.8 12.8 3.8 20.3 0 18.4-7.3 33.6-22 45.6-14.7 11.9-36.2 17.9-64.4 17.9-31.8 0-57-6.7-75.6-20s-27.9-30.6-27.9-51.7c0-10.6 2.1-19.4 6.2-26.5 4.1-7 8.9-12.9 14.4-17.6s11.1-8.3 16.8-10.8c5.7-2.6 10.1-4.4 13.2-5.6 6.3-2 12.7-3.6 19.4-5s12.9-2.4 18.8-3c5.9-.6 11-1 15.3-1.2 4.2-.2 7-.3 8.2-.4z" />',viewBox:"0 0 512 512"},_l={name:"google-box",content:'<path d="M212.6 236.1c5.1-5.1 8.2-10.8 9.4-17.1s1.8-11.6 1.8-15.8c0-8.1-1.2-17-3.6-26.6s-6-18.6-10.8-27-10.7-15.4-17.7-21-15.2-8.4-24.4-8.4c-6 0-11.8 1.3-17.5 4.1s-10.3 6.3-13.9 10.8c-3.9 4.8-6.5 10-7.8 15.7s-2 11.6-2 17.6c0 7.5 1.1 15.9 3.4 25.2 2.3 9.3 5.7 18 10.3 26.1s10.5 14.9 17.5 20.5c7 5.5 15.3 8.3 24.9 8.3 5.7 0 11.3-1.2 16.8-3.6s10-5.2 13.6-8.8zM448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM270.9 394.1c-5.1 10.2-12.6 19.3-22.4 27.2s-22.2 14.4-37 19.4c-14.8 4.9-31.8 7.4-50.9 7.4-16.2 0-30.3-1.8-42.4-5.4s-22.2-8.4-30.3-14.4-14.1-12.8-18-20.4-5.9-15.6-5.9-24c0-8.1 2.5-17.2 7.4-27.6s14-19.4 27.2-27.2c6.8-4.2 14.3-7.6 22.2-10.1s15.8-4.6 23.6-6c7.8-1.5 15.1-2.5 22-3.1s12.9-1.1 18-1.3c-3.3-4.2-6.4-8.6-9.2-13.3s-4.3-10.4-4.3-17.3c0-3.9.4-7.1 1.3-9.7s1.9-5.2 3.1-7.9c-2.4.3-4.8.5-7.2.7s-4.8.2-7.2.2c-12 0-22.6-2-31.9-6-9.3-4-17.1-9.3-23.4-15.9-6.3-6.6-11.1-14.1-14.3-22.7s-4.9-17.2-4.9-25.8c0-10.5 2.4-21 7.2-31.6s12-20.1 21.6-28.5c12.8-10.5 26.4-17.2 40.6-20.2s27.5-4.5 39.7-4.6H288l-28.7 16h-27.8c2.7 1.9 5.8 4.7 9.4 8.1 3.6 3.5 7 7.6 10.3 12.6s6.1 10.7 8.5 17.3 3.6 14.1 3.6 22.5-1.1 15.7-3.1 22c-2.1 6.3-4.9 11.9-8.5 16.9s-7.6 9.4-12.1 13.5-9.2 7.9-13.9 11.5c-3 3-5.9 6.1-8.5 9.4s-4 7.5-4 12.6 1.3 9.1 4 11.9 5.2 5.3 7.6 7.4l16.2 12.6c4.8 4.2 9.5 8.4 14.1 12.6 4.6 4.2 8.7 8.7 12.1 13.5 3.5 4.8 6.2 10.1 8.3 16.2s3.2 12.9 3.2 20.7c-.1 10.2-2.6 20.5-7.8 30.8zm-34.1-42.6c-3.9-4.5-9-9.1-15.3-13.9s-13.6-10.2-22-16.2c-1.8-.3-3.4-.4-4.7-.4h-5.6c-.9 0-3 .1-6.3.2s-7.2.4-11.7.9-9.3 1.2-14.3 2.3-10 2.3-14.8 3.8c-2.4.9-5.8 2.3-10.1 4.3s-8.6 4.7-12.8 8.3-7.8 8.1-11 13.5c-3.1 5.4-4.7 12.1-4.7 20.2 0 16.2 7.1 29.3 21.3 39.5s33.4 15.3 57.7 15.3c21.5 0 37.9-4.5 49.2-13.7s16.8-20.7 16.8-34.8c0-5.7-1-10.8-2.9-15.5s-4.9-9.3-8.8-13.8z" />',viewBox:"0 0 512 512"},Fl={name:"google-plus",content:'<path d="M204.3 33c-16.1-1-33.4 1-52 4.9s-36.4 12.8-53.2 26.5c-12.6 11-22 23.4-28.3 37.3s-9.4 27.7-9.4 41.5c0 11.4 2.1 22.7 6.5 33.8 4.3 11.1 10.6 21.1 18.8 29.7 8.2 8.6 18.4 15.6 30.6 20.9 12.2 5.3 26.1 7.9 41.8 7.9 3.1 0 6.2-.1 9.4-.3s6.3-.5 9.4-.9c-1.6 3.5-2.9 7-4.1 10.3-1.2 3.3-1.8 7.6-1.8 12.6 0 9 1.9 16.5 5.6 22.6s7.7 11.9 12 17.4c-6.7.4-14.5 1-23.5 1.8s-18.6 2.1-28.8 4.1-20.5 4.6-30.9 7.9-20.1 7.7-29.1 13.2c-17.2 10.2-29.1 22-35.6 35.6-6.5 13.6-9.7 25.6-9.7 36.2 0 11 2.6 21.5 7.7 31.5s12.9 18.9 23.5 26.7C73.8 462 87 468.3 102.9 473s34.4 7 55.6 7c25.1 0 47.3-3.2 66.7-9.7s35.6-14.9 48.5-25.3 22.7-22.3 29.4-35.6c6.7-13.3 10-26.9 10-40.6 0-10.2-1.4-19.3-4.2-27.1-2.7-7.9-6.4-14.9-10.8-21.2-4.5-6.3-9.8-12.2-15.9-17.7s-12.3-11-18.5-16.5l-21.2-16.5c-3.2-2.8-6.5-6-10-9.7s-5.3-8.9-5.3-15.6c0-6.7 1.8-12.2 5.3-16.5s7.2-8.4 11.2-12.4c6.2-4.7 12.4-9.7 18.2-15 5.9-5.3 11.2-11.2 15.9-17.6 4.7-6.5 8.4-13.8 11.2-22.1 2.7-8.2 4.1-17.9 4.1-28.8s-1.5-20.8-4.7-29.5c-3.1-8.6-6.8-16.2-11.2-22.7-4.3-6.5-8.8-12-13.5-16.5S251.3 52 251.3 52H288l31.7-20-115.4 1zm-37 17.8c12.2 0 22.8 3.6 32 10.9s17 16.4 23.2 27.5c6.2 11 11 22.8 14.1 35.4s4.7 24.2 4.7 34.8c0 5.5-.8 12.4-2.3 20.7-1.6 8.3-5.7 15.7-12.4 22.4-4.7 4.7-10.7 8.7-18 11.8-7.3 3.2-14.6 4.7-22 4.7-12.5 0-23.4-3.6-32.6-10.9-9.2-7.3-16.9-16.3-22.9-26.8-6.1-10.6-10.6-22-13.5-34.2s-4.4-23.2-4.4-33.1c0-7.9.9-15.5 2.7-23S121 76.6 126 70.3c4.7-5.9 10.8-10.6 18.2-14.1 7.5-3.6 15.2-5.4 23.1-5.4zM196.1 314h7.3c1.8 0 3.8.2 6.2.6 11 7.8 20.6 14.9 28.8 21.2 8.2 6.2 14.9 12.4 20 18.2 5.1 5.9 8.9 11.8 11.5 18 2.5 6 3.8 12.8 3.8 20.3 0 18.4-7.3 33.6-22 45.6-14.7 11.9-36.2 17.9-64.4 17.9-31.8 0-57-6.7-75.6-20s-27.9-30.6-27.9-51.7c0-10.6 2.1-19.4 6.2-26.5s8.9-12.9 14.4-17.6 11.1-8.3 16.8-10.8c5.7-2.6 10.1-4.4 13.2-5.6 6.3-2 12.7-3.6 19.4-5s12.9-2.4 18.8-3c5.9-.6 11-1 15.3-1.2 4.2-.2 6.9-.3 8.2-.4zM384 32v64h-64v32h64v64h32v-64h64V96h-64V32h-32z" />',viewBox:"0 0 512 512"},jl={name:"google-plus-box",content:'<path d="M212.6 236.1c5.1-5.1 8.2-10.8 9.4-17.1s1.8-11.6 1.8-15.8c0-8.1-1.2-17-3.6-26.6s-6-18.6-10.8-27-10.7-15.4-17.7-21-15.2-8.4-24.4-8.4c-6 0-11.8 1.3-17.5 4.1s-10.3 6.3-13.9 10.8c-3.9 4.8-6.5 10-7.8 15.7s-2 11.6-2 17.6c0 7.5 1.1 15.9 3.4 25.2 2.3 9.3 5.7 18 10.3 26.1s10.5 14.9 17.5 20.5c7 5.5 15.3 8.3 24.9 8.3 5.7 0 11.3-1.2 16.8-3.6s10-5.2 13.6-8.8zM448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM270.9 394.1c-5.1 10.2-12.6 19.3-22.4 27.2s-22.2 14.4-37 19.4c-14.8 4.9-31.8 7.4-50.9 7.4-16.2 0-30.3-1.8-42.4-5.4s-22.2-8.4-30.3-14.4-14.1-12.8-18-20.4-5.9-15.6-5.9-24c0-8.1 2.5-17.2 7.4-27.6s14-19.4 27.2-27.2c6.8-4.2 14.3-7.6 22.2-10.1s15.8-4.6 23.6-6c7.8-1.5 15.1-2.5 22-3.1s12.9-1.1 18-1.3c-3.3-4.2-6.4-8.6-9.2-13.3s-4.3-10.4-4.3-17.3c0-3.9.4-7.1 1.3-9.7s1.9-5.2 3.1-7.9c-2.4.3-4.8.5-7.2.7s-4.8.2-7.2.2c-12 0-22.6-2-31.9-6-9.3-4-17.1-9.3-23.4-15.9-6.3-6.6-11.1-14.1-14.3-22.7s-4.9-17.2-4.9-25.8c0-10.5 2.4-21 7.2-31.6s12-20.1 21.6-28.5c12.8-10.5 26.4-17.2 40.6-20.2s27.5-4.5 39.7-4.6H288l-28.7 16h-27.8c2.7 1.9 5.8 4.7 9.4 8.1 3.6 3.5 7 7.6 10.3 12.6s6.1 10.7 8.5 17.3 3.6 14.1 3.6 22.5-1.1 15.7-3.1 22c-2.1 6.3-4.9 11.9-8.5 16.9s-7.6 9.4-12.1 13.5-9.2 7.9-13.9 11.5c-3 3-5.9 6.1-8.5 9.4s-4 7.5-4 12.6 1.3 9.1 4 11.9 5.2 5.3 7.6 7.4l16.2 12.6c4.8 4.2 9.5 8.4 14.1 12.6 4.6 4.2 8.7 8.7 12.1 13.5 3.5 4.8 6.2 10.1 8.3 16.2s3.2 12.9 3.2 20.7c-.1 10.2-2.6 20.5-7.8 30.8zM448 192h-64v64h-32v-64h-64v-32h64V96h32v64h64v32zM236.8 351.5c-3.9-4.5-9-9.1-15.3-13.9s-13.6-10.2-22-16.2c-1.8-.3-3.4-.4-4.7-.4h-5.6c-.9 0-3 .1-6.3.2s-7.2.4-11.7.9-9.3 1.2-14.3 2.3-10 2.3-14.8 3.8c-2.4.9-5.8 2.3-10.1 4.3s-8.6 4.7-12.8 8.3-7.8 8.1-11 13.5c-3.1 5.4-4.7 12.1-4.7 20.2 0 16.2 7.1 29.3 21.3 39.5s33.4 15.3 57.7 15.3c21.5 0 37.9-4.5 49.2-13.7s16.8-20.7 16.8-34.8c0-5.7-1-10.8-2.9-15.5s-4.9-9.3-8.8-13.8z" />',viewBox:"0 0 512 512"},Kl={name:"linkedin",content:'<path d="M112 32c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zM64 160v288h96V160H64zm128 0v288h96V288c0-32 32-32 32-32s32 0 32 32v160h96V290.9c0-66.5-13.6-130.9-96-130.9-36.2 0-62.9 32-64 44.9V160h-96z" />',viewBox:"0 0 512 512"},Wl={name:"linkedin-box",content:'<path d="M448 32H64c-17.6 0-32 14.4-32 32v384c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32zM160 416H96V192h64v224zm-32-256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm288 256h-64V288c0-17.7-14.3-32-32-32s-32 14.3-32 32v128h-64V192h64v39.7c13.2-18.1 33.4-39.7 56-39.7 39.8 0 72 35.8 72 80v144z" />',viewBox:"0 0 512 512"},Ul={name:"myspace",content:'<path d="M400 64c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80zm-176 64c-35.4 0-64 28.6-64 64s28.6 64 64 64 64-28.6 64-64-28.6-64-64-64zM80 192c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm320 64c-44.2 0-80 36.1-80 80.5V448h160V336.5c0-44.5-35.8-80.5-80-80.5zm-176 32c-35.4 0-64 31.5-64 70.3V448h128v-89.7c0-38.8-28.6-70.3-64-70.3zM80 320c-26.5 0-48 21.8-48 48.7V448h96v-79.3c0-26.9-21.5-48.7-48-48.7z" />',viewBox:"0 0 512 512"},ql={name:"myspace-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM128 416H64v-63.5c0-17.9 14.3-32.5 32-32.5s32 14.5 32 32.5V416zM96 288c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 128h-96v-75.3c0-29.1 21.5-52.7 48-52.7s48 23.6 48 52.7V416zm-48-160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm208 160H288v-92.9c0-37.1 27.2-67.1 64-67.1s64 30 64 67.1V416zm-64-192c-35.4 0-64-28.6-64-64s28.6-64 64-64 64 28.6 64 64-28.6 64-64 64z" />',viewBox:"0 0 512 512"},$l={name:"pinterest",content:'<path d="M250.7 32C126.6 32 64 119.7 64 192.7c0 44.3 17 83.6 53.5 98.3 6 2.4 11.4.1 13.1-6.4 1.2-4.5 4.1-15.9 5.3-20.7 1.8-6.5 1.1-8.7-3.7-14.3-10.5-12.2-17.2-28.1-17.2-50.5 0-65.1 49.4-123.3 128.6-123.3 70.2 0 108.7 42.2 108.7 98.6 0 74.2-33.3 136.8-82.8 136.8-27.3 0-47.8-22.2-41.2-49.6 7.9-32.6 23.1-67.8 23.1-91.3 0-21.1-11.5-38.7-35.2-38.7-27.9 0-50.4 28.5-50.4 66.6 0 24.3 8.3 40.7 8.3 40.7s-28.6 119.3-33.6 140.2c-10 41.6-1.5 92.7-.8 97.8.5 3 4.4 3.7 6.2 1.5 2.6-3.3 35.9-43.8 47.2-84.2 3.2-11.4 18.4-70.8 18.4-70.8 9.1 17.1 35.6 32.1 63.8 32.1 84 0 141-75.4 141-176.4C416 103 350.3 32 250.7 32z" />',viewBox:"0 0 512 512"},Gl={name:"pinterest-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM276.6 327.3c-19.8 0-38.5-10.8-44.9-22.9 0 0-10.7 42.4-12.9 50.5-8 28.9-31.4 57.8-33.2 60.2-1.3 1.6-4.1 1.1-4.4-1.1-.5-3.7-6.5-40.1.5-69.9 3.5-14.9 23.6-100.2 23.6-100.2s-5.9-11.7-5.9-29.1c0-27.2 15.8-47.6 35.5-47.6 16.7 0 24.8 12.5 24.8 27.6 0 16.8-10.7 41.9-16.2 65.2-4.6 19.5 9.8 35.4 29 35.4 34.8 0 58.3-44.7 58.3-97.7 0-40.3-27.1-70.4-76.5-70.4-55.7 0-90.5 41.6-90.5 88 0 16 4.7 27.3 12.1 36.1 3.4 4 3.9 5.6 2.6 10.2-.9 3.4-2.9 11.5-3.7 14.8-1.2 4.6-5 6.3-9.2 4.6-25.6-10.4-37.6-38.5-37.6-70.2C128 158.6 172 96 259.4 96c70.2 0 116.4 50.8 116.4 105.3-.1 72.1-40.2 126-99.2 126z" />',viewBox:"0 0 512 512"},Zl={name:"reddit",content:'<path d="M420.3 33c-7 0-14.5 1-22.4 3h-1.7c-12.4 4.8-21.9 12.3-28.8 22.5-17-7-34-10.4-50.7-10.4-6.3 0-12.6.6-19.1 1.9H296c-8.8 2.1-16.5 5.8-23.3 11s-12.4 11.6-16.6 19.1c-5.3 8.7-8.9 31.3-10.5 41.1-1.7 9.8-2.6 25-2.6 34.7-20.9 1.5-41.8 4.5-62.8 9.1s-40.6 11.9-59 21.9c-1.3.4-2.5.9-3.5 1.3s-2 .9-2.9 1.3c-6.2-4.5-13-8-20.5-10.6-7.8-2.6-16.1-3.9-24.9-3.9h-5.8c-8.7 0-16.7 1.6-24.1 4.8s-14.1 7.7-20.3 13.4c-5.8 5.8-10.3 12.2-13.9 19.4-3.6 7.3-5.3 14.8-5.3 22.7.4 10.8 4.4 21.3 11.8 31.4 5.7 8.3 13.8 15.4 24.3 21.1-.5 2.1-.7 4.4-1 6.8-.2 2.5-.3 4.8-.3 6.9 0 10 1.5 20 4.5 30.1 3 10.1 7.4 19.4 13.1 28.1 10.9 16.6 24.5 30.5 40.9 41.6 16.4 11 33.8 20.2 52.1 27.2 17.5 6.6 35.5 11.6 54 14.8 18.6 3.3 37.4 5 56.6 5 12.5 0 25.1-.8 37.5-2.4 12.5-1.6 25-3.7 37.6-6.3 23.2-5.5 45.5-13.9 66.8-25.1s39.4-26 54.3-44.3c17.1-20.5 25.6-43.4 25.6-68.8 0-2.6-.1-5.1-.4-7.5-.3-2.4-.5-4.7-.9-6.8 10-4.9 18.3-11.9 24.9-21.1 7.1-9.6 10.6-20.3 10.6-32v-3c-1.2-13.4-6.8-25.1-16.3-34.9-9.8-10-21.2-16.7-34.2-20.1h-.6c-6-1.3-11.6-1.9-16.9-1.9-14.1-.2-26.6 3.2-37.4 10.2-2.3 1.1-5.2 2.8-8.6 5.4-.8-.9-1.8-1.3-2.6-1.3l-.7-.6c-18.2-9.6-37.5-16.9-57.7-21.8-20.1-4.9-40.6-8-61.6-9.3 0-7.7.7-34.2 1.8-41.9s3.7-14.8 7.5-21.4c4.9-9.6 13.4-15.1 25.6-16.4h5.8c7.4 0 14.7 1.1 21.7 3 7.1 2 14.1 4.3 21.2 6.9v1.9c0 7.5 1.5 14.2 4.5 20.3 2.9 6 6.9 11.6 11.8 16.5 10.3 10.4 22.8 16.3 37.7 17.5h7.3c14.9 0 28.1-4.8 39.8-14.4 5.3-4.4 9.7-9.6 13.1-15.5s5.5-12.5 6.4-20c.4-1.3.6-3.2.6-5.8.2-11-3.3-21.4-10.3-30.9-7.1-9.2-15.8-15.7-26.2-19.5h-.5c-6.5-2.7-14.1-4.1-22.9-4zm1.2 27.4c7.2.1 13.2 2.7 18.3 7.7C446 73 449 79.2 449 86.7V88c-.8 6.8-3.9 12.7-9.3 17.6-5.5 4.9-11.9 7.4-19.1 7.4h-1.9c-7.1 0-13.4-2.5-19.4-7.4-5.5-4.7-8.3-10.6-8.3-17.6v-1.3c0-6.6 2.1-12.1 6.5-16.6 3.8-4.7 8.9-7.7 15.1-8.9 2-.4 4.4-.6 7.5-.6.4-.2.9-.2 1.4-.2zm-165 125.7c10 0 20.3.5 30.8 1.6 10.6 1.1 20.9 2.7 30.8 4.8l9.9 2.6 10.2 2.6c17.5 4.9 34.1 11.9 49.9 21.1 15.8 9.2 29 20.8 40 34.9 5.1 7.3 9.2 14.9 12.3 23 3.1 8.1 4.6 16.5 4.6 25.3v7.6c0 2.3-.4 4.6-1.3 6.7-2.8 12.4-8.5 24-17.3 34.9-7.4 10-17 19.2-28.8 27.5-17.5 11.7-36.4 20.7-56.9 26.9-20.4 6.2-41.3 10.1-62.7 11.8-3.6.5-7.3.6-10.8.6h-10.8c-21.3 0-42.4-2.2-63.1-6.6-20.8-4.4-40.3-11.4-58.6-21l-4.5-2.6-4.8-2.2c-13-8.3-24.4-17.5-34.5-27.5-10.2-11.5-17.2-24-21.1-37.4-1.7-5.2-2.6-11.2-2.6-18.2 0-18.1 5.6-34.2 16.9-48.3 11-14.1 24.4-25.8 40.1-35.2s32.2-16.5 49.7-21.4c26.2-7.7 53.7-11.6 82.6-11.5zM65.7 204h3.2c3.2 0 6.1.4 8.8 1.3 2.6.9 5.4 1.7 8.4 2.6-8.7 7-16.5 14.6-23.5 22.7-6.9 8.1-12.8 17-17.7 26.6-2.8-2-5.2-4.8-7.4-8.6-3-3.5-4.5-7.8-4.5-13.1v-2.1c.7-7.7 4-14.4 10.3-20.2 7.1-5.3 14.6-8.3 22.4-9.2zm377.6-.4c6.4 0 12.7 1.5 18.9 4.4 6.1 3.5 10.8 7.8 13.7 13.2 2.1 4.5 3.2 8.6 3.2 12.5 0 5.3-1.2 10.1-3.8 14.4-2.4 3.6-5 6.7-8 9.2-4.7-10-10.6-19.1-17.6-27.2-7-8.1-14.9-15.6-23.6-22.7 5.3-2.6 11-3.8 17.2-3.8zm-107.6 43.2c-3.6 0-7.4.7-11.2 1.9-6.2 2.2-11.2 5.9-15 11.2-4 4.7-6.1 10.3-6.1 16.9 0 2.4.2 4.2.6 5.5v.6c1.3 7.5 5.1 13.1 11.2 17 6.2 4.7 13.2 7 21.1 7 2.5 0 5.5-.6 9-1.9h.9c5.6-1.1 11-4.5 16.3-10.2 3.8-5.3 5.8-11.4 5.8-18 0-3-.6-6.2-2-9.6-1.6-6.2-5.6-11.3-11.8-15.3-5.9-3.3-12.2-5.1-18.8-5.1zm-158.8-.1c-2.6 0-4.7.2-6.3.7-5.8.9-10.8 3.1-15.2 6.9-4.4 3.7-7.4 8.3-9.1 13.6-.9 1.2-1.3 2.7-1.3 4.1v4.2c0 7 1.9 13.2 5.8 18.6 4.2 5.1 9.6 8.5 16.3 10.2 3 1.2 6.3 1.9 9.9 1.9 8.3 0 15.8-2.8 22.4-8.3 7.1-5.7 10.6-12.8 10.6-21.1v-2c0-7.9-3.3-14.6-9.9-20.1-7.2-5.8-14.9-8.7-23.2-8.7zm-1.6 94c-1.2 0-3.2.5-5.7 1.3h-.8c-2.6.8-5 2.7-7.3 5.7-1.2 2.1-1.9 4.8-1.9 8 0 2.6.6 5.2 1.9 8 1.3 2.2 3.2 3.9 5.8 5.1 24.5 15.4 51.4 23.1 80.7 23.1h4.8c14.1 0 27.8-1.3 41-4s26.1-6.9 38.5-12.6c1.7-.9 3.5-1.7 5.4-2.6 1.9-.8 3.9-1.9 6-3.2 2.2-.9 4-2.1 5.5-3.8 2.1-2.1 3.3-4.4 3.8-6.8.4-.8.7-1.9.7-3.2 0-1.3-.4-3.2-1.3-5.8-1.3-3.2-3.5-5.4-6.4-6.7-3.3-1.7-6.2-2.6-8.6-2.6-2.5 0-5.3.6-8 2-23.2 13-48.6 19.6-76 19.8-20.4 0-39.5-3.9-57-11.8-2.5-.9-5.7-2.9-9.2-6.1-.9-.4-1.8-.8-2.8-1.3-1-.5-2.2-.9-3.3-1.3-2.7-.8-4.6-1.3-5.8-1.2z" />',viewBox:"0 0 512 512"},Yl={name:"reddit-box",content:'<path d="M111.1 244.9c-5.2 6.1-9.6 12.7-13.2 19.9-2.1-1.5-3.9-3.6-5.5-6.5-2.3-2.6-3.4-5.9-3.4-9.8v-1.4c.5-5.8 3-10.8 7.7-15.1 5.3-4 10.9-6.3 16.8-7h2.4c2.4 0 4.6.3 6.6 1 2 .6 4.1 1.3 6.3 1.9a124.3 124.3 0 0 0-17.7 17zm252.1-94.3c4.4 3.7 9.1 5.4 14.4 5.4h1.4c5.3 0 10-1.8 14.2-5.4 4-3.7 6.3-8 6.9-13.1v-1c0-5.5-2.3-10.1-6.9-13.8-3.8-3.8-8.3-5.6-13.6-5.7h-1.1c-2.2 0-4.1.1-5.5.5-4.6.9-8.4 3.2-11.2 6.6-3.3 3.4-4.8 7.4-4.8 12.4v1c0 5.1 2 9.5 6.2 13.1zM394.5 279c2.3 6.1 3.5 12.4 3.5 19v5.7c0 1.8-.3 3.4-1 5-2.1 9.3-6.4 18-13 26.2-5.6 7.5-12.8 14.4-21.6 20.6-13.1 8.8-27.3 15.5-42.7 20.2-15.4 4.7-31 7.6-47 8.9-2.7.4-5.5.5-8.1.5h-8.1c-16 0-31.8-1.6-47.4-4.9s-30.2-8.5-44-15.7l-3.4-1.9-3.6-1.7c-9.8-6.2-18.3-13.1-25.8-20.6-7.7-8.6-12.9-18-15.8-28.1-1.3-3.9-1.9-8.4-1.9-13.7 0-13.6 4.2-25.7 12.7-36.3 8.3-10.6 18.3-19.3 30.1-26.4 11.8-7 24.2-12.4 37.3-16.1 19.6-5.7 40.2-8.7 61.8-8.7h.1c7.5 0 15.2.4 23.1 1.2s15.6 2 23.1 3.6l7.4 1.9 7.7 1.9c13.1 3.7 25.6 9 37.4 15.8 11.9 6.9 21.8 15.6 30 26.2 3.8 5.6 6.9 11.4 9.2 17.4zm-205.9 21.9c2.3.9 4.7 1.4 7.5 1.4 6.3 0 12-2.1 16.9-6.3 5.3-4.3 8-9.7 8-15.9v-1.5c0-5.9-2.5-11-7.5-15.2-5.3-4.3-11.2-6.6-17.4-6.6-1.9 0-3.5.1-4.7.5-4.3.6-8.2 2.3-11.5 5.2-3.3 2.8-5.5 6.3-6.9 10.3-.7.9-1 2-1 3.1v3.1c0 5.3 1.4 10 4.3 14 3.3 4 7.3 6.7 12.3 7.9zm139.5 38.2c0-1-.3-2.4-1-4.3-1-2.4-2.6-4.1-4.7-4.9-2.5-1.3-4.6-1.9-6.4-1.9-1.9 0-4 .5-5.9 1.5-17.2 9.6-36 14.5-56.2 14.7-15.1 0-29.3-3-42.2-8.8-1.9-.6-4.2-2.2-6.8-4.6-.6-.3-1.3-.6-2.1-1s-1.6-.6-2.4-1c-1.9-.6-3.4-1-4.3-1v.1c-.9 0-2.4.4-4.3 1h-.5c-1.9.6-3.7 2-5.4 4.3-.9 1.6-1.4 3.6-1.4 5.9 0 1.9.5 3.9 1.4 5.9 1 1.6 2.4 2.9 4.3 3.8 18.2 11.4 38.1 17.1 59.8 17.1h3.6c10.5 0 20.6-1 30.4-3 9.8-2 19.3-5.1 28.5-9.4 1.2-.6 2.6-1.3 4.1-1.9 1.4-.6 3-1.4 4.5-2.4 1.6-.7 3-1.6 4.1-2.9 1.6-1.6 2.5-3.3 2.9-5-.2-.4 0-1.2 0-2.2zm12.2-59.2c0-2.2-.5-4.6-1.5-7.2-1.2-4.6-4.2-8.4-8.8-11.5-4.5-2.6-9.2-3.9-14.1-3.9-2.7 0-5.5.5-8.4 1.4-4.6 1.6-8.4 4.4-11.3 8.4-3 3.5-4.6 7.8-4.6 12.7 0 1.8.2 3.1.4 4.1v.5c1 5.6 3.8 9.8 8.4 12.7 4.6 3.5 9.9 5.3 15.8 5.3 1.9 0 4.1-.5 6.7-1.4h.7c4.2-.8 8.2-3.4 12.2-7.7 3-3.9 4.5-8.4 4.5-13.4zM480 64v384c0 17.6-14.4 32-32 32H64c-17.6 0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h384c17.6 0 32 14.4 32 32zm-32.3 181c-.9-10.3-5.2-19.1-12.4-26.6-7.4-7.6-16.2-12.7-26-15.4h-.1c-4.5-1-8.7-1.4-12.7-1.4-10.6-.2-19.8 2.4-28 7.7-1.7.8-3.9 2.1-6.5 4.1-.6-.6-1.3-1-1.9-1l-.5-.5c-13.7-7.2-28-12.7-43.1-16.3-15.1-3.7-30.4-6-46.1-7 0-5.8.5-25.5 1.4-31.3.9-5.8 2.8-11.1 5.6-16.1 3.6-7.2 10.1-11.3 19.1-12.3h4.3c5.6 0 11 .8 16.3 2.3s10.6 3.2 15.9 5.2v1.5c0 5.6 1.1 10.8 3.4 15.3 2.2 4.5 5.2 8.7 8.8 12.5 7.7 7.8 17.1 12.3 28.4 13.3h5.5c11.2 0 21.1-3.6 30.1-10.9 4-3.3 7.3-7.2 9.8-11.7 2.6-4.4 4.2-9.4 4.8-15.1.3-1 .5-2.4.5-4.3.2-8.3-2.4-16.2-7.7-23.4-5.3-6.9-11.9-11.9-19.7-14.7h-.5c-4.9-2.3-10.7-3.4-17.3-3.4-5.4 0-11.1.8-17.1 2.4h-.4c-9.7 3.8-17.1 9.7-22.5 17.6-13.3-5.4-26.5-8-39.5-8-4.9 0-9.9.5-14.9 1.4h.9c-6.6 1.6-12.4 4.4-17.5 8.3-5.1 3.9-9.3 8.7-12.5 14.3-4 6.5-6.6 23.5-7.9 30.9-1.3 7.3-1.9 18.7-1.9 26-15.7 1.1-31.3 3.4-47.2 6.8-15.7 3.5-30.4 8.9-44.2 16.4-1 .3-1.8.7-2.6 1s-1.5.6-2.2 1c-4.7-3.4-9.7-6-15.4-7.9-5.9-1.9-12.1-2.9-18.6-2.9h-4.3c-6.5 0-12.6 1.2-18.1 3.6s-10.6 5.8-15.2 10.1c-4.3 4.3-7.8 9.2-10.4 14.5-2.7 5.4-3.9 11-3.9 16.9.3 8.1 3.3 16 8.9 23.5 4.3 6.2 10.4 11.5 18.2 15.8-.4 1.6-.6 3.3-.7 5.1-.1 1.8-.2 3.6-.2 5.2 0 7.5 1.1 15 3.4 22.6 2.3 7.5 5.5 14.6 9.8 21.1 8.1 12.5 18.4 22.9 30.7 31.2s25.3 15.1 39.1 20.4c13.1 5 26.6 8.7 40.5 11.1 13.9 2.5 28.1 3.7 42.4 3.7 9.4 0 18.8-.6 28.1-1.8 9.4-1.2 18.8-2.8 28.2-4.7 17.4-4.1 34.1-10.4 50.2-18.8s29.5-19.5 40.8-33.2c12.8-15.4 19.2-32.6 19.2-51.7 0-1.9-.1-3.8-.3-5.6-.2-1.8-.4-3.6-.7-5.1 7.5-3.7 13.7-8.9 18.7-15.8 5.3-7.2 7.9-15.2 7.9-24V245h-.2zm-37.1-17c-4.7-2.2-9.4-3.3-14.1-3.3-4.6 0-8.9.9-12.9 2.9 6.5 5.3 12.5 10.9 17.7 17 5.3 6.1 9.7 12.9 13.2 20.4 2.2-1.9 4.2-4.2 6-6.9 1.9-3.2 2.9-6.8 2.9-10.8 0-2.9-.9-6-2.4-9.4-2.3-4-5.8-7.3-10.4-9.9z" />',viewBox:"0 0 512 512"},Jl={name:"stumble-upon",content:'<path d="m288.1 256 26.8 8.4L352 256v64c1.1 18.9 12.8 32 32 32s30.9-13.1 32-32v-64h64v64s0 96-96 96-96-96-96-96l.1-64zm26.8-23.2L288 224v-32s0-32-32-32-32 32-32 32v128s0 96-96 96-96-96-96-96v-64h64v64c1.1 18.9 12.8 32 32 32 19.1 0 30.9-13.2 32.1-32h-.1V192s0-96 96-96 96 96 96 96v32l-37.1 8.8z" />',viewBox:"0 0 512 512"},Xl={name:"stumble-upon-box",content:'<path d="M64 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H64zm191.5 96.3c82.5 0 82.5 87.3 82.5 87.3v8.4l-31.9 8-23.1-8v-8.6s0-29.2-27.5-29.2-27.5 29.2-27.5 29.2v81.5s0 87-82 87-82-87-82-87V256h55v41h-.9c.9 17.2 11 29.1 27.5 29.1s26.6-12 27.6-29.1h-.2v-81.4s0-87.3 82.5-87.3zM283.1 256l23 7.6L338 256v40.7c.9 17.2 11 29.1 27.5 29.1s26.6-11.9 27.5-29.1V256h55v40.7s0 87.3-82.5 87.3-82.5-87.3-82.5-87.3l.1-40.7z" />',viewBox:"0 0 512 512"},Ql={name:"tell-a-friend",content:'<path d="M383.5 64c-31.7 0-57.5 24-57.5 53.5v2.1c0 14.9-12.2 30.3-28.5 33.3-5.5.5-9.9 4.8-9.9 10.1 0 2.6 1.1 5 2.9 6.8 13.3 10.5 28.3 22.2 92.5 22.2s80.1-11.7 93.3-22.2c1.8-1.8 2.9-4.1 2.9-6.8 0-5.3-4.3-9.6-9.9-10.1-16.3-3-28.5-18.4-28.5-33.3v-2.1c0-29-25-52.7-55.9-53.5h-.5.2-1.1c.2 0 0 0 0 0zm.6 0h.9-.9zM128 224c-64.9 0-96 70-96 128v96h192v-96c0-52.7-34-128-96-128zm256 0c-96 0-96 224-96 224h192s0-224-96-224zm-192-96c0 35.3-28.7 64-64 64s-64-28.7-64-64 28.7-64 64-64 64 28.7 64 64z" />',viewBox:"0 0 512 512"},ec={name:"tell-a-friend-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM144 96c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm80 320H64v-96c0-48.3 26-96 80.2-96 51.7 0 79.8 52.1 79.8 96v96zm223.6 0H288s0-192 80-192 79.6 192 79.6 192zm-2-240.7c-11.1 7.9-24.3 16.7-78 16.7s-66.3-8.8-77.3-16.7c-1.5-1.3-2.4-3.1-2.4-5.1 0-4 3.6-7.2 8.2-7.5 13.6-2.3 23.8-13.8 23.8-25v-1.6c0-22.1 21.4-40.1 48-40.1h.9c26.1.4 47.1 18.2 47.1 40.1v1.6c0 11.2 10.2 22.7 23.8 25 4.6.4 8.2 3.6 8.2 7.5.1 2-.8 3.8-2.3 5.1z" />',viewBox:"0 0 512 512"},tc={name:"tumblr",content:'<path d="M192.6 32c-2.8 23.1-8.1 42.1-15.7 57.1s-17.7 27.8-30.3 38.5-33 18.9-50.6 24.6V224h61v148.7c0 20.5 2.1 36.1 6.4 46.9s12 21 23.1 30.6c11.1 9.5 25 16.9 40.7 22.1s27.8 7.7 48.3 7.7c18 0 34.8-1.8 50.4-5.4 15.5-3.6 39.1-10.9 58.2-19.9V384c-22.3 14.8-51 22.9-73.7 22.9-12.8 0-24-3-33.9-8.9-7.5-4.4-14.3-12-17-19.2-2.8-7.4-2.4-22.3-2.4-48.2V224h96v-96h-96V32h-64.5z" />',viewBox:"0 0 512 512"},nc={name:"tumblr-box",content:'<path d="M448 32H64c-17.6 0-32 14.4-32 32v384c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32zm-96.1 366c-12.7 6.4-28.5 11.6-38.9 14.2-10.4 2.6-21.6 3.9-33.7 3.9-13.7 0-21.8-1.9-32.3-5.5-10.5-3.7-19.9-9-27.3-15.8-7.4-6.9-12.6-14.1-15.4-21.8-2.9-7.7-4.3-18.9-4.3-33.5V224h-40v-42.2c11.7-4.1 25.3-9.9 33.6-17.6 8.4-7.6 15.1-16.8 20.2-27.5s8.6-24.3 10.5-40.8H267v64h53v64h-53v85.2c0 18.6-.2 29.3 1.6 34.5 1.8 5.2 6.4 10.7 11.4 13.8 6.6 4.2 14.2 6.4 22.7 6.4 15.1 0 34.3-5.9 49.3-16.5V398h-.1z" />',viewBox:"0 0 512 512"},oc={name:"twitter",content:'<path d="M342 64c-50.8 0-91.9 41.2-91.9 91.9 0 7.2.8 14.2 2.4 21-76.4-3.8-144.1-40.4-189.4-96-7.9 13.6-12.4 29.3-12.4 46.2 0 31.9 16.2 60 40.9 76.5-15.1-.5-29.2-4.6-41.6-11.5v1.2c0 44.5 31.7 81.7 73.7 90.1-7.7 2.1-15.8 3.3-24.2 3.3-5.9 0-11.7-.6-17.3-1.6 11.7 36.5 45.6 63.1 85.9 63.8-31.7 24.5-71.3 39.2-114.3 39.2-7.4 0-14.8-.4-22-1.3 40.7 26 89 41.3 140.9 41.3 169.1 0 261.5-140.1 261.5-261.5 0-4-.1-8-.2-11.9 18-12.9 33.5-29.1 45.9-47.6-16.5 7.3-34.2 12.3-52.8 14.5 19-11.4 33.6-29.4 40.4-50.8-17.8 10.5-37.4 18.2-58.4 22.3C392.3 75.1 368.4 64 342 64z" />',viewBox:"0 0 512 512"},rc={name:"twitter-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm-64.7 159.7c.1 2.8.2 5.6.2 8.4 0 85.4-66 183.9-186.8 183.9-37.1 0-71.6-10.7-100.6-29.1 5.1.6 10.4.9 15.7.9 30.8 0 59.1-10.4 81.5-27.7-28.7-.5-53-19.2-61.3-44.9 4 .7 8.1 1.2 12.4 1.2 6 0 11.8-.8 17.3-2.3-30-5.9-52.7-32-52.7-63.3v-.8c8.9 4.8 19 7.7 29.7 8.1-17.6-11.6-29.2-31.4-29.2-53.8 0-11.8 3.2-22.9 8.9-32.5 32.4 39.1 80.8 64.8 135.3 67.5-1.1-4.7-1.7-9.7-1.7-14.7 0-35.7 29.4-64.6 65.6-64.6 18.9 0 36 7.8 47.9 20.4 14.9-2.9 29-8.3 41.7-15.7-4.9 15.1-15.3 27.7-28.9 35.7 13.3-1.6 26-5.1 37.7-10.2-8.9 13.1-19.9 24.5-32.7 33.5z" />',viewBox:"0 0 512 512"},ic={name:"yammer",content:'<path d="M263.9 32.1c-10.1-.2-19.6 6.8-23.2 18-.1.4-.3 1-.5 1.9 0 .1-.1.3-.1.4-8 25.9-73.6 235.6-73.6 235.6h-1.2l-84-239.2C75.6 35.3 61.6 28.7 48.9 34c-13 5.5-19.7 21.5-15.4 36.2 10.1 29 105.8 290.4 105.8 290.4l-6.3 15.6c-10.6 32.1-31.6 53.8-63.2 53.8-3.1 0-13.7-.7-14.4-.8-10.2-.6-19.7 6.9-22.5 18.4-3.1 13.1 3.7 26.6 15.3 30.4 8.4 1.6 17 2.2 24.7 2.2 58.3 0 86.8-37.7 106-92.8 0 0 101-300.5 105.8-312.9.8-2 1.4-3.7 2-5.4l-.1-.1c.1-.4.3-.7.4-1.1 4.1-14.5-3-29.9-15.8-34.5-2.5-.8-4.9-1.3-7.3-1.3zM383.5 96c-6.3.1-13.3 2.5-20.4 9.6-21.5 21.6-43 86.4-43 86.4s64.6-21.6 86.4-43.5-.4-42.8-.4-42.8-9.7-9.8-22.6-9.7zm64.6 128c-32 0-96 32-96 32s64 32 96.4 32 31.5-32 31.5-32 .1-32-31.9-32zm-128 96s21.5 64.8 43 86.4 43-.1 43-.1 22.1-21 .4-42.8c-21.8-21.9-86.4-43.5-86.4-43.5z" />',viewBox:"0 0 512 512"},ac={name:"yammer-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM332.5 148.6c15.4-15.4 30.7 0 30.7 0s15.8 15 .3 30.6-61.7 31.1-61.7 31.1 15.4-46.3 30.7-61.7zm-54.7-26.4c-.1.3-.2.5-.3.8h.1c-.4 1.2-.9 2.4-1.4 3.8-3.5 8.8-75.5 223.1-75.5 223.1-13.7 39.3-34 66.2-75.6 66.2-5.5 0-11.6-.4-17.6-1.6-8.3-2.7-13.2-12.3-10.9-21.7 2-8.2 8.8-13.6 16.1-13.2.5.1 8.1.6 10.3.6 22.6 0 37.5-15.5 45.1-38.3l4.5-11.1s-68.2-186.3-75.5-207c-3-10.5 1.7-22 11-25.9 9.1-3.8 19.1.9 23.2 10.6l.8 2.4L191.3 279h.9s46.7-149.5 52.5-168c0-.1 0-.2.1-.3.2-.6.3-1.1.4-1.3 3.2-9.8 12.7-15.1 21.6-11.9 8.9 3.4 14 14.4 11 24.7zm85.4 241.2s-15.3 15.5-30.7 0-30.8-61.7-30.8-61.7 46.1 15.4 61.7 31.1-.2 30.6-.2 30.6zm30.3-84.6c-23.2 0-68.9-22.8-68.9-22.8s45.7-22.8 68.6-22.8S416 256 416 256s.7 22.8-22.5 22.8z" />',viewBox:"0 0 512 512"},sc={name:"behance",content:'<path d="M448 128H304V96h144v32zM245.335 254.873c7.09 11.573 10.665 25.65 10.665 42.197 0 17.067-4.069 32.379-12.176 45.903-5.178 9.005-11.62 16.58-19.358 22.691-8.723 7.022-18.988 11.833-30.855 14.467C181.744 382.732 168.89 384 155.02 384H32V96h131.927c33.321.504 56.901 10.744 70.803 30.705 8.323 12.24 12.515 26.869 12.515 43.936 0 17.588-4.192 31.729-12.607 42.425-4.716 5.982-11.683 11.443-20.868 16.385 13.963 5.364 24.474 13.817 31.565 25.422zm-158.9-45.318H152.8c11.867 0 21.484-2.406 28.913-7.152 7.367-4.763 11.097-13.215 11.097-25.292 0-13.426-4.901-22.285-14.672-26.609-8.446-2.991-19.204-4.486-32.273-4.486h-59.43v63.539zm111.923 83.452c0-15.019-5.795-25.292-17.385-30.917-6.504-3.121-15.597-4.746-27.31-4.876H86.435v76.787h66.303c11.836 0 21.084-1.69 27.68-5.071 11.96-6.275 17.94-18.238 17.94-35.923zM479.932 288H330.824c.813 21.182 7.938 34.778 21.409 43.322 8.157 5.287 18.002 7.931 29.503 7.931 12.189 0 22.096-3.224 29.722-9.704 4.157-3.482 7.813-8.318 11.001-14.541h54.693c-1.438 12.541-8.095 25.276-19.846 38.204C438.959 373.748 413.269 384 380.266 384c-27.253 0-51.286-8.64-72.132-25.985-20.846-17.28-31.222-45.522-31.222-84.532 0-36.624 9.376-64.672 28.19-84.21C323.917 169.785 348.294 160 378.328 160c17.814 0 33.847 3.288 48.129 9.898 14.282 6.593 26.096 17.023 35.378 31.24 8.407 12.573 13.876 27.114 16.346 43.685 1.438 9.704 2.033 24.929 1.751 43.177zm-55.567-37.696c-.969-14.669-5.72-25.759-14.283-33.4-8.532-7.576-19.095-11.348-31.753-11.348-13.72 0-24.377 3.998-31.94 12.058-7.563 8.028-12.314 18.957-14.282 32.691h92.258z" />',viewBox:"0 0 512 512"},lc={name:"behance-box",content:'<path d="M167.543 228.938h-56.884v-56.479h50.939c11.202 0 20.423 1.329 27.663 3.988 8.376 3.844 12.576 11.718 12.576 23.652 0 10.735-3.197 18.249-9.511 22.482-6.368 4.219-14.612 6.357-24.783 6.357zm220.527 11.836c-7.313-6.494-16.367-9.727-27.217-9.727-11.76 0-20.895 3.427-27.378 10.335-6.483 6.881-10.555 16.249-12.242 28.021h79.079c-.83-12.573-4.902-22.079-12.242-28.629zm-196.379 34.862c-5.575-2.774-13.369-4.219-23.409-4.335h-57.624v68.255h56.831c10.146 0 18.072-1.503 23.726-4.508 10.251-5.577 15.377-16.211 15.377-31.931 0-13.35-4.967-22.482-14.901-27.481zM480 64v384c0 17.664-14.336 32-32 32H64c-17.664 0-32-14.336-32-32V64c0-17.664 14.336-32 32-32h384c17.664 0 32 14.336 32 32zm-176 96h112v-32H304v32zm-48 146.729c0-14.709-3.065-27.221-9.142-37.509-6.078-10.316-15.087-17.829-27.056-22.597 7.873-4.392 13.845-9.247 17.887-14.564 7.213-9.507 10.806-22.077 10.806-37.711 0-15.171-3.593-28.175-10.727-39.055-11.916-17.743-32.128-26.846-60.689-27.293H64v256h105.445c11.889 0 22.907-1.127 33.079-3.439 10.172-2.341 18.97-6.618 26.447-12.859 6.632-5.433 12.154-12.166 16.592-20.17C252.512 335.51 256 321.899 256 306.729zm190.442-42.024c-2.117-14.204-6.804-26.667-14.01-37.444-7.956-12.187-18.082-21.126-30.324-26.777-12.242-5.665-25.985-8.484-41.254-8.484-25.744 0-46.638 8.387-62.765 25.091-16.127 16.746-24.163 40.788-24.163 72.18 0 33.437 8.894 57.644 26.762 72.456C318.555 376.594 339.155 384 362.514 384c28.288 0 50.308-8.788 66.033-26.391 10.072-11.081 15.778-26.86 17.011-37.609h-46.879c-1.178 6-2.512 10.667-9.429 17.327-6.536 5.555-15.028 8.318-25.476 8.318-9.858 0-18.297-2.266-25.288-6.798-11.546-7.323-17.654-18.977-18.35-37.133h127.807c.24-15.641-.269-28.691-1.501-37.009z" />',viewBox:"0 0 512 512"},cc={name:"dribbble",content:'<path d="M256 32C132.469 32 32 132.469 32 256c0 123.5 100.469 224 224 224 123.5 0 224-100.5 224-224 0-123.531-100.5-224-224-224zm148.094 103.281c26.625 32.562 42.781 74.031 43.188 119.188-6.312-1.312-69.562-14.156-133.219-6.156a850.738 850.738 0 0 0-4.125-9.875c-3.969-9.312-8.25-18.594-12.688-27.719 70.75-28.875 102.812-69.969 106.844-75.438zM256 64.969c48.594 0 93.031 18.219 126.812 48.188-3.438 4.906-32.25 43.625-100.281 69.125-31.344-57.594-66.094-104.938-71.375-112A190.999 190.999 0 0 1 256 64.969zm-81.344 18.156c5.031 6.938 39.219 54.312 70.938 110.656-89.5 23.781-168.344 23.438-176.906 23.312 12.406-59.374 52.437-108.718 105.968-133.968zm-110 173.156c0-1.969.031-3.906.094-5.844 8.375.156 101.094 1.375 196.657-27.219 5.469 10.719 10.688 21.594 15.5 32.469a192.95 192.95 0 0 0-7.531 2.281c-98.688 31.875-151.188 118.812-155.531 126.25-30.564-33.937-49.189-78.812-49.189-127.937zM256 447.594c-44.25 0-85-15.094-117.438-40.375 3.438-7.031 42.156-81.875 150.094-119.5.406-.125.812-.281 1.25-.406 26.875 69.812 37.969 128.312 40.812 145.094-22.968 9.781-48.218 15.187-74.718 15.187zm106.875-32.719c-1.938-11.625-12.125-67.625-37.156-136.406 59.969-9.594 112.625 6.125 119.188 8.188-8.532 53.218-39.095 99.218-82.032 128.218z" />',viewBox:"0 0 512 512"},uc={name:"dribbble-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM256 448c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192zm28-164.8c-82.9 28.9-118.1 83.4-126.7 98.7 27.2 21.3 61.5 34.1 98.7 34.1 22.5 0 43.9-4.6 63.3-13-3.3-18.4-13.1-65.2-34.2-120.1-.4 0-.8.2-1.1.3zm-95.5-172.3c-44.9 20.9-78.5 62.1-89 111.8 17.1-.1 78.6-1.7 147.6-20-24.3-43.2-50.3-80.1-58.6-91.8zm79 146.8c2.1-.7 4.3-1.3 6.5-2-4.1-9.3-8.6-18.6-13.3-27.8-74.1 22.2-146.1 23.4-164.6 23.4 0 1.6-.1 3.1-.1 4.7 0 40.8 15.3 78 40.4 106.3 10.5-16.7 54.6-79.9 131.1-104.6zm94.9-121.1C334.2 111.3 296.9 96 256 96c-12.4 0-24.5 1.4-36 4.1 8.7 11.9 34.9 48.8 58.8 92.7 50.7-19 76-46.7 83.6-56.2zm-46.6 138.7C335 328 344 371.9 346.9 387.8c35.2-24.3 60.2-62.5 67.2-106.6-13.2-3.7-53.4-13.1-98.3-5.9zm-24.4-58.1c3.8 7.8 7.5 15.8 10.9 23.8 1.2 2.8 2.4 5.7 3.5 8.5 48-6 95.7 1.8 110.2 4.5-.5-37.2-13.7-71.4-35.4-98.3-8.4 10-36.1 39.8-89.2 61.5z" />',viewBox:"0 0 512 512"},dc={name:"rss",content:'<path d="M151.4 420c0 32.9-26.7 59.5-59.7 59.5S32 452.9 32 420s26.7-59.5 59.7-59.5 59.7 26.7 59.7 59.5zM32 184.3v85.9c56 0 108.5 21.8 148.1 61.3 39.6 39.6 61.4 92.3 61.4 148.5h86.2C327.6 317 195 184.3 32 184.3zM32 32v85.9c199.4 0 361.6 162.5 361.6 362.1h86.2C479.8 233 278.9 32 32 32z" />',viewBox:"0 0 512 512"},pc={name:"rss-box",content:'<path d="M448 32H64c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM115.2 447.6c-28.3 0-51.2-22.8-51.2-51s22.9-51 51.2-51c28.3 0 51.2 22.8 51.2 51s-23 51-51.2 51zm128.8.4c0-48.1-18.7-93.3-52.8-127.3-34-33.9-79.2-52.6-127.2-52.6v-73.6c140.1 0 254.1 113.7 254.1 253.5H244zm129.9 0c0-171.2-139-310.4-309.9-310.4V64c211.6 0 383.8 172.3 383.8 384h-73.9z" />',viewBox:"0 0 512 512"},hc={name:"vimeo",content:'<path d="M479.783 152.805c-2 43.26-32.469 102.444-91.344 177.477C327.532 408.792 275.969 448 233.782 448c-26.094 0-48.188-23.873-66.25-71.742-12.063-43.896-24.094-87.854-36.157-131.657-13.407-47.901-27.782-71.835-43.188-71.835-3.344 0-15.032 6.985-35.125 20.955L32 166.744c22.094-19.201 43.844-38.526 65.282-57.773 29.407-25.316 51.5-38.556 66.25-39.938 34.782-3.353 56.219 20.287 64.282 70.78 8.625 54.559 14.719 88.475 18.032 101.777 10.031 45.2 21.093 67.769 33.156 67.769 9.344 0 23.375-14.591 42.157-43.818 18.75-29.29 28.782-51.548 30.125-66.868 2.656-25.27-7.375-37.827-30.125-37.827-10.719 0-21.782 2.251-33.157 6.969C310.126 96.647 352.283 62.08 414.533 64.082c46.156 1.289 67.906 30.935 65.25 88.723z" />',viewBox:"0 0 512 512"},fc={name:"vimeo-box",content:'<path d="M448 32H64c-17.664 0-32 14.336-32 32v384c0 17.664 14.336 32 32 32h384c17.664 0 32-14.336 32-32V64c0-17.664-14.336-32-32-32zm-.186 140.119c-1.714 37.08-27.831 87.809-78.295 152.123-52.206 67.294-96.402 100.901-132.563 100.901-22.366 0-41.304-20.462-56.786-61.493-10.339-37.625-20.652-75.303-30.991-112.849-11.491-41.058-23.813-61.573-37.018-61.573-2.866 0-12.884 5.987-30.107 17.961L64 184.066c18.938-16.458 37.581-33.022 55.956-49.519 25.206-21.7 44.143-33.048 56.786-34.232 29.813-2.874 48.188 17.389 55.099 60.668 7.393 46.765 12.616 75.835 15.456 87.237 8.598 38.743 18.08 58.087 28.419 58.087 8.009 0 20.036-12.506 36.134-37.559 16.071-25.106 24.67-44.184 25.822-57.315 2.277-21.66-6.321-32.423-25.822-32.423-9.188 0-18.67 1.929-28.42 5.974 18.964-61.001 55.099-90.63 108.456-88.914 39.562 1.105 58.205 26.516 55.928 76.049z" />',viewBox:"0 0 512 512"},mc={name:"youtube",content:'<path d="M475.5 165s-4.4-31.4-17.8-45.2c-17-18.1-36.1-18.2-44.9-19.3C350.1 96 256.1 96 256.1 96h-.2s-94 0-156.7 4.6c-8.8 1.1-27.8 1.2-44.9 19.3C40.9 133.7 36.5 165 36.5 165S32 201.9 32 238.7v34.5c0 36.8 4.5 73.6 4.5 73.6s4.4 31.4 17.8 45.2c17 18.1 39.4 17.5 49.4 19.4C139.5 414.9 256 416 256 416s94.1-.1 156.8-4.7c8.8-1.1 27.9-1.2 44.9-19.3 13.4-13.8 17.8-45.2 17.8-45.2s4.5-36.8 4.5-73.6v-34.5c0-36.8-4.5-73.7-4.5-73.7zM192 336V176l144 80-144 80z" />',viewBox:"0 0 512 512"},vc={name:"youtube-box",content:'<path d="M448 32H64c-17.664 0-32 14.336-32 32v384c0 17.664 14.336 32 32 32h384c17.664 0 32-14.336 32-32V64c0-17.664-14.336-32-32-32zm0 237.749c0 29.454-3.835 58.909-3.835 58.909s-3.752 25.082-15.265 36.128c-14.602 14.497-30.97 14.569-38.476 15.417C336.689 383.885 256 384 256 384s-99.838-.864-130.559-3.656c-8.546-1.519-27.734-1.061-42.341-15.558-11.513-11.045-15.26-36.128-15.26-36.128S64 299.203 64 269.749v-27.614c0-29.454 3.84-58.909 3.84-58.909s3.747-25.082 15.26-36.128c14.607-14.497 30.969-14.569 38.476-15.417C175.313 128 255.917 128 255.917 128h.167s80.606 0 134.341 3.682c7.506.849 23.873.92 38.476 15.417 11.513 11.045 15.265 36.128 15.265 36.128S448 212.681 448 242.136v27.613zM192 176l144 80-144 80V176z" />',viewBox:"0 0 512 512"},gc={name:"folder",content:'<path d="m242.8 128-32-32H96v288h320V192H128v-32h288c17.7 0 32 14.3 32 32v192c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h128l64 64" />',viewBox:"0 0 512 512"},yc={name:"folder-open",content:'<path d="M425.6 160h-246c-17.6 0-37.2 14.4-43.6 32L64 384V96h114.8l32 32H256l-64-64H64c-17.7 0-32 14.3-32 32v288c0 17.7 14.3 32 32 32h268.4c17.6 0 37.2-14.4 43.6-32l70-192c6.4-17.6-2.8-32-20.4-32zM346 373.1c-2 5.5-10.1 10.9-13.6 10.9H98.1L166 202.9c2-5.5 10.1-10.9 13.6-10.9h232.3L346 373.1z" />',viewBox:"0 0 512 512"},bc={name:"folder-add",content:'<path d="M96 160h288c17.7 0 32 14.3 32 32v64h-32v-64H96v-32zm352 224h-32v-64h-32v64h-64v32h64v64h32v-64h64v-32h-32zM64 96h114.8l32 32H256l-64-64H64c-17.7 0-32 14.3-32 32v288c0 17.7 14.3 32 32 32h192v-32H64V96z" />',viewBox:"0 0 512 512"},wc={name:"folder-up",content:'<path d="M96 160h288c17.7 0 32 14.3 32 32v64l-32 32v-96H96v-32zM64 96h114.8l32 32H256l-64-64H64c-17.7 0-32 14.3-32 32v288c0 17.7 14.3 32 32 32h192l32-32H64V96zm336 240-80 80h64v64h32v-64h64l-80-80z" />',viewBox:"0 0 512 512"},kc={name:"folder-more",content:'<path d="M64 384h96v32H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h128l64 64h-45.2l-32-32H64v288zm192-32c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm160-64v-96c0-17.7-14.3-32-32-32H96v32h288v96h32zm32 64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z" />',viewBox:"0 0 512 512"},xc={name:"aggregate-fields",content:'<path d="M128 128c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h256c32 0 32-32 32-32H128V128zm-64 64c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h256c32 0 32-32 32-32H64V192zM448 64H192c-17.6 0-32 14.4-32 32v160c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V96c0-17.6-14.4-32-32-32zm1 192s0 .1 0 0l-256.9.1-.1-.1V96.1l.1-.1H448v160h1z" />',viewBox:"0 0 512 512"},zc={name:"file",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Cc={name:"file-add",content:'<path d="M512 416h-64v64h-32v-64h-64v-32h64v-64h32v64h64v32zM96 448V64h224v96h96v96h32V128l-96-96H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h224v-32" />',viewBox:"0 0 512 512"},Sc={name:"file-txt",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-32-96v32H128v-32h256zM256 160v32H128v-32m256 64v32H128v-32h256zm-256 96v-32h224v32H128z" />',viewBox:"0 0 512 512"},Ic={name:"file-csv",content:'<path d="M178.6 224c-10 0-18.9 2.1-26.7 6.2-7.7 4.2-13.7 10.1-17.9 17.7-4.2 7.6-6.3 16.3-6.3 26.1 0 9.1 1.9 17.1 5.7 24.1s9.2 12.3 16.4 16.1c7.2 3.8 15.7 5.7 25.6 5.7 10 0 18.9-1.4 26.6-4.1v-24.9c-6.9 3.5-13.8 5.2-20.5 5.2-7.3 0-13.2-2.1-17.6-6.4-4.4-4.3-6.6-10.1-6.6-17.6s2.2-13.4 6.6-17.7 10.4-6.5 18-6.5c3.7 0 7.3.4 10.9 1.3s6.7 2.1 9.2 3.6V227c-7.6-2-15.3-2.9-23.4-3zm73.8.1c-11.5 0-20.6 2.7-27.5 8.1-6.8 5.4-10.2 12.5-10.2 21.5 0 12.8 7.5 22.1 22.4 27.8 4.6 1.7 7.8 3.1 9.5 4.1 1.7 1 3 2 3.8 3.2.8 1.2 1.2 2.5 1.2 4 0 2.1-.8 3.7-2.5 4.8-1.7 1.1-4.1 1.7-7.1 1.7-4.1 0-8.4-.9-13.2-2.6-4.7-1.8-9-4-12.9-6.9V315c8.1 3.3 17 4.9 26.7 4.9 8.4 0 15.5-1.1 21.5-3.4 6-2.2 10.6-5.7 13.9-10.2 3.3-4.6 5-9.9 5-16.1 0-6.3-2-11.8-6-16.4-4-4.6-10.8-8.9-20.4-12.8-4.9-2-8.1-3.7-9.6-5-1.5-1.3-2.3-2.9-2.3-4.8 0-2 1-3.6 2.8-4.8 1.9-1.2 4.4-1.8 7.5-1.8 7.6 0 15.2 2.1 23 6.4v-23.6c-4-1.1-7.1-1.8-9.3-2.2-2.2-.4-4.7-.7-7.4-1-2.7-.1-5.8-.1-8.9-.1zm39.8-.1 30 96h31.4l30.4-96h-29.1l-13.8 58.9c-1.1 4.4-1.8 8.1-2 11.1h-.6c-.1-2.4-.8-5.9-1.9-10.7L322.4 224h-30.2zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Mc={name:"file-excel",content:'<path d="m288 304 64 112h-48l-48-84.5-31.5 52.5H256v32h-96l64-112-64-112h48l48 84 48-84h48l-64 112zm64-272H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Ec={name:"file-word",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-32.4-256-6.9 32-41.6 192h-46.7l-32.8-132.5L222.9 416h-46.7l-48.6-224h47.8l24.8 139.2L233.3 192h44.5l33.1 139.2L330.1 224H311v-32h72.6z" />',viewBox:"0 0 512 512"},Oc={name:"file-mdb",content:'<path d="M231.1 192 144 416h80v-32h-25.5l14.8-38h85.6l27.2 70h42L281 192h-49.9zm-1.5 112 26.5-68 26.4 68h-52.9zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Hc={name:"file-ppt",content:'<path d="m192 192-32 32h32v192h49v-80h25.6c16.4 0 29.1-1.5 38.2-4.4 14.4-4.5 25.9-12.9 34.4-25.4s12.8-26.6 12.8-42.6c0-15.8-4-29.5-12-41.1s-18.8-20.1-32.4-25.4c-10.3-3.7-24.4-5.5-42-5.5M241 225h20.1c11.2.3 20.2 2.1 26.9 5.6 12.1 6.4 23.3 17.6 23.3 33.5 0 17.3-11.9 29-25.2 35-6.7 2.9-15.1 4.4-25.2 3.9H241v-78zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Nc={name:"file-pdf",content:'<path d="M240.9 160c-7.6 0-13.8 4-15.4 9.9-4.9 18.6.2 46.3 9.4 82.3l-2.4 5.9c-6.6 16.4-14.8 33-22.1 47.6l-1 1.9c-7.7 15.3-14.6 28.4-21 39.4l-6.5 3.5c-.5.3-11.6 6.3-14.3 7.9-22.2 13.6-36.9 28.9-39.4 41.2-.8 3.9-.2 8.9 3.7 11.2l6.3 3.2c2.7 1.4 5.6 2.1 8.6 2.1 15.8 0 34.2-20.2 59.5-65.3 29.2-9.7 62.5-17.8 91.6-22.3 22.2 12.8 49.5 21.7 66.8 21.7 3.1 0 5.7-.3 7.8-.9 3.3-.9 6.1-2.8 7.8-5.4 3.4-5.2 4-12.2 3.1-19.5-.3-2.1-2-4.8-3.8-6.6-5.1-5.2-16.5-7.9-33.7-8.1-11.7-.1-25.8.9-40.6 3-6.6-3.9-13.5-8.2-18.8-13.3-14.4-13.8-26.5-32.9-34-53.9.5-2 .9-3.7 1.3-5.4 0 0 8.1-47.1 6-63.1-.3-2.2-.5-2.8-1.1-4.5l-.7-1.9c-2.2-5.2-6.5-10.7-13.3-10.4l-3.8-.2zm2.7 8.4c5.1 0 8 13.1 8.2 25.4.3 12.3-2.6 20.9-6 27.3-2.9-9.4-4.3-24.3-4.3-34-.1-.1-.3-18.7 2.1-18.7zm.4 104.1c8.6 16 19.3 29.5 31.9 40.4 1.6 1.3 3.2 2.7 5 4.1-25.6 5.2-47.7 11.5-67.1 19.1 3.6-6.5 7.2-13.3 11-20.6 9.1-17.7 14.9-31.6 19.2-43zm102.2 51.6c9.3 0 12 0 21.1 2.3 9.1 2.4 9.2 7.2 7.6 8.2-1.6 1-6 1.6-8.9 1.6-9.2 0-20.7-4.3-36.8-11.4 6.3-.4 11.9-.7 17-.7zm-165.4 35.8c-17.7 28.8-29.5 40.3-37.3 43.8 2.9-8.1 14.3-24 31.2-38.1 1.1-.9 3.7-3.4 6.1-5.7zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Pc={name:"file-psd",content:'<path d="M128 160v256h45v-91h21.4c24.2 0 43.5-7.8 57.9-23.4 14.4-15.6 21.6-36.1 21.6-61.3 0-53.4-25.2-80.2-75.5-80.2H128zm45 44h17.5c23.7 0 35.5 12.8 35.5 38.6 0 26.3-11.8 39.4-35.5 39.4H173v-78zm164.6 51.7c-8.1 0-15.9.9-23.4 2.8-7.5 1.9-14.2 4.7-20 8.6-5.8 3.9-10.4 9-14 15.2-3.5 6.2-5.2 13.6-5.2 22.1 0 6.2.8 11.7 2.3 16.3 1.5 4.5 3.7 8.6 6.7 12.1 2.9 3.5 6.5 6.5 10.8 9.2 4.3 2.7 9.3 5.1 15 7.4 3.5 1.5 7.2 2.8 11 4 3.8 1.2 7.3 2.5 10.5 4s5.8 3.2 7.8 5.2 3 4.5 3 7.5c0 4.7-2.2 8.2-6.7 10.4-4.5 2.3-10.6 3.4-18.5 3.4-6.4 0-13.3-1.2-20.5-3.4s-14.5-5.8-21.7-10.4v38.3c13.4 5.2 27.9 7.7 43.7 7.7 8.5 0 16.8-.9 24.7-2.8 7.9-1.8 15-4.8 21.1-8.8s10.9-9.2 14.7-15.7 5.5-14.2 5.5-23.3c0-6.5-.9-12-2.7-16.8-1.8-4.7-4.4-8.7-7.8-12.2-3.4-3.5-7.4-6.5-12.2-9.1-4.7-2.6-10-5-15.9-7.1-3.2-1.2-6.5-2.4-9.8-3.5s-6.3-2.4-9-3.9-4.9-3.1-6.5-5.2c-1.6-2.1-2.5-4.4-2.5-7.1 0-2.1.5-3.9 1.7-5.6 1.1-1.7 2.6-3 4.6-4 2-1 4.2-1.8 6.7-2.4s5.2-.8 8.1-.8c6.1 0 12.3.9 18.8 2.6 6.4 1.7 12.3 4.4 18 7.8v-36.4c-6.3-2-12.8-3.5-19.3-4.5s-13-1.6-19.3-1.6h.3zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Vc={name:"file-flash",content:'<path d="M352 191.3V237c-21 .2-46.6-3.2-69.6 45H320v45h-47.9s-37.4 91.1-111.9 90.1c-.6-10 0-30.8 0-45 49.3-7.6 65.4-62.1 76.8-89.4 26.5-82.8 73.9-92 93.4-92.1 5.6 0 21.6.7 21.6.7zm96-63.3v320c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32h256l96 96zm-32 32h-96V64H96v384h320V160z" />',viewBox:"0 0 512 512"},Tc={name:"file-config",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-41.8-124.6-23.7-17.9c1-5.7 1.6-11.5 1.6-17.4 0-6-.5-11.8-1.6-17.4l23.7-17.9c3.7-2.8 4.7-7.9 2.4-11.9l-19.4-33.5c-2.3-4-7.2-5.6-11.5-3.9L318.4 215c-8.8-7.5-19-13.5-30.2-17.4l-3.7-29.5c-.6-4.6-4.5-8-9.1-8h-38.7c-4.6 0-8.5 3.4-9.1 8l-3.7 29.5c-11.1 4-21.3 9.9-30.2 17.4l-27.4-11.6c-4.2-1.8-9.2-.1-11.5 3.9l-19.4 33.5c-2.3 4-1.3 9.1 2.4 11.9l23.7 17.9c-1 5.7-1.6 11.5-1.6 17.4 0 6 .5 11.8 1.6 17.4l-23.7 17.9c-3.7 2.8-4.7 7.9-2.4 11.9l19.4 33.5c2.3 4 7.2 5.6 11.5 3.9l27.4-11.6c8.8 7.5 19 13.5 30.2 17.4l3.7 29.5c.6 4.6 4.5 8 9.1 8h38.7c4.6 0 8.5-3.4 9.1-8l3.7-29.5c11.1-4 21.3-9.9 30.2-17.4l27.4 11.6c4.2 1.8 9.2.1 11.5-3.9l19.4-33.5c2.2-4 1.2-9-2.5-11.8zM256 336c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z" />',viewBox:"0 0 512 512"},Rc={name:"file-ascx",content:'<path d="M384 224h-96v-32h96v32zm0 160h-96v-32h96v32zM256 256H128v-96h128v96zm0 160H128v-96h128v96zm96-384H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Dc={name:"file-bac",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H289v-96h64l-96.5-96-95.5 96h64v96H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Bc={name:"file-zip",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h64v32h32v32h-32v32h32v32h-32v32h32v32h-32v32h32v34.7c-18.6 6.6-32 24.4-32 45.3 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.7-32-45.3V256h32v-32h-32v-32h32v-32h-32v-32h32V96h-32V64h96v96h96v288zm-192-80c0 8.8-7.2 16-16 16s-16-7.2-16-16 7.2-16 16-16 16 7.2 16 16z" />',viewBox:"0 0 512 512"},Ac={name:"film",content:'<path d="M416 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zM128 448H96v-32h32v32zm0-96H96v-64h32v64zm0-128H96v-64h32v64zm0-128H96V64h32v32zm224 352H160v-96h192v96zm0-128H160V192h192v128zm0-160H160V64h192v96zm64 288h-32v-32h32v32zm0-96h-32v-64h32v64zm0-128h-32v-64h32v64zm0-128h-32V64h32v32z" />',viewBox:"0 0 512 512"},Lc={name:"css3",content:'<path d="m64 32 30.2 384L256 480l161.8-64L448 32H64zm65.6 82h250.3l-4.9 48.9L255.4 214h115.9L358 366.1l-102.1 29.7-102.4-30.2-6.6-76.6h50.9l3.3 39.7 54.4 13.8.5-.1v-.1l56.3-15.8 3.9-64.4H143.7l-3.8-47.8 123-51.2H135.7l-6.1-49.1z" />',viewBox:"0 0 512 512"},_c={name:"html5",content:'<path d="m64 32 30.4 384 161.3 64 161.7-64L448 32H64zm68 83h247.7l-1.2 13.2-2.2 24.8-1 11H186.1l4.5 51h180.1l-1.2 13.3-11.7 129.9-.7 8.4-101.3 37-101.2-37-6.9-77.6h49l3.5 39.7 55.5 24 55.6-24.1 5.8-64.6h-172L133 128.2l-1-13.2z" />',viewBox:"0 0 512 512"},Fc={name:"code",content:'<path d="M512 256 384 384l-22.6-22.6L466.7 256 361.4 150.6 384 128l128 128zM150.6 361.4 45.3 256l105.4-105.4L128 128 0 256l128 128 22.6-22.6zM321.1 72.3 290.2 64l-99.4 375.7 30.9 8.3 99.4-375.7z" />',viewBox:"0 0 512 512"},jc={name:"css",content:'<path d="m192 96-32 .1S96 96 96 160v48c0 27.8-21.8 31.4-32 32H48c-2.2 0-4.3.4-6.2 1.2-.5.2-1 .4-1.4.7s-.9.5-1.3.8c-1.3.9-2.4 1.9-3.4 3.1-.2.2-.3.4-.5.6-.9 1.2-1.7 2.6-2.2 4.1-.2.5-.3 1-.5 1.5-.3 1-.4 2.1-.5 3.2v1.6c.1 1.1.2 2.1.5 3.2.1.5.3 1 .5 1.5.5 1.5 1.3 2.8 2.2 4.1.2.2.3.4.5.6 1 1.2 2.1 2.2 3.4 3.1.4.3.9.5 1.3.8s.9.5 1.4.7c1.9.8 4 1.2 6.2 1.2h16c10.2.6 32 4.2 32 32v48c0 64 64 63.9 64 63.9l32 .1v-32l-31.8-.1s-32.2.1-32.2-32v-48.5s0-29-19.6-47.9c19.6-18.8 19.6-47.9 19.6-47.9v-47.9c0-31.9 32.2-31.8 32.2-31.8l31.8-.1V96zm128-.1V128l31.7.1S384 128 384 160v48s0 29.1 19.5 48C384 274.9 384 304 384 304v48c0 32-32.1 31.9-32.1 31.9l-31.9.1v32l32.1-.1s63.9.1 63.9-63.7V304c0-27.8 21.8-31.4 32-32h16c2.2 0 4.3-.4 6.2-1.2.5-.2 1-.4 1.4-.7s.9-.5 1.3-.8c1.3-.9 2.4-1.9 3.4-3.1.2-.2.3-.4.5-.6.9-1.2 1.7-2.6 2.2-4.1.2-.5.3-1 .5-1.5.3-1 .4-2.1.5-3.2v-1.6c-.1-1.1-.2-2.1-.5-3.2-.1-.5-.3-1-.5-1.5-.5-1.5-1.3-2.8-2.2-4.1-.2-.2-.3-.4-.5-.6-1-1.2-2.1-2.2-3.4-3.1-.4-.3-.9-.5-1.3-.8s-.9-.5-1.4-.7c-1.9-.8-4-1.2-6.2-1.2h-16.1c-10.2-.6-31.9-4.2-31.9-32v-48c0-64-64.1-63.9-64.1-63.9l-31.9-.2z" />',viewBox:"0 0 512 512"},Kc={name:"js",content:'<path d="M478.4 96C471 59.5 438.7 32 400 32H208c-38.7 0-71 27.5-78.4 64-1.1 5.2-1.6 10.5-1.6 16v272H32v16c0 5.5.5 10.8 1.6 16 7.4 36.5 39.7 64 78.4 64h192c38.7 0 71-27.5 78.4-64 1.1-5.2 1.6-10.5 1.6-16V128h96v-16c0-5.5-.5-10.8-1.6-16zm-124.8 0c-1.1 5.2-1.6 10.5-1.6 16v288c0 5.6-1 11-2.8 16-6.6 18.6-24.4 32-45.2 32-20.9 0-38.7-13.4-45.2-32-1.8-5-2.8-10.4-2.8-16v-16h-96V112c0-5.6 1-11 2.8-16 6.6-18.6 24.4-32 45.2-32h160c-7 9.3-12 20.2-14.4 32zM320 192H192v-32h128v32zm0 64H192v-32h128v32zm0 64H192v-32h128v32z" />',viewBox:"0 0 512 512"},Wc={name:"exe",content:'<path d="M64 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H64zm160 32c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM64 160h384v288H64V160z" />',viewBox:"0 0 512 512"},Uc={name:"csproj",content:'<path d="M64 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H64zm157.9 32.1c19.3-1.2 35.2 14.7 34 34-1 15.9-13.9 28.8-29.9 29.9-19.3 1.2-35.2-14.7-34-34 1.1-16 14-28.9 29.9-29.9zm96 0c19.3-1.2 35.2 14.7 34 34-1 15.9-13.9 28.8-29.9 29.9-19.3 1.2-35.2-14.7-34-34 1.1-16 14-28.9 29.9-29.9zm96 0c19.3-1.2 35.2 14.7 34 34-1 15.9-13.9 28.8-29.9 29.9-19.3 1.2-35.2-14.7-34-34 1.1-16 14-28.9 29.9-29.9zM64 160h384v288H64V160zm119.7 64c-17.3 0-32.7 3.5-46 10.4s-23.6 16.8-30.9 29.5c-7.3 12.8-10.9 27.3-10.9 43.6 0 15.2 3.3 28.6 9.8 40.2s15.9 20.6 28.3 26.8c12.4 6.3 27 9.4 44.1 9.4 17.3 0 32.6-2.3 45.9-6.9v-41.5c-11.9 5.8-23.7 8.6-35.4 8.6-12.6 0-22.8-3.6-30.3-10.7s-11.4-16.9-11.4-29.2c0-12.4 3.8-22.3 11.3-29.6s17.9-10.9 31-10.9c6.3 0 12.6.7 18.8 2.1s11.5 3.5 16 6v-43c-13.1-3.2-26.4-4.8-40.3-4.8zm114.2 0-8.3 39h-17.4l-5.7 29H284l-6.1 26H262l-6.1 29h15.4l-7.7 37h30.9l7.9-37h26.8l-7.7 37h30.4l8.2-37h16.3l7.2-29h-17.2l6.1-26h15l6.3-29h-14.7l8.3-39H356l-8.3 39h-26.4l8.3-39h-31.7zm16.8 68h26.8l-6.3 27h-26.7l6.2-27z" />',viewBox:"0 0 512 512"},qc={name:"vbproj",content:'<path d="M64 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H64zm160 32c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM64 160h384v288H64V160zm32 64 51.6 160h54.1L254 224h-50.2L180 321.9c-1.9 7.4-3 13.5-3.5 18.5h-1.1c-.2-3.9-1.3-9.9-3.2-17.9L147.8 224H96zm183.3 0v160h73c20.4 0 36.2-4.3 47.2-12.8s16.5-20.6 16.5-36.3c0-5.8-1.6-11.4-4.9-16.8s-7.9-9.9-14-13.5-12.8-5.9-20.4-6.8v-.4c6.5-1.3 12.5-3.6 18-7.1s9.5-7.6 12.2-12.2c2.7-4.6 4-9.8 4-15.3 0-25.8-21.2-38.7-63.7-38.7h-67.9v-.1zm48.2 32.3h8.9c15.6 0 23.3 5 23.3 14.8 0 4.5-1.7 8.3-5.1 11.1s-7.8 4.3-13.2 4.3h-14l.1-30.2zm0 62.5h19c5.5 0 9.9 1.5 13.3 4.4s5 6.8 5 11.4c0 5.2-1.9 9.3-5.7 12.3s-9 4.5-15.5 4.5h-16.1v-32.6z" />',viewBox:"0 0 512 512"},$c={name:"cs",content:'<path d="M165.9 128c-26.4 0-49.8 5.6-70.1 16.7s-36 26.8-47.1 47.2S32 235.5 32 261.6c0 24.3 5 45.7 14.9 64.3s24.3 32.9 43.1 43 41.2 15.1 67.2 15.1c26.4 0 46.6-3.7 65.8-11v-66.5c-17.1 9.2-32 13.8-49.8 13.8-19.3 0-34.7-5.7-46.2-17.2s-17.3-27.1-17.3-46.9c0-19.9 5.8-35.7 17.3-47.3s27.3-17.4 47.2-17.4c9.6 0 16 1.2 25.4 3.5s17.5 5.5 24.4 9.7v-68.9c-19.7-5.2-37-7.8-58.1-7.8zm158.8 0-13.3 62h-29l-9.3 46h28.6l-10.3 43h-25.6l-9.8 46h25.2l-12.5 59h50l12.9-59h43.5l-12.5 59h49.2l13.3-59h26.8l11.5-46h-28.2l10.3-43h24.2l10.3-46h-23.7l13.5-63h-51.7l-13.5 63h-43.5l13.5-63h-50l.1 1zm26.9 108H395l-10.3 43h-43.3l10.2-43z" />',viewBox:"0 0 512 512"},Gc={name:"vb",content:'<path d="m32 160 73.2 224h76.7L256 160h-71.1l-33.7 137c-2.6 10.3-4.3 19-4.9 25.9h-1.6c-.3-5.5-1.8-13.9-4.6-25L105.5 160H32zm252 0v224h104.6c29.3 0 51.9-6 67.7-17.9 15.8-11.9 23.7-28.9 23.7-50.8 0-8.1-2.4-16-7-23.5-4.7-7.6-11.4-13.9-20-18.9-8.7-5-18.4-8.2-29.3-9.5v-.6c9.4-1.8 18-5.1 25.8-10 7.8-4.9 13.7-10.6 17.5-17.1 3.8-6.5 5.8-13.7 5.8-21.5 0-36.1-30.5-54.2-91.4-54.2H284zm69.1 45.2h12.8c22.3 0 33.4 6.9 33.4 20.8 0 6.4-2.5 11.5-7.4 15.5s-11.2 6-18.9 6h-20l.1-42.3zm0 87.6h27.2c7.9 0 14.3 2.1 19 6.2s7.2 9.5 7.2 15.9c0 7.3-2.7 13-8.1 17.2-5.4 4.2-12.9 6.3-22.2 6.3h-23v-45.6h-.1z" />',viewBox:"0 0 512 512"},Zc={name:"sln",content:'<path d="M352 32 172.5 211.5 64 128l-32 32v192l32 32 108.5-83.5L352 480l128-32V64L352 32zM64 320V192l64 64-64 64zm166.4-64L352 162.5v187.1L230.4 256z" />',viewBox:"0 0 512 512"},Yc={name:"cloud",content:'<path d="M442.2 243.6c3.7-11.2 5.8-23.2 5.8-35.6 0-61.9-50.1-112-112-112-37.8 0-71.3 18.8-91.6 47.5-15-9.8-33-15.5-52.3-15.5-52.9 0-95.8 42.9-95.8 95.8 0 1.8.1 3.6.2 5.5C58.9 242.3 32 278 32 320c0 53 43 96 96 96h256c53 0 96-43 96-96 0-31.1-14.8-58.8-37.8-76.4z" />',viewBox:"0 0 512 512"},Jc={name:"file-horizontal",content:'<path d="M384 64H64c-17.7 0-32 14.3-32 32v320c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160l-96-96zm64 352H64V96h288v96h96v224z" />',viewBox:"0 0 512 512"},Xc={name:"subreport",content:'<path d="M448 480c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32v-96h32v96h288V96H128v64H96V96c0-17.7 14.3-32 32-32h288c17.7 0 32 14.3 32 32v384zM63.9 32l254.3-.2L286.4 0 63.8.2C46.2.2 32 14.4 32 32l.1 128H64l-.1-128zm.1 351H32v32c0 17.7 14.3 32 32 32v-64zm-32-62.9S64 288 95 288v32l65-48.1L96 224v32c-32.1 0-64 32.1-64 64.1zM352 384l-160 .1V416l160-.1V384zm-96-192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64h-64v-64zm32-32v64h64c0-35.3-28.7-64-64-64z" />',viewBox:"0 0 512 512"},Qc={name:"data",content:'<path d="M448 125.6v.3c-.5 33.9-86.3 61.3-192 61.3S64.5 159.8 64 125.9v-.3c0-34 86-61.6 192-61.6s192 27.6 192 61.6zm0 46.4v.3c-.5 33.9-86.3 61.3-192 61.3S64.5 206.2 64 172.3v-.3l1 86.8v.5c.5 33.7 85.8 61 191 61s190.5-27.3 191-61v-.5l1-86.8zm0 128v.3c-.5 33.9-86.3 61.3-192 61.3S64.5 334.2 64 300.3v-.3l1 86.8v.5c.5 33.7 85.8 61 191 61s190.5-27.3 191-61v-.5l1-86.8z" />',viewBox:"0 0 512 512"},eu={name:"file-header",content:'<path d="M416 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm0 416H96V64h320v384zm-32-64H128v-32h256v32zm0-96H128v32h256v-32zm0-160H128v96h256v-96z" />',viewBox:"0 0 512 512"},tu={name:"file-footer",content:'<path d="M416 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32zm0 416H96V64h320v384zm-32-224H128v-32h256v32zm0-96H128v32h256v-32zm0 160H128v96h256v-96z" />',viewBox:"0 0 512 512"},nu={name:"group-header-section",content:'<path d="m128 448 32 32H32V32h128l-32 32H64v384h64zm320-320H128v96h320v-96zm0 160H128v32h320v-32zm0 64H128v32h320v-32z" />',viewBox:"0 0 512 512"},ou={name:"group-footer-section",content:'<path d="m128 448 32 32H32V32h128l-32 32H64v384h64zm320-160H128v96h320v-96zm0-160H128v32h320v-32zm0 64H128v32h320v-32z" />',viewBox:"0 0 512 512"},ru={name:"page-header-section",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-32-160H128v-96h256v96zm0 96H128v32h256v-32zm0-64H128v32h256v-32z" />',viewBox:"0 0 512 512"},iu={name:"page-footer-section",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zm-31-32H129v-96h256v96zm0-160H129v32h256v-32zm0-64H129v32h256v-32z" />',viewBox:"0 0 512 512"},au={name:"detail-section",content:'<path d="M96 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H96zm320 416H96V64h320v384zm-33-224h-63v-32h63v32zm-96-32h-63v32h63v-32zm-96 0h-63v32h63v-32zm192 96h-63v32h63v-32zm-96 0h-63v32h63v-32zm-96 0h-63v32h63v-32z" />',viewBox:"0 0 512 512"},su={name:"toc-section",content:'<path d="M96 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H96zm320 416H96V64h320v384zm-32-288H224v-32h160v32zm-64 64h-96v-32h96v32zm0 64h-96v-32h96v32zm64 64H224v-32h160v32z" />',viewBox:"0 0 512 512"},lu={name:"group-section",content:'<path d="m128 416 32 32H32V32h128l-32 32H64v352h64zm320-288H128v32h320v-32zm0 192H128v32h320v-32zm0-96H128v32h320v-32z" />',viewBox:"0 0 512 512"},cu={name:"parameters",content:'<path d="M96 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H96zm320 416H96V64h320v384zM285.3 160c-8.9-25-36.3-38.1-61.4-29.2-13.7 4.8-24.4 15.6-29.2 29.2H128v32h66.7c8.9 25 36.3 38.1 61.4 29.2 13.7-4.8 24.4-15.6 29.2-29.2H384v-32h-98.7zM240 192c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm109.3 96c-8.9-25-36.3-38.1-61.4-29.2-13.7 4.8-24.4 15.6-29.2 29.2H128v32h130.7c8.9 25 36.3 38.1 61.4 29.2 13.7-4.8 24.4-15.6 29.2-29.2H384v-32h-34.7zM304 320c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z" />',viewBox:"0 0 512 512"},uu={name:"data-csv",content:'<path d="M415.9 93.6v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.6 127.8 32.1 93.9v-.3C32.1 59.6 118 32 224 32s191.9 27.6 191.9 61.6zm0 46.4v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.5 174.2 32 140.3v-.3l.1 86.8v.3c.5 33.9 86.3 61.3 191.9 61.3s191.4-27.4 192-61.3v-.3l-.1-86.8zm.1 180-.1-52v.3c-.3 21.7-35.7 40.8-88.9 51.7h89zM271 420.8c-7.7 4.5-16.4 6.8-25.4 6.7-9.7 0-17.4-3-23.1-9s-8.6-14.1-8.6-24.3c0-10.6 3-19 9.1-25.2 6.1-6.2 14-9.3 23.9-9.3 8.4-.1 16.7 2 24 6.3v-22.8c-7-2.6-15.7-3.9-25.9-3.9-16.6 0-30 5.2-40.4 15.7-10.4 10.5-15.6 24.1-15.6 40.9 0 15.8 4.6 28.4 13.8 37.9 9.2 9.5 21.9 14.2 38 14.2 12.3 0 22.3-1.9 30-5.6l.2-21.6zm36.6 25.7c5.4 1 10.9 1.5 16.4 1.5 5.4 0 10.7-.5 16-1.6 4.7-.9 9.2-2.7 13.3-5.3 3.8-2.4 6.8-5.8 9-9.7 2.2-4 3.3-8.9 3.3-14.8.1-3.8-.6-7.6-1.9-11.2-1.3-3.2-3.1-6.1-5.5-8.5-2.6-2.6-5.5-4.9-8.6-6.7-3.6-2.1-7.4-4-11.3-5.6-3.1-1.3-5.8-2.5-8.3-3.7-2.2-1-4.3-2.3-6.2-3.7-1.5-1.1-2.9-2.4-4-4-.9-1.4-1.4-3-1.4-4.7 0-1.5.4-3.1 1.2-4.4.9-1.4 2.1-2.5 3.5-3.3 1.7-1 3.6-1.7 5.6-2.2 2.4-.5 4.9-.8 7.3-.8 2.1 0 4.1.2 6.2.4 2.2.3 4.4.8 6.5 1.4 2.2.6 4.3 1.4 6.4 2.3 2 .9 3.9 2 5.8 3.2v-21.9c-3.8-1.4-7.7-2.4-11.7-3-4.8-.7-9.7-1-14.5-1-5.3 0-10.6.6-15.8 1.8-4.7 1.1-9.1 3-13.1 5.6-3.7 2.5-6.8 5.8-9 9.7-2.3 4.3-3.4 9.2-3.3 14.1-.2 6.5 2 12.8 6 17.9 4 4.9 10.1 9.1 18.3 12.5 3.2 1.3 6.2 2.6 9 3.9 2.5 1.1 4.9 2.5 7.2 4 1.8 1.2 3.5 2.7 4.8 4.5 1.2 1.6 1.8 3.5 1.8 5.5 0 1.5-.4 2.9-1.1 4.2-.8 1.4-2 2.5-3.3 3.4-1.7 1-3.6 1.8-5.6 2.2-2.6.6-5.2.8-7.8.8-5.1 0-10.2-.9-15.1-2.7-5.1-1.8-9.8-4.5-13.9-8V442c4.5 2.3 9 3.8 13.8 4.5zm147.7-105.4-21.8 72.8c-1.1 3.5-1.8 7.1-2.3 10.8h-.4c-.3-3.6-1.1-7.1-2.1-10.5l-21.9-73.1h-25.5l35.7 105h26.8l36.2-105h-24.7zm-295.3-15C85.7 317.7 32.4 295 32 268.3v-.3l.1 86.8v.3c.4 26.7 53.7 49.3 127.9 57.8v-86.8z" />',viewBox:"0 0 512 512"},du={name:"data-json",content:'<path d="M415.9 93.6v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.6 127.8 32.1 93.9v-.3C32.1 59.6 118 32 224 32s191.9 27.6 191.9 61.6zm0 46.4v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.5 174.2 32 140.3v-.3l.1 86.8v.3c.5 33.9 86.3 61.3 191.9 61.3s191.4-27.4 192-61.3v-.3l-.1-86.8zm.1 180-.1-52v.3c-.3 21.7-35.7 40.8-88.9 51.7h89zm-251.3 21.1h-23.6v62.4c0 16-5.4 24-16.2 24-4.9.1-9.7-1.5-13.6-4.5v22.2c4.9 1.9 10.1 2.9 15.3 2.8 12.4 0 21.8-3.7 28.3-11.2s9.8-18.2 9.8-32.3v-63.4zm31.7 105.4c5.4 1 10.9 1.5 16.4 1.5 5.4 0 10.7-.5 16-1.6 4.7-.9 9.2-2.7 13.3-5.3 3.8-2.4 6.8-5.8 9-9.7 2.2-4 3.3-8.9 3.3-14.8.1-3.8-.6-7.6-1.9-11.2-1.3-3.2-3.1-6.1-5.5-8.5-2.6-2.6-5.4-4.9-8.6-6.7-3.6-2.1-7.4-4-11.3-5.6-3.1-1.3-5.8-2.5-8.3-3.7-2.2-1-4.3-2.3-6.2-3.7-1.6-1.1-2.9-2.4-4-4-.9-1.4-1.4-3-1.4-4.7 0-1.5.4-3.1 1.2-4.4.9-1.4 2.1-2.5 3.5-3.3 1.7-1 3.6-1.7 5.6-2.2 2.4-.5 4.9-.8 7.4-.7 2.1 0 4.1.1 6.2.4 2.2.3 4.4.8 6.6 1.4 2.2.6 4.3 1.4 6.4 2.3 2 .9 3.9 2 5.8 3.2v-21.9c-3.8-1.4-7.7-2.4-11.7-3-4.8-.7-9.7-1-14.5-1-5.3 0-10.6.6-15.8 1.8-4.7 1.1-9.1 3-13.1 5.6-3.7 2.5-6.8 5.8-9 9.7-2.3 4.3-3.4 9.2-3.3 14.1-.2 6.5 1.9 12.8 6 17.9 4 4.9 10.1 9.1 18.4 12.5 3.2 1.3 6.2 2.6 9 3.9 2.5 1.1 4.9 2.5 7.2 4 1.8 1.2 3.5 2.7 4.8 4.5 1.2 1.6 1.8 3.5 1.8 5.5 0 1.5-.4 2.9-1.1 4.2-.8 1.4-2 2.5-3.3 3.4-1.7 1-3.6 1.8-5.6 2.2-2.6.6-5.2.8-7.8.8-5.1 0-10.3-.9-15.1-2.7-5.1-1.8-9.7-4.5-13.8-8v23.4c4.1 2.2 8.7 3.7 13.4 4.4zm157.3-13.7c9.6-10.1 14.4-23.4 14.4-39.9 0-16.1-4.6-29-13.9-38.8-9.3-9.8-21.4-14.7-36.4-14.7-15.9 0-28.6 5.1-38.2 15.4-9.6 10.3-14.4 23.7-14.4 40.3 0 15.7 4.7 28.5 14.2 38.3s21.7 14.7 36.8 14.7c15.4-.1 27.9-5.2 37.5-15.3zm-17.5-64c4.6 6 6.9 14.5 7 25.4 0 10.4-2.4 18.6-7.2 24.5s-11.3 8.8-19.4 8.8c-7.5.2-14.6-3.2-19.2-9.1-4.9-6.1-7.3-14.3-7.3-24.7 0-10.2 2.4-18.5 7.3-24.7s11.5-9.3 19.8-9.3c8 0 14.4 3.1 19 9.1zM480 341.1h-22.3v58.1c-.1 4.8.1 9.6.6 14.4h-.3c-1.6-2.8-3.4-5.7-5.3-8.6L411 341.1h-25.5v105h22.3v-57.7c0-7.6-.2-13.3-.6-17h.3c1.6 3 3.4 5.9 5.3 8.7l43.3 66H480v-105zM96 313.9c-39-11.2-63.7-27.5-64-45.6v-.3l.1 86.8v.3c.3 18.1 24.9 34.3 63.9 45.6v-86.8z" />',viewBox:"0 0 512 512"},pu={name:"data-sql",content:'<path d="M415.9 93.6v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.6 127.8 32.1 93.9v-.3C32.1 59.6 118 32 224 32s191.9 27.6 191.9 61.6zm0 46.4v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.5 174.2 32 140.3v-.3l.1 86.8v.3c.5 33.9 86.3 61.3 191.9 61.3s191.4-27.4 192-61.3v-.3l-.1-86.8zm.1 180-.1-52v.3c-.3 21.7-35.7 40.8-88.9 51.7h89zM209.1 448.6c5.4 1 10.9 1.5 16.4 1.5 5.4 0 10.7-.5 16-1.6 4.7-.9 9.2-2.7 13.3-5.3 3.8-2.4 6.8-5.8 9-9.7 2.2-4 3.3-8.9 3.3-14.8.1-3.8-.6-7.6-1.9-11.2-1.3-3.2-3.1-6.1-5.5-8.5-2.5-2.6-5.4-4.9-8.6-6.7-3.6-2.1-7.4-4-11.3-5.6-3.1-1.3-5.8-2.5-8.3-3.7-2.2-1-4.3-2.3-6.2-3.7-1.6-1.1-2.9-2.4-4-4-.9-1.4-1.4-3-1.4-4.7 0-1.5.4-3.1 1.3-4.4.9-1.4 2.1-2.5 3.5-3.3 1.7-1 3.6-1.7 5.6-2.2 2.4-.5 4.9-.8 7.3-.8 2.1 0 4.1.2 6.2.4 2.2.3 4.4.8 6.6 1.4 2.2.6 4.3 1.4 6.4 2.3 2 .9 3.9 2 5.8 3.2v-21.9c-3.8-1.4-7.7-2.4-11.7-3-4.8-.7-9.7-1-14.5-1-5.3 0-10.6.6-15.8 1.8-4.7 1.1-9.1 3-13.1 5.6-3.7 2.5-6.8 5.8-9 9.7-2.3 4.3-3.4 9.2-3.3 14.1-.2 6.5 1.9 12.8 6 17.9 4 4.9 10.1 9.1 18.4 12.5 3.2 1.3 6.2 2.6 9 3.9 2.5 1.1 4.9 2.4 7.2 4 1.8 1.2 3.5 2.7 4.8 4.5 1.2 1.6 1.8 3.5 1.8 5.5 0 1.5-.4 2.9-1.1 4.2-.8 1.4-2 2.5-3.3 3.4-1.7 1-3.6 1.8-5.6 2.2-2.6.6-5.2.8-7.8.8-5.1 0-10.3-.9-15.1-2.7-5.1-1.8-9.7-4.5-13.8-8v23.4c4 2.3 8.6 3.8 13.4 4.5zm172.8-21.2c5.7-9 8.5-19.8 8.5-32.4 0-16.1-4.6-29-13.9-38.8s-21.3-14.7-36.2-14.8c-16 0-28.8 5.1-38.5 15.4s-14.4 23.7-14.4 40.3c-.1 7 1.1 13.9 3.4 20.4 2.1 6.1 5.4 11.7 9.6 16.6 4.2 4.7 9.3 8.6 15 11.2 6.1 2.8 12.8 4.4 19.5 4.5 3.8 4.2 7.4 8.1 10.9 11.8 3.3 3.5 6.9 6.7 10.8 9.6 3.6 2.6 7.4 4.8 11.6 6.4 4.2 1.6 8.7 2.4 13.2 2.3 3.4 0 6.7-.2 10.1-.7 2.2-.3 4.3-.8 6.5-1.3V458c-.8.3-1.6.6-2.4.8l-2.7.6c-.9.2-1.9.3-2.8.4s-1.8.1-2.6.1c-2.7 0-5.4-.2-8-.6-2.5-.4-4.9-1.1-7.1-2.1-2.5-1.1-4.8-2.5-6.9-4.2-2.6-2-5-4.3-7.3-6.7 9.9-3.4 18.2-10.1 23.7-18.9zm-23.3-56.3c4.6 6 6.9 14.5 6.9 25.3 0 10.4-2.4 18.6-7.2 24.5-4.8 6-11.3 8.9-19.4 8.8-7.5.2-14.7-3.2-19.3-9.1-4.8-6.1-7.3-14.3-7.3-24.7 0-10.4 2.4-18.6 7.3-24.7 4.9-6.2 11.5-9.4 19.8-9.4 8.3.1 14.6 3.1 19.2 9.3zm121.4 58h-38.9v-85.8h-23.7v105H480v-19.2zm-320-103C85.7 317.7 32.4 295 32 268.3v-.3l.1 86.8v.3c.4 26.7 53.7 49.3 127.9 57.8v-86.8z" />',viewBox:"0 0 512 512"},hu={name:"data-web",content:'<path d="M415.9 93.6v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.6 127.8 32.1 93.9v-.3C32.1 59.6 118 32 224 32s191.9 27.6 191.9 61.6zm0 46.4v.3c-.5 33.9-86.3 61.3-191.9 61.3S32.5 174.2 32 140.3v-.3l.1 86.8v.3c.5 33.9 86.3 61.3 191.9 61.3s191.4-27.4 192-61.3v-.3l-.1-86.8zm.1 180-.1-52v.3c-.3 21.7-35.7 40.8-88.9 51.7h89zm-151.1 23-14.5 70.1c-.8 3.9-1.3 7.8-1.5 11.7h-.3c-.3-3.8-.9-7.6-1.7-11.3L229.6 343h-25.3l-19.1 69.6c-1.1 4-1.9 8.1-2.1 12.3h-.4c-.2-4-.6-8-1.4-12l-14.8-70h-25.8l27.6 105h27.3l17.9-67.4c1-3.9 1.6-7.8 1.9-11.8h.3c.1 4 .7 7.9 1.7 11.8l17.4 67.4H261l27.8-105h-23.9zm109.8 85.8h-39.3v-24h34.4v-19.2h-34.4v-23.4h36.9V343h-60.6v105h63v-19.2zm66.8 19.2c11.9 0 21.3-2.8 28.2-8.5 6.9-5.6 10.3-13.3 10.3-22.9.1-6.3-2.3-12.3-6.7-16.8-4.5-4.6-10.4-7.3-17.9-8.3v-.3c5.6-1.5 10.8-4.5 14.7-8.9 3.8-4 5.8-9.4 5.8-14.9 0-7.8-3.2-13.9-9.5-18.2-6.3-4.3-15.3-6.5-27-6.5h-38.3v105h40.4zm-7.9-87.6c11.5 0 17.3 3.9 17.3 11.6.2 3.7-1.4 7.3-4.2 9.8-2.8 2.4-6.6 3.6-11.5 3.5h-10.4v-24.9h8.8zm4.1 42.5c5.5 0 9.7 1.2 12.8 3.6 3 2.4 4.7 6 4.6 9.9.2 4-1.5 7.9-4.6 10.4-3.1 2.5-7.4 3.8-12.9 3.8h-12.8v-27.7h12.9zM96 313.9c-39-11.2-63.7-27.5-64-45.6v-.3l.1 86.8v.3c.3 18.1 24.9 34.3 63.9 45.6v-86.8z" />',viewBox:"0 0 512 512"},fu={name:"group-collection",content:'<path d="M448 352H160v-32h288v32zm0 32H160v32h288v-32zm0-288H160v32h288V96zm0 64H160v32h288v-32zM64 192V96h64l32-32H32v160h128l-32-32H64zm0 224v-96h64l32-32H32v160h128l-32-32H64z" />',viewBox:"0 0 512 512"},mu={name:"parameter-boolean",content:'<path d="M64 96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zm384 288H64V128h384v256zM207 212h-39v114h-32V212H96v-26h111v26zm96.8-37-68.1 163h-27.5l67.9-163h27.7zM416 212h-49v34h45v26h-45v54h-32V186h81v26z" />',viewBox:"0 0 512 512"},vu={name:"parameter-date-time",content:'<path d="M416 202.8V128c0-17.7-14.3-32-32-32H64c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h304c61.9 0 112-50.1 112.1-111.9 0-43.3-25-82.8-64.1-101.3zM64.1 384 64 192h304c-61.9 0-112 50.2-112 112 0 30.1 12.1 58.9 33.6 80H64.1zm303.9 0c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80zm48-96v32h-64v-64h32v32h32zm-224 32H96v-96h96v96z" />',viewBox:"0 0 512 512"},gu={name:"parameter-float",content:'<path d="M64 96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zm384 288H64V128h384v256zm-276-55.6c-33.3 0-50-23.4-50-70.2 0-24.3 4.5-42.8 13.5-55.5s22.1-19.1 39.2-19.1c32.6 0 48.8 23.8 48.8 71.4 0 23.7-4.4 41.9-13.3 54.5-8.9 12.6-21.6 18.9-38.2 18.9zm1.4-121.3c-13.3 0-20 16.8-20 50.3 0 31.6 6.5 47.4 19.6 47.4 12.8 0 19.1-16.3 19.1-48.8s-6.2-48.9-18.7-48.9zm83.8 121.3c-4.7.1-9.2-1.5-12.7-4.7-3.3-2.9-5.2-7.1-5.1-11.5-.1-4.4 1.8-8.7 5.2-11.5 3.6-3 8.3-4.6 13-4.5 5.3 0 9.6 1.5 12.9 4.5 6.4 5.9 6.7 15.9.8 22.2l-.9.9c-3.3 3.1-7.8 4.6-13.2 4.6zM390 326h-88v-24h29v-87.2l-30 6.4v-25.5l60-12.1V302h29v24z" />',viewBox:"0 0 512 512"},yu={name:"parameter-integer",content:'<path d="M64 96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zm384 288H64V128h384v256zm-262.6-58H96.8v-24.4h29v-87.2L96 220.8v-25l60.6-12.2v118h28.8V326zm59.2-26.2v.6h56.8V326h-92.2v-24l40.1-38.4c8.1-7.7 13.7-14.2 17-19.5 3.2-4.9 4.9-10.7 4.9-16.6 0-12.9-6.9-19.3-20.8-19.3-12 0-23.6 4.8-34.6 14.4v-27.2c12.2-7.9 25.9-11.8 41.2-11.8 14.3 0 25.5 3.6 33.5 10.8 8 7.2 12.1 16.9 12.1 29.1 0 16.3-9.8 33.2-29.4 50.7l-28.6 25.6zm82.1 21.6v-26.9c9.4 6.8 20.3 10.3 32.8 10.3 7.9 0 14-1.7 18.4-5.1 4.4-3.4 6.6-8.1 6.6-14.2 0-6.2-2.7-11.1-8.1-14.5-5.4-3.4-12.9-5.1-22.4-5.1h-12.6v-23.6H353c18.2 0 27.4-6.1 27.4-18.2 0-11.4-7-17.1-21-17.1-9.4 0-18.5 3-27.3 9.1V191c9.8-4.9 21.3-7.4 34.4-7.4 14.3 0 25.5 3.2 33.5 9.7 7.8 6 12.2 15.3 12 25.1 0 18.3-9.3 29.8-27.8 34.4v.5c9.9 1.2 17.7 4.8 23.4 10.8 5.7 5.9 8.8 13.8 8.6 21.9 0 13.1-4.8 23.4-14.4 31.1s-22.8 11.4-39.6 11.4c-14.7-.1-26.4-2.4-35.5-7.1z" />',viewBox:"0 0 512 512"},bu={name:"parameter-string",content:'<path d="M127.3 328.9c13.2 0 23.1-5.6 29.8-16.8h.4v14.4h29.2v-59.8c0-28.5-14.3-42.7-42.8-42.7-6.9.1-13.7.9-20.4 2.5-7.4 1.7-13.3 3.6-17.6 5.9v23.2c10.8-7.1 22.1-10.6 34-10.6s17.8 5.5 17.8 16.4l-27.2 3.6c-23 3-34.5 14.2-34.5 33.6 0 9.2 2.8 16.5 8.3 22s13.2 8.3 23 8.3zm12.2-47.5 18.2-2.3v6.7c0 6.1-1.8 11.2-5.5 15.2-3.6 4-8.8 6.2-14.2 6-4.2 0-7.5-1.1-9.9-3.4-2.4-2.2-3.8-5.4-3.7-8.6 0-7.7 5-12.3 15.1-13.6zm209 33.5c-9.5-9.3-14.3-21.3-14.3-36 0-17 5.1-30.4 15.3-40.2 10.2-9.8 23.8-14.7 40.9-14.7 11.8 0 20.3 1.6 25.6 4.7v26.2c-6.2-4.7-13.8-7.3-21.6-7.2-8.9 0-15.9 2.6-21 7.8-5.2 5.2-7.8 12.3-7.8 21.4 0 8.9 2.5 15.8 7.4 20.9 4.9 5 11.8 7.6 20.4 7.6 7.7 0 15.2-2.4 22.6-7.3v24.8c-7 4-17 6-30.2 6-15.3 0-27.8-4.7-37.3-14zm-104 .5h.4c6.3 9.4 15.6 14.1 27.9 14.1 13.6 0 24.5-5 32.6-15.1 8.1-10.1 12.2-23.5 12.2-40.1 0-15.3-3.5-27.4-10.5-36.3s-16.9-13.3-29.8-13.3c-14.1 0-24.9 5.8-32.5 17.5h-.4V179h-30.9v148h30.9l.1-11.6zm-.5-42.2c0-7.4 2-13.4 6.1-18.1 3.8-4.5 9.5-7.1 15.4-6.9 6.6 0 11.6 2.3 15.2 7 3.5 4.7 5.3 11.1 5.3 19.4 0 10-1.9 17.7-5.8 23.1-3.9 5.4-9.3 8.2-16.4 8.2-5.5.1-10.7-2.2-14.3-6.4-3.7-4.2-5.6-9.6-5.6-16l.1-10.3zM448 96H64c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32zm0 288H64V128h384v256z" />',viewBox:"0 0 512 512"},wu={name:"toc-section-level",content:'<path d="M96 32c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H96zm320 416H96V64h320v384zm-32-288H192v-32h192v32zm0 64h-96v-32h96v32zm0 64h-96v-32h96v32zm0 64h-96v-32h96v32zm-192-32v-96l64 48-64 48z" />',viewBox:"0 0 512 512"},ku={name:"inherited",content:'<path d="M448 320v128H320V320h30.4L256 244.5 161.6 320H192v128H64V320h46.4l120-96H176V64h160v160h-54.4l120 96H448z" />',viewBox:"0 0 512 512"},xu={name:"file-video",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM304 304.8v-.8c0-8.8-7.2-16-16-16h-10.1c24.2-3.1 42.8-24.3 41.8-49.6-1-24.8-21.2-45-46-46-27.4-1.1-49.9 20.8-49.9 48 0 24.4 18.2 44.6 41.8 47.6h-70.4c17.2-1.7 30.3-16.9 28.7-34.8-1.4-15.5-14.1-27.9-29.6-28.9-18.7-1.3-34.2 13.5-34.2 31.9 0 16.6 12.7 30.2 28.8 31.8H176c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h111.7c8.4 0 15.6-6.3 16.3-14.6.2-3.1-.3-6.1-1.7-8.7l1.8 1.1 44.9 27.1c1.3.8 2.7 1.2 4.1 1.2 1.3 0 2.7-.3 3.9-1 2.5-1.4 4.1-4.1 4.1-7v-95.8c0-2.9-1.5-5.5-4-6.9s-5.5-1.5-8 0L304 304.8zM193.5 272c-.5.1-1 .1-1.5.1s-1 0-1.5-.1h-.2c-8.6-.8-15.1-8.5-14.3-17.2.6-7.9 7.2-14.2 15.1-14.6 9.2-.5 16.8 6.9 16.8 16 .1 8.1-6.1 15-14.4 15.8zm82.3-.3c-.3 0-.6.1-.9.1-1 .1-2.1.2-3.1.2s-2.1 0-3.1-.2c-.3 0-.6-.1-.9-.1-15.9-2-27.9-15.7-27.9-31.7 0-17.6 14.4-32 32-32s32 14.4 32 32c-.1 16.1-12.1 29.7-28.1 31.7z" />',viewBox:"0 0 512 512"},zu={name:"file-audio",content:'<path d="M218 353.8c-5.5-2.9-12.1-4.5-19-4.5-21 0-38 14.8-38 33.2s17 33.2 38 33.2 38-14.8 38-33.2V256.6l96-22.6v87.8c-5.5-2.9-12.1-4.5-19-4.5-21 0-38 14.8-38 33.2s17 33.2 38 33.2 38-14.8 38-33.2V192.2l-134 31.5v130.1zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Cu={name:"file-image",content:'<path d="M298.7 385.2S272.2 288 213.1 288s-85 128-85 128h256s-11.9-78.7-42.7-78.7-42.7 47.9-42.7 47.9zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM288 256c0 17.7 14.3 32 32 32s32-14.3 32-32-14.3-32-32-32-32 14.3-32 32z" />',viewBox:"0 0 512 512"},Su={name:"file-presentation",content:'<path d="M127.5 214.4c0 9.9 6.1 18.2 14.5 21.2v113.1c0 12.4 9.6 22.4 21.3 22.4H246v11.8l-13.6 14.6c-1.9 2-3 4.8-3 8 0 6.3 4.7 11.3 10.5 11.3 2.8 0 5.5-1.3 7.4-3.3.1-.1.2-.3.4-.4l8.9-9.6 8.9 9.6c.1.1.2.3.4.4 1.9 2 4.5 3.3 7.4 3.3 5.8 0 10.5-5 10.5-11.3 0-3.1-1.2-6-3-8L267 382.8V371h78.8c11.1 0 20.1-9.3 20.9-21h1.3V235.9c9-2.6 15.7-11.3 15.7-21.6 0-12.4-9.5-22.4-21.3-22.4H148.8c-11.8.1-21.3 10.1-21.3 22.5zM299 237h43v89h-43v-89zm-64 26h43v63h-43v-63zm-64 18h43v45h-43v-45zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Iu={name:"file-data",content:'<path d="M352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288zM128 229.3v149.4c0 20.6 19.1 37.3 42.7 37.3h170.6c23.6 0 42.7-16.7 42.7-37.3V229.3c0-20.6-19.1-37.3-42.7-37.3H170.7c-23.6 0-42.7 16.7-42.7 37.3zM247 379h-76v-47h76v47zm18-112h76v47h-76v-47zm0 65h76v47h-76v-47zm-18-19h-76v-47h76v47z" />',viewBox:"0 0 512 512"},Mu={name:"file-disc-image",content:'<path d="M256.1 322.7c3.7 0 7.2-1.1 10.1-3s5.2-4.5 6.7-7.6c1.2-2.5 1.9-5.2 1.9-8.1 0-10.3-8.4-18.7-18.7-18.7-2.8 0-5.4.6-7.7 1.7-3.4 1.6-6.3 4.1-8.3 7.3-1.7 2.8-2.7 6.1-2.7 9.7 0 10.4 8.3 18.7 18.7 18.7zm-52.5-117.8c-19.1 10.1-34.9 25.5-45.4 44.4-9 16.1-14.1 34.7-14.1 54.4 0 61.7 50 111.7 111.7 111.7 20 0 38.8-5.3 55.1-14.5 18.6-10.6 33.9-26.4 43.9-45.4 8.1-15.5 12.7-33.1 12.7-51.8 0-61.7-50-111.7-111.7-111.7-18.9 0-36.7 4.7-52.2 12.9zm89.8 99.2c0 6.1-1.4 11.8-4 16.9l48.7 25.8c-8.3 15.8-20.9 28.9-36.3 37.7l-26.6-48.3c-5.6 3.3-12.1 5.3-19.1 5.3-20.6 0-37.4-16.7-37.4-37.4 0-6.8 1.8-13.2 5-18.7l-49.2-27.1c8.8-15.7 22-28.6 38-37l26.8 49.3c5-2.5 10.7-3.9 16.7-3.9 20.7 0 37.4 16.7 37.4 37.4zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Eu={name:"file-programming",content:'<path d="m236 256-52.6-.2-48.6 48.6.1.1c-4.1 3.9-6.7 9.4-6.7 15.5 0 5.8 2.3 11 6 14.8l49.1 49.1 46.8-.2-59.7-59.7c.2-.9.3-1.8.3-2.8L236 256zm105.2 65.5c.1.9.2 1.9.3 2.8L281.9 384l46.8.2 49.1-49.1c3.7-3.8 6-9.1 6-14.8 0-6.1-2.6-11.6-6.7-15.5l.1-.1-48.6-48.7-52.6.2 65.2 65.3zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Ou={name:"parameters-byte-array",content:'<path d="M64 96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zm384 288H64V128h384v256zm-306.2-55.6c-33.3 0-50-23.4-50-70.2 0-24.3 4.5-42.8 13.5-55.5s22.1-19.1 39.2-19.1c32.6 0 48.8 23.8 48.8 71.4 0 23.7-4.4 41.9-13.3 54.5-8.9 12.6-21.6 18.9-38.2 18.9zm1.4-121.3c-13.3 0-20 16.8-20 50.3 0 31.6 6.5 47.4 19.6 47.4 12.8 0 19.1-16.3 19.1-48.8s-6.2-48.9-18.7-48.9zm113.6 121.3c-33.3 0-50-23.4-50-70.2 0-24.3 4.5-42.8 13.5-55.5s22.1-19.1 39.2-19.1c32.6 0 48.8 23.8 48.8 71.4 0 23.7-4.4 41.9-13.3 54.5-8.8 12.6-21.6 18.9-38.2 18.9zm1.4-121.3c-13.3 0-20 16.8-20 50.3 0 31.6 6.5 47.4 19.6 47.4 12.8 0 19.2-16.3 19.2-48.8s-6.3-48.8-18.8-48.9zM420 326h-88v-24h29v-87.2l-30 6.4v-25.4l61-12.3V302h28v24z" />',viewBox:"0 0 512 512"},Hu={name:"parameters-unknown",content:'<path d="M64 96c-17.7 0-32 14.3-32 32v256c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V128c0-17.7-14.3-32-32-32H64zm384 288H64V128h384v256zm-64-64h-64v-32h64v32zm-96 0h-64v-32h64v32zm-96 0h-64v-32h64v32z" />',viewBox:"0 0 512 512"},Nu={name:"file-error",content:'<path d="M160 320h32V160h-32v160zm16 32c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM352 32H96c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V128l-96-96zm64 416H96V64h224v96h96v288z" />',viewBox:"0 0 512 512"},Pu={name:"files-error",content:'<path d="M64 64h224l-32-32H64c-17.7 0-32 14.3-32 32v320c0 17.7 14.3 32 32 32h64v-32H64V64zm208 320c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zM384 96H192c-17.7 0-32 14.3-32 32v320c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V192l-96-96zm64 352H192V128h160v96h96v224zm-192-96h32V192h-32v160z" />',viewBox:"0 0 512 512"},Vu={name:"data-rest",content:'<path d="M32 268v.33-.33zm0 .33.12 86.48v.32c.29 18.1 24.9 34.34 63.87 45.56l.01-86.77c-38.99-11.22-63.7-27.48-64-45.59zm192.01-113.1c105.67 0 191.4-27.41 191.93-61.29v-.33C415.94 59.59 330 32 224 32S32.06 59.59 32.07 93.61v.33c.53 33.88 86.27 61.29 191.94 61.29zM32 140.32s0 .01 0 0V140v.32zm384 86.81v-.32l-.12-86.81v.32c-.53 33.88-86.26 61.29-191.93 61.29-105.66 0-191.4-27.41-191.95-61.28l.12 86.48v.32c.53 33.88 86.26 61.29 191.93 61.29S415.46 261 416 227.13zM327 320h89l-.07-52v.32c-.34 21.73-35.73 40.8-88.93 51.68zm-130.74 96.93 19.85 31.05h-27.17l-16.33-27.03c-1.22-2.05-2.39-3.88-3.52-5.49-1.12-1.61-2.26-2.99-3.41-4.14-1.15-1.15-2.34-2.03-3.59-2.64-1.25-.61-2.6-.92-4.06-.92h-6.37v40.21H128V342.95h37.5c25.49 0 38.23 9.52 38.23 28.56 0 3.66-.56 7.04-1.68 10.14-1.12 3.1-2.71 5.9-4.76 8.39s-4.53 4.64-7.43 6.45c-2.91 1.81-6.14 3.22-9.7 4.25v.29c1.56.49 3.08 1.28 4.54 2.38 1.46 1.1 2.88 2.38 4.25 3.85 1.37 1.46 2.67 3.04 3.92 4.72 1.23 1.69 2.37 3.34 3.39 4.95zm-17.43-42.48c0-9.18-5.49-13.77-16.48-13.77h-10.69v29.22h10.25c5.08 0 9.16-1.46 12.23-4.39 3.13-2.98 4.69-6.67 4.69-11.06zm70.75 30.32h34.35v-19.19h-34.35v-23.36h36.91v-19.26h-60.57v105.03h62.99V428.8h-39.33v-24.03zm115.58-6.01c-2.39-2.49-5.26-4.72-8.61-6.7-3.34-1.98-7.12-3.85-11.32-5.6-3.08-1.27-5.84-2.5-8.28-3.7-2.44-1.2-4.52-2.42-6.23-3.66-1.71-1.24-3.03-2.56-3.96-3.96-.93-1.39-1.39-2.97-1.39-4.72 0-1.61.41-3.06 1.25-4.36.83-1.29 2-2.4 3.52-3.33 1.51-.93 3.37-1.65 5.57-2.16 2.2-.51 4.64-.77 7.32-.77 1.95 0 4.02.15 6.19.44s4.36.75 6.56 1.36 4.33 1.38 6.41 2.31c2.07.93 3.99 2 5.75 3.22v-21.9c-3.56-1.37-7.46-2.38-11.68-3.04-4.22-.66-9.07-.99-14.54-.99-5.57 0-10.84.6-15.82 1.79s-9.36 3.06-13.15 5.6c-3.78 2.54-6.77 5.77-8.97 9.7-2.2 3.93-3.3 8.63-3.3 14.1 0 6.98 2.01 12.94 6.04 17.87 4.03 4.93 10.14 9.11 18.35 12.52 3.22 1.32 6.23 2.61 9.01 3.88 2.78 1.27 5.19 2.59 7.21 3.96 2.03 1.37 3.63 2.86 4.8 4.47s1.76 3.44 1.76 5.49c0 1.51-.37 2.92-1.1 4.21-.73 1.29-1.84 2.42-3.33 3.37-1.49.95-3.34 1.7-5.57 2.23-2.22.54-4.82.81-7.8.81-5.08 0-10.11-.89-15.09-2.67s-9.59-4.46-13.84-8.02v23.44c3.81 1.95 8.31 3.42 13.51 4.39s10.68 1.46 16.44 1.46c5.61 0 10.95-.54 16-1.61 5.05-1.07 9.49-2.84 13.29-5.31s6.82-5.69 9.05-9.67c2.22-3.98 3.33-8.9 3.33-14.76 0-4.25-.63-7.97-1.9-11.17a26.091 26.091 0 0 0-5.48-8.52zm14.94-55.81v19.26h29.81v85.77h23.73v-85.77h29.96v-19.26h-83.5z" />',viewBox:"0 0 512 512"},Tu={name:"file-typescript",content:'<path d="M64 128h192v48h-72v208h-48V176H64v-48zm316.6 107.6c-35-12.6-50.1-21.6-50.1-40.6 0-14.6 12.9-29.9 43.3-29.9 24.6 0 42.9 7.1 52.3 11.8l11.5-36.6c-13.6-6.5-34.4-12.3-62.8-12.3-56.8 0-92.7 30.6-92.7 71.3 0 35.6 27.6 57.6 70.9 72.1 33.1 11.4 46.4 22.4 46.4 41.2 0 20.3-17.1 33.9-47.6 33.9-24.4 0-47.9-7.4-63.3-15.8l-10.6 37.6c14.3 8.3 43.1 15.8 70.8 15.8 67.6 0 99.3-34.6 99.3-74.6 0-35.8-21.9-57.4-67.4-73.9z" />',viewBox:"0 0 512 512"},Ru={name:"table-position-start",content:'<path d="M480 320v32H32v-32h448zM32 416h448v-32H32v32zm192-160H32V32h224v224h-32zm-64-128h64V64h-64v64zm-32 32H64v64h64v-64zm0-96H64v64h64V64zm32 160h64v-64h-64v64zM32 480h320v-32H32v32z" />',viewBox:"0 0 512 512"},Du={name:"table-position-center",content:'<path d="M352 256V32H128v224h224zM256 64h64v64h-64V64zm-32 160h-64v-64h64v64zm0-96h-64V64h64v64zm32 32h64v64h-64v-64zM32 448h320v32H32v-32zm448-128v32H32v-32h448zM32 384h448v32H32v-32z" />',viewBox:"0 0 512 512"},Bu={name:"table-position-end",content:'<path d="M32 384h448v32H32v-32zm0 96h320v-32H32v32zM480 32v224H256V32h224zM352 160h-64v64h64v-64zm0-96h-64v64h64V64zm96 96h-64v64h64v-64zm0-96h-64v64h64V64zM32 352h448v-32H32v32z" />',viewBox:"0 0 512 512"},Au={name:"list-roman-upper",content:'<path d="M32 32h32v128H32V32zm0 288h32V192H32v128zm64 0h32V192H96v128zM32 480h32V352H32v128zm64 0h32V352H96v128zm64 0h32V352h-32v128zM128 96h352v32H128V96zm64 160h288v32H192v-32zm64 160h224v32H256v-32zM96 152c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm64 160c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm64 160c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8z" />',viewBox:"0 0 512 512"},Lu={name:"list-roman-lower",content:'<path d="M32 64h16v96H32V64zm0 256h16v-96H32v96zm32 0h16v-96H64v96zM32 480h16v-96H32v96zm32 0h16v-96H64v96zm32 0h16v-96H96v96zM48 40c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 112c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 160c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM48 200c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM48 360c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 0c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm32 112c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zM128 96h352v32H128V96zm32 160h320v32H160v-32zm32 160h288v32H192v-32z" />',viewBox:"0 0 512 512"},_u={name:"import",content:'<path d="M96 480c-17.7 0-32-14.3-32-31.9V192c0-17.7 14.3-32 32-32h96.3v30.9H96.4V448h319.1V190.9h-95.9V160H416c17.7 0 32 14.3 32 31.9V448c0 17.7-14.3 32-31.9 32H96zm159.5-162 96.5-94h-64.5V32h-64v192H159l96.5 94z" />',viewBox:"0 0 512 512"},Fu={name:"export",content:'<path d="M96 480c-4.3 0-8.5-.8-12.5-2.5-3.8-1.6-7.3-3.9-10.2-6.9-2.9-2.9-5.3-6.4-6.9-10.2-1.7-3.9-2.5-8.2-2.5-12.5V192c0-4.3.8-8.5 2.5-12.5 1.6-3.8 3.9-7.3 6.9-10.2 2.9-2.9 6.4-5.3 10.2-6.9 3.9-1.7 8.2-2.5 12.5-2.5h96.3v31.9H96.4v256.3h319.1V191.9h-95.9V160H416c17.7 0 32 14.3 32 31.9V448c0 17.7-14.3 32-31.9 32H96zm192-160V126h64.5L256 32l-96.5 94H224v194h64z" />',viewBox:"0 0 512 512"},ju={name:"graph",content:'<path d="M64 448h416v32H32V32h32v416zm128-192-96 96v64h384V160L288 320l-96-64zM416 64l14.2 14.2L288 192l-96-64-96 96v64l96-96 96 64 174.5-145.4L480 128V64h-64z" />',viewBox:"0 0 512 512"},Ku={name:"chart-column-clustered",content:'<path d="M320 96v352h-32V288H128v160H64V32H32v448h448V96H320zm-64 352h-96V320h96v128z" />',viewBox:"0 0 512 512"},Wu={name:"chart-column-stacked",content:'<path d="M320 192v256h-32V96H128v352H64V32H32v448h448V192H320zM160 448V256h96v192h-96zm192 0v-96h96v96h-96z" />',viewBox:"0 0 512 512"},Uu={name:"chart-column-stacked100",content:'<path d="M320 32v416h-32V32H128v416H64V32H32v448h448V32H320zM160 448V192h96v256h-96zm192 0V288h96v160h-96z" />',viewBox:"0 0 512 512"},qu={name:"chart-column-range",content:'<path d="M480 448v32H32V32h32v416h416zM256 128h-96v224h96V128m32-32v288H128V96h160zm192-64H320v224h160V32z" />',viewBox:"0 0 512 512"},$u={name:"chart-bar-clustered",content:'<path d="M64 448v-64h160V224H64v-32h352V32H32v448h448v-32H64zm128-192v96H64v-96h128z" />',viewBox:"0 0 512 512"},Gu={name:"chart-bar-stacked",content:'<path d="M64 448v-64h352V224H64v-32h256V32H32v448h448v-32H64zm0-384h96v96H64V64zm192 192v96H64v-96h192z" />',viewBox:"0 0 512 512"},Zu={name:"chart-bar-stacked100",content:'<path d="M480 192V32H32v448h448v-32H64v-64h416V224H64v-32h416zm-160 64v96H64v-96h256zM64 64h160v96H64V64z" />',viewBox:"0 0 512 512"},Yu={name:"chart-bar-range",content:'<path d="M480 448v32H32V32h32v416h416zm-96-192H160v96h224v-96m32-32v160H128V224h288zm64-192H256v160h224V32z" />',viewBox:"0 0 512 512"},Ju={name:"chart-area-clustered",content:'<path d="m405.5 200.3-88.2-88.2-91.2 114L192 192l-37.6 45.1L64 146.8V32H32v448h448V96l-74.5 104.3zM320 160l66.7 66.7L320 320l-71.1-71.1L320 160zM64 192l69.8 69.8L64 345.6V192z" />',viewBox:"0 0 512 512"},Xu={name:"chart-area-stacked",content:'<path d="m320 165.3-128-64-128 128V32H32v448h448V32L320 165.3zm128 7.5L320 352 192 224 64 377.6v-103l134.3-134.3 126.1 63 123.6-103v72.5z" />',viewBox:"0 0 512 512"},Qu={name:"chart-area-stacked100",content:'<path d="M32 32v448h448V32H32zm416 108.8L320 320 192 192 64 345.6V64h384v76.8z" />',viewBox:"0 0 512 512"},ed={name:"chart-area-range",content:'<path d="M64 416v32h416v32H32V32h32v224l128-128 128 64L480 32v192L320 384l-127-64-129 96z" />',viewBox:"0 0 512 512"},td={name:"chart-line",content:'<path d="M64 448h416v32H32V32h32v416zm152.4-190.4L96 416v-51.2l97.2-129.6 41.2-33-27.3-34.1L96 224v-38l119.9-58.1 43.5 54.3 109-87.2 55.9 85.7L480 114v47l-38 46.7 38 58.3.5 53.3-58.5-87-82.5 101.3-85.1-106.4-38 30.4zm63-50.4 60.1 75.2 64.3-77.1-42.7-63.5-81.7 65.4z" />',viewBox:"0 0 512 512"},nd={name:"chart-line-stacked",content:'<path d="M480 448v32H32V32h32v416h416zM224 292l128 64 128-96v-36l-128 96-128-64-128 96v36l128-96zm0-160 128 92 128-60v-36l-128 60-128-92-128 64v36l128-64z" />',viewBox:"0 0 512 512"},od={name:"chart-line-stacked100",content:'<path d="M480 448v32H32V32h32v416h416zM224 228l128 64 128-96v-36l-128 96-128-64-128 96v36l128-96zM480 32H96v32h384V32z" />',viewBox:"0 0 512 512"},rd={name:"chart-line-markers",content:'<path d="M480 448v32H0V32h32v416h448zm0-96c.1 17.7-14.2 32-31.9 32.1-17.7.1-32-14.2-32.1-31.9 0-1.3.1-2.7.2-4l-83.7-62.8c-8 3.4-17.1 3.4-25.2 0l-83.7 62.8c2.1 17.5-10.4 33.5-27.9 35.6s-33.5-10.4-35.6-27.9c-.7-6.2.3-12.4 3.1-18l-49-73.6-22.7 39.6c8.9 15.3 3.7 34.9-11.5 43.8s-34.9 3.7-43.8-11.5-3.7-34.9 11.5-43.8c4.9-2.8 10.4-4.3 16-4.4l30.6-53.5-28.4-42.6c-.7 0-1.4.1-2.1.1-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32c0 4.9-1.1 9.8-3.3 14.2l19.5 29.3 52.2-91.3c-8.9-15.3-3.8-34.9 11.5-43.8s34.9-3.8 43.8 11.5c2.5 4.4 4 9.2 4.3 14.3l78.4 39.2c14.7-9.7 34.6-5.7 44.3 9 .3.5.7 1.1 1 1.6h72.6c8.8-15.3 28.4-20.5 43.7-11.7 15.3 8.8 20.5 28.4 11.7 43.7s-28.4 20.5-43.7 11.7c-4.9-2.8-8.9-6.8-11.7-11.7h-72.6c-8.8 15.3-28.4 20.5-43.7 11.7-9.3-5.4-15.3-15.1-15.9-25.8l-78.4-39.2c-5.2 3.4-11.3 5.3-17.5 5.3l-60 105.2 57.9 86.9c.7 0 1.4-.1 2.1-.1 4.3 0 8.6.9 12.6 2.6l83.7-62.8c-2.2-17.5 10.3-33.5 27.8-35.7 17.5-2.2 33.5 10.3 35.7 27.8.3 2.6.3 5.2 0 7.8l83.7 62.8c16.2-7 35.1.6 42 16.8 1.6 4.1 2.5 8.4 2.5 12.7zm-48-192c0 8.8 7.2 16 16 16s16-7.2 16-16-7.2-16-16-16-16 7.2-16 16zm-128 0c0 8.8 7.2 16 16 16s16-7.2 16-16-7.2-16-16-16-16 7.2-16 16zM176 96c0 8.8 7.2 16 16 16s16-7.2 16-16-7.2-16-16-16-16 7.2-16 16zm-96 64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm0 160c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 32c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128-96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16z" />',viewBox:"0 0 512 512"},id={name:"chart-line-stacked-markers",content:'<path d="M480 448v32H0V32h32v416h448zm0-320c0 17.7-14.3 32-32 32-6.9 0-13.7-2.2-19.2-6.4L352 192c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.5.3-5 .9-7.4l-81.1-60.8c-11.1 6.3-24.8 5.4-35-2.2L96 160c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32c6.9 0 13.7 2.2 19.2 6.4L160 96c0-17.7 14.3-32 32-32s32 14.3 32 32c0 2.5-.3 5-.9 7.4l81.1 60.8c11.1-6.3 24.8-5.4 35 2.2L416 128c0-17.7 14.3-32 32-32s32 14.3 32 32zM80 160c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128-64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128-64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm16 128c0 17.7-14.3 32-32 32-5.5 0-11-1.4-15.8-4.2l-81.1 60.8c4.1 17.2-6.6 34.4-23.8 38.5-17.2 4.1-34.4-6.6-38.5-23.8-.6-2.4-.9-4.9-.9-7.4l-76.8-38.4c-10.2 7.6-23.9 8.5-35 2.2L95 376.5c4.1 17.2-6.6 34.4-23.8 38.5s-34.4-6.6-38.5-23.8 6.6-34.4 23.8-38.5c7.9-1.9 16.1-.7 23.1 3.3l81.1-60.8c-4.1-17.2 6.6-34.4 23.8-38.5 17.2-4.1 34.4 6.6 38.5 23.8.6 2.4.9 4.9.9 7.4l76.8 38.4c10.2-7.6 23.9-8.5 35-2.2l81.1-60.8c-4.1-17.2 6.5-34.5 23.7-38.6 17.2-4.1 34.5 6.5 38.6 23.7.6 2.5.9 5.1.9 7.6zM80 384c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128-96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128-96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16z" />',viewBox:"0 0 512 512"},ad={name:"chart-line-stacked100-markers",content:'<path d="M480 448v32H0V32h32v416h448zm0-192c0 17.7-14.3 32-32 32-5.5 0-11-1.4-15.8-4.2l-81.1 60.8c4.1 17.2-6.6 34.4-23.8 38.5-17.2 4.1-34.4-6.6-38.5-23.8-.6-2.4-.9-4.9-.9-7.4l-76.8-38.4c-10.2 7.6-23.9 8.5-35 2.2L95 376.5c4.1 17.2-6.6 34.4-23.8 38.5s-34.4-6.6-38.5-23.8 6.6-34.4 23.8-38.5c7.9-1.9 16.1-.7 23.1 3.3l81.1-60.8c-4.1-17.2 6.6-34.4 23.8-38.5 17.2-4.1 34.4 6.6 38.5 23.8.6 2.4.9 4.9.9 7.4l76.8 38.4c10.2-7.6 23.9-8.5 35-2.2l81.1-60.8c-4.1-17.2 6.5-34.5 23.7-38.6 17.2-4.1 34.5 6.5 38.6 23.7.6 2.5.9 5.1.9 7.6zM80 384c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128-96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128-96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm16-192c0 17.7-14.3 32-32 32-11.4 0-22-6.1-27.7-16h-72.6c-8.8 15.3-28.4 20.5-43.7 11.7-4.9-2.8-8.9-6.8-11.7-11.7h-72.6c-8.8 15.3-28.4 20.5-43.7 11.7-4.9-2.8-8.9-6.8-11.7-11.7H91.7C82.9 95.3 63.3 100.5 48 91.7S27.4 63.3 36.3 48 64.7 27.5 80 36.3c4.9 2.8 8.9 6.8 11.7 11.7h72.6c8.8-15.3 28.4-20.5 43.7-11.7 4.9 2.8 8.9 6.8 11.7 11.7h72.6c8.8-15.3 28.4-20.5 43.7-11.7 4.9 2.8 8.9 6.8 11.7 11.7h72.6c8.8-15.3 28.4-20.5 43.7-11.7 9.9 5.7 16 16.3 16 27.7zM80 64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 0c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 0c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm128 0c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16z" />',viewBox:"0 0 512 512"},sd={name:"chart-pie",content:'<path d="M473 310.3c.9-2.1 1.4-4.2 1.8-6.3l.1-.5c.5-2.1.9-4.1 1.3-6.2v-.2c.8-4.4 1.5-8.8 1.8-13.3v-.4c.5-2 .7-3.9.9-5.9l.1-1.7c.1-1.6.3-3.1.4-4.7 0-.7.1-1.4.1-2 .1-1.5.2-3.1.2-4.6 0-.6 0-1.3.1-1.9.1-2.2.1-4.3.1-6.5 0-31.8-6.7-63.2-19.8-92.2-1.5-3.3-3.1-6.6-4.7-9.8-4.1-8-8.7-15.8-13.8-23.3-5-7.4-10.5-14.6-16.4-21.3-1.2-1.3-2.4-2.7-3.6-4-2.4-2.7-4.9-5.3-7.4-7.8s-5.1-5-7.8-7.4c-2.7-2.4-5.4-4.7-8.1-7-4.1-3.4-8.4-6.7-12.8-9.8-20.7-14.8-43.8-25.9-68.3-32.9-5.3-1.5-10.7-2.8-16.2-4-3.6-.7-7.3-1.4-11-2s-7.4-1-11.2-1.3c-5.6-.6-11.3-.9-17.1-1.1-1.9 0-3.9-.1-5.8-.1C132.3 32 32 132.3 32 256s100.3 224 224 224c105 0 193.1-72.2 217-169.7zm-81.2 81.5c-74.4 75.6-195.9 76.6-271.5 2.2S43.7 198 118 122.5l2.2-2.2c36-36.2 84.9-56.4 135.8-56.3v192l186.3 46.6c-8.4 33.8-25.9 64.6-50.5 89.2z" />',viewBox:"0 0 512 512"},ld={name:"chart-doughnut",content:'<path d="M473 310.3c.9-2.1 1.4-4.2 1.8-6.3l.1-.5c.5-2.1.9-4.1 1.3-6.2v-.3c.8-4.4 1.5-8.8 1.8-13.3v-.4c.5-2 .7-3.9.9-5.9l.1-1.7c.1-1.6.3-3.1.4-4.7 0-.7.1-1.4.1-2 .1-1.5.2-3.1.2-4.6 0-.6 0-1.3.1-1.9.1-2.2.1-4.3.1-6.5 0-31.8-6.7-63.2-19.8-92.2-1.5-3.3-3.1-6.6-4.7-9.8-4.1-8-8.7-15.8-13.8-23.3-5-7.4-10.5-14.6-16.4-21.3-1.2-1.3-2.4-2.7-3.6-4-2.4-2.7-4.9-5.3-7.4-7.8s-5.1-5-7.8-7.4c-2.7-2.4-5.4-4.7-8.1-7-4.1-3.4-8.4-6.7-12.8-9.8-20.7-14.8-43.8-25.9-68.3-32.9-5.3-1.5-10.7-2.8-16.2-4-3.6-.7-7.3-1.4-11-2s-7.4-1-11.2-1.3c-5.6-.6-11.3-.9-17.1-1.1-1.9 0-3.9-.1-5.8-.1C132.3 32 32 132.3 32 256s100.3 224 224 224c105 0 193.1-72.2 217-169.7zM320 256c0 35.3-28.7 64-64 64s-64-28.7-64-64 28.7-64 64-64 64 28.7 64 64zm71.8 135.8c-74.4 75.6-195.9 76.6-271.5 2.2S43.7 198 118 122.4l2.2-2.2c36-36.1 84.9-56.3 135.8-56.2v96c-53 0-96 43-96 96s43 96 96 96c44 0 82.4-30 93.1-72.7l93.2 23.3c-8.4 33.8-25.9 64.6-50.5 89.2zm-39.8-133v.8-.8zm0 2.8v.9-.9zm-.4 2.9-.1.7.1-.7zm-.6 3.2v.2-.2zm-1 5.9v.1-.1zm0 2.8v.2-.2z" />',viewBox:"0 0 512 512"},cd={name:"chart-scatter",content:'<path d="M480 448v32H32V32h32v416h416zM160 96c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm-16 0c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm112 192c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm-16 0c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm112-128c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm-16 0c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm112 192c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm-16 0c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16z" />',viewBox:"0 0 512 512"},ud={name:"chart-scatter-smooth-lines-markers",content:'<path d="M480 448v32H32V32h32v416h416zm0-384c0 17.7-14.3 32-32 32-15.6 0-28.9-11.2-31.5-26.5-9.2-1.3-22-1.8-39-.8C342.5 71 305.1 79.4 275 92c-19.1 7.9-47.9 23-60.7 45.1 12.7 12.3 13 32.6.6 45.3l-1.1 1.1c9.1 13.1 28.9 18.6 61.1 25.1 21 4.2 42.8 8.5 60.2 18.9 12.7 7.6 21.7 17.8 27 30.3 16.8 5.6 25.8 23.7 20.2 40.5-3.2 9.5-10.6 17-20.1 20.2-11.2 29.5-39.2 54.6-81.6 72.2-29.7 12.1-61.2 19.2-93.2 21.1-4 .2-7.8.3-11.4.3-9.6.1-19.3-.7-28.8-2.5-14.1 10.6-34.2 7.7-44.8-6.4-10.6-14.1-7.7-34.2 6.4-44.8s34.2-7.7 44.8 6.4c3.2 4.2 5.2 9.1 6 14.3 8.7 1 17.5 1.2 26.2.7 28.3-1.6 56.2-7.9 82.5-18.6 19.7-8.2 49.8-24.3 62-49.6-13-12-13.8-32.2-1.8-45.2.4-.5.8-.9 1.3-1.3-9.1-13.2-28.8-18.7-61.1-25.2-21-4.2-42.8-8.5-60.2-18.9-12.8-7.7-21.9-18-27.2-30.7-16.7-5.9-25.4-24.2-19.5-40.9 3.3-9.4 10.9-16.7 20.4-19.8 5-11 12-21 20.6-29.5 14.6-14.5 34.7-27.2 59.8-37.6C296 48.6 337 39.2 375.4 36.8c22.9-1.5 40-.4 52.8 2.1 13.9-11 34-8.6 44.9 5.3 4.5 5.6 6.9 12.6 6.9 19.8zm-272 96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm-64 224c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm192-96c0 8.8 7.2 16 16 16s16-7.2 16-16-7.2-16-16-16-16 7.2-16 16zM464 64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16z" />',viewBox:"0 0 512 512"},dd={name:"chart-scatter-smooth-lines",content:'<path d="M480 448v32H32V32h32v416h416zm-144-87.8c21.1-19.9 31.8-44.5 31.8-73.1 0-27.3-11-47.6-32.6-60.6-17.3-10.3-38.8-14.5-59.6-18.6-46.2-9-66.5-16.3-66.8-47.9-.4-41.2 71.8-65.5 114.8-76.4C385.4 68.1 448.4 64 449 64l-2-32c-2.7.2-66.2 4.3-130.8 20.5-38.7 9.7-69.8 21.8-92.4 36-31.4 19.8-47.3 43.9-47 71.7.2 27.2 11.3 47.6 32.9 60.5 17.3 10.3 38.9 14.5 59.7 18.6 19 3.7 36.9 7.2 49.3 14.6 11.9 7.1 17 17.1 17 33.2 0 19.7-7.1 36-21.7 49.7-24.1 22.8-68.9 38.2-129.3 44.6-29.2 3-58.5 3.9-87.8 2.6l-2 32c1.7.1 12.1.7 28 .7 51.4 0 159.8-6.4 213.1-56.5z" />',viewBox:"0 0 512 512"},pd={name:"chart-scatter-straight-lines-markers",content:'<path d="M480 448v32H32V32h32v416h416zm0-384c0 17.7-14.3 32-32 32-7.4 0-14.6-2.6-20.3-7.3L224 165.1l116.4 93.1c16.5-6.4 35 1.7 41.4 18.2s-1.7 35-18.2 41.4c-10.3 4-22 2.4-30.8-4.2l-173.1 74.2c-2.1 17.5-18 30.1-35.6 28s-30.1-18-28-35.6c2.1-17.5 18-30.1 35.6-28 5.6.7 10.9 2.8 15.4 6.2l173.1-74.2c0-.4.1-.7.1-1l-116.7-93.4c-16.5 6.4-35-1.7-41.4-18.2s1.7-35 18.2-41.4c10.8-4.2 23-2.3 32 5.1l204.1-76.5c2.9-17.4 19.4-29.2 36.8-26.3C468.7 35.1 480 48.4 480 64zm-272 96c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm-64 224c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16zm192-96c0 8.8 7.2 16 16 16s16-7.2 16-16-7.2-16-16-16-16 7.2-16 16zM464 64c0-8.8-7.2-16-16-16s-16 7.2-16 16 7.2 16 16 16 16-7.2 16-16z" />',viewBox:"0 0 512 512"},hd={name:"chart-scatter-straight-lines",content:'<path d="M480 448v32H32V32h32v416h416zm-98.5-156.9-158.8-127L448 64V32L161.3 156l161.2 128.9L128 384v32l253.5-124.9z" />',viewBox:"0 0 512 512"},fd={name:"chart-bubble",content:'<path d="M480 448v32H32V32h32v416h416zM192 256c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64m0-32c53 0 96 43 96 96s-43 96-96 96-96-43-96-96 43-96 96-96zm224 96c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32m0-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM368 96c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80zM176 64c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z" />',viewBox:"0 0 512 512"},md={name:"chart-candlestick",content:'<path d="M480 448v32H32V32h32v416h416zm-192-96h-64v64h-32v-64h-64V96h64V32h32v64h64v256zm-32-224h-96v192h96V128zm224 64h-64V64h-32v128h-64v128h64v64h32v-64h64V192z" />',viewBox:"0 0 512 512"},vd={name:"chart-ohlc",content:'<path d="M480 448v32H32V32h32v416h416zM224 320V96h-32v32h-64v32h64v256h32v-64h64v-32h-64zM416 96V32h-32v160h-64v32h64v96h32V128h64V96h-64z" />',viewBox:"0 0 512 512"},gd={name:"chart-radar",content:'<path d="M272 32h-32v44L80.7 195.5l-41.1-10-7.6 31.1 42.3 10.3 81 148.5-62.7 86.3 25.9 18.8 67.2-92.5L344 412.3l49.5 68.2 25.9-18.8-46.8-64.4 40.8-163.1 65.8-15.3-7.3-31.2-74.9 17.4L272 80V32zm-32 202.2-119-28.9L240 116v118.2zm32 0v-109l88.4 88.4-88.4 20.6zm-95.9 112.5-59.8-109.6 118.5 28.8-58.7 80.8zm172 17.3-71-97.7 101.3-23.6L348.1 364zm-30.6 12-110.6-17 49.1-67.6 61.5 84.6z" />',viewBox:"0 0 512 512"},yd={name:"chart-radar-markers",content:'<path d="m472 187.7-51.2 11.9c-9.4-8-22.5-9.9-33.8-4.8L288.1 96c0-11.5-6.2-22.1-16.1-27.8V32h-32v36.4c-7.1 4.1-12.3 10.8-14.6 18.6L96.1 184c-8.6 0-16.7 3.4-22.8 9.5l-32.8-8-7.5 31.1 32.3 7.8c2.7 9.9 10 17.8 19.6 21.5l61 111.8c-3 8.9-2 18.7 2.9 26.7l-56.1 77.3 25.9 18.8L177 400c8.5-.2 16.5-3.8 22.3-10l122 18.8c3.9 13.8 16.5 23.2 30.8 23.2 1.9 0 3.9-.2 5.8-.5l35.6 49 25.9-18.8-37.1-51.1c3.7-10.4 1.7-22-5.2-30.6l31.4-125.2c11.8-3.2 20.8-12.9 23.1-24.9l47.7-11.1-7.3-31.1zm-111.4 25.9L272 234.2V125.1l88.6 88.5zM256 80c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm-21.1 39.9c1.6 1.4 3.3 2.6 5.1 3.7V234l-113.3-27.6c-.4-1.4-1-2.8-1.6-4.1l109.8-82.4zM96 232c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm80 152c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm7.2-47.2c-2.4-.5-4.8-.8-7.2-.8-1.8 0-3.7.2-5.5.5l-52.9-96.9c.7-.6 1.3-1.2 1.9-1.9l115.3 28-51.6 71.1zm23.6 22 49.1-67.6 61.5 84.6-110.6-17zM352 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm-3.9-52.3L277 265.9l97.4-22.6c.9 1.2 1.9 2.4 3 3.5l-29.3 116.9zM400 240c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z" />',viewBox:"0 0 512 512"},bd={name:"chart-radar-filled",content:'<path d="m354.4 372.1 65.1 89.6-25.9 18.8-75-103.2-109.2-21.8-90.8 125-25.9-18.8 90-123.8-67.3-101L32 216.6l7.5-31.1 65.8 16L240 107.2V32h32v80l99.2 99.2L472 187.7l7.3 31.2-98.8 23-26.1 130.2z" />',viewBox:"0 0 512 512"},wd={name:"chart-rose",content:'<path d="M226 251.4 44.3 329.3c-23.8-68.9-12.6-145.1 30-204.3L226 251.4zm-82.1-109.5L240 222V96.8c-36.2 3.6-70.1 19.6-96.1 45.1zm231.5 160.2L279 278l27.3 95.7c31.8-13.6 56.7-39.4 69.1-71.6zM96 353.4c37.3 69.1 115 106.1 192.2 91.4L244 290 96 353.4zM272 32v211.4l204.6 51.1c2.3-12.9 3.4-26 3.4-39.1C480 137.1 388.2 40.2 272 32z" />',viewBox:"0 0 512 512"},kd={name:"chart-choropleth",content:'<path d="M448 64v384H64V64h384m32-32H32v448h448V32zm-96 256v13.3l-64 64v37.5l13.3 13.3H416V264.6L384 288zm-50.7-160 64 64-32 32 18.8 23.4 32-21.3V96H288v18.8l13.3 13.3h32zM224 192l32 32-23.7 23.7L352 276v-20l-32-32 32-32-32-32h-32l-32-32V96h-32l-64 64 32 32h32zm0 86-32 10-32 32 32 32v32l-32 32h128v-64l50.4-50.4L224 278zm-29.4-37.8 16.2-16.2h-32l-64-64 64-64H96v167.5l98.6-23.3zM114.8 320l37.6-37.6L96 296.5V416h32v-13.3l32-32v-5.5L114.8 320z" />',viewBox:"0 0 512 512"}},1448:(e,t,n)=>{n.r(t),n.d(t,{Field:()=>a,FieldArray:()=>w,FieldWrapper:()=>x,Form:()=>y,FormElement:()=>S});var o=n(3899),r=o.createContext(null),i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=function(e){var t=e.name,n=e.component,a=e.validator,s=e.children,l=e.onChange,c=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["name","component","validator","children","onChange"]),u=o.useContext(r),d=u?u.id:"";o.useEffect((function(){if(u)return u.registerField(t,a)}),[t,d,a]);var p=o.useCallback((function(e){var n=e?void 0!==e.value?e.value:e.target?e.target.value:e.target:e;u.onChange(t,{value:n}),l&&l.call(void 0,e)}),[t,d,l]),h=o.useCallback((function(e){return u.onChange(t,{value:e.target.value})}),[t,d]),f=o.useCallback((function(){return u.onBlur(t)}),[t,d]),m=o.useCallback((function(){return u.onFocus(t)}),[t,d]);if(!u)return null;var v=u.valueGetter(t);return"string"==typeof n?o.createElement(n,i({onChange:h,onBlur:f,onFocus:m,value:v,children:s},c)):o.createElement(n,i(i({children:s},c),{onChange:p,onBlur:f,onFocus:m,value:v,validationMessage:u.errors[t],touched:u.touched[t],modified:u.modified[t],visited:u.visited[t],valid:!(Boolean(u.errors[t])&&u.touched[t]),name:t}))};a.displayName="KendoReactField";var s,l=n(189),c=n(3198),u=n(4500),d=n(9659),p=n(4431),h=n(4006),f={name:"@progress/kendo-react-form",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060228,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},m=(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){return v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},g=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},y=function(e){function t(t){var n=e.call(this,t)||this;return n._id=(0,c.M)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._values={},n._fields={},n._unmounted=!1,n._submitted=!1,n.isValid=function(){return n.isFormValid(n.errors)},n.accumulatedForceUpdate=function(){n._accumulatorTimeout&&clearTimeout(n._accumulatorTimeout),n._accumulatorTimeout=window.setTimeout((function(){n._accumulatorTimeout=void 0,n.forceUpdate()}),0)},n.resetForm=function(){n.values=(0,u.d9)(n.props.initialValues),n._id=(0,c.M)(),n._touched={},n._visited={},n._modified={},n._validatorsByField={},n._fields={},n._submitted=!1,n.forceUpdate()},n.onReset=function(){return n.resetForm()},n.addField=function(e){n._fields[e]=!0},n.onSubmit=function(e){var t={},o=n.fields;e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation()),o.forEach((function(e){t[e]=!0})),n.visited=v({},t),n.touched=v({},t);var r=n.values,i=n.isFormValid(n.errors),a=n.isFormModified(n.modified,o);n.props.onSubmitClick&&n.props.onSubmitClick.call(void 0,{values:r,isValid:i,isModified:a,event:e}),i&&(n.props.ignoreModified||a)&&n.props.onSubmit&&(n._submitted=!0,n.props.onSubmit.call(void 0,r,e)),n.forceUpdate()},n.onChange=function(e,t){var o,r=t.value;n.addField(e),n.modified[e]||(n.modified=v(v({},n.modified),((o={})[e]=!0,o))),n.valueSetter(e,r),n.forceUpdate()},n.onFocus=function(e,t){var o;n.visited[e]||(n.visited=v(v({},n.visited),((o={})[e]=!0,o)),t||n.forceUpdate())},n.onBlur=function(e,t){var o;n.touched[e]||(n.onFocus(e,t),n.touched=v(v({},n.touched),((o={})[e]=!0,o)),t||n.forceUpdate())},n.onFieldRegister=function(e,t){var o;n.addField(e);var r=n.validatorsByField[e]||[],i=r.length;return n.validatorsByField=v(v({},n.validatorsByField),((o={})[e]=g(g([],r,!0),[t],!1),o)),n.accumulatedForceUpdate(),function(){var t;if(!n._unmounted){var o=g([],n.validatorsByField[e]||[],!0),r=Boolean(o[i]);o[i]=void 0,n.validatorsByField=v(v({},n.validatorsByField),((t={})[e]=o,t)),r&&n.accumulatedForceUpdate()}}},n.isFormValid=function(e){return!Object.keys(e).some((function(t){return Boolean(e[t])}))},n.isFormModified=function(e,t){return t.some((function(t){return e[t]}))},n.isFormHasNotTouched=function(e,t){return t.some((function(t){return!e[t]}))},n.isFormTouched=function(e,t){return t.some((function(t){return e[t]}))},n.isFormVisited=function(e,t){return t.some((function(t){return e[t]}))},n.valueGetter=function(e){return(0,d.Y)(e)(n.values)},n.valueSetter=function(e,t){return(0,p.I)(e)(n.values,t)},n.onArrayAction=function(e){var t;n.addField(e),n.modified[e]||(n.modified=v(v({},n.modified),((t={})[e]=!0,t))),n.onBlur(e,!0)},n.onInsert=function(e,t){n.onArrayAction(e);var o=g([],n.valueGetter(e)||[],!0);o.splice(t.index,0,t.value),n.valueSetter(e,o),n.forceUpdate()},n.onUnshift=function(e,t){n.onInsert(e,{value:t.value,index:0})},n.onPush=function(e,t){n.onArrayAction(e);var o=g(g([],n.valueGetter(e)||[],!0),[t.value],!1);n.valueSetter(e,o),n.forceUpdate()},n.onPop=function(e){n.onArrayAction(e);var t=g([],n.valueGetter(e)||[],!0),o=t.pop();return n.valueSetter(e,t),n.forceUpdate(),o},n.onRemove=function(e,t){n.onArrayAction(e);var o=g([],n.valueGetter(e)||[],!0),r=o.splice(t.index,1);return n.valueSetter(e,o),n.forceUpdate(),r},n.onReplace=function(e,t){n.onArrayAction(e);var o=g([],n.valueGetter(e)||[],!0);o.splice(t.index,1,t.value),n.valueSetter(e,o),n.forceUpdate()},n.onMove=function(e,t){n.onArrayAction(e);var o=g([],n.valueGetter(e)||[],!0),r=o[t.prevIndex];o.splice(t.prevIndex,1),o.splice(t.nextIndex,0,r),n.valueSetter(e,o),n.forceUpdate()},(0,h.s)(f),n.values=(0,u.d9)(t.initialValues),n}return m(t,e),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},set:function(e){this._touched=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visited",{get:function(){return this._visited},set:function(e){this._visited=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"modified",{get:function(){return this._modified},set:function(e){this._modified=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validatorsByField",{get:function(){return this._validatorsByField},set:function(e){this._validatorsByField=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._values},set:function(e){this._values=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fields",{get:function(){return Object.keys(this._fields)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formErrors",{get:function(){if(this.props.validator)return this.props.validator(this.values,this.valueGetter)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){var e=this,t={},n=this.fields,o=this.validatorsByField;return n.forEach((function(n){if(t[n]="",o[n]){var r=[];o[n].forEach((function(e){Array.isArray(e)?r.push.apply(r,e):r.push(e)})),r.find((function(o){if(o){var r=o(e.valueGetter(n),e.valueGetter,{name:n});if(r)return t[n]=r,!0}return!1}))}})),this.formErrors&&(0,u.kI)(this.formErrors,t),t},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){this._unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)},t.prototype.render=function(){var e=this.props.render,t=this.touched,n=this.visited,i=this.modified,a=this.fields,s=this.errors,l=this.isFormValid(s),c=this.isFormModified(i,a),u=this.isFormTouched(t,a),d=this.isFormVisited(n,a),p=this.isFormHasNotTouched(t,a)&&!l||l&&(this.props.ignoreModified||c);return o.createElement(r.Provider,{key:this._id,value:{id:this._id,valueGetter:this.valueGetter,errors:s,modified:i,touched:t,visited:n,registerField:this.onFieldRegister,onSubmit:this.onSubmit,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}},e({valid:l,modified:c,touched:u,visited:d,submitted:this._submitted,valueGetter:this.valueGetter,errors:s,allowSubmit:p,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm}))},t.displayName="KendoReactForm",t.propTypes={initialValues:l.any,onSubmit:l.func,onSubmitClick:l.func,render:l.func.isRequired},t}(o.Component),b=function(){return b=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},b.apply(this,arguments)},w=function(e){var t=e.name,n=e.component,i=e.validator,a=(e.type,e.children),s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["name","component","validator","type","children"]),l=o.useContext(r),c=l?l.id:"";o.useEffect((function(){if(l)return l.registerField(t,i)}),[t,c,i]);var u=o.useCallback((function(e){return l.onUnshift(t,e)}),[t,c]),d=o.useCallback((function(e){return l.onPush(t,e)}),[t,c]),p=o.useCallback((function(e){return l.onInsert(t,e)}),[t,c]),h=o.useCallback((function(){return l.onPop(t)}),[t,c]),f=o.useCallback((function(e){return l.onRemove(t,e)}),[t,c]),m=o.useCallback((function(e){return l.onReplace(t,e)}),[t,c]),v=o.useCallback((function(e){return l.onMove(t,e)}),[t,c]);if(!l)return null;var g=l.valueGetter(t);return o.createElement(n,b({value:g,validationMessage:l.errors[t],touched:l.touched[t],modified:l.modified[t],visited:l.visited[t],valid:!(Boolean(l.errors[t])&&l.touched[t]),onUnshift:u,onPush:d,onInsert:p,onPop:h,onRemove:f,onReplace:m,onMove:v,children:a,name:t},s))};w.displayName="KendoReactFieldArray";var k=n(8047),x=function(e){var t=(0,k.A)({"k-form-field":!0,"k-rtl":"rtl"===e.dir},e.className);return o.createElement("div",{className:t,style:e.style},e.children)};x.displayName="KendoReactFieldWrapper";var z=n(2697),C=function(){return C=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},C.apply(this,arguments)},S=o.forwardRef((function(e,t){var n,i=C({size:"medium"},e),a=o.useRef(null),s=o.useRef(null);o.useImperativeHandle(s,(function(){return{element:a.current,props:i}})),o.useImperativeHandle(t,(function(){return s.current}));var l=o.useContext(r),c=i.className,u=(i.style,i.horizontal),d=i.size,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["className","style","horizontal","size"]),h=(0,k.A)(((n={"k-form":!0})["k-form-".concat(z.G.sizeMap[d]||d)]=d,n["k-form-horizontal"]=!0===u,n),c);return o.createElement("form",C({ref:a},p,{style:e.style,className:h,onSubmit:l?l.onSubmit:void 0}),e.children)}));S.displayName="KendoReactFormElement"},6183:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(8047),r=n(3899),i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=r.forwardRef((function(e,t){var n=r.useRef(null),a=r.useRef(null);return r.useImperativeHandle(n,(function(){return{element:a.current}})),r.useImperativeHandle(t,(function(){return n.current})),r.createElement("span",i({},e,{className:(0,o.A)("k-input-prefix",e.className)}))}));a.displayName="KendoReactInputPrefix"},5603:(e,t,n)=>{n.r(t),n.d(t,{Checkbox:()=>Ln,CheckboxPropsContext:()=>An,ColorGradient:()=>Vt,ColorGradientPropsContext:()=>Pt,ColorGradientWithoutContext:()=>Nt,ColorInput:()=>lt,ColorPalette:()=>_t,ColorPalettePropsContext:()=>Lt,ColorPaletteWithoutContext:()=>At,ColorPicker:()=>Zt,ColorPickerPropsContext:()=>Gt,FlatColorPicker:()=>en,Input:()=>Xe,InputClearValue:()=>_o,InputPrefix:()=>Fo.Z,InputPropsContext:()=>Je,InputSeparator:()=>Ko,InputSuffix:()=>Uo,InputValidationIcon:()=>$o,InputWithoutContext:()=>Ye,MaskedTextBox:()=>kn,MaskedTextBoxPropsContext:()=>wn,MaskedTextBoxWithoutContext:()=>bn,NumericTextBox:()=>Re,NumericTextBoxPropsContext:()=>Te,PALETTEPRESETS:()=>Rt,RANGE_ACTION:()=>xn,RATING_ACTION:()=>Qn,RadioButton:()=>jn,RadioButtonPropsContext:()=>Fn,RadioGroup:()=>qn,RadioGroupPropsContext:()=>Un,RangeSlider:()=>En,RangeSliderPropsContext:()=>Mn,Rating:()=>uo,RatingItem:()=>Jn,RatingPropsContext:()=>co,SLIDER_LABEL_ATTRIBUTE:()=>ft,Signature:()=>Bo,SignaturePropsContext:()=>Do,Slider:()=>wt,SliderLabel:()=>mt,SliderPropsContext:()=>bt,SliderWithoutContext:()=>yt,Switch:()=>Dn,SwitchPropsContext:()=>Rn,SwitchWithoutContext:()=>Tn,TextArea:()=>Yn,TextAreaPropsContext:()=>Zn,TextBox:()=>Ao.z,inputsMessages:()=>ce,isCorrectValue:()=>ro,isHalf:()=>to,isSelected:()=>no,maskingChanged:()=>mn,numericDecreaseValue:()=>V,numericIncreaseValue:()=>P,rangeReducer:()=>Cn,ratingReducer:()=>ao,sanitizeNumber:()=>Ne,toRound:()=>eo});var o=n(3899),r=n(189),i=n(499),a=n(848),s=n(9656),l=n(3198),c=n(9447),u=n(5407),d=n(3769),p=n(8047),h=n(2697),f=n(4703);const m={name:"caret-alt-up",content:'<path d="m256 160 128 192H128l128-192z" />',viewBox:"0 0 512 512"},v={name:"caret-alt-right",content:'<path d="M352 256 160 384V128l192 128z" />',viewBox:"0 0 512 512"},g={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},y={name:"caret-alt-left",content:'<path d="m160 256 192-128v256L160 256z" />',viewBox:"0 0 512 512"},b={name:"caret-alt-expand",content:'<path d="M128 288h256L256 480 128 288zM256 32 128 224h256.001L256 32z" />',viewBox:"0 0 512 512"},w={name:"droplet-slider",content:'<path d="M192 384v32c-53 0-96-43-96-96h32c0 35.3 28.7 64 64 64zm160-72c0 92.8-71.6 168-160 168S32 404.8 32 312C32 181.3 192 32 192 32s160 149.3 160 280zm-32 0c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-47.8 64.3-73 122.8-73 169 0 75 57.4 136 128 136s128-61 128-136zm128-88h-32v256h32V224zm0-192h-32v64h32V32zm-64 96v64h96v-64h-96z" />',viewBox:"0 0 512 512"},k={name:"check",content:'<path d="M434.7 82.7 480 128 192 416 32 256l45.3-45.3L192 325.5 434.7 82.7z" />',viewBox:"0 0 512 512"},x={name:"x",content:'<path d="M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96l45.3 45.3z" />',viewBox:"0 0 512 512"},z={name:"hyperlink-open",content:'<path d="M32 480h448V256h-32v192H64V64h192V32H32v448zM320 32l56.9 56.9.5.5L224 242.7l45.3 45.3 153.3-153.4L480 192V32H320z" />',viewBox:"0 0 512 512"},C={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1l122-111.7zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5-90.9-57.9z" />',viewBox:"0 0 512 512"},S={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480 256 391.5z" />',viewBox:"0 0 512 512"},I={name:"palette",content:'<path d="m206 256.6 160-160c-2.2-5.7-4.8-11.1-7.9-16.3-24.2-40.8-60.1-66-107.8-75.9-2.3-.5-4.7-1-7.1-1.4C192-5.8 143.1 4.8 96.5 34.6 49.3 64.7 19.2 107.2 6.1 162c-13 54.8-5.2 106.4 23.4 154.6 14.2 23.8 31.3 43.2 51.4 58.4 3.8-25.2 13.4-52 36.4-75 31.3-31.4 64-41.3 88.7-43.4zM288 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-96-32c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM64 256c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm0-128c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm438.7 12.9L480 118.3c-12.4-12.4-32.8-12.4-45.3 0L281.1 271.9c11.5 5.8 20.8 12.2 27.7 17.6 5.3 4.2 9.2 7.7 11.3 9.8l11.3 12.7c5.4 6.8 11.8 16.2 17.6 27.6l153.5-153.5c12.6-12.4 12.6-32.8.2-45.2zM354.3 289.3c-4.8-5.8-8.6-9.9-10.6-11.9-2.3-2.3-6.3-6.1-12-10.7L457.4 141h.1l22.5 22.5-125.7 125.8zm-78.7 169c-23.8 23.7-48.4 33-70.7 37.7-49.6 10.4-96 16-96 16s34.7-17.3 33.9-77c-.4-32.7-3.7-66.4 19.7-89.8 56.6-56.7 113.3.2 113.3.2s56.7 56-.2 112.9z" />',viewBox:"0 0 512 512"},M={name:"droplet-slash",content:'<path d="m317.9 431 23.2 23.2C316.5 470.6 287.3 480 256 480c-88.4 0-160-75.2-160-168 0-27.8 7.2-56.4 18.6-84.2l24.8 24.8C131.9 274 128 293.9 128 312c0 75 57.4 136 128 136 22.4 0 43.5-6.2 61.9-17zM256 416v-32c-35.3 0-64-28.7-64-64h-32c0 53 43 96 96 96zm224 41.4L457.4 480 32 54.6 54.6 32l108.7 108.7C207 77.7 256 32 256 32s160 149.3 160 280c0 24.1-4.9 47.1-13.6 67.8l77.6 77.6zM384 312c0-46.3-25.3-104.7-73-169-20-27-40.3-49.8-55-65.4-14.7 15.6-34.9 38.5-55 65.4-1.4 1.9-2.7 3.7-4.1 5.6-.8 1.1-1.5 2.1-2.3 3.2l-1.5 2.1-3 4.2c-.2.3-.4.5-.6.8-1 1.5-2.1 3-3.1 4.5-.1.1-.1.2-.2.3l191.2 191.2c.5-1.6 1-3.3 1.4-4.9 0-.2.1-.4.1-.5.4-1.5.8-2.9 1.1-4.4.1-.3.1-.6.2-.9.3-1.4.6-2.7.9-4.1.1-.4.2-.8.2-1.2.2-1.3.5-2.6.7-3.9.1-.5.2-1 .2-1.5.2-1.2.3-2.5.5-3.7.1-.5.1-1.1.2-1.6l.3-3.6c0-.6.1-1.1.1-1.7.1-1.3.2-2.5.2-3.8 0-.5.1-1 .1-1.6.4-1.9.4-3.7.4-5.5z" />',viewBox:"0 0 512 512"};var E,O=n(6097),H=n(4006),N=n(2009),P="numerictextbox.increment",V="numerictextbox.decrement",T="slider.increment",R="slider.decrement",D="slider.dragTitle",B="colorGradient.r",A="colorGradient.g",L="colorGradient.b",_="colorGradient.a",F="colorGradient.hex",j="colorGradient.contrastRatio",K="colorGradient.colorGradientAALevel",W="colorGradient.colorGradientAAALevel",U="colorGradient.colorGradientPass",q="colorGradient.colorGradientFail",$="colorGradient.hueSliderLabel",G="colorGradient.alphaSliderLabel",Z="colorGradient.toggleInputsButton",Y="flatColorPicker.cancelBtn",J="flatColorPicker.applyBtn",X="flatColorPicker.colorGradientBtn",Q="flatColorPicker.colorPaletteBtn",ee="flatColorPicker.clearBtn",te="checkbox.validation",ne="checkbox.optionalText",oe="switch.validation",re="colorPicker.dropdownButtonAriaLabel",ie="rating.ariaLabel",ae="signature.clear",se="signature.maximize",le="signature.minimize",ce=((E={})[P]="Increase value",E[V]="Decrease value",E[T]="Increase",E[R]="Decrease",E[D]="Drag",E[B]="r",E[A]="g",E[L]="b",E[_]="a",E[F]="hex",E[j]="Contrast ratio",E[K]="AA",E[W]="AAA",E[U]="Pass",E[q]="Fail",E[$]="Hue slider",E[G]="Alpha slider",E[Z]="Toggle colorgradient inputs",E[Y]="Cancel",E[J]="Apply",E[X]="Color Gradient view",E[Q]="Color Palette view",E[ee]="Clear color value",E[te]="Please check this box if you want to proceed!",E[ne]="(Optional)",E["radioButton.validation"]="Please select option if you want to proceed!",E[oe]="Please turn on if you want to proceed!",E[re]="Select",E[ie]="Rating",E[ae]="Clear",E[se]="Maximize",E[le]="Minimize",E),ue=function(){return ue=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ue.apply(this,arguments)},de=1111111.1111111,pe=/\d/,he=function(e,t){return void 0!==e?e:t},fe=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},me=function(e){return(String(e).split(".")[1]||"").length},ve=function(e,t){return Math.max(me(e),me(t))},ge=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},ye=function(e,t,n,o,r,i,a){var s=ve(e||0,n||0),l=we(ge((e||0)+(n||0),s),o,r);t.eventValue=l,t.currentLooseValue=fe(l,i,a),t.selectionStart=t.selectionEnd=Se(t.currentLooseValue,pe)},be=function(e,t,n,o,r,i,a){var s=ve(e||0,n||0),l=we(ge((e||0)-(n||0),s),o,r);t.eventValue=l,t.currentLooseValue=fe(l,i,a),t.selectionStart=t.selectionEnd=Se(t.currentLooseValue,pe)},we=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},ke=function(e,t,n,o){e.selectionStart=e.selectionEnd=t,function(e,t,n){var o=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 o=t[n][1];return e.length-o.length}(e,t);if(-1!==o&&n.selectionStart>o)n.selectionStart=n.selectionEnd=o;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];return t[1],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)}}(n,o,e)},xe=function(e,t,n,o){e.eventValue=o.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,ke(e,e.selectionStart,e.currentLooseValue,n)},ze=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:Se(e,pe)},Ce=function(e){return e.split("").reverse().join("")},Se=function(e,t){return e.length-Ce(e).search(t)},Ie=function(e){return e.split(e[e.search(pe)])[0]},Me=function(e){var t=Ce(e);return Ce(t.split(t[t.search(pe)])[0])},Ee=function(e,t){return e.search(t)},Oe=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},He=function(e,t,n,o,r){var i="0"===e.replace(r,"")[0],a="0"===t.replace(r,"")[0];if(i&&!a)return n-1;if(a&&o)return n+1;for(var s=0,l=0;l<n;l++)pe.test(e.charAt(l))&&s++;for(var c=0;s>0&&t.length>c;)pe.test(t.charAt(c))&&s--,c++;return c},Ne=function(e,t,n){var o=ue({},e),r=o.prevLooseValue,i=n.numberSymbols(),a=function(e,t){var n=t.formatNumber(de,e),o=t.formatNumber(-de,e),r=t.formatNumber(0,e),i=t.formatNumber(1,e),a=t.numberSymbols(),s=new RegExp("[\\d\\".concat(a.decimal).concat(a.group,"]"),"g");return[n,o,r,i].map((function(e){return e.replace(s,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),s=String(o.currentLooseValue),l=String(r),c=new RegExp("[^\\d\\".concat(i.decimal,"]"),"g"),u=new RegExp("[^\\d\\".concat(i.decimal,"\\").concat(i.group,"]"),"g"),d=new RegExp("[\\d\\".concat(i.decimal,"\\").concat(i.group,"]")),p=s.replace(c,""),h=Ee(s,pe),f=-1===h?-1:Se(s,pe),m=s.indexOf(i.decimal),v=(s.substring(0,h)+s.substring(h,f).replace(u,"")+s.substring(f,s.length)).split("").filter((function(e){return-1!==a.indexOf(e)||-1!==e.search(d)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(c,""),y=g.indexOf(i.decimal),b=y>-1?g.length-y-1:0,w=n.formatNumber(1,t).replace(c,""),k=w.indexOf(i.decimal),x=k>-1?w.length-k-1:0,z=function(e,t){var n=t.formatNumber(de,e),o=t.formatNumber(-de,e),r=t.formatNumber(0,e),i=t.formatNumber(1,e),a=Ie(n),s=Ie(o),l=Ie(r),c=Ie(i);return{positiveInfo:[a,Me(n)],negativeInfo:[s,Me(o)],zeroInfo:[l,Me(r)],oneInfo:[c,Me(i)]}}(t,n),C=[z.positiveInfo,z.negativeInfo,z.zeroInfo,z.oneInfo],S=1!==C.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),I=s.length>0&&s.length<l.length,M="string"==typeof t&&"p"===t[0]&&s&&-1===s.indexOf(i.percentSign);if(!o.isPaste){if(""===s)return o.eventValue=null,o.currentLooseValue="",o;if(o.currentLooseValue===i.minusSign&&n.formatNumber(-0,t)!==l)return o.eventValue=-0,o.currentLooseValue=fe(o.eventValue,t,n),ke(o,ze(o.currentLooseValue,i),o.currentLooseValue,C),o;if(o.currentLooseValue===i.decimal){o.eventValue=0;var E=fe(o.eventValue,t,n);if(0===x&&b>0){var O=Se(E,pe);o.currentLooseValue=E.substring(0,O)+i.decimal+E.substring(O)}else o.currentLooseValue=E;return ke(o,ze(o.currentLooseValue,i)+1,o.currentLooseValue,C),o}if(function(e,t){var n=String(e.currentLooseValue),o=String(e.prevLooseValue);return n.split(t.minusSign).length!==o.split(t.minusSign).length&&n.length===o.length+t.minusSign.length}(o,i)){var H=n.parseNumber(r,t);o.eventValue=-(null!==H?H:0),o.currentLooseValue=fe(o.eventValue,t,n);var N=Ee(o.currentLooseValue,pe),P=Ee(l,pe);return ke(o,o.selectionEnd-1+(N-P),o.currentLooseValue,C),o}if(function(e,t){var n=String(e.currentLooseValue),o=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==o.indexOf(t.minusSign)}(o,i))return o.eventValue=n.parseNumber(o.currentLooseValue,t),ke(o,o.selectionStart,o.currentLooseValue,C),o;if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(o,i))return xe(o,t,C,n),o;if(M)return o.eventValue=n.parseNumber(s,t)/100,o.currentLooseValue=fe(o.eventValue,t,n),o;if(String(o.currentLooseValue).replace(/[^\d]/g,"").length>15)return xe(o,t,C,n),o;if(p!==s&&s&&S){var V=C.findIndex((function(e){var t=e[0],n=e[1],o=s.indexOf(t),r=s.indexOf(n),a=0===o,l=r===s.length-n.length,c=o+t.length!==h&&-1!==h&&s[o+t.length]!==i.decimal,u=r!==f&&-1!==f&&s[r-1]!==i.decimal;return t&&n?!c&&!u&&a&&l:t?!c&&a:!!n&&!u&&l}));if(-1===V)return xe(o,t,C,n),o}if(p[p.length-1]===i.decimal&&b>0)return o.eventValue=n.parseNumber(s,t),o.currentLooseValue=v,o;if(o.currentLooseValue&&r&&(a+i.decimal+i.group).split("").findIndex((function(e){return s.split("").filter((function(t){return t===e})).length<l.split("").filter((function(t){return t===e})).length&&s.length+1===l.length&&(e!==i.decimal||0!==Oe(l.replace(c,""),i.decimal))}))>-1)return o.eventValue=n.parseNumber(e.prevLooseValue,t),o.currentLooseValue=e.prevLooseValue,o;var T=Oe(p,i.decimal),R="0"===p[p.length-1];if(I&&R&&T<x)return o.eventValue=n.parseNumber(o.currentLooseValue,t),o.currentLooseValue=fe(o.eventValue,t,n),o;if(T>0){var D=s.substring(0,m);if(R&&(!D||0!==l.indexOf(D))){o.eventValue=n.parseNumber(o.currentLooseValue,t);var B=fe(o.eventValue,t,n);return ke(o,He(s,B,o.selectionEnd,I,c),B,C),o.currentLooseValue=B,o}if(T>b){var A=s.indexOf(i.decimal),L=s.substring(0,A)+s.substring(A,A+1+b)+s.substring(f,String(o.currentLooseValue).length);return o.eventValue=n.parseNumber(L,t),o.currentLooseValue=L,ke(o,o.selectionStart,L,C),o}if(x!==b&&T<=b&&R)return o.eventValue=n.parseNumber(o.currentLooseValue,t),o.currentLooseValue=v,o;if(T<x)return o.eventValue=n.parseNumber(o.currentLooseValue,t),o.currentLooseValue=fe(o.eventValue,t,n),o}}return o.eventValue=n.parseNumber(o.currentLooseValue,t),M&&(o.eventValue=o.eventValue/100),"number"==typeof o.eventValue?(B=fe(o.eventValue,t,n),1===s.length?ke(o,ze(B,i),B,C):ke(o,He(s,B,o.selectionEnd,I,c),B,C),o.currentLooseValue=B):o.currentLooseValue=fe(n.parseNumber(p),t,n),o},Pe=n(7037),Ve=function(){return Ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ve.apply(this,arguments)},Te=(0,a.Y)(),Re=o.forwardRef((function(e,t){var n;(0,H.s)(N.k);var r=(0,s.Y)(Te,e),a=o.useMemo((function(){return(0,l.M)()}),[]),v=r.id||a,y=(0,i.useInternationalization)(),b=(0,i.useLocalization)(),w=o.useRef(null),k=o.useRef(),x=o.useState(!1),z=x[0],C=x[1],S=o.useRef({eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1}),I=o.useRef(!1),M=o.useRef(),E=o.useRef(r.defaultValue),T=fe(S.current.focused&&!r.disabled?S.current.currentLooseValue:he(r.value,E.current),r.format,y);M.current=T;var R=(0,c.A)(r.prefix)[0],D=(0,c.A)(r.suffix)[0];o.useEffect((function(){w.current&&w.current.setCustomValidity&&w.current.setCustomValidity(F().valid?"":r.validationMessage||"Please enter a valid value!")}));var B=o.useCallback((function(){w.current&&w.current.focus()}),[]),A=o.useCallback((function(){return void 0!==k.current?k.current:he(r.value,E.current)}),[r.value]),L=o.useCallback((function(){return r.name}),[r.name]),_=o.useCallback((function(){return r.required}),[r.required]),F=o.useCallback((function(){var e=void 0!==r.validationMessage,t=A();return{customError:e,valid:void 0!==r.valid?r.valid:!(S.current.valueIsOutOfRange||_()&&null==t),valueMissing:null==t}}),[r.validationMessage,r.valid,A,_]),j=o.useCallback((function(){return r.validityStyles}),[r.validityStyles]),K=o.useCallback((function(){return r}),[r]),W=o.useCallback((function(){var e={element:w.current,focus:B};return Object.defineProperty(e,"name",{get:L}),Object.defineProperty(e,"value",{get:A}),Object.defineProperty(e,"validity",{get:F}),Object.defineProperty(e,"validityStyles",{get:j}),Object.defineProperty(e,"required",{get:_}),Object.defineProperty(e,"props",{get:K}),e}),[L,A,F,j,_,B,K]);o.useImperativeHandle(t,W);var U=o.useCallback((function(){return{eventValue:he(r.value,E.current),prevLooseValue:M.current,currentLooseValue:w.current.value,selectionStart:w.current.selectionStart,selectionEnd:w.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:I.current,focused:S.current.focused}}),[r.value]),q=o.useCallback((function(e,t){if(!r.disabled){k.current=t.eventValue,E.current=t.eventValue;var n=fe(we(t.eventValue,r.min,r.max),r.format,y),o=we(y.parseNumber(n,r.format),r.min,r.max);o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,E.current=o),r.value!==t.eventValue&&(0,u.N)(r.onChange,e,W(),{value:t.eventValue}),k.current=void 0,S.current=t,C((function(e){return!e}))}}),[r.value,r.onChange,r.disabled,C,W]),$=o.useCallback((function(e){var t=U();I.current=!1,q(e,Ne(t,r.format,y))}),[r.format,r.onChange,y,q,U]),G=o.useCallback((function(e){var t=U(),n=y.parseNumber(String(t.currentLooseValue),r.format);if(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length){var o=y.numberSymbols(),i=o&&e.key===o.minusSign,a=o&&e.key===o.decimal;I.current=!i&&!a}else{switch(e.keyCode){case 38:ye(n,t,r.step,r.min,r.max,r.format,y);break;case 40:be(n,t,r.step,r.min,r.max,r.format,y);break;case 13:if(!1===r.rangeOnEnter)return;var s=fe(we(n,r.min,r.max),r.format,y),l=we(y.parseNumber(s,r.format),r.min,r.max);t.eventValue=l,t.currentLooseValue=fe(l,r.format,y),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var c=w.current,u=y.numberSymbols();c&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+u.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=Ne(t,r.format,y));break;default:return}e.preventDefault(),q(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.rangeOnEnter,q,U]),Z=o.useCallback((function(){I.current=!0}),[]),Y=o.useCallback((function(e){if(!r.readOnly&&!r.disabled){var t=U();ye(y.parseNumber(String(t.currentLooseValue),r.format),t,r.step,r.min,r.max,r.format,y),q(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.readOnly,r.disabled,q,U]),J=o.useCallback((function(e){if(!r.readOnly&&!r.disabled){var t=U();be(y.parseNumber(String(t.currentLooseValue),r.format),t,r.step,r.min,r.max,r.format,y),q(e,t)}}),[r.format,r.min,r.max,r.step,r.onChange,r.readOnly,r.disabled,q,U]),X=o.useCallback((function(e){var t=(0,d.v)(document);document&&t===w.current&&w.current&&!r.readOnly&&!r.disabled&&(e.nativeEvent.deltaY<0&&Y(e),e.nativeEvent.deltaY>0&&J(e))}),[Y,J,r.disabled,r.readOnly]),Q=o.useCallback((function(e){S.current.currentLooseValue=M.current,S.current.focused=!0,(0,u.N)(r.onFocus,e,W(),{}),C((function(e){return!e}))}),[r.onFocus,C,W]),ee=o.useCallback((function(e){S.current={eventValue:null,prevLooseValue:"",currentLooseValue:"",focused:!1,selectionStart:void 0,selectionEnd:void 0,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1},(0,u.N)(r.onBlur,e,W(),{}),C((function(e){return!e}))}),[r.onBlur,C,W]),te=o.useCallback((function(e){if(document&&w.current){var t=(0,d.v)(document);e.preventDefault(),t!==w.current&&w.current.focus()}}),[]);o.useLayoutEffect((function(){w.current&&"number"!==w.current.type&&void 0!==S.current.selectionStart&&void 0!==S.current.selectionEnd&&(w.current.selectionStart=S.current.selectionStart,w.current.selectionEnd=S.current.selectionEnd,S.current.selectionStart=void 0,S.current.selectionEnd=void 0)}),[z]);var ne=!j()||F().valid,oe=o.createElement("span",{dir:r.dir,style:r.label?r.style:Ve({width:r.width},r.style),className:(0,p.A)("k-input","k-numerictextbox",(n={},n["k-input-".concat(h.G.sizeMap[r.size]||r.size)]=r.size,n["k-input-".concat(r.fillMode)]=r.fillMode,n["k-rounded-".concat(h.G.roundedMap[r.rounded]||r.rounded)]=r.rounded,n["k-invalid"]=!ne,n["k-required"]=r.required,n["k-disabled"]=r.disabled,n),r.className),"aria-disabled":r.disabled?"true":void 0},o.createElement(R,null),o.createElement("input",{role:"spinbutton",value:null===T?"":T,tabIndex:(0,f.p)(r.tabIndex,r.disabled),accessKey:r.accessKey,disabled:r.disabled,title:r.title,"aria-disabled":r.disabled?"true":void 0,"aria-valuemin":r.min,"aria-valuemax":r.max,"aria-label":r.ariaLabel,"aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,placeholder:r.placeholder,spellCheck:!1,autoComplete:"off",autoCorrect:"off",type:r.inputType||"tel",className:"k-input-inner",id:v,name:r.name,readOnly:r.readOnly,style:r.inputStyle,onChange:$,onFocus:Q,onBlur:ee,onKeyDown:G,onPaste:Z,onWheel:X,ref:w}),o.createElement(D,null),r.children,r.spinners&&o.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:te},o.createElement(Pe.z,{tabIndex:-1,type:"button",icon:"caret-alt-up",svgIcon:m,rounded:null,className:"k-spinner-increase","aria-label":b.toLanguageString(P,ce[P]),title:b.toLanguageString(P,ce[P]),onClick:Y}),o.createElement(Pe.z,{tabIndex:-1,type:"button",icon:"caret-alt-down",svgIcon:g,rounded:null,className:"k-spinner-decrease","aria-label":b.toLanguageString(V,ce[V]),title:b.toLanguageString(V,ce[V]),onClick:J})));return r.label?o.createElement(O._,{label:r.label,editorId:v,editorValue:null===T?"":T,editorValid:ne,editorDisabled:r.disabled,editorPlaceholder:r.placeholder,children:oe,style:{width:r.width},dir:r.dir}):oe}));Re.propTypes={value:r.number,defaultValue:r.number,step:r.number,format:r.oneOfType([r.string,r.shape({style:r.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:r.string,currencyDisplay:r.oneOf(["symbol","code","name"]),useGrouping:r.bool,minimumIntegerDigits:r.number,minimumFractionDigits:r.number,maximumFractionDigits:r.number})]),width:r.oneOfType([r.string,r.number]),tabIndex:r.number,accessKey:r.string,title:r.string,placeholder:r.string,min:r.number,max:r.number,spinners:r.bool,disabled:r.bool,readOnly:r.bool,dir:r.string,name:r.string,label:r.string,validationMessage:r.string,required:r.bool,id:r.string,rangeOnEnter:r.bool,ariaLabelledBy:r.string,ariaDescribedBy:r.string,ariaLabel:r.string,onChange:r.func,onFocus:r.func,onBlur:r.func,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"])},Re.displayName="KendoNumericTextBox",Re.defaultProps={prefix:function(e){return null},suffix:function(e){return null},step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,onChange:function(e){},onFocus:function(e){},onBlur:function(e){},size:"medium",rounded:"medium",fillMode:"solid"};var De,Be=n(4407),Ae=function(e){return null!=e},Le=function(e,t,n){return!Ae(e)||isNaN(e)||e<=t?t:e>=n?n:e},_e=function(e,t,n){if(void 0===n&&(n=!0),-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '".concat(t,"'. The available options are 'hex' or 'rgba'."));if(Ae(e)){var o=(0,Be.parseColor)(e.trim(),n);if(Ae(o))return"hex"===t?o.toCss():o.toCssRgba()}},Fe=function(e,t){void 0===t&&(t=!0);var n=(0,Be.parseColor)(e,t);return Ae(n)?n.toHSV():{}},je=function(e,t){void 0===t&&(t=!0);var n=(0,Be.parseColor)(e,t);return Ae(n)?n.toBytes():{}},Ke=function(e){var t=Le(e.h,0,359.9),n=Le(e.s,0,1),o=Le(e.v,0,1),r=Le(e.a,0,1);return Be.Color.fromHSV(t,n,o,r).toCssRgba()},We=function(e){return Ke({h:e,s:1,v:1,a:1})},Ue=function(e,t){var n=Le(e.r,0,255),o=Le(e.g,0,255),r=Le(e.b,0,255),i=Le(e.a,0,1),a=Le(t.r,0,255),s=Le(t.g,0,255),l=Le(t.b,0,255);return{r:Math.round((1-i)*a+i*n),g:Math.round((1-i)*s+i*o),b:Math.round((1-i)*l+i*r)}},qe=function(e){var t=[e.r||0,e.g||0,e.b||0].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]},$e=function(e,t){return n=qe(Ue(e,t)),o=qe(Ue(t,{r:0,g:0,b:0,a:1})),(Math.max(n,o)+.05)/(Math.min(n,o)+.05);var n,o},Ge=(De=function(e,t){return De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},De(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ze=function(){return Ze=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ze.apply(this,arguments)},Ye=function(e){function t(n){var o=e.call(this,n)||this;return o._input=null,o._inputId=(0,l.M)(),o.focus=function(){o._input&&o._input.focus()},o.isInvalid=function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||Boolean(e[n]));return t},o.setValidity=function(){o._input&&o._input.setCustomValidity&&(o.validity.valid||!o.validityStyles?o._input.classList.remove("k-invalid"):o._input.classList.add("k-invalid"),o._input.setCustomValidity(o.validity.valid?"":o.props.validationMessage||""))},o.handleChange=function(e){o.setState({value:e.target.value}),o.valueDuringOnChange=e.target.value,o.props.onChange&&o.props.onChange.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:e.target.value,target:o}),o.valueDuringOnChange=void 0},o.handleAutoFill=function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-empty")&&t.classList.remove("k-empty")}},(0,H.s)(N.k),o.state={value:o.props.defaultValue||t.defaultProps.defaultValue},o}return Ge(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.value?this.props.value:this.state.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get: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,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return Ze(Ze({},e),{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!this._input||!this.isInvalid(e)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.label,i=t.labelClassName,a=t.id,s=(t.validationMessage,t.defaultValue,t.valid,t.visited,t.touched,t.modified,t.ariaLabelledBy),l=t.ariaDescribedBy,c=(t.validityStyles,t.style),u=t.ariaLabel,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["className","label","labelClassName","id","validationMessage","defaultValue","valid","visited","touched","modified","ariaLabelledBy","ariaDescribedBy","validityStyles","style","ariaLabel"]),h=a||this._inputId,f=!this.validityStyles||this.validity.valid,m=(0,p.A)(n,"k-input k-input-md k-rounded-md k-input-solid"),v=o.createElement("input",Ze({"aria-labelledby":s,"aria-describedby":l,"aria-disabled":this.props.disabled||void 0,"aria-invalid":!f||void 0,"aria-label":u||void 0},d,{style:r?void 0:c,value:this.value,id:h,className:m,onChange:this.handleChange,onAnimationStart:this.handleAutoFill,ref:function(t){e._input=t}}));return r?o.createElement(O._,{label:r,labelClassName:i,editorId:h,editorValue:String(this.value),editorValid:f,editorDisabled:d.disabled,editorPlaceholder:d.placeholder,children:v,style:c,dir:d.dir}):v},t.displayName="Input",t.propTypes={label:r.string,labelClassName:r.string,validationMessage:r.string,required:r.bool,validate:r.bool,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,ariaLabel:r.string},t.defaultProps={defaultValue:"",required:!1,validityStyles:!0},t}(o.Component),Je=(0,a.Y)(),Xe=(0,a.u)(Je,Ye);Xe.displayName="KendoReactInput";var Qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();const et=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=e.target.value,o=_e(t,"rgba");n.setState({hex:t}),Ae(o)&&n.props.onHexChange(t,o,e)},n.onBlur=function(){Ae(_e(n.state.hex,"rgba"))||n.setState({hex:n.state.originalHex})},n.state={hex:n.props.hex,originalHex:n.props.hex},n}return Qe(t,e),t.prototype.render=function(){return o.createElement(Xe,{value:this.state.hex,onChange:this.onChange,onBlur:this.onBlur,disabled:this.props.disabled})},t.getDerivedStateFromProps=function(e,t){return e.hex!==t.originalHex?{hex:e.hex,originalHex:e.hex}:null},t}(o.Component);var tt=n(2609),nt=n(8011),ot=function(e){(0,H.s)(nt.k);var t=e.id,n=e.editorId,r=e.editorRef,a=e.editorDisabled,s=e.children,l=e.editorValid,c=e.style,u=e.className,d=e.optional,h=(0,i.useLocalization)(),f=d?h.toLanguageString(tt.y,tt.s[tt.y]):"",m=f&&o.createElement("span",{className:"k-label-optional"},f),v=o.useCallback((function(e){if(r&&r.current&&!a){r.current.focus&&(e.preventDefault(),r.current.focus());var t=r.current.actionElement;t&&(e.preventDefault(),t.click())}}),[r]),g=(0,p.A)({"k-label":!0,"k-label-empty":!s,"k-text-error":!1===l,"k-text-disabled":!0===a},u);return o.createElement("label",{id:t,htmlFor:n,onClick:v,style:c,className:g},s,m)};ot.propTypes={id:r.string,editorId:r.string,editorRef:r.oneOfType([r.func,r.shape({current:r.any})]),editorValid:r.bool,editorDisabled:r.bool,style:r.object,className:r.string,optional:r.bool},ot.displayName="KendoReactLabel";var rt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),it=function(){return it=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},it.apply(this,arguments)},at=["rgba","rgb","hex"],st=function(e){function t(t){var n=e.call(this,t)||this;return n.onRgbaRChange=function(e){n.dispatchRgbaChange({r:e.value},e)},n.onRgbaGChange=function(e){n.dispatchRgbaChange({g:e.value},e)},n.onRgbaBChange=function(e){n.dispatchRgbaChange({b:e.value},e)},n.onRgbaAChange=function(e){n.dispatchRgbaChange({a:e.value},e)},n.state={inputMode:t.defaultInputMode||at[1]},n}return rt(t,e),t.prototype.render=function(){var e=(0,i.provideLocalizationService)(this),t=e.toLanguageString(B,ce[F]),n=e.toLanguageString(B,ce[B]),r=e.toLanguageString(B,ce[A]),a=e.toLanguageString(B,ce[L]),s=e.toLanguageString(B,ce[_]),l=e.toLanguageString(Z,ce[Z]);return o.createElement("div",{className:"k-colorgradient-inputs k-hstack"},o.createElement("div",{className:"k-vstack"},o.createElement(Pe.z,{"aria-label":l,fillMode:"flat",icon:"caret-alt-expand",svgIcon:b,className:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange.bind(this)})),"hex"===this.state.inputMode&&o.createElement("div",{className:"k-vstack k-flex-1"},o.createElement("span",{className:"k-hex-value k-textbox k-input"},o.createElement(et,{hex:this.props.hex,onHexChange:this.props.onHexChange,disabled:this.props.disabled})),o.createElement(ot,{className:"k-colorgradient-input-label"},t)),("rgb"===this.state.inputMode||"rgba"===this.state.inputMode)&&o.createElement(o.Fragment,null,o.createElement("div",{className:"k-vstack"},o.createElement(Re,{inputType:"number",value:this.props.rgba.r,ariaLabel:String(this.props.rgba.r),min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaRChange,disabled:this.props.disabled}),o.createElement(ot,{className:"k-colorgradient-input-label"},n)),o.createElement("div",{className:"k-vstack"},o.createElement(Re,{inputType:"number",value:this.props.rgba.g,ariaLabel:String(this.props.rgba.g),min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaGChange,disabled:this.props.disabled}),o.createElement(ot,{className:"k-colorgradient-input-label"},r)),o.createElement("div",{className:"k-vstack"},o.createElement(Re,{inputType:"number",value:this.props.rgba.b,ariaLabel:String(this.props.rgba.b),min:0,max:255,spinners:!1,format:"n",onChange:this.onRgbaBChange,disabled:this.props.disabled}),o.createElement(ot,{className:"k-colorgradient-input-label"},a))),"rgba"===this.state.inputMode&&o.createElement("div",{className:"k-vstack"},this.props.opacity&&o.createElement(Re,{inputType:"number",value:this.props.rgba.a,ariaLabel:String(this.props.rgba.a),min:0,max:1,step:.01,spinners:!1,format:"n2",onChange:this.onRgbaAChange,disabled:this.props.disabled}),this.props.opacity&&o.createElement(ot,{className:"k-colorgradient-input-label"},s)))},t.prototype.dispatchRgbaChange=function(e,t){var n=it({},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.props.onRgbaChange(n,t)},t.prototype.onToggleModeChange=function(){var e=at.length-1===at.indexOf(this.state.inputMode)?0:at.indexOf(this.state.inputMode)+1;if(this.props.opacity)this.setState({inputMode:at[e]});else{var t="rgba"===at[e]?e+1:e;this.setState({inputMode:at[t]})}},t}(o.Component);const lt=st;(0,i.registerForIntl)(st),(0,i.registerForLocalization)(st);var ct=n(9124),ut=n(1779),dt=n(3493),pt=n(8199),ht=function(){return ht=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ht.apply(this,arguments)},ft="data-slider-label",mt=function(e){var t,n,r=o.useRef(null),i=(0,pt.n)(r),a=e.vertical?{bottom:"".concat(e.position,"%")}:((t={})["rtl"===i?"right":"left"]="".concat(e.position,"%"),t),s=e.vertical?"k-tick-vertical":"k-tick-horizontal";return o.createElement("li",{ref:r,className:"k-tick k-tick-large ".concat(s),title:e.title,style:ht({zIndex:1,position:"absolute"},a)},e.children&&o.createElement("span",ht({},((n={})[ft]=!0,n),{className:"k-label",onClick:e.onClick}),e.children))},vt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gt=function(){return gt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},gt.apply(this,arguments)},yt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:void 0===n.props.defaultValue?n.props.min:n.props.defaultValue,focused:!1,dir:n.props.dir},n._sliderTrack=null,n._element=null,n.buttons=function(e){if(!e.enabled)return e.children;var t="rtl"===n.state.dir?n.props.vertical?m:y:n.props.vertical?m:v,r="rtl"===n.state.dir?n.props.vertical?g:v:n.props.vertical?g:y,i="rtl"===n.state.dir?n.props.vertical?"caret-alt-up":"caret-alt-left":n.props.vertical?"caret-alt-up":"caret-alt-right",a="rtl"===n.state.dir?n.props.vertical?"caret-alt-down":"caret-alt-right":n.props.vertical?"caret-alt-down":"caret-alt-left";return o.createElement(o.Fragment,null,o.createElement(Pe.z,{className:"k-button-decrease",rounded:"full",icon:a,svgIcon:r,title:e.decrementTitle,onClick:e.decrement}),e.children,o.createElement(Pe.z,{className:"k-button-increase",rounded:"full",icon:i,svgIcon:t,title:e.incrementTitle,onClick:e.increment}))},n.focus=function(){n._element&&n._element.focus()},n.isLabel=function(e){for(var t=e;t;){if(Boolean(t.getAttribute(ft)))return!0;t=t.parentElement}return!1},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=void 0;e.keyCode===dt.R.left||e.keyCode===dt.R.down?t=n.state.value-(n.props.step||0):e.keyCode===dt.R.right||e.keyCode===dt.R.up?t=n.state.value+(n.props.step||0):e.keyCode===dt.R.home?t=n.props.min:e.keyCode===dt.R.end&&(t=n.props.max),void 0!==t&&(e.preventDefault(),n.change(e,t))},n.decrement=function(e){e.preventDefault(),n.change(e,n.state.value-(n.props.step||0))},n.increment=function(e){e.preventDefault(),n.change(e,n.state.value+(n.props.step||0))},n.dragStart=function(e){n.isLabel(e.event.originalEvent.target)||(e.event.isTouch&&e.event.originalEvent.preventDefault(),n.drag(e))},n.dragOver=function(e){e.event.originalEvent.preventDefault(),n.drag(e)},n.drag=function(e){var t=e.element.getBoundingClientRect(),o=(n.props.vertical?t.bottom-e.event.clientY:"rtl"===n.state.dir?t.right-e.event.clientX:e.event.clientX-t.left)/(n.props.vertical?t.height:t.width);n.change(e,n.props.min+o*(n.props.max-n.props.min))},(0,H.s)(N.k),n}return vt(t,e),t.getDerivedStateFromProps=function(e,t){var n=void 0!==e.value?e.value:t.value,o=e.min,r=e.max;return void 0===n?null:{value:Math.min(Math.max(n,o),r)}},t.prototype.componentDidMount=function(){if(!this.state.dir&&window&&this._element){var e=window.getComputedStyle(this._element).direction;e&&this.setState({dir:e})}},t.prototype.render=function(){var e,t=this,n=(0,i.provideLocalizationService)(this),r=(this.state.value-this.props.min)/(this.props.max-this.props.min)*100,a=this.props.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"},s=this.props.vertical?{paddingTop:0,height:"100%"}:{};return o.createElement("div",{ref:function(e){return t._element=e},dir:this.state.dir,id:this.props.id,style:gt({gap:0},this.props.style),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,className:(0,p.A)("k-slider",{"k-focus":this.state.focused,"k-disabled":this.props.disabled,"k-slider-horizontal":!this.props.vertical,"k-slider-vertical":this.props.vertical},this.props.className)},o.createElement(this.buttons,{enabled:this.props.buttons,decrement:this.decrement,increment:this.increment,incrementTitle:n.toLanguageString(T,ce[T]),decrementTitle:n.toLanguageString(R,ce[R])},o.createElement(ut._,{onDrag:this.dragOver,onPress:this.dragStart},o.createElement("div",{className:"k-slider-track-wrap",style:gt({flexGrow:1,position:"relative",touchAction:"none"},a)},this.props.children&&o.createElement("ul",{className:"k-reset k-slider-items",style:gt({margin:0},s)},o.Children.map(this.props.children,(function(e){return e&&o.cloneElement(e,{position:100*(e.props.position-t.props.min)/(t.props.max-t.props.min),vertical:t.props.vertical},e.props.children)}))),o.createElement("div",{className:"k-slider-track",style:this.props.vertical?{bottom:0,height:"100%"}:(e={},e["rtl"===this.state.dir?"right":"left"]=0,e.width="100%",e),ref:function(e){return t._sliderTrack=e}},o.createElement("div",{className:"k-slider-selection",style:this.props.vertical?{height:r+"%"}:{width:r+"%"}}),o.createElement("span",{role:"slider","aria-valuemin":this.props.min,"aria-valuemax":this.props.max,"aria-valuenow":this.state.value,"aria-valuetext":String(this.state.value),"aria-orientation":this.props.vertical?"vertical":void 0,"aria-disabled":this.props.disabled?"true":void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-label":this.props.ariaLabel,tabIndex:(0,f.p)(this.props.tabIndex,this.props.disabled,void 0),className:"k-draghandle",title:n.toLanguageString(D,ce[D]),style:this.props.vertical?{bottom:"calc("+r+"%)",zIndex:1}:"rtl"===this.state.dir?{right:"calc("+r+"% - 13px)",zIndex:1}:{left:"calc("+r+"%)",zIndex:1}}))))))},Object.defineProperty(t.prototype,"sliderTrack",{get:function(){return this._sliderTrack},enumerable:!1,configurable:!0}),t.prototype.change=function(e,t){t=Math.min(Math.max(t,this.props.min),this.props.max),this.setState({value:t}),(0,u.N)(this.props.onChange,e,this,{value:t})},t.displayName="Slider",t.propTypes={min:r.number.isRequired,max:r.number.isRequired,value:r.number,vertical:r.bool,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,ariaLabel:r.string},t}(o.Component),bt=(0,a.Y)(),wt=(0,a.u)(bt,yt);wt.displayName="KendoReactSlider",(0,i.registerForLocalization)(yt);var kt={},xt=n(8130),zt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.render=function(){var e=(0,i.provideLocalizationService)(this),t=e.toLanguageString(j,ce[j]),n=e.toLanguageString(K,ce[K]),r=e.toLanguageString(W,ce[W]),a=e.toLanguageString(U,ce[U]),s=e.toLanguageString(q,ce[q]),l=$e(this.props.rgba,this.props.bgColor),c=4.5.toFixed(1),u=7..toFixed(1),d="".concat(t,": ").concat(l.toFixed(2)),p="".concat(n,": ").concat(c),h="".concat(r,": ").concat(u),f=o.createElement("span",{className:"k-contrast-validation k-text-success"},a," ",o.createElement(xt.a,{name:"check",icon:k})),m=o.createElement("span",{className:"k-contrast-validation k-text-error"},s," ",o.createElement(xt.a,{name:"x",icon:x}));return o.createElement("div",{className:"k-vbox k-colorgradient-color-contrast"},o.createElement("div",{className:"k-contrast-ratio"},o.createElement("span",{className:"k-contrast-ratio-text"},d),l>=4.5?o.createElement("span",{className:"k-contrast-validation k-text-success"},o.createElement(xt.a,{name:"check",icon:k}),l>=7&&o.createElement(xt.a,{name:"check",icon:k})):o.createElement("span",{className:"k-contrast-validation k-text-error"},o.createElement(xt.a,{name:"x",icon:x}))),o.createElement("div",null,o.createElement("span",null,p),l>=4.5?f:m),o.createElement("div",null,o.createElement("span",null,h),l>=7?f:m))},t}(o.Component);(0,i.registerForLocalization)(Ct);var St=function(e,t){if(0===e.length)return"";var n=e.reduce((function(e,n,o,r){return 0===o?"M ".concat(n[0],",").concat(n[1]):"".concat(e," ").concat(t(n,o,r))}),"");return'<path d="'.concat(n,'" fill="none" stroke="white" stroke-width="1"/>')},It=function(e,t){var n=t[0]-e[0],o=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(o,2)),angle:Math.atan2(o,n)}},Mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mt(t,e),t.prototype.renderSvgCurveLine=function(){var e,t,n=this,o=this.props.metrics,r=function(e,t,i,a,s){var l=(i+a)/2,c=Object.assign({},n.props.hsva,{s:t/o.width,v:1-l/o.height}),u=$e(je(Ke(c)),je(n.props.backgroundColor||""));return i+.5>a?u<e+1&&u>e-1?l:null:s(u,e)?r(e,t,i,a-(a-i)/2,s):r(e,t,i+(a-i)/2,a,s)},i=function(e,t,n){void 0===n&&(n=!1);for(var i=[],a=0;a<=o.width;a+=o.width/t){var s=r(e,a,0,o.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==s&&i.push([a,s])}return i},a=(t=It,e=function(e,n,o,r){var i=t(n||e,o||e),a=i.angle+(r?Math.PI:0),s=.1*i.length;return[e[0]+Math.cos(a)*s,e[1]+Math.sin(a)*s]},function(t,n,o){var r=e(o[n-1],o[n-2],t),i=r[0],a=r[1],s=e(t,o[n-1],o[n+1],!0),l=s[0],c=s[1];return"C ".concat(i,",").concat(a," ").concat(l,",").concat(c," ").concat(t[0],",").concat(t[1])});return St(i(4.5,16),a)+St(i(4.5,16,!0),a)+St(i(7,16),a)+St(i(7,16,!0),a)},t.prototype.shouldComponentUpdate=function(e){return e.hsva.h!==this.props.hsva.h||e.hsva.a!==this.props.hsva.a||this.props.backgroundColor!==e.backgroundColor},t.prototype.render=function(){return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"k-color-contrast-svg",dangerouslySetInnerHTML:{__html:this.renderSvgCurveLine()},style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}})},t}(o.Component),Ot=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ht="rgba(255, 255, 255, 1)",Nt=function(e){function t(n){var o=e.call(this,n)||this;o.wrapper=null,o.onHexChange=function(e,t,n){if(o.isUncontrolled){var r=Fe(t);o.setState({hsva:r,backgroundColor:We(r.h),rgba:je(t),hex:e})}else!function(e,t,n){kt[e]={value:t,hex:n}}(o.state.guid,t,e);o.dispatchChangeEvent(t,n,n.nativeEvent)},o.onRgbaChange=function(e,t){var n=function(e){var t=Le(e.r,0,255),n=Le(e.g,0,255),o=Le(e.b,0,255),r=Le(e.a,0,1);return Be.Color.fromBytes(t,n,o,r).toCssRgba()}(e);if(o.isUncontrolled){var r=Fe(n),i=_e(n,"hex");o.setState({hsva:r,backgroundColor:We(r.h),rgba:e,hex:i})}else!function(e,t,n){kt[e]={value:t,rgba:n}}(o.state.guid,n,e);o.dispatchChangeEvent(n,t.syntheticEvent,t.nativeEvent)},o.onAlphaSliderChange=function(e){o.handleHsvaChange(Object.assign({},o.state.hsva,{a:e.value/100}),e.syntheticEvent,e.nativeEvent)},o.onHueSliderChange=function(e){o.handleHsvaChange(Object.assign({},o.state.hsva,{h:e.value}),e.syntheticEvent,e.nativeEvent)},o.onDrag=function(e){o.gradientWrapper.classList.add("k-dragging"),o.changePosition(e.event)},o.onRelease=function(){o.gradientWrapper.classList.remove("k-dragging")},o.onGradientWrapperClick=function(e){o.changePosition(e)},o.changePosition=function(e){var t=o.getGradientRectMetrics(),n=e.clientX-t.left,r=e.clientY-t.top,i=Le(n,0,t.width),a=Le(r,0,t.height),s=Object.assign({},o.state.hsva,{s:i/t.width,v:1-a/t.height});o.handleHsvaChange(s,e,e.nativeEvent)},o.onFocus=function(e){o.props.onFocus&&o.props.onFocus.call(void 0,{nativeEvent:e,target:o})},o.focus=function(){(0,ct.n)(o.wrapper)},(0,H.s)(N.k);var r=n.value||n.defaultValue||_e(Ht,"rgba");return o.state=Object.assign({},t.getStateFromValue(r),{isFirstRender:!0,guid:(0,l.M)()}),o}return Ot(t,e),t.getDerivedStateFromProps=function(e,n){return e.value&&!n.isFirstRender?t.getStateFromValue(e.value,n.guid):null},t.prototype.componentDidMount=function(){this.setAlphaSliderBackground(this.state.backgroundColor),this.state.isFirstRender&&this.setState({isFirstRender:!1})},t.prototype.componentWillUnmount=function(){var e;e=this.state.guid,delete kt[e]},t.prototype.componentDidUpdate=function(e,t){t.backgroundColor!==this.state.backgroundColor&&this.setAlphaSliderBackground(this.state.backgroundColor)},t.prototype.renderRectangleDragHandle=function(){var e={};if(!this.state.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.state.hsva.v)*t.height,r=this.state.hsva.s*t.width;e.top="".concat(n,"px"),e.left="".concat(r,"px")}return o.createElement("div",{role:"slider",tabIndex:(0,f.p)(this.props.tabIndex,this.props.disabled),"aria-valuetext":this.props.ariaValueText,"aria-valuenow":parseInt(this.state.hex.substring(1),16),"aria-label":this.props.ariaLabelHSV,"aria-orientation":void 0,"aria-disabled":this.props.disabled?"true":void 0,className:"k-hsv-draghandle k-draghandle",style:e})},t.prototype.handleHsvaChange=function(e,t,n){var o=Ke(e);if(this.isUncontrolled){var r=_e(o,"hex");this.setState({hsva:e,backgroundColor:We(e.h),rgba:je(o),hex:r})}else!function(e,t,n){kt[e]={value:t,hsva:n}}(this.state.guid,o,e);this.dispatchChangeEvent(o,t,n)},t.prototype.dispatchChangeEvent=function(e,t,n){this.props.onChange&&this.props.onChange.call(void 0,{syntheticEvent:t,nativeEvent:n,target:this,value:e})},t.getStateFromValue=function(e,t){Ae(_e(e,"hex"))||(e=Ht);var n=function(e,t){if(e){var n=kt[e];return n&&n.value===t?n.hsva:void 0}}(t,e)||Fe(e),o=function(e,t){if(e){var n=kt[e];return n&&n.value===t?n.rgba:void 0}}(t,e)||je(e),r=function(e,t){if(e){var n=kt[e];return n&&n.value===t?n.hex:void 0}}(t,e)||_e(e,"hex");return{hsva:n,backgroundColor:We(n.h),rgba:o,hex:r}},t.prototype.setAlphaSliderBackground=function(e){this.props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, ".concat(e,")"))},Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!1,configurable:!0}),t.prototype.getGradientRectMetrics=function(){return this.gradientWrapper.getBoundingClientRect()},t.prototype.render=function(){var e=this,t=(0,i.provideLocalizationService)(this),n=(0,p.A)("k-colorgradient",{"k-disabled":this.props.disabled},this.props.className);return o.createElement("div",{id:this.props.id,role:this.props.role,className:n,"aria-disabled":this.props.disabled?"true":void 0,style:this.props.style,ref:function(t){return e.wrapper=t},tabIndex:(0,f.p)(this.props.tabIndex,this.props.disabled),"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,onFocus:this.onFocus},o.createElement("div",{className:"k-colorgradient-canvas k-hstack"},o.createElement("div",{className:"k-hsv-rectangle",style:{background:this.state.backgroundColor}},o.createElement(ut._,{onDrag:this.onDrag,onRelease:this.onRelease,ref:function(t){return e.gradientWrapper=t?t.element:void 0}},o.createElement("div",{className:"k-hsv-gradient",style:{touchAction:"none"},onClick:this.onGradientWrapperClick},this.renderRectangleDragHandle())),this.props.backgroundColor&&!this.state.isFirstRender&&o.createElement(Et,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.state.hsva,backgroundColor:this.props.backgroundColor})),o.createElement("div",{className:"k-hsv-controls k-hstack"},o.createElement(wt,{value:this.state.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,className:"k-hue-slider k-colorgradient-slider",disabled:this.props.disabled,ariaLabel:t.toLanguageString($,ce[$])}),this.props.opacity&&o.createElement(wt,{value:Ae(this.state.hsva.a)?100*this.state.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,ariaLabel:t.toLanguageString(G,ce[G]),onChange:this.onAlphaSliderChange,className:"k-alpha-slider k-colorgradient-slider",disabled:this.props.disabled,ref:function(t){return e.alphaSlider=t}}))),o.createElement(lt,{rgba:this.state.rgba,onRgbaChange:this.onRgbaChange,hex:this.state.hex,onHexChange:this.onHexChange,opacity:this.props.opacity,disabled:this.props.disabled,defaultInputMode:this.props.format}),this.props.backgroundColor&&o.createElement(Ct,{bgColor:je(this.props.backgroundColor),rgba:this.state.rgba}))},t.displayName="ColorGradient",t.propTypes={defaultValue:r.string,value:r.string,onChange:r.func,onFocus:r.func,opacity:r.bool,backgroundColor:r.string,format:r.any,disabled:r.bool,style:r.any,id:r.string,role:r.string,ariaLabel:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,className:r.string},t.defaultProps={opacity:!0,role:"textbox",format:"rgb"},t}(o.Component),Pt=(0,a.Y)(),Vt=(0,a.u)(Pt,Nt);Vt.displayName="KendoReactColorGradient";var Tt=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],Ae(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var o=e.slice(n,t+n);this.colorRows.push(o)}}},e.prototype.getCellCoordsFor=function(e){var t=this;if(Ae(e)){var n=e?(0,Be.parseColor)(e,!0):e,o=[e];Ae(n)&&o.push(n.toCss(),n.toCssRgba());for(var r=function(e){for(var n=function(n){if(o.some((function(o){return o===t.colorRows[e][n]})))return{value:{row:e,col:n}}},r=0;r<i.colorRows[e].length;r++){var a=n(r);if("object"==typeof a)return a}},i=this,a=0;a<this.colorRows.length;a++){var s=r(a);if("object"==typeof s)return s.value}}},e.prototype.getColorAt=function(e){if(Ae(e)&&Ae(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(Ae(e)&&Ae(e.row)&&Ae(e.col)))return{row:0,col:0};var o=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:o,col:this.clampIndex(e.col+t,this.colorRows[o].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),Rt={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}},Dt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bt="office",At=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapper=null,n.paletteService=null,n.guid=(0,l.M)(),n.focus=function(){n.wrapper&&n.wrapper.focus()},n.onKeyDown=function(e){switch(e.keyCode){case dt.R.down:n.handleCellNavigation(0,1);break;case dt.R.up:n.handleCellNavigation(0,-1);break;case dt.R.right:n.handleCellNavigation(1,0);break;case dt.R.left:n.handleCellNavigation(-1,0);break;case dt.R.enter:n.handleEnter(e);break;default:return}e.preventDefault()},n.onColorClick=function(e,t){n.isUncontrolled?n.setState({selectedColor:e,focusedColor:e}):n.setState({focusedColor:e}),n.dispatchChangeEvent(e,t)},n.onFocus=function(e){n.paletteService&&(n.setState({focusedColor:n.state.selectedColor||n.paletteService.colorRows[0][0]}),n.props.onFocus&&n.props.onFocus.call(void 0,e))},n.onBlur=function(){n.setState({focusedColor:void 0})},(0,H.s)(N.k),n.state={selectedColor:void 0!==n.props.value?n.props.value:n.props.defaultValue,isFirstRender:!0},n}return Dt(t,e),t.prototype.render=function(){var e=this,t=this.getPaletteInfo(),n=this.paletteService=new Tt;n.setColorMatrix(t.colors,t.columns);var r=n.getCellCoordsFor(this.state.selectedColor),i=n.getCellCoordsFor(this.state.focusedColor),a=(0,p.A)("k-colorpalette",{"k-disabled":this.props.disabled},this.props.className);return t.colors.length?o.createElement("div",{id:this.props.id,role:"grid",className:a,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,"aria-disabled":this.props.ariaDisabled||(this.props.disabled?"true":void 0),"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,tabIndex:(0,f.p)(this.props.tabIndex,this.props.disabled),ref:function(t){return e.wrapper=t}},o.createElement("table",{className:"k-colorpalette-table",role:"presentation"},o.createElement("tbody",{role:"rowgroup"},this.renderRows(n.colorRows,r,i)))):""},t.getDerivedStateFromProps=function(e,t){if(t.isFirstRender||void 0===e.value){if(t.isFirstRender)return{isFirstRender:!1}}else{if(""===e.value&&void 0!==t.selectedColor)return{selectedColor:void 0};if(""!==e.value&&e.value!==t.selectedColor)return{selectedColor:e.value}}return null},t.prototype.handleCellNavigation=function(e,t){if(this.paletteService)if(this.focusedColorCooridanates){var n=this.paletteService.getNextCell(this.focusedColorCooridanates,e,t);this.setState({focusedColor:this.paletteService.getColorAt(n)})}else this.setState({focusedColor:this.paletteService.colorRows[0][0]})},t.prototype.handleEnter=function(e){this.isUncontrolled&&this.setState({selectedColor:this.state.focusedColor}),this.dispatchChangeEvent(this.state.focusedColor,e)},t.prototype.dispatchChangeEvent=function(e,t){(0,u.N)(this.props.onChange,t,this,{value:e,rgbaValue:_e(e,"rgba")})},Object.defineProperty(t.prototype,"focusedColorCooridanates",{get:function(){return this.state.focusedColor&&this.paletteService?this.paletteService.getCellCoordsFor(this.state.focusedColor):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUncontrolled",{get:function(){return void 0===this.props.value},enumerable:!1,configurable:!0}),t.prototype.getPaletteInfo=function(){if("string"==typeof this.props.palette){var e=Rt[this.props.palette];return Ae(e)?{colors:e.colors,columns:this.props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.props.palette||[],columns:this.props.columns||10}},t.prototype.renderRows=function(e,t,n){var r=this;return e.map((function(e,i){return o.createElement("tr",{role:"row",key:i},r.renderColumns(e,i,t,n))}))},t.prototype.renderColumns=function(e,t,n,r){var i=this,a=void 0!==n&&n.row===t,s=n&&n.col,l=void 0!==r&&r.row===t,c=r&&r.col,u="number"!=typeof this.props.tileSize?this.props.tileSize:{width:this.props.tileSize,height:this.props.tileSize},d=u.width+"px",h=u.height+"px";return e.map((function(e,n){var r=a&&s===n,u=(0,p.A)("k-colorpalette-tile",{"k-selected":r,"k-focus":l&&c===n});return o.createElement("td",{role:"gridcell",className:u,"aria-label":e,"aria-selected":!!r||!!i.props.disabled&&void 0,style:{backgroundColor:e,width:d,height:h,minWidth:d},onClick:function(t){return i.onColorClick(e,t)},id:i.createCellId({row:t,col:n}),key:n})}))},t.prototype.createCellId=function(e){return"".concat(this.guid,"_").concat(e.row,"_").concat(e.col)},t.displayName="ColorPalette",t.propTypes={palette:r.oneOfType([r.arrayOf(r.string.isRequired),r.string]),columns:r.number,tileSize:r.any,defaultValue:r.string,value:r.string,disabled:r.bool,tabIndex:r.number,onChange:r.func,onFocus:r.func,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,className:r.string},t.defaultProps={palette:Bt,tileSize:24},t}(o.Component),Lt=(0,a.Y)(),_t=(0,a.u)(Lt,At);_t.displayName="KendoReactColorPalette";var Ft=n(3218),jt=n(1754),Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Kt.apply(this,arguments)},Wt=function(e){var t=e.popupSettings||{},n="rtl"===e.dir?"right":"left",r=o.useMemo((function(){return{horizontal:n,vertical:"bottom"}}),[n]),i=o.useMemo((function(){return{horizontal:n,vertical:"top"}}),[n]);return o.createElement(o.Fragment,null,e.input,e.button,o.createElement(jt.G,Kt({style:Kt(Kt({},(t||{}).style),{direction:e.dir})},t,{anchor:e.popupAnchor,anchorAlign:r,popupAlign:i,show:e.open,onOpen:e.onOpen,onClose:e.onClose,className:(0,p.A)("k-reset",t.className)}),e.content))};Wt.displayName="KendoPickerComponent";var Ut=function(){return Ut=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ut.apply(this,arguments)},qt={palette:Bt,tileSize:24},$t=function(e){return void 0!==e},Gt=(0,a.Y)(),Zt=o.forwardRef((function(e,t){var n;(0,H.s)(N.k);var r=(0,s.Y)(Gt,e),a=(0,i.useLocalization)(),l=r.size,c=void 0===l?Yt.size:l,u=r.rounded,d=void 0===u?Yt.rounded:u,m=r.fillMode,v=void 0===m?Yt.fillMode:m,y=r.popupSettings,b=r.gradientSettings,w=r.paletteSettings,k=r.valid,x=r.disabled,z=r.tabIndex,C=r.view,S=r.icon,I=r.svgIcon,M=r.iconClassName,E=r.onChange,O=r.onFocus,P=r.onBlur,V=r.onActiveColorClick,T=r.className,R=o.useRef(null),D=o.useRef(null),B=o.useRef(null),A=o.useRef(),L=o.useRef(null),_=o.useState(!1),F=_[0],j=_[1],K=o.useState(r.defaultValue),W=K[0],U=K[1],q=o.useState(!1),$=q[0],G=q[1],Z=$t(r.value),Y=$t(r.open),J=Z?r.value:W,X=Y?r.open:$,Q=o.useCallback((function(){R.current&&R.current.focus()}),[]);o.useImperativeHandle(t,(function(){return{element:R.current,actionElement:L.current,value:J,focus:Q}}),[J,Q]);var ee=o.useCallback((function(e,t){Y||(!e&&!t&&R&&R.current&&R.current.focus(),G(e))}),[Y]),te=o.useCallback((function(e){var t=e.altKey,n=e.keyCode;if(n!==dt.R.esc)return n!==dt.R.enter||Y?void(!t||n!==dt.R.up&&n!==dt.R.down||(e.preventDefault(),e.stopPropagation(),n===dt.R.up&&R&&R.current&&(R.current.focus(),ee(!1)),n===dt.R.down&&ee(!0))):(e.preventDefault(),e.stopPropagation(),void ee(!X));ee(!1)}),[X,Y]),ne=o.useCallback((function(){Y||(D.current?D.current.focus():B.current&&B.current.focus())}),[Y]),oe=o.useCallback((function(){ee(!X,!0)}),[X]),ie=o.useCallback((function(e){V&&V.call(void 0,{syntheticEvent:e,nativeEvent:e.nativeEvent,value:J})}),[V,J]),ae=o.useCallback((function(e){A.current?(clearTimeout(A.current),A.current=void 0):j(!0),O&&O.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[O]),se=o.useCallback((function(){ee(!1,!0),j(!1),A.current=void 0}),[]),le=o.useCallback((function(e){clearTimeout(A.current),A.current=window.setTimeout(se),P&&P.call(void 0,{nativeEvent:e.nativeEvent,syntheticEvent:e})}),[P]),ue=o.useCallback((function(e,t){var n=t?e.rgbaValue:e.value;Z||U(n),t&&ee(!1),E&&E.call(void 0,{value:n,nativeEvent:e.nativeEvent,syntheticEvent:e.syntheticEvent})}),[Z,E]),de=o.useCallback((function(e){return ue(e,!0)}),[$t,ue]),pe=(0,pt.n)(R,r.dir),he=!1!==k;return o.createElement("span",{id:r.id,role:"combobox","aria-label":r.ariaLabel,"aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,"aria-haspopup":"dialog","aria-expanded":X,"aria-disabled":x?"true":void 0,className:(0,p.A)("k-colorpicker","k-picker","k-icon-picker",(n={},n["k-picker-".concat(h.G.sizeMap[c]||c)]=c,n["k-picker-".concat(v)]=v,n["k-rounded-".concat(h.G.roundedMap[d]||d)]=d,n["k-invalid"]=!he,n["k-disabled"]=x,n["k-focus"]=F,n.className=T,n)),ref:R,tabIndex:(0,f.p)(z,x),title:r.title,onKeyDown:te,onFocus:ae,onBlur:le,dir:pe},o.createElement(Wt,{dir:pe,open:X,onOpen:ne,popupAnchor:R.current||void 0,popupSettings:Ut({},y),input:o.createElement("span",{onClick:ie,className:"k-input-inner"},o.createElement("span",{className:(0,p.A)("k-value-icon","k-color-preview",{"k-no-color":!J,"k-icon-color-preview":S||I||M})},M&&o.createElement("span",{className:(0,p.A)("k-color-preview-icon",M)}),!M&&(S||I)&&o.createElement(xt.a,{name:S,icon:I}),o.createElement("span",{className:"k-color-preview-mask",style:{backgroundColor:J}}))),button:o.createElement(Pe.z,{tabIndex:-1,type:"button",onClick:oe,className:"k-input-button",rounded:null,icon:"caret-alt-down",svgIcon:g,"aria-label":a.toLanguageString(re,ce[re])}),content:o.createElement(o.Fragment,null,("combo"===C||"gradient"===C)&&o.createElement(Vt,Ut({},b,{tabIndex:0,ref:D,value:J,onChange:ue})),("combo"===C||"palette"===C)&&o.createElement(_t,Ut({},w,{ref:B,value:J,onChange:de})))}))}));Zt.propTypes={value:r.string,defaultValue:r.string,disabled:r.bool,view:r.oneOf(["gradient","palette","combo"]),dir:r.string,id:r.string,icon:r.string,svgIcon:Ft.wi,ariaLabelledBy:r.string,ariaDescribedBy:r.string,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"]),className:r.string};var Yt={size:"medium",rounded:"medium",fillMode:"solid",view:"palette",gradientSettings:{opacity:!0},paletteSettings:qt};Zt.defaultProps=Yt,Zt.displayName="KendoColorPicker";var Jt,Xt=n(7711),Qt="rgba(255, 255, 255, 1)",en=o.forwardRef((function(e,t){(0,H.s)(N.k);var n=o.useRef(null),r=o.useRef(null),a=o.useRef(null),s=e.defaultValue,l=void 0===s?Qt:s,c=e.showButtons,u=void 0===c||c,d=e.showPreview,h=void 0===d||d,m=e.showClearButton,v=void 0===m||m,g=o.useState("ColorGradient"===(e.view||"ColorGradient")),y=g[0],b=g[1],k=o.useState(e.value||l),x=k[0],z=k[1],C=o.useState(e.value||l),S=C[0],E=C[1],O=void 0!==e.value?e.value:S;o.useEffect((function(){z(e.value||l)}),[e.value,l]);var P=(0,i.useLocalization)(),V=o.useCallback((function(){n.current&&n.current.focus()}),[n]);o.useImperativeHandle(n,(function(){return{element:r.current,focus:V,props:e,value:O}}),[O,V,e]),o.useImperativeHandle(t,(function(){return n.current}));var T=o.useCallback((function(e){("ColorGradient"===e&&!y||"ColorPalette"===e&&y)&&b(!y)}),[y]),R=o.useCallback((function(t){if(z(l),e.onPreviewChange){var n={value:l,nativeEvent:t.nativeEvent,syntheticEvent:t};e.onPreviewChange.call(void 0,n)}}),[l,e.onPreviewChange]),D=o.useCallback((function(t){if(z(t.value),e.onPreviewChange){var n={value:t.value,nativeEvent:t.nativeEvent,syntheticEvent:t.syntheticEvent};e.onPreviewChange.call(void 0,n)}}),[e.onPreviewChange]),B=o.useCallback((function(t){if(E(x),e.onChange){var n={value:x,nativeEvent:t.nativeEvent,syntheticEvent:t};e.onChange.call(void 0,n)}}),[x,e.onChange]),A=o.useCallback((function(){E(Qt)}),[]),L=o.useCallback((function(t){if(z(S),e.onPreviewChange){var n={value:S,nativeEvent:t.nativeEvent,syntheticEvent:t};e.onPreviewChange.call(void 0,n)}}),[S,e.onPreviewChange]),_=o.useCallback((function(e){r.current&&e.nativeEvent.target instanceof HTMLInputElement==0&&r.current.focus()}),[r]),F=o.useCallback((function(t){var n;if((!t.relatedTarget||!(null===(n=r.current)||void 0===n?void 0:n.contains(t.relatedTarget)))&&(u||E(x),!u&&e.onChange)){var o={value:x,nativeEvent:t.nativeEvent,syntheticEvent:t};e.onChange.call(void 0,o)}}),[x,u,e.onChange]);return o.createElement("div",{id:e.id,role:"textbox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-disabled":e.disabled?"true":void 0,style:e.style,ref:r,tabIndex:(0,f.p)(e.tabIndex,e.disabled),className:(0,p.A)("k-flatcolorpicker k-coloreditor",{"k-disabled":e.disabled},e.className),onBlur:F},o.createElement(o.Fragment,null,e.header||o.createElement("div",{className:"k-coloreditor-header k-hstack"},o.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},o.createElement(Xt.h,{className:"k-button-group-flat"},o.createElement(Pe.z,{type:"button","aria-label":P.toLanguageString(X,ce[X]),togglable:!0,fillMode:"flat",selected:y,onClick:function(){return T("ColorGradient")},icon:"droplet-slider",svgIcon:w}),o.createElement(Pe.z,{type:"button","aria-label":P.toLanguageString(Q,ce[Q]),togglable:!0,fillMode:"flat",selected:!y,onClick:function(){return T("ColorPalette")},icon:"palette",svgIcon:I}))),o.createElement("div",{className:"k-spacer"}),o.createElement("div",{className:"k-coloreditor-header-actions k-hstack"},v&&o.createElement(Pe.z,{type:"button",fillMode:"flat",onClick:R,"aria-label":P.toLanguageString(ee,ce[ee]),icon:"droplet-slash",svgIcon:M}),h&&o.createElement("div",{className:"k-coloreditor-preview k-vstack"},o.createElement("span",{className:"k-coloreditor-preview-color k-color-preview",style:{background:x}}),o.createElement("span",{className:"k-coloreditor-current-color k-color-preview",style:{background:S},onClick:L})))),o.createElement("div",{className:"k-coloreditor-views k-vstack"},y?o.createElement(Vt,{ref:a,role:"none",tabIndex:-1,ariaLabel:void 0,value:x,onChange:D,onFocus:_,opacity:e.opacity,format:e.format}):o.createElement(_t,{ariaDisabled:!0,ariaLabelledBy:"required_label",value:x,onChange:D,onFocus:_})),u&&o.createElement("div",{className:"k-coloreditor-footer k-actions k-actions-end"},o.createElement(Pe.z,{type:"button",className:"k-coloreditor-cancel",onClick:A},ce[Y]),o.createElement(Pe.z,{type:"button",className:"k-coloreditor-apply k-primary",onClick:B},ce[J]))))})),tn={id:r.string,style:r.any,className:r.string,value:r.string,defaultValue:r.string,onPreviewChange:r.func,onChange:r.func,opacity:r.bool,format:r.any,tabIndex:r.number,ariaLabel:r.string,ariaLabelledBy:r.string,disabled:r.bool,view:r.any,header:r.any,showClearButton:r.bool,showPreview:r.bool,showButtons:r.bool};en.displayName="KendoFlatColorPicker",en.propTypes=tn,function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Jt||(Jt={}));var nn=function(){function e(e,t,n){void 0===n&&(n=Jt.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}(),on=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}(),rn=function(e){return(e||"").split("")},an=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof on?this.parse(e):this.parse(new on(rn(e),rn(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===Jt.Literal},e}(),sn=function(e,t){return new an((function(n){var o=n.next().char,r=e[o];return"\\"===o?(o=n.next().char,new nn(t.literal(o),n)):new nn(r?t.mask(r):t.literal(o),n)}))},ln=function(e){return new an((function(t){var n=e.prompt,o=e.promptPlaceholder,r=t.next().char;return new nn(r===n?o:r,t)}))},cn=function(e){return new an((function(t){var n=t.next().char;return new nn(e?n:"",t)}))},un=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 an((function(e){return new nn(t,e)}))));var t},dn=function(e){return new an((function(t){for(var n=new nn([],t);!t.eof();)n=n.concat(e.run(t));return n}))},pn=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,o=e.prompt,r=void 0===o?"":o,i=e.promptPlaceholder,a=void 0===i?" ":i,s=e.rules,l=void 0===s?{}:s,c=e.includeLiterals,u=void 0!==c&&c;this.mask=n,this.prompt=r,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=u,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return un(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?(un(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?(un(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,o){var r="",i=o,a=t.split("").slice(0,n),s=t.split("").slice(o);return un(this.maskTokens.slice(n,o)).run(e).fold((function(e){r=a.concat(e).concat(s).join("")})),{selection:i,value:r}},e.prototype.maskRemoved=function(e,t,n){var o=this,r="",i=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return un(this.maskTokens.slice(0,l)).run(s,t).fold((function(e){i=o.adjustPosition(e,i),r=e.concat(a).join("")})),{selection:i,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 o=this,r="",i=n,a=e.slice(0,n);return un(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return un(o.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:i,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new an((function(e){return e.peek().char===t?(e.eat(),new nn(t,e,Jt.Literal)):new nn(t,e,Jt.Literal)}));var t},mask:function(n){return(o={prompt:e,promptPlaceholder:t},function(e){return new an((function(t){for(var n=o.prompt,r=o.promptPlaceholder;!t.eof();){var i=t.peek(),a=i.char,s=i.control;if(a===s&&s===n)return t.eat(),new nn(n,t,Jt.Mask);if(e.test(a))return t.eat(),new nn(a,t,Jt.Mask);if(a===r)return t.eat(),new nn(n,t,Jt.Mask);t.eat_input()}return t.eat(),new nn(n,t,Jt.Mask)}))})(n);var o}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new an((function(e){return e.eof()?new nn("",e):(e.peek().char===t&&e.eat(),new nn(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new an((function(t){for(;!t.eof();){var o=t.peek(),r=o.char,i=o.control;if(r===n&&i===n)return t.eat(),new nn(r,t);if(e.test(r))return t.eat(),new nn(r,t);t.eat_input()}return t.eat(),new nn("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this,t=e.prompt,n=e.promptPlaceholder,o=e.includeLiterals;return{literal:function(e){return cn(o)},mask:function(e){return ln({prompt:t,promptPlaceholder:n})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return cn(!1)},mask:function(t){return ln({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;dn(sn(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),dn(sn(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),dn(sn(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),dn(sn(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),hn={"#":/[\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]/},fn=function(){return!1},mn=function(e,t){return e.includeLiterals!==t.includeLiterals||e.mask!==t.mask||e.prompt!==t.prompt||e.promptPlaceholder!==t.promptPlaceholder||!vn(e.rules,t.rules)},vn=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var o in e)if(e[o]!==t[o]){n=!1;break}if(n)for(var o in t)if(!e.hasOwnProperty(o)){n=!1;break}return n},gn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yn=function(){return yn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},yn.apply(this,arguments)},bn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n._inputId="k-".concat((0,l.M)()),n._service=new pn,n._isPasted=!1,n._selection=[null,null],n._input=null,n.focus=function(){n._input&&n._input.focus()},n.pasteHandler=function(e){var t=e.target,o=t.selectionStart,r=t.selectionEnd;r!==o&&(n._isPasted=!0,n._selection=[o||0,r||0])},n.onChangeHandler=function(e){var t=e.currentTarget,o=t.value,r=n._selection[0]||0,i=n._selection[1]||0;if(!n.props.mask)return n._isPasted=!1,n._selection=[null,null],void n.triggerOnChange(o,e);var a,s=n.value;if(n._isPasted){n._isPasted=!1;var l=s.length-i,c=o.length-l;a=n._service.maskInRange(o.slice(r,c),s,r,i)}else a=n._service.maskInput(o,s,t.selectionStart||0);n._selection=[a.selection,a.selection],n.triggerOnChange(a.value,e)},n.focusHandler=function(e){n.state.focused||(n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.blurHandler=function(e){n.state.focused&&(n.setState({focused:!1}),n.props.onBlur&&n.props.onBlur.call(void 0,{target:n,syntheticEvent:e,nativeEvent:e.nativeEvent}))},n.setValidity=function(){n.element&&n.element.setCustomValidity(n.validity.valid?"":n.props.validationMessage||"")},(0,H.s)(N.k),n}return gn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._input},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this._valueDuringOnChange?this._valueDuringOnChange:void 0!==this.props.value?this.props.value:void 0!==this.state.value?this.state.value:void 0!==this.props.defaultValue?this.props.defaultValue:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this._service.rawValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=this.value,t=this._service.validationValue(e);return{customError:void 0!==this.props.validationMessage,valid:void 0!==this.props.valid?this.props.valid:!(this.required&&!t||this.props.maskValidation&&this.props.prompt&&-1!==e.indexOf(this.props.prompt)),valueMissing:!t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(this.element&&this.state.focused&&t.focused){var n=this._selection,o=n[0],r=n[1],i=e.selection,a=this.props.selection;(!i&&a||i&&a&&(i.start!==a.start||i.end!==a.end))&&(o=a.start,r=a.end),null!==o&&null!==r&&this.element.setSelectionRange(o,r)}mn(e,this.props)&&this.updateService(),this.setValidity()},t.prototype.componentDidMount=function(){this.updateService(),this.setValidity()},t.prototype.render=function(){var e,n=this,r=this.props,i=r.size,a=void 0===i?t.defaultProps.size:i,s=r.fillMode,l=void 0===s?t.defaultProps.fillMode:s,u=r.rounded,d=void 0===u?t.defaultProps.rounded:u,m=this.props.id||this._inputId,v=!this.validityStyles||this.validity.valid,g=this.props.style||{},y=this.props,b=y.prefix,w=void 0===b?t.defaultProps.prefix:b,k=y.suffix,x=void 0===k?t.defaultProps.suffix:k,z=(0,c.A)(w)[0],C=(0,c.A)(x)[0],S=o.createElement("span",{dir:this.props.dir,className:(0,p.A)("k-maskedtextbox k-input",(e={},e["k-input-".concat(h.G.sizeMap[a]||a)]=a,e["k-input-".concat(l)]=l,e["k-rounded-".concat(h.G.roundedMap[d]||d)]=d,e["k-invalid"]=!v,e["k-required"]=this.required,e["k-disabled"]=this.props.disabled,e),this.props.className),style:this.props.label?g:yn({width:this.props.width},g)},o.createElement(z,null),o.createElement("input",{type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,className:"k-input-inner",value:this.value,id:m,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-placeholder":this.props.mask,name:this.props.name,tabIndex:(0,f.p)(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,ref:function(e){return n._input=e},onChange:this.onChangeHandler,onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragStart:fn,onDrop:fn}),o.createElement(C,null));return this.props.label?o.createElement(O._,{label:this.props.label,editorId:m,editorValue:this.value,editorValid:v,editorDisabled:this.props.disabled,editorPlaceholder:this.props.placeholder,children:S,style:{width:this.props.width},dir:this.props.dir}):S},t.prototype.triggerOnChange=function(e,t){if(this.setState({value:e}),this.props.onChange){this._valueDuringOnChange=e;var n={syntheticEvent:t,nativeEvent:t.nativeEvent,selectionStart:this._selection[0],selectionEnd:this._selection[1],target:this,value:this.value};this.props.onChange.call(void 0,n),this._valueDuringOnChange=void 0}},t.prototype.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.rules},e);this._service.update(t)},Object.defineProperty(t.prototype,"rules",{get:function(){return Object.assign({},hn,this.props.rules)},enumerable:!1,configurable:!0}),t.displayName="MaskedTextBox",t.propTypes={value:r.string,defaultValue:r.string,placeholder:r.string,title:r.string,dir:r.string,id:r.string,style:r.object,className:r.string,prefix:r.any,suffix:r.any,ariaLabelledBy:r.string,ariaDescribedBy:r.string,width:r.oneOfType([r.string,r.number]),tabIndex:r.number,accessKey:r.string,disabled:r.bool,readonly:r.bool,prompt:r.string,promptPlaceholder:r.string,includeLiterals:r.bool,maskValidation:r.bool,mask:r.string,rules:function(e,t,n){var o=e.rules;return void 0===o||Object.entries(o).some((function(e){return"string"!=typeof e||!(o[e]instanceof RegExp)}))?null:new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Validation failed.")},selection:r.shape({start:r.number.isRequired,end:r.number.isRequired}),name:r.string,label:r.string,validationMessage:r.string,required:r.bool,valid:r.bool,validityStyles:r.bool,onChange:r.func,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"])},t.defaultProps={prompt:"_",promptPlaceholder:" ",includeLiterals:!1,maskValidation:!0,rules:hn,required:!1,validityStyles:!0,prefix:function(e){return null},suffix:function(e){return null},size:"medium",rounded:"medium",fillMode:"solid"},t}(o.Component),wn=(0,a.Y)(),kn=(0,a.u)(wn,bn);kn.displayName="KendoReactMaskedTextBox";var xn,zn=function(){return zn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},zn.apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(xn||(xn={}));var Cn=function(e,t){var n,o;switch(t.type){case xn.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 xn.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 xn.min:n="start"===t.key?zn(zn({},e),{start:t.min}):zn(zn({},e),{end:Math.max(t.min,e.start)});break;case xn.max:n="start"===t.key?zn(zn({},e),{start:Math.min(t.max,e.end)}):zn(zn({},e),{end:t.max});break;case xn.increase:if(void 0===t.step||void 0===t.key)return e;o=e[t.key]+t.step,n="start"===t.key?o<t.min?zn(zn({},e),{start:t.min}):zn(zn({},e),{start:Math.min(o,e.end)}):o>t.max?zn(zn({},e),{end:t.max}):zn(zn({},e),{end:Math.max(o,e.start)});break;case xn.decrease:if(void 0===t.step||void 0===t.key)return e;o=e[t.key]-t.step,n="start"===t.key?o<t.min?zn(zn({},e),{start:t.min}):zn(zn({},e),{start:Math.min(o,e.end)}):o>t.max?zn(zn({},e),{end:t.max}):zn(zn({},e),{end:Math.max(o,e.start)});break;default:n=e}return n},Sn=n(9844),In=function(){return In=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},In.apply(this,arguments)},Mn=(0,a.Y)(),En=o.forwardRef((function(e,t){var n,r;(0,H.s)(N.k);var a=(0,s.Y)(Mn,e),l=o.useRef(null),c=o.useRef(null),u=o.useRef(null),d=o.useRef(null),h=o.useRef(null),m=o.useCallback((function(){d.current&&d.current.focus()}),[d]);o.useImperativeHandle(l,(function(){return{element:c.current,focus:m,props:a}})),o.useImperativeHandle(t,(function(){return l.current}));var v=o.useMemo((function(){return a.min}),[a.min]),g=o.useMemo((function(){return a.max}),[a.max]),y=o.useMemo((function(){return void 0!==a.step?a.step:Hn.step}),[a.step,Hn.step]),b=(0,pt.n)(c,a.dir),w=o.useState(""),k=w[0],x=w[1],z=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1],s=o.useCallback((function(e){var o=Cn(t.state||i,In(In({},e),t));n&&n(o,e.event),a(o)}),[t,n]);return[i,s]}(a.defaultValue||Hn.defaultValue,{min:v,max:g,step:y,state:a.value},(function(e,t){a.onChange&&l.current&&a.onChange.call(void 0,{value:e,target:l.current,syntheticEvent:t})})),C=z[0],S=z[1],I=o.useMemo((function(){return a.value||C}),[a.value,C]),M=o.useRef(null),E=o.useRef(null),O=o.useMemo((function(){return(I.start-v)/(g-v)*100}),[I.start,v,g]),P=o.useMemo((function(){return(I.end-v)/(g-v)*100}),[I.end,v,g]),V=o.useMemo((function(){return a.vertical?{paddingTop:0,height:"100%"}:{}}),[a.vertical]),T=o.useMemo((function(){return a.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}),[a.vertical]),R=(0,i.useLocalization)(),B=o.useCallback((function(e){if(E.current){var t=E.current.getBoundingClientRect(),n=a.vertical?t.bottom-e.clientY:"rtl"===b?t.right-e.clientX:e.clientX-t.left,o=a.vertical?t.height:t.width;return v+n/o*(g-v)}}),[E,a.vertical,b,v,g,C.start,C.end,a.value&&a.value.start,a.value&&a.value.end]),A=o.useCallback((function(e){return e<=I.start?"start":e>=I.end?"end":2*e<I.end+I.start?"start":"end"}),[C.start,C.end,a.value&&a.value.start,a.value&&a.value.end]),L=o.useCallback((function(e){switch(e.keyCode){case dt.R.right:e.preventDefault(),S({type:"rtl"===b?xn.decrease:xn.increase,key:"start",event:e});break;case dt.R.up:e.preventDefault(),S({type:xn.increase,key:"start",event:e});break;case dt.R.left:e.preventDefault(),S({type:"rtl"===b?xn.increase:xn.decrease,key:"start",event:e});break;case dt.R.down:e.preventDefault(),S({type:xn.decrease,key:"start",event:e});break;case dt.R.home:e.preventDefault(),S({type:xn.min,key:"start",event:e});break;case dt.R.end:e.preventDefault(),S({type:xn.max,key:"start",event:e})}}),[S]),_=o.useCallback((function(e){switch(e.keyCode){case dt.R.right:e.preventDefault(),S({type:"rtl"===b?xn.decrease:xn.increase,key:"end",event:e});break;case dt.R.up:e.preventDefault(),S({type:xn.increase,key:"end",event:e});break;case dt.R.left:e.preventDefault(),S({type:"rtl"===b?xn.increase:xn.decrease,key:"end",event:e});break;case dt.R.down:e.preventDefault(),S({type:xn.decrease,key:"end",event:e});break;case dt.R.home:e.preventDefault(),S({type:xn.min,key:"end",event:e});break;case dt.R.end:e.preventDefault(),S({type:xn.max,key:"end",event:e})}}),[S,b]),F=o.useCallback((function(e){var t=B(e),n=A(t);x(n),"end"===n?h.current.focus():d.current.focus();var o="end"===n?xn.end:xn.start;S({type:o,payload:t,event:e})}),[a.vertical,v,g,S]);return(0,Sn.O)(E,{onPress:F,onDrag:function(e){var t=B(e),n="end"===k?xn.end:xn.start;S({type:n,payload:t,event:e})},onRelease:function(e){var t=B(e),n="end"===k?xn.end:xn.start;S({type:n,payload:t,event:e}),x("")}}),o.createElement("div",{id:a.id,style:a.style,ref:c,dir:b,className:(0,p.A)("k-slider",{"k-rtl":"rtl"===b,"k-disabled":a.disabled,"k-slider-vertical":a.vertical,"k-slider-horizontal":!a.vertical},a.className)},o.createElement("div",{ref:E,className:"k-slider-track-wrap",style:In({flexGrow:1,position:"relative",touchAction:"none"},T)},a.children&&o.createElement("ul",{className:"k-reset k-slider-items",style:In({},V)},o.Children.map(a.children,(function(e){return e&&o.cloneElement(e,{position:100*(e.props.position-a.min)/(a.max-a.min),vertical:a.vertical},e.props.children)}))),o.createElement("div",{ref:M,className:"k-slider-track",style:a.vertical?{bottom:0,height:"100%"}:(n={},n["rtl"===b?"right":"left"]=0,n.width="100%",n)},null!==O&&null!==P&&o.createElement("div",{"data-selection":!0,ref:u,title:"".concat(I.start," - ").concat(I.end),className:"k-slider-selection",style:a.vertical?{height:P-O+"%",bottom:O+"%"}:(r={},r["rtl"===b?"right":"left"]=O+"%",r.width=P-O+"%",r)}),o.createElement("span",{ref:d,role:"slider",tabIndex:(0,f.p)(a.startTabIndex,a.disabled,void 0),"aria-valuemin":v,"aria-valuemax":Math.max(g,I.end),"aria-valuenow":I.start,"aria-disabled":a.disabled?"true":void 0,"aria-valuetext":"".concat(I.start," - ").concat(I.end),className:"k-draghandle",title:R.toLanguageString(D,ce[D]),style:a.vertical?{bottom:"calc("+O+"%)",zIndex:1}:"rtl"===b?{right:"calc("+O+"% - 13px)",zIndex:1}:{left:"calc("+O+"%)",zIndex:1},onKeyDown:L}),o.createElement("span",{ref:h,role:"slider",tabIndex:(0,f.p)(a.endTabIndex,a.disabled,void 0),"aria-valuemin":Math.min(v,I.start),"aria-valuemax":g,"aria-valuenow":I.end,"aria-disabled":a.disabled?"true":void 0,"aria-valuetext":"".concat(I.start," - ").concat(I.end),className:"k-draghandle",title:R.toLanguageString(D,ce[D]),style:a.vertical?{bottom:"calc("+P+"%)",zIndex:1}:"rtl"===b?{right:"calc("+P+"% - 13px)",zIndex:1}:{left:"calc("+P+"%)",zIndex:1},onKeyDown:_}))))})),On={value:function(e,t,n){if(e.value){var o=e.value.start,r=e.value.end,i=e.min,a=e.max;if(o>r||o>a||o<i||r>a||r<i||r<o)return new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n "))}return null},defaultValue:function(e,t,n){if(e.defaultValue){var o=e.defaultValue.start,r=e.defaultValue.end,i=e.min,a=e.max;if(o>r||o>a||o<i||r>a||r<i||r<o)return new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n The { start, end } value must be between the min & max value and { start, end } must be start < end.\n "))}return null},onChange:r.func,step:r.number,min:function(e,t,n){var o=e[t],r=e.min,i=e.max;return void 0===r?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be undefined.\n ")):o&&r>=i?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be equal to or bigger than the max value.\n ")):null},max:function(e,t,n){var o=e[t],r=e.min,i=e.max;return void 0===i?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be undefined.\n ")):o&&i<=r?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n ").concat(t," value can not be equal to or smaller than the min value.\n ")):null},vertical:r.bool,disabled:r.bool,dir:r.oneOf(["ltr","rtl"])},Hn={step:1,defaultValue:{start:0,end:0},vertical:!1,disabled:!1};En.displayName="KendoReactRangeSlider",En.propTypes=On,En.defaultProps=Hn;var Nn=n(3228),Pn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vn=function(){return Vn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Vn.apply(this,arguments)},Tn=function(e){function t(n){var r=e.call(this,n)||this;return r.setValidity=function(){r._input&&r._input.setCustomValidity&&r._input.setCustomValidity(r.validity.valid?"":r.props.validationMessage||r.defaultValidationMessage.toLanguageString(oe,ce[oe]))},r.limit=function(e,t,n){var o=n.offsetWidth,r=t.offsetWidth;return e<0?0:e>o-r?o-r:e},r.toggle=function(e,t){r.setState({checked:e}),r.valueDuringOnChange=e,(0,u.N)(r.props.onChange,t,r,{value:e}),r.valueDuringOnChange=void 0},r._element=null,r._wrapper=null,r._input=null,r._id=(0,l.M)(),r.defaultValidationMessage=(0,i.provideLocalizationService)(r),r.focus=function(){r.actionElement&&r.actionElement.focus()},r.dummyInput=function(e){return o.createElement("input",{type:"checkbox",checked:r.props.checked,ref:function(e){r._input=e},tabIndex:-1,"aria-hidden":!0,value:e,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:Nn.Z,name:r.name||void 0})},r.handleClick=function(e){r.eventTimeStamp!==e.timeStamp&&(r.eventTimeStamp=e.timeStamp,r.toggle(!r.value,e))},r.handleKeyDown=function(e){if(!r.props.disabled){var t=e.keyCode;t!==dt.R.space&&t!==dt.R.enter||(r.toggle(!r.value,e),e.preventDefault())}},r.handleWrapperFocus=function(e){if(!r.props.disabled){r.setState({focused:!0});var t=r.props.onFocus;t&&t.call(void 0,e)}},r.handleWrapperBlur=function(e){if(!r.props.disabled){r.setState({focused:!1});var t=r.props.onBlur;t&&t.call(void 0,e)}},(0,H.s)(N.k),r.state={checked:n.defaultChecked||t.defaultProps.defaultChecked,focused:!1},r}return Pn(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.props.checked?this.props.checked:this.state.checked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionElement",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validity",{get:function(){var e=void 0!==this.props.validationMessage,t=void 0!==this.props.valid?this.props.valid:!this.props.required||!!this.value;return{customError:e,valid:void 0!==this.props.valid?this.props.valid:t,valueMissing:null===this.value}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validityStyles",{get:function(){return void 0!==this.props.validityStyles?this.props.validityStyles:t.defaultProps.validityStyles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return void 0!==this.props.required?this.props.required:t.defaultProps.required},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.setValidity(),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.setValidity()},t.prototype.render=function(){var e,t,n,r=this,i=this.state.focused,a=this.props,s=a.dir,l=a.disabled,c=a.trackRounded,u=a.thumbRounded,d=a.size,m=a.offLabel,v=a.onLabel,g=a.tabIndex;this.dir=s||this.element&&getComputedStyle(this.element).direction||void 0;var y=!this.validityStyles||this.validity.valid,b=(0,p.A)("k-switch",((e={})["k-switch-".concat(h.G.sizeMap[d]||d)]=d,e["k-rounded-".concat(h.G.roundedMap[c]||c)]=c,e["k-switch-on"]=this.value,e["k-switch-off"]=!this.value,e["k-focus"]=i,e["k-disabled"]=l,e["k-invalid"]=!y,e),this.props.className),w={"aria-checked":this.value,"aria-disabled":l||void 0,"aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-label":this.props.ariaLabel};return o.createElement("span",Vn({ref:function(e){r._wrapper=e},role:"switch"},w,{className:b,dir:this.dir,onKeyDown:this.handleKeyDown,onClick:this.handleClick,onBlur:this.handleWrapperBlur,onFocus:this.handleWrapperFocus,tabIndex:(0,f.p)(g,l,void 0),accessKey:this.props.accessKey,id:this.props.id||this._id}),o.createElement("span",{className:(0,p.A)("k-switch-track",(t={},t["k-rounded-".concat(h.G.roundedMap[c]||c)]=c,t)),ref:function(e){r._element=e}},this.dummyInput(this.value),o.createElement("span",{className:"k-switch-label-on"},v),o.createElement("span",{className:"k-switch-label-off"},m)),o.createElement("span",{className:"k-switch-thumb-wrap"},o.createElement("span",{className:(0,p.A)("k-switch-thumb",(n={},n["k-rounded-".concat(u)]=u,n))})))},t.displayName="Switch",t.propTypes={accessKey:r.string,checked:r.bool,className:r.string,disabled:r.bool,defaultChecked:r.bool,size:r.oneOf([null,"small","medium","large"]),trackRounded:r.oneOf([null,"small","medium","large","full"]),thumbRounded:r.oneOf([null,"small","medium","large","full"]),dir:r.string,id:r.string,ariaLabelledBy:r.string,ariaDescribedBy:r.string,offLabel:r.string,required:r.bool,tabIndex:r.number,valid:r.bool,validate:r.bool,validationMessage:r.string,onBlur:r.any,onChange:r.any,onFocus:r.any,onLabel:r.string},t.defaultProps={disabled:!1,defaultChecked:!1,size:"medium",trackRounded:"full",thumbRounded:"full",offLabel:"OFF",onBlur:Nn.Z,onFocus:Nn.Z,onLabel:"ON",required:!1,validityStyles:!0},t}(o.Component),Rn=(0,a.Y)(),Dn=(0,a.u)(Rn,Tn);Dn.displayName="KendoReactSwitch";var Bn=function(){return Bn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Bn.apply(this,arguments)},An=(0,a.Y)(),Ln=o.forwardRef((function(e,t){var n;(0,H.s)(N.k);var r=(0,s.Y)(An,e),a=r,c=a.ariaDescribedBy,d=a.ariaLabelledBy,m=a.checked,v=a.className,g=a.labelClassName,y=a.children,b=a.defaultChecked,w=a.disabled,k=a.defaultValue,x=a.id,z=a.size,C=a.rounded,S=a.label,I=a.labelPlacement,M=a.name,E=a.labelOptional,O=a.onChange,P=a.onFocus,V=a.onBlur,T=a.tabIndex,R=a.value,D=a.required,B=a.valid,A=a.validationMessage,L=a.validityStyles,_=(a.visited,a.touched,a.modified,function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(a,["ariaDescribedBy","ariaLabelledBy","checked","className","labelClassName","children","defaultChecked","disabled","defaultValue","id","size","rounded","label","labelPlacement","name","labelOptional","onChange","onFocus","onBlur","tabIndex","value","required","valid","validationMessage","validityStyles","visited","touched","modified"])),F=o.useRef(null),j=o.useCallback((function(){F.current&&F.current.focus()}),[]),K=o.useCallback((function(){return{element:F.current,focus:j,get name(){return F.current&&F.current.name}}}),[j]);o.useImperativeHandle(t,K);var W=o.useState(b),U=W[0],q=W[1],$=o.useState(k),G=$[0],Z=$[1],Y="boolean"==typeof R||null===R,J=void 0!==m,X=Y,Q=X?R:G,ee=J?m:X?void 0:U,oe=void 0===ee&&Q,re=oe?Q:ee,ie=oe||X?null===R?R:void 0:R||Q,ae=null===re||null===ie,se=o.useMemo((function(){return(0,l.M)()}),[]),le=(0,i.useLocalization)(),ue=function(e){return le.toLanguageString(e,ce[e])},de=ue(te),pe=ue(ne),he=void 0!==B?B:!D||!!ee;o.useEffect((function(){F.current&&F.current.setCustomValidity&&F.current.setCustomValidity(he?"":A||de)}),[he,A,de]);var fe=o.useCallback((function(e,t){X||w||(Z(t),J||w||q(t)),O&&!w&&(0,u.N)(O,e,Bn(Bn({},K()),{value:t}),{value:t})}),[J,w,O,X,K]),me=o.useCallback((function(e){var t=e.target.checked;fe(e,t)}),[fe,R]),ve=o.useCallback((function(e){if(!w){var t=e.keyCode,n=e.currentTarget.checked;t===dt.R.space&&(e.preventDefault(),e.stopPropagation(),fe(e,!n))}}),[w,fe]),ge=o.useCallback((function(e){w||e.keyCode===dt.R.space&&e.preventDefault()}),[w]),ye=o.useCallback((function(e){P&&!w&&(0,u.N)(P,e,K(),void 0)}),[P,w,K]),be=o.useCallback((function(e){V&&!w&&(0,u.N)(V,e,K(),void 0)}),[V,w,K]),we=(0,pt.n)(F,r.dir),ke=(0,p.A)("k-checkbox-wrap",v),xe=Bn(Bn({type:"checkbox",className:(0,p.A)("k-checkbox",(n={},n["k-checkbox-".concat(h.G.sizeMap[z]||z)]=z,n["k-rounded-".concat(h.G.roundedMap[C]||C)]=C,n["k-indeterminate"]=ae,n["k-disabled"]=w,n["k-invalid k-invalid"]=!(he||void 0!==L||!0===L),n)),ref:F,name:M,id:x||se,"aria-labelledby":d,"aria-describedby":c,checked:Boolean(re),disabled:w,tabIndex:(0,f.p)(T,w),role:"checkbox",required:void 0!==D&&D,"aria-checked":!(!ee&&!re)||!!ae&&"mixed","aria-disabled":w||void 0},_),{onChange:me,onKeyDown:ve,onKeyUp:ge,onFocus:ye,onBlur:be}),ze=o.createElement(o.Fragment,null,void 0===ie?o.createElement("input",Bn({},xe)):o.createElement("input",Bn({},xe,{value:Y?void 0:null===ie?"":ie}))),Ce=o.createElement(o.Fragment,null,void 0!==S?o.createElement("label",{className:(0,p.A)("k-checkbox-label",g),htmlFor:x||se,style:{userSelect:"none"}},S,E&&o.createElement("span",{className:"k-label-optional"},pe)):null);return o.createElement(o.Fragment,null,"before"===I?o.createElement("span",{className:ke,dir:"rtl"},ze,Ce,y):o.createElement("span",{className:ke,dir:we},ze,Ce,y))}));Ln.propTypes={checked:r.bool,className:r.string,defaultChecked:r.bool,defaultValue:r.any,dir:r.string,disabled:r.bool,id:r.string,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large"]),ariaLabelledBy:r.string,ariaDescribedBy:r.string,label:r.any,labelPlacement:r.string,labelOptional:r.bool,name:r.string,tabIndex:r.number,value:r.any,validationMessage:r.string,required:r.bool,validate:r.bool,valid:r.bool,onChange:r.func,onFocus:r.func,onBlur:r.func},Ln.defaultProps={size:"medium",rounded:"medium"},Ln.displayName="KendoCheckbox";var _n=function(){return _n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},_n.apply(this,arguments)},Fn=(0,a.Y)(),jn=o.forwardRef((function(e,t){var n;(0,H.s)(N.k);var r=(0,s.Y)(Fn,e),i=r.ariaDescribedBy,a=r.checked,c=r.children,d=r.className,m=r.disabled,v=r.id,g=r.size,y=r.label,b=r.labelPlacement,w=r.name,k=r.style,x=r.tabIndex,z=r.value,C=r.valid,S=r.onChange,I=r.onFocus,M=r.onBlur,E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(r,["ariaDescribedBy","checked","children","className","disabled","id","size","label","labelPlacement","name","style","tabIndex","value","valid","onChange","onFocus","onBlur"]),O=o.useRef(null),P=o.useCallback((function(){O.current&&O.current.focus()}),[]),V=o.useCallback((function(){return{element:O.current,focus:P}}),[P]);o.useImperativeHandle(t,V);var T=o.useMemo((function(){return(0,l.M)()}),[]),R=o.useCallback((function(e){(0,u.N)(S,e,V(),{value:z})}),[S,z,m]),D=o.useCallback((function(e){I&&!m&&(0,u.N)(I,e,V(),void 0)}),[I,m]),B=o.useCallback((function(e){M&&!m&&(0,u.N)(M,e,V(),void 0)}),[M,m]),A=_n({type:"radio",id:v||T,name:w,className:(0,p.A)("k-radio",(n={},n["k-radio-".concat(h.G.sizeMap[g]||g)]=g,n["k-invalid"]=!1===C,n),d),ref:O,disabled:m,tabIndex:(0,f.p)(x,m),checked:a,style:k,"aria-describedby":i,value:z,onChange:R,onFocus:D,onBlur:B},E),L=o.createElement(o.Fragment,null,void 0!==y?o.createElement("label",{className:"k-radio-label",htmlFor:v||T,style:{userSelect:"none"},"aria-label":y},y):null),_=o.createElement("input",_n({},A));return"before"===b?o.createElement(o.Fragment,null,L,_,c):o.createElement(o.Fragment,null,_,L,c)}));jn.propTypes={ariaDescribedBy:r.string,checked:r.bool,className:r.string,disabled:r.bool,id:r.string,size:r.oneOf([null,"small","medium","large"]),label:r.string,labelPlacement:r.string,name:r.string,style:r.object,tabIndex:r.number,value:r.any,valid:r.bool,onChange:r.func,onFocus:r.func,onBlur:r.func},jn.displayName="KendoRadioButton",jn.defaultProps={size:"medium"};var Kn=n(1573),Wn=function(){return Wn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Wn.apply(this,arguments)},Un=(0,a.Y)(),qn=o.forwardRef((function(e,t){(0,H.s)(N.k);var n=(0,s.Y)(Un,e),r=n.ariaLabelledBy,i=n.ariaDescribedBy,a=n.className,c=n.data,d=n.defaultValue,h=n.disabled,f=n.name,m=n.labelPlacement,v=n.layout,g=n.style,y=n.value,b=n.valid,w=n.item,k=void 0===w?$n.item:w,x=n.onChange,z=n.onFocus,C=o.useRef(null),S=o.useCallback((function(){C.current&&(0,ct.n)(C.current)}),[]),I=o.useCallback((function(){return{element:C.current,focus:S}}),[S]);o.useImperativeHandle(t,I);var M=o.useState(d),E=M[0],O=M[1],P=void 0!==y,V=P?y:E,T=o.useCallback((function(e){var t=e.value;P||h||O(t),x&&!h&&(0,u.N)(x,e.syntheticEvent,I(),{value:t})}),[O,x,h]),R=o.useCallback((function(e){z&&!h&&(0,u.N)(z,e.syntheticEvent,I(),void 0)}),[z,h]),D=o.useMemo((function(){return(0,l.M)()}),[]),B=(0,p.A)("k-radio-list",{"k-list-horizontal":"horizontal"===v,"k-list-vertical":"vertical"===v||void 0===v},a),A=(0,Kn.V)(C,n.dir),L=c&&c.map((function(e,t){var n=V===e.value,r=null==V,i=Wn(Wn({},e),{valid:b,checked:n,disabled:!(!e.disabled&&!h),labelPlacement:e.labelPlacement?e.labelPlacement:m,tabIndex:e.tabIndex?e.tabIndex:r&&0===t||n?0:-1,index:t,name:f||D,onChange:T,onFocus:R});return o.createElement(k,{className:(0,p.A)("k-radio-item",{"k-disabled":i.disabled||h}),key:t,role:"none"},o.createElement(jn,Wn({},i)))}));return o.createElement("ul",{role:"radiogroup",className:B,ref:C,dir:A,style:g,"aria-labelledby":r,"aria-describedby":i},L)})),$n={item:function(e){return o.createElement("li",Wn({},e))}};qn.propTypes={ariaLabelledBy:r.string,ariaDescribedBy:r.string,className:r.string,data:r.arrayOf(r.object),defaultValue:r.any,dir:r.string,disabled:r.bool,labelPlacement:r.string,layout:r.string,name:r.string,style:r.object,value:r.any,onChange:r.func,onFocus:r.func},qn.defaultProps=$n,qn.displayName="KendoRadioGroup";var Gn=function(){return Gn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Gn.apply(this,arguments)},Zn=(0,a.Y)(),Yn=o.forwardRef((function(e,t){var n,r=(0,s.Y)(Zn,e),i=r,a=i.size,c=i.rounded,d=i.fillMode,m=i.ariaDescribedBy,v=i.ariaLabelledBy,g=i.autoSize,y=i.className,b=i.defaultValue,w=i.disabled,k=i.readOnly,x=i.required,z=i.rows,C=i.id,S=i.name,I=i.placeholder,M=i.style,E=i.tabIndex,O=i.value,H=i.valid,N=i.validationMessage,P=i.validityStyles,V=i.onChange,T=i.onFocus,R=i.onBlur,D=(i.visited,i.touched,i.modified,function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(i,["size","rounded","fillMode","ariaDescribedBy","ariaLabelledBy","autoSize","className","defaultValue","disabled","readOnly","required","rows","id","name","placeholder","style","tabIndex","value","valid","validationMessage","validityStyles","onChange","onFocus","onBlur","visited","touched","modified"])),B=o.useRef(null),A=o.useCallback((function(){B.current&&B.current.focus()}),[]),L=o.useState(b),_=L[0],F=L[1],j=void 0!==O,K=j?O:_,W=o.useCallback((function(){return{element:B,focus:A,get value(){return K},get name(){return B.current&&B.current.name}}}),[A,K]);o.useImperativeHandle(t,W);var U=o.useState("auto"),q=U[0],$=U[1],G=o.useMemo((function(){return(0,l.M)()}),[]),Z=(0,pt.n)(B,r.dir),Y=void 0!==H?H:!x||!!K;o.useEffect((function(){B.current&&B.current.setCustomValidity&&B.current.setCustomValidity(Y?"":N||"")}),[Y,N]),o.useLayoutEffect((function(){B.current&&$("".concat(B.current.scrollHeight,"px"))}),[K]);var J=o.useCallback((function(e){var t=e.target.value;$("auto"),j||w||F(t),V&&!w&&(0,u.N)(V,e,Gn(Gn({},W()),{value:t}),{value:t})}),[F,V,w,j]),X=o.useCallback((function(e){T&&!w&&(0,u.N)(T,e,W(),void 0)}),[T,w]),Q=o.useCallback((function(e){R&&!w&&(0,u.N)(R,e,W(),void 0)}),[R,w]),ee=Gn(Gn({id:C||G,role:"textbox",name:S,className:"k-input-inner !k-overflow-auto",ref:B,disabled:w,rows:z,placeholder:I,readOnly:k,required:x,tabIndex:(0,f.p)(E,w),style:g?{resize:"none",overflow:"hidden",height:q}:{},"aria-labelledby":v,"aria-describedby":m,"aria-multiline":!0,"aria-disabled":w||void 0,value:j?O:_},D),{onChange:J,onFocus:X,onBlur:Q});return o.createElement("span",{className:(0,p.A)("k-input","k-textarea",(n={},n["k-input-".concat(h.G.sizeMap[a]||a)]=a,n["k-input-".concat(d)]=d,n["k-rounded-".concat(h.G.roundedMap[c]||c)]=c,n["k-invalid"]=!(Y||void 0!==P||!0===P),n["k-required"]=x,n["k-disabled"]=w,n),y),style:M,dir:Z},o.createElement("textarea",Gn({},ee)))}));Yn.propTypes={ariaDescribedBy:r.string,ariaLabelledBy:r.string,autoSize:r.bool,className:r.string,defaultValue:r.string,dir:r.string,disabled:r.bool,readOnly:r.bool,rows:r.number,id:r.string,name:r.string,placeholder:r.string,style:r.object,tabIndex:r.number,value:r.oneOfType([r.string,r.arrayOf(r.string),r.number]),onChange:r.func,onFocus:r.func,onBlur:r.func,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"])},Yn.displayName="KendoTextArea",Yn.defaultProps={size:"medium",rounded:"medium",fillMode:"solid"};var Jn=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null),i=(0,pt.n)(r,e.dir);o.useImperativeHandle(n,(function(){return{element:r.current,props:e,value:e.value}})),o.useImperativeHandle(t,(function(){return n.current}));var a=o.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{value:e.value,target:n.current,syntheticEvent:t})}),[e.onClick,e.value]),s=o.useCallback((function(t){e.onKeyDown&&e.onKeyDown.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onKeyDown]),l=o.useCallback((function(t){e.onFocus&&e.onFocus.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onFocus]),c=o.useCallback((function(t){e.onBlur&&e.onBlur.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onBlur]),u=o.useCallback((function(t){e.onMouseMove&&e.onMouseMove.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseMove]),d=o.useCallback((function(t){e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseEnter]),h=o.useCallback((function(t){e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:n.current,syntheticEvent:t})}),[e.onMouseLeave]);return o.createElement("span",{id:e.id,ref:r,dir:i,"data-half":e.half,tabIndex:e.tabIndex,title:e.title,style:e.style,className:(0,p.A)("k-rating-item",{"k-rtl":"rtl"===i,"k-selected":e.selected,"k-hover":e.hovered},e.className),onClick:a,onKeyDown:s,onFocus:l,onBlur:c,onMouseEnter:d,onMouseLeave:h,onMouseMove:u},e.children)})),Xn={id:r.string,icon:r.any,dir:r.oneOf(["ltr","rtl"]),title:r.string,value:r.number,half:r.bool,selected:r.bool,hovered:r.bool};Jn.displayName="KendoReactRatingItem",Jn.propTypes=Xn,Jn.defaultProps={dir:"ltr"};var Qn,eo=function(e,t){if(e%1){var n=Math.pow(10,(t.toString().split(".")[1]||t.toString().split(".")[0]).length);return Math.round(e*n)/n}return e},to=function(e,t,n){return eo(e-n,n)<t&&t<e},no=function(e,t,n,o){return null!==t&&("continues"===o?to(e,t,n)?eo(e-n/2,n/2)<=t:e<=t:"single"===o&&(to(e,t,n)?eo(e-n/2,n/2)===t:e===t))},oo=function(e,t,n){return"ltr"===e?n<t.x+t.width/2:n>t.x+t.width/2},ro=function(e,t,n,o){for(var r=e;r<=t;r+=n)if(o===r)return!0;return!1};!function(e){e.select="select",e.deselect="deselect",e.increase="increase",e.decrease="decrease",e.min="min",e.max="max",e.reset="reset"}(Qn||(Qn={}));var io,ao=function(e,t){switch(t.type){case Qn.select:return void 0===t.payload||void 0===t.step?e:t.payload===e?null:t.payload>=t.min?t.payload<t.max?eo(t.payload,t.step):t.max:t.min;case Qn.deselect:return null;case Qn.increase:return void 0===t.step?e:e<t.min?t.min:e+t.step<t.max?eo(e+t.step,t.step):t.max;case Qn.decrease:return void 0===t.step?e:eo(e-t.step,t.step)>=t.min?eo(e-t.step,t.step):t.min;case Qn.min:return void 0===t.step?e:t.min;case Qn.max:return t.max;case Qn.reset:return null;default:return e}},so=function(){return so=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},so.apply(this,arguments)},lo=function(e,t,n){var r=o.useState(e),i=r[0],a=r[1];return[i,function(e){var o=ao(t.state||i,so(so({},e),t));n&&n(o,e.event),a(o)}]},co=(0,a.Y)(),uo=o.forwardRef((function(e,t){var n=(0,s.Y)(co,e),r=(0,i.useLocalization)(),a=o.useRef(null),l=o.useRef(null),c=(0,pt.n)(l,n.dir);o.useImperativeHandle(a,(function(){return{element:l.current,props:n}})),o.useImperativeHandle(t,(function(){return a.current}));for(var u,d,h=o.useCallback((function(e,t){n.onChange&&a.current&&n.onChange.call(void 0,{value:e,target:a.current,syntheticEvent:t})}),[n.onChange]),m=o.useMemo((function(){return void 0!==n.min?n.min:ho.min}),[n.min]),v=o.useMemo((function(){return void 0!==n.max?n.max:ho.max}),[n.max]),g=o.useMemo((function(){return n.precision||ho.precision}),[n.precision]),y=o.useMemo((function(){return void 0!==n.step?n.step:ho.step}),[n.step]),b=o.useMemo((function(){return n.readonly||ho.readonly}),[n.readonly]),w=o.useMemo((function(){return n.disabled||ho.disabled}),[n.disabled]),k=o.useMemo((function(){return n.item||ho.item}),[n.item]),x=lo(void 0!==n.defaultValue?n.defaultValue:ho.defaultValue,{state:n.value,min:m,max:v,step:"half"===g?y/2:y},h),z=x[0],I=x[1],M=lo(null,{state:n.value,min:m,max:v,step:"half"===g?y/2:y,precision:g}),E=M[0],O=M[1],H=o.useMemo((function(){return void 0!==n.value?n.value:z}),[n.value,z]),N=o.useMemo((function(){return E}),[E]),P=o.useMemo((function(){return n.selection||ho.selection}),[n.selection]),V=o.useMemo((function(){return y/("half"===g?2:1)}),[y,g]),T=o.useCallback((function(e){if(e.target&&e.target.element&&!b&&!w){if("half"===g){var t=e.target.element.getBoundingClientRect(),o=oo(c||"ltr",t,e.syntheticEvent.clientX)?eo(e.target.value-y/2,V):e.target.value;I({type:Qn.select,payload:o,event:e.syntheticEvent})}else I({type:Qn.select,payload:e.target.value,event:e.syntheticEvent});if(n.onClick){var r={value:H,target:a.current,syntheticEvent:e.syntheticEvent};n.onClick.call(void 0,r)}}}),[n.onClick,I,H]),R=o.useCallback((function(e){if(!b&&!w){switch(e.keyCode){case dt.R.right:e.preventDefault(),I({type:"rtl"===c?Qn.decrease:Qn.increase,event:e});break;case dt.R.left:e.preventDefault(),I({type:"rtl"===c?Qn.increase:Qn.decrease,event:e});break;case dt.R.home:e.preventDefault(),I({type:"rtl"===c?Qn.min:Qn.max,event:e});break;case dt.R.end:e.preventDefault(),I({type:"rtl"===c?Qn.max:Qn.min,event:e});break;case dt.R.esc:e.preventDefault(),I({type:Qn.deselect,event:e})}n.onKeyDown&&n.onKeyDown.call(void 0,{value:H,target:a.current,syntheticEvent:e})}}),[n.onKeyDown,I,H]),D=o.useCallback((function(e){if(n.onFocus){var t={target:a.current,syntheticEvent:e};n.onFocus.call(void 0,t)}}),[n.onFocus]),B=o.useCallback((function(e){if(n.onBlur){var t={target:a.current,syntheticEvent:e};n.onBlur.call(void 0,t)}}),[n.onBlur]),A=o.useCallback((function(e){if(e.target&&e.target.element)if("half"===g){var t=e.target.element.getBoundingClientRect(),n=oo(c||"ltr",t,e.syntheticEvent.clientX)?e.target.value-y/2:e.target.value;O({type:Qn.select,payload:n,event:e.syntheticEvent})}else O({type:Qn.select,payload:e.target.value,event:e.syntheticEvent})}),[g,y,c]),L=o.useCallback((function(e){O({type:Qn.reset,event:e.syntheticEvent})}),[]),_=[],F=(u=eo(v-m,V))-(d=y)*Math.floor(u/d),j=m;j<=v;j=eo(j+y,V)){var K=eo(j+F,V),W="half"===g&&to(K,null!==N?N:null!==H?H:0,y),U=no(K,H,y,P),q=no(K,null!==N?N:H,y,P),$=no(K,N,y,P);_.push(o.createElement(k,{key:K,value:K,dir:c,title:String(W?eo(K-y/2,V):K),icon:n.icon,svgIcon:n.svgIcon,half:W,selected:U||q,hovered:$,onClick:T,onMouseMove:A,onMouseLeave:L},W&&o.createElement("span",{className:"k-rating-precision-complement"},!(n.icon||n.svgIconOutline)&&o.createElement(xt.a,{name:"star-outline",icon:C,style:{clipPath:"".concat("rtl"===c?"inset(0 50% 0 0)":"inset(0 0 0 50%)")},size:"xlarge"}),(n.icon||n.svgIconOutline)&&o.createElement(xt.a,{name:(0,Ft.iJ)("".concat(n.icon,"-outline")),icon:n.svgIconOutline,size:"xlarge"})),W&&o.createElement("span",{className:"k-rating-precision-part"},!(n.icon||n.svgIcon)&&o.createElement(xt.a,{name:"star",icon:S,style:{clipPath:"".concat("rtl"===c?"inset(0 0 0 50%)":"inset(0 50% 0 0)")},size:"xlarge"}),(n.icon||n.svgIcon)&&o.createElement(xt.a,{name:n.icon?(0,Ft.iJ)(n.icon):void 0,icon:n.svgIcon,size:"xlarge"})),W&&o.createElement("span",{style:{width:"24px",height:"24px",display:"block"}}),!W&&!(n.icon||n.svgIcon)&&($||q&&!$)&&o.createElement(xt.a,{name:"star",icon:S,size:"xlarge"})||!(n.icon||n.svgIcon)&&!$&&!q&&o.createElement(xt.a,{name:"star-outline",icon:C,size:"xlarge"})||(n.icon||n.svgIcon)&&($||q&&!$)&&o.createElement(xt.a,{name:n.icon,icon:n.svgIcon,size:"xlarge"})||(n.icon||n.svgIcon)&&!$&&o.createElement(xt.a,{name:(0,Ft.iJ)("".concat(n.icon,"-outline")),icon:n.svgIconOutline,size:"xlarge"})))}return o.createElement("span",{id:n.id,style:n.style,ref:l,role:"slider",dir:c,tabIndex:(0,f.p)(n.tabIndex,n.disabled,void 0),className:(0,p.A)("k-rating",{"k-rtl":"rtl"===c,"k-readonly":b,"k-disabled":w},n.className),onKeyDown:R,onFocus:D,onBlur:B,"aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":null!==H?H:void 0,"aria-disabled":w?"true":void 0,"aria-label":r.toLanguageString(ie,ce[ie]),"aria-labelledby":n.ariaLabelledBy,"aria-describedby":n.ariaDescribedBy},o.createElement("input",{id:"rating",className:"k-hidden",readOnly:b,disabled:w}),o.createElement("span",{className:"k-rating-container"},_),n.label&&o.createElement("span",{className:"k-rating-label"},n.label))})),po={id:r.string,dir:r.oneOf(["ltr","rtl"]),selection:r.oneOf(["continues","single"]),precision:r.oneOf(["item","half"]),value:function(e,t,n){return e.value&&e.min&&e.max&&e.step&&!("half"===e.precision?ro(e.min,e.max,e.step/2,e.value):ro(e.min,e.max,e.step,e.value))&&"half"===e.precision?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,".\n The value of the { value } property is not correct, please check your values.\n ")):null},defaultValue:r.number,min:r.number,max:r.number,step:function(e,t,n){return void 0!==e.step&&e.step<=0?new Error("Invalid prop + ".concat(t," supplied to ").concat(n,'.\n The value of the { step } property is cannot be equal or less than "0", please check your values.\n ')):null},hovered:r.number,label:r.string,readonly:r.bool,disabled:r.bool,half:r.bool,icon:r.string,svgIcon:Ft.wi,svgIconOutline:Ft.wi,ariaDescribedBy:r.string},ho={dir:"ltr",min:1,max:5,step:1,item:Jn,defaultValue:null,readonly:!1,disabled:!1,selection:"continues",precision:"item"};uo.displayName="KendoReactRating",uo.propTypes=po,uo.defaultProps=ho,function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(io||(io={}));var fo=function(){function e(e,t,n){void 0===n&&(n=io.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}(),mo=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}(),vo=function(e){return(e||"").split("")},go=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof mo?this.parse(e):this.parse(new mo(vo(e),vo(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===io.Literal},e}(),yo=function(e,t){return new go((function(n){var o=n.next().char,r=e[o];return"\\"===o?(o=n.next().char,new fo(t.literal(o),n)):new fo(r?t.mask(r):t.literal(o),n)}))},bo=function(e){var t=e.prompt,n=e.promptPlaceholder;return new go((function(e){var o=e.next().char;return new fo(o===t?n:o,e)}))},wo=function(e){return new go((function(t){var n=t.next().char;return new fo(e?n:"",t)}))},ko=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 go((function(e){return new fo(t,e)}))));var t},xo=function(e){return new go((function(t){for(var n=new fo([],t);!t.eof();)n=n.concat(e.run(t));return n}))},zo=(function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,o=e.prompt,r=void 0===o?"":o,i=e.promptPlaceholder,a=void 0===i?" ":i,s=e.rules,l=void 0===s?{}:s,c=e.includeLiterals,u=void 0!==c&&c;this.mask=n,this.prompt=r,this.promptPlaceholder=a,this.rules=l,this.includeLiterals=u,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return ko(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?(ko(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?(ko(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,o){var r="",i=o,a=t.split("").slice(0,n),s=t.split("").slice(o);return ko(this.maskTokens.slice(n,o)).run(e).fold((function(e){r=a.concat(e).concat(s).join("")})),{selection:i,value:r}},e.prototype.maskRemoved=function(e,t,n){var o=this,r="",i=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return ko(this.maskTokens.slice(0,l)).run(s,t).fold((function(e){i=o.adjustPosition(e,i),r=e.concat(a).join("")})),{selection:i,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 o=this,r="",i=n,a=e.slice(0,n);return ko(this.unmaskTokens).run(a,t).chain((function(e){i=e.join("").length;var n=t.slice(i);return ko(o.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:i,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new go((function(e){return e.peek().char===t?(e.eat(),new fo(t,e,io.Literal)):new fo(t,e,io.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new go((function(o){for(;!o.eof();){var r=o.peek(),i=r.char,a=r.control;if(i===a&&a===t)return o.eat(),new fo(t,o,io.Mask);if(e.test(i))return o.eat(),new fo(i,o,io.Mask);if(i===n)return o.eat(),new fo(t,o,io.Mask);o.eat_input()}return o.eat(),new fo(t,o,io.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 go((function(e){return e.eof()?new fo("",e):(e.peek().char===t&&e.eat(),new fo(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new go((function(t){for(;!t.eof();){var o=t.peek(),r=o.char,i=o.control;if(r===n&&i===n)return t.eat(),new fo(r,t);if(e.test(r))return t.eat(),new fo(r,t);t.eat_input()}return t.eat(),new fo("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this,t=e.prompt,n=e.promptPlaceholder,o=e.includeLiterals;return{literal:function(e){return wo(o)},mask:function(e){return bo({prompt:t,promptPlaceholder:n})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return wo(!1)},mask:function(t){return bo({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;xo(yo(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),xo(yo(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),xo(yo(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),xo(yo(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))}}(),Be.drawing.util),Co=zo.elementOffset,So=zo.limitValue,Io=Be.geometry.Point,Mo=Be.geometry.Rect,Eo=Be.geometry.transform,Oo=function(){},Ho=function(){function e(e,t){void 0===t&&(t={}),this.element=e,this.lastMoveTime=0,this.options=Object.assign({scale:1,precision:1,samplingRate:200,smooth:!1!==t.smooth,color:t.color||"#000",backgroundColor:t.backgroundColor||"#fff",strokeWidth:1,onChange:Oo,onDraw:Oo,onDrawEnd:Oo},t),this.pathOptions={stroke:{color:this.options.color,width:this.options.strokeWidth,lineCap:"round",lineJoin:"round"}},this.initSurface(),this.attachEvents()}return e.prototype.destroy=function(){this.detachEvents()},e.prototype.clear=function(){this.rootGroup.clear(),this.path=null},Object.defineProperty(e.prototype,"isDrawing",{get:function(){return Boolean(this.points)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pathData",{get:function(){var e;return null===(e=this.path)||void 0===e?void 0:e.toString(3)},set:function(e){this.clear(),this.path=Be.MultiPath.parse(e,this.pathOptions),this.rootGroup.append(this.path)},enumerable:!1,configurable:!0}),e.prototype.loadImage=function(e,t){if(void 0===t&&(t=[]),e){var n=this.size,o=n[0],r=n[1],i=o/this.options.scale,a=r/this.options.scale,s=t[0]||6*i,l=t[1]||6*a,c=i/s,u=a/l,d=Math.min(c,u),p=new Be.Image(e,new Be.geometry.Rect([0,0],[s,l]));p.transform(Eo().scale(d,d)),this.clear(),this.rootGroup.append(p)}else this.clear()},e.prototype.exportImage=function(e){var t,n=this.size,o=n[0],r=n[1],i=o/this.options.scale,a=r/this.options.scale,s=(null==e?void 0:e.width)||6*i,l=(null==e?void 0:e.height)||6*a,c=s/i,u=l/a,d=Math.min(c,u),p=new Mo([0,0],[s,l]),h=new Be.Group({clip:Be.Path.fromRect(p)}),f=new Be.Group({transform:Eo().scale(d,d)}),m=Be.Path.fromRect(p,{fill:{color:this.options.backgroundColor}});return h.append(m),h.append(f),(t=f.children).push.apply(t,this.rootGroup.children),(0,Be.exportImage)(h,Object.assign({width:s,height:l},e))},e.prototype.resize=function(){this.surface.resize(!0)},e.prototype.setOptions=function(e){Object.assign(this.options,e),this.pathOptions.stroke.color=this.options.color,this.pathOptions.stroke.width=this.options.strokeWidth,this.path&&(this.path.options.set("stroke.color",this.options.color),this.path.options.set("stroke.width",this.options.strokeWidth)),this.background.options.set("fill.color",this.options.backgroundColor)},e.prototype.initSurface=function(){this.surface=Be.Surface.create(this.element,{type:"canvas"}),this.element.style.touchAction="none";var e=this.options.scale;this.rootGroup=new Be.Group({transform:Eo().scale(e,e)});var t=this.element.offsetWidth||750,n=this.element.offsetHeight||250;this.size=[t,n],this.background=Be.Path.fromRect(new Mo([0,0],this.size),{fill:{color:this.options.backgroundColor}}),this.surface.draw(this.background),this.surface.draw(this.rootGroup)},e.prototype.attachEvents=function(){this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.element.addEventListener("pointerdown",this.onPointerDown),this.element.addEventListener("pointermove",this.onPointerMove),this.element.addEventListener("pointerup",this.onPointerUp)},e.prototype.detachEvents=function(){this.element.removeEventListener("pointerdown",this.onPointerDown),this.element.removeEventListener("pointermove",this.onPointerMove),this.element.removeEventListener("pointerup",this.onPointerUp)},e.prototype.touchPoint=function(e){var t=Co(this.element),n=e.pageX,o=e.pageY,r=1/this.options.scale;return new Io(n-t.left,o-t.top).scale(r,r)},e.prototype.onPointerDown=function(e){if(!this.options.readonly&&e.isPrimary&&function(e){return"number"!=typeof e.button||0===e.button}(e)){this.path||(this.path=new Be.MultiPath(this.pathOptions),this.rootGroup.append(this.path)),this.options.onDraw(),this.element.setPointerCapture(e.pointerId);var t=this.touchPoint(e);this.points=[t],this.path.moveTo(t)}},e.prototype.onPointerMove=function(e){if(this.points&&e.isPrimary){var t=(new Date).getTime();if(!(t-this.lastMoveTime<1e3/So(this.options.samplingRate,1,1e4))){this.lastMoveTime=t;var n=this.touchPoint(e),o=this.points[this.points.length-1],r=1/So(this.options.precision,.01,100);n.distanceTo(o)<r||(this.points.push(n),this.path.lineTo(n))}}},e.prototype.onPointerUp=function(e){if(e.isPrimary&&this.path&&this.points&&!this.options.readonly){if(this.options.smooth){var t=Be.Path.curveFromPoints(this.points);this.path.paths.splice(this.path.paths.length-1,1,t)}this.points=null,this.options.onDrawEnd(),this.options.onChange(this.pathData)}},e}(),No=n(1193),Po=function(){return Po=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Po.apply(this,arguments)},Vo=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((o=o.apply(e,t||[])).next())}))},To=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Ro=function(e){return void 0!==e},Do=(0,a.Y)(),Bo=o.forwardRef((function(e,t){var n;(0,H.s)(N.k);var r=(0,s.Y)(Do,e),a=(0,i.useLocalization)(),l=o.useRef(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),v=o.useRef(null),g=o.useState(),y=g[0],b=g[1],w=o.useState(!1),k=w[0],C=w[1],S=o.useState(!1),I=S[0],M=S[1],E=o.useState(),O=E[0],P=E[1],V=o.useState(),T=V[0],R=V[1],D=Ro(r.value)?r.value:O,B=o.useState(!1),A=B[0],L=B[1],_=Ro(r.open),F=_?r.open:A,j=!(r.maximized||I||!r.maximizable||r.disabled),K=r.maximized&&!I,W=!(!r.value&&!O||I||r.readOnly||r.disabled),U=a.toLanguageString(se,ce[se]),q=a.toLanguageString(le,ce[le]),$=a.toLanguageString(ae,ce[ae]),G=r.popupScale||3,Z=r.exportScale||2,Y=function(e){P(e),r.onChange&&r.onChange({value:e})};o.useEffect((function(){r.value!==O&&(P(r.value),null==y||y.loadImage(r.value))}),[r.value]);var J=o.useCallback((function(e){_||L(e)}),[_]),X=o.useCallback((function(){var e="#000000";return!r.color&&"undefined"!=typeof document&&l.current&&(e=getComputedStyle(l.current).color),r.color||e}),[r.color]),Q=o.useCallback((function(){var e="#ffffff";return!r.backgroundColor&&"undefined"!=typeof document&&l.current&&(e=getComputedStyle(l.current).backgroundColor),r.backgroundColor||e}),[r.backgroundColor]),ee=function(){return{scale:r.maximized?r.popupScale:1,color:X(),backgroundColor:Q(),strokeWidth:r.strokeWidth,smooth:r.smooth,readonly:r.readOnly}},te=function(e){return Vo(void 0,void 0,void 0,(function(){var t,n;return To(this,(function(o){switch(o.label){case 0:return t=e.width,n=e.height,[4,null==y?void 0:y.exportImage({width:t*Z,height:n*Z})];case 1:return[2,o.sent()]}}))}))};o.useEffect((function(){var e=c.current,t=new Ho(e,ee());return D&&t.loadImage(D),b(t),function(){return t.destroy()}}),[]),o.useEffect((function(){null==y||y.setOptions({onChange:function(){return Vo(void 0,void 0,void 0,(function(){var e;return To(this,(function(t){switch(t.label){case 0:return e=Y,[4,te(ye())];case 1:return[2,e.apply(void 0,[t.sent()])]}}))}))},onDraw:function(){return M(!0)},onDrawEnd:function(){return M(!1)}})}),[y]),o.useLayoutEffect((function(){return null==y?void 0:y.setOptions(ee())}),[r.readOnly,r.color,r.backgroundColor,r.strokeWidth,r.smooth]),o.useEffect((function(){var e,t,n=null===(t=null===(e=d.current)||void 0===e?void 0:e.element)||void 0===t?void 0:t.querySelector(".k-overlay");if(n){var o=function(){return J(!1)};return n.addEventListener("click",o),function(){return n.removeEventListener("click",o)}}}),[F]),o.useEffect((function(){if(F&&"undefined"!=typeof document){var e=function(e){e.keyCode===dt.R.esc&&J(!1)};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}}),[F]),o.useEffect((function(){var e,t;r.maximized&&(null===(t=null===(e=m.current)||void 0===e?void 0:e.element)||void 0===t||t.focus())}),[]);var ne=o.useCallback((function(){var e;return null===(e=c.current)||void 0===e?void 0:e.focus()}),[]),oe=o.useCallback((function(){return r.value}),[r.value]),re=o.useCallback((function(){return r.name}),[r.name]),ie=o.useCallback((function(){return r.required}),[r.required]),ue=o.useCallback((function(){var e=void 0!==r.validationMessage,t=!oe();return{customError:e,valid:void 0!==r.valid?r.valid:!ie()||!t,valueMissing:t}}),[r.validationMessage,r.valid,oe,ie]),de=o.useCallback((function(){return r.validityStyles}),[r.validityStyles]),pe=o.useCallback((function(){return r}),[r]),he=o.useCallback((function(){var e={element:l.current,focus:ne};return Object.defineProperty(e,"name",{get:re}),Object.defineProperty(e,"value",{get:oe}),Object.defineProperty(e,"validity",{get:ue}),Object.defineProperty(e,"validityStyles",{get:de}),Object.defineProperty(e,"required",{get:ie}),Object.defineProperty(e,"props",{get:pe}),Object.defineProperty(e,"color",{get:X}),Object.defineProperty(e,"backgroundColor",{get:Q}),e}),[re,oe,ue,de,ie,ne,pe,X,Q]);o.useImperativeHandle(t,he);var fe=o.useCallback((function(e){k||r.maximized||(C(!0),(0,u.N)(r.onFocus,e,he(),{}))}),[k,r.onFocus,he]),me=o.useCallback((function(e){(function(e,t){for(var n=e;n&&n!==t;)n=n.parentNode;return!!n})(e.relatedTarget,l.current)||(C(!1),(0,u.N)(r.onBlur,e,he(),{}))}),[k,r.onBlur,he]),ve=o.useCallback((function(e){return Vo(void 0,void 0,void 0,(function(){var t;return To(this,(function(n){switch(n.label){case 0:return t=R,[4,te(be())];case 1:return t.apply(void 0,[n.sent()]),J(!0),(0,u.N)(r.onOpen,e,he(),{}),[2]}}))}))}),[F,_,r.onOpen,r.value,O,he]),ge=o.useCallback((function(e){J(!1),(0,u.N)(r.onClose,e,he(),{})}),[F,_,r.onClose,he]),ye=function(){var e,t;return{width:r.width||(null===(e=l.current)||void 0===e?void 0:e.offsetWidth)||250,height:r.height||(null===(t=l.current)||void 0===t?void 0:t.offsetHeight)||84}},be=function(){var e=ye(),t=e.width,n=e.height;return{width:t*G,height:n*G}},we=!de()||ue().valid;return o.createElement("div",{ref:l,dir:r.dir,style:Po({width:r.width,height:r.height},r.style),className:(0,p.A)("k-input","k-signature",(n={"k-signature-maximized":r.maximized},n["k-signature-".concat(h.G.sizeMap[r.size]||r.size)]=r.size,n["k-input-".concat(r.fillMode)]=r.fillMode,n["k-rounded-".concat(h.G.roundedMap[r.rounded]||r.rounded)]=r.rounded,n["k-invalid"]=!we,n["k-required"]=r.required,n["k-disabled"]=r.disabled,n["k-focus"]=k,n),r.className),onFocus:fe,onBlur:me},o.createElement("div",{className:"k-signature-canvas",ref:c,tabIndex:(0,f.p)(r.tabIndex,r.disabled),role:"img",id:r.id,"aria-label":r.ariaLabel,"aria-labelledby":r.ariaLabelledBy,"aria-describedby":r.ariaDescribedBy,"aria-disabled":r.disabled?"true":void 0}),o.createElement("div",{className:"k-signature-actions k-signature-actions-top"},j&&o.createElement(Pe.z,{className:"k-signature-action k-signature-maximize",ref:v,icon:"hyperlink-open",svgIcon:z,fillMode:"flat",size:r.size,onClick:ve,"aria-label":U,title:U}),K&&o.createElement(Pe.z,{className:"k-signature-action k-signature-minimize k-rotate-180",ref:m,icon:"hyperlink-open",svgIcon:z,fillMode:"flat",size:r.size,onClick:ge,"aria-label":q,title:q})),!r.hideLine&&o.createElement("div",{className:"k-signature-line",style:{zIndex:2,pointerEvents:"none"}}),o.createElement("div",{className:"k-signature-actions k-signature-actions-bottom"},W&&o.createElement(Pe.z,{className:"k-signature-action k-signature-clear",icon:"x",svgIcon:x,fillMode:"flat",size:r.size,onClick:function(){null==y||y.clear(),Y(),ne()},"aria-label":$,title:$})),F&&o.createElement(No.V,{ref:d},o.createElement(Bo,Po({},r,be(),{value:T,maximized:!0,exportScale:1/G*Z,open:!1,onChange:function(e){null==y||y.loadImage(e.value),Y(e.value)},onClose:function(e){var t,n;ge(e),null===(n=(null===(t=v.current)||void 0===t?void 0:t.element)||c.current)||void 0===n||n.focus()}}))))}));Bo.propTypes={value:r.string,width:r.number,height:r.number,tabIndex:r.number,dir:r.string,ariaDescribedBy:r.string,ariaLabelledBy:r.string,ariaLabel:r.string,readOnly:r.bool,disabled:r.bool,validationMessage:r.string,required:r.bool,onChange:r.func,onFocus:r.func,onBlur:r.func,onOpen:r.func,onClose:r.func,size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large"]),fillMode:r.oneOf([null,"solid","flat","outline"])},Bo.displayName="KendoSignature",Bo.defaultProps={strokeWidth:1,smooth:!1,popupScale:3,exportScale:2,maximizable:!0,disabled:!1,required:!1,validityStyles:!0,onChange:function(e){return Nn.Z},onFocus:function(e){return Nn.Z},onBlur:function(e){return Nn.Z},onOpen:function(e){return Nn.Z},onClose:function(e){return Nn.Z},size:"medium",rounded:"medium",fillMode:"solid"};var Ao=n(4071),Lo=function(){return Lo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Lo.apply(this,arguments)},_o=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(n,(function(){return{element:r.current}})),o.useImperativeHandle(t,(function(){return n.current})),o.createElement("span",Lo({},e,{className:(0,p.A)("k-clear-value",e.className)}))}));_o.displayName="KendoReactInputClearValue";var Fo=n(6183),jo=function(){return jo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},jo.apply(this,arguments)},Ko=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(n,(function(){return{element:r.current}})),o.useImperativeHandle(t,(function(){return n.current})),o.createElement("span",jo({},e,{className:(0,p.A)("k-input-separator",e.className)}))}));Ko.displayName="KendoReactInputSeparator";var Wo=function(){return Wo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Wo.apply(this,arguments)},Uo=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(n,(function(){return{element:r.current}})),o.useImperativeHandle(t,(function(){return n.current})),o.createElement("span",Wo({},e,{className:(0,p.A)("k-input-suffix",e.className)}))}));Uo.displayName="KendoReactInputSuffix";var qo=function(){return qo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},qo.apply(this,arguments)},$o=o.forwardRef((function(e,t){return o.createElement(xt.a,qo({ref:t},e,{className:(0,p.A)("k-input-validation-icon",e.className)}))}));$o.displayName="KendoReactInputValidationIcon"},2009:(e,t,n)=>{n.d(t,{k:()=>o});var o={name:"@progress/kendo-react-inputs",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060262,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},4071:(e,t,n)=>{n.d(t,{z:()=>p});var o=n(3899),r=n(189),i=n(4006),a=n(9447),s=n(6059),l=n(8047),c=n(2697),u=n(2009),d=function(){return d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=o.forwardRef((function(e,t){var n;(0,i.s)(u.k);var r=o.useRef(null),p=o.useRef(null),f=o.useRef(),m=o.useCallback((function(){var e;return void 0!==f.current?f.current:null===(e=r.current)||void 0===e?void 0:e.value}),[]);o.useImperativeHandle(p,(function(){return{get element(){return r.current},get name(){return r.current&&r.current.name},get value(){return m()}}})),o.useImperativeHandle(t,(function(){return p.current}));var v=e,g=v.size,y=v.fillMode,b=v.rounded,w=v.className,k=v.dir,x=v.style,z=v.prefix,C=void 0===z?h.prefix:z,S=v.suffix,I=void 0===S?h.suffix:S,M=(v.valid,v.modified,v.touched,v.visited,function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(v,["size","fillMode","rounded","className","dir","style","prefix","suffix","valid","modified","touched","visited"])),E=(0,a.A)(C)[0],O=(0,a.A)(I)[0],H=o.useState(!1),N=H[0],P=H[1],V=o.useCallback((function(t){f.current=t.target.value,e.onChange&&e.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:p.current}),f.current=void 0}),[e.onChange]),T=(0,s.U)({onFocus:function(e){P(!0)},onBlur:function(e){P(!1)},onSyncFocus:e.onFocus,onSyncBlur:e.onBlur}),R=T.onFocus,D=T.onBlur;return o.createElement("span",{style:x,dir:k,className:(0,l.A)("k-textbox k-input",(n={},n["k-input-".concat(c.G.sizeMap[g]||g)]=g,n["k-input-".concat(y)]=y,n["k-rounded-".concat(c.G.roundedMap[b]||b)]=b,n),{"k-focus":N,"k-required":e.required,"k-disabled":e.disabled,"k-invalid":!1===e.valid},w),onFocus:R,onBlur:D},o.createElement(E,null),o.createElement("input",d({ref:r,className:"k-input-inner"},M,{onChange:V})),o.createElement(O,null))})),h={prefix:function(e){return null},suffix:function(e){return null},size:"medium",rounded:"medium",fillMode:"solid"};p.propTypes={size:r.oneOf([null,"small","medium","large"]),rounded:r.oneOf([null,"small","medium","large","full"]),fillMode:r.oneOf([null,"solid","flat","outline"])},p.displayName="KendoReactTextBoxComponent",p.defaultProps=h},6097:(e,t,n)=>{n.d(t,{_:()=>p});var o,r=n(3899),i=n(189),a=n(8047),s=n(499),l=n(2609),c=n(4006),u=n(8011),d=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;return n.state={focused:!1},n.handleFocus=function(e){n.setState({focused:!0})},n.handleBlur=function(e){n.setState({focused:!1})},(0,c.s)(u.k),n}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.editorId,o=e.className,i=e.labelClassName,c=e.editorValue,u=e.editorPlaceholder,d=e.editorValid,p=e.editorDisabled,h=e.style,f=e.id,m=e.optional,v=(0,s.provideLocalizationService)(this),g=m?v.toLanguageString(l.y,l.s[l.y]):"",y=g&&r.createElement("span",{className:"k-label-optional"},g),b=(0,a.A)({"k-floating-label-container":!0,"k-focus":this.state.focused,"k-empty":!u&&!c&&0!==c,"k-text-disabled":p,"k-rtl":"rtl"===this.props.dir},o),w=(0,a.A)({"k-label":!0,"k-text-error":!1===d,"k-text-disabled":p},i);return r.createElement("span",{id:this.props.id,className:b,onFocus:this.handleFocus,onBlur:this.handleBlur,style:h,dir:this.props.dir},this.props.children,t?n?r.createElement("label",{id:f,htmlFor:n,className:w},t,y):r.createElement("span",{id:f,className:w},t,y):null)},t.propTypes={label:i.string,editorId:i.string,editorValue:i.oneOfType([i.string,i.bool,i.number]),editorPlaceholder:i.string,editorValid:i.bool,editorDisabled:i.bool,id:i.string,style:i.object,className:i.string,labelClassName:i.string,optional:i.bool},t}(r.Component);(0,s.registerForLocalization)(p)},2609:(e,t,n)=>{var o;n.d(t,{y:()=>r,s:()=>i});var r="labels.optional",i=((o={})[r]="(Optional)",o)},8011:(e,t,n)=>{n.d(t,{k:()=>o});var o={name:"@progress/kendo-react-labels",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060084,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},3162:(e,t,n)=>{n.d(t,{V:()=>g});var o,r=n(3899),i=n(189),a=n(4343),s=n(4006),l=n(6604),c=n(8047),u=n(8206),d=n(4312),p=n(1205),h=n(4390),f=n(7999),m=(o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){return v=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},g=function(e){function t(t){var n=e.call(this,t)||this;return n.actionSheetRef=r.createRef(),n.actionSheetTitleClass="k-actionsheet-title",n.ariaLabeledBy=n.actionSheetTitleClass+1,n.animationDuration=300,n.bottomPosition={bottom:"0",width:"100%"},n.handleKeyDown=function(e){n.props.navigatable&&n.navigation.triggerKeyboardEvent(e)},n.onTab=function(e,t,n){n.preventDefault(),n.shiftKey?t.focusPrevious(e):t.focusNext(e)},n.handleOverlayClick=function(e){n.props.onOverlayClick&&n.props.onOverlayClick.call(void 0,e),n.props.onClose&&n.props.onClose.call(void 0,e),n.props.animation||n.hideActionSheet()},n.handleItemClick=function(e){n.props.onItemClick&&n.props.onItemClick.call(void 0,e),n.props.onItemSelect&&n.props.onItemSelect.call(void 0,e),n.props.animation||n.hideActionSheet()},n.onEnter=function(e,t,o){if(!e.ariaDisabled){var r=!(!e.className||!e.className.indexOf)&&-1!==e.className.indexOf("k-actionsheet-item"),i=t.elements.filter((function(e){return-1!==e.className.indexOf("k-actionsheet-item")}));if(r&&n.props.onItemClick){o.preventDefault();var a=n.props.items[i.indexOf(e)];n.props.onItemClick.call(void 0,{syntheticEvent:o,item:a,title:a&&a.title})}r&&n.props.onItemSelect&&(o.preventDefault(),a=n.props.items[i.indexOf(e)],n.props.onItemSelect.call(void 0,{syntheticEvent:o,item:a,title:a&&a.title})),n.props.animation||n.hideActionSheet()}},n.onEscape=function(e,t,o){n.props.onOverlayClick&&(o.preventDefault(),n.props.onOverlayClick.call(void 0,o)),n.props.onClose&&(o.preventDefault(),n.props.onClose.call(void 0,o)),n.props.animation||n.hideActionSheet()},n.hideActionSheet=function(){n.setState({show:!1})},n.children=function(e){var t={};return r.Children.forEach(e,(function(e){e&&(t[e.type.displayName]=e)})),t},n.state={show:!1,slide:!1},(0,s.s)(u.k),n}return m(t,e),t.prototype.componentDidMount=function(){this.props.expand&&!this.state.show&&this.setState({show:!0})},t.prototype.componentDidUpdate=function(e,t){var n=this,o=this.actionSheetRef.current;if(this.props.expand&&!this.state.show&&this.setState({show:!0}),this.props.expand&&this.state.show&&!this.state.slide&&this.setState({slide:!0}),!this.props.expand&&this.state.show&&this.state.slide&&this.setState({slide:!1}),t!==this.state&&this.state.slide&&o&&!this.props.className&&(o.style.setProperty("--kendo-actionsheet-height","auto"),o.style.setProperty("--kendo-actionsheet-max-height","none")),o&&this.props.navigatable){var r=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([".k-actionsheet-item"],[".k-actionsheet-footer",".k-actionsheet-content",".k-actionsheet-titlebar"].map((function(e){return l.x.concat(n.props.navigatableElements).map((function(t){return"".concat(e," ").concat(t)}))})).flat(),!0);this.navigation=new l.W({tabIndex:this.props.tabIndex||0,root:this.actionSheetRef,rovingTabIndex:!1,selectors:r,keyboardEvents:{keydown:{Tab:this.onTab,Enter:this.onEnter,Escape:this.onEscape}}}),this.navigation.focusElement(this.navigation.first,null)}},t.prototype.render=function(){var e=this,t=this.props,n=t.title,o=t.subTitle,i=t.animationStyles,s=t.animation,l=t.expand,u=t.tabIndex,m=t.items,g=null==m?void 0:m.filter((function(e){return!e.group||"top"===e.group})),y=null==m?void 0:m.filter((function(e){return"bottom"===e.group})),b=g&&g.length>0&&y&&y.length>0,w=this.children(this.props.children),k=this.props.animationDuration||this.animationDuration,x=this.state.slide&&r.createElement("div",{className:(0,c.A)("k-actionsheet",this.props.className,{"k-actionsheet-bottom":!this.props.className}),role:"dialog","aria-modal":"true","aria-hidden":!1,"aria-labelledby":this.ariaLabeledBy,ref:this.actionSheetRef,onKeyDown:this.handleKeyDown},w[p.w]&&!n&&!o&&w[p.w],(n||o)&&r.createElement("div",{className:"k-actionsheet-titlebar k-text-center"},r.createElement("div",{className:"k-actionsheet-titlebar-group k-hbox"},r.createElement("div",{className:this.actionSheetTitleClass,id:this.ariaLabeledBy},n&&r.createElement("div",null,n),o&&r.createElement("div",{className:"k-actionsheet-subtitle"},o)))),w[f.y]||r.createElement("div",{className:"k-actionsheet-content"},r.createElement("div",{className:"k-list-ul",role:"group"},g&&g.map((function(t,n){return r.createElement(d.Q,v({},t,{id:n,key:n,item:t,tabIndex:u||0,onClick:e.handleItemClick}))}))),b&&r.createElement("hr",{className:"k-hr"}),r.createElement("div",{className:"k-list-ul",role:"group"},y&&y.map((function(t,n){return r.createElement(d.Q,v({},t,{id:n+((null==g?void 0:g.length)||0),key:n,item:t,tabIndex:u||0,onClick:e.handleItemClick}))})))),w[h.g]);return r.createElement(r.Fragment,null,l||this.state.show?r.createElement(r.Fragment,null,r.createElement("div",{className:"k-actionsheet-container"},r.createElement("div",{className:"k-overlay",onClick:this.handleOverlayClick}),s?r.createElement(a.f,{transitionName:this.state.slide?"slide-up":"slide-down",onExited:this.hideActionSheet,transitionEnterDuration:k,transitionExitDuration:k,animationEnteringStyle:i||this.bottomPosition,animationEnteredStyle:i||this.bottomPosition,animationExitingStyle:i||this.bottomPosition,exit:!0,enter:!0,appear:!1},x):x)):null)},t.displayName="KendoReactActionSheet",t.propTypes={items:i.array,subTitle:i.string,title:i.string,navigatable:i.bool,navigatableElements:i.array},t.defaultProps={navigatable:!0,navigatableElements:[]},t}(r.Component)},7999:(e,t,n)=>{n.d(t,{y:()=>a,M:()=>s});var o=n(3899),r=n(189),i=n(8047),a="ActionSheetContent",s=function(e){return o.createElement("div",{className:(0,i.A)("k-actionsheet-content",e.className)},e.children)};s.propTypes={className:r.string},s.displayName=a,s.propTypes={children:r.any}},4390:(e,t,n)=>{n.d(t,{g:()=>a,K:()=>s});var o=n(3899),r=n(189),i=n(8047),a="ActionSheetFooter",s=function(e){return o.createElement("div",{className:(0,i.A)("k-actionsheet-footer",e.className)},e.children)};s.propTypes={className:r.string},s.displayName=a,s.propTypes={children:r.any}},1205:(e,t,n)=>{n.d(t,{w:()=>a,n:()=>s});var o=n(3899),r=n(189),i=n(8047),a="ActionSheetHeader",s=function(e){return o.createElement("div",{className:(0,i.A)("k-actionsheet-titlebar",e.className)},e.children)};s.propTypes={className:r.string},s.displayName=a,s.propTypes={children:r.any}},4312:(e,t,n)=>{n.d(t,{Q:()=>a});var o=n(3899),r=n(189),i=n(8047),a=function(e){var t=o.useRef(null),n=o.useCallback((function(t){e.onClick&&e.onClick.call(void 0,{syntheticEvent:t,item:e.item,title:e.title})}),[e.item,e.title,e.onClick]);return o.useEffect((function(){t.current&&e.focused&&t.current.focus()}),[e.focused]),o.createElement("span",{style:e.style,tabIndex:e.tabIndex,className:(0,i.A)("k-actionsheet-item","k-cursor-pointer",e.disabled&&"k-disabled",e.className),ref:t,role:"button","aria-disabled":e.disabled,onClick:n},o.createElement("span",{className:"k-actionsheet-action"},e.icon&&o.createElement("span",{className:"k-icon-wrap"},e.icon),(e.title||e.description)&&o.createElement("span",{className:"k-actionsheet-item-text"},e.title&&o.createElement("span",{className:"k-actionsheet-item-title"},e.title),e.description&&o.createElement("span",{className:"k-actionsheet-item-description"},e.description))))};a.propTypes={className:r.string,style:r.object,description:r.string,disabled:r.bool,group:r.oneOf(["top","bottom"]),icon:r.element,title:r.string}},4611:(e,t,n)=>{n.r(t),n.d(t,{ActionSheet:()=>so.V,ActionSheetContent:()=>uo.M,ActionSheetFooter:()=>po.K,ActionSheetHeader:()=>co.n,ActionSheetItem:()=>lo.Q,AppBar:()=>yn,AppBarSection:()=>wn,AppBarSpacer:()=>kn,Avatar:()=>Ft,BottomNavigation:()=>An,BottomNavigationItem:()=>Dn,Breadcrumb:()=>ro,BreadcrumbDelimiter:()=>Jn,BreadcrumbLink:()=>Qn,BreadcrumbListItem:()=>Zn,BreadcrumbOrderedList:()=>to,Card:()=>Ot,CardActions:()=>Tt,CardBody:()=>Pt,CardFooter:()=>At,CardHeader:()=>Ht,CardImage:()=>Dt,CardSubtitle:()=>Bt,CardTitle:()=>Nt,ContextMenu:()=>So,Drawer:()=>Jt,DrawerContent:()=>Xt,DrawerItem:()=>Ut,DrawerNavigation:()=>Zt,ExpansionPanel:()=>Mo,ExpansionPanelContent:()=>Oo,GridLayout:()=>Un,GridLayoutItem:()=>Gn,Menu:()=>yt,MenuItem:()=>et,MenuItemArrow:()=>G,MenuItemInternalsList:()=>X,MenuItemLink:()=>P,PanelBar:()=>Je,PanelBarItem:()=>Te,PanelBarUtils:()=>We,Splitter:()=>Mt,SplitterBar:()=>ne,SplitterPane:()=>wt,StackLayout:()=>jn,Step:()=>ln,Stepper:()=>vn,TabStrip:()=>Me,TabStripContent:()=>ke,TabStripNavigation:()=>he,TabStripNavigationItem:()=>ie,TabStripTab:()=>Oe,TileLayout:()=>Vn,Timeline:()=>zo,addYearsFlags:()=>vo,contentDisplayName:()=>uo.y,downArrowName:()=>U,flatChildren:()=>je,flatVisibleChildren:()=>Ke,flatVisibleItems:()=>Fe,footerDisplayName:()=>po.g,getFirstId:()=>Ae,getInitialState:()=>Le,headerDisplayName:()=>co.w,isArrayEqual:()=>$e,isPresent:()=>Ue,leftArrowName:()=>$,renderChildren:()=>Be,rightArrowName:()=>q,sortEventList:()=>mo});var o=n(3899),r=n(3769),i=n(8130),a=n(8047),s=n(1754),l="",c="0",u="_";function d(e,t){if(g(e))return t[Number(e)];var n=t[Number(p(e))];return n.items?d(function(e){if(v(e))return e;var t=e.indexOf(u);return e.substring(t+1)}(e),n.items):void 0}function p(e){return v(e)?e:e.split(u)[0]}function h(e){return f("0",e)}function f(e,t){return t?t+u+e:e}function m(e){var t=e.lastIndexOf(u);return t<0?l:e.substring(0,t)}function v(e){return e===l||e.indexOf(u)<0}function g(e){return e!==l&&e.indexOf(u)<0}function y(e){var t=e.lastIndexOf(u);return t<0?e:e.substring(t+1)}function b(e,t,n){return g(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}var w={vertical:"top",horizontal:"left"},k={vertical:"top",horizontal:"right"},x={vertical:"flip",horizontal:"fit"},z={vertical:"fit",horizontal:"flip"},C={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:k,collision:x},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:k,collision:z}},S={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:w,collision:x},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:w,collision:z}};function I(e,t,n){return g(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}function M(e){return e?"rtl":"ltr"}function E(e,t){return"".concat(e,"_").concat(t)}var O,H=n(189),N=(O=function(e,t){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},O(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return N(t,e),t.prototype.render=function(){return this.props.url?o.createElement("a",{className:this.getMenuItemClassName(),role:"presentation",href:this.props.url,tabIndex:-1},this.props.children):o.createElement("span",{id:this.props.id,className:(0,a.A)(this.getMenuItemClassName(),this.props.className),style:this.props.style,role:"presentation"},this.props.children)},t.prototype.getMenuItemClassName=function(){return(0,a.A)("k-link","k-menu-link",{"k-active":this.props.opened})},t.propTypes={opened:H.bool,url:H.string},t}(o.Component);const V={name:"caret-alt-up",content:'<path d="m256 160 128 192H128l128-192z" />',viewBox:"0 0 512 512"},T={name:"caret-alt-right",content:'<path d="M352 256 160 384V128l192 128z" />',viewBox:"0 0 512 512"},R={name:"caret-alt-down",content:'<path d="M256 352 128 160h256L256 352z" />',viewBox:"0 0 512 512"},D={name:"caret-alt-left",content:'<path d="m160 256 192-128v256L160 256z" />',viewBox:"0 0 512 512"},B={name:"chevron-up",content:'<path d="m129.941 353.941 126.06-126.06 126.061 126.06L416 320 256.001 160 96 320l33.941 33.941z" />',viewBox:"0 0 512 512"},A={name:"chevron-right",content:'<path d="m158.059 129.941 126.06 126.06-126.06 126.061L192 416l160-159.999L192 96l-33.941 33.941z" />',viewBox:"0 0 512 512"},L={name:"chevron-down",content:'<path d="m382.059 158.059-126.06 126.06-126.061-126.06L96 192l159.999 160L416 192l-33.941-33.941z" />',viewBox:"0 0 512 512"},_={name:"chevron-left",content:'<path d="m353.941 382.059-126.06-126.06 126.06-126.061L320 96 160 255.999 320 416l33.941-33.941z" />',viewBox:"0 0 512 512"},F={name:"check-outline",content:'<path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm0 416c-106 0-192-86-192-192S150 64 256 64s192 86 192 192-86 192-192 192zm-32-154-83-83-45 45 128 128 176-176-45-45-131 131z" />',viewBox:"0 0 512 512"},j={name:"exclamation-circle",content:'<path d="M224 128h64v160h-64V128zm0 256h64v-64h-64v64zm256-128c0 123.7-100.3 224-224 224S32 379.7 32 256 132.3 32 256 32s224 100.3 224 224zm-32 0c0-106-86-192-192-192S64 150 64 256s86 192 192 192 192-86 192-192z" />',viewBox:"0 0 512 512"};var K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),W=function(){return W=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},W.apply(this,arguments)},U="caret-alt-down",q="caret-alt-right",$="caret-alt-left",G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype.render=function(){return o.createElement(i.a,W({"aria-hidden":!0},this.getIcon()))},t.prototype.getIcon=function(){switch(I(this.props.itemId,!0===this.props.verticalMenu,"rtl"===this.props.dir)){case"downward":return{name:U,icon:R};case"rightward":return{name:q,icon:T};case"leftward":return{name:$,icon:D};default:return{}}},t.propTypes={itemId:H.string,dir:H.string,verticalMenu:H.bool},t}(o.Component),Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Y=function(e){function t(t){var n=e.call(this,t)||this;return n.isFirstRender=!0,n.onMouseOver=function(e){n.props.onMouseOver(n.props.item.id),e.stopPropagation()},n.onMouseLeave=function(e){n.props.onMouseLeave(n.props.item.id),e.stopPropagation()},n.state={opened:!1},n}return Z(t,e),t.prototype.componentDidMount=function(){var e=this.props.focusedItemId,t=this.props.item.id;e&&e===t&&this.itemElement.focus(),this.isFirstRender=!1},t.prototype.componentDidUpdate=function(e){var t=this.props.focusedItemId,n=this.props.item.id;if(t){var o=(0,r.v)(document);e.focusedItemId===t||t!==n||this.itemElement.contains(o)||this.itemElement.focus()}},t.prototype.render=function(){var e=this,t=this.props.item,n=t.id,r=E(this.props.menuGuid,n);return o.createElement(o.Fragment,null,o.createElement("li",{id:E(this.props.menuGuid,n),className:this.getMenuItemClassName(t),style:t.cssStyle,tabIndex:n===this.props.tabbableItemId?0:-1,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,onMouseDown:function(t){return e.props.onMouseDown(t)},onBlur:function(t){return e.props.onBlur(n,t)},onFocus:function(){return e.props.onFocus(n)},onClick:function(t){return e.props.onClick(t,n)},role:"menuitem","aria-disabled":!!t.disabled||void 0,"aria-haspopup":t.items.length>0||void 0,"aria-expanded":t.items.length>0?this.Opened:void 0,"aria-label":t.text,"aria-owns":this.Opened?r:void 0,ref:function(t){return e.itemElement=t},key:"0"},this.contentRender?this.renderContent():this.renderMenuItemLink()),this.renderPopupIfOpened())},t.prototype.renderContent=function(){var e=this.props.item.contentParentItemId;return o.createElement("div",{className:"k-content",role:"presentation"},o.createElement(this.contentRender,{item:this.props.onOriginalItemNeeded(e),itemId:e}))},t.prototype.renderMenuItemLink=function(){var e=this.props.item;if(this.linkRender)return o.createElement(this.linkRender,{item:this.props.onOriginalItemNeeded(e.id),itemId:e.id,opened:this.Opened,dir:M(this.props.isDirectionRightToLeft)});var t=this.itemRender?o.createElement(this.itemRender,{item:this.props.onOriginalItemNeeded(e.id),itemId:e.id,key:"1"}):o.createElement("span",{className:"k-menu-link-text"},e.text);return o.createElement(P,{url:e.url,opened:this.Opened},this.renderMenuIconIfApplicable(),t,this.renderArrowIfApplicable())},t.prototype.renderPopupIfOpened=function(){if(this.Opened){var e=this.props.item.id,t=function(e,t,n){var o=I(e,t,n);return n?"downward"===o?C.downward:C.leftward:"downward"===o?S.downward:S.rightward}(e,this.props.isMenuVertical,this.props.isDirectionRightToLeft),n=t.anchorAlign,r=t.popupAlign,i=t.collision;return o.createElement(s.G,{anchor:this.itemElement,show:!0,popupClass:this.getPopupClassName(),anchorAlign:n,popupAlign:r,collision:i,animate:!1,key:"1"},o.createElement(X,{parentItemId:e,items:this.props.item.items,menuGuid:this.props.menuGuid,focusedItemId:this.props.focusedItemId,lastItemIdToBeOpened:this.props.lastItemIdToBeOpened,tabbableItemId:this.props.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,isMenuVertical:this.props.isMenuVertical,isDirectionRightToLeft:this.props.isDirectionRightToLeft,className:"k-group k-menu-group k-reset k-menu-group-md",onMouseOver:this.props.onMouseOver,onMouseLeave:this.props.onMouseLeave,onMouseDown:this.props.onMouseDown,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:this.props.onClick,onOriginalItemNeeded:this.props.onOriginalItemNeeded}))}return null},t.prototype.renderMenuIconIfApplicable=function(){var e=this.props.item,t=e.icon,n=e.svgIcon;return t||n?o.createElement(i.a,{name:t,icon:n,key:"0"}):null},t.prototype.renderArrowIfApplicable=function(){return this.props.item.items.length>0?o.createElement("span",{className:"k-menu-expand-arrow","aria-hidden":!0},o.createElement(G,{itemId:this.props.item.id,verticalMenu:this.props.isMenuVertical,dir:M(this.props.isDirectionRightToLeft),key:"2"})):null},Object.defineProperty(t.prototype,"itemRender",{get:function(){return this.props.item.render||this.props.itemRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linkRender",{get:function(){return this.props.item.linkRender||this.props.linkRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentRender",{get:function(){return this.props.item.contentParentItemId?this.props.item.contentRender:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Opened",{get: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)===u))&&!this.isFirstRender},enumerable:!1,configurable:!0}),t.prototype.getPopupClassName=function(){return(0,a.A)("k-menu-popup",{"k-rtl":this.props.isDirectionRightToLeft})},t.prototype.getMenuItemClassName=function(e){return(0,a.A)("k-item","k-menu-item",{"k-first":(t=e.id,y(t)===c),"k-last":e.isLastFromSiblings,"k-disabled":e.disabled},e.cssClass);var t},t}(o.Component),J=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),X=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseOver=function(e){t.props.onMouseOver(t.props.parentItemId),e.stopPropagation()},t.onMouseLeave=function(e){t.props.onMouseLeave(t.props.parentItemId),e.stopPropagation()},t}return J(t,e),t.prototype.render=function(){var e=this.props.parentItemId;return o.createElement("ul",{className:this.props.className,role:this.props.role?this.props.role:void 0!==e?"menu":"menubar",id:void 0!==e?E(this.props.menuGuid,e):void 0,onMouseOver:void 0!==e?this.onMouseOver:void 0,onMouseLeave:void 0!==e?this.onMouseLeave:void 0,"aria-orientation":this.props["aria-orientation"]},this.renderChildItems())},t.prototype.renderChildItems=function(){var e=this;return this.props.items.length>0?this.props.items.map((function(t,n){return o.createElement(Y,{item:t,isMenuVertical:e.props.isMenuVertical,isDirectionRightToLeft:e.props.isDirectionRightToLeft,focusedItemId:e.props.focusedItemId,lastItemIdToBeOpened:e.props.lastItemIdToBeOpened,tabbableItemId:e.props.tabbableItemId,itemRender:e.props.itemRender,linkRender:e.props.linkRender,menuGuid:e.props.menuGuid,onMouseOver:e.props.onMouseOver,onMouseLeave:e.props.onMouseLeave,onMouseDown:e.props.onMouseDown,onBlur:e.props.onBlur,onFocus:e.props.onFocus,onClick:e.props.onClick,onOriginalItemNeeded:e.props.onOriginalItemNeeded,key:n})})):null},t}(o.Component),Q=n(3493),ee=n(1779),te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ne=function(e){function t(t){var n=e.call(this,t)||this;return n.draggable=null,n.onDrag=function(e,t,o){var r=e.event,i=n.props,a=i.onDrag,s=i.index,l=n.draggable&&n.draggable.element;l&&!n.isStatic&&n.isDraggable&&a(r,l,s,t,o)},n.onFocus=function(){n.setState({focused:!0})},n.onBlur=function(){n.setState({focused:!1})},n.onToggle=function(e){var t=n.props,o=t.onToggle,r=t.index,i=t.prev,a=t.next;(i.collapsible||a.collapsible)&&o(i.collapsible?r:r+1,e)},n.onPrevToggle=function(e){var t=n.props,o=t.onToggle,r=t.index;t.prev.collapsible&&o(r,e)},n.onNextToggle=function(e){var t=n.props,o=t.onToggle,r=t.index;t.next.collapsible&&o(r+1,e)},n.onKeyDown=function(e){var t=e&&e.keyCode,o=n.isHorizontal,r=n.props.index,i=n.draggable&&n.draggable.element,a=function(t,o,r){e.preventDefault(),n.props.onKeyboardResize(t,o,r,e)};i&&(t===Q.R.enter?(e.preventDefault(),n.onToggle(e)):n.isDraggable&&(o&&t===Q.R.left?a(i,r,-10):o&&t===Q.R.right?a(i,r,10):o||t!==Q.R.up?o||t!==Q.R.down||a(i,r,10):a(i,r,-10)))},n.state={focused:!1},n}return te(t,e),Object.defineProperty(t.prototype,"isStatic",{get:function(){var e=this.props,t=e.prev,n=e.next,o=t.resizable&&n.resizable,r=t.collapsible||n.collapsible;return!o&&!r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggable",{get:function(){var e=this.props,t=e.prev,n=e.next,o=t.resizable&&n.resizable,r=t.collapsed||n.collapsed;return!!o&&!r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isHorizontal",{get:function(){return"horizontal"===this.props.orientation},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this,n=this.isDraggable,r=this.isStatic,s=this.isHorizontal,l=(0,a.A)("k-splitbar",((e={})["k-focus"]=this.state.focused,e["k-splitbar-horizontal"]=s,e["k-splitbar-vertical"]=!s,e["k-splitbar-draggable-horizontal"]=s&&n,e["k-splitbar-draggable-vertical"]=!s&&n,e["k-splitbar-static-horizontal"]=s&&r,e["k-splitbar-static-vertical"]=!s&&r,e));return o.createElement(ee._,{onPress:function(e){return t.onDrag(e,!0,!1)},onDrag:function(e){return t.onDrag(e,!1,!1)},onRelease:function(e){return t.onDrag(e,!1,!0)},ref:function(e){t.draggable=e}},o.createElement("div",{tabIndex:r?-1:0,role:"separator","aria-valuenow":0,"aria-label":this.props.ariaLabel,"aria-orientation":s?"vertical":void 0,className:l,style:{touchAction:"none"},onFocus:this.onFocus,onBlur:this.onBlur,onDoubleClick:this.onToggle,onKeyDown:this.onKeyDown},this.props.prev.collapsible&&o.createElement("div",{className:"k-collapse-prev",onClick:this.onPrevToggle},o.createElement(i.a,{name:this.props.prev.collapsible?s?this.props.prev.collapsed?this.props.isRtl?"caret-alt-left":"caret-alt-right":this.props.isRtl?"caret-alt-right":"caret-alt-left":this.props.prev.collapsed?"caret-alt-down":"caret-alt-up":void 0,icon:this.props.prev.collapsible?s?this.props.prev.collapsed?this.props.isRtl?D:T:this.props.isRtl?T:D:this.props.prev.collapsed?R:V:void 0,size:"xsmall"})),o.createElement("div",{className:"k-resize-handle"}),this.props.next.collapsible&&o.createElement("div",{className:"k-collapse-next",onClick:this.onNextToggle},o.createElement(i.a,{name:this.props.next.collapsible?s?this.props.next.collapsed?this.props.isRtl?"caret-alt-right":"caret-alt-left":this.props.isRtl?"caret-alt-left":"caret-alt-right":this.props.next.collapsed?"caret-alt-up":"caret-alt-down":void 0,icon:this.props.next.collapsible?s?this.props.next.collapsed?this.props.isRtl?T:D:this.props.isRtl?D:T:this.props.next.collapsed?V:R:void 0,size:"xsmall"}))))},t}(o.Component),oe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),re=function(){return re=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},re.apply(this,arguments)},ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.itemRef=null,t.focus=function(){t.itemRef&&(t.itemRef.tabIndex=0,t.itemRef.focus())},t.blur=function(){t.itemRef&&(t.itemRef.tabIndex=-1,t.itemRef.blur())},t.onClick=function(){t.props.onSelect&&t.props.onSelect(t.props.index),t.itemRef&&(t.itemRef.tabIndex=0,t.itemRef.focus())},t}return oe(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.id,i=n.active,s=n.disabled,l=n.title,c=void 0===l?"Untitled":l,u=n.first,d=n.last,p={id:r,"aria-selected":i,"aria-controls":r,"aria-disabled":s,"aria-hidden":s,role:"tab",onClick:s?void 0:this.onClick},h=(0,a.A)("k-item",((e={})["k-first"]=u,e["k-last"]=d,e["k-disabled"]=s,e["k-active"]=i,e));return o.createElement("li",re({},p,{className:h,ref:function(e){return t.itemRef=e},onBlur:this.blur}),o.createElement("span",{className:"k-link"},c))},t.propTypes={active:H.bool,disabled:H.bool,index:H.number,onSelect:H.func,title:H.oneOfType([H.string,H.element]),first:H.bool,last:H.bool},t}(o.Component),ae=n(7037),se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),le=function(){return le=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},le.apply(this,arguments)},ce=function(e){return e.preventDefault()},ue="smooth",de="prev",pe="next",he=function(e){function t(t){var n=e.call(this,t)||this;return n.itemsNavRef=o.createRef(),n.isRtl=function(){return"rtl"===n.props.dir},n.onWheel=function(e){e.stopPropagation();var t=e.deltaY<0?de:pe;n.setNewScrollPosition(t,e)},n.arrowClickPrev=function(e){n.handleArrowClick(de,e)},n.arrowClickNext=function(e){n.handleArrowClick(pe,e)},n.handleArrowClick=function(e,t){n.setNewScrollPosition(e,t)},n.setNewScrollPosition=function(e,t){var o=n.itemsNavRef.current;if(o){var r=n.horizontalScroll(),i=r?o.scrollWidth-o.offsetWidth:o.scrollHeight-o.offsetHeight,a=("click"===t.type?n.props.buttonScrollSpeed:n.props.mouseScrollSpeed)||0,s=r?o.scrollLeft:o.scrollTop,l=r?o.scrollWidth-o.scrollLeft:o.scrollHeight-o.scrollTop,c=o.scrollWidth- -1*o.scrollLeft;n.isRtl()&&n.horizontalScroll()?(e===de&&s<0&&(s+=a,c+=a),e===pe&&s<i&&(s-=a,c-=a),s=Math.min(0,Math.min(i,s))):(e===de&&s>0&&(s-=a,l+=a),e===pe&&s<i&&(s+=a,l-=a),s=Math.max(0,Math.min(i,s)));var u=0===s,d="click"===t.type?ue:void 0;if(r){var p=n.isRtl()?Math.round(c)<=o.clientWidth||Math.floor(c)<=o.clientWidth:Math.round(l)<=o.clientWidth||Math.floor(l)<=o.clientWidth;n.setState({disabledPrev:u,disabledNext:p}),o.scrollTo({left:s,behavior:d})}else n.setState({disabledPrev:u,disabledNext:Math.round(l)<=o.clientHeight||Math.floor(l)<=o.clientHeight}),o.scrollTo({top:s,behavior:d})}},n.renderArrow=function(e,t){var r=n.horizontalScroll(),i={prev:{arrowTab:"k-tabstrip-prev",fontIcon:r?n.isRtl()?"caret-alt-right":"caret-alt-left":"caret-alt-up",svgIcon:r?n.isRtl()?T:D:V},next:{arrowTab:"k-tabstrip-next",fontIcon:r?n.isRtl()?"caret-alt-left":"caret-alt-right":"caret-alt-down",svgIcon:r?n.isRtl()?D:T:R}},a=(e===de?n.props.prevButton:n.props.nextButton)||ae.z,s=e===de?n.arrowClickPrev:n.arrowClickNext;return o.createElement(a,{disabled:t,className:"".concat(i[e].arrowTab),onClick:s,icon:i[e].fontIcon,svgIcon:i[e].svgIcon,onMouseDown:ce,tabIndex:-1,fillMode:"flat"})},n.state={disabledPrev:0===n.props.selected,disabledNext:n.props.selected===o.Children.count(n.props.children)-1},n}return se(t,e),t.prototype.componentDidMount=function(){this.props.scrollable&&this.scrollToSelected()},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.scrollable,r=t.selected;n&&e.selected!==r&&(this.scrollToSelected(),this.setState({disabledPrev:0===r,disabledNext:r===o.Children.count(this.props.children)-1}))},t.prototype.render=function(){var e,t,n=this.props,r=n.selected,i=n.tabPosition,s=n.children,l=n.onSelect,c=n.onKeyDown,u=o.Children.count(s),d=o.Children.toArray(s);s&&(e=(t=u,Array.apply(null,Array(t))).map((function(e,t,n){var i={active:r===t,disabled:d[t].props.disabled,index:t,title:d[t].props.title,first:0===t,last:t===n.length-1,onSelect:l};return o.createElement(ie,le({key:t},i))})));var p=(0,a.A)("k-tabstrip-items-wrapper",{"k-hstack":"top"===i||"bottom"===i,"k-vstack":"left"===i||"right"===i}),h=(0,a.A)("k-tabstrip-items","k-reset");return o.createElement("div",{className:p},this.props.scrollable?o.createElement(o.Fragment,null,this.renderArrow(de,this.state.disabledPrev),o.createElement("ul",{ref:this.itemsNavRef,className:h,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:c,onWheel:this.onWheel},e),this.renderArrow(pe,this.state.disabledNext)):o.createElement("ul",{className:h,role:"tablist",tabIndex:this.props.tabIndex,onKeyDown:c},e))},t.prototype.scrollToSelected=function(){var e,t,n,o,r=this.itemsNavRef.current,i=r&&r.children[this.props.selected||0];if(i instanceof HTMLElement&&r instanceof HTMLElement){var a,s=this.horizontalScroll(),l=s?r.offsetWidth:r.offsetHeight,c=s?i.offsetWidth:i.offsetHeight,u=s?"left":"top",d=s?r.scrollLeft:r.scrollTop,p=0;this.isRtl()?(d*=-1,(a=i.offsetLeft)<0?(p=a-c+r.offsetLeft,r.scrollTo(((e={})[u]=p,e.behavior=ue,e))):a+c>l-d&&(p=d+a-c,r.scrollTo(((t={})[u]=p,t.behavior=ue,t)))):d+l<(a=s?i.offsetLeft-r.offsetLeft:i.offsetTop-r.offsetTop)+c?(p=a+c-l,r.scrollTo(((n={})[u]=p,n.behavior=ue,n))):d>a&&(p=a,r.scrollTo(((o={})[u]=p,o.behavior=ue,o)))}},t.prototype.horizontalScroll=function(){return/top|bottom/.test(this.props.tabPosition||"top")},t.propTypes={children:H.oneOfType([H.element,H.arrayOf(H.element)]),onSelect:H.func,onKeyDown:H.func,selected:H.number,tabIndex:H.number},t}(o.Component),fe=n(4343),me=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ve=function(){return ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ve.apply(this,arguments)},ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return me(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children"]);return o.createElement(fe.f,ve({},{transitionName:"fade"},n),t)},t.propTypes={children:H.oneOfType([H.arrayOf(H.node),H.node]),childFactory:H.any,className:H.string,component:H.string,id:H.string,style:H.any},t.defaultProps={appear:!1,enter:!0,exit:!1,transitionEnterDuration:500,transitionExitDuration:500},t}(o.Component),ye=n(3198),be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),we=function(){return we=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},we.apply(this,arguments)},ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.contentId=(0,ye.M)(),t.childFactory=function(e){return o.cloneElement(e,we(we({},e.props),{in:e.props.children.props.id===String(t.contentId+t.props.selected)}))},t}return be(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.selected,r=t&&"number"==typeof n&&o.Children.toArray(t)[n],i=(0,a.A)("k-tabstrip-content","k-active",r&&r.props.contentClassName);return o.createElement("div",{className:i,style:this.props.style},this.renderContent(t))},t.prototype.renderContent=function(e){var t=this;return this.props.keepTabsMounted?o.Children.map(this.props.children,(function(e,n){return t.renderChild(e,n)})):this.renderChild(o.Children.toArray(e)[this.props.selected],this.props.selected)},t.prototype.renderChild=function(e,t){var n=t===this.props.selected,r={role:"tabpanel","aria-expanded":!0,"aria-labelledby":t.toString(),style:{display:n?void 0:"none"}},i={position:"initial",display:n?void 0:"none"};return e.props.disabled?null:this.props.animation?o.createElement(ge,{appear:!0,exit:this.props.keepTabsMounted,style:i,childFactory:this.props.keepTabsMounted?this.childFactory:void 0},o.createElement("div",we({},r,{id:String(this.contentId+t),key:t}),e.props.children)):o.createElement("div",we({},r,{key:t}),e.props.children)},t.propTypes={animation:H.bool,children:H.oneOfType([H.element,H.arrayOf(H.element)]),selected:H.number,style:H.object},t}(o.Component),xe=n(4006),ze=n(2080),Ce=n(8206),Se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ie=function(){return Ie=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ie.apply(this,arguments)},Me=function(e){function t(t){var n,r=e.call(this,t)||this;return r._element=null,r.showLicenseWatermark=!1,r.keyBinding=((n={})[Q.R.left]=function(){return r.prevNavigatableTab()},n[Q.R.right]=function(){return r.nextNavigatableTab()},n[Q.R.down]=function(){return r.nextNavigatableTab()},n[Q.R.up]=function(){return r.prevNavigatableTab()},n[Q.R.home]=function(){return 0},n[Q.R.end]=function(){return o.Children.count(r.props.children)-1},n),r.onSelect=function(e){r.props.selected!==e&&r.props.onSelect&&r.props.onSelect({selected:e})},r.onKeyDown=function(e){var t;switch(e.keyCode){case Q.R.left:t=r.keyBinding[r.invertKeys(Q.R.left,Q.R.right)];break;case Q.R.right:t=r.keyBinding[r.invertKeys(Q.R.right,Q.R.left)];break;case Q.R.up:t=r.keyBinding[Q.R.up];break;case Q.R.down:t=r.keyBinding[Q.R.down];break;case Q.R.home:t=r.keyBinding[Q.R.home];break;case Q.R.end:t=r.keyBinding[Q.R.end]}t&&(e.preventDefault(),r.onSelect(t()))},r.renderContent=function(e){var t=e.selected,n=e.children,r=e.tabContentStyle;return t<o.Children.count(n)&&t>-1?o.createElement(ke,Ie({index:t},e,{style:r})):null},r.firstNavigatableTab=function(){var e=r.children(),t=o.Children.count(e);if(e)for(var n=0;n<t;n++)if(!e[n].props.disabled)return n},r.lastNavigatableTab=function(){var e=r.children(),t=o.Children.count(e);if(e)for(var n=t-1;n>0;n--)if(!e[n].props.disabled)return n},r.prevNavigatableTab=function(){var e=r.children(),t=r.props.selected,n=t?t-1:-1;if(n<0)return r.lastNavigatableTab();if(e)for(var o=n;o>-1;o--){if(!e[o].props.disabled)return o;if(0===o)return r.lastNavigatableTab()}},r.nextNavigatableTab=function(){var e=r.children(),t=r.props.selected,n=t?t+1:1,i=o.Children.count(e);if(n>=i)return r.firstNavigatableTab();if(e)for(var a=n;a<i;a++){if(!e[a].props.disabled)return a;if(a+1===i)return r.firstNavigatableTab()}},(0,xe.s)(Ce.k),r.showLicenseWatermark=(0,xe.G)(Ce.k),r}return Se(t,e),t.prototype.render=function(){var e=this,t=Ie(Ie({},this.props),{children:this.children(),onKeyDown:this.onKeyDown,onSelect:this.onSelect}),n=t.tabPosition,r=t.tabIndex,i=void 0===r?0:r,s="bottom"===n,l=(0,a.A)("k-tabstrip k-pos-relative",{"k-tabstrip-left":"left"===n,"k-tabstrip-right":"right"===n,"k-tabstrip-bottom":"bottom"===n,"k-tabstrip-top":"top"===n,"k-tabstrip-scrollable":this.props.scrollable},this.props.className);return o.createElement("div",{id:this.props.id,ref:function(t){return e._element=t},dir:this.props.dir,className:l,style:this.props.style},!s&&o.createElement(he,Ie({},t,{tabIndex:i})),this.renderContent(t),s&&o.createElement(he,Ie({},t,{tabIndex:i})),this.showLicenseWatermark&&o.createElement(ze.t,null))},t.prototype.invertKeys=function(e,t){return this._element&&"rtl"===getComputedStyle(this._element).direction?t:e},t.prototype.children=function(){return o.Children.toArray(this.props.children).filter((function(e){return e}))},t.propTypes={animation:H.bool,children:H.node,onSelect:H.func,selected:H.number,style:H.object,tabContentStyle:H.object,tabPosition:H.string,tabIndex:H.number,className:H.string,dir:H.string},t.defaultProps={animation:!0,tabPosition:"top",keepTabsMounted:!1,buttonScrollSpeed:100,mouseScrollSpeed:10},t}(o.Component),Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.render=function(){return null},t.propTypes={disabled:H.bool,contentClassName:H.string,children:H.oneOfType([H.element,H.node]),title:H.oneOfType([H.string,H.element,H.node])},t}(o.Component),He=n(3218),Ne=n(8686),Pe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ve=function(){return Ve=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ve.apply(this,arguments)},Te=function(e){function t(t){var n=e.call(this,t)||this;return n.handleItemClick=function(){var e=n.props,t=e.onSelect,o=e.disabled,r=e.id;t&&!o&&t.call(void 0,{uniquePrivateKey:n.props.uniquePrivateKey,id:r,target:n})},n.childFactory=function(e){return n.props.keepItemsMounted?o.cloneElement(e,Ve(Ve({},e.props),{in:n.props.expanded})):e},n.state={show:t.expanded||!1},n}return Pe(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.id,r=t.children,s=t.title,l=t.uniquePrivateKey,c=t.disabled,u=t.selected,d=t.focused,p=t.expanded,h=t.className,f=t.level,m=t.headerClassName,v=t.animation,g=t.keepItemsMounted,y={role:"treeitem","aria-disabled":c,"aria-hidden":!c&&!p,"aria-selected":!c&&u,"aria-expanded":!c&&p&&!!r},b=(0,a.A)("k-panelbar-item",{"k-panelbar-header":0===f,"k-expanded":p&&!!r,"k-disabled":c},"k-level-".concat(f),h),w=(0,a.A)("k-link",{"k-selected":!c&&u,"k-focus":!c&&d},m),k=function(e){var t=e.imageUrl,n=e.icon,r=e.svgIcon,a=e.iconClass;return t?o.createElement("img",{role:"presentation",className:"k-panelbar-item-icon k-image",src:t}):n||r?o.createElement(i.a,{className:"k-panelbar-item-icon",name:n,icon:r}):a?o.createElement("span",{role:"presentation",className:"k-panelbar-item-icon "+a}):null}(this.props),x=!c&&r?o.createElement(i.a,{name:p?"chevron-up":"chevron-down",icon:p?B:L,className:(0,a.A)("k-panelbar-toggle",p?"k-panelbar-collapse":"k-panelbar-expand")}):null,z=!c&&p||g?o.createElement("ul",{role:"group","aria-expanded":p,"aria-hidden":!p,className:"k-panelbar-group k-panel k-group",style:{display:g?this.state.show?"block":"none":"block"}},r):null,C=void 0!==v&&!v||c||!r?z:o.createElement(Ne.U,{transitionEnterDuration:200,transitionExitDuration:200,key:l+"_animation",style:{display:"block"},children:z,childFactory:g&&this.childFactory,unmountOnExit:!g,onBeforeEnter:function(){return g&&e.setState({show:!0})},onAfterExited:function(){return g&&e.setState({show:!1})}});return o.createElement("li",Ve({id:n,className:b},y),o.createElement("span",{className:w,onClick:this.handleItemClick},k,o.createElement("span",{className:"k-panelbar-item-text"},s),x),C)},t.propTypes={animation:H.bool,children:H.any,className:H.string,icon:H.string,iconClass:H.string,imageUrl:H.string,svgIcon:He.wi,expanded:H.bool,disabled:H.bool,onSelect:H.func,selected:H.bool,level:H.number,title:H.oneOfType([H.string,H.element]),id:H.oneOfType([H.string,H.number]),focused:H.bool,keepItemsMounted:H.bool},t.defaultProps={title:"Untitled"},t}(o.PureComponent),Re=function(){return Re=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Re.apply(this,arguments)},De=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Be=function(e){var t=e.animation,n=void 0===t||t,r=e.keepItemsMounted,i=void 0!==r&&r,a=e.state,s=e.expanded,l=e.handleSelect,c=e.children,u=e.parentExpanded,d=void 0===u||u,p=e.level,h=void 0===p?0:p,f=e.parentPrivateKey,m=void 0===f?[]:f;return o.Children.map(c,(function(e,t){if(e&&e.type===Te){var r=void 0,c=_e(e,m,t);if(e.props.children){var u={animation:n,keepItemsMounted:i,state:a,expanded:s,handleSelect:l,children:e.props.children,parentExpanded:(s||[]).indexOf(c)>-1,level:h+1,parentPrivateKey:De(De([],m,!0),[c],!1)};r=Be(u)}return o.cloneElement(e,Re(Re({},e.props),{animation:void 0!==e.props.animation?e.props.animation:n,keepItemsMounted:i,id:e.props.id||"k-panelbar-item-default-".concat(c),uniquePrivateKey:c,parentUniquePrivateKey:m,parentExpanded:d,level:h,expanded:(s||[]).indexOf(c)>-1,focused:a.focused===c&&a.wrapperFocused,selected:a.selected===c,children:r,onSelect:l}))}return o.createElement("div",{className:"k-panelbar-content k-content"},e)}))},Ae=function(e){var t=o.Children.toArray(e.children)[0];return t?_e(t,[],0):""},Le=function(e,t,n,r,i){return void 0===n&&(n={expanded:e.expanded||[],selected:e.selected||"",focused:e.focused||"",wrapperFocused:!1}),void 0===r&&(r=!0),void 0===i&&(i=[]),o.Children.map(e.children,(function(e,o){if(e&&e.type===Te){var a=_e(e,i,o);!e.props.disabled&&r&&(e.props.selected&&(n.selected=a),e.props.focused&&(n.focused=a),e.props.expanded&&("multiple"===t?n.expanded.push(a):"single"===t&&(n.expanded=[a])),e.props.children&&(n=Le(e.props,t,n,!!e.props.expanded,De(De([],i,!0),[a],!1))))}})),n},_e=function(e,t,n){return e&&e.props&&e.props.id?e.props.id:t.length?t[t.length-1]+".".concat(n):".".concat(n)};function Fe(e,t){return void 0===t&&(t=[]),(e||[]).forEach((function(e){e.disabled||(t.push(e),e.expanded&&e.children&&Fe(e.children,t))})),t}function je(e,t){return void 0===t&&(t=[]),o.Children.forEach(e,(function(e){e&&e.props&&!e.props.disabled&&(t.push(e),e.props.children&&je(e.props.children,t))})),t}function Ke(e,t){return void 0===t&&(t=[]),o.Children.forEach(e,(function(e){e&&e.props&&!e.props.disabled&&(e.props.expanded||e.props.parentExpanded)&&(t.push(e),e.props.children&&Ke(e.props.children,t))})),t}var We,Ue=function(e){return null!=e};!function(e){e.mapItemsToComponents=function e(t){return t.map((function(t,n){var r;return t.content&&(r=t.content),t.children&&(r=e(t.children)),o.createElement(Te,Re({},t,{children:r,key:t.id||n}))}))}}(We||(We={}));var qe,$e=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"}(qe||(qe={}));var Ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ze=function(){return Ze=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Ze.apply(this,arguments)},Ye=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},Je=function(e){function t(t){var n=e.call(this,t)||this;n._element=null,n.showLicenseWatermark=!1,n.handleSelect=function(e){n.onSelect(e),n.onFocus(e)},n.onSelect=function(e){var t,r;switch(je(o.Children.toArray(n.children)).forEach((function(o){o.props.uniquePrivateKey===(e.uniquePrivateKey||n.state.focused)&&(t=o)})),n.expandMode){case"single":r=Ye(Ye([],t.props.parentUniquePrivateKey,!0),[t.props.uniquePrivateKey],!1),$e(n.expandedItems,r)&&(r=t.props.parentUniquePrivateKey?Ye([],t.props.parentUniquePrivateKey,!0):[]);break;case"multiple":var i=(r=n.expandedItems.slice()).indexOf(t.props.uniquePrivateKey);-1===i?r.push(t.props.uniquePrivateKey):r.splice(i,1);break;default:r=n.expandedItems.slice()}n.setState({selected:t.props.uniquePrivateKey,expanded:r}),n.props.onSelect&&n.props.onSelect.call(void 0,{target:t,expandedItems:r})},n.onFocus=function(e,t){void 0===t&&(t=0);var r,i=Ke(o.Children.toArray(n.children));i.forEach((function(o,a){if(o.props.uniquePrivateKey===(e.uniquePrivateKey||n.state.focused)){var s=a+t<0?0:a+t>i.length?i.length-1:a+t;r=i[s]}})),r&&(n.activeDescendant=r.props.id,n.setState({focused:r.props.uniquePrivateKey}))},n.onNavigate=function(e,t){var o;switch(t){case qe.Previous:o=-1,n.onFocus(e,o);break;case qe.Next:o=1,n.onFocus(e,o);break;case qe.Toggle:n.onSelect(e)}},n.handleWrapperFocus=function(){clearTimeout(n.nextTickId),n.state.wrapperFocused||n.setState({wrapperFocused:!0})},n.handleWrapperBlur=function(){n.nextTick((function(){n.setState({wrapperFocused:!1})}))},n.handleKeyDown=function(e){var t=n._element&&"rtl"===getComputedStyle(n._element).direction||!1;if(e.target===e.currentTarget){var o=void 0;switch(e.keyCode){case Q.R.left:o=t?qe.Next:qe.Previous;break;case Q.R.up:o=qe.Previous;break;case Q.R.right:o=t?qe.Previous:qe.Next;break;case Q.R.down:o=qe.Next;break;case Q.R.space:case Q.R.enter:o=qe.Toggle;break;default:o=null}null!==o&&(e.preventDefault(),n.onNavigate(e,o))}},(0,xe.s)(Ce.k),n.showLicenseWatermark=(0,xe.G)(Ce.k);var r=Le(t,n.expandMode);return r.focused||(r.focused=Ae(t)),n.state=r,n}return Ge(t,e),Object.defineProperty(t.prototype,"expandMode",{get:function(){return this.props.expandMode||"multiple"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){var e=this.props.selected;return void 0===e?this.state.selected:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expandedItems",{get:function(){return this.props.isControlled?this.props.expanded||[]:this.state.expanded},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){var e=Ze(Ze({},this.state),{selected:this.selectedItem}),t={animation:this.props.animation,keepItemsMounted:this.props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect,children:this.props.children};return Be(t)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t={"aria-activedescendant":this.activeDescendant},n=(0,a.A)("k-panelbar","k-pos-relative",this.props.className);return o.createElement("ul",Ze({ref:function(t){e._element=t},dir:this.props.dir,role:"tree",tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,className:n,style:this.props.style},t),this.children,this.showLicenseWatermark&&o.createElement(ze.t,null))},t.prototype.nextTick=function(e){this.nextTickId=window.setTimeout((function(){return e()}))},t.propTypes={animation:H.bool,children:function(e,t){var n=e[t];if(n){if(Array.isArray(n))for(var o=0,r=n;o<r.length;o++){var i=r[o];if(!i.type||i.type!==Te)return new Error("PanelBar children should be either PanelBarItem or Array of PanelBarItem.")}else if(n.type!==Te)return new Error("PanelBar child should be either PanelBarItem or Array of PanelBarItem.");return null}return null},dir:H.string,selected:H.string,expanded:H.arrayOf(H.string),focused:H.string,expandMode:H.oneOf(["single","multiple"]),className:H.string,keepItemsMounted:H.bool,onSelect:H.func,style:H.object},t.defaultProps={expandMode:"multiple",animation:!0,keepItemsMounted:!1},t}(o.Component),Xe=n(5407),Qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qe(t,e),t.prototype.render=function(){return null},t.propTypes={text:H.string,url:H.string,icon:H.string,disabled:H.bool,cssClass:H.string,cssStyle:H.object,render:H.any,linkRender:H.any,contentRender:H.any,data:H.any},t}(o.Component);function tt(e,t){if(e&&e.length>0)return{items:it(e),inputItems:e};if(ot(t).length>0){var n=rt(ot(t));return{items:it(n),inputItems:n}}return{items:[],inputItems:[]}}function nt(e,t){var n={},o=e||t.props,r=o.text,i=o.url,a=o.icon,s=o.svgIcon,l=o.disabled,c=o.cssClass,u=o.cssStyle,d=o.render,p=o.linkRender,h=o.contentRender,f=o.data;return void 0!==r&&(n.text=r),void 0!==i&&(n.url=i),void 0!==a&&(n.icon=a),void 0!==s&&(n.svgIcon=s),void 0!==l&&(n.disabled=l),void 0!==c&&(n.cssClass=c),void 0!==u&&(n.cssStyle=u),void 0!==d&&(n.render=d),void 0!==p&&(n.linkRender=p),void 0!==h&&(n.contentRender=h),void 0!==f&&(n.data=f),n}function ot(e){return o.Children.toArray(e).filter((function(e){return e&&e.type===et}))}function rt(e){for(var t=[],n=0;n<e.length;n++){var o=e[n],r=nt(void 0,o),i=rt(ot(o.props.children));i.length>0&&(r.items=i),t.push(r)}return t}function it(e,t){for(var n=[],o=0;o<e.length;o++){var r=e[o],i=nt(r);i.id=f(o.toString(),t),i.isLastFromSiblings=o===e.length-1,i.items=at(r,i),n.push(i)}return n}function at(e,t){return e.contentRender?[{contentParentItemId:t.id,id:f(c,t.id),isLastFromSiblings:!0,contentRender:e.contentRender,items:[]}]:e.items?it(e.items,t.id):[]}var st=/\S/;function lt(e,t,n,o,r,i){var a,s=z();switch(n){case Q.R.left:return r?i?w():c():i?v():l();case Q.R.right:return r?i?c():w():i?l():v();case Q.R.up:return r?S():g(t)?x():S();case Q.R.down:return r?I():g(t)?k():I();case Q.R.enter:case Q.R.space:return s.disabled?t:C()?h(t):p(t);case Q.R.home:return M()[0].id;case Q.R.end:return(a=M())[a.length-1].id;case Q.R.esc:return g(t)?t:m(t);default:return 1===o.length&&st.test(o)?function(){var e=o.toLowerCase(),n=M(),r=Number(y(t)),i=n.slice(r+1).concat(n.slice(0,r+1)).find((function(t){return(t.text||"").toLowerCase().startsWith(e)}));return i?i.id:t}():t}function l(){return g(t)?S():1===function(e){return e.split(u).length-1}(t)?k(S(p(t))):m(t)}function c(){return g(t)?x():m(t)}function v(){return g(t)?I():k(C()?t:I(p(t)))}function w(){return k(g(t)||C()?t:I(p(t)))}function k(e){return E(!0,e)}function x(e){return E(!1,e)}function z(n,o){return void 0===n&&(n=t),void 0===o&&(o=e),d(n,o)}function C(e){return z(e).items.length>0}function S(e){return O(!1,e)}function I(e){return O(!0,e)}function M(){return g(t)?e:z(m(t),e).items}function E(e,n){void 0===n&&(n=t);var o=z(n);return C(n)&&!o.disabled?e?h(n):function(e){var t=z(e).items;return t[t.length-1].id}(n):n}function O(n,o){if(void 0===o&&(o=t),g(o))return b(n,o,e.length);var r=m(o);return f(b(n,y(o),z(r).items.length),r)}}var ct,ut,dt,pt,ht,ft=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}(),mt=function(){function e(e,t,n){this.openOnClick=e,this.resetMenu=t,this.openItem=n,this.mouseDown=!1,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}(),vt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gt={focusedItemId:l,hoveredItemId:l,tabbableItemId:c},yt=function(e){function t(t){var n=e.call(this,t)||this;return n.menuWrapperEl=null,n.guid=(0,ye.M)(),n.directionHolder=new ft,n.inputItems=[],n.items=[],n.reset=function(){n.clearItemHoverAndLeaveRequestsIfApplicable(),n.setState(gt)},n.onKeyDown=function(e){if(n.state.focusedItemId!==l){var t=d(n.state.focusedItemId,n.items),o=lt(n.items,t.id,e.keyCode,e.key,n.props.vertical,n.directionHolder.getIsDirectionRightToLeft());t.id!==o&&(e.preventDefault(),n.setFocusedItemId(o)),e.keyCode!==Q.R.enter&&e.keyCode!==Q.R.space||t.disabled||(n.mouseOverHandler.handleItemSelectedViaKeyboard(),n.dispatchSelectEventIfWired(e,t.id),!e.isDefaultPrevented()&&0===t.items.length&&t.url&&window.location.assign(t.url))}e.keyCode===Q.R.esc&&n.props.onClose&&n.props.onClose.call(void 0,e)},n.onItemMouseOver=function(e){n.mouseOverHandler.IsMouseOverEnabled&&(n.clearItemHoverAndLeaveRequestsIfApplicable(),n.itemHoverRequest=window.setTimeout((function(){n.setHoveredItemId(e),n.itemHoverRequest=null}),function(e){return void 0!==e.hoverOpenDelay?e.hoverOpenDelay:e.openOnClick?0:100}(n.props)))},n.onItemMouseLeave=function(e){n.mouseOverHandler.IsMouseOverEnabled&&n.isItemWithDefaultClose(e)&&(n.clearItemHoverAndLeaveRequestsIfApplicable(),n.itemLeaveRequest=window.setTimeout((function(){n.setHoveredItemId(l),n.itemLeaveRequest=null}),function(e){return void 0!==e.hoverCloseDelay?e.hoverCloseDelay:100}(n.props)))},n.onItemMouseDown=function(){n.mouseOverHandler.handleItemMouseDown()},n.onItemFocus=function(e){n.setFocusedItemId(e),n.mouseOverHandler.handleItemFocus()},n.onItemClick=function(e,t){var o=d(t,n.items);o.disabled||(n.setFocusedItemId(t),n.mouseOverHandler.handleItemClick(t,n.isItemWithDefaultClose(t)),n.dispatchSelectEventIfWired(e,t),!e.isDefaultPrevented()&&o.url&&window.location.assign(o.url))},n.onItemBlur=function(e,t){if(n.isItemWithDefaultClose(e)&&n.setFocusedItemId(l),t.relatedTarget&&"LI"===t.relatedTarget.nodeName){var o=t.relatedTarget.getAttribute("id");if(o&&o.includes(n.guid))return}n.props.onClose&&n.props.onClose.call(void 0,t)},n.getInputItem=function(e){return d(e,n.inputItems)},(0,xe.s)(Ce.k),n.mouseOverHandler=new mt(n.props.openOnClick,n.reset,n.onItemMouseOver),n.state=Object.assign({},gt,{isFirstRender:!0}),n}return vt(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.menuWrapperEl},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;this.prepareItems(),this.state.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());var t=this.state.hoveredItemId?this.state.hoveredItemId:this.state.focusedItemId?m(this.state.focusedItemId):l;return o.createElement("div",{onKeyDown:this.onKeyDown,style:this.props.style,className:this.directionHolder.getIsDirectionRightToLeft()?"k-rtl":void 0,ref:function(t){return e.menuWrapperEl=t}},o.createElement(X,{className:this.getMenuClassName(),"aria-orientation":this.props.vertical?"vertical":void 0,items:this.items,isMenuVertical:this.props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.state.focusedItemId,lastItemIdToBeOpened:t,tabbableItemId:this.state.tabbableItemId,itemRender:this.props.itemRender,linkRender:this.props.linkRender,menuGuid:this.guid,onMouseLeave:this.onItemMouseLeave,onMouseOver:this.onItemMouseOver,onMouseDown:this.onItemMouseDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,onOriginalItemNeeded:this.getInputItem,role:this.props.role}))},t.prototype.componentDidMount=function(){this.setState({isFirstRender:!1})},t.prototype.componentDidUpdate=function(e){(Boolean(e.vertical)!==Boolean(this.props.vertical)||this.directionHolder.hasDirectionChanged())&&this.reset(),this.mouseOverHandler.OpenOnClick=this.props.openOnClick},t.prototype.componentWillUnmount=function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},t.prototype.setFocusedItemId=function(e){this.setState((function(t){var n=e===l?t.tabbableItemId:p(e);return{hoveredItemId:e===l||v(t.hoveredItemId)&&v(e)?t.hoveredItemId:l,focusedItemId:e,tabbableItemId:n}}))},t.prototype.setHoveredItemId=function(e){this.setState((function(t){return v(e)&&v(t.focusedItemId)?{hoveredItemId:e,focusedItemId:t.focusedItemId,tabbableItemId:t.tabbableItemId}:{hoveredItemId:e,focusedItemId:l,tabbableItemId:c}}))},t.prototype.getMenuClassName=function(){return(0,a.A)("k-reset","k-header","k-menu",{"k-menu-horizontal":!this.props.vertical},{"k-menu-vertical":this.props.vertical},this.props.className)},t.prototype.clearItemHoverAndLeaveRequestsIfApplicable=function(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)},t.prototype.isItemWithDefaultClose=function(e){return!this.props.customCloseItemIds||-1===this.props.customCloseItemIds.indexOf(e)},t.prototype.checkIsDirectionRightToLeft=function(){return Boolean(void 0!==this.props.dir?"rtl"===this.props.dir:this.menuWrapperEl&&"rtl"===getComputedStyle(this.menuWrapperEl).direction)},t.prototype.prepareItems=function(){var e=tt(this.props.items,this.props.children),t=e.items,n=e.inputItems;this.items=t,this.inputItems=n},t.prototype.dispatchSelectEventIfWired=function(e,t){(0,Xe.N)(this.props.onSelect,e,this,{item:this.getInputItem(t),itemId:t})},t.propTypes={vertical:H.bool,items:H.arrayOf(H.object),style:H.object,dir:H.string,hoverOpenDelay:H.number,hoverCloseDelay:H.number,openOnClick:H.bool,itemRender:H.any,linkRender:H.any,customCloseItemIds:H.arrayOf(H.string),onSelect:H.func,role:H.string},t.defaultProps={vertical:!1},t}(o.Component),bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bt(t,e),t.prototype.render=function(){var e,t=this.props,n=t.id,r=t.size,i=t.collapsed,s=t.overlay,l=t.containsSplitter,c=t.collapsible,u=t.resizable,d=t.scrollable,p=t.keepMounted,h=r&&r.length>0,f={flexBasis:r},m=(0,a.A)("k-pane",((e={})["k-hidden"]=i,e.hidden=i,e["k-pane-flex"]=l,e["k-pane-static"]=!u&&!c||h,e["k-scrollable"]=d,e));return o.createElement("div",{id:n,role:"group",style:f,className:m},!i||p?this.props.children:void 0,s?o.createElement("div",{className:"k-splitter-overlay k-overlay"}):void 0)},t}(o.Component),kt="splitBarLabel",xt=((ct={})[kt]="split bar",ct),zt=n(499),Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),St=function(){return St=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},St.apply(this,arguments)},It={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},Mt=function(e){function t(t){var n=e.call(this,t)||this;return n._container=null,n.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.")},n.mapPaneOptions=function(e,t){for(var r=n.orientation,i=n.state,a=i.dragIndex,s=i.isDragging,l=[],c=0;c<t.length;c++){var u=!1,d=t[c];o.isValidElement(d)&&(u="Splitter"===d.type.displayName);var p=!1;s&&void 0!==a&&(p=a===c||a+1===c),l.push(St(St(St({},It),{orientation:r,containsSplitter:u,overlay:p}),(e||[])[c]))}return l},n.mapSplitterPanes=function(e,t){var r=(0,zt.provideLocalizationService)(n).toLanguageString(kt,xt[kt]);return e.map((function(i,a){var s,l=2*a,c=l+1;if(a+1<e.length){var u=e[a+1];s=o.createElement(ne,{key:c,index:a,orientation:i.orientation,prev:i,next:u,ariaLabel:r,onDrag:n.onBarDragResize,onToggle:n.onBarToggle,onKeyboardResize:n.onBarKeyboardResize,isRtl:n.isRtl})}return[o.createElement(wt,St({key:l},i),t[a]),s]}))},n.onBarToggle=function(e,t){var o=n.panesOptions(n.panesContent).map((function(t,o){var r=n.getPaneProps(t);return o===e?St(St({},r),{collapsed:!t.collapsed}):St({},r)}));n.props.onChange&&n.props.onChange({newState:o,isLast:!0,nativeEvent:t})},n.onBarDragResize=function(e,t,o,r,i){var a=(new Date).getTime(),s=e.pageX,l=e.pageY,c=n.surroudingPanes(t),u=c.prevElement,d=c.nextElement;if(u&&d)if(r)n.setState({isDragging:!0,dragIndex:o,startTime:a,originalX:s,originalY:l,originalPrevSize:n.elementSize(u),originalNextSize:n.elementSize(d)});else{var p,h=n.state,f=h.originalPrevSize,m=h.originalNextSize,v=h.startTime,g=h.originalX,y=h.originalY;!r&&a-v<150||(p="vertical"===n.orientation?l-y:n.isRtl?g-s:s-g,n.resize(o,o+1,f,m,p,i,e)),i&&n.resetDragState()}},n.onBarKeyboardResize=function(e,t,o,r){var i=n.surroudingPanes(e),a=i.prevElement,s=i.nextElement,l=n.elementSize(a),c=n.elementSize(s);n.resize(t,t+1,l,c,o,!0,r)},n.containerSize=function(){return n._container?n.elementSize(n._container,!0):0},n.panesOptions=function(e){return n.mapPaneOptions(n.panes,e)},n.elementSize=function(e,t){var o=t?"client":"offset";return"vertical"===n.orientation?e["".concat(o,"Height")]:e["".concat(o,"Width")]},n.clamp=function(e,t,n){return Math.min(t,Math.max(e,n))},n.fixedSize=function(e){return e&&e.length>0},(0,xe.s)(Ce.k),n.state={isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,panes:t.defaultPanes||[]},n}return Ct(t,e),Object.defineProperty(t.prototype,"isControlledState",{get:function(){return void 0!==this.props.panes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panes",{get:function(){return void 0!==this.panesDuringOnChange?this.panesDuringOnChange:this.isControlledState?this.props.panes:this.state.panes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.props.orientation||"horizontal"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRtl",{get:function(){return this._container&&"rtl"===getComputedStyle(this._container).direction||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panesContent",{get:function(){return o.Children.toArray(this.props.children).filter((function(e){return e}))},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this,t=this.panesContent,n=this.panesOptions(t),r=(0,a.A)("k-widget","k-splitter","k-splitter-flex","k-splitter-".concat(this.orientation),this.props.className);return this.validatePanes(n),o.createElement("div",{style:this.props.style,ref:function(t){return e._container=t},className:r},this.mapSplitterPanes(n,t))},t.prototype.surroudingPanes=function(e){return{prevElement:e.previousElementSibling,nextElement:e.nextElementSibling}},t.prototype.isPercent=function(e){return/%$/.test(e)},t.prototype.toPixels=function(e,t){var n=parseInt(e,10);return this.isPercent(e)&&(n=t*n/100),n},t.prototype.resetDragState=function(){this.setState({isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0})},t.prototype.resize=function(e,t,n,o,r,i,a){var s,l,c=this,u=this.panesOptions(this.panesContent),d=u[e],p=u[t],h=n+o,f=this.containerSize(),m=function(e){return c.toPixels(e,f)},v={index:e,initialSize:n,min:m(d.min)||h-m(p.max)||0,max:m(d.max)||h-m(p.min)||h},g={index:t,initialSize:o,min:m(p.min)||h-m(d.max)||0,max:m(p.max)||h-m(d.min)||h},y=function(e,t){var n=u[e.index],o=c.clamp(e.min,e.max,e.initialSize+t);return c.isPercent(n.size||"")?100*o/f+"%":o+"px"};this.fixedSize(d.size)&&this.fixedSize(p.size)?(s=y(v,r),l=y(g,-r)):p.collapsible||this.fixedSize(p.size)?l=y(g,-r):s=y(v,r);var b=u.map((function(n,o){var r=c.getPaneProps(n);return o===e?St(St({},r),{size:s}):o===t?St(St({},r),{size:l}):St({},r)}));this.panesDuringOnChange=b,this.isControlledState||this.setState({panes:b}),this.props.onChange&&this.props.onChange({newState:b,isLast:i,nativeEvent:a}),this.panesDuringOnChange=void 0},t.prototype.getPaneProps=function(e){return e.orientation,e.overlay,e.containsSplitter,function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["orientation","overlay","containsSplitter"])},t.displayName="Splitter",t}(o.Component);!function(e){e.TEXT="text",e.IMAGE="image",e.ICON="icon"}(ut||(ut={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(dt||(dt={})),function(e){e.DEFAULT="default",e.primary="primary",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(pt||(pt={})),function(e){e.START="start",e.CENTER="center",e.END="end",e.STRETCHED="stretched"}(ht||(ht={}));var Et=function(){return Et=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Et.apply(this,arguments)},Ot=o.forwardRef((function(e,t){var n;(0,xe.s)(Ce.k);var r=e.children,i=e.dir,s=e.style,l=e.className,c=e.type,u=e.orientation,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","dir","style","className","type","orientation"]),p=o.useRef(null),h=o.useRef(null);return o.useImperativeHandle(p,(function(){return{element:h.current,props:e}})),o.useImperativeHandle(t,(function(){return p.current})),o.createElement("div",Et({dir:i,style:s,ref:h,className:(0,a.A)("k-card",l,(n={},n["k-card-".concat(c)]=c!==pt.DEFAULT,n),u!==dt.HORIZONTAL?"k-card-vertical":"k-card-horizontal")},d),r)}));Ot.displayName="KendoReactCard",Ot.propTypes={children:H.node,className:H.string,dir:H.string,orientation:H.oneOf(["horizontal","vertical"]),style:H.object,type:H.oneOf(["default","primary","info","success","warning","error"])},Ot.defaultProps={type:pt.DEFAULT,orientation:dt.VERTICAL};var Ht=function(e){return o.createElement("div",{style:e.style,className:(0,a.A)("k-card-header",e.className)},e.children)};Ht.propTypes={className:H.string};var Nt=function(e){return o.createElement("div",{style:e.style,className:(0,a.A)("k-card-title",e.className)},e.children)};Nt.propTypes={className:H.string};var Pt=function(e){return o.createElement("div",{style:e.style,className:(0,a.A)("k-card-body",e.className)},e.children)};Pt.propTypes={className:H.string};var Vt=function(){return Vt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Vt.apply(this,arguments)},Tt=function(e){var t=Vt({layout:ht.START,orientation:dt.HORIZONTAL},e);return o.createElement("div",{style:t.style,className:(0,a.A)("k-card-actions",t.className,"k-card-actions-".concat(t.layout),t.orientation!==dt.VERTICAL?"k-card-actions-horizontal":"k-card-actions-vertical")},t.children)};Tt.propTypes={layout:H.oneOf(["stretched","start","center","end"]),orientation:H.oneOf(["horizontal","vertical"])};var Rt=function(){return Rt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Rt.apply(this,arguments)},Dt=function(e){var t=Rt({src:""},e);return o.createElement("img",{style:t.style,className:(0,a.A)("k-card-image",t.className),src:t.src,alt:t.alt})};Dt.propTypes={className:H.string,src:H.string};var Bt=function(e){return o.createElement("div",{style:e.style,className:(0,a.A)("k-card-subtitle",e.className)},e.children)};Bt.propTypes={className:H.string};var At=function(e){return o.createElement("div",{style:e.style,className:(0,a.A)("k-card-footer",e.className)},e.children)};At.propTypes={className:H.string};var Lt=n(2697),_t=function(){return _t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},_t.apply(this,arguments)},Ft=function(e){var t,n=_t({type:ut.TEXT,size:"medium",rounded:"full",fillMode:"solid",themeColor:"primary"},e);return(0,xe.s)(Ce.k),o.createElement("div",{style:n.style,className:(0,a.A)("k-avatar",(t={},t["k-avatar-bordered"]=n.border,t["k-rounded-".concat(Lt.G.roundedMap[n.rounded]||n.rounded)]=n.rounded,t["k-avatar-".concat(Lt.G.sizeMap[n.size]||n.size)]=n.size,t["k-avatar-".concat(n.fillMode)]=n.fillMode,t["k-avatar-".concat(n.fillMode,"-").concat(n.themeColor)]=Boolean(n.fillMode&&n.themeColor),t),n.className)},o.createElement("span",{className:"k-avatar-".concat(n.type)},n.children))};Ft.propTypes={className:H.string,type:H.oneOf(["text","image","icon"]),size:H.oneOf([null,"small","medium","large"]),rounded:H.oneOf([null,"small","medium","large","full"]),fillMode:H.oneOf([null,"solid","outline"]),themeColor:H.oneOf([null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"])};var jt=o.createContext({animation:!0,expanded:!1,mode:"overlay",position:"start",mini:!1,dir:"ltr",width:240,miniWidth:50}),Kt=n(4703),Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Wt.apply(this,arguments)},Ut=o.forwardRef((function(e,t){var n=e.className,r=e.style,s=e.text,l=e.icon,c=e.svgIcon,u=e.separator,d=e.disabled,p=e.selected,h=e.onSelect,f=e.index,m=e.tabIndex,v=e.children,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","style","text","icon","svgIcon","separator","disabled","selected","onSelect","index","tabIndex","children"]),y=o.useContext(jt),b=y.expanded,w=y.mini,k=y.item,x=o.useRef(null),z=o.useCallback((function(){x.current&&x.current.focus()}),[]);o.useImperativeHandle(t,(function(){return{element:x.current,focus:z,props:e}}));var C=(0,a.A)("k-drawer-item",{"k-selected":p,"k-disabled":d},n),S=o.useCallback((function(t){if(h&&!d){var n={element:x.current,focus:z,props:e};h(n,f,t)}}),[h,f,d]),I=o.createElement(o.Fragment,null,(l||c)&&o.createElement(i.a,{name:l?(0,He.iJ)(l):l,icon:c}),!b&&w?null:o.createElement("span",{className:"k-item-text"},s));return u?o.createElement("li",{className:"k-drawer-item k-drawer-separator",role:"separator"}):o.createElement("li",Wt({ref:x,className:C,style:r,role:"menuitem","aria-label":s,"aria-disabled":d,onClick:S,tabIndex:(0,Kt.p)(m,d)},g),k?v:I)}));Ut.propTypes={className:H.string,style:H.object,text:H.string,icon:H.string,svgIcon:He.wi,separator:H.bool,selected:H.bool,disabled:H.bool,targetItem:H.any},Ut.displayName="KendoDrawerItem";var qt=function(){return qt=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},qt.apply(this,arguments)},$t={type:"slide",duration:200},Gt={type:"slide",duration:0},Zt=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.style;(0,xe.s)(Ce.k);var s=(0,xe.G)(Ce.k),l=o.useContext(jt),c=l.animation,u=l.expanded,d=l.mode,p=l.position,h=l.onOverlayClick,f=l.mini,m=l.dir,v=l.width,g=l.miniWidth,y=l.items,b=l.item,w=l.onSelect,k=o.useRef(null),x=o.useCallback((function(){k.current&&k.current.focus()}),[]),z="boolean"!=typeof c?c:!1===c?Gt:$t,C=v||240,S=g||50;o.useImperativeHandle(t,(function(){return{element:k.current,focus:x}}));var I=o.useMemo((function(){return"k-widget k-drawer "+(0,a.A)({"k-drawer-start":"start"===p,"k-drawer-end":"end"===p},r)}),[p]),M={opacity:1,flexBasis:C,WebkitTransition:"all "+(z&&z.duration)+"ms",transition:"all "+(z&&z.duration)+"ms"},E={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(z&&z.duration)+"ms",transition:"all "+(z&&z.duration)+"ms"},O={opacity:f?1:0,flexBasis:f?S:0,WebkitTransition:"all "+(z&&z.duration)+"ms",transition:"all "+(z&&z.duration)+"ms"},H={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(z&&z.duration)+"ms",transition:"all "+(z&&z.duration)+"ms"},N={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(z&&z.duration)+"ms",transition:"all "+(z&&z.duration)+"ms"},P={transform:"translateX(0%)",WebkitTransitionDuration:(z&&z.duration)+"ms",transitionDuration:(z&&z.duration)+"ms"},V=u?"push"===d?M:E:"push"===d?O:"ltr"===m&&"start"===p||"rtl"===m&&"end"===p?f?P:H:f?P:N,T=y&&o.createElement("ul",{className:"k-drawer-items",role:"menubar","aria-label":"drawer-list","aria-expanded":u},y.map((function(e,t){var n=qt(qt({index:t},e),{onSelect:w}),r=b||Ut;return o.createElement(r,qt({key:t},n))}))),R=o.createElement("div",{style:z?qt(qt({},V),i):i,className:I,ref:k},o.createElement("div",{className:"k-drawer-wrapper",style:!u&&f&&"overlay"===d?{width:S}:{width:C}},T||n),s&&o.createElement(ze.t,null));return"overlay"===d?o.createElement(o.Fragment,null,u&&o.createElement("div",{className:"k-overlay",onClick:h}),R):R}));Zt.propTypes={children:H.any,className:H.string,style:H.object,item:H.any,tabIndex:H.number},Zt.displayName="KendoDrawerNavigation";var Yt=n(8199),Jt=o.forwardRef((function(e,t){(0,xe.s)(Ce.k);var n=e.expanded,r=e.mode,i=e.position,s=e.className,l=e.children,c=e.style,u=e.animation,d=e.mini,p=e.width,h=e.miniWidth,f=e.items,m=e.item,v=e.tabIndex,g=e.onOverlayClick,y=e.onSelect,b=o.useRef(null),w=o.useCallback((function(){b.current&&b.current.focus()}),[]);o.useImperativeHandle(t,(function(){return{element:b.current,focus:w}}));var k=o.useCallback((function(e,t,n){if(f&&y){var o={itemTarget:e,itemIndex:t,syntheticEvent:n,nativeEvent:n&&n.nativeEvent,target:void 0};y.call(void 0,o)}}),[f,y]),x=(0,Yt.n)(b,e.dir),z=(0,a.A)({"k-drawer-container":!0,"k-drawer-expanded":n,"k-drawer-overlay":"overlay"===r,"k-drawer-push":"push"===r,"k-drawer-mini":d},s);return o.createElement(jt.Provider,{value:{animation:u,expanded:n,mode:r,position:i,mini:d,dir:x,items:f,item:m,width:p,miniWidth:h,onOverlayClick:g,onSelect:k}},o.createElement("div",{className:z,ref:b,dir:x,style:c,tabIndex:v},f&&o.createElement(Zt,null),l))}));Jt.propTypes={animation:H.any,expanded:H.bool,children:H.any,className:H.string,dir:H.string,mode:H.string,position:H.string,mini:H.bool,style:H.object,tabIndex:H.number,width:H.number,miniWidth:H.number,selected:H.number,onSelect:H.func,onOverlayClick:H.func},Jt.defaultProps={animation:!0,expanded:!1,mode:"overlay",position:"start",mini:!1,dir:"ltr",width:240,miniWidth:50},Jt.displayName="KendoDrawer";var Xt=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.style,s=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:s.current}}));var l=(0,a.A)({"k-drawer-content":!0},r);return o.createElement("div",{className:l,style:i,ref:s},n)}));Xt.propTypes={children:H.any,className:H.string,style:H.object},Xt.displayName="KendoDrawerContent";var Qt,en=o.createContext({linear:!1,mode:"steps",value:0}),tn=n(9124),nn=n(1573),on="stepper.optionalText",rn="stepper.progBarAriaLabel",an=((Qt={})[on]="(Optional)",Qt[rn]="progressbar",Qt),sn=function(){return sn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},sn.apply(this,arguments)},ln=o.forwardRef((function(e,t){var n=e.children,r=e.className,s=e.current,l=e.disabled,c=e.focused,u=e.icon,d=e.svgIcon,p=e.index,h=e.isValid,f=e.label,m=e.optional,v=e.style,g=e.tabIndex,y=e.text,b=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","current","disabled","focused","icon","svgIcon","index","isValid","label","optional","style","tabIndex","text"]),w=o.useContext(en),k=w.animationDuration,x=w.isVertical,z=w.item,C=w.linear,S=w.mode,I=w.numOfSteps,M=w.value,E=w.onChange,O=w.onFocus,H=w.successIcon,N=w.errorIcon,P=w.successSVGIcon,V=w.errorSVGIcon,T=o.useRef(null),R=o.useCallback((function(){T.current&&(0,tn.n)(T.current)}),[]),D=o.useCallback((function(){return{element:T.current,focus:R}}),[R]);o.useImperativeHandle(t,D);var B,A=!C||p===M-1||p===M||p===M+1,L="labels"===S||Boolean(u)&&Boolean(f),_=(0,zt.useLocalization)(),K=(B=on,_.toLanguageString(B,an[B])),W="number"==typeof k?k:!1!==k?400:0,U=o.useCallback((function(e){E&&!l&&(0,Xe.N)(E,e,D(),{value:p})}),[E,M,l]),q=o.useCallback((function(e){O&&!l&&(0,Xe.N)(O,e,D(),void 0)}),[O,l]),$=o.useMemo((function(){return(0,a.A)("k-step",{"k-step-first":0===p,"k-step-last":I&&p===I-1,"k-step-done":p<M,"k-step-current":s,"k-step-optional":m,"k-step-error":void 0!==h&&!h,"k-step-success":h},{"k-disabled":l,"k-focus":c},r)}),[p,I,M,s,m,l,c,h,r]),G=o.useMemo((function(){return sn({maxWidth:x?void 0:"calc(100% / ".concat(I,")"),maxHeight:x?"calc(100% / ".concat(I,")"):void 0,pointerEvents:A?void 0:"none"},v)}),[x,I,v,A]),Z=h?H:N,Y=Z?o.createElement("span",{className:"k-step-indicator-icon "+Z,"aria-hidden":"true"}):o.createElement(i.a,{className:"k-step-indicator-icon",name:h?"check-circle":"exclamation-circle",icon:h?P||F:V||j}),J=o.createElement(o.Fragment,null,"labels"!==S?o.createElement("span",{className:"k-step-indicator","aria-hidden":!0,style:{transitionDuration:W+"ms"}},u||d?L||void 0===h?o.createElement(i.a,{className:"k-step-indicator-icon",name:u?(0,He.iJ)(u):u,icon:d}):Y:void 0!==h?Y:o.createElement("span",{className:"k-step-indicator-text"},y||p+1)):null),X=o.createElement("span",{className:"k-step-label"},f&&o.createElement("span",{className:"k-step-text"},f),L&&void 0!==h&&Y,m&&o.createElement("span",{className:"k-step-label-optional"},K)),Q=o.createElement(o.Fragment,null,J,X);return o.createElement("li",sn({ref:T,className:$,style:G},b),o.createElement("a",{className:"k-step-link",title:f||void 0,onClick:U,onFocus:q,tabIndex:g||(c?0:-1),"aria-current":s,"aria-disabled":l||!A||void 0,"aria-invalid":void 0!==h&&!h||void 0},z?n:Q))}));ln.propTypes={children:H.any,className:H.string,current:H.bool,disabled:H.bool,icon:H.string,index:H.number,isValid:H.bool,label:H.string,optional:H.bool,style:H.object,tabIndex:H.number,text:H.string},ln.defaultProps={tabIndex:0},ln.displayName="KendoStep";var cn=function(e,t,n){var o=Math.abs((t-e)/100);return Math.abs((n-e)/o)},un=function(e,t,n,o){var r=Math.max(n,.01),i=100/r*100;e.current&&t.current&&(e.current.style.width=o?"100%":"".concat(r,"%"),t.current.style.width=o?"100%":"".concat(i,"%"),e.current.style.height=o?"".concat(r,"%"):"100%",t.current.style.height=o?"".concat(i,"%"):"100%")},dn={name:"@progress/kendo-react-progressbars",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700059862,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},pn=function(){return pn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},pn.apply(this,arguments)},hn=o.forwardRef((function(e,t){(0,xe.s)(dn);var n=e.animation,r=e.disabled,i=e.reverse,s=void 0===i?fn.reverse:i,l=e.orientation,c=e.labelVisible,u=e.labelPlacement,d=e.max,p=void 0===d?fn.max:d,h=e.min,f=void 0===h?fn.min:h,m=e.tabIndex,v=e.className,g=e.style,y=e.emptyStyle,b=e.emptyClassName,w=e.progressStyle,k=e.progressClassName,x=o.useRef(null),z=o.useRef(null),C=o.useRef(null),S=o.useCallback((function(){x.current&&x.current.focus()}),[]);o.useImperativeHandle(t,(function(){return{element:x.current,progressStatusElement:z.current,progressStatusWrapElement:C.current,focus:S}}));var I,M,E,O,H,N=e.value||fn.value,P=function(e){var t=o.useRef();return o.useEffect((function(){t.current=e})),t.current}(N),V=null===e.value,T=(0,nn.V)(x,e.dir),R="vertical"===l,D=function(e){var t=e.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,3))}(N),B={value:N},A=c?e.label?o.createElement("span",{className:"k-progress-status"},o.createElement(e.label,pn({},B))):o.createElement("span",{className:"k-progress-status"},D):void 0,L={className:(0,a.A)("k-progressbar",{"k-progressbar-horizontal":!R,"k-progressbar-vertical":R,"k-progressbar-reverse":s,"k-progressbar-indeterminate":V,"k-disabled":r},v),ref:x,dir:T,tabIndex:(0,Kt.p)(m,r),role:"progressbar","aria-label":e.ariaLabel,"aria-valuemin":f,"aria-valuemax":p,"aria-valuenow":V?void 0:N,"aria-disabled":r,style:g},_=(0,a.A)("k-progress-status-wrap",{"k-progress-start":"start"===u,"k-progress-center":"center"===u,"k-progress-end":"end"===u||void 0===u}),F="boolean"!=typeof n&&void 0!==n?n.duration:n?400:0,j=o.useCallback((function(){var e=cn(f,p,P);un(z,C,e,R)}),[R,p,f,P]),K=o.useCallback((function(e){var t=cn(f,p,P+(N-P)*e);un(z,C,t,R)}),[f,p,P,N,R]),W=o.useCallback((function(){var e=cn(f,p,N);un(z,C,e,R)}),[R,p,f,N]);return I={duration:F,onStart:j,onUpdate:K,onEnd:W},M=[N,F],E=o.useRef(0),O=o.useRef(!1),H=o.useRef(),o.useEffect((function(){return function(e){var t,n=e.duration,o=E.current&&1-E.current;e.onStart&&e.onStart();var r=function(i){t||(t=i);var a=(i-t+1)/n+o;a<=1?(e.onUpdate&&e.onUpdate(a),H.current=window.requestAnimationFrame(r),E.current=a):(e.onEnd&&e.onEnd(1),E.current=0)};H.current=window.requestAnimationFrame(r)}(I),function(){H.current&&window.cancelAnimationFrame(H.current)}}),M),o.useEffect((function(){O.current=!0}),[]),o.createElement("div",pn({},L),o.createElement("span",{className:_+(b?" "+b:""),style:y},A),o.createElement("div",{className:"k-progressbar-value k-selected",style:w,ref:z},o.createElement("span",{className:_+(k?" "+k:""),ref:C},A)))}));hn.propTypes={animation:H.any,ariaLabel:H.string,disabled:H.bool,reverse:H.bool,label:H.any,labelVisible:H.bool,labelPlacement:H.oneOf(["start","center","end"]),max:H.number,min:H.number,value:H.number,tabIndex:H.number,emptyStyle:H.object,emptyClassName:H.string,progressStyle:H.object,progressClassName:H.string};var fn={animation:!1,min:0,max:100,value:0,disabled:!1,reverse:!1,labelVisible:!0};hn.defaultProps=fn,hn.displayName="KendoProgressBar";var mn=function(){return mn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},mn.apply(this,arguments)},vn=o.forwardRef((function(e,t){(0,xe.s)(Ce.k);var n=e.animationDuration,r=e.children,i=e.className,s=e.disabled,l=e.errorIcon,c=e.errorSVGIcon,u=e.item,d=e.items,p=e.linear,h=e.mode,f=e.orientation,m=e.style,v=e.successIcon,g=e.successSVGIcon,y=e.onChange,b=e.onFocus,w=(0,zt.useLocalization)().toLanguageString(rn,an[rn]),k=o.useRef(null),x=o.useCallback((function(){k.current&&(0,tn.n)(k.current)}),[]),z=o.useCallback((function(){return{element:k.current,focus:x}}),[x]);o.useImperativeHandle(t,z);var C=e.value||gn.value,S=o.useState(C),I=S[0],M=S[1],E=d?d.length:0,O="vertical"===f,H=(0,nn.V)(k,e.dir),N="number"==typeof n?n:!1!==n?400:0;o.useEffect((function(){M(C)}),[C]);var P=o.useCallback((function(e,t){C!==t&&y&&!s&&(!p||t===C-1||t===C||t===C+1)&&((0,Xe.N)(y,e,z(),{value:t}),M(t))}),[C,p,y,s,M]),V=o.useCallback((function(e){var t=e.value,n=e.syntheticEvent;P(n,t)}),[P]),T=o.useCallback((function(e){b&&!s&&(0,Xe.N)(b,e.syntheticEvent,z(),void 0)}),[b,s]),R=o.useCallback((function(e){P(e,I)}),[P,I]),D=o.useCallback((function(e){var t="rtl"===H,n=I,o=d.length-1;switch(e.keyCode){case Q.R.left:e.preventDefault(),!t&&n>0&&M(n-1),t&&n<o&&M(n+1);break;case Q.R.right:e.preventDefault(),!t&&n<o&&M(n+1),t&&n>0&&M(n-1);break;case Q.R.up:e.preventDefault(),!t&&n>0&&M(n-1),t&&n>0&&M(n-1);break;case Q.R.down:e.preventDefault(),!t&&n<o&&M(n+1),t&&n<o&&M(n+1);break;case Q.R.home:e.preventDefault(),M(0);break;case Q.R.end:e.preventDefault(),M(o);break;case Q.R.space:e.preventDefault();break;case Q.R.enter:e.preventDefault(),d[n].disabled||R(e)}}),[d,M,I,H,R]),B=o.useMemo((function(){return(0,a.A)("k-stepper",{"k-stepper-linear":p},i)}),[p,i]),A=o.useMemo((function(){return mn({display:"grid",gridTemplateColumns:O?void 0:"repeat("+2*E+", 1fr)",gridTemplateRows:O?"repeat("+E+", 1fr)":void 0},m)}),[O,E,m]),L=o.useMemo((function(){return(0,a.A)("k-step-list",{"k-step-list-horizontal":!O,"k-step-list-vertical":O})}),[O]),_=o.useMemo((function(){return{gridColumnStart:O?void 0:1,gridColumnEnd:O?void 0:-1,gridRowStart:O?1:void 0,gridRowEnd:O?-1:void 0}}),[O]),F=o.useMemo((function(){return{gridColumnStart:O?void 0:2,gridColumnEnd:O?void 0:2*E,gridRowStart:O?1:void 0,gridRowEnd:O?E:void 0,top:O?17:void 0}}),[O,E]),j=d&&d.map((function(e,t){var n=mn({index:t,disabled:s||e.disabled,focused:t===I,current:t===C},e),r=u||ln;return o.createElement(r,mn({key:t},n))}));return o.createElement(en.Provider,{value:{animationDuration:n,isVertical:O,item:u,linear:p,mode:h,numOfSteps:E,value:C,successIcon:v,successSVGIcon:g,errorIcon:l,errorSVGIcon:c,onChange:V,onFocus:T}},o.createElement("nav",{className:B,style:A,dir:H,onKeyDown:D},o.createElement("ol",{className:L,style:_},j||r),o.createElement(hn,{style:F,animation:{duration:N},ariaLabel:w,"aria-hidden":!0,max:E-1,labelVisible:!1,orientation:f,reverse:"vertical"===f,value:C,disabled:s,tabIndex:-1})))}));vn.propTypes={animationDuration:H.oneOfType([H.bool,H.number]),children:H.any,className:H.string,dir:H.string,disabled:H.bool,errorIcon:H.string,errorSVGIcon:He.wi,item:H.any,items:H.any,linear:H.bool,mode:H.oneOf(["steps","labels"]),orientation:H.oneOf(["horizontal","vertical"]),style:H.object,successIcon:H.string,successSVGIcon:He.wi,value:H.number.isRequired,onChange:H.func,onFocus:H.func};var gn={value:0};vn.defaultProps=gn,vn.displayName="KendoStepper";var yn=o.forwardRef((function(e,t){(0,xe.s)(Ce.k);var n=e.children,r=e.className,i=e.style,s=e.id,l=o.useRef(null),c=o.useCallback((function(){l.current&&(0,tn.n)(l.current)}),[]),u=o.useCallback((function(){return{element:l.current,focus:c}}),[c]);o.useImperativeHandle(t,u);var d=o.useMemo((function(){return(0,ye.M)()}),[]),p=o.useMemo((function(){return e.themeColor||bn.themeColor}),[e.themeColor]),h=o.useMemo((function(){return e.position||bn.position}),[e.position]),f=o.useMemo((function(){return e.positionMode||bn.positionMode}),[e.positionMode]),m=o.useMemo((function(){return(0,a.A)("k-appbar",{"k-appbar-top":"top"===h,"k-appbar-bottom":"bottom"===h,"k-appbar-static":"static"===f,"k-appbar-sticky":"sticky"===f,"k-appbar-fixed":"fixed"===f,"k-appbar-light":"light"===p,"k-appbar-dark":"dark"===p,"k-appbar-inherit":"inherit"===p},r)}),[h,f,p,r]);return o.createElement("div",{className:m,style:i,id:s||d},n)}));yn.propTypes={children:H.any,className:H.string,style:H.object,id:H.string,themeColor:H.string,position:H.oneOf(["top","bottom"]),positionMode:H.oneOf(["static","sticky","fixed"])};var bn={themeColor:"light",position:"top",positionMode:"static"};yn.displayName="KendoAppBar";var wn=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.style,s=o.useRef(null),l=o.useCallback((function(){s.current&&(0,tn.n)(s.current)}),[]),c=o.useCallback((function(){return{element:s.current,focus:l}}),[l]);o.useImperativeHandle(t,c);var u=o.useMemo((function(){return(0,a.A)("k-appbar-section",r)}),[r]);return o.createElement("div",{className:u,style:i},n)}));wn.propTypes={children:H.any,className:H.string,style:H.object},wn.displayName="KendoAppBarSection";var kn=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.style,s=o.useRef(null),l=o.useCallback((function(){s.current&&(0,tn.n)(s.current)}),[]),c=o.useCallback((function(){return{element:s.current,focus:l}}),[l]);o.useImperativeHandle(t,c);var u=o.useMemo((function(){return(0,a.A)("k-appbar-spacer",{"k-appbar-spacer-sized":i&&i.width&&null!==i.width},r)}),[r,i]),d=o.useMemo((function(){return{flexBasis:i&&i.width?i.width:void 0}}),[i]);return o.createElement("span",{className:u,style:d},n)}));kn.propTypes={children:H.any,className:H.string,style:H.object},kn.displayName="KendoAppBarSpacer";var xn=n(9659),zn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Cn.apply(this,arguments)},Sn=function(e){return o.createElement(ee._,{onPress:e.onPress,onDrag:function(t){e.onResize(t.event,!1,e.d)},onRelease:function(t){e.onResize(t.event,!0,e.d)}},o.createElement("div",{className:"k-resize-handle k-cursor-"+e.d+"-resize",style:Cn({bottom:0,right:0},e.style)}))},In=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleResize=function(e,n,o){e.originalEvent.preventDefault(),t.props.onResize(e,{end:n,direction:o})},t}return zn(t,e),t.prototype.render=function(){var e=this.props,t=e.resizable,n=e.onPress,r=e.rtl;return t?o.createElement(o.Fragment,null,"vertical"!==t&&o.createElement(Sn,{onPress:n,onResize:this.handleResize,d:"ew",style:r?{top:0,width:9,left:0,right:""}:{top:0,width:9,right:0,left:""}}),"horizontal"!==t&&o.createElement(Sn,{onPress:n,onResize:this.handleResize,d:"ns",style:{left:0,height:9}}),!0===t&&o.createElement(Sn,{onPress:n,onResize:this.handleResize,d:r?"nesw":"nwse",style:r?{width:9,height:9,right:"",left:0}:{width:9,height:9,right:0,left:""}})):null},t}(o.Component),Mn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),En=function(){return En=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},En.apply(this,arguments)},On=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={rtl:!1},t.oldSize={},t.draggable=null,t.dragging=!1,t.resizing=!1,t.element=null,t.hintElement=null,t.ignoreDrag=!1,t.pressOffset={x:0,y:0},t.pressXY={x:0,y:0},t.currentTranslate={x:0,y:0},t.preventDataOps=void 0,t.handleResize=function(e,n){if(n.end)t.handleRelease();else if(t.element&&t.hintElement){var o=e.clientX,r=e.clientY;t.resizing=!0;var i=("ns"!==n.direction?o-t.pressXY.x:0)*(t.state.rtl?-1:1),a="ew"!==n.direction?r-t.pressXY.y:0;if(t.dragElement&&(t.state.rtl?t.dragElement.style.marginLeft=-i+"px":t.dragElement.style.marginRight=-i+"px",t.dragElement.style.height="calc(100% + ".concat(a,"px)")),t.hintElement.classList.add("k-layout-item-hint-resize"),!t.preventDataOps){var s=0,l=0,c=t.element.getBoundingClientRect();i>c.width/t.props.defaultPosition.colSpan/3&&(s=1),i<-c.width/t.props.defaultPosition.colSpan/1.25&&(s=-1),a>c.height/t.props.defaultPosition.rowSpan/3&&(l=1),a<-c.height/t.props.defaultPosition.rowSpan/1.25&&(l=-1),0===s&&0===l||t.props.update(t.props.index,0,0,l,s)}}},t.handlePress=function(e){if(t.dragElement)if(t.pressXY={x:e.event.clientX,y:e.event.clientY},t.ignoreDrag=!1,t.props.ignoreDrag&&t.props.ignoreDrag(e.event.originalEvent))t.ignoreDrag=!0;else{t.element&&t.hintElement&&(t.element.style.zIndex="10",t.hintElement.style.display="block"),t.dragElement.classList.remove("k-cursor-grab"),t.dragElement.classList.add("k-cursor-grabbing");var n=t.dragElement.getBoundingClientRect();t.pressOffset={x:e.event.clientX-n.x,y:e.event.clientY-n.y}}},t.handleDrag=function(e){if(!t.ignoreDrag){var n=t.dragElement;if(!e.event.originalEvent.defaultPrevented&&n){t.dragging=!0,e.event.originalEvent.preventDefault();var o=n.getBoundingClientRect();if(t.currentTranslate={x:e.event.clientX-o.x-t.pressOffset.x+t.currentTranslate.x,y:e.event.clientY-o.y-t.pressOffset.y+t.currentTranslate.y},n.style.transform="translate(".concat(t.currentTranslate.x,"px, ").concat(t.currentTranslate.y,"px)"),n.style.transition="transform 0s",!t.preventDataOps){var r=0,i=0;t.currentTranslate.y>.7*o.height/t.props.defaultPosition.rowSpan&&(i=1),t.currentTranslate.y<.7*-o.height/t.props.defaultPosition.rowSpan&&(i=-1),t.currentTranslate.x>.7*o.width/t.props.defaultPosition.colSpan&&(r=1),t.currentTranslate.x<.7*-o.width/t.props.defaultPosition.colSpan&&(r=-1),t.props.update(t.props.index,i,t.state.rtl?-r:r,0,0)}}}},t.handleRelease=function(){t.dragging=t.resizing=!1,t.currentTranslate={x:0,y:0},t.element&&t.hintElement&&(t.element.style.zIndex="1",t.hintElement.classList.remove("k-layout-item-hint-resize"),t.hintElement.style.display="none");var e=t.dragElement;e&&(e.style.transform="translate(0px, 0px)",e.style.transition="transform ".concat(200,"ms cubic-bezier(0.2, 0, 0, 1) 0s"),e.style.marginRight="0px",e.style.marginLeft="0px",e.style.height="100%",e.classList.remove("k-cursor-grabbing"),e.classList.add("k-cursor-grab"))},t}return Mn(t,e),Object.defineProperty(t.prototype,"reorderable",{get:function(){return void 0!==this.props.reorderable?this.props.reorderable:t.defaultProps.reorderable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragElement",{get:function(){return this.draggable?this.draggable.element:void 0},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.element&&("rtl"===getComputedStyle(this.element).direction&&this.setState({rtl:!0}),this.hintElement&&(this.hintElement.style.height=this.element.offsetHeight+"px",this.hintElement.style.width=this.element.offsetWidth+"px"))},t.prototype.render=function(){var e=this;clearTimeout&&"function"==typeof clearTimeout&&(clearTimeout(this.preventDataOps),this.preventDataOps=window.setTimeout((function(){e.preventDataOps=void 0}),200));var n=this.props.defaultPosition,r=void 0!==this.props.resizable?this.props.resizable:t.defaultProps.resizable,i=En({gridColumnStart:n.col,gridColumnEnd:"span ".concat(n.colSpan),gridRowStart:n.row,gridRowEnd:"span ".concat(n.rowSpan),outline:"none",order:n.order,display:"none"},this.props.hintStyle),s={gridColumnStart:n.col,gridColumnEnd:"span ".concat(n.colSpan),gridRowStart:n.row,gridRowEnd:"span ".concat(n.rowSpan),order:n.order},l=o.createElement("div",{ref:function(t){e.draggable=t?{element:t}:null},className:(0,a.A)("k-tilelayout-item k-card",{"k-cursor-grab":this.reorderable},this.props.className),style:En(En({height:"100%"},s),this.props.style)},this.props.children,o.createElement(In,{onPress:this.handlePress,onResize:this.handleResize,resizable:r,rtl:this.state.rtl}));return o.createElement("div",{ref:function(t){e.element=t},style:s},o.createElement("div",{ref:function(t){e.hintElement=t},style:En({position:"absolute"},i),className:(0,a.A)("k-layout-item-hint",this.props.hintClassName)}),o.createElement(ee._,{ref:function(t){e.draggable=t},onDrag:this.props.reorderable?this.handleDrag:void 0,onRelease:this.props.reorderable?this.handleRelease:void 0,onPress:this.props.reorderable?this.handlePress:void 0},l))},t.prototype.getSnapshotBeforeUpdate=function(e){return this.oldSize={},this.dragElement&&(this.oldSize=this.dragElement.getBoundingClientRect()),null},t.prototype.componentDidUpdate=function(e){var t=this,n=this.dragElement;if(n){var o=n.getBoundingClientRect(),r=this.oldSize;if(this.resizing){var i=o.width-r.width;if(this.state.rtl){var a=parseFloat(n.style.marginLeft||"0");n.style.marginLeft=a-i+"px"}else a=parseFloat(n.style.marginRight||"0"),n.style.marginRight=a+i+"px";this.pressXY.x+=this.state.rtl?-i:i;var s=o.height-r.height,l=parseFloat(n.style.height.substring(12));n.style.height="calc(100% + ".concat(l+s,"px)"),this.pressXY.y+=s}var c=r.left-o.left,u=r.top-o.top;0===c&&0===u||(this.dragging?e.defaultPosition.order===this.props.defaultPosition.order&&e.defaultPosition.col===this.props.defaultPosition.col||(this.currentTranslate.x=0,this.currentTranslate.y=0,n.style.transform=""):Math.abs(u)<15&&Math.abs(c)<15||requestAnimationFrame((function(){var e=t.element;e&&(e.style.transform="translate(".concat(c,"px, ").concat(u,"px)"),e.style.transition="transform 0s",requestAnimationFrame((function(){e.style.transform="",e.style.transition="transform ".concat(200,"ms cubic-bezier(0.2, 0, 0, 1) 0s")})))})))}},t.propTypes={defaultPosition:H.object.isRequired,style:H.object,className:H.string,hintStyle:H.object,hintClassName:H.string,header:H.any,body:H.any,item:H.any,resizable:H.oneOf(["horizontal","vertical",!0,!1]),reorderable:H.bool},t.displayName="KendoTileLayoutItem",t.defaultProps={resizable:!0,reorderable:!0},t}(o.Component),Hn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nn=function(){return Nn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Nn.apply(this,arguments)},Pn={column:"k-grid-flow-col",row:"k-grid-flow-row","column dense":"k-grid-flow-col-dense","row dense":"k-grid-flow-row-dense",unset:"k-grid-flow-unset"},Vn=function(e){function t(t){var n=e.call(this,t)||this;return n._element=null,n.state={positions:(n.props.items||[]).map((function(e,t){return Object.assign({order:t,rowSpan:1,colSpan:1},e.defaultPosition)}))},n.showLicenseWatermark=!1,n.focus=function(){n._element&&n._element.focus()},n.update=function(e,t,o,r,i){if(void 0===r&&(r=0),void 0===i&&(i=0),0!==t||0!==o||i||r){var a=!1,s=n.state.positions.map((function(e){return Object.assign({},e)})),l=s[e],c=s.find((function(e){return e.order===l.order+t}));c&&c!==l&&(l.order+=t,c.order+=-t,a=!0);var u=l.col+o;0!==o&&u>=1&&u+l.colSpan<=(n.props.columns||3)+1&&(l.col=u,a=!0);var d=l.colSpan+i;i&&d>=1&&d+l.col<=(n.props.columns||3)+1&&(l.colSpan=d,a=!0);var p=l.rowSpan+r;r&&p>=1&&(l.rowSpan=p,a=!0),a&&(n.setState({positions:s}),(0,Xe.N)(n.props.onReposition,{},n,{value:s}))}},(0,xe.s)(Ce.k),n.showLicenseWatermark=(0,xe.G)(Ce.k),n}return Hn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){return e.positions?{positions:e.positions.map((function(e,t){return Object.assign({order:t,rowSpan:1,colSpan:1},e)}))}:!e.items||t.positions&&e.items.length===t.positions.length?null:{positions:e.items.map((function(e,t){return Object.assign({order:t,rowSpan:1,colSpan:1},e.defaultPosition)}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.columns,i=void 0===r?3:r,s=t.columnWidth,l=void 0===s?"1fr":s,c=t.gap,u=t.rowHeight,d=void 0===u?"1fr":u,p=t.style,h=t.autoFlow,f=void 0===h?"column":h,m=t.items,v=void 0===m?[]:m,g=c?"".concat("number"==typeof c.rows?c.rows+"px":c.rows)+" "+"".concat("number"==typeof c.columns?c.columns+"px":c.columns):16,y=Nn({gridTemplateColumns:"repeat(".concat(i,", minmax(0px, ").concat("number"==typeof l?l+"px":l,"))"),gridAutoRows:"minmax(0px, ".concat("number"==typeof d?d+"px":d,")"),gap:g,padding:g},p);return o.createElement("div",{ref:function(t){e._element=t},dir:this.props.dir,className:(0,a.A)("k-tilelayout k-pos-relative",Pn[f],n),style:y,id:this.props.id,children:v.map((function(t,n){return o.createElement(o.Fragment,{key:e.props.dataItemKey?(0,xn.Y)(e.props.dataItemKey)(t):n},o.createElement(On,{update:e.update,defaultPosition:e.state.positions[n],index:n,resizable:t.resizable,reorderable:t.reorderable,style:t.style,className:t.className,hintClassName:t.hintClassName,hintStyle:t.hintStyle,ignoreDrag:e.props.ignoreDrag},t.item?t.item:o.createElement(o.Fragment,null,o.createElement("div",{className:"k-tilelayout-item-header k-card-header"},o.isValidElement(t.header)?t.header:o.createElement("h5",{className:"k-card-title"},t.header)),o.createElement("div",{className:"k-tilelayout-item-body k-card-body"},t.body))),e.showLicenseWatermark&&o.createElement(ze.t,null))}))})},t.propTypes={id:H.string,style:H.object,className:H.string,dir:H.string,gap:H.object,columns:H.number,columnWidth:H.oneOfType([H.number,H.string]),rowHeight:H.oneOfType([H.number,H.string]),dataItemKey:H.string,items:H.array,positions:H.array,autoFlow:H.oneOf(["column","row","column dense","row dense","unset"]),onReposition:H.func,ignoreDrag:H.func},t.displayName="KendoTileLayout",t}(o.Component),Tn={vertical:"k-bottom-nav-item-flow-vertical",horizontal:"k-bottom-nav-item-flow-horizontal"},Rn={fixed:"k-pos-fixed",sticky:"k-pos-sticky"},Dn=o.forwardRef((function(e,t){(0,xe.s)(Ce.k);var n=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:n.current}}));var r=e.className,s=e.style,l=e.selected,c=e.disabled,u=e.item,d=e.render,p=e.dataItem,h=e.icon,f=e.svgIcon,m=e.text,v=e.id,g=e.onSelect,y=e.onKeyDown,b=e.index,w=e.tabIndex,k=o.useMemo((function(){return(0,a.A)("k-bottom-nav-item",{"k-selected":l,"k-disabled":c},r)}),[l,c,r]),x=o.useCallback((function(e){g&&void 0!==b&&!c&&g(e,b)}),[g,b,c]),z=o.useCallback((function(e){y&&void 0!==b&&!c&&y(e,b)}),[y,b,c]),C=d,S=u,I=o.createElement("span",{ref:n,className:k,style:s,role:"link",id:v,tabIndex:w,onClick:x,onKeyDown:z,"aria-current":l,"aria-disabled":c},S?o.createElement(S,{itemIndex:b,item:p}):o.createElement(o.Fragment,null,(h||f)&&o.createElement(i.a,{className:"k-bottom-nav-item-icon",name:h,icon:f,size:"xlarge"}),m&&o.createElement("span",{className:"k-bottom-nav-item-text",style:{userSelect:"none"}},m)));return void 0!==C?C.call(void 0,I,e):I}));Dn.propTypes={className:H.string,style:H.object,id:H.string,disabled:H.bool,selected:H.bool,icon:H.string,svgIcon:He.wi,text:H.string,tabIndex:H.number},Dn.defaultProps={tabIndex:0},Dn.displayName="KendoReactBottomNavigationItem";var Bn=function(){return Bn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Bn.apply(this,arguments)},An=o.forwardRef((function(e,t){(0,xe.s)(Ce.k);var n=o.useRef(null),r=o.useCallback((function(){n.current&&(0,tn.n)(n.current)}),[]),i=o.useCallback((function(){return{element:n.current,focus:r}}),[r]);o.useImperativeHandle(t,i);var s=e.positionMode,l=void 0===s?Ln.positionMode:s,c=e.itemFlow,u=void 0===c?Ln.itemFlow:c,d=e.border,p=void 0===d?Ln.border:d,h=e.className,f=e.items,m=e.item,v=e.itemRender,g=e.disabled,y=e.style,b=e.id,w=e.onSelect,k=e.onKeyDown,x=o.useMemo((function(){return(0,ye.M)()}),[]),z=(0,Yt.n)(n,e.dir),C=o.useMemo((function(){return null===e.fillMode||null===e.fill?null:e.fill||e.fillMode||Ln.fillMode}),[e.fillMode,e.fill]),S=o.useMemo((function(){return e.themeColor||Ln.themeColor}),[e.themeColor]),I=o.useMemo((function(){var e;return(0,a.A)("k-bottom-nav",Rn[l],Tn[u],((e={})["k-bottom-nav-".concat(C)]=C,e["k-bottom-nav-".concat(C,"-").concat(S)]=Boolean(C&&S),e["k-bottom-nav-border"]=p,e["k-disabled"]=g,e),h)}),[l,S,C,u,p,g,h]),M=o.useCallback((function(e,t){f&&!f[t].disabled&&w&&(0,Xe.N)(w,e,i(),{itemTarget:f[t],itemIndex:t})}),[f,w]),E=o.useCallback((function(e,t){M(e,t)}),[M]),O=o.useCallback((function(e,t){switch(e.keyCode){case Q.R.enter:case Q.R.space:M(e,t),e.preventDefault()}(0,Xe.N)(k,e,i(),void 0)}),[M,k]);return o.createElement("nav",{ref:n,className:I,style:y,id:b||x,dir:z},f&&f.map((function(e,t){return o.createElement(Dn,Bn({},e,{key:t,index:t,id:"".concat(b||x,"-").concat(t),disabled:g||e.disabled,selected:e.selected,dataItem:e,item:m,render:v,onSelect:E,onKeyDown:O}))})))})),Ln={themeColor:"primary",fillMode:"flat",itemFlow:"vertical",positionMode:"fixed",border:!0};An.propTypes={className:H.string,style:H.object,id:H.string,dir:H.string,themeColor:H.oneOf(["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse"]),fill:H.oneOf(["solid","flat"]),fillMode:H.oneOf(["solid","flat"]),itemFlow:H.oneOf(["vertical","horizontal"]),border:H.bool,disabled:H.bool,selected:H.number,onSelect:H.func},An.defaultProps=Ln,An.displayName="KendoReactBottomNavigation";var _n=n(9302),Fn=function(){return Fn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Fn.apply(this,arguments)},jn=o.forwardRef((function(e,t){(0,_n.validatePackage)(Ce.k);var n=o.useRef(null),r=o.useCallback((function(){return{element:n.current}}),[]);o.useImperativeHandle(t,r);var i=e.className,s=e.style,l=e.id,c=e.children,u=o.useMemo((function(){return(0,ye.M)()}),[]),d=o.useMemo((function(){return e.orientation||Kn.orientation}),[e.orientation]),p="horizontal"===d,h=o.useMemo((function(){return e.align&&e.align.horizontal?e.align.horizontal:Kn.hAlign}),[e.align]),f=o.useMemo((function(){return e.align&&e.align.vertical?e.align.vertical:Kn.vAlign}),[e.align]),m=o.useMemo((function(){return(0,a.A)("k-stack-layout",{"k-hstack":"horizontal"===d,"k-vstack":"vertical"===d,"k-justify-content-start":p&&"start"===h||!p&&"top"===f,"k-justify-content-center":p&&"center"===h||!p&&"middle"===f,"k-justify-content-end":p&&"end"===h||!p&&"bottom"===f,"k-justify-content-stretch":p&&"stretch"===h||!p&&"stretch"===f,"k-align-items-start":!p&&"start"===h||p&&"top"===f,"k-align-items-center":!p&&"center"===h||p&&"middle"===f,"k-align-items-end":!p&&"end"===h||p&&"bottom"===f,"k-align-items-stretch":!p&&"stretch"===h||p&&"stretch"===f},i)}),[d,p,h,f,i]),v=Fn({gap:"".concat("number"==typeof e.gap?e.gap+"px":e.gap)},s);return o.createElement("div",{ref:n,className:m,style:v,id:l||u},c)})),Kn={orientation:"horizontal",hAlign:"stretch",vAlign:"stretch"};jn.propTypes={className:H.string,style:H.object,children:H.any,id:H.string,orientation:H.oneOf(["horizontal","vertical"]),gap:H.oneOfType([H.string,H.number]),align:H.shape({vertical:H.oneOf(["top","middle","bottom","stretch"]),horizontal:H.oneOf(["start","center","end","stretch"])})},jn.defaultProps=Kn,jn.displayName="KendoReactStackLayout";var Wn=function(){return Wn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Wn.apply(this,arguments)},Un=o.forwardRef((function(e,t){(0,_n.validatePackage)(Ce.k);var n=o.useRef(null),r=o.useCallback((function(){return{element:n.current}}),[]);o.useImperativeHandle(t,r);var i=e.className,s=e.style,l=e.id,c=e.children,u=e.gap,d=o.useMemo((function(){return(0,ye.M)()}),[]),p=o.useMemo((function(){return e.align&&e.align.horizontal?e.align.horizontal:qn.hAlign}),[e.align]),h=o.useMemo((function(){return e.align&&e.align.vertical?e.align.vertical:qn.vAlign}),[e.align]),f=o.useMemo((function(){return(0,a.A)("k-grid-layout",{"k-justify-items-start":"start"===p,"k-justify-items-center":"center"===p,"k-justify-items-end":"end"===p,"k-justify-items-stretch":"stretch"===p,"k-align-items-start":"top"===h,"k-align-items-center":"middle"===h,"k-align-items-end":"bottom"===h,"k-align-items-stretch":"stretch"===h},i)}),[p,h,i]),m=u?"".concat("number"==typeof u.rows?u.rows+"px":u.rows)+" "+"".concat("number"==typeof u.cols?u.cols+"px":u.cols):void 0,v=e.rows&&e.rows.map((function(e){return"".concat("number"==typeof e.height?e.height+"px":e.height)})).join(" "),g=e.cols&&e.cols.map((function(e){return"".concat("number"==typeof e.width?e.width+"px":e.width)})).join(" "),y=Wn({gap:m,gridTemplateColumns:g,gridTemplateRows:v},s);return o.createElement("div",{ref:n,className:f,style:y,id:l||d},c)})),qn={hAlign:"stretch",vAlign:"stretch",gap:void 0};Un.propTypes={className:H.string,style:H.object,children:H.any,id:H.string,gap:H.shape({rows:H.oneOfType([H.string,H.number]),columns:H.oneOfType([H.string,H.number])}),align:H.shape({vertical:H.oneOf(["top","middle","bottom","stretch"]),horizontal:H.oneOf(["start","center","end","stretch"])})},Un.defaultProps=qn,Un.displayName="KendoReactGridLayout";var $n=function(){return $n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},$n.apply(this,arguments)},Gn=o.forwardRef((function(e,t){(0,_n.validatePackage)(Ce.k);var n=o.useRef(null),r=o.useCallback((function(){return{element:n.current}}),[]);o.useImperativeHandle(t,r);var i=e.className,a=e.style,s=e.id,l=e.children,c=e.row,u=e.col,d=e.rowSpan,p=e.colSpan,h=o.useMemo((function(){return(0,ye.M)()}),[]),f=$n({gridArea:"".concat(c||"auto"," / ").concat(u||"auto"," / ").concat(d?"span "+d:"auto"," / ").concat(p?"span "+p:"auto")},a);return o.createElement("div",{ref:n,className:i,style:f,id:s||h},l)}));Gn.propTypes={className:H.string,style:H.object,children:H.any,id:H.string},Gn.displayName="KendoReactGridLayoutItem";var Zn=o.forwardRef((function(e,t){(0,_n.validatePackage)(Ce.k);var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){r.current&&r.current.focus()}),[r]);return o.useImperativeHandle(n,(function(){return{element:r.current,focus:i,props:e}})),o.useImperativeHandle(t,(function(){return n.current})),o.createElement("li",{ref:r,id:e.id,style:e.style,className:(0,a.A)("k-breadcrumb-item",{"k-breadcrumb-root-item":e.isFirstItem,"k-breadcrumb-last-item":e.isLastItem},e.className)},e.children)})),Yn={id:H.string,className:H.string,children:H.any,style:H.object};Zn.displayName="KendoReactBreadcrumbListItem",Zn.propTypes=Yn;var Jn=o.forwardRef((function(e,t){(0,_n.validatePackage)(Ce.k);var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(n,(function(){var t;return{element:(null===(t=r.current)||void 0===t?void 0:t.element)||null,props:e}})),o.useImperativeHandle(t,(function(){return n.current})),o.createElement(i.a,{ref:r,id:e.id,"aria-hidden":!0,tabIndex:e.tabIndex,style:e.style,name:"rtl"===e.dir?"chevron-left":"chevron-right",icon:"rtl"===e.dir?_:A,className:"k-breadcrumb-delimiter-icon",size:"xsmall"})})),Xn={id:H.string,className:H.string,style:H.object,tabIndex:H.number,dir:H.string};Jn.displayName="KendoReactBreadcrumbDelimiter",Jn.propTypes=Xn;var Qn=o.forwardRef((function(e,t){(0,_n.validatePackage)(Ce.k);var n=o.useRef(null),r=o.useRef(null),i=o.useCallback((function(){r.current&&r.current.focus()}),[r]);o.useImperativeHandle(n,(function(){return{element:r.current,focus:i,props:e}})),o.useImperativeHandle(t,(function(){return n.current}));var s=o.useCallback((function(t){e.id&&(0,Xe.N)(e.onItemSelect,t,t.target,{id:e.id})}),[e.onItemSelect]),l=o.useCallback((function(t){e.id&&(0,Xe.N)(e.onKeyDown,t,t.target,{id:e.id})}),[e.onKeyDown]);return o.createElement("span",{"aria-current":e.ariaCurrent?e.ariaCurrent:e.isLast,role:"link",id:e.id,ref:r,style:e.style,dir:(0,Yt.n)(r,e.dir),tabIndex:(0,Kt.p)(e.tabIndex,e.disabled),className:(0,a.A)({"k-breadcrumb-root-link":e.isFirst,"k-breadcrumb-link":!e.isFirst,"k-breadcrumb-icontext-link":void 0!==e.iconClass&&e.text,"k-breadcrumb-icon-link":void 0!==e.iconClass&&!e.text,"k-disabled":e.disabled}),onClick:s,onKeyDown:l},e.iconClass?o.createElement("span",{className:(0,a.A)("k-icon",e.iconClass)}):e.icon?e.icon:"",e.text&&o.createElement("span",{className:"k-breadcrumb-item-text"},e.text))})),eo={id:H.string,className:H.string,tabIndex:H.number,style:H.object,dir:H.string,disabled:H.bool,text:H.string,icon:H.node,iconClass:H.string,onClick:H.func,ariaCurrent:H.bool};Qn.displayName="KendoReactBreadcrumbLink",Qn.propTypes=eo;var to=o.forwardRef((function(e,t){(0,_n.validatePackage)(Ce.k);var n=o.useRef(null),r=o.useRef(null);return o.useImperativeHandle(n,(function(){return{element:r.current,props:e}})),o.useImperativeHandle(t,(function(){return n.current})),o.createElement(o.Fragment,null,e.rootItem?o.createElement("ol",{id:e.id,ref:r,style:e.style,dir:(0,Yt.n)(r,e.dir),tabIndex:(0,Kt.p)(e.tabIndex,e.disabled),className:(0,a.A)("k-breadcrumb-root-item-container",{"k-disabled":e.disabled},e.className)},e.children):o.createElement("ol",{id:e.id,ref:r,style:e.style,dir:(0,Yt.n)(r,e.dir),tabIndex:(0,Kt.p)(e.tabIndex,e.disabled),className:(0,a.A)("k-breadcrumb-container !k-flex-wrap",{"k-disabled":e.disabled},e.className)},e.children))})),no={id:H.string,className:H.string,children:H.element,tabIndex:H.number,style:H.object,dir:H.string,disabled:H.bool};to.displayName="KendoReactBreadcrumbOrderedList",to.propTypes=no;var oo=function(){return oo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},oo.apply(this,arguments)},ro=o.forwardRef((function(e,t){var n;(0,_n.validatePackage)(Ce.k);var r=o.useRef(null),i=o.useRef(null),s=o.useMemo((function(){return e.breadcrumbOrderedList||to}),[e.breadcrumbOrderedList]),l=o.useMemo((function(){return e.breadcrumbListItem||Zn}),[e.breadcrumbListItem]),c=o.useMemo((function(){return e.breadcrumbDelimiter||Jn}),[e.breadcrumbDelimiter]),u=o.useMemo((function(){return e.breadcrumbLink||Qn}),[e.breadcrumbLink]),d=o.useCallback((function(){i.current&&i.current.focus()}),[i]),p=o.useMemo((function(){return e.disabled||!1}),[e.disabled]);o.useImperativeHandle(r,(function(){return{element:i.current,focus:d,props:e}})),o.useImperativeHandle(t,(function(){return r.current}));var h=(0,Yt.n)(i,e.dir),f=function(t){r.current&&(0,Xe.N)(e.onItemSelect,t,t.target,{id:t.target.id})},m=function(t){r.current&&(0,Xe.N)(e.onKeyDown,t,t.target,{id:t.target.id})},v=e.valueField||ao.valueField,g=e.iconField||ao.iconField,y=e.iconClassField||ao.iconClassField,b=e.textField||ao.textField,w=e.size||"medium";return o.createElement("nav",{"aria-label":e.ariaLabel,id:e.id,style:e.style,ref:i,dir:h,className:(0,a.A)("k-breadcrumb k-breadcrumb-wrap",(n={"k-rtl":"rtl"===h,"k-disabled":p,"k-breadcrumb-md":!e.size},n["k-breadcrumb-".concat(Lt.G.sizeMap[w]||w)]=w,n),e.className)},o.createElement(s,{rootItem:!0},o.createElement(o.Fragment,null,e.data.map((function(t,n,r){var i=t[v];if(0===n)return o.createElement(l,{key:i,isFirstItem:!0,isLastItem:r.length-1===n},o.createElement(u,oo({isLast:r.length-1===n,isFirst:!0,id:String(i),icon:t[g]||void 0,iconClass:t[y]?String(t[y]):void 0,text:t[b]?String(t[b]):void 0,disabled:t.disabled||!1,onItemSelect:f,onKeyDown:m},e)))})))),o.createElement(s,{rootItem:!1},o.createElement(o.Fragment,null,e.data.map((function(t,n,r){var i=t[v];if(0!==n)return o.createElement(l,{key:i,isFirstItem:!1,isLastItem:r.length-1===n},o.createElement(c,{dir:h}),o.createElement(u,oo({isLast:r.length-1===n,isFirst:!1,id:String(i),icon:t[g]||void 0,iconClass:t[y]?String(t[y]):void 0,text:t[b]?String(t[b]):void 0,disabled:t.disabled||!1,onItemSelect:f,onKeyDown:m},e)))})))))})),io={id:H.string,style:H.object,className:H.string,breadcrumbOrderedList:H.elementType,breadcrumbListItem:H.elementType,breadcrumbDelimiter:H.elementType,breadcrumbLink:H.elementType,data:H.arrayOf(H.shape({id:H.string,text:H.string,icon:H.any,iconClass:H.string})),dir:H.oneOf(["ltr","rtl"]),disabled:H.bool,valueField:H.string,textField:H.string,iconField:H.string,iconClassField:H.string,onItemSelect:H.func,ariaLabel:H.string},ao={valueField:"id",textField:"text",iconField:"icon",iconClassField:"iconClass"};ro.displayName="KendoReactBreadcrumb",ro.propTypes=io,ro.defaultProps=ao;var so=n(3162),lo=n(4312),co=n(1205),uo=n(7999),po=n(4390),ho=n(6584),fo=function(e){var t=e.eventData,n=t.title,r=t.subtitle,i=t.actions,s=t.images,l=t.description,c=o.useState(e.eventData.opened||!1),u=c[0],d=c[1],p=o.useState(e.eventData.opened||!!e.collapsible),h=p[0],f=p[1],m=function(t){if(e.onActionClick){var n={syntheticEvent:t,nativeEvent:t.nativeEvent,eventData:e.eventData};e.onActionClick.call(void 0,n)}},v=function(){return o.createElement(o.Fragment,null,o.createElement(Pt,null,o.createElement("div",{className:"k-card-description"},o.createElement("p",null,l),s&&s.map((function(e,t){return o.createElement(Dt,{key:t,src:e.src})})))),o.createElement(Tt,null,i&&i.map((function(e,t){return o.createElement("a",{key:t,href:e.url,className:"k-button k-button-md k-rounded-md k-button-flat k-button-flat-primary",onClick:m},e.text)}))))};return o.createElement("div",{"data-testid":"k-timeline-card",className:(0,a.A)("k-timeline-card",{"k-collapsed":e.collapsible&&h})},o.createElement(Ot,{"aria-live":"polite","aria-describedby":e.id,"aria-atomic":"true",tabIndex:e.tabindex,role:e.horizontal?"tabpanel":"button","aria-expanded":e.collapsible&&h},o.createElement("span",{style:e.calloutStyle,className:(0,a.A)("k-timeline-card-callout","k-card-callout",{"k-callout-n":e.horizontal},{"k-callout-e":e.alternated&&!e.horizontal},{"k-callout-w":!e.alternated&&!e.horizontal})}),o.createElement("div",{className:"k-card-inner"},o.createElement(Ht,null,o.createElement(Nt,null,o.createElement("span",{className:"k-event-title"},n),e.collapsible&&o.createElement("span",{onClick:function(t){return function(t){if(d(!u),e.onChange){var n={syntheticEvent:t,nativeEvent:t.nativeEvent,eventData:e.eventData};e.onChange.call(void 0,n)}}(t)},className:"k-event-collapse k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button"},o.createElement(ho.l,{icon:A}))),r&&o.createElement(Bt,null,r)),e.collapsible?o.createElement(Ne.U,{transitionEnterDuration:e.transitionDuration||400,transitionExitDuration:e.transitionDuration||400,onBeforeEnter:function(){return f(!1)},onAfterExited:function(){return f(!0)}},u?v():null):v())))};fo.propTypes={onChange:H.func,onActionClick:H.func};var mo=function(e){return e.sort((function(e,t){return e.date.getTime()-t.date.getTime()}))},vo=function(e){var t;return e.reduce((function(e,n){return t!==n.date.getFullYear()?(t=n.date.getFullYear(),e.push({yearFlag:t},n)):e.push(n),e}),[])},go=n(6604),yo=n(7827),bo=function(){return bo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},bo.apply(this,arguments)},wo=function(e){var t=(0,zt.useInternationalization)(),n=o.useState(!1),r=n[0],i=n[1],s=o.useState(!0),l=s[0],c=s[1],u=o.useState(),d=u[0],p=u[1],h=o.useState(0),f=h[0],m=h[1],v=o.useState(),g=v[0],y=v[1],b=o.useState(0),w=b[0],k=b[1],x=o.useState(0),z=x[0],C=x[1],S=o.useState(1),I=S[0],M=S[1],E=o.useState(),O=E[0],H=E[1],N=o.useState(),P=N[0],V=N[1],R=o.useState([0,0,0]),B=R[0],A=R[1],L=o.useState(0),_=L[0],F=L[1],j=o.useState(1),K=j[0],W=j[1],U=o.useRef(null),q=o.useRef(null),$=o.useRef(null),G=e.eventsData,Z=e.dateFormat,Y=e.navigatable,J=e.onActionClick,X=g?"".concat(g,"%"):"".concat(150,"px"),Q=o.useRef(new go.W({tabIndex:0,root:U,selectors:[".k-timeline-scrollable-wrap"]}));o.useEffect((function(){U.current&&e.navigatable&&(setTimeout((function(){var e=Q.current.first;e&&e.setAttribute("tabindex",String(0))}),0),Q.current.keyboardEvents={keydown:{ArrowRight:ee,ArrowLeft:te,End:oe,Home:ne}})}),[e.navigatable,I,w]),o.useEffect((function(){Q.current.update()})),o.useEffect((function(){var e,t=yo.N&&window.ResizeObserver&&new window.ResizeObserver(pe),n=q.current,o=(null===(e=null==U?void 0:U.current)||void 0===e?void 0:e.offsetWidth)||0;return t&&n&&t.observe(n),re(),pe(),A([o,0,-o]),function(){t&&t.disconnect()}}),[]),o.useEffect((function(){var e=q.current,t=e&&e.children[I];if(t){var n=t.offsetWidth;if(i(!(f>=0)),P){var o=P.length*n>w*n*((-1*f+100)/100);c(o)}(null==e?void 0:e.offsetWidth)*-f/100>=e.children.length*n&&(re(),pe(),m((t.offsetLeft-t.offsetWidth)/(w*t.offsetWidth)*100*-1)),ue(t)}}),[w,g,I]);var ee=function(e,t,n){if(q.current){var o=q.current.children[I+1],r=o&&o.classList.contains("k-timeline-flag-wrap")?I+2:I+1;if(P&&P.length<=r)return;w+z<=r&&ae(),de(r,n)}},te=function(e,t,n){if(q.current){var o=q.current&&q.current.children[I-1],r=o&&o.classList.contains("k-timeline-flag-wrap")?I-2:I-1;if(r<=0)return;r<z&&ie(),de(r,n)}},ne=function(e,t,n){if(q.current){if(I<=1)return;se(!0,1,0,0),de(1,n)}},oe=function(e,t,n){if(q.current){var o=q.current&&q.current.children.length-1;if(o<=I)return;var r=Math.floor(o/w);se(!0,o,r*w,-100*r),de(o,n)}},re=function(){var e=vo(G);V(e),H([e[I-1],e[I],e[I+1]])},ie=function(){var e;if(q.current&&P){var t=z-w,n=z-1,o=P[n]&&(null===(e=P[n])||void 0===e?void 0:e.yearFlag)?n-1:n;se(!1,o,t,f+100>0?0:f+100)}},ae=function(){if(q.current&&P){var e=z+w,t=P[e]&&P[e].yearFlag?e+1:e;se(!0,t,e,f-100)}},se=function(e,t,n,o){le(e,t),pe(),C(n),m(o),M(t)},le=function(t,n){var o;if(O&&P){var r=ce(t,K),i=Object.assign([],O,((o={})[r]=P[n],o));H(i),W(r),F(t?-100:100),setTimeout((function(){var e,t,n,o=null===(n=U.current)||void 0===n?void 0:n.offsetWidth,a=Object.assign([],B,((e={})[r]=0,e[ce(!0,r)]=o,e[ce(!1,r)]=o&&-o,e)),s=Object.assign([],i,((t={})[ce(!0,r)]={},t[ce(!1,r)]={},t));H(s),A(a),F(0)}),e.transitionDuration||300)}},ce=function(e,t){var n=e?t+1:t-1;return O?n<0?O.length-1:n%O.length:0},ue=function(e){var t,n=(I-z)*e.offsetWidth+e.offsetWidth/2+((null===(t=$.current)||void 0===t?void 0:t.offsetWidth)||0);p(n)},de=function(e,t){t.preventDefault(),e>I?le(!0,e):e<I&&le(!1,e),M(e)},pe=o.useCallback((function(){var e=q.current,t=e&&e.children[I];if(e instanceof HTMLElement&&t){var n=Math.round(e.offsetWidth/150);ue(t),y(100/n),k(n)}}),[]),he=function(e){return{transform:"translateX(".concat(e,"%)"),transformOrigin:"left top"}};return o.createElement(o.Fragment,null,o.createElement("div",{className:"k-timeline-track-wrap",ref:U,onKeyDown:function(e){Y&&Q.current&&Q.current.triggerKeyboardEvent(e)}},o.createElement("a",{ref:$,"aria-hidden":"true",onClick:function(){return r&&ie()},className:(0,a.A)("k-timeline-arrow","k-timeline-arrow-left","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!r})},o.createElement(ho.l,{icon:D})),o.createElement("a",{"aria-hidden":"true",onClick:function(){return l&&ae()},className:(0,a.A)("k-timeline-arrow","k-timeline-arrow-right","k-button k-button-md k-rounded-md k-button-solid k-button-solid-base k-icon-button",{"k-disabled":!l})},o.createElement(ho.l,{icon:T})),o.createElement("div",{className:"k-timeline-track"},o.createElement("ul",{ref:q,className:"k-timeline-scrollable-wrap",role:"tablist",tabIndex:0,style:{transform:"translateX(".concat(f,"%)")}},P&&P.map((function(e,n){return e.yearFlag?o.createElement("li",{role:"none",className:"k-timeline-track-item k-timeline-flag-wrap",style:{flex:"1 0 ".concat(X)},key:n},o.createElement("span",{className:"k-timeline-flag"},e.yearFlag)):o.createElement("li",{role:"tab",className:(0,a.A)("k-timeline-track-item",{"k-focus":n===I}),"aria-selected":n===I,style:{flex:"1 0 ".concat(X)},key:n},o.createElement("div",{className:"k-timeline-date-wrap"},o.createElement("span",{className:"k-timeline-date"},t.formatDate(e.date,Z))),o.createElement("span",{onClick:function(e){return de(n,e)},className:"k-timeline-circle"}))}))))),o.createElement("div",{className:"k-timeline-events-list"},o.createElement("ul",{className:"k-timeline-scrollable-wrap",style:0===_?bo({},he(_)):bo(bo({},he(_)),{transitionDuration:"".concat(300,"ms")})},O&&O.map((function(e,t){return o.createElement("li",{key:t,className:"k-timeline-event",style:{transform:"translate3d(".concat(B[t],"px, 0px, 0px)")}},e&&o.createElement(fo,{tabindex:0===B[t]?0:-1,eventData:e,onActionClick:J,horizontal:!0,collapsible:!1,calloutStyle:{left:"".concat(d,"px")}}))})))))};wo.propTypes={onActionClick:H.func};var ko=function(e){var t=(0,zt.useInternationalization)(),n=o.useState(),r=n[0],i=n[1],s=e.collapsibleEvents,l=e.transitionDuration,c=e.eventsData,u=e.dateFormat,d=e.alterMode,p=e.navigatable,h=e.onChange,f=e.onActionClick,m=o.useRef(null),v=o.useRef(new go.W({tabIndex:0,root:m,selectors:[".k-card-vertical"]}));o.useEffect((function(){m.current&&e.navigatable&&(setTimeout((function(){var e=v.current.first;e&&e.setAttribute("tabindex",String(0))}),0),v.current.keyboardEvents={keydown:{Space:g,Enter:g}})}),[e.navigatable]),o.useEffect((function(){i(vo(c))}),[]),o.useEffect((function(){v.current.update()}));var g=function(e,t,n){n.preventDefault();var o=e.querySelector(".k-card-title .k-event-collapse");o&&o.click()},y=0;return o.createElement("ul",{ref:m,onKeyDown:function(e){p&&v.current&&v.current.triggerKeyboardEvent(e)}},r&&r.map((function(e,n){var r=(0,ye.M)(),i=(n+y)%2==0;return e.yearFlag&&(y+=1),o.createElement(o.Fragment,{key:n},e.yearFlag?o.createElement("li",{className:"k-timeline-flag-wrap"},o.createElement("span",{className:"k-timeline-flag"},e.yearFlag)):o.createElement("li",{className:(0,a.A)("k-timeline-event",{"k-reverse":i})},o.createElement("div",{className:"k-timeline-date-wrap"},o.createElement("span",{className:"k-timeline-date",id:r},t.formatDate(e.date,u))),o.createElement("a",{className:"k-timeline-circle"}),o.createElement(fo,{id:r,tabindex:p?0:-1,eventData:e,alternated:d&&i,collapsible:s,transitionDuration:l,onChange:h,onActionClick:f})))})))};ko.propTypes={onActionClick:H.func};var xo=function(){return xo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xo.apply(this,arguments)},zo=function(e){var t=xo({alterMode:!1,collapsibleEvents:!0,dateFormat:"MMM dd, yyyy"},e),n=t.collapsibleEvents,r=t.transitionDuration,i=t.className,s=t.alterMode,l=t.navigatable,c=t.horizontal,u=t.events,d=t.dateFormat,p=t.onChange,h=t.onActionClick,f=o.useState(),m=f[0],v=f[1],g=o.useRef(null);return o.useEffect((function(){g.current&&v(g.current.offsetWidth)}),[]),o.createElement("div",{ref:g,className:(0,a.A)("k-timeline",{"k-timeline-collapsible":n,"k-timeline-vertical":!c,"k-timeline-alternating":s,"k-timeline-horizontal":c},i),style:{width:"".concat(m,"px")}},c?o.createElement(wo,{navigatable:l,eventsData:u,dateFormat:d,transitionDuration:r,onActionClick:h}):o.createElement(ko,{navigatable:l,eventsData:u,dateFormat:d,alterMode:s,collapsibleEvents:n,transitionDuration:r,onChange:p,onActionClick:h}))};zo.propTypes={className:H.string};var Co=function(){return Co=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Co.apply(this,arguments)},So=function(e){var t=o.useRef(null);return o.useEffect((function(){e.show&&setTimeout((function(){var e=t.current&&t.current.element,n=e&&e.querySelector(".k-menu-item"),o=(0,r.v)(n&&n.ownerDocument);n&&n!==o&&n.focus()}))}),[e.show]),o.createElement(s.G,{show:e.show,offset:e.offset,popupClass:"k-menu-popup",animate:!1},o.createElement(yt,Co({vertical:!0},e,{ref:t,className:(0,a.A)("k-context-menu",e.className),onClose:e.onClose,role:"menu"}),e.children))};So.displayName="KendoReactContextMenu";var Io=n(6059),Mo=o.forwardRef((function(e,t){var n,r;(0,xe.s)(Ce.k);var s=o.useRef(null),l=o.useState(!1),c=l[0],u=l[1],d=o.useCallback((function(){return{element:s.current}}),[]);o.useImperativeHandle(t,d);var p=e.expanded,h=void 0!==p&&p,f=e.disabled,m=e.title,v=e.subtitle,g=e.onAction,y=e.expandIcon,b=e.collapseIcon,w=e.expandSVGIcon,k=e.collapseSVGIcon,x=o.useCallback((function(e){(0,Xe.N)(g,e,d(),{expanded:h})}),[g,h]),z=o.useCallback((function(e){e.keyCode!==Q.R.enter&&e.keyCode!==Q.R.space||(e.preventDefault(),(0,Xe.N)(g,e,d(),{expanded:h}))}),[g,h]),C=o.useCallback((function(){e.disabled||u(!0)}),[e.disabled]),S=o.useCallback((function(){e.disabled||u(!1)}),[e.disabled]),I=(0,Io.U)({onFocus:C,onBlur:S}),M=I.onFocus,E=I.onBlur;return o.createElement("div",{ref:s,className:(0,a.A)("k-expander",e.className,{"k-expanded":h,"k-focus":c&&!f,"k-disabled":f}),onFocus:M,onBlur:E,style:e.style,id:e.id,dir:(0,nn.V)(s,e.dir),onKeyDown:f?void 0:z},o.createElement("div",{role:"button","aria-controls":e.ariaControls,"aria-expanded":h,"aria-disabled":f,tabIndex:(0,Kt.p)(e.tabIndex,f),className:"k-expander-header",onClick:f?void 0:x},void 0!==m?o.createElement("div",{className:"k-expander-title"},m):void 0,o.createElement("span",{className:"k-spacer"}),void 0!==v?o.createElement("div",{className:"k-expander-sub-title"},v):void 0,o.createElement("span",{className:"k-expander-indicator"},o.createElement(i.a,{name:h?b?void 0:"chevron-up":y?void 0:"chevron-down",icon:h?k||b?k:B:w||y?w:L,className:(0,a.A)(h?(n={},n[String(b)]=Boolean(b),n):(r={},r[String(y)]=Boolean(y),r))}))),e.children)}));Mo.propTypes={children:H.node,className:H.string,style:H.object,dir:H.string,id:H.string,tabIndex:H.number,title:H.node,subtitle:H.node,expandIcon:H.string,collapseIcon:H.string,expanded:H.bool,disabled:H.bool,onAction:H.func},Mo.displayName="KendoReactExpansionPanel";var Eo=function(){return Eo=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Eo.apply(this,arguments)},Oo=o.forwardRef((function(e,t){return o.createElement("div",Eo({ref:t},e,{className:(0,a.A)("k-expander-content-wrapper",e.className)}),o.createElement("div",{className:"k-expander-content"},e.children))}));Oo.displayName="KendoReactExpansionPanelContent"},8206:(e,t,n)=>{n.d(t,{k:()=>o});var o={name:"@progress/kendo-react-layout",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700059895,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},5809:(e,t,n)=>{n.r(t),n.d(t,{GridPDFExport:()=>K,KendoDrawingAdapter:()=>b,PDFExport:()=>z,PDFMargin:()=>f,TreeListPDFExport:()=>Y,getPageMargin:()=>v,savePDF:()=>C});var o=n(3899),r=n(189),i=n(4407);function a(e,t,n){void 0===n&&(n={});var o=d;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(l()&&(o=u),navigator.msSaveBlob&&(o=c)),o(e,t,n)}var s=function(){return document.createElement("a")},l=function(){return"download"in s()};function c(e,t){var n=e;if("string"==typeof e){for(var o=e.split(";base64,"),r=o[0],i=atob(o[1]),a=new Uint8Array(i.length),s=0;s<i.length;s++)a[s]=i.charCodeAt(s);n=new Blob([a.buffer],{type:r})}navigator.msSaveBlob(n,t)}function u(e,t){var n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e));var o=s();o.download=t,o.href=n;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),o.dispatchEvent(r),setTimeout((function(){return URL.revokeObjectURL(n)}))}function d(e,t,n){if(n.proxyURL){var o=document.createElement("form");o.setAttribute("action",n.proxyURL),o.setAttribute("method","POST"),o.setAttribute("target",n.proxyTarget||"_self");var r=n.proxyData||{};r.fileName=t;var i=e.split(";base64,");for(var a in r.contentType=i[0].replace("data:",""),r.base64=i[1],r)if(r.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",r[a]),o.appendChild(s)}document.body.appendChild(o),o.submit(),document.body.removeChild(o)}}String.fromCharCode;var p,h=(p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},p(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.render=function(){return null},t.propTypes={left:r.oneOfType([r.number,r.string]),top:r.oneOfType([r.number,r.string]),right:r.oneOfType([r.number,r.string]),bottom:r.oneOfType([r.number,r.string])},t}(o.Component),m=["bottom","left","right","top"];function v(e){var t=o.Children.toArray(e.children).find((function(e){return e&&e.type===f}));return t?function(e){for(var t={},n=0;n<m.length;n++){var o=m[n],r=e.props[o];void 0!==r&&(t[o]=r)}return t}(t):e.margin}var g=n(3209),y=function(){function e(e,t,n,r,i){void 0===i&&(i={});var a=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=r,this.options=i,this.convertPageTemplateToHtml=function(e){var t=g.renderToStaticMarkup(o.createElement(a.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages}));return"<span>".concat(t,"</span>")}}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||"KendoReact 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 b=y;var w=n(9302),k={name:"@progress/kendo-react-pdf",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060501,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),z=function(e){function t(t){var n=e.call(this,t)||this;if(n.rootElForPDF=null,void 0!==w)w.validatePackage(k);else{var o="License activation failed for ".concat(k.name,"\n");o+="The @progress/kendo-licensing script is not loaded.\n",o+="See ".concat(k.licensingDocsUrl," for more information.\n"),console.warn(o)}return n}return x(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{ref:function(t){e.rootElForPDF=t}},this.props.children)},t.prototype.save=function(e){new b(i.drawDOM,i.exportPDF,a,this.rootElForPDF,this.getOptions()).savePDF(e)},t.prototype.getOptions=function(){return Object.assign({},this.props,{margin:v(this.props)})},t.propTypes={author:r.string,avoidLinks:r.oneOfType([r.bool,r.string]),forcePageBreak:r.string,keepTogether:r.string,creator:r.string,date:r.instanceOf(Date),imageResolution:r.number,fileName:r.string,forceProxy:r.bool,keywords:r.string,landscape:r.bool,margin:r.oneOfType([r.string,r.number,r.shape({left:r.oneOfType([r.number,r.string]),top:r.oneOfType([r.number,r.string]),right:r.oneOfType([r.number,r.string]),bottom:r.oneOfType([r.number,r.string])})]),pageTemplate:r.any,paperSize:r.any,repeatHeaders:r.bool,scale:r.number,proxyData:r.any,proxyURL:r.string,proxyTarget:r.string,producer:r.string,subject:r.string,title:r.string},t}(o.Component);function C(e,t,n){void 0===t&&(t={}),new b(i.drawDOM,i.exportPDF,a,e,t).savePDF(n)}var S=n(994),I={},M=function(e){return String(e).trim().split(" ")},E=function(e){return function(t){return function(e,t){var n=M(t);return Boolean(M(e.className).find((function(e){return n.indexOf(e)>=0})))}(t,e)}},O=function(e){return I[e]||(I[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),I[e]},H=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 o=H(e,t);if(o)return o}e=e.nextSibling}}},N="k-grid-header",P="k-grid-footer",V=O("TABLE"),T=function(e){return e?"locked":"wrap"},R=function(){function e(e){this.element=e,this.list=H(e,E("k-grid-container"))}return e.prototype.content=function(e){return H(this.list,E("k-grid-content".concat(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||H(this.element,E(N)),H(this.headerWrap,E("".concat(N,"-").concat(T(e))))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||H(this.element,E(P)),H(this.footerWrap,E("".concat(P,"-").concat(T(e))))},e.prototype.table=function(){return H(this.element,V)},e}(),D="k-first",B=function(e,t){for(var n=t.length,o=0;o<n;o++)e.appendChild(t[o].cloneNode(!0))},A=function(e){var t=document.createElement("div");return t.className="k-grid k-grid-md",t.appendChild(e),t},L=function(e){var t=e.length,n=e[0].cloneNode(!0),o=n.rows.length;if(t>1)for(var r=0;r<o;r++)for(var i=1;i<t;i++)B(n.rows[r],e[i].rows[r].cells);return n},_=function(e,t,n,o){for(var r=document.createElement("table"),i=e[0].cloneNode(!0),a=1;a<e.length;a++)B(i,e[a].querySelectorAll("col"));var s=L(t),l=L(n);if(s.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 o=t[0].rows[n].cells.length,r=e.rows[n].cells[o];-1===String(r.className).indexOf(D)&&(r.className+=" ".concat(D))}}(s,t),r.appendChild(i),r.appendChild(s),r.appendChild(l),o.length){var c=L(o);c.className="k-grid-footer",r.appendChild(c)}return A(r)};function F(e){return function(t,n,r,i,a){return void 0===n&&(n={}),function(e,t,n,r,i,a){var s,l,c;function u(){e(function(){(c=document.createElement("div")).className="k-grid-pdf-export-element";var e=function(e){var t,n=new R(e),o=n.content();if(o){var r=[o.querySelector("colgroup")],i=[n.header().querySelector("thead")],a=[o.querySelector("tbody")],s=n.footer(),l=s?[s.querySelector("tfoot")]:[];t=_(r,i,a,l)}else t=A(n.table().cloneNode(!0));return t}(l);return c.appendChild(e),document.body.appendChild(c),e}(),n,d)}function d(){document.body.removeChild(s),document.body.removeChild(c),s=c=void 0,r&&r()}void 0===n&&(n={}),(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),l=document.createElement("div"),s.appendChild(l),document.body.appendChild(s),S.render(function(){var e=i&&{data:i,total:i.length,pageSize:i.length,skip:0},n={style:Object.assign({},t.props.style,{width:"1000px"})},r=Object.assign({},e,n);if(a&&a.length>0){var s=function(e){return o.Children.toArray(e.props.children).filter((function(e){return e&&e.type&&"KendoReactGridColumn"!==e.type.displayName}))}(t);return o.cloneElement(t,r,a.concat(s))}return o.cloneElement(t,r)}(),l,u)}(e,t,n,r,i,a)}}var j=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),K=function(e){function t(t){var n=e.call(this,t)||this;return n.saveGridPDF=F(n.getSavePDF()),n}return j(t,e),t.prototype.render=function(){return null},t.prototype.save=function(e,t){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:v(this.props)}),t,e,this.getCustomColumns())},t.prototype.getSavePDF=function(){return C},t.prototype.getGrid=function(){return o.Children.toArray(this.props.children).find((function(e){return e&&"KendoReactGrid"===e.type.displayName}))},t.prototype.getCustomColumns=function(){return o.Children.toArray(this.props.children).filter((function(e){return e&&"KendoReactGridColumn"===e.type.displayName}))},t.propTypes={author:r.string,avoidLinks:r.oneOfType([r.bool,r.string]),forcePageBreak:r.string,keepTogether:r.string,creator:r.string,date:r.instanceOf(Date),imageResolution:r.number,fileName:r.string,forceProxy:r.bool,keywords:r.string,landscape:r.bool,margin:r.oneOfType([r.string,r.number,r.shape({left:r.oneOfType([r.number,r.string]),top:r.oneOfType([r.number,r.string]),right:r.oneOfType([r.number,r.string]),bottom:r.oneOfType([r.number,r.string])})]),pageTemplate:r.any,paperSize:r.any,repeatHeaders:r.bool,scale:r.number,proxyData:r.any,proxyURL:r.string,proxyTarget:r.string,producer:r.string,subject:r.string,title:r.string},t}(o.Component),W="k-grid-header",U="k-grid-footer",q=O("TABLE"),$=function(){function e(e){this.element=e,this.list=H(e,E("k-grid"))}return e.prototype.content=function(){return H(this.list,E("k-grid"))},e.prototype.header=function(){return this.headerWrap=this.headerWrap||H(this.element,E(W)),H(this.headerWrap,E("".concat(W)))},e.prototype.footer=function(){return this.footerWrap=this.footerWrap||H(this.element,E(U)),H(this.footerWrap,E("".concat(U)))},e.prototype.table=function(){return H(this.element,q)},e}();function G(e){return function(t,n,r,i,a){return void 0===n&&(n={}),function(e,t,n,r,i,a){var s,l,c,u,d,p;function h(){e(function(){(c=document.createElement("div")).className="k-treelist-pdf-export-element";var e=function(e){var t,n=new $(e),o=n.content(),r=n.header();if(r.childNodes.length>1&&r.removeChild(r.childNodes[1]),r.childNodes[0].childNodes.forEach((function(e){return e.style.top=0})),o){var i=[o.querySelector("colgroup")],a=[r],s=[o.querySelector("tbody")],l=n.footer(),c=l?[l.querySelector("tfoot")]:[];t=_(i,a,s,c)}else t=A(n.table().cloneNode(!0));return t}(l);return c.appendChild(e),document.body.appendChild(c),c}(),n,f)}function f(){document.body.removeChild(s),document.body.removeChild(c),s=c=void 0,r&&r()}void 0===n&&(n={}),(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),l=document.createElement("div"),s.appendChild(l),document.body.appendChild(s),S.render((u=n.allPages&&i?{data:i,take:Number.MAX_VALUE,skip:0}:{},d={style:Object.assign({},t.props.style,{width:"1000px"})},p=Object.assign({},u,d),a&&a.length>0?o.cloneElement(t,Object.assign({},p,{columns:a})):o.cloneElement(t,p)),l,h)}(e,t,n,r,i,a)}}var Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Y=function(e){function t(t){var n=e.call(this,t)||this;return n.saveTreeListPDF=G(n.getSavePDF()),n}return Z(t,e),t.prototype.render=function(){return null},t.prototype.save=function(e,t,n){this.saveTreeListPDF(this.getTreeList(),Object.assign({},this.props,{margin:v(this.props)}),n,e,t||[])},t.prototype.getSavePDF=function(){return C},t.prototype.getTreeList=function(){var e=this.props.children;if(e&&e.props.data&&e.props.columns)return this.props.children},t.propTypes={author:r.string,avoidLinks:r.oneOfType([r.bool,r.string]),forcePageBreak:r.string,keepTogether:r.string,creator:r.string,date:r.instanceOf(Date),imageResolution:r.number,fileName:r.string,forceProxy:r.bool,keywords:r.string,landscape:r.bool,margin:r.oneOfType([r.string,r.number,r.shape({left:r.oneOfType([r.number,r.string]),top:r.oneOfType([r.number,r.string]),right:r.oneOfType([r.number,r.string]),bottom:r.oneOfType([r.number,r.string])})]),pageTemplate:r.any,paperSize:r.any,repeatHeaders:r.bool,scale:r.number,proxyData:r.any,proxyURL:r.string,proxyTarget:r.string,producer:r.string,subject:r.string,title:r.string,allPages:r.bool},t}(o.Component)},1754:(e,t,n)=>{n.d(t,{v:()=>a,G:()=>s});var o=n(3899),r=n(61),i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=o.createContext((function(e){return e})),s=o.forwardRef((function(e,t){var n=o.useContext(a).call(void 0,e);return o.createElement(r.B,i({ref:t},n))}));s.displayName="Popup"},61:(e,t,n)=>{n.d(t,{B:()=>re});var o=n(3899),r=n(994),i=n(189),a=function(e){e.style.transitionDuration="",Array.from(e.classList).forEach((function(t){t.startsWith("k-slide-")&&e.classList.remove(t)}))},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=n(4006),c=n(7827),u=n(8259),d=n(8047);const p="bottom",h="center",f="middle",m="left",v="right",g="top",y="fit",b="flip",w="none";var k,x,z,C=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},S=function(e){var t=e.offset,n=e.size,o=e.anchorSize,r=e.viewPortSize,i=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,l=2*e.margin;if(a!==i&&a!==h&&a!==f&&i!==h&&i!==f){var c=i===g||i===m;t<0&&c?t+(s=n+o+l)+n>r&&(s=0):t>=0&&!c&&(t+n>r&&(s+=-(o+n+l)),t+s<0&&(s=0))}return s},I=(k=function(e){if(!M())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 o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},z=!1,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return z||(x=k.apply(void 0,e),z=!0),x}),M=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)};const E={eitherRect:function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},scaleRect:function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},removeStackingOffset:function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e},hasRelativeStackingContext:I,canUseDOM:M};function O(e){return e.ownerDocument||e.document||e}const H=function(e){return O(e).defaultView},N=function(e){return O(e).documentElement};var P=0;function V(){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 T(e){var t=H(e),n=N(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=V()),o}function R(e){var t=N(e),n=H(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}const D=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var i=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=r,i}(e)),{top:o,left:n,height:t.height,width:t.width}};function B(e){return e===(e.ownerDocument||{}).body?R(e):{x:e.scrollLeft,y:e.scrollTop}}const A=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||N(e)};function L(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n}function _(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}var F=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],j=function(){return E.canUseDOM()?window:null},K=/auto|scroll/,W=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)},U=function(e){if(!e||!E.hasRelativeStackingContext())return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},q=function(){return E.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},$={addOffset:function(e,t){return{left:e.left+t.left,top:e.top+t.top}},addScroll:function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}},align:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.margin;void 0===i&&(i={});var a=n.horizontal,s=n.vertical,l=r.horizontal,c=r.vertical,u=i.horizontal||0,d=i.vertical||0,m=t.top,g=t.left;return s===p&&(m+=t.height),s!==h&&s!==f||(m+=Math.round(t.height/2)),c===p&&(m-=o.height,d*=-1),c!==h&&c!==f||(m-=Math.round(o.height/2),d*=-1),a===v&&(g+=t.width),a!==h&&a!==f||(g+=Math.round(t.width/2)),l===v&&(g-=o.width,u*=-1),l!==h&&l!==f||(g-=Math.round(o.width/2),u*=-1),{top:m+d,left:g+u}},boundingOffset:function(e){if(!e.getBoundingClientRect){var t=T(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}},getFontStyles:function(e){var t=j();if(!t||!e)return[];var n=t.getComputedStyle(e);return F.map((function(e){return{key:e,value:n[e]}}))},getWindow:j,hasOffsetParent:function(e){return!!e&&Boolean(e.offsetParent)},offset:function(e){return e?D(e):null},offsetAtPoint:function(e,t){if(!e)return null;var n=e.style,o=n.left,r=n.top,i=n.transition;e.style.transition="none",e.style.left=t.left+"px",e.style.top=t.top+"px";var a=D(e);return e.style.left=o,e.style.top=r,e.offsetHeight,e.style.transition=i,a},position:function(e,t,n){return e&&t?function(e,t,n){void 0===n&&(n=1);var o=t?A(t):null,r=function(e,t){var n=H(e),o=n.getComputedStyle(e),r=D(e),i=t||A(e),a=e.ownerDocument,s=i!==a.body&&i!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){var c=n.getComputedStyle(i);(l=D(i)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}}(e,o),i=r.top,a=r.left,s=r.height,l=r.width,c=function(e,t){return e?B(e):function(e){var t=A(e);return t?B(t):{x:0,y:0}}(t)}(o,e),u=c.x,d=c.y,p=e.ownerDocument,h=o===p.body||o===p.documentElement?1:n;return{top:i+d*h,left:a+u*h,height:s,width:l}}(e,t,n||1):null},removeScroll:function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}},restrictToView:function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,r=e.elementAlign,i=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var l=o.top,c=o.left,u=o.height,d=o.width,p=a.height,h=a.width,f=s.horizontal||0,m=s.vertical||0,v=0,g=0,w=i.vertical===y,k=i.horizontal===y,x=i.vertical===b,z=i.horizontal===b;w&&(g+=C(l,u,p)),k&&(v+=C(c,d,h)),x&&(g+=S({margin:m,offset:l,size:u,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),z&&(v+=S({margin:f,offset:c,size:d,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var I=x&&0!==g,M=z&&0!==v,E=w&&0!==g,O=k&&0!==v;return{flipped:M||I,fitted:E||O,flip:{horizontal:M,vertical:I},fit:{horizontal:O,vertical:E},offset:{left:v,top:g}}},scrollPosition:R,scrollableParents:function(e){var t=[];if(!E.canUseDOM())return t;for(var n=e.parentElement;n;)(K.test(W(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t},getRelativeContextElement:U,stackingElementOffset:function(e){var t=U(e);return t?D(t):null},stackingElementScroll:function(e){var t=U(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(e){var t=U(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},useRelativePosition:function(e){return Boolean(U(e))},windowViewPort:T,zoomLevel:q,isZoomed:function(){return q()>1},zIndex:function(e,t){if(!e||!E.canUseDOM())return null;var n=function(e,t){for(var n,o,r=L(e),i=t;i&&(n=_(i),!(o=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)i=i.parentElement;return o}(e,t);if(!n)return null;var o=[e].concat(L(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}};const G=$;const Z=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,r=e.elementAlign,i=e.margin,a=e.offset,s=e.positionMode,l=e.scale||1,c="fixed"!==s&&G.hasOffsetParent(n)?function(e,t,n,o){var r=E.eitherRect(G.position(e,t,o),n);return E.scaleRect(r,o)}(t,n,a,l):function(e,t,n,o){var r=function(e,t){return e?{x:0,y:0}:G.scrollPosition(t)}(e,t),i=E.eitherRect(G.offset(e),n),a=2*o,s=G.stackingElementScroll(t);1!==o&&s&&(s.x/=a,s.y/=a);var l=G.stackingElementOffset(t);return 1!==o&&l&&(l.left/=a,l.top/=a),G.removeScroll(G.addScroll(E.removeStackingOffset(E.scaleRect(i,o),l),s),r)}(t,n,a,l),u=E.scaleRect(G.offset(n),l);return G.align({anchorAlign:o,anchorRect:c,elementAlign:r,elementRect:u,margin:i})};var Y,J={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700059782,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},X=(Y=function(e,t){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Y(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Q.apply(this,arguments)};function ee(e,t){if(e===t)return!0;if(!!e!=!!t)return!1;var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertyNames(t);if(n.length!==o.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}var te,ne={left:-1e3,top:0};!function(e){e.hiding="hiding",e.hidden="hidden",e.showing="showing",e.shown="shown",e.reposition="reposition"}(te||(te={}));var oe="k-animation-container-shown",re=function(e){function t(t){var n=e.call(this,t)||this;return n.context=0,n.state={current:te.hidden,previous:te.hidden,props:{}},n._popup=null,n.show=function(e){n.setPosition(e),n.animate(e.firstChild,"enter",n.onOpened),n.setState({current:te.shown,previous:n.state.current})},n.setPosition=function(e){var t=n.props,o=t.anchorAlign,r=t.popupAlign,i=t.collision,a=t.offset,s=t.anchor,l=t.margin,c=t.scale,u=t.positionMode,d=e.style,p=d.width,h=d.height;e.style.width=e.offsetWidth+"px",e.style.height=e.offsetHeight+"px";var f=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,r=e.anchorAlign,i=e.elementAlign,a=e.collisions,s=e.margin,l=e.scale||1,c=G.offsetAtPoint(o,n),u=E.scaleRect(c,l),d=E.scaleRect(G.offset(t),l),p=E.eitherRect(d,n),h=e.viewPort||G.windowViewPort(o);h.width=h.width/l,h.height=h.height/l;var f=G.restrictToView({anchorAlign:r,anchorRect:p,collisions:a,elementAlign:i,elementRect:u,margin:s,viewPort:h}),m=G.addOffset(n,f.offset);return{flip:f.flip,flipped:f.flipped,fit:f.fit,fitted:f.fitted,offset:m}}({anchor:s,anchorAlign:o,element:e,elementAlign:r,collisions:i,currentLocation:Z({anchor:s,anchorAlign:o,element:e,elementAlign:r,offset:a,margin:l,positionMode:u,scale:c}),margin:n.props.margin});if(e.style.top=f.offset.top+"px",e.style.left=f.offset.left+"px",e.style.width=p,e.style.height=h,n._collisions={fit:f.fit,fitted:f.fitted,flip:f.flip,flipped:f.flipped},n.props.onPosition){var m={target:n,flipped:f.flipped,fitted:f.fitted};n.props.onPosition.call(void 0,m)}},n.onOpened=function(){var e=n._popup;e&&(n.props.show&&e.classList.add(oe),n.attachRepositionHandlers(e),n.props.onOpen&&n.props.onOpen.call(void 0,{target:n}))},n.animate=function(e,t,o){if(n.props.popupAlign){var r,i=n.props.popupAlign,l=i.horizontal,c=i.vertical;r="left"===l&&"center"===c?"right":"right"===l&&"center"===c?"left":"top"===c?"down":"up",n._collisions&&n._collisions.flipped&&(r={down:"up",up:"down",left:"right",right:"left"}[r]),function(e,t,n,o,r){if(0===n)return r();var i="k-slide-"+t+"-"+o,l=i+"-active",c=function(t){t.target===e&&(e.removeEventListener("transitionend",c),a(e),e.style.display="exit"===o?"none":"",r())};e.addEventListener("transitionend",c);var u=e.ownerDocument;if(u){var d=u.defaultView;if(d){var p=function(){a(e),e.classList.add(i),d.requestAnimationFrame((function(){e.style.transitionDuration=n+"ms",e.classList.add(l)}))};s?d.requestAnimationFrame(p):p()}}}(e,r,n.animationDuration[t],t,o)}},n.onClosing=function(e){n.props.show||e.classList.remove(oe),n.detachRepositionHandlers()},n.onClosed=function(){n.state.current===te.hiding&&n.state.previous===te.shown&&n.setState({current:te.hidden,previous:n.state.current}),n.props.onClose&&n.props.onClose.call(void 0,{target:n})},n.getCurrentZIndex=function(){return n.context?n.context+1:100},(0,l.s)(J),n.reposition=function(e,t,n){var o,r,i,a;void 0===n&&(n={});var s=0;n=n||{};var l=function(){s=!1===n.leading?0:(new Date).getTime(),o=void 0,a=e.apply(r,i),o||(r=i=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var u=t-(c-s);return r=void 0,i=arguments,u<=0||u>t?(o&&(clearTimeout(o),o=void 0),s=c,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=window.setTimeout(l,u)),a}}(n.reposition.bind(n),16.666666666666668),n}return X(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._popup},enumerable:!1,configurable:!0}),t.getDerivedStateFromProps=function(e,t){var n=e.show,o=e.anchor,r=e.anchorAlign,i=e.appendTo,a=e.collision,s=e.popupAlign,l=e.className,c=e.popupClass,u=e.style,d=e.offset,p=e.contentKey,h=Q(Q({},t),{props:{show:n,anchor:o,anchorAlign:r,appendTo:i,collision:a,popupAlign:s,className:l,popupClass:c,style:u,offset:d,contentKey:p}});return e.show?t.current===te.hidden||t.current===te.hiding?Q(Q({},h),{current:te.showing,previous:t.current}):t.current===te.showing?Q(Q({},h),{current:te.shown,previous:t.current}):t.current!==te.shown||ee(d,t.props.offset)&&ee(r,t.props.anchorAlign)&&ee(i,t.props.appendTo)&&ee(a,t.props.collision)&&ee(s,t.props.popupAlign)&&ee(u,t.props.style)&&o===t.props.anchor&&c===t.props.popupClass&&l===t.props.className?h:Q(Q({},h),{current:te.reposition,previous:t.current}):t.current===te.hiding||t.current===te.hidden?Q(Q({},h),{current:te.hidden,previous:t.current}):Q(Q({},h),{current:te.hiding,previous:t.current})},t.prototype.componentDidUpdate=function(e){this.state.current===te.showing&&this._popup?this.show(this._popup):this.state.current===te.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===te.reposition&&this.state.previous===te.shown?this.setState({current:te.shown,previous:this.state.current}):this.state.current===te.shown&&e.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},t.prototype.componentDidMount=function(){this.state.current===te.showing&&this._popup&&this.show(this._popup)},t.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,i=t.className,a=t.popupClass,s=t.show,l=t.id,p=t.positionMode,h=this.props.appendTo?this.props.appendTo:c.N?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===te.reposition&&this.state.previous===te.shown&&this._popup&&this.setPosition(this._popup);var f=Object.assign({},{position:p,top:0,left:-1e4},this.props.style||{}),m=this.state.current===te.hiding;if((s||m)&&h){var v=this.getCurrentZIndex(),g=o.createElement(u.$.Provider,{value:v},o.createElement("div",{className:(0,d.A)("k-animation-container",i),id:l,ref:function(t){return e._popup=t},style:Q({zIndex:v},f)},o.createElement("div",{className:(0,d.A)("k-child-animation-container"),style:{transitionDelay:"0ms"}},o.createElement("div",{role:this.props.role,className:(0,d.A)("k-popup",a)},n))));return null!==this.props.appendTo?r.createPortal(g,h):g}return null},Object.defineProperty(t.prototype,"animationDuration",{get:function(){var e=this.props.animate,t=0,n=0;return e&&(!0===e?t=n=300:(t=e.openDuration||0,n=e.closeDuration||0)),{enter:t,exit:n}},enumerable:!1,configurable:!0}),t.prototype.attachRepositionHandlers=function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=G.scrollableParents(this.props.anchor||e),this._scrollableParents&&this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},t.prototype.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)},t.prototype.reposition=function(){this.setState({current:te.reposition,previous:this.state.current})},t.propTypes={anchor:function(e){var t=e.anchor;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(e){var t=e.appendTo;return t&&"number"!=typeof t.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),id:i.string,popupClass:i.oneOfType([i.string,i.arrayOf(i.string),i.object]),collision:i.shape({horizontal:i.oneOf([y,b,w]),vertical:i.oneOf([y,b,w])}),anchorAlign:i.shape({horizontal:i.oneOf([m,h,v]),vertical:i.oneOf([g,h,p])}),popupAlign:i.shape({horizontal:i.oneOf([m,h,v]),vertical:i.oneOf([g,h,p])}),offset:i.shape({left:i.number,top:i.number}),children:i.oneOfType([i.element,i.node]),show:i.bool,animate:i.oneOfType([i.bool,i.shape({openDuration:i.number,closeDuration:i.number})]),margin:i.shape({horizontal:i.number,vertical:i.number}),positionMode:i.oneOf(["fixed","absolute"]),scale:i.number,style:i.object,onClose:i.func,onPosition:i.func,onOpen:i.func},t.defaultProps={collision:{horizontal:y,vertical:b},anchorAlign:{horizontal:m,vertical:p},popupAlign:{horizontal:m,vertical:g},offset:ne,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},t.contextType=u.$,t.displayName="PopupComponent",t}(o.Component)},5362:(e,t,n)=>{n.r(t),n.d(t,{Popup:()=>o.G,PopupWithoutContext:()=>r.B,PopupPropsContext:()=>o.v});var o=n(1754),r=n(61)},1779:(e,t,n)=>{n.d(t,{_:()=>i});var o=n(3899),r=n(9844),i=o.forwardRef((function(e,t){var n=o.useRef(null),i=o.useRef(null),a=o.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);o.useImperativeHandle(i,(function(){return{element:a()||null}})),o.useImperativeHandle(t,(function(){return i.current})),o.useImperativeHandle(e.childRef,(function(){return n.current}));var s=o.useCallback((function(t){e.onPress&&e.onPress({element:a(),target:i.current,event:t})}),[a,e.onPress]),l=o.useCallback((function(t){e.onRelease&&e.onRelease({element:a(),target:i.current,event:t})}),[a,e.onRelease]),c=o.useCallback((function(t){e.onDragStart&&e.onDragStart({element:a(),target:i.current,event:t})}),[e,a]),u=o.useCallback((function(t){e.onDrag&&e.onDrag({element:a(),target:i.current,event:t})}),[a,e.onDrag]),d=o.useCallback((function(t){e.onDragEnd&&e.onDragEnd({element:a(),target:i.current,event:t})}),[a,e.onDragEnd]);return(0,r.O)(n,{onPress:s,onRelease:l,onDragStart:c,onDrag:u,onDragEnd:d},{mouseOnly:e.mouseOnly,autoScroll:e.autoScroll,hint:e.hint,scrollContainer:e.scrollContainer}),e.children?o.cloneElement(o.Children.only(e.children),{ref:n}):null}));i.displayName="KendoReactDraggable"},3503:(e,t,n)=>{n.d(t,{O:()=>r});var o=function(){return"undefined"!=typeof document?document:{}},r=function(){function e(){this.scrollbar=0}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=o();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!1,configurable:!0}),e}()},7827:(e,t,n)=>{n.d(t,{N:()=>o});var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},8047:(e,t,n)=>{n.d(t,{A:()=>o});var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n={},o=function(e){return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o(e):function(e){return"object"==typeof e?Object.keys(e).forEach((function(t){n[t]=e[t]})):n[e]=!0}(e)}))};return o(e),Object.keys(n).map((function(e){return n[e]&&e||null})).filter((function(e){return null!==e})).join(" ")}},4500:(e,t,n)=>{n.d(t,{ky:()=>r,d9:()=>i,kI:()=>a,Ve:()=>s,M2:()=>l});var o=n(3899),r=function(e){return e?new Date(e.getTime()):null};function i(e){var t={};return a(e,t),t}function a(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];t[n]=s(o,t[n])}}function s(e,t){if(Array.isArray(e))return l(e);if(e instanceof Date)return r(e);if(o.isValidElement(e))return o.cloneElement(e,e.props);if(e&&"object"==typeof e){var n=t||{};return a(e,n),n}return e}function l(e){return e.map((function(e){return s(e,void 0)}))}},8259:(e,t,n)=>{n.d(t,{$:()=>r,u:()=>i});var o=n(3899),r=o.createContext(0),i=function(){return o.useContext(r)};r.displayName="KendoReactZIndexContext"},2333:(e,t,n)=>{n.d(t,{Dg:()=>i,Gc:()=>a,Fg:()=>s,tk:()=>l});var o=n(3899),r=n(3228),i=o.createContext([void 0,r.Z]),a=o.createContext([void 0,r.Z]),s=o.createContext([[],r.Z,r.Z]),l=o.createContext([[],r.Z,r.Z])},5407:(e,t,n)=>{function o(e,t,n,o){if(e){var r={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(r,o))}}n.d(t,{N:()=>o})},4100:(e,t,n)=>{n.d(t,{E:()=>r});var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function r(e){var t=[];return e.replace(o,(function(e,n,o,r){t.push(void 0!==n?n:o||r)})),t}},9124:(e,t,n)=>{n.d(t,{n:()=>o});var o=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}}},3769:(e,t,n)=>{n.d(t,{T:()=>o,v:()=>r});var o=function(e){var t=e.shadowRoot,n=e.contentDocument;return t&&t.activeElement?o(t.activeElement):n&&n.activeElement?o(n.activeElement):e},r=function(e){if(e&&e.activeElement)return o(e.activeElement)}},4703:(e,t,n)=>{n.d(t,{p:()=>o});var o=function(e,t,n){var o="string"==typeof e?parseInt(e,void 0):e;if(NaN!==o)return void 0!==o?o:t?n?void 0:-1:0}},9659:(e,t,n)=>{n.d(t,{Y:()=>i});var o=n(4100),r={};function i(e){if(r[e])return r[e];var t=(0,o.E)(e);return r[e]=function(e){for(var n=e,o=0;o<t.length&&n;o++)n=n[t[o]];return n},r[e]}r.undefined=function(){}},3198:(e,t,n)=>{n.d(t,{M:()=>o});var 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}},848:(e,t,n)=>{n.d(t,{Y:()=>a,u:()=>s});var o=n(3899),r=n(9656),i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},a=function(){return o.createContext((function(e){return e}))},s=function(e,t){return o.forwardRef((function(n,a){var s=(0,r.Y)(e,n);return o.createElement(t,i({},s,{ref:a}))}))}},6059:(e,t,n)=>{n.d(t,{U:()=>i});var o=n(3899),r=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function i(e){var t=e.onFocus,n=e.onBlur,i=e.onSyncFocus,a=e.onSyncBlur,s=o.useRef(!1),l=o.useRef(0),c=o.useCallback((function(e){clearTimeout(l.current),l.current=window.setTimeout((function(){return e()}))}),[l]),u=o.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(l.current),i&&i.call(void 0,e[0]),s.current||(s.current=!0,t&&t.call.apply(t,r([void 0],e,!1)))}),[s,t,i]),d=o.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];a&&a.call(void 0,e[0]),c((function(){s.current&&n&&(s.current=!1,n.call.apply(n,r([void 0],e,!1)))}))}),[s,c,n,a]);return o.useEffect((function(){return function(){clearTimeout(l.current)}}),[]),{onFocus:u,onBlur:d}}},9447:(e,t,n)=>{n.d(t,{A:()=>o});var o=function(e){return[e,{}]}},8199:(e,t,n)=>{n.d(t,{n:()=>r});var o=n(3899);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},9844:(e,t,n)=>{n.d(t,{O:()=>g});var o,r=n(3899),i=function(){var e=window&&window.navigator.userAgent;if(!e)return!1;var t=!1,n=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in o)if(o.hasOwnProperty(r)&&(n=e.match(o[r]))){(t={})[r]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.DOCUMENT_NODE||n[2],10);break}return t},a=function(e){return e&&e.ownerDocument||window.document},s=function(e){var t=i(),n=a(e);return t.edge||t.safari?n.body:n.documentElement},l=function(e){if(e&&e.className&&"string"==typeof e.className&&e.className.indexOf("k-auto-scrollable")>-1)return!0;var t=window.getComputedStyle(e,"overflow").overflow;return t.indexOf("auto")>-1||t.indexOf("scroll")>-1},c=function(e){var t=s(e);if(!e||e===document.body||e===document.documentElement)return t;for(var n=e;n&&n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&n.nodeType!==Node.DOCUMENT_NODE&&!l(n);)n=n.parentNode;return!n||n!==document.body&&n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?n:t};!function(e){e.POINTER_DOWN="pointerdown",e.POINTER_MOVE="pointermove",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.MOUSE_DOWN="mousedown",e.MOUSE_MOVE="mousemove",e.MOUSE_UP="mouseup",e.CONTEXT_MENU="contextmenu",e.TOUCH_START="touchstart",e.TOUCH_MOVE="touchmove",e.TOUCH_END="touchend",e.TOUCH_CANCEL="touchcancel",e.SCROLL="scroll",e.START="KENDO_DRAG_AND_DROP_START",e.MOVE="KENDO_DRAG_AND_DROP_MOVE",e.END="KENDO_DRAG_AND_DROP_END",e.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(o||(o={}));var u=function(){},d=function(e,t,n){void 0===n&&(n={});var r,i,l,d,p,h=n.onIsPressedChange,f=void 0===h?u:h,m=n.onIsScrollingChange,v=void 0===m?u:m,g=n.onVelocityChange,y=void 0===g?u:g,b=n.onOffsetChange,w=void 0===b?u:b,k=n.onPageOffsetChange,x=void 0===k?u:k,z=n.onClientOffsetChange,C=void 0===z?u:z,S=n.onScrollOffsetChange,I=void 0===S?u:S,M=n.onInitialScrollOffsetChange,E=void 0===M?u:M,O=t.payload,H=O.element,N=O.hint,P=e.autoScrollDirection,V=e.scrollableParent,T=function(e,t){return function(e){return/^touch/.test(e.type)}(e)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(e){return/^(scroll)/.test(e.type)}(e)?{pageX:t.pageOffset.x,pageY:t.pageOffset.y,clientX:t.clientOffset.x,clientY:t.clientOffset.y,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,offsetX:t.offset.x,offsetY:t.offset.y,type:e.type,originalEvent:e,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,scrollX:t.scrollOffset.x,scrollY:t.scrollOffset.y,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,originalEvent:e}}(t.event,e);switch(T.type){case o.POINTER_DOWN:if(T.type===o.POINTER_DOWN&&(!T.originalEvent.isPrimary||0!==T.originalEvent.button))break;case o.MOUSE_DOWN:if(T.type===o.MOUSE_DOWN&&T.originalEvent.which&&T.originalEvent.which>1||e.ignoreMouse)break;case o.TOUCH_START:if(T.type===o.TOUCH_START&&1!==T.originalEvent.touches.length)break;case o.START:var R=V||c(t.payload.element);E(R instanceof Window?{x:R.scrollX,y:R.scrollY}:{x:R.scrollLeft,y:R.scrollTop}),C({x:T.clientX,y:T.clientY}),x({x:T.pageX,y:T.pageY}),w({x:T.offsetX,y:T.offsetY}),f(!0),O.onPress&&O.onPress(T);break;case o.SCROLL:if(T.type===o.SCROLL&&!e.pressed)break;var D=V||c(H),B=D instanceof Window?{x:D.scrollX,y:D.scrollY}:{x:D.scrollLeft,y:D.scrollTop};T.scrollX=B.x-e.initialScrollOffset.x,T.scrollY=B.y-e.initialScrollOffset.y,I({x:T.scrollX,y:T.scrollY});case o.POINTER_MOVE:if(T.type===o.POINTER_MOVE&&!T.originalEvent.isPrimary)break;case o.MOUSE_MOVE:case o.TOUCH_MOVE:if(T.type===o.TOUCH_MOVE&&1!==T.originalEvent.touches.length)break;case o.MOVE:if(e.pressed){if(e.autoScroll&&"scroll"!==T.originalEvent.type&&H){var A=a(H),L=V||c(A.elementFromPoint(T.clientX,T.clientY)),_=(r=T.clientX,i=T.clientY,l=function(e,t){var n=s(e);if(e===n)return{top:n.scrollTop,left:n.scrollLeft,bottom:n.scrollTop+t.innerHeight,right:n.scrollLeft+t.innerWidth};var o=e.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(L,function(e){var t=a(e);return t&&t.defaultView||window}(H)),d={x:0,y:0},p=50,r-l.left<p?d.x=-(p-(r-l.left)):l.right-r<p&&(d.x=p-(l.right-r)),i-l.top<p?d.y=-(p-(i-l.top)):l.bottom-i<p&&(d.y=p-(l.bottom-i)),d);y({x:P&&!1===P.horizontal?0:_.x,y:P&&!1===P.vertical?0:_.y}),v(0!==_.y||0!==_.x)}!e.drag&&O.onDragStart&&O.onDragStart(T),O.onDrag&&O.onDrag(T);var F=function(e,t){var n=0,o=null;return t.forEach((function(t){if(t&&e){var r=function(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=Math.max(o.top,n.top),i=Math.max(o.left,n.left),a=Math.min(o.left+o.width,n.left+n.width),s=Math.min(o.top+o.height,n.top+n.height),l=a-i,c=s-r;if(i<a&&r<s){var u=o.width*o.height,d=n.width*n.height,p=l*c;return Number((p/(u+d-p)).toFixed(4))}return 0}(e,t);r>n&&(n=r,o=t)}})),o}(N||H,e.drops.map((function(e){return e&&e.element})).filter((function(e){return e!==(N||H)}))),j=e.drops.find((function(e){return e.element===F}));j&&F&&function(e,t,n){var o=n.getBoundingClientRect();return o.top<=t&&o.left<=e&&t<=o.bottom&&e<=o.right}(T.clientX,T.clientY,V||c(F))&&F!==H?(e.drop&&e.drop.element)!==F?(e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T),j.onDragEnter&&j.onDragEnter(T)):j.onDragOver&&j.onDragOver(T):e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}C({x:T.clientX,y:T.clientY}),x({x:T.pageX,y:T.pageY});break;case o.POINTER_UP:if(T.type===o.POINTER_UP&&!T.originalEvent.isPrimary)break;case o.MOUSE_UP:case o.TOUCH_END:if(T.type===o.TOUCH_END&&1!==T.originalEvent.touches.length)break;case o.END:f(!1),v(!1),I({x:0,y:0}),O.onRelease&&O.onRelease(T),e.drop&&e.drop.onDrop&&e.drop.onDrop(T),e.drag&&O.onDragEnd&&O.onDragEnd(T);break;case o.POINTER_CANCEL:case o.CONTEXT_MENU:case o.TOUCH_CANCEL:case o.CANCEL:f(!1),v(!1),I({x:0,y:0}),O.onDragEnd&&O.onDragEnd(T),e.drop&&e.drop.onDragLeave&&e.drop.onDragLeave(T)}},p=function(e,t){if(e){var n,o;e===s(e)?(n=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(n=e.offsetHeight<=e.scrollHeight,o=e.offsetWidth<=e.scrollWidth);var r=e.scrollTop+t.y,i=n&&r>0&&r<e.scrollHeight,a=e.scrollLeft+t.x,l=o&&a>0&&a<e.scrollWidth;i?e.scrollTop+=t.y:n&&r<0&&(e.scrollTop=0),l?e.scrollLeft+=t.x:o&&a<0&&(e.scrollLeft=0)}},h=n(3228),f=n(4912),m=n(2333),v=2e3;function g(e,t,n){void 0===n&&(n={});var o=t.onPress,i=void 0===o?h.Z:o,a=t.onRelease,s=void 0===a?h.Z:a,l=t.onDragStart,u=void 0===l?h.Z:l,g=t.onDrag,y=void 0===g?h.Z:g,b=t.onDragEnd,w=void 0===b?h.Z:b,k=n.hint,x=void 0===k?null:k,z=n.mouseOnly,C=void 0!==z&&z,S=n.autoScroll,I=void 0===S||S,M=n.scrollContainer,E=void 0===M?null:M,O=r.useState(!1),H=O[0],N=O[1],P=r.useState(!1),V=P[0],T=P[1],R=(0,f.W)(m.Gc)[0],D=(0,f.W)(m.Dg),B=D[0],A=D[1],L=r.useContext(m.tk)[0],_=r.useContext(m.Fg),F=_[0],j=_[1],K=_[2],W=r.useRef({x:0,y:0}),U=r.useRef(),q=r.useRef(!1),$=r.useRef(),G=r.useRef(null),Z=r.useRef(!1),Y=r.useRef({x:0,y:0}),J=r.useRef({x:0,y:0}),X=r.useRef({x:0,y:0}),Q=r.useRef({x:0,y:0}),ee=r.useRef({x:0,y:0}),te=r.useRef({x:0,y:0}),ne=Boolean("undefined"!=typeof window&&window.PointerEvent),oe=!C&&ne,re=r.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),ie=r.useCallback((function(){return x&&x.current&&x.current.element?x.current.element:x?x.current:null}),[x]),ae=r.useCallback((function(){return E&&E.current&&E.current.element?E.current.element:E?E.current:null}),[E]),se=r.useCallback((function(){return"object"==typeof I&&I.boundaryElementRef&&I.boundaryElementRef.current&&I.boundaryElementRef.current.element?I.boundaryElementRef.current.element:"object"==typeof I&&I.boundaryElementRef&&I.boundaryElementRef.current?I.boundaryElementRef.current:null}),[I]),le=r.useRef(null);r.useImperativeHandle(le,(function(){return{element:re(),hint:ie(),onPress:ke,onDragStart:ze,onDrag:Ce,onDragEnd:Se,onRelease:xe,data:e.current}}));var ce=r.useCallback((function(){var e=re();return e&&e.ownerDocument||document}),[re]),ue=r.useCallback((function(){var e=ce();return e&&e.defaultView||window}),[ce]),de=r.useCallback((function(){return{drag:B?B.current:null,drop:R?R.current:null,drags:F.map((function(e){return e.current})),drops:L.map((function(e){return e.current})),pressed:H,ignoreMouse:q.current,scrollOffset:ee.current,offset:Y.current,pageOffset:J.current,initialScrollOffset:te.current,clientOffset:X.current,initialClientOffset:Q.current,velocity:W.current,autoScroll:Boolean("object"==typeof I?!1!==I.enabled:I),scrollableParent:se(),autoScrollDirection:"object"==typeof I?I.direction:{horizontal:!0,vertical:!0},isScrolling:V}}),[B,R,F,L,H,I,se,V]),pe=r.useCallback((function(e){N(e)}),[]),he=r.useCallback((function(e){T(e)}),[]),fe=r.useCallback((function(e){W.current=e}),[]),me=r.useCallback((function(e){Y.current=e}),[]),ve=r.useCallback((function(e){X.current=e}),[]),ge=r.useCallback((function(e){J.current=e}),[]),ye=r.useCallback((function(e){Q.current=e}),[]),be=r.useCallback((function(e){ee.current=e}),[]),we=r.useCallback((function(e){te.current=e}),[]),ke=r.useCallback((function(e){i(e)}),[i]),xe=r.useCallback((function(e){s(e)}),[s]),ze=r.useCallback((function(t){A(le,{target:e.current,event:t}),u(t)}),[A,e,u]),Ce=r.useCallback((function(e){y(e)}),[y]),Se=r.useCallback((function(t){Z.current||(A(null,{target:e.current,event:t}),w(t))}),[w,A,e]),Ie=r.useCallback((function(e){d(de(),{event:e,payload:le.current},{onVelocityChange:fe,onOffsetChange:me,onClientOffsetChange:ve,onPageOffsetChange:ge,onInitialClientOffsetChange:ye,onScrollOffsetChange:be,onInitialScrollOffsetChange:we,onIsPressedChange:pe,onIsScrollingChange:he})}),[de,fe,me,ge,ve,ye,we,pe,be,he]),Me=r.useCallback((function(e){Ie(e)}),[Ie]),Ee=r.useCallback((function(e){Ie(e)}),[Ie]),Oe=r.useCallback((function(e){Ie(e)}),[Ie]),He=r.useCallback((function(e){Ie(e)}),[Ie]),Ne=r.useCallback((function(e){Ie(e)}),[Ie]),Pe=r.useCallback((function(e){Ie(e)}),[Ie]),Ve=r.useCallback((function(e){Ie(e)}),[Ie]),Te=r.useCallback((function(e){e.preventDefault(),Ie(e)}),[Ie]),Re=r.useCallback((function(e){e.preventDefault(),Ie(e)}),[Ie]),De=r.useCallback((function(e){e.preventDefault(),Ie(e)}),[Ie]),Be=r.useCallback((function(e){if(0===e.touches.length&&1===e.changedTouches.length){var t=ue();q.current=!0,$.current=t.setTimeout((function(){q.current=!1}),v)}Ie(e)}),[Ie,ue]),Ae=r.useCallback((function(e){Ie(e)}),[Ie]),Le=r.useCallback((function(){var e=re();if(e){var t=e.style.touchAction;return e.style.touchAction="none",function(){e.style.touchAction=t}}}),[re]),_e=r.useCallback((function(){return j(le),function(){K(le)}}),[K,j]);r.useEffect((function(){var e=ue();if(V){var t=ae()||c(document.elementFromPoint(X.current.x,X.current.y));e.clearInterval(U.current),U.current=e.setInterval((function(){p(t,{x:W.current.x,y:W.current.y})}),50)}return function(){e.clearInterval(U.current)}}),[re,ae,ue,V]),r.useEffect(Le,[Le]),r.useEffect((function(){var e=ue(),t=re(),n=ce();return oe?(t&&(G.current=c(t),G.current&&G.current.addEventListener("scroll",Ae,{passive:!0}),t.addEventListener("pointerdown",Me,{passive:!0})),H&&(n.addEventListener("pointermove",Ee),n.addEventListener("pointerup",He,!0),n.addEventListener("contextmenu",Te),n.addEventListener("pointercancel",Oe,{passive:!0}))):(e.addEventListener("touchmove",h.Z,{capture:!1,passive:!1}),t&&(t.addEventListener("mousedown",Ne,{passive:!0}),C||(t.addEventListener("touchstart",Re,{passive:!0}),H&&(t.addEventListener("touchmove",De,{passive:!0}),t.addEventListener("touchend",Be,{passive:!0})))),H&&(n.addEventListener("mousemove",Pe,{passive:!0}),n.addEventListener("mouseup",Ve,{passive:!0}))),function(){G.current&&G.current.removeEventListener("scroll",Ae),t&&(t.removeEventListener("pointerdown",Me),t.removeEventListener("mousedown",Ne),t.removeEventListener("touchstart",Re),t.removeEventListener("touchmove",De),t.removeEventListener("touchend",Be)),n.removeEventListener("pointermove",Ee),n.removeEventListener("pointerup",He,!0),n.removeEventListener("contextmenu",Te),n.removeEventListener("pointercancel",Oe),n.removeEventListener("mousemove",Pe),n.removeEventListener("mouseup",Ve),e.removeEventListener("touchmove",h.Z),e.clearTimeout($.current)}}),[H,ue,re,ce,C,oe,Te,Ne,Pe,Ve,Oe,Me,Ee,He,Be,De,Re,Ae]),r.useEffect((function(){return Z.current=!1,function(){Z.current=!0}}),[]),r.useLayoutEffect(_e,[_e])}},4912:(e,t,n)=>{n.d(t,{W:()=>r});var o=n(3899),r=function(e,t){var n=o.useContext(e),r=n[0],i=n[1],a=o.useState(t),s=a[0],l=a[1];return[void 0!==r?r:s,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];void 0!==r?i.apply(void 0,e):l(e[0])}]}},3322:(e,t,n)=>{n.d(t,{i:()=>r});var o=n(3899),r=function(e,t,n){void 0===n&&(n={});var r=o.useCallback((function(o){n.onMouseDown&&n.onMouseDown.call(void 0,o),e.onMouseDown&&e.onMouseDown.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseDown,e.onMouseDown,t]),i=o.useCallback((function(o){n.onMouseUp&&n.onMouseUp.call(void 0,o),e.onMouseUp&&e.onMouseUp.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseUp,e.onMouseUp,t]);return{onClick:o.useCallback((function(o){n.onClick&&n.onClick.call(void 0,o),e.onClick&&e.onClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onClick,e.onClick,t]),onMouseUp:i,onMouseDown:r,onDoubleClick:o.useCallback((function(o){n.onDoubleClick&&n.onDoubleClick.call(void 0,o),e.onDoubleClick&&e.onDoubleClick.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onDoubleClick,e.onDoubleClick,t]),onMouseEnter:o.useCallback((function(o){n.onMouseEnter&&n.onMouseEnter.call(void 0,o),e.onMouseEnter&&e.onMouseEnter.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseEnter,e.onMouseEnter,t]),onMouseLeave:o.useCallback((function(o){n.onMouseLeave&&n.onMouseLeave.call(void 0,o),e.onMouseLeave&&e.onMouseLeave.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseLeave,e.onMouseLeave,t]),onMouseMove:o.useCallback((function(o){n.onMouseMove&&n.onMouseMove.call(void 0,o),e.onMouseMove&&e.onMouseMove.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseMove,e.onMouseMove,t]),onMouseOut:o.useCallback((function(o){n.onMouseOut&&n.onMouseOut.call(void 0,o),e.onMouseOut&&e.onMouseOut.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOut,e.onMouseOut,t]),onMouseOver:o.useCallback((function(o){n.onMouseOver&&n.onMouseOver.call(void 0,o),e.onMouseOver&&e.onMouseOver.call(void 0,{target:t.current,syntheticEvent:o})}),[n.onMouseOver,e.onMouseOver,t])}}},9656:(e,t,n)=>{n.d(t,{Y:()=>r});var o=n(3899),r=function(e,t){return o.useContext(e)(t)}},1573:(e,t,n)=>{n.d(t,{V:()=>r});var o=n(3899);function r(e,t,n){var r=o.useState(t),i=r[0],a=r[1];return o.useEffect((function(){if(!i&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&a(t)}}),n),i}},7681:(e,t,n)=>{n.d(t,{J:()=>u});var o=n(3899),r=n(189),i=n(8047),a=n(698),s=n(3218),l=n(3322),c=function(){return c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)},u=o.forwardRef((function(e,t){var n=e.className,r=e.name,u=e.themeColor,p=e.size,h=e.flip,f=e.style,m=e.id,v=e.tabIndex,g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["className","name","themeColor","size","flip","style","id","tabIndex"]),y=o.useRef(null),b=o.useRef(null);o.useImperativeHandle(y,(function(){return{element:b.current}})),o.useImperativeHandle(t,(function(){return y.current}));var w=o.useMemo((function(){return p||d.size}),[p]),k=o.useMemo((function(){return h||d.flip}),[h]),x=o.useMemo((function(){var e;return(0,i.A)("k-icon","k-font-icon",r&&(0,s._z)(r),((e={})["k-color-".concat(u)]=u,e["k-flip-h"]="horizontal"===k||"both"===k,e["k-flip-v"]="vertical"===k||"both"===k,e),a.w[w],n)}),[r,u,w,k,n]),z=(0,l.i)(e,y);return o.createElement("span",c({ref:b},g,z,{className:x,id:m,tabIndex:v,style:f,role:"presentation"}))}));u.propTypes={style:r.object,classNames:r.string,name:r.string,themeColor:r.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:r.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:r.oneOf(["default","horizontal","vertical","both"])};var d={size:"default",flip:"default"};u.displayName="KendoIcon"},8130:(e,t,n)=>{n.d(t,{a:()=>l});var o=n(3899),r=n(7681),i=n(6584),a=n(8300),s=function(){return s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},l=o.forwardRef((function(e,t){var n,l,c=o.useContext(a.r),u=c.type,d=c.icons,p=e.icon,h=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["icon"]),f="svg"===u?(null===(n=e.icon)||void 0===n?void 0:n.name)||e.name:e.name||(null===(l=e.icon)||void 0===l?void 0:l.name),m=(f=f&&d&&d[f]&&"string"==typeof d[f]?d[f]:f)&&d&&d[f]&&"string"!=typeof d[f]?d[f]:p;return"svg"===u&&m?o.createElement(i.l,s({},e,{icon:m,ref:t})):o.createElement(r.J,s({},h,{name:f,ref:t}))}));l.displayName="KendoIconWrap"},8300:(e,t,n)=>{n.d(t,{r:()=>o});var o=n(3899).createContext({type:"svg"});o.displayName="KendoReactIconsContext"},6584:(e,t,n)=>{n.d(t,{l:()=>l});var o=n(3899),r=n(189),i=n(8047),a=n(698),s=function(){return s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},l=o.forwardRef((function(e,t){var n=e.children,r=e.className,l=e.svgClassName,u=e.icon,d=e.flip,p=e.id,h=e.tabIndex,f=e.size,m=e.style,v=e.svgStyle,g=e.themeColor,y=e.viewBox,b=(e.name,e.onClick),w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["children","className","svgClassName","icon","flip","id","tabIndex","size","style","svgStyle","themeColor","viewBox","name","onClick"]),k=o.useRef(null);o.useImperativeHandle(t,(function(){return{element:k.current}}));var x=o.useMemo((function(){return u?u.name:c.icon}),[u]),z=o.useMemo((function(){return f||c.size}),[f]),C=o.useMemo((function(){return d||c.flip}),[d]),S=o.useMemo((function(){return y||c.viewBox}),[y]),I=o.useMemo((function(){var e;return(0,i.A)("k-icon","k-svg-icon","k-svg-i-"+x,((e={})["k-color-".concat(g)]=g,e["k-flip-h"]="horizontal"===C||"both"===C,e["k-flip-v"]="vertical"===C||"both"===C,e),a.w[z],r)}),[x,g,z,C,r]),M=o.useMemo((function(){return e.width&&e.height?s({width:e.width,height:e.height},m):e.width?s({width:e.width,height:e.width},m):e.height?s({width:e.height,height:e.height},m):s({},m)}),[e.width,e.height,m]);return o.createElement("span",{className:I,style:M,ref:k,onClick:b},o.createElement("svg",s({id:p,className:l,style:v,"aria-hidden":!0,tabIndex:h,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:u?u.viewBox:S,dangerouslySetInnerHTML:u?{__html:u.content}:void 0},w),u?void 0:n))}));l.propTypes={style:r.object,classNames:r.string,children:r.any,icon:r.object,themeColor:r.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:r.oneOf(["default","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"]),flip:r.oneOf(["default","horizontal","vertical","both"])};var c={size:"default",flip:"default",icon:"",viewBox:"0 0 24 24"};l.displayName="KendoSvgIcon"},698:(e,t,n)=>{n.d(t,{w:()=>o});var o={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl",xxlarge:"k-icon-xxl",xxxlarge:"k-icon-xxxl"}},3218:(e,t,n)=>{n.d(t,{iJ:()=>r,_z:()=>i,wi:()=>a});var o=n(189),r=function(e){return e.replace(/^k-i-/,"")},i=function(e){return"k-i-"+e},a=o.shape({name:o.string.isRequired,content:o.string.isRequired,viewBox:o.string.isRequired})},3493:(e,t,n)=>{n.d(t,{R:()=>o});var o={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}},1262:(e,t,n)=>{n.r(t),n.d(t,{AsyncFocusBlur:()=>M,BrowserSupportService:()=>i.O,COLLECTION_ACTION:()=>o,DragAndDrop:()=>oe,Draggable:()=>re._,Droppable:()=>se,FOCUSABLE_ELEMENTS:()=>pe.x,FormComponent:()=>d,Icon:()=>B.J,IconWrap:()=>L.a,IconsContext:()=>_.r,Keys:()=>m.R,Navigation:()=>pe.W,SortedPublicItemIds:()=>me.N,SvgIcon:()=>A.l,TreeFieldsService:()=>fe.U,Typography:()=>Q,WatermarkOverlay:()=>x.t,ZIndexContext:()=>r.$,addItem:()=>ge.jX,areAllDirectChildrenChecked:()=>ge.YC,canUseDOM:()=>a.N,canUseRef:()=>s,classNames:()=>l.A,clone:()=>c.d9,cloneArray:()=>c.M2,cloneDate:()=>c.ky,cloneObject:()=>c.kI,cloneValue:()=>c.Ve,createPropsContext:()=>E.Y,dispatchEvent:()=>z.N,extendDataItem:()=>b.u5,focusFirstFocusableChild:()=>u.n,getActiveElement:()=>he.v,getAllDirectIndirectChildrenIds:()=>ge.QG,getAllParents:()=>ge.z0,getInnerActiveElement:()=>he.T,getItemPath:()=>b.ym,getNestedValue:()=>ye.q,getScrollbarWidth:()=>g.n,getTabIndex:()=>p.p,getter:()=>h.Y,guid:()=>f.M,hasChildren:()=>ge.g8,hasRelativeStackingContext:()=>k,isArray:()=>ye.k,isEnabledAndAllParentsEnabled:()=>ge.hc,isItemExpandedAndWithChildren:()=>ge.Cb,kendoThemeMaps:()=>ce.G,mapTree:()=>b.Gy,mapTreeItem:()=>b.eY,memoizeOne:()=>de,noop:()=>v.Z,removeItem:()=>ge.cl,resolveItemId:()=>ge.kO,resolveItemsIds:()=>ge.Bx,setScrollbarWidth:()=>g.p,setter:()=>y.I,shouldShowValidationUI:()=>w.G,svgIconPropType:()=>F.wi,toIconClass:()=>F._z,toIconName:()=>F.iJ,treeIdUtils:()=>ve,updateItem:()=>ge.$G,useAsyncFocusBlur:()=>S.U,useCollection:()=>T,useCustomComponent:()=>P.A,useDir:()=>O.n,useDocument:()=>R,useDraggable:()=>le.O,useDroppable:()=>ae,useMouse:()=>N.i,usePropsContext:()=>V.Y,useRtl:()=>H.V,useWindow:()=>D,useZIndexContext:()=>r.u,validatePackage:()=>w.s,withPropsContext:()=>E.u});var o,r=n(8259),i=n(3503),a=n(7827),s=function(e){return"string"!=typeof Comment&&(function(e){return Boolean("function"==typeof e&&!!e.prototype.isReactComponent)}(e)||function(e){return Boolean(e.$$typeof&&"function"==typeof e.render)}(e))},l=n(8047),c=n(4500),u=n(9124),d=function(){},p=n(4703),h=n(9659),f=n(3198),m=n(3493),v=n(3228),g=n(2665),y=n(4431),b=n(8006),w=n(4006),k=function(e){if(!a.N)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)";var o=t.createElement("div");o.appendChild(t.createTextNode("child")),o.style.position="fixed",o.style.top="10px",n.appendChild(o),t.body.appendChild(n);var r=10!==o.getBoundingClientRect().top;return t.body.removeChild(n),r},x=n(2080),z=n(5407),C=n(3899),S=n(6059),I=function(){return I=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},I.apply(this,arguments)},M=function(e){var t=e.children,n=e.onFocus,o=e.onBlur,r=e.onSyncFocus,i=e.onSyncBlur,a=(0,S.U)({onFocus:n,onBlur:o,onSyncFocus:r,onSyncBlur:i});return C.createElement(C.Fragment,null,t.call(void 0,I({},a)))},E=n(848),O=n(8199),H=n(1573),N=n(3322),P=n(9447),V=n(9656);!function(e){e[e.add=0]="add",e[e.remove=1]="remove"}(o||(o={}));var T=function(e){void 0===e&&(e=[]);var t=C.useRef(e),n=C.useCallback((function(e){switch(e.type){case o.add:t.current.push(e.item);break;case o.remove:var n=t.current.indexOf(e.item);t.current.splice(n,1)}}),[]);return[t.current,n]},R=function(e){var t=C.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]);return C.useCallback((function(){var e=t();return e&&e.ownerDocument||document}),[t])},D=function(e){var t=R(e);return C.useCallback((function(){var e=t();return e&&e.defaultView||window}),[t])},B=n(7681),A=n(6584),L=n(8130),_=n(8300),F=n(3218),j=n(189),K={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},W={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},U={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},q={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},$={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},G={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},Z={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Y={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},J=function(){return J=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},J.apply(this,arguments)},X=function(e){var t=C.forwardRef((function(t,n){var o=t.id,r=t.style,i=t.className,a=t.fontSize,s=t.fontWeight,l=t.textAlign,c=t.textTransform,u=t.themeColor,d=t.margin,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(t,["id","style","className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=C.useRef(null),f=C.useRef(null);C.useImperativeHandle(h,(function(){return{element:f.current,props:t}})),C.useImperativeHandle(n,(function(){return h.current}));var m=e;return C.createElement(m,J({id:o,ref:f,className:["k-".concat("p"===e?"paragraph":e),K[a],W[s],G[l],Z[c],Y[u],function(){if(void 0!==d){if("string"==typeof d)return[U[d]];if("number"==typeof d&&d>=0&&d<=24)return["k-m-".concat(d)];if("object"==typeof d){var e=[];return Object.keys(d).forEach((function(t){var n,o,r;null!==d[t]&&void 0!==d[t]&&e.push((n=t,r="string"==typeof(o=d[t])?q[o]:o,"".concat($[n]).concat(r)))})),e.join(" ")}}}(),i].filter((function(e){return void 0!==e})).join(" "),style:r},p),t.children)}));return t.propTypes={style:j.object,className:j.string,fontSize:j.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:j.oneOf(["light","normal","bold"]),margin:j.oneOfType([j.number,j.object,j.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:j.oneOf(["left","right","center","justify"]),textTransform:j.oneOf(["lowercase","uppercase","capitalize"]),themeColor:j.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},t.displayName="KendoReactTypography".concat(e.toUpperCase()),t},Q={h1:X("h1"),h2:X("h2"),h3:X("h3"),h4:X("h4"),h5:X("h5"),h6:X("h6"),p:X("p"),code:X("code"),pre:X("pre")},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ee.apply(this,arguments)},te=function(e,t,n){var o=C.useState(t||e),r=o[0],i=o[1];return[void 0!==t?t:r,C.useCallback((function(e,t){i(e),n&&n.call(void 0,ee(ee({},t),{value:e}))}),[n,i])]},ne=n(2333),oe=function(e){var t=te(null,void 0),n=t[0],r=t[1],i=te(null,void 0),a=i[0],s=i[1],l=T([]),c=l[0],u=l[1],d=T([]),p=d[0],h=d[1];return C.createElement(ne.Dg.Provider,{value:[n,r]},C.createElement(ne.Gc.Provider,{value:[a,s]},C.createElement(ne.Fg.Provider,{value:[c,function(e){u({type:o.add,item:e})},function(e){u({type:o.remove,item:e})}]},C.createElement(ne.tk.Provider,{value:[p,function(e){h({type:o.add,item:e})},function(e){h({type:o.remove,item:e})}]},e.children))))};oe.displayName="KendoReactDragAndDrop";var re=n(1779),ie=n(4912);function ae(e,t){void 0===t&&(t={onDragEnter:v.Z,onDragOver:v.Z,onDragLeave:v.Z,onDrop:v.Z});var n=t.onDragEnter,o=void 0===n?v.Z:n,r=t.onDragOver,i=void 0===r?v.Z:r,a=t.onDragLeave,s=void 0===a?v.Z:a,l=t.onDrop,c=void 0===l?v.Z:l,u=(0,ie.W)(ne.Gc)[1],d=C.useContext(ne.tk),p=d[1],h=d[2],f=C.useCallback((function(){return e.current&&e.current.element?e.current.element:e.current}),[e]),m=C.useRef(null);C.useImperativeHandle(m,(function(){return{element:f(),onDragEnter:g,onDragOver:y,onDragLeave:b,onDrop:w,data:e.current}}));var g=C.useCallback((function(t){u(m,{target:e.current,event:t}),o(t)}),[u,e,o]),y=C.useCallback((function(e){i(e)}),[i]),b=C.useCallback((function(t){u(null,{target:e.current,event:t}),s(t)}),[u,e,s]),w=C.useCallback((function(t){u(null,{target:e.current,event:t}),c(t)}),[u,e,c]),k=C.useCallback((function(){return p(m),function(){h(m)}}),[h,p]);C.useLayoutEffect(k,[k])}var se=C.forwardRef((function(e,t){var n=C.useRef(null),o=C.useRef(null),r=C.useCallback((function(){return n.current&&n.current.element?n.current.element:n.current}),[n]);C.useImperativeHandle(o,(function(){return{element:r()||void 0}})),C.useImperativeHandle(t,(function(){return o.current})),C.useImperativeHandle(e.childRef,(function(){return n.current}));var i=C.useCallback((function(t){e.onDragEnter&&e.onDragEnter({element:r(),target:o.current,event:t})}),[e.onDragEnter,r]),a=C.useCallback((function(t){e.onDragOver&&e.onDragOver({element:r(),target:o.current,event:t})}),[r,e.onDragOver]),s=C.useCallback((function(t){e.onDragLeave&&e.onDragLeave({element:r(),target:o.current,event:t})}),[e.onDragLeave,r]),l=C.useCallback((function(t){e.onDrop&&e.onDrop({element:r(),target:o.current,event:t})}),[e.onDrop,r]);return ae(n,{onDragEnter:i,onDragOver:a,onDragLeave:s,onDrop:l}),e.children?C.cloneElement(C.Children.only(e.children),{ref:n}):null}));se.displayName="KendoReactDroppable";var le=n(9844),ce=n(2697);function ue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||Number.isNaN(o)&&Number.isNaN(r)))return!1;var o,r;return!0}function de(e,t){void 0===t&&(t=ue);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}var pe=n(6604),he=n(3769),fe=n(4824),me=n(7013),ve=n(5098),ge=n(9519),ye=n(5473)},6604:(e,t,n)=>{n.d(t,{x:()=>o,W:()=>r});var o=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],r=function(){function e(e){var t=this;this.rovingTabIndex=!0,this.update=function(){},this.focusNextIndex=function(e,n){var o=t.elements,r=o.indexOf(e)+n,i=o[(r=r<0?o.length-1:r)%o.length];return t.focusElement(i,e),i},this.tabIndex=e.tabIndex||0,this.root=e.root,this.selectors=e.selectors,this.focusOptions=e.focusOptions||{preventScroll:!0},this.rovingTabIndex=void 0===e.rovingTabIndex||e.rovingTabIndex,this.mouseEvents=e.mouseEvents||{},this.keyboardEvents=e.keyboardEvents||{}}return Object.defineProperty(e.prototype,"elements",{get:function(){return this.root.current?Array.from(this.root.current.querySelectorAll(this.selectors.join(","))):[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this.root.current&&this.root.current.querySelector(this.selectors.join(","))||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){var e=this.elements;return e[e.length-1]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.elements.find((function(e){return e.matches(":focus")}))||null},enumerable:!1,configurable:!0}),e.prototype.focusNext=function(e){return this.focusNextIndex(e,1)},e.prototype.focusPrevious=function(e){return this.focusNextIndex(e,-1)},e.prototype.triggerKeyboardEvent=function(e,t){var n=e.target instanceof Element&&e.target.closest(this.selectors.join(",")),o=" "===e.key?"Space":e.key,r=e.nativeEvent.type;n&&this.keyboardEvents[r][o]&&this.keyboardEvents[r][o].call(void 0,n,this,e,t)},e.prototype.triggerMouseEvent=function(e){var t=e.target instanceof Element&&e.target.closest(this.selectors.join(",")),n=e.nativeEvent.type;t&&this.mouseEvents[n].call(void 0,t,this,e)},e.prototype.focusElement=function(e,t){e&&(t&&(this.rovingTabIndex&&t.removeAttribute("tabindex"),t.classList.remove("k-focus")),this.rovingTabIndex&&e.setAttribute("tabindex",String(this.tabIndex)),e.focus(this.focusOptions))},e}()},3228:(e,t,n)=>{n.d(t,{Z:()=>o});var o=function(){}},2665:(e,t,n)=>{n.d(t,{n:()=>i,p:()=>a});var o=n(3503),r=n(7827),i=function(){return!(!r.N||!document.body)&&(new o.O).scrollbarWidth},a=function(){if(!r.N||!document.body)return!1;var e=(new o.O).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width","".concat(e,"px"))}},4431:(e,t,n)=>{n.d(t,{I:()=>a});var o=n(4100),r={undefined:function(e){return e}},i=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function a(e){if(r[e])return r[e];var t=(0,o.E)(e);return r[e]=function(e,n,o){for(var r=e,a=t.length-1,s=0;s<a&&r;s++)r=r[t[s]]=r[t[s]]||i(t[s+1],o);r[t[a]]=n},r[e]}},2697:(e,t,n)=>{n.d(t,{G:()=>o});var o={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"},orientationMap:{vertical:"vstack",horizontal:"hstack"}}},4824:(e,t,n)=>{n.d(t,{U:()=>r});var o=n(5473),r=function(){function e(e){this.expandField=e.expandField,this.selectField=e.selectField,this.hasChildrenField=e.hasChildrenField,this.childrenField=e.childrenField,this.textField=e.textField,this.disableField=e.disableField,this.checkField=e.checkField,this.checkIndeterminateField=e.checkIndeterminateField,this.focusIdField=e.focusIdField}return e.prototype.expanded=function(e){return(0,o.q)(this.expandField,e)},e.prototype.selected=function(e){return(0,o.q)(this.selectField,e)},e.prototype.text=function(e){return(0,o.q)(this.textField,e)},e.prototype.disabled=function(e){return(0,o.q)(this.disableField,e)},e.prototype.hasChildren=function(e){return(0,o.q)(this.hasChildrenField,e)},e.prototype.children=function(e){return(0,o.q)(this.childrenField,e)||[]},e.prototype.checked=function(e){return(0,o.q)(this.checkField,e)},e.prototype.checkIndeterminate=function(e){return(0,o.q)(this.checkIndeterminateField,e)},e.prototype.focusId=function(e){return this.focusIdField&&(0,o.q)(this.focusIdField,e)},e.prototype.getChildrenField=function(){return this.childrenField},e}()},7013:(e,t,n)=>{n.d(t,{N:()=>o});var o=function(){function e(){this.objects=[]}return e.prototype.init=function(e){for(var t,n=0;n<e.length;n++)n%5e4==0&&(t={},this.objects.push(t)),t[e[n]]=!0},e.prototype.hasId=function(e){return this.objects.some((function(t){return t[e]}))},e}()},5098:(e,t,n)=>{n.r(t),n.d(t,{EMPTY_ID:()=>o,ZERO_LEVEL_ZERO_NODE_ID:()=>r,SEPARATOR:()=>i,getItemById:()=>a,getRootParentId:()=>s,getIdWithoutRootParentId:()=>l,getFirstChildId:()=>c,createId:()=>u,getDirectParentId:()=>d,isIdEmptyOrZeroLevel:()=>p,isIdZeroLevel:()=>h,getAllShortIds:()=>f,getShortId:()=>m,isItemFirstFromSiblings:()=>v,getDecrementedItemIdAfterRemoval:()=>g});var o="",r="0",i="_";function a(e,t,n){if(h(e))return t[Number(e)];var o=t[Number(s(e))],r=o&&o[n]||[];return r.length?a(l(e),r,n):void 0}function s(e){return p(e)?e:e.split(i)[0]}function l(e){if(p(e))return e;var t=e.indexOf(i);return e.substring(t+1)}function c(e){return u("0",e)}function u(e,t){return e=e.toString(),t?t+i+e:e}function d(e){var t=e.lastIndexOf(i);return t<0?o:e.substring(0,t)}function p(e){return e===o||e.indexOf(i)<0}function h(e){return e!==o&&e.indexOf(i)<0}function f(e){return e.split(i)}function m(e){var t=e.lastIndexOf(i);return t<0?e:e.substring(t+1)}function v(e){return m(e)===r}function g(e,t){var n=t;t="r"+i+t;var o=d(e="r"+i+e)+i;if(t.startsWith(o)){var r=t.substring(o.length);if(r){var a=s(r);if(Number(m(e))<Number(a))return l(o+(Number(a)-1).toString()+r.substring(a.length))}}return n}},9519:(e,t,n)=>{n.d(t,{g8:()=>s,Cb:()=>l,kO:()=>c,Bx:()=>u,$G:()=>d,hc:()=>p,QG:()=>h,YC:()=>f,z0:()=>m,cl:()=>v,jX:()=>g});var o=n(5098),r=n(7013),i=n(5473),a=function(){return a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};function s(e,t){var n=(0,i.q)(t,e);return Boolean(n&&n.length)}function l(e,t){return t.expanded(e)&&s(e,t.getChildrenField())}function c(e,t,n,o){var r=u([e],t,n,o);return r.length?r[0]:void 0}function u(e,t,n,i){var a=[],s=new r.N;return s.init(e),y(s,t,n,o.EMPTY_ID,a,i),a}function d(e,t,n,r,i){var a,s=Number((0,o.getRootParentId)(t));if(s>=e.length)return e;var l=e,c=e[s];return c[r]||(c=(l=e.slice())[s]=Object.assign({},c,((a={})[r]=!0,a))),(0,o.isIdZeroLevel)(t)?n(c):c[i]&&(c[i]=d(c[i],(0,o.getIdWithoutRootParentId)(t),n,r,i)),l}function p(e,t,n){for(var r=(0,o.getAllShortIds)(e),i=t,a=0;a<r.length;a++){var s=i[Number(r[a])];if(n.disabled(s))return!1;i=s[n.getChildrenField()]}return!0}function h(e,t,n,r){return r?function e(t){for(var o=[],a=t[n]||[],s=0;s<a.length;s++)o.push((0,i.q)(r,a[s])),o=o.concat(e(a[s]));return o}(e):function e(t,r){for(var i=[],a=t[n]||[],s=0;s<a.length;s++){var l=(0,o.createId)(s,r);i.push(l),i=i.concat(e(a[s],l))}return i}(e,t)}function f(e,t,n,r,a){return(e[r]||[]).every((function(e,r){return a.indexOf(n?(0,i.q)(n,e):(0,o.createId)(r,t))>-1}))}function m(e,t,n){for(var r=[],i=(0,o.getAllShortIds)(e),a=n,s=0;s<i.length-1&&a;s++){var l=a[Number(i[s])];r.push(l),a=l[t]}return r}function v(e,t,n){var r=n.slice();if((0,o.isIdZeroLevel)(e))r.splice(Number(e),1);else{var i=Number((0,o.getRootParentId)(e)),s=r[i]=a({},r[i]);s[t]=v((0,o.getIdWithoutRootParentId)(e),t,s[t])}return r}function g(e,t,n,r,i){var s=i.slice();if((0,o.isIdZeroLevel)(r))if("child"===t){var l=s[Number(r)]=a({},s[Number(r)]);l[n]?(l[n]=l[n].slice(),l[n].push(e)):l[n]=[e]}else s.splice(Number(r)+("after"===t?1:0),0,e);else{var c=Number((0,o.getRootParentId)(r)),u=s[c]=a({},s[c]);u[n]=g(e,t,n,(0,o.getIdWithoutRootParentId)(r),u[n])}return s}function y(e,t,n,r,a,l){for(var c=0;c<n.length;c++){var u=n[c],d=(0,o.createId)(c,r);e.hasId((0,i.q)(t,u))&&a.push(d),s(u,l)&&y(e,t,(0,i.q)(l,u),d,a,l)}}},5473:(e,t,n)=>{function o(e,t){var n=(e||"").split("."),o=t;return n.forEach((function(e){o=o?o[e]:void 0})),o}function r(e){return void 0!==e.length}n.d(t,{q:()=>o,k:()=>r})},8006:(e,t,n)=>{n.d(t,{Gy:()=>s,eY:()=>l,u5:()=>c,ym:()=>u});var o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},r=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))};function i(e,t,n){var i;return n?o(o({},e),((i={})[t]=n.length?r([],n,!0):void 0,i)):e&&e[t]?r([],e[t],!0):[]}function a(e,t,n){if(e[t]){var o=i(e,t).map((function(e){return a(e,t,n)}));return n(i(e,t,o))}return n(e)}var s=function(e,t,n){return r([],e.map((function(e){return a(e,t,n)})),!0)},l=function(e,t,n,o){for(var r=e,i=[],a=0;a<t.length;a++)r=r[t[a]],r=Array.isArray(r)?r:r[n],i.push(r);var s=i.length>1?i[i.length-2]:e,l=t[t.length-1],c=o(s[l]);s.splice(l,1,c)},c=function(e,t,n){var o;return Object.assign({},e,e[t]?((o={})[t]=e[t].slice(),o):{},n||{})},u=function(e,t,n){var o=[],i=r([],t,!0);if(i.length){var a=e[i.shift()||0];for(o.push(a);i.length&&n;)a=a[n][i.shift()||0],o.push(a)}return o}},4006:(e,t,n)=>{n.d(t,{s:()=>i,G:()=>a});var o=n(9302),r=["telerik.com","progress.com","stackblitz.io","csb.app"];function i(e){if(void 0!==o)o.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)}}function a(e){return!r.some((function(e){var t;return null===(t=globalThis.document)||void 0===t?void 0:t.location.hostname.endsWith(e)}))&&!(null==o?void 0:o.validatePackage(e))}},2080:(e,t,n)=>{n.d(t,{t:()=>a});var o=n(3899),r=n(994),i=!1,a=function(){var e=o.useState(!0),t=e[0],n=e[1],a=o.useState(!1),s=a[0],l=a[1];o.useEffect((function(){i||(l(!0),i=!0)}),[]);var c=o.createElement(o.Fragment,null,t&&o.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:999}},o.createElement("span",{style:{display:"flex",alignSelf:"center",marginRight:"8px"}},o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z",fill:"#1E1E1E"}))),o.createElement("span",null,"No valid license found for KendoReact. Learn how to activate your license."),o.createElement("div",{style:{display:"flex",alignItems:"center",marginLeft:"24px"}},o.createElement("a",{href:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-banner",style:{marginRight:"8px",display:"flex"}},o.createElement("button",{title:"Learn More",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"}},o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},o.createElement("path",{d:"M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z",fill:"#1E1E1E"})))),o.createElement("button",{title:"Close",style:{display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},onClick:function(){n(!1)}},o.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},o.createElement("path",{d:"M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z",fill:"#1E1E1E"}))))));return o.createElement(o.Fragment,null,o.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,opacity:.2,zIndex:101,pointerEvents:"none",backgroundImage:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg==')"}}),s&&r.createPortal(c,document.body))}},4407:e=>{e.exports=i},9302:e=>{e.exports=n},499:e=>{e.exports=r},189:e=>{e.exports=t},3899:t=>{t.exports=e},994:e=>{e.exports=o},3209:e=>{e.exports=s},6144:e=>{e.exports=a}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return l[e].call(n.exports,n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var d={};return(()=>{var e=d;Object.defineProperty(e,"__esModule",{value:!0}),e.editorPropsKey=e.parseContent=e.getHtml=e.marks=e.nodes=e.EditorDialogs=e.EditorUtils=e.EditorToolsSettings=e.EditorTools=e.Editor=e.ProseMirror=void 0;var t=u(1801);Object.defineProperty(e,"Editor",{enumerable:!0,get:function(){return t.Editor}});var n=u(8671);Object.defineProperty(e,"EditorTools",{enumerable:!0,get:function(){return n.EditorTools}});var o=u(2804);Object.defineProperty(e,"EditorToolsSettings",{enumerable:!0,get:function(){return o.EditorToolsSettings}});var r=u(5538);Object.defineProperty(e,"EditorUtils",{enumerable:!0,get:function(){return r.EditorUtils}});var i=u(3695);Object.defineProperty(e,"EditorDialogs",{enumerable:!0,get:function(){return i.EditorDialogs}});var a=u(580);Object.defineProperty(e,"editorPropsKey",{enumerable:!0,get:function(){return a.editorPropsKey}});var s=u(2346);Object.defineProperty(e,"nodes",{enumerable:!0,get:function(){return s.nodes}}),Object.defineProperty(e,"marks",{enumerable:!0,get:function(){return s.marks}});var l=u(2696);Object.defineProperty(e,"getHtml",{enumerable:!0,get:function(){return l.getHtml}}),Object.defineProperty(e,"parseContent",{enumerable:!0,get:function(){return l.parseContent}}),e.ProseMirror={Selection:l.Selection,SelectionRange:l.SelectionRange,TextSelection:l.TextSelection,NodeSelection:l.NodeSelection,AllSelection:l.AllSelection,EditorState:l.EditorState,Plugin:l.Plugin,PluginKey:l.PluginKey,Transaction:l.Transaction,Decoration:l.Decoration,DecorationSet:l.DecorationSet,EditorView:l.EditorView,Node:l.Node,ResolvedPos:l.ResolvedPos,NodeRange:l.NodeRange,Fragment:l.Fragment,Slice:l.Slice,ReplaceError:l.ReplaceError,Mark:l.Mark,Schema:l.Schema,NodeType:l.NodeType,MarkType:l.MarkType,ContentMatch:l.ContentMatch,DOMParser:l.DOMParser,DOMSerializer:l.DOMSerializer,Transform:l.Transform,Step:l.Step,StepResult:l.StepResult,joinPoint:l.joinPoint,canJoin:l.canJoin,canSplit:l.canSplit,insertPoint:l.insertPoint,dropPoint:l.dropPoint,liftTarget:l.liftTarget,findWrapping:l.findWrapping,StepMap:l.StepMap,MapResult:l.MapResult,Mapping:l.Mapping,AddMarkStep:l.AddMarkStep,RemoveMarkStep:l.RemoveMarkStep,ReplaceStep:l.ReplaceStep,ReplaceAroundStep:l.ReplaceAroundStep,replaceStep:l.replaceStep,deleteSelection:l.deleteSelection,joinBackward:l.joinBackward,selectNodeBackward:l.selectNodeBackward,joinForward:l.joinForward,selectNodeForward:l.selectNodeForward,joinUp:l.joinUp,joinDown:l.joinDown,lift:l.lift,newlineInCode:l.newlineInCode,exitCode:l.exitCode,createParagraphNear:l.createParagraphNear,liftEmptyBlock:l.liftEmptyBlock,splitBlock:l.splitBlock,splitBlockKeepMarks:l.splitBlockKeepMarks,selectParentNode:l.selectParentNode,selectAll:l.selectAll,wrapIn:l.wrapIn,setBlockType:l.setBlockType,toggleMark:l.toggleMark,autoJoin:l.autoJoin,chainCommands:l.chainCommands,pcBaseKeymap:l.pcBaseKeymap,macBaseKeymap:l.macBaseKeymap,baseKeymap:l.baseKeymap,history:l.history,undo:l.undo,redo:l.redo,undoDepth:l.undoDepth,redoDepth:l.redoDepth,InputRule:l.InputRule,inputRules:l.inputRules,undoInputRule:l.undoInputRule,emDash:l.emDash,ellipsis:l.ellipsis,openDoubleQuote:l.openDoubleQuote,closeDoubleQuote:l.closeDoubleQuote,openSingleQuote:l.openSingleQuote,closeSingleQuote:l.closeSingleQuote,smartQuotes:l.smartQuotes,wrappingInputRule:l.wrappingInputRule,textblockTypeInputRule:l.textblockTypeInputRule,keymap:l.keymap,keydownHandler:l.keydownHandler,orderedList:l.orderedList,bulletList:l.bulletList,listItem:l.listItem,addListNodes:l.addListNodes,wrapInList:l.wrapInList,splitListItem:l.splitListItem,liftListItem:l.liftListItem,sinkListItem:l.sinkListItem,dropCursor:l.dropCursor,gapCursor:l.gapCursor,tableEditing:l.tableEditing,fixTables:l.fixTables,fixTablesKey:l.fixTablesKey,cellAround:l.cellAround,isInTable:l.isInTable,selectionCell:l.selectionCell,moveCellForward:l.moveCellForward,inSameTable:l.inSameTable,findCell:l.findCell,colCount:l.colCount,nextCell:l.nextCell,removeColSpan:l.removeColSpan,addColSpan:l.addColSpan,columnIsHeader:l.columnIsHeader,tableNodes:l.tableNodes,tableNodeTypes:l.tableNodeTypes,CellSelection:l.CellSelection,TableMap:l.TableMap,tableEditingKey:l.tableEditingKey,columnResizing:l.columnResizing,columnResizingPluginKey:l.columnResizingPluginKey,updateColumnsOnResize:l.updateColumnsOnResize,selectedRect:l.selectedRect,addColumn:l.addColumn,addColumnBefore:l.addColumnBefore,addColumnAfter:l.addColumnAfter,deleteColumn:l.deleteColumn,rowIsHeader:l.rowIsHeader,addRow:l.addRow,addRowBefore:l.addRowBefore,addRowAfter:l.addRowAfter,deleteRow:l.deleteRow,mergeCells:l.mergeCells,splitCell:l.splitCell,splitCellWithType:l.splitCellWithType,setCellAttr:l.setCellAttr,toggleHeader:l.toggleHeader,toggleHeaderRow:l.toggleHeaderRow,toggleHeaderColumn:l.toggleHeaderColumn,toggleHeaderCell:l.toggleHeaderCell,goToNextCell:l.goToNextCell,deleteTable:l.deleteTable}})(),d})()}));
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ (function(v,De){typeof exports=="object"&&typeof module<"u"?De(exports,require("react"),require("prop-types"),require("@progress/kendo-react-buttons"),require("@progress/kendo-react-common"),require("@progress/kendo-editor-common"),require("@progress/kendo-svg-icons"),require("@progress/kendo-react-dialogs"),require("@progress/kendo-react-inputs"),require("@progress/kendo-react-form"),require("@progress/kendo-react-intl"),require("@progress/kendo-react-layout"),require("@progress/kendo-react-popup"),require("@progress/kendo-react-dropdowns"),require("@progress/kendo-react-pdf")):typeof define=="function"&&define.amd?define(["exports","react","prop-types","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-editor-common","@progress/kendo-svg-icons","@progress/kendo-react-dialogs","@progress/kendo-react-inputs","@progress/kendo-react-form","@progress/kendo-react-intl","@progress/kendo-react-layout","@progress/kendo-react-popup","@progress/kendo-react-dropdowns","@progress/kendo-react-pdf"],De):(v=typeof globalThis<"u"?globalThis:v||self,De(v.KendoReactEditor={},v.React,v.PropTypes,v.KendoReactButtons,v.KendoReactCommon,v.KendoEditorCommon,v.KendoSvgIcons,v.KendoReactDialogs,v.KendoReactInputs,v.KendoReactForm,v.KendoReactIntl,v.KendoReactLayout,v.KendoReactPopup,v.KendoReactDropdowns,v.KendoReactPdf))})(this,function(v,De,Kr,D,F,i,x,q,C,W,A,Le,Or,O,Vr){"use strict";function tt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const l=tt(De),R=tt(Kr),Ur=`
6
+ html, body {
7
+ margin: 0;
8
+ height: 100%;
9
+ padding: 0;
10
+ }
11
+
12
+ html {
13
+ min-height: 100%;
14
+ }
15
+
16
+ body {
17
+ box-sizing: border-box;
18
+ position: relative;
19
+ word-wrap: break-word;
20
+ padding: 8px;
21
+ }
22
+
23
+ body > .k-content {
24
+ outline: 0;
25
+ height: 100%;
26
+ white-space: pre-wrap;
27
+ }
28
+
29
+ .k-content > p {
30
+ margin: 0 0 1em;
31
+ }
32
+
33
+ .k-content table {
34
+ white-space: pre-wrap;
35
+ }
36
+
37
+ .k-content .k-text-selected, .k-content::selection {
38
+ color: HighlightText;
39
+ background-color: Highlight;
40
+ }
41
+
42
+ .k-content .k-text-highlighted {
43
+ background-color: #bbdefb;
44
+ }
45
+
46
+ .k-content .ProseMirror-selectednode {
47
+ outline: 2px solid #8cf;
48
+ }
49
+
50
+ .ProseMirror-hideselection *::selection { background: transparent; }
51
+ .ProseMirror-hideselection *::-moz-selection { background: transparent; }
52
+ .ProseMirror-hideselection { caret-color: transparent; }
53
+
54
+ .ProseMirror-gapcursor {
55
+ display: none;
56
+ pointer-events: none;
57
+ position: absolute;
58
+ }
59
+
60
+ .ProseMirror-gapcursor:after {
61
+ content: "";
62
+ display: block;
63
+ position: absolute;
64
+ top: -2px;
65
+ width: 20px;
66
+ border-top: 1px solid black;
67
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
68
+ }
69
+
70
+ @keyframes ProseMirror-cursor-blink {
71
+ to {
72
+ visibility: hidden;
73
+ }
74
+ }
75
+
76
+ .ProseMirror-focused .ProseMirror-gapcursor {
77
+ display: block;
78
+ }
79
+
80
+ .k-editor-resize-handles-wrapper {
81
+ position: absolute;
82
+ visibility: hidden;
83
+ }
84
+
85
+ .k-editor-resize-handle {
86
+ position: absolute;
87
+ visibility: visible;
88
+ background-color: #fff;
89
+ border: 1px solid #000;
90
+ z-index: 100;
91
+ width: 5px;
92
+ height: 5px;
93
+ }
94
+
95
+ .k-editor-resize-handle.northwest {
96
+ top: 0;
97
+ left: 0;
98
+ transform: translate(-50%, -50%);
99
+ cursor: nw-resize;
100
+ }
101
+
102
+ .k-editor-resize-handle.north {
103
+ top: 0;
104
+ left: 50%;
105
+ transform: translate(-50%, -50%);
106
+ cursor: n-resize;
107
+ }
108
+
109
+ .k-editor-resize-handle.northeast {
110
+ top: 0;
111
+ right: 0;
112
+ transform: translate(50%, -50%);
113
+ cursor: ne-resize;
114
+ }
115
+
116
+ .k-editor-resize-handle.southwest {
117
+ left: 0;
118
+ bottom: 0;
119
+ transform: translate(-50%, 50%);
120
+ cursor: sw-resize;
121
+ }
122
+
123
+ .k-editor-resize-handle.south {
124
+ bottom: 0;
125
+ left: 50%;
126
+ transform: translate(-50%, 50%);
127
+ cursor: s-resize;
128
+ }
129
+
130
+ .k-editor-resize-handle.southeast {
131
+ right: 0;
132
+ bottom: 0;
133
+ transform: translate(50%, 50%);
134
+ cursor: se-resize;
135
+ }
136
+
137
+ .k-editor-resize-handle.west {
138
+ top: 50%;
139
+ left: 0;
140
+ transform: translate(-50%, -50%);
141
+ cursor: w-resize;
142
+ }
143
+
144
+ .k-editor-resize-handle.east {
145
+ top: 50%;
146
+ right: 0;
147
+ transform: translate(50%, -50%);
148
+ cursor: e-resize;
149
+ }
150
+
151
+ .k-editor-resize-wrap-element {
152
+ display: inline-block;
153
+ position: relative;
154
+ }
155
+
156
+ .ProseMirror .row-resize-handle {
157
+ position: absolute;
158
+ right: 0; left: 0; bottom: 0;
159
+ transform: translate(0, 50%);
160
+ height: 4px;
161
+ z-index: 20;
162
+ background-color: #adf;
163
+ pointer-events: none;
164
+ }
165
+
166
+ .ProseMirror .column-resize-handle {
167
+ position: absolute;
168
+ right: -2px; top: 0; bottom: 0;
169
+ width: 4px;
170
+ z-index: 20;
171
+ background-color: #adf;
172
+ pointer-events: none;
173
+ }
174
+
175
+ .ProseMirror.resize-cursor {
176
+ cursor: ew-resize;
177
+ cursor: col-resize;
178
+ }
179
+
180
+ .ProseMirror.resize-cursor-vertical {
181
+ cursor: sn-resize;
182
+ cursor: row-resize;
183
+ }
184
+
185
+ .k-editor-resize-wrap-element table td p,
186
+ .k-editor-resize-wrap-element table th p {
187
+ margin: 0 auto;
188
+ }
189
+ `,_r=`
190
+ .ProseMirror .tableWrapper {
191
+ overflow-x: auto;
192
+ margin: 1em 0;
193
+ }
194
+
195
+ .ProseMirror table {
196
+ margin: 0;
197
+ border-collapse: collapse;
198
+ table-layout: fixed;
199
+ width: 100%;
200
+ overflow: hidden;
201
+ }
202
+
203
+ .ProseMirror td, .ProseMirror th {
204
+ min-width: 1em;
205
+ border: 1px solid #ddd;
206
+ padding: 3px 5px;
207
+ vertical-align: top;
208
+ box-sizing: border-box;
209
+ position: relative;
210
+ }
211
+
212
+ .ProseMirror th {
213
+ font-weight: bold;
214
+ text-align: left;
215
+ }
216
+
217
+ /* Give selected cells a blue overlay */
218
+ .ProseMirror .selectedCell:after {
219
+ z-index: 2;
220
+ position: absolute;
221
+ content: "";
222
+ left: 0; right: 0; top: 0; bottom: 0;
223
+ background: rgba(200, 200, 255, 0.4);
224
+ pointer-events: none;
225
+ }
226
+ `,$r="body { direction: rtl }",lt="editor.bold",at="editor.italic",rt="editor.underline",st="editor.strikethrough",it="editor.subscript",nt="editor.superscript",ot="editor.hyperlink",ct="editor.insertFile",pt="editor.print",dt="editor.selectAll",ut="editor.cleanFormatting",gt="editor.pdf",ht="editor.foregroundColor",mt="editor.backgroundColor",ft="editor.createTable",bt="editor.insertTableHint",yt="editor.addRowBefore",vt="editor.addRowAfter",wt="editor.addColumnBefore",Pt="editor.addColumnAfter",St="editor.deleteRow",xt="editor.deleteColumn",Tt="editor.deleteTable",Nt="editor.mergeCells",Lt="editor.splitCell",At="editor.hyperlink-dialog-title",Ct="editor.hyperlink-dialog-content-address",It="editor.hyperlink-dialog-content-title",Dt="editor.hyperlink-dialog-content-newwindow",Bt="editor.hyperlink-dialog-cancel",zt="editor.hyperlink-dialog-insert",Rt="editor.insertfile-dialog-title",Mt="editor.insertfile-dialog-content-address",kt="editor.insertfile-dialog-content-title",Ht="editor.insertfile-dialog-cancel",Ft="editor.insertfile-dialog-insert",Wt="editor.image",Kt="editor.image-dialog-title",Ot="editor.image-address",Vt="editor.image-title",Ut="editor.image-altText",_t="editor.image-width",$t="editor.image-height",Et="editor.image-cancel",jt="editor.image-insert",qt="editor.viewHtml",Gt="editor.viewHtml-dialog-title",Jt="editor.viewHtml-cancel",Qt="editor.viewHtml-update",Xt="editor.unlink",Yt="editor.undo",Zt="editor.redo",el="editor.fontSize",tl="editor.fontName",ll="editor.format",al="editor.alignLeft",rl="editor.alignRight",sl="editor.alignCenter",il="editor.alignJustify",nl="editor.indent",ol="editor.outdent",cl="editor.orderedList",pl="editor.bulletList",dl="editor.findReplace-tool-title",ul="editor.findReplace-dialog-title",gl="editor.findReplace-tab-find",hl="editor.findReplace-tab-replace",ml="editor.findReplace-findWhat",fl="editor.findReplace-replaceWith",bl="editor.findReplace-replace",yl="editor.findReplace-replaceAll",vl="editor.findReplace-matchCase",wl="editor.findReplace-matchWord",Pl="editor.findReplace-matchCyclic",Sl="editor.findReplace-useRegExp",xl="editor.findReplace-prevMatch",Tl="editor.findReplace-nextMatch",Nl="editor.findReplace-matches",Ll="editor.iframeTitle",Al="editorTools.foreColorLabel",Cl="editorTools.backColorLabel",Il="editor.cellProperties",Dl="editor.cellPropertiesLeftTop",Bl="editor.cellPropertiesCenterTop",zl="editor.cellPropertiesRightTop",Rl="editor.cellPropertiesLeftMiddle",Ml="editor.cellPropertiesCenterMiddle",kl="editor.cellPropertiesRightMiddle",Hl="editor.cellPropertiesLeftBottom",Fl="editor.cellPropertiesCenterBottom",Wl="editor.cellPropertiesRightBottom",Kl="editor.cellPropertiesNoAlignment",Ol="editor.cellPropertiesWrap",Vl="editor.cellPropertiesFitToCell",Ul="editor.cellPropertiesApplyToAllCells",_l="editor.cellPropertiesWidth",$l="editor.cellPropertiesApplyToColumn",El="editor.cellPropertiesHeight",jl="editor.cellPropertiesApplyToRow",ql="editor.cellPropertiesAlignment",Gl="editor.cellPropertiesTextControl",Jl="editor.cellPropertiesCellPadding",Ql="editor.cellPropertiesBackground",Xl="editor.cellPropertiesBorderWidth",Yl="editor.cellPropertiesBorderColor",Zl="editor.cellPropertiesBorderStyle",ea="editor.cellPropertiesId",ta="editor.cellPropertiesCssClass",la="editor.cellPropertiesSave",aa="editor.cellPropertiesCancel",ra="editor.tableProperties",sa="editor.tablePropertiesAlignLeft",ia="editor.tablePropertiesAlignCenter",na="editor.tablePropertiesAlignRight",oa="editor.tablePropertiesNoAlignment",ca="editor.tablePropertiesLeft",pa="editor.tablePropertiesCenter",da="editor.tablePropertiesRight",ua="editor.tablePropertiesTop",ga="editor.tablePropertiesBottom",ha="editor.tablePropertiesNone",ma="editor.tablePropertiesUsingScopeAttribute",fa="editor.tablePropertiesUsingIdAttributes",ba="editor.tablePropertiesRows",ya="editor.tablePropertiesColumns",va="editor.tablePropertiesWidth",wa="editor.tablePropertiesHeight",Pa="editor.tablePropertiesPosition",Sa="editor.tablePropertiesAlignment",xa="editor.tablePropertiesCellSpacing",Ta="editor.tablePropertiesCellPadding",Na="editor.tablePropertiesTableBackground",La="editor.tablePropertiesBorderWidth",Aa="editor.tablePropertiesBorderColor",Ca="editor.tablePropertiesBorderStyle",Ia="editor.tablePropertiesCollapseBorders",Da="editor.tablePropertiesID",Ba="editor.tablePropertiesCssClass",za="editor.tablePropertiesAccessibility",Ra="editor.tablePropertiesCaption",Ma="editor.tablePropertiesCaptionPosition",ka="editor.tablePropertiesCaptionAlignment",Ha="editor.tablePropertiesHeaderRows",Fa="editor.tablePropertiesHeaderCols",Wa="editor.tablePropertiesAssociateHeaders",Ka="editor.tablePropertiesGeneral",Oa="editor.tablePropertiesAdvanced",Va="editor.tablePropertiesSave",Ua="editor.tablePropertiesCancel",_a="editor.borderStyleNone",$a="editor.borderStyleSolid",Ea="editor.borderStyleDotted",ja="editor.borderStyleDashed",qa="editor.borderStyleDouble",Ga="editor.borderStyleGroove",Ja="editor.borderStyleRidge",Qa="editor.borderStyleInset",Xa="editor.borderStyleOutset",Ya="editor.borderStyleInitial",Za="editor.borderStyleInherit",er="editor.borderStyleHidden",tr="editor.sizeAuto",g={[lt]:"Bold",[at]:"Italic",[rt]:"Underline",[st]:"Strikethrough",[it]:"Subscript",[nt]:"Superscript",[Xt]:"Remove hyperlink",[Yt]:"Undo",[Zt]:"Redo",[el]:"Font Size",[tl]:"Font Name",[ll]:"Format",[al]:"Align text left",[rl]:"Align text right",[sl]:"Center text",[il]:"Justify",[nl]:"Indent",[ol]:"Outdent",[cl]:"Insert ordered list",[pl]:"Insert unordered list",[pt]:"Print",[dt]:"Select All",[ut]:"Clean formatting",[gt]:"Export as PDF",[ht]:"Color",[mt]:"Background color",[ft]:"Create a table",[bt]:"Create a {0} x {1} table",[yt]:"Add row above",[vt]:"Add row below",[wt]:"Add column on the left",[Pt]:"Add column on the right",[St]:"Delete row",[xt]:"Delete column",[Tt]:"Delete table",[Nt]:"Merge cells",[Lt]:"Split cell",[ot]:"Insert hyperlink",[At]:"Insert hyperlink",[Ct]:"Web address",[It]:"Title",[Dt]:"Open link in new window",[Bt]:"Cancel",[zt]:"Insert",[ct]:"Insert file",[Rt]:"Insert file",[Mt]:"Web address",[kt]:"Title",[Ht]:"Cancel",[Ft]:"Insert",[Wt]:"Insert image",[Kt]:"Insert image",[Ot]:"Web address",[Vt]:"Title",[Ut]:"Alternate text",[_t]:"Width (px)",[$t]:"Height (px)",[Et]:"Cancel",[jt]:"Insert",[qt]:"View HTML",[Gt]:"View HTML",[Jt]:"Cancel",[Qt]:"Update",[dl]:"Find and Replace",[ul]:"Find and Replace",[gl]:"Find",[hl]:"Replace",[ml]:"Find What:",[fl]:"Replace With",[bl]:"Replace",[yl]:"Replace All",[vl]:"Match Case",[wl]:"Match whole word only",[Pl]:"Match cyclic (Wrap around)",[Sl]:"Regular Expression",[xl]:"Prev",[Tl]:"Next",[Nl]:"{0} of {1} matches",[Ll]:"Editable area. Press Alt + F10 for toolbar.",[Al]:"Fore Color",[Cl]:"Back Color",[Il]:"Cell properties",[Dl]:"Left Top",[Bl]:"Center Top",[zl]:"Right Top",[Rl]:"Left Middle",[Ml]:"Center Middle",[kl]:"Right Middle",[Hl]:"Left Bottom",[Fl]:"Center Bottom",[Wl]:"Right Bottom",[Kl]:"No Alignment",[Ol]:"Wrap",[Vl]:"Fit to cell",[Ul]:"Apply to all cells",[_l]:"Width",[$l]:"apply to column",[El]:"Height",[jl]:"apply to row",[ql]:"Alignment",[Gl]:"Text control",[Jl]:"Cell padding",[Ql]:"Background",[Xl]:"Border width",[Yl]:"Border color",[Zl]:"Border style",[ea]:"ID",[ta]:"CSS class",[la]:"Save",[aa]:"Cancel",[ra]:"Table properties",[sa]:"Align Left",[ia]:"Align Center",[na]:"Align Right",[oa]:"No Alignment",[ca]:"Left",[pa]:"Center",[da]:"Right",[ua]:"Top",[ga]:"Bottom",[ha]:"None",[ma]:"Using 'scope' attribute",[fa]:"Using 'id' attributes",[ba]:"Rows",[ya]:"Columns",[va]:"Width",[wa]:"Height",[Pa]:"Position",[Sa]:"Alignment",[xa]:"Cell spacing",[Ta]:"Cell padding",[Na]:"Table background",[La]:"Border width",[Aa]:"Border color",[Ca]:"Border style",[Ia]:"Collapse borders",[Da]:"ID",[Ba]:"CSS class",[za]:"Accessibility",[Ra]:"Caption",[Ma]:"Position",[ka]:"Alignment",[Ha]:"Header rows",[Fa]:"Header cols",[Wa]:"Associate headers",[Ka]:"General",[Oa]:"Advanced",[Va]:"Save",[Ua]:"Cancel",[_a]:"None",[$a]:"Solid",[Ea]:"Dotted",[ja]:"Dashed",[qa]:"Double",[Ga]:"Groove",[Ja]:"Ridge",[Qa]:"Inset",[Xa]:"Outset",[Ya]:"Initial",[Za]:"Inherit",[er]:"Hidden",[tr]:"Auto"},o={bold:lt,italic:at,underline:rt,strikethrough:st,subscript:it,superscript:nt,unlink:Xt,undo:Yt,redo:Zt,fontSize:el,fontName:tl,format:ll,alignLeft:al,alignRight:rl,alignCenter:sl,alignJustify:il,indent:nl,outdent:ol,orderedList:cl,bulletList:pl,print:pt,selectAll:dt,cleanFormatting:ut,pdf:gt,foregroundColor:ht,backgroundColor:mt,createTable:ft,createTableHint:bt,addRowBefore:yt,addRowAfter:vt,addColumnBefore:wt,addColumnAfter:Pt,deleteRow:St,deleteColumn:xt,deleteTable:Tt,mergeCells:Nt,splitCell:Lt,insertHyperlink:ot,insertHyperlinkDialogTitle:At,insertHyperlinkAddress:Ct,insertHyperlinkTitle:It,insertHyperlinkNewWindow:Dt,insertHyperlinkCancel:Bt,insertHyperlinkInsert:zt,insertFile:ct,insertFileDialogTitle:Rt,insertFileAddress:Mt,insertFileTitle:kt,insertFileCancel:Ht,insertFileInsert:Ft,insertImage:Wt,insertImageDialogTitle:Kt,insertImageAddress:Ot,insertImageTitle:Vt,insertImageAltText:Ut,insertImageWidth:_t,insertImageHeight:$t,insertImageCancel:Et,insertImageInsert:jt,viewHtml:qt,viewHtmlDialogTitle:Gt,viewHtmlCancel:Jt,viewHtmlUpdate:Qt,findReplaceToolTitle:dl,findReplaceDialogTitle:ul,findReplaceTabFind:gl,findReplaceTabReplace:hl,findReplaceFindWhat:ml,findReplaceReplaceWith:fl,findReplaceReplace:bl,findReplaceReplaceAll:yl,findReplaceMatchCase:vl,findReplaceMatchWord:wl,findReplaceMatchCyclic:Pl,findReplaceUseRegExp:Sl,findReplacePrevMatch:xl,findReplaceNextMatch:Tl,findReplaceMatches:Nl,iframeTitle:Ll,foreColorLabel:Al,backColorLabel:Cl,cellProperties:Il,cellPropertiesLeftTop:Dl,cellPropertiesCenterTop:Bl,cellPropertiesRightTop:zl,cellPropertiesLeftMiddle:Rl,cellPropertiesCenterMiddle:Ml,cellPropertiesRightMiddle:kl,cellPropertiesLeftBottom:Hl,cellPropertiesCenterBottom:Fl,cellPropertiesRightBottom:Wl,cellPropertiesNoAlignment:Kl,cellPropertiesWrap:Ol,cellPropertiesFitToCell:Vl,cellPropertiesApplyToAllCells:Ul,cellPropertiesWidth:_l,cellPropertiesApplyToColumn:$l,cellPropertiesHeight:El,cellPropertiesApplyToRow:jl,cellPropertiesAlignment:ql,cellPropertiesTextControl:Gl,cellPropertiesCellPadding:Jl,cellPropertiesBackground:Ql,cellPropertiesBorderWidth:Xl,cellPropertiesBorderColor:Yl,cellPropertiesBorderStyle:Zl,cellPropertiesId:ea,cellPropertiesCssClass:ta,cellPropertiesSave:la,cellPropertiesCancel:aa,tableProperties:ra,tablePropertiesAlignLeft:sa,tablePropertiesAlignCenter:ia,tablePropertiesAlignRight:na,tablePropertiesNoAlignment:oa,tablePropertiesLeft:ca,tablePropertiesCenter:pa,tablePropertiesRight:da,tablePropertiesTop:ua,tablePropertiesBottom:ga,tablePropertiesNone:ha,tablePropertiesUsingScopeAttribute:ma,tablePropertiesUsingIdAttributes:fa,tablePropertiesRows:ba,tablePropertiesColumns:ya,tablePropertiesWidth:va,tablePropertiesHeight:wa,tablePropertiesPosition:Pa,tablePropertiesAlignment:Sa,tablePropertiesCellSpacing:xa,tablePropertiesCellPadding:Ta,tablePropertiesTableBackground:Na,tablePropertiesBorderWidth:La,tablePropertiesBorderColor:Aa,tablePropertiesBorderStyle:Ca,tablePropertiesCollapseBorders:Ia,tablePropertiesId:Da,tablePropertiesCssClass:Ba,tablePropertiesAccessibility:za,tablePropertiesCaption:Ra,tablePropertiesCaptionPosition:Ma,tablePropertiesCaptionAlignment:ka,tablePropertiesHeaderRows:Ha,tablePropertiesHeaderCols:Fa,tablePropertiesAssociateHeaders:Wa,tablePropertiesGeneral:Ka,tablePropertiesAdvanced:Oa,tablePropertiesSave:Va,tablePropertiesCancel:Ua,borderStyleNone:_a,borderStyleSolid:$a,borderStyleDotted:Ea,borderStyleDashed:ja,borderStyleDouble:qa,borderStyleGroove:Ga,borderStyleRidge:Ja,borderStyleInset:Qa,borderStyleOutset:Xa,borderStyleInitial:Ya,borderStyleInherit:Za,borderStyleHidden:er,sizeAuto:tr},ge={...i.indentRules.listsTypes};v.EditorToolsSettings=void 0,(t=>{const e={type:"button"};t.bold={...i.bold,props:{icon:"bold",svgIcon:x.boldIcon,...e},messages:{title:o.bold},commandName:"Bold"},t.italic={...i.italic,props:{icon:"italic",svgIcon:x.italicIcon,...e},messages:{title:o.italic},commandName:"Italic"},t.underline={...i.underline,props:{icon:"underline",svgIcon:x.underlineIcon,...e},messages:{title:o.underline},commandName:"Underline"},t.strikethrough={...i.strikethrough,props:{icon:"strikethrough",svgIcon:x.strikethroughIcon,...e},messages:{title:o.strikethrough},commandName:"Strikethrough"},t.subscript={...i.subscript,props:{icon:"subscript",svgIcon:x.subscriptIcon,...e},messages:{title:o.subscript},commandName:"Subscript"},t.superscript={...i.superscript,props:{icon:"supscript",svgIcon:x.supscriptIcon,...e},messages:{title:o.superscript},commandName:"Superscript"},t.link={...i.link,props:{icon:"link",svgIcon:x.linkIcon,...e},messages:{insertHyperlink:o.insertHyperlink,insertHyperlinkDialogTitle:o.insertHyperlinkDialogTitle,insertHyperlinkAddress:o.insertHyperlinkAddress,insertHyperlinkTitle:o.insertHyperlinkTitle,insertHyperlinkNewWindow:o.insertHyperlinkNewWindow,insertHyperlinkCancel:o.insertHyperlinkCancel,insertHyperlinkInsert:o.insertHyperlinkInsert},commandName:"Link"},t.insertFile={...i.link,props:{icon:"file-add",svgIcon:x.fileAddIcon,...e},messages:{insertHyperlink:o.insertFile,insertHyperlinkDialogTitle:o.insertFileDialogTitle,insertHyperlinkAddress:o.insertFileAddress,insertHyperlinkTitle:o.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:o.insertFileCancel,insertHyperlinkInsert:o.insertFileInsert},commandName:"InsertFile",linkTarget:!1},t.insertTable={props:{icon:"table-add",svgIcon:x.tableAddIcon,...e},messages:{createTable:o.createTable,createTableHint:o.createTableHint},commandName:"InsertTable"},t.addRowBefore={props:{icon:"table-row-insert-above",svgIcon:x.tableRowInsertAboveIcon,...e},messages:{title:o.addRowBefore},commandName:"AddRowBefore"},t.addRowAfter={props:{icon:"table-row-insert-below",svgIcon:x.tableRowInsertBelowIcon,...e},messages:{title:o.addRowAfter},commandName:"AddRowAfter"},t.addColumnBefore={props:{icon:"table-column-insert-left",svgIcon:x.tableColumnInsertLeftIcon,...e},messages:{title:o.addColumnBefore},commandName:"AddColumnBefore"},t.addColumnAfter={props:{icon:"table-column-insert-right",svgIcon:x.tableColumnInsertRightIcon,...e},messages:{title:o.addColumnAfter},commandName:"AddColumnAfter"},t.deleteRow={props:{icon:"table-row-delete",svgIcon:x.tableRowDeleteIcon,...e},messages:{title:o.deleteRow},commandName:"DeleteRow"},t.deleteColumn={props:{icon:"table-column-delete",svgIcon:x.tableColumnDeleteIcon,...e},messages:{title:o.deleteColumn},commandName:"DeleteColumn"},t.deleteTable={props:{icon:"table-delete",svgIcon:x.tableDeleteIcon,...e},messages:{title:o.deleteTable},commandName:"DeleteTable"},t.mergeCells={props:{icon:"cells-merge",svgIcon:x.cellsMergeIcon,...e},messages:{title:o.mergeCells},commandName:"MergeCells"},t.splitCell={props:{icon:"cell-split-horizontally",svgIcon:x.cellSplitHorizontallyIcon,...e},messages:{title:o.splitCell},commandName:"SplitCell"},t.print={props:{icon:"print",svgIcon:x.printIcon,...e},messages:{title:o.print}},t.selectAll={props:{icon:"select-all",svgIcon:x.selectAllIcon,...e},messages:{title:o.selectAll}},t.pdf={props:{icon:"file-pdf",svgIcon:x.filePdfIcon,...e},messages:{title:o.pdf}},t.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},t.cleanFormatting={props:{icon:"clear-css",svgIcon:x.clearCssIcon,...e},messages:{title:o.cleanFormatting},commandName:"CleanFormatting"},t.image={node:"image",props:{icon:"image",svgIcon:x.imageIcon,...e},messages:{insertImage:o.insertImage,insertImageDialogTitle:o.insertImageDialogTitle,insertImageAddress:o.insertImageAddress,insertImageTitle:o.insertImageTitle,insertImageAltText:o.insertImageAltText,insertImageWidth:o.insertImageWidth,insertImageHeight:o.insertImageHeight,insertImageCancel:o.insertImageCancel,insertImageInsert:o.insertImageInsert},commandName:"InsertImage"},t.viewHtml={props:{icon:"code",svgIcon:x.codeIcon,...e},messages:{viewHtml:o.viewHtml,viewHtmlDialogTitle:o.viewHtmlDialogTitle,viewHtmlCancel:o.viewHtmlCancel,viewHtmlUpdate:o.viewHtmlUpdate},commandName:"SetContent"},t.findAndReplace={props:{icon:"find",svgIcon:x.binocularsIcon,...e},messages:{findReplaceToolTitle:o.findReplaceToolTitle,findReplaceDialogTitle:o.findReplaceDialogTitle,findReplaceTabFind:o.findReplaceTabFind,findReplaceTabReplace:o.findReplaceTabReplace,findReplaceFindWhat:o.findReplaceFindWhat,findReplaceReplaceWith:o.findReplaceReplaceWith,findReplaceReplace:o.findReplaceReplace,findReplaceReplaceAll:o.findReplaceReplaceAll,findReplaceMatchCase:o.findReplaceMatchCase,findReplaceMatchWord:o.findReplaceMatchWord,findReplaceMatchCyclic:o.findReplaceMatchCyclic,findReplaceUseRegExp:o.findReplaceUseRegExp,findReplacePrevMatch:o.findReplacePrevMatch,findReplaceNextMatch:o.findReplaceNextMatch,findReplaceMatches:o.findReplaceMatches}},t.unlink={...i.link,props:{icon:"unlink",svgIcon:x.unlinkIcon,...e},messages:{title:o.unlink},commandName:"Unlink"},t.undo={props:{icon:"undo",svgIcon:x.undoIcon,...e},messages:{title:o.undo},commandName:"Undo"},t.redo={props:{icon:"redo",svgIcon:x.redoIcon,...e},messages:{title:o.redo},commandName:"Redo"},t.fontSize={style:"font-size",defaultItem:{text:g[o.fontSize],value:"",localizationKey:o.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"},t.fontName={style:"font-family",defaultItem:{text:g[o.fontName],value:"",localizationKey:o.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"},t.formatBlock={defaultItem:{text:g[o.format],value:"",localizationKey:o.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"},t.foreColor={style:"color",colorPickerProps:{icon:"foreground-color",svgIcon:x.foregroundColorIcon,view:"palette",title:o.foregroundColor,ariaLabel:o.foreColorLabel},commandName:"ForeColor"},t.backColor={style:"background-color",colorPickerProps:{icon:"droplet",svgIcon:x.dropletIcon,view:"palette",title:o.backgroundColor,ariaLabel:o.backColorLabel},commandName:"BackColor"},t.alignLeft={actions:[...i.alignLeftRules],props:{icon:"align-left",svgIcon:x.alignLeftIcon,...e},messages:{title:o.alignLeft},commandName:"AlignLeft"},t.alignRight={actions:[...i.alignRightRules],props:{icon:"align-right",svgIcon:x.alignRightIcon,...e},messages:{title:o.alignRight},commandName:"AlignRight"},t.alignCenter={actions:[...i.alignCenterRules],props:{icon:"align-center",svgIcon:x.alignCenterIcon,...e},messages:{title:o.alignCenter},commandName:"AlignCenter"},t.alignJustify={actions:[...i.alignJustifyRules],props:{icon:"align-justify",svgIcon:x.alignJustifyIcon,...e},messages:{title:o.alignJustify},commandName:"AlignJustify"},t.alignRemove={actions:[...i.alignRemoveRules],props:{icon:"align-remove",svgIcon:x.alignRemoveIcon,...e},messages:{},commandName:"AlignRemove"},t.indent={actions:i.indentRules.nodes,listsTypes:ge,props:{icon:"indent",svgIcon:x.indentIcon,...e},messages:{title:o.indent},commandName:"Indent"},t.outdent={actions:i.outdentRules.nodes,listsTypes:ge,props:{icon:"outdent",svgIcon:x.outdentIcon,...e},messages:{title:o.outdent},commandName:"Outdent"},t.orderedList={listType:ge.orderedList,props:{icon:"list-ordered",svgIcon:x.listOrderedIcon,...e},messages:{title:o.orderedList},commandName:"OrderedList",types:{...ge}},t.bulletList={listType:ge.bulletList,props:{icon:"list-unordered",svgIcon:x.listUnorderedIcon,...e},messages:{title:o.bulletList},commandName:"UnorderedList",types:{...ge}}})(v.EditorToolsSettings||(v.EditorToolsSettings={}));let lr=class extends l.Component{constructor(){super(...arguments),this.href=null,this.title=null,this.target=null,this.onClose=()=>{this.props.view.focus(),this.props.onClose()},this.onInsert=()=>{const e=this.props.view,a=this.props.settings.mark,s={href:this.href?this.href.value:void 0,title:this.title?this.title.value:void 0,target:this.target&&this.target.element&&this.target.element.checked?"_blank":void 0};i.applyLink({mark:a,attrs:s},this.props.settings.commandName)(e.state,e.dispatch),this.onClose()}}render(){const{view:e,settings:a,dir:s,render:r}=this.props,n=A.provideLocalizationService(this),{insertHyperlinkDialogTitle:c,insertHyperlinkAddress:p,insertHyperlinkTitle:d,insertHyperlinkNewWindow:u,insertHyperlinkCancel:h,insertHyperlinkInsert:m}=a.messages,w=e?i.getMark(e.state,e.state.schema.marks[a.mark]):!1,f=l.createElement(W.Form,{render:()=>l.createElement(W.FormElement,{horizontal:!0},l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-link-url",className:"k-form-label"},n.toLanguageString(p,g[p])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{type:"text",id:"k-editor-link-url",ref:N=>this.href=N,defaultValue:w&&w.attrs.href||void 0,autoFocus:!0}))),l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-link-text",className:"k-form-label"},n.toLanguageString(d,g[d])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{type:"text",id:"k-editor-link-text",ref:N=>this.title=N,defaultValue:w&&w.attrs.title||void 0}))),a.linkTarget!==!1&&l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-link-target",className:"k-checkbox-label"},l.createElement(C.Checkbox,{id:"k-editor-link-target",ref:N=>this.target=N,defaultChecked:w&&!!w.attrs.target||void 0}),n.toLanguageString(u,g[u]))))}),b=[l.createElement(D.Button,{onClick:this.onClose,dir:s,key:"cancel"},n.toLanguageString(h,g[h])),l.createElement(D.Button,{onClick:this.onInsert,themeColor:"primary",dir:s,key:"insert"},n.toLanguageString(m,g[m]))],S=l.createElement(q.Window,{initialWidth:450,initialHeight:250,className:"k-editor-window",title:n.toLanguageString(c,g[c]),onClose:this.onClose,style:s==="rtl"?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},f,l.createElement(q.WindowActionsBar,null,...b));return r?r(S,{content:f,actionButtons:b}):S}};A.registerForLocalization(lr);let ar=class extends l.Component{constructor(){super(...arguments),this.src=null,this.altText=null,this.title=null,this.width=null,this.height=null,this.onClose=()=>{this.props.view.focus(),this.props.onClose()},this.onInsert=()=>{const{view:e,settings:a}=this.props,r=e.state.schema.nodes[a.node],n={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},c=Object.keys(n).filter(d=>n[d]!==null&&n[d]!=="").reduce((d,u)=>Object.assign(d,{[u]:n[u]}),{}),p=r.createAndFill(c);p&&i.insertNode(p,!0)(e.state,u=>e.dispatch(u.setMeta("commandName",a.commandName).setMeta("args",c))),this.onClose()}}render(){const{view:e,settings:a,dir:s,render:r}=this.props,{insertImageDialogTitle:n,insertImageAddress:c,insertImageTitle:p,insertImageAltText:d,insertImageWidth:u,insertImageHeight:h,insertImageCancel:m,insertImageInsert:w}=a.messages,f=A.provideLocalizationService(this),b=e&&e.state;let S={};b&&b.selection instanceof i.NodeSelection&&b.selection.node.type===b.schema.nodes[a.node]&&(S=b.selection.node.attrs);const N=l.createElement(W.Form,{render:()=>l.createElement(W.FormElement,{horizontal:!0},l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},f.toLanguageString(c,g[c])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{type:"text",id:"k-editor-image-url",defaultValue:S.src,ref:k=>this.src=k,autoFocus:!0}))),l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-image-url",className:"k-form-label"},f.toLanguageString(d,g[d])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{type:"text",id:"k-editor-image-alt",defaultValue:S.alt,ref:k=>this.altText=k}))),l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-image-title",className:"k-form-label"},f.toLanguageString(p,g[p])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{type:"text",id:"k-editor-image-title",defaultValue:S.title,ref:k=>this.title=k}))),l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-image-width",className:"k-form-label"},f.toLanguageString(u,g[u])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{type:"text",id:"k-editor-image-width",defaultValue:S.width,ref:k=>this.width=k}))),l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"k-editor-image-height",className:"k-form-label"},f.toLanguageString(h,g[h])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{id:"k-editor-image-height",defaultValue:S.height,ref:k=>this.height=k}))))}),I=[l.createElement(D.Button,{onClick:this.onClose,dir:s,key:"cancel"},f.toLanguageString(m,g[m])),l.createElement(D.Button,{onClick:this.onInsert,themeColor:"primary",dir:s,key:"insert"},f.toLanguageString(w,g[w]))],B=l.createElement(q.Window,{initialWidth:500,initialHeight:350,className:"k-editor-window",title:f.toLanguageString(n,g[n]),onClose:this.onClose,key:"dialog",style:s==="rtl"?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},N,l.createElement(q.WindowActionsBar,null,...I));return r?r(B,{content:N,actionButtons:I}):B}};A.registerForLocalization(ar);const Be=new i.PluginKey("editor-props");let rr=class extends l.Component{constructor(){super(...arguments),this.htmlArea=null,this.textAreaRef=e=>{this.htmlArea=e;const a=e&&e.element.current;a&&(a.style.resize="none")},this.onUpdate=()=>{const{view:e,settings:a}=this.props,s=i.trimWhitespace(this.htmlArea&&this.htmlArea.value||""),{preserveWhitespace:r}=Be.getState(e.state);i.setHtml(s,a.commandName,{preserveWhitespace:r})(e.state,e.dispatch),this.onClose()},this.onClose=()=>{this.props.view.focus(),this.props.onClose()}}render(){const{view:e,settings:a,dir:s,render:r}=this.props,n=A.provideLocalizationService(this),{viewHtmlDialogTitle:c,viewHtmlCancel:p,viewHtmlUpdate:d}=a.messages,u=l.createElement(C.TextArea,{className:"k-editor-textarea",defaultValue:i.indentHtml(i.getHtml(e.state)),autoFocus:!0,autoSize:!1,ref:this.textAreaRef}),h=[l.createElement(D.Button,{onClick:this.onClose,dir:s,key:"cancel"},n.toLanguageString(p,g[p])),l.createElement(D.Button,{onClick:this.onUpdate,themeColor:"primary",dir:s,key:"update"},n.toLanguageString(d,g[d]))],m=l.createElement(q.Window,{className:"k-editor-window",title:n.toLanguageString(c,g[c]),onClose:this.onClose,key:"dialog",style:s==="rtl"?{textAlign:"right"}:void 0,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!0,initialHeight:400,initialWidth:500},u,l.createElement(q.WindowActionsBar,null,...h));return r?r(m,{content:u,actionButtons:h}):m}};A.registerForLocalization(rr);const K={onMouseDown:t=>t.preventDefault(),onPointerDown:t=>t.preventDefault()},sr={userSelect:"none"},ir=function(t,...e){return e.forEach((a,s)=>{t=t.replace("{"+s+"}",String(a))}),t},nr=(t,e)=>e.dataItem.style?l.cloneElement(t,t.props,l.createElement("span",{style:e.dataItem.style},t.props.children)):t,ne=["px","em","%"],U={animate:{openDuration:150,closeDuration:150}},ze=[{textKey:o.borderStyleNone,text:g[o.borderStyleNone],value:"none"},{textKey:o.borderStyleSolid,text:g[o.borderStyleSolid],value:"solid"},{textKey:o.borderStyleDotted,text:g[o.borderStyleDotted],value:"dotted"},{textKey:o.borderStyleDashed,text:g[o.borderStyleDashed],value:"dashed"},{textKey:o.borderStyleDouble,text:g[o.borderStyleDouble],value:"double"},{textKey:o.borderStyleGroove,text:g[o.borderStyleGroove],value:"groove"},{textKey:o.borderStyleRidge,text:g[o.borderStyleRidge],value:"ridge"},{textKey:o.borderStyleInset,text:g[o.borderStyleInset],value:"inset"},{textKey:o.borderStyleOutset,text:g[o.borderStyleOutset],value:"outset"},{textKey:o.borderStyleInitial,text:g[o.borderStyleInitial],value:"initial"},{textKey:o.borderStyleInherit,text:g[o.borderStyleInherit],value:"inherit"},{textKey:o.borderStyleHidden,text:g[o.borderStyleHidden],value:"hidden"}];function _(t,e){for(let a=t.depth;a>0;a--){let s=t.node(a);if(e(s))return{node:s,depth:a}}return null}const Er=13,jr=27,qr=v.EditorToolsSettings.findAndReplace;let Ke=class extends l.Component{constructor(e){super(e),this.onTabSelect=a=>{this.setState({selectedTab:a.selected})},this.onClose=()=>{const a=this.props.view,s=a.state,r=s.tr.setSelection(i.TextSelection.create(s.doc,s.selection.from,s.selection.to));a.updateState(s.apply(r)),a.focus(),this.props.onClose.call(void 0)},this.matchesMessage=a=>{const s=this.state.matches,r=this.state.nextMatch;let n=0,c=0;if(s&&r){const p=s.findIndex(d=>d.eq(r));n=p===-1?s.length:p+1,c=s.length}return ir(a,n,c)},this.onFindNext=()=>{this.onFind()},this.onFindPrev=()=>{this.onFind(!0)},this.onFind=(a=!1)=>{const s=this.props.view,{searchText:r,matchCase:n,matchCyclic:c,matchWord:p,useRegExp:d}=this.state,u={text:r,matchWord:p,matchCase:n,useRegExp:d,backward:a,matchCyclic:c},h=i.find(s.state,u);if(h){const m=s.state.tr.setSelection(h);m.scrollIntoView(),s.updateState(s.state.apply(m)),this.setState({nextMatch:h})}},this.onReplace=()=>{const a=this.props.view,s=a.state.selection,{replaceText:r}=this.state;if(!s.empty){const n=s.from,c=n+r.length,p=i.replace(s,r,a.state.tr);p.setSelection(i.TextSelection.create(p.doc,n,c)),p.scrollIntoView(),a.dispatch(p),this.setNextState({})}},this.onReplaceAll=()=>{const a=this.props.view,{searchText:s,replaceText:r,matchCase:n,matchWord:c,useRegExp:p}=this.state,d={text:s,matchWord:c,matchCase:n,useRegExp:p},u=i.replaceAll(a.state,r,d);u&&a.dispatch(u),this.setNextState({})},this.onKeyDown=a=>{a.keyCode===Er?this.onFindNext():a.keyCode===jr&&this.onClose()},this.onMatchCaseChecked=a=>this.setNextState({matchCase:a.value}),this.onMatchWordChecked=a=>this.setNextState({matchWord:a.value}),this.onMatchCyclicChecked=a=>this.setNextState({matchCyclic:a.value}),this.onUseRegExpChecked=a=>this.setNextState({useRegExp:a.value}),this.onSearchChange=a=>this.setNextState({searchText:a.target.value}),this.onReplaceChange=a=>this.setNextState({replaceText:a.target.value}),this.setNextState=a=>{const s={...this.state,...a,matches:void 0,nextMatch:void 0},r=this.props.view;if(s.searchText){const{searchText:n,matchWord:c,matchCase:p,useRegExp:d,matchCyclic:u}=s,h={text:n,matchWord:c,matchCase:p,useRegExp:d},m=r.state.selection,w=i.findAll(r.state.doc,h);let f=!this.state.searchText&&w[0]||w.find(b=>b.from>=m.from)||u&&w[0]||void 0;this.setState({...s,matches:w,nextMatch:f})}else this.setState(s)},this.state={selectedTab:0,searchText:i.selectedLineTextOnly(e.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1}}get settings(){return this.props.settings||qr}componentDidUpdate(e,a){const s=this.props.view,{matches:r=[],nextMatch:n}=this.state;if(a.nextMatch!==n){const c=s.state,p=c.tr,d=[];r.forEach(u=>{d.push({from:u.from,to:u.to,attrs:{class:n&&u.eq(n)?"k-text-selected":"k-text-highlighted"}})}),p.setMeta(i.textHighlightKey,d),p.setSelection(n||i.TextSelection.create(c.doc,c.selection.from)),s.dispatch(p)}}render(){const e=A.provideLocalizationService(this),{findReplaceDialogTitle:a,findReplaceTabFind:s,findReplaceTabReplace:r,findReplaceFindWhat:n,findReplaceReplaceWith:c,findReplaceReplace:p,findReplaceReplaceAll:d,findReplaceMatchCase:u,findReplaceMatchWord:h,findReplaceMatchCyclic:m,findReplaceUseRegExp:w,findReplacePrevMatch:f,findReplaceNextMatch:b,findReplaceMatches:S}=this.settings.messages,{matchCase:N,matchWord:I,matchCyclic:B,useRegExp:k,searchText:H,replaceText:$,nextMatch:Q}=this.state,E=l.createElement("div",{className:"k-search-options"},l.createElement("span",null,l.createElement(C.Checkbox,{id:"match-case",checked:N,onChange:this.onMatchCaseChecked}),l.createElement("label",{htmlFor:"match-case",className:"k-checkbox-label"},e.toLanguageString(u,g[u]))),l.createElement("span",null,l.createElement(C.Checkbox,{id:"match-whole",checked:I,onChange:this.onMatchWordChecked}),l.createElement("label",{htmlFor:"match-whole",className:"k-checkbox-label"},e.toLanguageString(h,g[h]))),l.createElement("span",null,l.createElement(C.Checkbox,{id:"match-cyclic",checked:B,onChange:this.onMatchCyclicChecked}),l.createElement("label",{htmlFor:"match-cyclic",className:"k-checkbox-label"},e.toLanguageString(m,g[m]))),l.createElement("span",null,l.createElement(C.Checkbox,{id:"regular-expression",checked:k,onChange:this.onUseRegExpChecked}),l.createElement("label",{htmlFor:"regular-expression",className:"k-checkbox-label"},e.toLanguageString(w,g[w])))),X=l.createElement("div",{className:"k-matches-container"},l.createElement(D.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindPrev},l.createElement(F.IconWrap,{name:"chevron-left",icon:x.chevronLeftIcon}),e.toLanguageString(f,g[f])),l.createElement("span",null,this.matchesMessage(e.toLanguageString(S,g[S]))),l.createElement(D.Button,{fillMode:"flat",themeColor:"primary",onClick:this.onFindNext},e.toLanguageString(b,g[b]),l.createElement(F.IconWrap,{name:"chevron-right",icon:x.chevronRightIcon}))),j=l.createElement(W.Form,{render:()=>l.createElement(W.FormElement,{horizontal:!0},l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"findWhat",className:"k-form-label"},e.toLanguageString(n,g[n])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{id:"findWhat",type:"text",value:H,onChange:this.onSearchChange,onFocus:this.onSearchChange,onKeyDown:this.onKeyDown,autoFocus:!0}))))}),Y=l.createElement(W.Form,{render:()=>l.createElement(W.FormElement,{horizontal:!0},l.createElement(W.FieldWrapper,null,l.createElement("label",{htmlFor:"replaceWith",className:"k-form-label"},e.toLanguageString(c,g[c])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Input,{id:"replaceWith",type:"text",value:$,onChange:this.onReplaceChange}))))});return l.createElement(q.Window,{title:e.toLanguageString(a,g[a]),onClose:this.onClose,style:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:()=>null,maximizeButton:()=>null},l.createElement(Le.TabStrip,{selected:this.state.selectedTab,className:"k-editor-find-replace",onSelect:this.onTabSelect,animation:!1},l.createElement(Le.TabStripTab,{title:e.toLanguageString(s,g[s])},j,E,X),l.createElement(Le.TabStripTab,{title:e.toLanguageString(r,g[r])},j,Y,l.createElement("div",{className:"k-actions k-hstack k-justify-content-end"},l.createElement(D.Button,{disabled:!Q,onClick:this.onReplace},e.toLanguageString(p,g[p])),l.createElement(D.Button,{disabled:!Q,onClick:this.onReplaceAll},e.toLanguageString(d,g[d]))),E,X)))}};A.registerForLocalization(Ke),v.EditorDialogs=void 0,(t=>{class e extends lr{}t.InsertLinkDialog=e;class a extends ar{}t.InsertImageDialog=a;class s extends rr{}t.ViewHtmlDialog=s;class r extends Ke{}t.FindAndReplaceDialog=r})(v.EditorDialogs||(v.EditorDialogs={}));const{bold:Gr,underline:Jr,italic:Qr}=v.EditorToolsSettings,or=typeof navigator<"u"?/Mac/.test(navigator.platform):!1,Xr=t=>{const e=i.chainCommands(i.exitCode,(n,c)=>{const p=t&&t.types&&t.types.hardBreak||"hard_break",d=n.schema.nodes[p];return c&&c(n.tr.replaceSelectionWith(d.create()).scrollIntoView()),!0}),a=t&&t.types&&t.types.listItem||"list_item",s=t&&t.toolsSettings||{};return{"Mod-b":(n,c)=>i.toggleInlineFormat(s.bold||Gr)(n,c),"Mod-i":(n,c)=>i.toggleInlineFormat(s.italic||Qr)(n,c),"Mod-u":(n,c)=>i.toggleInlineFormat(s.underline||Jr)(n,c),"Mod-z":i.undo,"Shift-Mod-z":i.redo,...or?{}:{"Mod-y":i.redo},Backspace:i.undoInputRule,"Mod-Enter":e,"Shift-Enter":e,...or?{"Ctrl-Enter":e}:{},Enter:(n,c)=>i.splitListItem(n.schema.nodes[a])(n,c),Tab:i.goToNextCell(1),"Shift-Tab":i.goToNextCell(-1)}};v.EditorUtils=void 0,(t=>{function e(P,L,z){return!!i.alignBlocks(L,z)(P.state,P.dispatch)}t.alignBlocks=e;function a(P,L,z){return i.applyInlineStyle(L,z)(P.state,P.dispatch)}t.applyInlineStyle=a;function s(P,L,z){return i.applyLink(L,z)(P.state,P.dispatch)}t.applyLink=s;function r(P,L){return i.canIndentAsListItem(P,L)}t.canIndentList=r;function n(P,L){return i.canInsert(P,L)}t.canInsert=n;function c(P,L){return i.canOutdentAsListItem(P,{listsTypes:L,nodes:[]})}t.canOutdentList=c;function p(P){return i.convertMsLists(P)}t.convertMsLists=p;function d(P,L,z){return i.parseContent(i.trimWhitespace(L),P,z!==void 0?z:{preserveWhitespace:"full"})}t.createDocument=d;function u(P,L,z){return i.createTable(P,L,z)}t.createTable=u;function h(P,L,z){return i.formatBlockElements(L,z)(P.state,P.dispatch)}t.formatBlockElements=h;function m(P){return i.getBlockFormats(P)}t.getBlockFormats=m;function w(P){return i.getHtml(P)}t.getHtml=w;function f(P,L){return i.getInlineStyles(P,L)}t.getInlineStyles=f;function b(P,L){return i.getMark(P,L)}t.getMark=b;function S(P,L){return i.hasMark(P,L)}t.hasMark=S;function N(P,L){return i.hasNode(P,L)}t.hasNode=N;function I(P,L,z,V){return!!i.indentBlocks(L,z,V)(P.state,P.dispatch)}t.indentBlocks=I;function B(P){return i.indentHtml(P)}t.indentHtml=B;function k(P,L,z){i.insertNode(L,z)(P.state,P.dispatch)}t.insertNode=k;function H(P,L){return i.isAligned(P,L)}t.isAligned=H;function $(P,L,z){return i.isIndented(P,L,z)}t.isIndented=$;function Q(P){return i.removeComments(P)}t.removeComments=Q;function E(P,L){return i.removeTag(P,L)}t.removeTag=E;function X(P,L){return i.pasteCleanup(P,L)}t.pasteCleanup=X;function j(P){i.sanitizeClassAttr(P)}t.sanitizeClassAttr=j;function Y(P){i.sanitizeStyleAttr(P)}t.sanitizeStyleAttr=Y;function Z(P){i.removeAttribute(P)}t.removeAttribute=Z;function re(P){return i.sanitize(P)}t.sanitize=re;function te(P,L){return i.replaceImageSourcesFromRtf(P,L)}t.replaceImageSourcesFromRtf=te;function he(P){return i.textHighlight(P)}t.textHighlight=he;function me(P){return i.imageResizing(P)}t.imageResizing=me;function se(){return i.tableResizing()}t.tableResizing=se;function fe(P,L,z,V){const le=i.trimWhitespace(L);i.setHtml(le,z,V)(P.state,P.dispatch)}t.setHtml=fe;function T(P,L,z,V){return i.toggleInlineFormat(L,z,V)(P.state,P.dispatch)}t.toggleInlineFormat=T;function ee(P,L,z){return i.toggleList(P.state,P.dispatch,P,L,z)}t.toggleList=ee;function ie(P){return Xr(P)}t.getShortcuts=ie,t.propsKey=Be,t.imageResizeKey=i.imageResizeKey,t.marks={...i.marks},t.nodes={...i.nodes}})(v.EditorUtils||(v.EditorUtils={}));const Re=(t,e)=>{const a=e.tr||t.state.tr.setSelection(new i.AllSelection(t.state.doc)).replaceSelectionWith(e.doc||v.EditorUtils.createDocument(t.state.schema,e.html||"")).setMeta("commandName","setHTML");t.updateState(t.state.apply(a))},Yr=(t,e,a,s,r)=>{typeof e=="string"?s&&e===r?Re(t,{tr:s}):e!==a&&Re(t,{html:e}):s&&e.eq(s.doc)?Re(t,{tr:s}):t.state.doc.eq(e)||Re(t,{doc:e})},cr=typeof window<"u"&&/Firefox/.test(window.navigator.userAgent),pr={name:"@progress/kendo-react-editor",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:0,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/"},{link:dr,bold:Zr,italic:es,underline:ts}=v.EditorToolsSettings;class Oe extends l.Component{constructor(e){super(e),this.state={view:void 0,linkDialog:!1},this._element=null,this._contentElement=null,this.iframe=null,this.trOnChange=null,this.htmlOnChange=null,this.showLicenseWatermark=!1,this.focus=()=>{this.view&&this.view.focus()},this.renderDialog=(a,s,r)=>this.state[r]&&l.createElement(a,{view:this.view,settings:s,dir:this.props.dir,onClose:()=>this.setState({[r]:!1})}),this.renderTool=(a,s)=>{const r=l.createElement(a,{view:this.view,dir:this.props.dir,key:s});return r.type===D.ToolbarSeparator?l.createElement(a,{key:s}):r},this.updateTools=(a,s)=>{this.setState({view:a})},this.filterTransaction=(a,s)=>{const r={target:this,transaction:a,state:s};return(this.props.onExecute&&this.props.onExecute.call(void 0,r))!==!1},this.onPasteHtml=a=>{if(this.props.onPasteHtml&&this.pasteEvent){const s={target:this,pastedHtml:a,nativeEvent:this.pasteEvent},r=this.props.onPasteHtml.call(void 0,s);if(this.pasteEvent=void 0,typeof r=="string")return r}return a},this.dispatchTransaction=a=>{const s=a.docChanged;if(this.props.onChange&&s){this.trOnChange=a;const r=a.doc,n=a.doc.type.schema,c={target:this,value:r,html:"",transaction:a,schema:n};Object.defineProperty(c,"html",{get:()=>(this.htmlOnChange=v.EditorUtils.getHtml({doc:r,schema:n}),this.htmlOnChange)}),this.props.onChange.call(void 0,c)}this.view&&(this.props.value===void 0||!s)&&this.view.updateState(this.view.state.apply(a))},this.onFocus=(a,s)=>{if(this.props.onFocus){const r={target:this,nativeEvent:s};this.props.onFocus.call(void 0,r)}return!1},this.onBlur=(a,s)=>{if(this.props.onBlur){const r={target:this,nativeEvent:s};this.props.onBlur.call(void 0,r)}return!1},this.onPaste=(a,s)=>(this.props.onPasteHtml&&(this.pasteEvent=s),!1),F.validatePackage(pr),this.showLicenseWatermark=F.shouldShowValidationUI(pr)}get value(){return this.trOnChange!==null?this.trOnChange.doc:this.props.value!==void 0?this.props.value:this.view?this.view.state.doc:this.props.defaultContent||""}get element(){return this._element}get contentElement(){return this._contentElement}get view(){return this._view}componentDidMount(){(!this.iframe||!cr)&&this.initialize()}componentDidUpdate(e){const{value:a}=this.props,s=this.view;a===void 0||!s||(Yr(s,a,e.value,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)}componentWillUnmount(){this.view&&this.view.destroy(),this._view=void 0;const e=this.iframe&&this.iframe.contentWindow;if(e){this._contentElement&&this._contentElement.parentNode&&this._contentElement.parentNode.removeChild(this._contentElement);const a=e.document.head;for(;a&&a.firstChild;)a.removeChild(a.firstChild)}}render(){const{tools:e=[],defaultEditMode:a="iframe",preserveWhitespace:s="full",style:r,className:n}=this.props,c=A.provideLocalizationService(this);if(this.view){const u=Be.getState(this.view.state);u.preserveWhitespace=s}let p=this.props.contentStyle;p===void 0&&(r||{}).height===void 0&&(p={height:"300px"});const d=e.map((u,h)=>Array.isArray(u)?l.createElement(D.ButtonGroup,{key:h},u.map(this.renderTool,h)):this.renderTool(u,h));return l.createElement("div",{ref:u=>this._element=u,className:F.classNames("k-editor",n,{"k-editor-resizable":this.props.resizable}),dir:this.props.dir,style:r},d.length>0&&l.createElement(D.Toolbar,{className:"k-editor-toolbar",keyboardNavigation:this.props.keyboardNavigation},d),a==="iframe"?l.createElement("div",{className:"k-editor-content"},l.createElement("iframe",{onLoad:cr?()=>{this.initialize()}:void 0,ref:u=>this.iframe=u,frameBorder:"0",title:c.toLanguageString(o.iframeTitle,g[o.iframeTitle]),style:p,className:"k-iframe"})):l.createElement("div",{style:p,className:"k-editor-content"},l.createElement("div",{ref:u=>this._contentElement=u,suppressContentEditableWarning:!0,role:"textbox","aria-labelledby":this.props.ariaLabelledBy,"aria-describedby":this.props.ariaDescribedBy,"aria-label":this.props.ariaLabel})),this.renderDialog(v.EditorDialogs.InsertLinkDialog,dr,"linkDialog"),this.showLicenseWatermark&&l.createElement(F.WatermarkOverlay,null))}initialize(){const e=this.iframe&&this.iframe.contentWindow;if(e){const f=e.document;[Ur,_r,this.props.dir==="rtl"?$r:void 0].forEach(S=>{if(S){const N=f.createElement("style");N.appendChild(f.createTextNode(S)),f.head.appendChild(N)}});const b=f.createElement("meta");b.setAttribute("charset","utf-8"),f.head.appendChild(b),this._contentElement=f.createElement("div"),f.body.appendChild(this._contentElement),this._contentElement.classList.add("k-content")}const a=this._contentElement;if(!a)return;const{preserveWhitespace:s="full"}=this.props;let r=[new i.Plugin({view:()=>({update:this.updateTools}),key:new i.PluginKey("toolbar-tools-update-plugin")}),new i.Plugin({filterTransaction:this.filterTransaction,key:new i.PluginKey("onExecute-event-plugin")}),new i.Plugin({key:Be,state:{init:()=>({preserveWhitespace:s}),apply:(f,b)=>b}}),i.spacesFix(),i.caretColor(),i.history(),i.dropCursor(),i.gapCursor(),i.tableEditing(),i.cspFix()],n={...v.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:Zr,italic:es,underline:ts}}),"Mod-k":()=>{const{linkDialog:f}=this.state,b=this.view;if(b){const S=b.state,N=S.selection.empty,I=i.getMark(S,S.schema.marks[dr.mark]);!f&&!(N&&!I)&&this.setState({linkDialog:!0})}return!f},"Alt-F10":()=>{var b;const f=(b=this.element)==null?void 0:b.querySelector(".k-toolbar");if(f){const S=f.querySelector(D.toolbarButtons.join(","));if(S)return S.focus(),!0}return!1}};const{defaultContent:c="",value:p,onMount:d}=this.props,u=p&&typeof p!="string"?p:v.EditorUtils.createDocument(new i.Schema({nodes:i.nodes,marks:i.marks}),p||c,{preserveWhitespace:s}),h={state:i.EditorState.create({plugins:[...r,i.keymap(n),i.keymap(i.baseKeymap)],doc:u}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste},handleDrop:(f,b,S,N)=>{let I=!1;return S.content.nodesBetween(0,S.content.size,B=>{I=I||B.type.name==="table_caption_external"}),I}},m={plugins:r,shortcuts:n,target:this,viewProps:h,dom:a},w=this._view=d&&d.call(void 0,m)||new i.EditorView({mount:a},h);this.setState({view:w})}}Oe.propTypes={defaultContent:R.string,value:R.oneOfType([R.object,R.string]),defaultEditMode:R.oneOf(["iframe","div"]),contentStyle:R.object,dir:R.string,className:R.string,ariaDescribedBy:R.string,ariaLabelledBy:R.string,ariaLabel:R.string,style:R.object,tools:R.arrayOf(R.any),keyboardNavigation:R.bool,resizable:R.bool,preserveWhitespace:R.oneOf([!0,!1,"full"]),onMount:R.func,onFocus:R.func,onBlur:R.func,onChange:R.func,onPasteHtml:R.func,onExecute:R.func},A.registerForLocalization(Oe);const ls="k-ct-cell k-disabled",as="k-selected";class rs extends l.Component{constructor(){super(...arguments),this.state={row:-1,col:-1}}renderCell(e,a,s){const r=Math.floor(e/this.props.columns),n=e%this.props.columns,c=n<=s&&r<=a;return l.createElement("span",{className:ls+(c?` ${as}`:""),onMouseEnter:()=>this.setState({row:r,col:n}),onClick:()=>this.props.onCellClick.call(void 0,r,n),key:e})}render(){const e=[],a=this.props.columns*this.props.rows,{row:s,col:r}=this.state,{onDown:n}=this.props;let c=this.props.createTableMessage;r>-1&&(c=ir(this.props.createTableHintMessage,s+1,r+1));for(let p=0;p<a;p++)e.push(this.renderCell(p,s,r));return[l.createElement("div",{onMouseLeave:()=>this.setState({row:-1,col:-1}),key:"cells",style:{borderColor:"inherit"},onPointerDown:n,onMouseDown:n},e),l.createElement("div",{className:"k-status",key:"status",onPointerDown:n,onMouseDown:n},c)]}}var Me;(t=>{const e=class extends l.Component{constructor(){super(...arguments),this.pointerdown=!1,this.onWindowDown=s=>{const{anchor:r}=this.props;r&&(r===s.target||r.firstElementChild===s.target)||(this.props.show&&!this.pointerdown&&this.props.onClose(),this.pointerdown=!1)},this.onPointerDown=()=>this.pointerdown=!0}componentDidUpdate(s){s.show&&this.props.show&&this.props.onClose()}componentDidMount(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)}componentWillUnmount(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)}render(){const{show:s,anchor:r,dir:n,rows:c=e.defaultProps.rows,columns:p=e.defaultProps.columns}=this.props,d=n==="rtl"?"right":"left";return l.createElement(Or.Popup,{anchor:r,anchorAlign:{horizontal:d,vertical:"bottom"},popupAlign:{horizontal:d,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-state-border-up",show:s,style:n==="rtl"?{direction:"rtl"}:void 0},l.createElement(rs,{rows:c,columns:p,createTableMessage:this.props.createTableMessage,createTableHintMessage:this.props.createTableHintMessage,onCellClick:this.props.onTableInsert,onDown:this.onPointerDown}))}};let a=e;a.propTypes={show:R.bool.isRequired,createTableMessage:R.string.isRequired,createTableHintMessage:R.string.isRequired,onClose:R.func.isRequired,onTableInsert:R.func.isRequired,anchor:R.any,rows:R.number,columns:R.number,dir:R.string},a.defaultProps={rows:6,columns:8},t.InsertTablePopup=a})(Me||(Me={}));var Ve;(t=>{t.createInsertTableTool=e=>{const a=class extends l.Component{constructor(){super(...arguments),this.state={openedPopup:!1},this.button=null,this.togglePopup=()=>{this.setState({openedPopup:!this.state.openedPopup})},this.closePopup=()=>{this.state.openedPopup&&this.togglePopup()},this.onTableInsert=(r,n)=>{const{view:c}=this.props;if(!c)return;const{table:p,table_row:d,table_cell:u}=c.state.schema.nodes,h=i.createTable({table:p,table_row:d,table_cell:u},r,n);h&&i.insertNode(h,!0)(c.state,c.dispatch),c.focus(),this.closePopup()}}render(){const{view:r,render:n,...c}=this.props,p=r&&r.state,d=A.provideLocalizationService(this),{createTable:u,createTableHint:h}=e.messages,m=d.toLanguageString(u,g[u]),w=d.toLanguageString(h,g[h]),f=!!(!p||!i.canInsert(p,p.schema.nodes.table)||_(p.selection.$from,S=>S.type.name==="table_caption_external")),b=[l.createElement(D.Button,{onClick:f?void 0:this.togglePopup,"aria-disabled":f?!0:void 0,ref:S=>this.button=S&&S.element,key:"InsertTable",...K,title:m,...e.props,...c,className:F.classNames(c.className,e.props.className,{"k-disabled":f})}),r&&!f&&l.createElement(Me.InsertTablePopup,{key:"insertTablePopup",createTableMessage:m,createTableHintMessage:w,dir:c.dir,anchor:this.button,show:this.state.openedPopup,onClose:this.closePopup,onTableInsert:this.onTableInsert})||null];return n?n.call(void 0,b,{view:r}):b}};return A.registerForLocalization(a),a}})(Ve||(Ve={}));const{alignRemove:ur}=v.EditorToolsSettings,ss=t=>{const e=class extends l.Component{render(){const{view:s,render:r,...n}=this.props,c=s&&s.state,p=!!c&&i.isAligned(c,t.actions),d=p?ur.actions:t.actions,u=p?ur.commandName:t.commandName,h=A.provideLocalizationService(this),m=t.messages.title,w=l.createElement(D.Button,{onClick:()=>s&&i.alignBlocks(d,u)(s.state,s.dispatch),selected:p,togglable:!0,...K,title:h.toLanguageString(m,g[m]),...t.props,...n});return r?r.call(void 0,w,{view:s}):w}};return A.registerForLocalization(e),e};var Ue;(t=>{t.createStyleDropDownList=e=>{const a=class extends l.Component{constructor(){super(...arguments),this.onChange=r=>{const n=r.target.value,{view:c}=this.props,{style:p}=e;if(c){i.applyInlineStyle({style:p,value:n.value},e.commandName)(c.state,c.dispatch);const{syntheticEvent:d}=r;d&&d.type==="click"&&c.focus()}}}render(){const{style:r}=e,{view:n,render:c,data:p,defaultItem:d,...u}=this.props,h=p||e.items;let m=d||e.defaultItem;const w=n?i.getInlineStyles(n.state,{name:r,value:/^.+$/}):[],f=A.provideLocalizationService(this);m&&m.localizationKey&&(m={...m},m.text=m.localizationKey?f.toLanguageString(m.localizationKey,g[m.localizationKey]):m.text);const b=new Set(w).size===1?w[0]:null,S=l.createElement(O.DropDownList,{value:b&&h.find(N=>N.value===b),data:h,defaultItem:m,itemRender:nr,textField:"text",dataItemKey:"value",onChange:this.onChange,style:sr,leftRightKeysNavigation:!1,title:m.text,...u});return c?c.call(void 0,S,{view:n}):S}};return A.registerForLocalization(a),a}})(Ue||(Ue={}));const gr=t=>{const{view:e,style:a,colorPickerProps:s,commandName:r}=t,n=s.title,c=s.ariaLabel,{view:p="palette"}=s,d=A.useLocalization(),u=l.useCallback(h=>{e&&(i.applyInlineStyle({style:a,value:h.value},r)(e.state,e.dispatch),p==="palette"&&e.focus())},[e,a,p,r]);return l.createElement(C.ColorPicker,{onChange:u,onActiveColorClick:u,...s,title:n&&d.toLanguageString(n,g[n]),ariaLabel:c&&d.toLanguageString(c,g[c])})};var _e;(t=>{t.createFormatBlockDropDownList=e=>{const a=class extends l.Component{constructor(){super(...arguments),this.onChange=r=>{const n=r.target.value,{view:c}=this.props;if(c&&i.formatBlockElements(n.value,e.commandName)(c.state,c.dispatch)){const{syntheticEvent:p}=r;p&&p.type==="click"&&c.focus()}}}render(){const{view:r,render:n,data:c,defaultItem:p,...d}=this.props,u=c||e.items;let h=p||e.defaultItem;const m=r&&r.state,w=m?i.getBlockFormats(m):[],f=A.provideLocalizationService(this);h&&h.localizationKey&&(h={...h},h.text=h.localizationKey?f.toLanguageString(h.localizationKey,g[h.localizationKey]):h.text);const b=new Set(w).size===1?w[0]:null,S=l.createElement(O.DropDownList,{value:b&&u.find(N=>N.value===b),onChange:this.onChange,itemRender:nr,data:u,defaultItem:h,textField:"text",dataItemKey:"value",style:sr,leftRightKeysNavigation:!1,title:h.text,...d});return n?n.call(void 0,S,{view:r}):S}};return A.registerForLocalization(a),a}})(_e||(_e={}));const G=(t,e)=>{const a=class extends l.Component{render(){const{view:r,render:n,...c}=this.props,p=A.provideLocalizationService(this),d=t.messages.title,u=r&&r.state,h=u?!e(u):!1,m=l.createElement(D.Button,{onClick:h?void 0:()=>r&&e(r.state,w=>r.dispatch(w.setMeta("commandName",t.commandName))),"aria-disabled":h?!0:void 0,...K,title:p.toLanguageString(d,g[d]),...t.props,...c,className:F.classNames(c.className,t.props.className,{"k-disabled":h})});return n?n.call(void 0,m,{view:r}):m}};return A.registerForLocalization(a),a};var ke;(t=>{t.createUndoTool=e=>G(e,i.undo),t.createRedoTool=e=>G(e,i.redo)})(ke||(ke={}));var $e;(t=>{t.createIndentTool=e=>{const a=class extends l.Component{render(){const{view:r,render:n,...c}=this.props,p=c.dir,d=r&&r.state,u=d&&d.schema.nodes,h=u&&u[e.listsTypes.listItem],m=e.actions,w=!!d&&!!h&&(i.isIndented(d,m,p)||m.some(k=>u&&u[k.node]&&i.hasNode(d,u[k.node])))&&!i.hasNode(d,h),f=!!d&&i.canIndentAsListItem(d,h),b=w||f,S=A.provideLocalizationService(this),N=e.messages.title,I=!b,B=l.createElement(D.Button,{onClick:I?void 0:()=>{r&&f&&h?i.sinkListItem(h)(r.state,r.dispatch):r&&w&&i.indentBlocks(m,e.commandName,p)(r.state,r.dispatch)},"aria-disabled":I?!0:void 0,title:S.toLanguageString(N,g[N]),...K,...e.props,...c,className:F.classNames(c.className,e.props.className,{"k-disabled":I})});return n?n.call(void 0,B,{view:r}):B}};return A.registerForLocalization(a),a}})($e||($e={}));var Ee;(t=>{t.createInlineFormatTool=e=>{const a=class extends l.Component{render(){const{view:r,render:n,...c}=this.props,p=r&&r.state,{mark:d,altMarks:u,altStyle:h}=e,m={mark:d,altMarks:u,altStyle:h},w=A.provideLocalizationService(this),f=e.messages.title,b=l.createElement(D.Button,{onClick:()=>r&&i.toggleInlineFormat(m,p&&p.tr.setMeta("commandName",e.commandName))(r.state,r.dispatch),selected:!!p&&i.hasMark(p,m),togglable:!0,...K,title:w.toLanguageString(f,g[f]),...e.props,...c});return n?n.call(void 0,b,{view:r}):b}};return A.registerForLocalization(a),a}})(Ee||(Ee={}));const is=t=>{const e=class extends l.Component{constructor(){super(...arguments),this.state={openedDialog:!1},this.toggleDialog=()=>{this.setState({openedDialog:!this.state.openedDialog})}}render(){const{view:s,render:r,...n}=this.props,c=s&&s.state,p=c?c.schema.nodes[t.node]:void 0,d=A.provideLocalizationService(this),{insertImage:u}=t.messages,h=!p||!c||!i.canInsert(c,p),m=[l.createElement(D.Button,{onClick:h?void 0:this.toggleDialog,"aria-disabled":h?!0:void 0,key:"insertImage",...K,title:d.toLanguageString(u,g[u]),...t.props,...n,className:F.classNames(n.className,t.props.className,{"k-disabled":h})}),this.state.openedDialog&&s&&l.createElement(v.EditorDialogs.InsertImageDialog,{key:"insertImageDialog",view:s,settings:t,dir:n.dir,onClose:this.toggleDialog})||null];return r?r.call(void 0,m,{view:s}):m}};return A.registerForLocalization(e),e};var je;(t=>{t.createLinkTool=e=>{const a=class extends l.Component{constructor(){super(...arguments),this.state={openedDialog:!1},this.toggleDialog=()=>{this.setState({openedDialog:!this.state.openedDialog})}}render(){const{view:r,render:n,...c}=this.props,p=r&&r.state,d=p?p.selection.empty:!0,u=p&&i.getMark(p,p.schema.marks[e.mark]),h=A.provideLocalizationService(this),{insertHyperlink:m}=e.messages,w=d&&!u,f=[l.createElement(D.Button,{onClick:w?void 0:this.toggleDialog,"aria-disabled":w?!0:void 0,key:"link",...K,title:h.toLanguageString(m,g[m]),...e.props,...c,className:F.classNames(c.className,e.props.className,{"k-disabled":w})}),this.state.openedDialog&&r&&l.createElement(v.EditorDialogs.InsertLinkDialog,{key:"insertLinkDialog",settings:e,dir:c.dir,view:r,onClose:this.toggleDialog})||null];return n?n.call(void 0,f,{view:r}):f}};return A.registerForLocalization(a),a}})(je||(je={}));var qe;(t=>{t.createListTool=e=>{const a=class extends l.Component{render(){const{view:r,render:n,...c}=this.props;let p=!1;const d=A.provideLocalizationService(this),u=e.messages.title,h=e.types,m=e.listType;if(r){const f=r.state,b=f.schema.nodes,S=i.hasNode(f,b[h.orderedList]),N=i.hasNode(f,b[h.bulletList]);m===h.orderedList?p=S&&!N:p=!S&&N}const w=l.createElement(D.Button,{onClick:()=>r&&i.toggleList(r.state,r.dispatch,r,{listType:m,...h},e.commandName),togglable:!0,selected:p,title:d.toLanguageString(u,g[u]),...K,...e.props,...c});return n?n.call(void 0,w,{view:r}):w}};return A.registerForLocalization(a),a}})(qe||(qe={}));var Ge;(t=>{t.createOutdentTool=e=>{const a=class extends l.Component{render(){const{view:r,render:n,...c}=this.props,p=r&&r.state,d=c.dir,u=!!p&&i.isIndented(p,e.actions,d),h=p&&p.schema.nodes[e.listsTypes.listItem],m=!!p&&i.canOutdentAsListItem(p,{nodes:e.actions,listsTypes:e.listsTypes}),w=u||m,f=A.provideLocalizationService(this),b=e.messages.title,S=!w,N=l.createElement(D.Button,{onClick:S?void 0:()=>{r&&m&&h?i.liftListItem(h)(r.state,r.dispatch):r&&u&&i.indentBlocks(e.actions,e.commandName,d)(r.state,r.dispatch)},"aria-disabled":S?!0:void 0,title:f.toLanguageString(b,g[b]),...K,...e.props,...c,className:F.classNames(c.className,e.props.className,{"k-disabled":S})});return n?n.call(void 0,N,{view:r}):N}};return A.registerForLocalization(a),a}})(Ge||(Ge={}));const hr=(t,e)=>{const a=i.deleteColumn(t,e);if(a&&!e){const s=i.selectionCell(t),r=s&&s.node(s.depth);if(r&&r.content.childCount===1)return!1}return a},mr=(t,e)=>{const a=i.deleteRow(t,e);if(a&&!e){const s=i.selectionCell(t),r=s&&s.node(s.depth-1);if(r&&r.content.childCount===1)return!1}return a};var J;(t=>{t.createAddRowBeforeTool=e=>G(e,i.addRowBefore),t.createAddRowAfterTool=e=>G(e,i.addRowAfter),t.createAddColumnBeforeTool=e=>G(e,i.addColumnBefore),t.createAddColumnAfterTool=e=>G(e,i.addColumnAfter),t.createDeleteRowTool=e=>G(e,mr),t.createDeleteColumnTool=e=>G(e,hr),t.createDeleteTableTool=e=>G(e,i.deleteTable),t.createMergeCellsTool=e=>G(e,i.mergeCells),t.createSplitCellTool=e=>G(e,i.splitCell)})(J||(J={}));var Je;(t=>{t.createUnlinkTool=e=>{const a=class extends l.Component{render(){const{view:r,render:n,...c}=this.props,p={mark:e.mark},d=r?i.hasMark(r.state,p):!1,u=A.provideLocalizationService(this),h=e.messages.title,m=!d,w=l.createElement(D.Button,{onClick:m?void 0:()=>r&&i.removeLink(p,r.state.tr.setMeta("commandName",e.commandName))(r.state,r.dispatch),"aria-disabled":m?!0:void 0,...K,title:u.toLanguageString(h,g[h]),...e.props,...c,className:F.classNames(c.className,e.props.className,{"k-disabled":m})});return n?n.call(void 0,w,{view:r}):w}};return A.registerForLocalization(a),a}})(Je||(Je={}));var Qe;(t=>{t.createViewHtmlTool=e=>{const a=class extends l.Component{constructor(){super(...arguments),this.state={openedDialog:!1},this.toggleDialog=()=>{this.setState({openedDialog:!this.state.openedDialog})}}render(){const{view:r,render:n,...c}=this.props,p=A.provideLocalizationService(this),d=e.messages.viewHtml,u=[l.createElement(D.Button,{onClick:this.toggleDialog,key:"viewHtml",...K,title:p.toLanguageString(d,g[d]),...e.props,...c}),this.state.openedDialog&&r&&l.createElement(v.EditorDialogs.ViewHtmlDialog,{key:"viewHtmlDialog",view:r,settings:e,dir:c.dir,onClose:this.toggleDialog})||null];return n?n.call(void 0,u,{view:r}):u}};return A.registerForLocalization(a),a}})(Qe||(Qe={}));const{print:ns}=v.EditorToolsSettings,os=t=>{const{view:e,render:a,settings:s=ns,...r}=t,n=e&&e.dom,c=n&&n.ownerDocument,p=c&&c.defaultView,d=s.messages.title,u=!p||p===window,h=l.useCallback(()=>{p&&p.print()},[p]),m=l.createElement(D.Button,{onClick:u?void 0:h,"aria-disabled":u?!0:void 0,title:A.useLocalization().toLanguageString(d,g[d]),...K,...s.props,...r,className:F.classNames(r.className,s.props.className,{"k-disabled":u})});return a?a.call(void 0,m,{view:e}):m},{pdf:cs,savePdfOptions:ps}=v.EditorToolsSettings,ds=t=>{const{view:e,render:a,settings:s=cs,savePdfOptions:r,savePdfCallback:n,...c}=t,p=s.messages.title,d=l.useCallback(()=>{e&&Vr.savePDF(e.dom,{...ps,...r||{}},n)},[e,r,n]),u=l.createElement(D.Button,{onClick:d,title:A.useLocalization().toLanguageString(p,g[p]),...K,...s.props,...c});return a?a.call(void 0,u,{view:e}):u},{selectAll:us}=v.EditorToolsSettings,gs=t=>{const{view:e,render:a,settings:s=us,...r}=t,n=s.messages.title,c=l.useCallback(()=>{e&&(i.selectAll(e.state,e.dispatch),e.focus())},[e]),p=l.createElement(D.Button,{onClick:c,title:A.useLocalization().toLanguageString(n,g[n]),...K,...s.props,...r});return a?a.call(void 0,p,{view:e}):p},{cleanFormatting:hs}=v.EditorToolsSettings,fr=i.cleanFormatting(),ms=t=>{const{view:e,render:a,settings:s=hs,...r}=t,n=s.messages.title,c=!e||!fr(e.state),p=l.useCallback(()=>{e&&fr(e.state,u=>{u.setMeta("commandName",s.commandName),e.dispatch(u)})},[e]),d=l.createElement(D.Button,{onClick:c?void 0:p,"aria-disabled":c?!0:void 0,title:A.useLocalization().toLanguageString(n,g[n]),...K,...s.props,...r,className:F.classNames(t.className,s.props.className,{"k-disabled":c})});return a?a.call(void 0,d,{view:e}):d},br=v.EditorToolsSettings.findAndReplace;let yr=class extends l.Component{constructor(){super(...arguments),this.state={showDialog:!1},this.onClose=()=>this.setState({showDialog:!1}),this.onOpen=()=>this.setState({showDialog:!0})}render(){const{view:e,...a}=this.props,{props:s}=br,r=A.provideLocalizationService(this),n=br.messages.findReplaceToolTitle,c=!e;return[l.createElement(D.Button,{onClick:c?void 0:this.onOpen,"aria-disabled":c?!0:void 0,...K,title:r.toLanguageString(n,g[n]),key:"tool",...s,...a,className:F.classNames(a.className,s.className,{"k-disabled":c})}),this.state.showDialog&&e&&l.createElement(Ke,{view:e,onClose:this.onClose,dir:a.dir,key:"dialog"})]}};A.registerForLocalization(yr);const vr=(t,e)=>{let{from:a,to:s}=t.selection,r=null;return t.doc.nodesBetween(a,s,n=>(r=r||(n.type===e?n:null),!r)),r},wr=t=>{let e=!1;const a=t.view,s=ge,r=t.listType,n=A.useLocalization();let c=[...t.items||[]],p,d;if(a){const m=a.state,w=m&&m.schema.nodes;p=w&&vr(m,w[s.orderedList]),d=w&&vr(m,w[s.bulletList]),e=!!(r===s.orderedList?p&&!d:!p&&d)}const u=m=>{a&&(i.toggleList(a.state,a.dispatch,a,{listType:r,...s,listAttrs:{}},"InsertList"),a.focus())},h=m=>{if(a){const w=m.item.style?{style:"list-style-type: "+m.item.style+";"}:{},f=p||d;if(f&&i.listStyle(f.attrs)!==m.item.style){const b=a.state.selection.$head.posAtIndex(0,-2)-1;a.dispatch(a.state.tr.setNodeMarkup(b,a.state.schema.nodes[r],w))}else i.toggleList(a.state,a.dispatch,a,{listType:r,...s,listAttrs:w},"InsertList");a.focus()}};if(e&&(p||d)){const m=i.listStyle((p||d).attrs);c=c.map((w,f)=>({...w,selected:m?w.style===m:f===0}))}return l.createElement("span",{onMouseDown:m=>{m.preventDefault()}},l.createElement(D.SplitButton,{textField:"text",items:c,icon:t.icon,svgIcon:t.svgIcon,onButtonClick:u,onItemClick:h,buttonClass:e?"k-selected":void 0,title:t.title!==void 0?t.title:n.toLanguageString(t.titleKey,g[t.titleKey])}))},fs=/[\D]+$/,Xe=t=>{const e=t.match(fs);return e?e[0]:""},Ye=(t,e)=>{var s;const a=ae(((s=t.attrs)==null?void 0:s.style)||"")[e]||"";return{[e]:parseFloat(a)||null,[e+"Unit"]:Xe(a)}},ae=t=>(t||"").split(/\s*;\s*/).filter(Boolean).map(a=>{const s=a.split(/\s*:\s*/);return{[s[0]]:s[1]}}).reduce((a,s)=>({...a,...s}),{}),bs=(t,e)=>{const a=e.style,s=e.value,r=e.newValue;if(!t)return{changed:!1,style:null};const n=t.split(/\s*;\s*/).filter(p=>!!p),c=n.filter(p=>{const d=p.split(/\s*:\s*/);return!(d[0].toLowerCase()===a&&s.test(d[1]))});return r&&c.push(`${a}: ${r}`),{style:c.join("; ")+(c.length?";":""),changed:!!r||c.length!==n.length}},ys=/^.+$/;function M(t,e,a){let s;if(new RegExp("[^-]?"+e+":").test(t.style||"")){const{style:r}=bs(t.style||"",{style:e,value:ys,newValue:a});s={...t,style:r}}else if(t.style){const r=ae(t.style);r[e]=a,s={...t,style:Object.keys(r).filter(n=>!!r[n]).reduce((n,c)=>n+c+": "+r[c]+"; ","").trim()}}else a?s={...t,style:e+": "+a+";"}:s={...t};return s}const vs=t=>{const{doc:e,selection:a}=t,s=[];return a.ranges.forEach(r=>{const n=r.$from.pos,c=r.$to.pos;e.nodesBetween(n,c,(p,d,u,h)=>{(p.type.name==="table_cell"||p.type.name==="table_header")&&s.push({node:p,pos:d})})}),s},He=t=>{const e=_(t.selection.$from,s=>s.type.name==="table"),a=_(t.selection.$to,s=>s.type.name==="table");return e&&a&&e.depth===a.depth&&e.node.eq(a.node)?vs(t).filter(({pos:r})=>{const n=_(t.doc.resolve(r),c=>c.type.name==="table");return n&&n.depth===e.depth&&e.node.eq(n.node)}):[]},Pr=t=>{const e=[];if(He(t).length){const a=t.selection.$from,s=_(a,d=>d.type.spec.tableRole==="table");if(s===null)return e;const r=a.start(s.depth),n=s.node,c=i.TableMap.get(n),p=t.doc;c.map.forEach(d=>{const u=d+r;e.push({pos:u,node:p.nodeAt(u)})})}return e},Ae="k-colgroup-data",ws=(t,e,a)=>{const s={cellWidth:null,widthUnit:""},r=e.node,n=a.start(e.depth);if(!r.attrs[Ae])return s;const c=new Set;let p="";const d=i.htmlToFragment(r.attrs[Ae]).firstChild;return t.forEach(u=>{const h=r.resolve(u.pos-n),m=h.parent,w=h.index();let f=0;for(let S=0;S<=w;S++)f+=m.child(S).attrs.colspan;let b=d.children[f-1];b&&(p=b.style.width,c.add(p))}),c.size===1&&p&&(s.cellWidth=parseFloat(p)||null,s.widthUnit=Xe(p)),s},Ps=(t,e,a)=>{const s={cellHeight:null,heightUnit:""},r=e.node,n=a.start(e.depth),c=new Set;let p="";return t.forEach(d=>{var m;const h=r.resolve(d.pos-n).parent;p=ae(((m=h.attrs)==null?void 0:m.style)||"").height||"",c.add(p)}),c.size===1&&p&&(s.cellHeight=parseFloat(p)||null,s.heightUnit=Xe(p)),s},oe=(t,e)=>{const a=new Set;let s="";return t.forEach(r=>{var n;s=ae(((n=r.node.attrs)==null?void 0:n.style)||"")[e]||"",a.add(s)}),a.size===1&&s?s:""},Sr=(t,e)=>{const a=new Set;let s="";return t.forEach(r=>{s=(r.node.attrs||{})[e]||"",a.add(s)}),a.size===1&&s?s:""},xr={applyToAll:!1,cellWidth:null,widthUnit:"",cellHeight:null,heightUnit:"",alignment:{x:"",y:""},textControl:"",backgroundColor:void 0,cellPadding:null,borderWidth:null,borderColor:void 0,borderStyle:null,id:"",className:""},Ss=t=>{const e=He(t),a=t.selection.$from,s=e.length?_(a,r=>r.type.spec.tableRole==="table"):null;return s?{...xr,...ws(e,s,a),...Ps(e,s,a),alignment:{x:oe(e,"text-align"),y:oe(e,"vertical-align")},textControl:oe(e,"white-space"),backgroundColor:oe(e,"background-color")||void 0,cellPadding:parseFloat(oe(e,"padding"))||null,borderWidth:parseFloat(oe(e,"border-width"))||null,borderColor:oe(e,"border-color")||void 0,borderStyle:oe(e,"border-style")||null,id:Sr(e,"id"),className:Sr(e,"class")}:xr},xs=(t,e,a)=>{const s=t.doc.resolve(e),r=s.parent,n=s.index();let c=0;for(let m=0;m<=n;m++)c+=r.child(m).attrs.colspan;const p=s.node(s.depth-1),d=s.posAtIndex(0,s.depth-1)-1;let u=p.attrs,h;if(u&&u[Ae]){const m=i.htmlToFragment(u[Ae]).firstChild;h=m.children[c-1],h.style.width=a,u={...u,[Ae]:m.outerHTML},t.setNodeMarkup(d,null,u)}else{let m=0;for(let b=0;b<r.childCount;b++)m+=r.child(b).attrs.colspan;const w=document.createElement("colgroup"),f=new Array(m);for(let b=0;b<m;b++)f[b]=document.createElement("col"),w.appendChild(f[b]);h=f[n],h.style.width=a,u={...u,[Ae]:"<colgroup>"+f.reduce((b,S)=>b+S.outerHTML,"")+"</colgroup>"},t.setNodeMarkup(d,null,u)}},Ts=(t,e,a)=>{let s=t.doc.resolve(e),r=s.parent;const n=s.posAtIndex(0)-1;t.setNodeMarkup(n,null,M(r.attrs,"height",a))},Ns=(t,e,a)=>{a.forEach(({node:s,pos:r})=>{let n={...s.attrs};n=M(n,"border-color",e.borderColor||""),n=M(n,"border-style",e.borderStyle||""),n=M(n,"border-width",typeof e.borderWidth=="number"?e.borderWidth+"px":""),n=M(n,"padding",typeof e.cellPadding=="number"?e.cellPadding+"px":""),n=M(n,"background-color",e.backgroundColor||""),n=M(n,"text-align",e.alignment.x||""),n=M(n,"vertical-align",e.alignment.y||""),n=M(n,"white-space",e.textControl||""),n.id=e.id||null,n.class=e.className||null,t.setNodeMarkup(r,null,n),typeof e.cellWidth=="number"&&xs(t,r,e.cellWidth+(e.widthUnit||"px")),typeof e.cellHeight=="number"&&Ts(t,r,e.cellHeight+(e.heightUnit||"px"))})},Ls=(t,e)=>{const a=t.tr,s=e.applyToAll?Pr(t):He(t);return Ns(a,e,s),a},As=t=>{const{view:e,...a}=t,[s,r]=l.useState(!1),n=A.useLocalization(),c=!!(e&&_(e.state.selection.$from,h=>h.type.spec.tableRole==="table")),p=l.useCallback(()=>{r(!0)},[]),d=l.useCallback(()=>{r(!1),e==null||e.focus()},[e]),u=l.useCallback(h=>{if(e&&h){const m=Ls(e.state,h);m.docChanged&&e.dispatch(m)}d()},[e,d]);return l.createElement(l.Fragment,null,l.createElement(D.Button,{type:"button",title:n.toLanguageString(o.cellProperties,g[o.cellProperties]),icon:"table-cell-properties",svgIcon:x.tableCellPropertiesIcon,onClick:p,disabled:!c,...K,...a}),s&&e&&l.createElement(Cs,{view:e,onCancel:d,onSave:u}))},Tr=[{textKey:o.cellPropertiesLeftTop,text:g[o.cellPropertiesLeftTop],icon:"table-align-top-left",svgIcon:x.tableAlignTopLeftIcon,value:{x:"left",y:"top"}},{textKey:o.cellPropertiesCenterTop,text:g[o.cellPropertiesCenterTop],icon:"table-align-top-center",svgIcon:x.tableAlignTopCenterIcon,value:{x:"center",y:"top"}},{textKey:o.cellPropertiesRightTop,text:g[o.cellPropertiesRightTop],icon:"table-align-top-right",svgIcon:x.tableAlignTopRightIcon,value:{x:"right",y:"top"}},{textKey:o.cellPropertiesLeftMiddle,text:g[o.cellPropertiesLeftMiddle],icon:"table-align-middle-left",svgIcon:x.tableAlignMiddleLeftIcon,value:{x:"left",y:"middle"}},{textKey:o.cellPropertiesCenterMiddle,text:g[o.cellPropertiesCenterMiddle],icon:"table-align-middle-center",svgIcon:x.tableAlignMiddleCenterIcon,value:{x:"center",y:"middle"}},{textKey:o.cellPropertiesRightMiddle,text:g[o.cellPropertiesRightMiddle],icon:"table-align-middle-right",svgIcon:x.tableAlignMiddleRightIcon,value:{x:"right",y:"middle"}},{textKey:o.cellPropertiesLeftBottom,text:g[o.cellPropertiesLeftBottom],icon:"table-align-bottom-left",svgIcon:x.tableAlignBottomLeftIcon,value:{x:"left",y:"bottom"}},{textKey:o.cellPropertiesCenterBottom,text:g[o.cellPropertiesCenterBottom],icon:"table-align-bottom-center",svgIcon:x.tableAlignBottomCenterIcon,value:{x:"center",y:"bottom"}},{textKey:o.cellPropertiesRightBottom,text:g[o.cellPropertiesRightBottom],icon:"table-align-bottom-right",svgIcon:x.tableAlignBottomRightIcon,value:{x:"right",y:"bottom"}},{textKey:o.cellPropertiesNoAlignment,text:g[o.cellPropertiesNoAlignment],icon:"align-remove",svgIcon:x.tableAlignRemoveIcon,value:{x:"",y:""}}],Nr=[{textKey:o.cellPropertiesWrap,text:g[o.cellPropertiesWrap],value:"",icon:"text-wrap",svgIcon:x.textWrapIcon},{textKey:o.cellPropertiesFitToCell,text:g[o.cellPropertiesFitToCell],value:"nowrap",icon:"parameter-string",svgIcon:x.parameterStringIcon}],Ce=(t,e)=>e?l.createElement(l.Fragment,null,l.createElement(C.InputPrefix,null,l.createElement(F.IconWrap,{icon:e.svgIcon,name:e.icon})),t):t,Ie=(t,e)=>{const a=l.createElement(l.Fragment,null,l.createElement(C.InputPrefix,null,l.createElement(F.IconWrap,{icon:e.dataItem.svgIcon,name:e.dataItem.icon})),t.props.children);return l.cloneElement(t,t.props,a)},Cs=t=>{const e=l.useMemo(()=>Ss(t.view.state),[t.view]),a=A.useLocalization(),s=l.useRef(null),r=e.applyToAll,n=l.useRef(null),c=e.cellWidth,p=l.useRef(null);e.widthUnit&&!ne.includes(e.widthUnit)&&ne.push(e.widthUnit);const d=e.widthUnit||"",u=l.useRef(null),h=e.cellHeight,m=l.useRef(null);e.heightUnit&&!ne.includes(e.heightUnit)&&ne.push(e.heightUnit);const w=e.heightUnit||"",f=l.useRef(null),b=Tr.find(T=>T.value.x!==void 0&&e.alignment&&T.value.x===e.alignment.x&&T.value.y===e.alignment.y)||null,S=l.useRef(null),N=Nr.find(T=>T.value===e.textControl),I=l.useRef(null),B=e.backgroundColor,k=l.useRef(null),H=e.cellPadding,$=l.useRef(null),Q=e.borderWidth,E=l.useRef(null),X=e.borderColor,j=l.useRef(null),Y=ze.find(T=>T.value===e.borderStyle),Z=l.useRef(null),re=e.id,te=l.useRef(null),he=e.className,me=l.useCallback(()=>{var ee,ie,P,L,z,V,le,ce,pe,de,ue,be,ye,ve,we,Pe,Se,xe,Te,Ne;const T={applyToAll:!!((ie=(ee=s.current)==null?void 0:ee.element)!=null&&ie.checked),cellWidth:((P=n.current)==null?void 0:P.value)||null,widthUnit:((L=p.current)==null?void 0:L.value)||"",cellHeight:((z=u.current)==null?void 0:z.value)||null,heightUnit:((V=m.current)==null?void 0:V.value)||"",alignment:(ce=(le=f.current)==null?void 0:le.value)==null?void 0:ce.value,textControl:(de=(pe=S.current)==null?void 0:pe.value)==null?void 0:de.value,backgroundColor:(ue=I.current)==null?void 0:ue.value,cellPadding:typeof((be=k.current)==null?void 0:be.value)=="number"?(ye=k.current)==null?void 0:ye.value:null,borderWidth:typeof((ve=$.current)==null?void 0:ve.value)=="number"?(we=$.current)==null?void 0:we.value:null,borderColor:(Pe=E.current)==null?void 0:Pe.value,borderStyle:((xe=(Se=j.current)==null?void 0:Se.value)==null?void 0:xe.value)||null,id:String(((Te=Z.current)==null?void 0:Te.value)||""),className:String(((Ne=te.current)==null?void 0:Ne.value)||"")};t.onSave.call(void 0,T)},[t.onSave]),se=l.createElement("div",{className:"k-form k-form-md"},l.createElement("fieldset",{className:"k-form-fieldset"},l.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-4 k-gap-x-4"},l.createElement("div",{className:"k-form-field k-col-span-full"},l.createElement("div",{className:"k-form-field-wrap"},l.createElement("span",{className:"k-checkbox-wrap"},l.createElement(C.Checkbox,{ref:s,defaultChecked:r})),l.createElement("label",{className:"k-checkbox-label"},a.toLanguageString(o.cellPropertiesApplyToAllCells,g[o.cellPropertiesApplyToAllCells])))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesWidth,g[o.cellPropertiesWidth])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:n,defaultValue:c,min:0,placeholder:a.toLanguageString(o.sizeAuto,g[o.sizeAuto])}),l.createElement("div",{className:"k-form-hint"},a.toLanguageString(o.cellPropertiesApplyToColumn,g[o.cellPropertiesApplyToColumn])))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"}," "),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.AutoComplete,{ref:p,defaultValue:d,data:ne,popupSettings:U}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesHeight,g[o.cellPropertiesHeight])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:u,defaultValue:h,min:0,placeholder:a.toLanguageString(o.sizeAuto,g[o.sizeAuto])}),l.createElement("div",{className:"k-form-hint"},a.toLanguageString(o.cellPropertiesApplyToRow,g[o.cellPropertiesApplyToRow])))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"}," "),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.AutoComplete,{ref:m,defaultValue:w,data:ne,popupSettings:U}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesAlignment,g[o.cellPropertiesAlignment])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:f,defaultValue:b,data:Tr.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),textField:"text",dataItemKey:"text",popupSettings:U,valueRender:Ce,itemRender:Ie}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesTextControl,g[o.cellPropertiesTextControl])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:S,defaultValue:N,data:Nr.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),textField:"text",dataItemKey:"value",popupSettings:U,valueRender:Ce,itemRender:Ie}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesCellPadding,g[o.cellPropertiesCellPadding])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:k,defaultValue:H,min:0}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesBackground,g[o.cellPropertiesBackground])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.ColorPicker,{ref:I,defaultValue:B}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesBorderWidth,g[o.cellPropertiesBorderWidth])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:$,defaultValue:Q,min:0}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesBorderColor,g[o.cellPropertiesBorderColor])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.ColorPicker,{ref:E,defaultValue:X}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesBorderStyle,g[o.cellPropertiesBorderStyle])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:j,defaultValue:Y,popupSettings:U,data:ze,textField:"text",dataItemKey:"value"}))),l.createElement("div",{className:"k-form-field k-col-span-full"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesId,g[o.cellPropertiesId])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.TextBox,{ref:Z,defaultValue:re}))),l.createElement("div",{className:"k-form-field k-col-span-full"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.cellPropertiesCssClass,g[o.cellPropertiesCssClass])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.TextBox,{ref:te,defaultValue:he})))))),fe=[l.createElement(D.Button,{themeColor:"primary",key:"save",onClick:me},a.toLanguageString(o.cellPropertiesSave,g[o.cellPropertiesSave])),l.createElement(D.Button,{onClick:t.onCancel,key:"cancel"},a.toLanguageString(o.cellPropertiesCancel,g[o.cellPropertiesCancel]))];return l.createElement(q.Window,{className:"k-editor-window k-editor-table-wizard-window",title:a.toLanguageString(o.cellProperties,g[o.cellProperties]),onClose:t.onCancel,key:"dialog",style:{userSelect:"none"},width:408,height:587,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},se,l.createElement(q.WindowActionsBar,{layout:"start"},...fe))},Ze={rows:0,columns:0,width:null,widthUnit:"",height:null,heightUnit:"",position:null,textAlign:"",cellPadding:null,cellSpacing:null,backgroundColor:void 0,borderWidth:null,borderColor:void 0,borderStyle:null,collapseBorders:!1,id:"",className:"",caption:"",captionAlignment:null,captionPosition:null,headerRows:0,headerColumns:0,associateHeaders:"none"},Fe={left:{"margin-left":"","margin-right":"auto"},center:{"margin-left":"auto","margin-right":"auto"},right:{"margin-left":"auto","margin-right":""},"":{}},Lr=t=>{const e=[];for(let a=0;a<t.height;a++){const s=a*t.width,r=s+t.width;e.push(t.map.slice(s,r))}return e},Is=(t,e)=>{let a=0,s=0;const r=Lr(e);r.forEach(n=>{let c=!0;n.forEach(p=>{const d=t.nodeAt(p);d&&d.type.name!=="table_header"&&(c=!1)}),c&&a++});for(let n=0;n<e.width;n++){let c=!0;for(let p=0;p<e.height;p++){const d=r[p]&&r[p][n],u=typeof d=="number"&&t.nodeAt(d);u&&u.type.name!=="table_header"&&(c=!1)}c&&s++}return{rows:a,columns:s}},Ds=t=>{const e=new Set;return t.content.forEach(a=>{a.content.forEach(s=>{e.add(ae(s.attrs.style).padding||"")})}),e.size===1?Array.from(e)[0]:""},Bs=t=>{let e=!0,a=!0;return t.content.forEach(s=>{s.content.forEach(r=>{let n=r.type.name==="table_header",c=r.type.name==="table_cell";n&&!r.attrs.scope&&(e=!1),(n&&!r.attrs.id||c&&!r.attrs.headers)&&(a=!1)})}),e?"scope":a?"id":"none"},zs=t=>{var f,b,S;const e=He(t),a=t.selection.$from,s=e.length?_(a,N=>N.type.spec.tableRole==="table"):null;if(!s)return Ze;const r=_(a,N=>N.type.name==="table_wrapper");let n="",c={},p={};r&&(p=ae(r.node.attrs.style),r.node.content.forEach(N=>{if(N.type.name==="table_caption_external"){const I=i.pmDocToFragment(N);n=i.fragmentToHtml(I),n=n==="<img>"?"":n,c=ae(N.attrs.style)}}));const d=ae(((f=s.node.attrs)==null?void 0:f.style)||""),u=i.TableMap.get(s.node),h=p["margin-left"]==="auto"&&p["margin-right"]==="auto"?"center":p["margin-right"]==="auto"?"left":p["margin-left"]==="auto"?"right":null,m=Is(s.node,u),w=Ds(s.node);return{...Ze,columns:u.width,rows:u.height,...Ye(s.node,"width"),...r&&/%/.test(p.width||"")?Ye(r.node,"width"):{},...Ye(s.node,"height"),textAlign:d["text-align"]||"",position:h||null,cellPadding:w?parseFloat(w):null,cellSpacing:d["border-spacing"]?parseFloat(d["border-spacing"]):null,backgroundColor:d["background-color"],borderWidth:d["border-width"]?parseFloat(d["border-width"]):null,borderColor:d["border-color"],borderStyle:d["border-style"]||null,collapseBorders:d["border-collapse"]==="collapse",caption:n||void 0,captionAlignment:c["text-align"]||"",captionPosition:c["caption-side"]||null,headerRows:m.rows,headerColumns:m.columns,associateHeaders:m.rows||m.columns?Bs(s.node):"none",id:((b=s.node.attrs)==null?void 0:b.id)||"",className:((S=s.node.attrs)==null?void 0:S.class)||""}},Ar=t=>{const a=t.lastChild.lastChild;return{node:a,pos:t.content.size-a.nodeSize}},Cr=(t,e,a,s,r)=>{const n=Ar(a),c=e+n.pos;if(!t.doc.nodeAt(c))return t;const d=t.doc.resolve(c),u=new i.CellSelection(d,d),h=t.tr.setSelection(u);let m=t.apply(h);for(let w=0;w<s;w++)r(m,f=>{m=m.apply(f)});return m},Ir=(t,e,a,s)=>{let r=t;for(let n=0;n<a;n++){const c=r.doc.nodeAt(e);if(c){const p=Ar(c),d=e+p.pos,u=r.doc.resolve(d),h=new i.CellSelection(u,u),m=r.tr.setSelection(h);r=r.apply(m),s(r,w=>{r=r.apply(w)})}}return r},Rs=(t,e,a,s)=>{let r=t,n=r.doc.nodeAt(e);if(!n)return r;let c=i.TableMap.get(n);return c.width===s&&c.height===a||(s>c.width?r=Cr(r,e,n,s-c.width,i.addColumnAfter):s<c.width&&(r=Ir(r,e,c.width-s,hr)),n=r.doc.nodeAt(e),!n)||(c=i.TableMap.get(n),a>c.height?r=Cr(r,e,n,a-c.height,i.addRowAfter):a<c.height&&(r=Ir(r,e,c.height-a,mr))),r},Ms=(t,e,a)=>{const s=t.doc.nodeAt(a);if(!s)return t;let r={...s.attrs};const n=e.width!==null&&(e.widthUnit!=="%"||!e.caption&&!e.position);r=M(r,"width",n?e.width+e.widthUnit:""),r=M(r,"height",e.height!==null?e.height+e.heightUnit:""),r=M(r,"text-align",e.textAlign||""),r=M(r,"background-color",e.backgroundColor||""),r=M(r,"border-width",e.borderWidth?e.borderWidth+"px":""),r=M(r,"border-style",e.borderStyle||""),r=M(r,"border-color",e.borderColor||""),r=M(r,"border-spacing",e.cellSpacing!==null?e.cellSpacing+"px":""),e.cellSpacing!==null?r=M(r,"border-collapse","unset"):r=M(r,"border-collapse",e.collapseBorders?"collapse":"");const c=Fe[e.position||""]||{};Object.keys(c).forEach(d=>{r=M(r,d,c[d])}),r.id=e.id||null,r.class=e.className||null;const p=t.tr.setNodeMarkup(a,null,r);return t=t.apply(p),t},Dr=(t,e,a,s,r)=>{if(e.type.name!==s.name||Object.keys(r).length>0){const n=t.tr.setNodeMarkup(a,s,{...e.attrs,...r});return t.apply(n)}return t},ks=(t,e)=>{/^cell-[0-9]+-[0-9]+$/.test(t.attrs.id||"")&&(e.id=null)},Hs=(t,e,a)=>{const s=t.doc.nodeAt(a),r=s&&i.TableMap.get(s);if(!s||!r)return t;const n=Lr(r);let c=t;const{table_header:p,table_cell:d}=t.schema.nodes,u=String(new Date().getTime()),h=[],m=(f,b)=>{const S=`cell-${f}${b}-${u}`;return h[f]||h.push([]),h[f][b]||h[f].push([]),h[f][b]=S,S},w=(f,b,S,N)=>{const I=[];if(N)for(let B=0;B<f;B++)h[B]&&h[B][b]&&I.push(h[B][b]);if(S)for(let B=0;B<b;B++)h[f]&&h[f][B]&&I.push(h[f][B]);return I.join(" ")};return n.forEach((f,b)=>{f.forEach((S,N)=>{const I=s.nodeAt(S);if(I){const B=N<e.headerColumns,k=b<e.headerRows,H={...I.attrs};ks(I,H),H.headers=null,H.scope=null,k||B?(e.associateHeaders==="scope"&&(H.scope=k?"col":"row"),e.associateHeaders==="id"&&(H.id=m(b,N),(N>0||b>0)&&(H.headers=w(b,N,B,k)||null)),c=Dr(c,I,a+S+1,p,H)):(e.associateHeaders==="id"&&(H.headers=w(b,N,e.headerColumns>0,e.headerRows>0)||null),c=Dr(c,I,a+S+1,d,H))}})}),c},Fs=(t,e,a,s)=>{let r={...e.attrs};return r=M(r,"margin-left",""),r=M(r,"margin-right",""),Object.keys(s||{}).forEach(n=>{r=M(r,n,(s||{})[n]||"")}),t.apply(t.tr.setNodeMarkup(a,null,r))},Br=(t,e)=>i.parseContent("<p>"+t+"</p>",e).content.firstChild.content,zr=(t,e)=>{if(!t.caption)return;let a={caption:"",style:"display: table-caption"};t.captionAlignment&&(a=M(a,"text-align",t.captionAlignment)),t.captionPosition&&(a=M(a,"caption-side",t.captionPosition));const s=Br(t.caption,e);return s&&e.nodes.table_caption_external.createAndFill(a,s)||void 0},Rr=t=>t.firstChild&&t.firstChild.type.name==="table_caption_external",Ws=(t,e,a,s)=>{let r=t,n;const c=a+2,p=a+1,d=r.schema;if(Rr(e))if(n=e.firstChild,s.caption){const u=Br(s.caption,d);if(r=r.apply(r.tr.replaceWith(c,c+n.content.size,u)),n=r.doc.nodeAt(p),n){let h={...n.attrs};h=M(h,"text-align",s.captionAlignment||""),h=M(h,"caption-side",s.captionPosition||""),r=r.apply(r.tr.setNodeAttribute(p,"style",h.style))}}else r=r.apply(r.tr.deleteRange(c,c+n.content.size));else n=zr(s,d),n&&(r=r.apply(r.tr.replaceWith(p,p,n)));return r},Ks=(t,e,a,s,r)=>{let n={state:t,pos:a};if(!s&&(e.position||e.caption)){let p={table:"",style:"display: table"};const d=[],u=e.position,h=u&&Fe[u];h&&Object.keys(h).forEach(b=>{p=M(p,b,h[b]||"")}),typeof e.width=="number"&&e.widthUnit==="%"&&(p=M(p,"width",e.width+e.widthUnit));const m=zr(e,t.schema);m&&d.push(m);const w=t.doc.nodeAt(a);d.push(w);const f=t.schema.nodes.table_wrapper.createAndFill(p,d);if(f){const b=t.tr.replaceWith(a,a+w.content.size,f);t=t.apply(b),n={state:t,pos:a}}}else s&&(e.position||e.caption||!e.caption&&Rr(s.node))?(t=Fs(t,s.node,r,e.position&&Fe[e.position]),t=Ws(t,s.node,r,e),n={state:t,pos:r}):s&&!(e.position||e.caption)?n={state:t,node:s.node,pos:t.selection.$from.start(s.depth)-1}:n={state:t,pos:a};const c=s&&n.state.doc.nodeAt(r);if(c){let p;typeof e.width=="number"&&e.widthUnit==="%"?p=M(c.attrs,"width",e.width+e.widthUnit):e.widthUnit!=="%"&&/%/.test(ae(c.attrs.style||"").width||"")&&(p=M(c.attrs,"width","")),p&&(n.state=n.state.apply(n.state.tr.setNodeMarkup(r,null,p)))}return n},Os=(t,e)=>{const a=t.selection.$from;let s=_(a,N=>N.type.spec.tableRole==="table");if(!s)return;const r=a.start(s.depth)-1;let n=Rs(t,r,e.rows,e.columns);if(!n)return;const c=n.tr;Pr(n).forEach(N=>{let I={...N.node.attrs};I=M(I,"padding",typeof e.cellPadding=="number"?e.cellPadding+"px":""),c.setNodeMarkup(N.pos,null,I)}),n=n.apply(c),n=Ms(n,e,r),n=Hs(n,e,r);const p=_(a,N=>N.type.name==="table_wrapper"),d=a.start((p==null?void 0:p.depth)||0)-1;let u=Ks(n,e,r,p,d);n=u.state;const h=u.pos,m=n.doc.nodeAt(u.pos);if(!m)return;const w=h+(p||s).node.content.size,f=t.tr.replaceWith(h,w,m),b=i.Selection.atEnd(m),S=i.TextSelection.create(f.doc,h+b.to+1);return f.setSelection(S),f},Vs=t=>{const{view:e,...a}=t,s=A.useLocalization(),[r,n]=l.useState(!1),c=!!(e&&_(e.state.selection.$from,h=>h.type.spec.tableRole==="table")),p=l.useCallback(()=>{n(!0)},[]),d=l.useCallback(()=>{n(!1),e==null||e.focus()},[e]),u=l.useCallback(h=>{if(e&&h){const m=Os(e.state,h);m&&e.dispatch(m)}d()},[e,d]);return l.createElement(l.Fragment,null,l.createElement(D.Button,{type:"button",title:s.toLanguageString(o.tableProperties,g[o.tableProperties]),icon:"table-properties",svgIcon:x.tablePropertiesIcon,onClick:p,disabled:!c,...K,...a}),r&&l.createElement(Us,{onClose:d,onSave:u,view:e}))},We=[{textKey:o.tablePropertiesAlignLeft,text:g[o.tablePropertiesAlignLeft],value:"left",icon:"table-align-middle-left",svgIcon:x.tableAlignMiddleLeftIcon},{textKey:o.tablePropertiesAlignCenter,text:g[o.tablePropertiesAlignCenter],value:"center",icon:"table-align-middle-center",svgIcon:x.tableAlignMiddleCenterIcon},{textKey:o.tablePropertiesAlignRight,text:g[o.tablePropertiesAlignRight],value:"right",icon:"table-align-middle-right",svgIcon:x.tableAlignMiddleRightIcon},{textKey:o.tablePropertiesNoAlignment,text:g[o.tablePropertiesNoAlignment],value:"",icon:"align-remove",svgIcon:x.tableAlignRemoveIcon}],Mr=[{textKey:o.tablePropertiesLeft,text:g[o.tablePropertiesLeft],value:"left",style:{},icon:"table-position-left",svgIcon:x.tablePositionStartIcon},{textKey:o.tablePropertiesCenter,text:g[o.tablePropertiesCenter],value:"center",style:{},icon:"table-position-center",svgIcon:x.tablePositionCenterIcon},{textKey:o.tablePropertiesRight,text:g[o.tablePropertiesRight],value:"right",style:{},icon:"table-position-right",svgIcon:x.tablePositionEndIcon}].map(t=>({...t,style:Fe[t.value]})),kr=[{textKey:o.tablePropertiesTop,text:g[o.tablePropertiesTop],value:"top",icon:"position-top",svgIcon:x.positionTopIcon},{textKey:o.tablePropertiesBottom,text:g[o.tablePropertiesBottom],value:"bottom",icon:"position-bottom",svgIcon:x.positionBottomIcon}],Hr=[{textKey:o.tablePropertiesNone,text:g[o.tablePropertiesNone],value:"none"},{textKey:o.tablePropertiesUsingScopeAttribute,text:g[o.tablePropertiesUsingScopeAttribute],value:"scope"},{textKey:o.tablePropertiesUsingIdAttributes,text:g[o.tablePropertiesUsingIdAttributes],value:"id"}],Us=t=>{const e=l.useMemo(()=>{const T=t.view&&t.view.state;return T?zs(T):Ze},[t.view]),a=A.useLocalization(),[s,r]=l.useState(0),n=l.useCallback(T=>{r(T.selected)},[]),c=l.useRef(null),p=l.useRef(null),d=l.useRef(null),u=l.useRef(null),h=l.useRef(null),m=l.useRef(null),w=l.useRef(null),f=l.useRef(null),b=l.useRef(null),S=l.useRef(null),N=l.useRef(null),I=l.useRef(null),B=l.useRef(null),k=l.useRef(null),H=l.useRef(null),$=l.useRef(null),Q=l.useRef(null),E=l.useRef(null),X=l.useRef(null),j=l.useRef(null),Y=l.useRef(null),Z=l.useRef(null),re=l.useRef(null),te=l.useCallback(()=>{var ee,ie,P,L,z,V,le,ce,pe,de,ue,be,ye,ve,we,Pe,Se,xe,Te,Ne;const T={rows:((ee=c.current)==null?void 0:ee.value)||0,columns:((ie=p.current)==null?void 0:ie.value)||0,width:d.current?d.current.value:null,height:u.current?u.current.value:null,cellSpacing:h.current?h.current.value:null,cellPadding:m.current?m.current.value:null,borderWidth:w.current?w.current.value:null,widthUnit:((P=f.current)==null?void 0:P.value)||"",heightUnit:((L=b.current)==null?void 0:L.value)||"",position:((V=(z=S.current)==null?void 0:z.value)==null?void 0:V.value)||null,textAlign:(le=N.current)!=null&&le.value?N.current.value.value:null,borderStyle:(ce=I.current)!=null&&ce.value?I.current.value.value:null,backgroundColor:(pe=B.current)==null?void 0:pe.value,borderColor:(de=k.current)==null?void 0:de.value,collapseBorders:!!((be=(ue=H.current)==null?void 0:ue.element)!=null&&be.checked),id:String(((ye=$.current)==null?void 0:ye.value)||""),className:String(((ve=Q.current)==null?void 0:ve.value)||""),caption:String(((we=E.current)==null?void 0:we.value)||""),headerRows:((Pe=X.current)==null?void 0:Pe.value)||0,headerColumns:((Se=j.current)==null?void 0:Se.value)||0,captionAlignment:(xe=Y.current)!=null&&xe.value?Y.current.value.value:null,captionPosition:(Te=Z.current)!=null&&Te.value?Z.current.value.value:null,associateHeaders:(Ne=re.current)!=null&&Ne.value?re.current.value.value:"none"};t.onSave.call(void 0,T)},[t.onSave]),he=l.createElement("div",{className:"k-form k-form-md"},l.createElement("fieldset",{className:"k-form-fieldset"},l.createElement("div",{className:"k-form-layout k-d-grid k-grid-cols-4 k-gap-x-4"},l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesRows,g[o.tablePropertiesRows])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:c,defaultValue:e.rows,min:1}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesColumns,g[o.tablePropertiesColumns])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:p,defaultValue:e.columns,min:1}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesWidth,g[o.tablePropertiesWidth])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:d,defaultValue:e.width,min:0,placeholder:a.toLanguageString(o.sizeAuto,g[o.sizeAuto])}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"}," "),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.AutoComplete,{ref:f,defaultValue:e.widthUnit,data:ne,popupSettings:U}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesHeight,g[o.tablePropertiesHeight])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:u,defaultValue:e.height,min:0,placeholder:a.toLanguageString(o.sizeAuto,g[o.sizeAuto])}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"}," "),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.AutoComplete,{ref:b,defaultValue:e.heightUnit,data:ne.filter(T=>T!=="%"),popupSettings:U}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesPosition,g[o.tablePropertiesPosition])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:S,defaultValue:Mr.find(T=>T.value===e.position),popupSettings:U,data:Mr.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),textField:"text",dataItemKey:"value",valueRender:Ce,itemRender:Ie}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesAlignment,g[o.tablePropertiesAlignment])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:N,defaultValue:We.find(T=>T.value===e.textAlign),data:We.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),textField:"text",dataItemKey:"value",popupSettings:U,valueRender:Ce,itemRender:Ie}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesCellSpacing,g[o.tablePropertiesCellSpacing])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:h,defaultValue:e.cellSpacing,placeholder:a.toLanguageString(o.sizeAuto,g[o.sizeAuto]),min:0}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesCellPadding,g[o.tablePropertiesCellPadding])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:m,defaultValue:e.cellPadding,placeholder:a.toLanguageString(o.sizeAuto,g[o.sizeAuto]),min:0}))),l.createElement("div",{className:"k-form-field k-col-span-full"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesTableBackground,g[o.tablePropertiesTableBackground])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.ColorPicker,{ref:B,defaultValue:e.backgroundColor}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesBorderWidth,g[o.tablePropertiesBorderWidth])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:w,defaultValue:e.borderWidth,min:0}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesBorderColor,g[o.tablePropertiesBorderColor])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.ColorPicker,{ref:k,defaultValue:e.borderColor}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesBorderStyle,g[o.tablePropertiesBorderStyle])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:I,defaultValue:ze.find(T=>T.value===e.borderStyle),popupSettings:U,data:ze.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),textField:"text",dataItemKey:"value"}))),l.createElement("div",{className:"k-form-field k-col-span-full"},l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.Checkbox,{ref:H,className:"k-checkbox-wrap",label:a.toLanguageString(o.tablePropertiesCollapseBorders,g[o.tablePropertiesCollapseBorders]),defaultChecked:e.collapseBorders})))))),me=l.createElement("div",{className:"k-form k-form-md"},l.createElement("fieldset",{className:"k-form-fieldset"},l.createElement("div",{className:"k-form-layout k-d-grid"},l.createElement("div",{className:"k-form-field"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesId,g[o.tablePropertiesId])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.TextBox,{ref:$,defaultValue:e.id}))),l.createElement("div",{className:"k-form-field"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesCssClass,g[o.tablePropertiesCssClass])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.TextBox,{ref:Q,defaultValue:e.className}))),l.createElement("fieldset",{className:"k-form-fieldset"},l.createElement("legend",{className:"k-form-legend"},a.toLanguageString(o.tablePropertiesAccessibility,g[o.tablePropertiesAccessibility])),l.createElement("div",{className:"k-d-grid k-grid-cols-4 k-gap-x-4"},l.createElement("div",{className:"k-form-field k-col-span-full"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesCaption,g[o.tablePropertiesCaption])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.TextBox,{ref:E,defaultValue:e.caption}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesCaptionPosition,g[o.tablePropertiesCaptionPosition])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:Z,defaultValue:kr.find(T=>T.value===e.captionPosition),data:kr.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),popupSettings:U,textField:"text",dataItemKey:"value",valueRender:Ce,itemRender:Ie}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesCaptionAlignment,g[o.tablePropertiesCaptionAlignment])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:Y,defaultValue:We.find(T=>T.value===e.captionAlignment),data:We.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),popupSettings:U,textField:"text",dataItemKey:"value",valueRender:Ce,itemRender:Ie}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesHeaderRows,g[o.tablePropertiesHeaderRows])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:X,defaultValue:e.headerRows,min:0}))),l.createElement("div",{className:"k-form-field k-col-span-1"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesHeaderCols,g[o.tablePropertiesHeaderCols])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(C.NumericTextBox,{ref:j,defaultValue:e.headerColumns,min:0}))),l.createElement("div",{className:"k-form-field k-col-span-2"},l.createElement("label",{className:"k-label k-form-label"},a.toLanguageString(o.tablePropertiesAssociateHeaders,g[o.tablePropertiesAssociateHeaders])),l.createElement("div",{className:"k-form-field-wrap"},l.createElement(O.DropDownList,{ref:re,defaultValue:Hr.find(T=>T.value===e.associateHeaders),data:Hr.map(T=>({...T,text:a.toLanguageString(T.textKey,T.text)})),popupSettings:U,textField:"text",dataItemKey:"value"})))))))),se=l.createElement(Le.TabStrip,{selected:s,onSelect:n,animation:!1,keepTabsMounted:!0},l.createElement(Le.TabStripTab,{title:a.toLanguageString(o.tablePropertiesGeneral,g[o.tablePropertiesGeneral])},he),l.createElement(Le.TabStripTab,{title:a.toLanguageString(o.tablePropertiesAdvanced,g[o.tablePropertiesAdvanced])},me)),fe=[l.createElement(D.Button,{themeColor:"primary",key:"save",onClick:te},a.toLanguageString(o.tablePropertiesSave,g[o.tablePropertiesSave])),l.createElement(D.Button,{onClick:t.onClose,key:"cancel"},a.toLanguageString(o.tablePropertiesCancel,g[o.tablePropertiesCancel]))];return l.createElement(q.Window,{className:"k-editor-window k-editor-table-wizard-window",title:a.toLanguageString(o.tableProperties,g[o.tableProperties]),onClose:t.onClose,key:"dialog",style:{userSelect:"none"},width:480,height:630,modal:!0,minimizeButton:()=>null,maximizeButton:()=>null,resizable:!1},se,l.createElement(q.WindowActionsBar,{layout:"start"},...fe))};v.EditorTools=void 0,(t=>{function e(y){return ss(y)}t.createAlignTool=e;class a extends e(v.EditorToolsSettings.alignLeft){}t.AlignLeft=a;class s extends e(v.EditorToolsSettings.alignRight){}t.AlignRight=s;class r extends e(v.EditorToolsSettings.alignCenter){}t.AlignCenter=r;class n extends e(v.EditorToolsSettings.alignJustify){}t.AlignJustify=n;function c(y){return Ve.createInsertTableTool(y)}t.createInsertTableTool=c;class p extends c(v.EditorToolsSettings.insertTable){}t.InsertTable=p;class d extends Me.InsertTablePopup{}t.InsertTablePopup=d;function u(y){return Ue.createStyleDropDownList(y)}t.createStyleDropDownList=u;class h extends u(v.EditorToolsSettings.fontSize){}t.FontSize=h;class m extends u(v.EditorToolsSettings.fontName){}t.FontName=m,t.ForeColor=y=>l.createElement(gr,{...v.EditorToolsSettings.foreColor,...y}),t.BackColor=y=>l.createElement(gr,{...v.EditorToolsSettings.backColor,...y});function w(y){return _e.createFormatBlockDropDownList(y)}t.createFormatBlockDropDownList=w;class f extends w(v.EditorToolsSettings.formatBlock){}t.FormatBlock=f;function b(y){return ke.createUndoTool(y)}t.createUndoTool=b;function S(y){return ke.createRedoTool(y)}t.createRedoTool=S;class N extends b(v.EditorToolsSettings.undo){}t.Undo=N;class I extends S(v.EditorToolsSettings.redo){}t.Redo=I;function B(y){return $e.createIndentTool(y)}t.createIndentTool=B;class k extends B(v.EditorToolsSettings.indent){}t.Indent=k;function H(y){return Ee.createInlineFormatTool(y)}t.createInlineFormatTool=H;class $ extends H(v.EditorToolsSettings.bold){}t.Bold=$;class Q extends H(v.EditorToolsSettings.italic){}t.Italic=Q;class E extends H(v.EditorToolsSettings.underline){}t.Underline=E;class X extends H(v.EditorToolsSettings.strikethrough){}t.Strikethrough=X;class j extends H(v.EditorToolsSettings.subscript){}t.Subscript=j;class Y extends H(v.EditorToolsSettings.superscript){}t.Superscript=Y;function Z(y){return is(y)}t.createInsertImageTool=Z;class re extends Z(v.EditorToolsSettings.image){}t.InsertImage=re;function te(y){return je.createLinkTool(y)}t.createLinkTool=te;class he extends te(v.EditorToolsSettings.link){}t.Link=he;class me extends te(v.EditorToolsSettings.insertFile){}t.InsertFile=me;function se(y){return qe.createListTool(y)}t.createListTool=se;class fe extends se(v.EditorToolsSettings.orderedList){}t.OrderedList=fe;class T extends se(v.EditorToolsSettings.bulletList){}t.UnorderedList=T,t.BulletedList=y=>{const et=[{icon:"list-unordered",svgIcon:x.listUnorderedIcon,text:"Disc",style:"disc"},{icon:"list-unordered-outline",svgIcon:x.listUnorderedOutlineIcon,text:"Circle",style:"circle"},{icon:"list-unordered-square",svgIcon:x.listUnorderedSquareIcon,text:"Square",style:"square"}];return l.createElement(wr,{listType:v.EditorToolsSettings.bulletList.listType,items:et,icon:"list-unordered",svgIcon:x.listUnorderedIcon,titleKey:v.EditorToolsSettings.bulletList.messages.title,...y})},t.NumberedList=y=>{const et=[{icon:"list-ordered",svgIcon:x.listOrderedIcon,text:"Decimal"},{icon:"list-roman-upper",svgIcon:x.listRomanUpperIcon,text:"Upper roman",style:"upper-roman"},{icon:"list-roman-lower",svgIcon:x.listRomanLowerIcon,text:"Lower roman",style:"lower-roman"},{icon:"list-latin-big",svgIcon:x.listLatinBigIcon,text:"Upper latin",style:"upper-latin"},{icon:"list-latin-small",svgIcon:x.listLatinSmallIcon,text:"Lower latin",style:"lower-latin"}];return l.createElement(wr,{listType:v.EditorToolsSettings.orderedList.listType,items:et,icon:"list-ordered",svgIcon:x.listOrderedIcon,titleKey:v.EditorToolsSettings.orderedList.messages.title,...y})},t.TableCellProperties=As,t.TableProperties=Vs;function ee(y){return Ge.createOutdentTool(y)}t.createOutdentTool=ee;class ie extends ee(v.EditorToolsSettings.outdent){}t.Outdent=ie,t.Print=y=>l.createElement(os,{...y}),t.Pdf=y=>l.createElement(ds,{...y}),t.SelectAll=y=>l.createElement(gs,{...y}),t.CleanFormatting=y=>l.createElement(ms,{...y});function P(y){return J.createAddRowBeforeTool(y)}t.createAddRowBeforeTool=P;function L(y){return J.createAddRowAfterTool(y)}t.createAddRowAfterTool=L;function z(y){return J.createAddColumnBeforeTool(y)}t.createAddColumnBeforeTool=z;function V(y){return J.createAddColumnAfterTool(y)}t.createAddColumnAfterTool=V;function le(y){return J.createDeleteRowTool(y)}t.createDeleteRowTool=le;function ce(y){return J.createDeleteColumnTool(y)}t.createDeleteColumnTool=ce;function pe(y){return J.createDeleteTableTool(y)}t.createDeleteTableTool=pe;function de(y){return J.createMergeCellsTool(y)}t.createMergeCellsTool=de;function ue(y){return J.createSplitCellTool(y)}t.createSplitCellTool=ue;class be extends P(v.EditorToolsSettings.addRowBefore){}t.AddRowBefore=be;class ye extends L(v.EditorToolsSettings.addRowAfter){}t.AddRowAfter=ye;class ve extends z(v.EditorToolsSettings.addColumnBefore){}t.AddColumnBefore=ve;class we extends V(v.EditorToolsSettings.addColumnAfter){}t.AddColumnAfter=we;class Pe extends le(v.EditorToolsSettings.deleteRow){}t.DeleteRow=Pe;class Se extends ce(v.EditorToolsSettings.deleteColumn){}t.DeleteColumn=Se;class xe extends pe(v.EditorToolsSettings.deleteTable){}t.DeleteTable=xe;class Te extends de(v.EditorToolsSettings.mergeCells){}t.MergeCells=Te;class Ne extends ue(v.EditorToolsSettings.splitCell){}t.SplitCell=Ne;function Fr(y){return Je.createUnlinkTool(y)}t.createUnlinkTool=Fr;class $s extends Fr(v.EditorToolsSettings.unlink){}t.Unlink=$s;function Wr(y){return Qe.createViewHtmlTool(y)}t.createViewHtmlTool=Wr;class Es extends Wr(v.EditorToolsSettings.viewHtml){}t.ViewHtml=Es;class js extends yr{}t.FindAndReplace=js})(v.EditorTools||(v.EditorTools={}));const _s={Selection:i.Selection,SelectionRange:i.SelectionRange,TextSelection:i.TextSelection,NodeSelection:i.NodeSelection,AllSelection:i.AllSelection,EditorState:i.EditorState,Plugin:i.Plugin,PluginKey:i.PluginKey,Transaction:i.Transaction,Decoration:i.Decoration,DecorationSet:i.DecorationSet,EditorView:i.EditorView,Node:i.Node,ResolvedPos:i.ResolvedPos,NodeRange:i.NodeRange,Fragment:i.Fragment,Slice:i.Slice,ReplaceError:i.ReplaceError,Mark:i.Mark,Schema:i.Schema,NodeType:i.NodeType,MarkType:i.MarkType,ContentMatch:i.ContentMatch,DOMParser:i.DOMParser,DOMSerializer:i.DOMSerializer,Transform:i.Transform,Step:i.Step,StepResult:i.StepResult,joinPoint:i.joinPoint,canJoin:i.canJoin,canSplit:i.canSplit,insertPoint:i.insertPoint,dropPoint:i.dropPoint,liftTarget:i.liftTarget,findWrapping:i.findWrapping,StepMap:i.StepMap,MapResult:i.MapResult,Mapping:i.Mapping,AddMarkStep:i.AddMarkStep,RemoveMarkStep:i.RemoveMarkStep,ReplaceStep:i.ReplaceStep,ReplaceAroundStep:i.ReplaceAroundStep,replaceStep:i.replaceStep,deleteSelection:i.deleteSelection,joinBackward:i.joinBackward,selectNodeBackward:i.selectNodeBackward,joinForward:i.joinForward,selectNodeForward:i.selectNodeForward,joinUp:i.joinUp,joinDown:i.joinDown,lift:i.lift,newlineInCode:i.newlineInCode,exitCode:i.exitCode,createParagraphNear:i.createParagraphNear,liftEmptyBlock:i.liftEmptyBlock,splitBlock:i.splitBlock,splitBlockKeepMarks:i.splitBlockKeepMarks,selectParentNode:i.selectParentNode,selectAll:i.selectAll,wrapIn:i.wrapIn,setBlockType:i.setBlockType,toggleMark:i.toggleMark,autoJoin:i.autoJoin,chainCommands:i.chainCommands,pcBaseKeymap:i.pcBaseKeymap,macBaseKeymap:i.macBaseKeymap,baseKeymap:i.baseKeymap,history:i.history,undo:i.undo,redo:i.redo,undoDepth:i.undoDepth,redoDepth:i.redoDepth,InputRule:i.InputRule,inputRules:i.inputRules,undoInputRule:i.undoInputRule,emDash:i.emDash,ellipsis:i.ellipsis,openDoubleQuote:i.openDoubleQuote,closeDoubleQuote:i.closeDoubleQuote,openSingleQuote:i.openSingleQuote,closeSingleQuote:i.closeSingleQuote,smartQuotes:i.smartQuotes,wrappingInputRule:i.wrappingInputRule,textblockTypeInputRule:i.textblockTypeInputRule,keymap:i.keymap,keydownHandler:i.keydownHandler,orderedList:i.orderedList,bulletList:i.bulletList,listItem:i.listItem,addListNodes:i.addListNodes,wrapInList:i.wrapInList,splitListItem:i.splitListItem,liftListItem:i.liftListItem,sinkListItem:i.sinkListItem,dropCursor:i.dropCursor,gapCursor:i.gapCursor,tableEditing:i.tableEditing,fixTables:i.fixTables,fixTablesKey:i.fixTablesKey,cellAround:i.cellAround,isInTable:i.isInTable,selectionCell:i.selectionCell,moveCellForward:i.moveCellForward,inSameTable:i.inSameTable,findCell:i.findCell,colCount:i.colCount,nextCell:i.nextCell,removeColSpan:i.removeColSpan,addColSpan:i.addColSpan,columnIsHeader:i.columnIsHeader,tableNodes:i.tableNodes,tableNodeTypes:i.tableNodeTypes,CellSelection:i.CellSelection,TableMap:i.TableMap,tableEditingKey:i.tableEditingKey,columnResizing:i.columnResizing,columnResizingPluginKey:i.columnResizingPluginKey,updateColumnsOnResize:i.updateColumnsOnResize,selectedRect:i.selectedRect,addColumn:i.addColumn,addColumnBefore:i.addColumnBefore,addColumnAfter:i.addColumnAfter,deleteColumn:i.deleteColumn,rowIsHeader:i.rowIsHeader,addRow:i.addRow,addRowBefore:i.addRowBefore,addRowAfter:i.addRowAfter,deleteRow:i.deleteRow,mergeCells:i.mergeCells,splitCell:i.splitCell,splitCellWithType:i.splitCellWithType,setCellAttr:i.setCellAttr,toggleHeader:i.toggleHeader,toggleHeaderRow:i.toggleHeaderRow,toggleHeaderColumn:i.toggleHeaderColumn,toggleHeaderCell:i.toggleHeaderCell,goToNextCell:i.goToNextCell,deleteTable:i.deleteTable};Object.defineProperty(v,"getHtml",{enumerable:!0,get:()=>i.getHtml}),Object.defineProperty(v,"marks",{enumerable:!0,get:()=>i.marks}),Object.defineProperty(v,"nodes",{enumerable:!0,get:()=>i.nodes}),Object.defineProperty(v,"parseContent",{enumerable:!0,get:()=>i.parseContent}),v.Editor=Oe,v.ProseMirror=_s,v.editorPropsKey=Be,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});