@progress/kendo-angular-editor 3.1.1-dev.202202241728 → 3.1.2

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.
package/dist/cdn/main.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):"function"==typeof define&&define.amd?define(["tslib","@angular/core","@progress/kendo-angular-toolbar","@progress/kendo-angular-dialog","@progress/kendo-editor-common","@progress/kendo-angular-common","@progress/kendo-angular-l10n","@angular/forms","@progress/kendo-angular-dropdowns","rxjs","rxjs/operators","@progress/kendo-angular-inputs","@progress/kendo-licensing","@angular/common","@progress/kendo-angular-buttons","@progress/kendo-angular-popup"],t):"object"==typeof exports?exports.KendoAngularEditor=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("rxjs/operators"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):e.KendoAngularEditor=t(e.tslib,e["@angular/core"],e["@progress/kendo-angular-toolbar"],e["@progress/kendo-angular-dialog"],e["@progress/kendo-editor-common"],e["@progress/kendo-angular-common"],e["@progress/kendo-angular-l10n"],e["@angular/forms"],e["@progress/kendo-angular-dropdowns"],e.rxjs,e["rxjs/operators"],e["@progress/kendo-angular-inputs"],e["@progress/kendo-licensing"],e["@angular/common"],e["@progress/kendo-angular-buttons"],e["@progress/kendo-angular-popup"])}(window,(function(e,t,o,n,i,r,a,d,l,s,c,u,p,m,f,g){return function(e){var t={};function o(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=36)}([function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=function(e){function t(t,o,n){return e.call(this,t,o,n)||this}return n.__extends(t,e),t=n.__decorate([n.__param(0,i.Inject(r.L10N_PREFIX)),n.__param(1,i.Optional()),n.__param(2,i.Optional()),n.__param(2,i.Inject(r.RTL)),n.__metadata("design:paramtypes",[String,r.MessageService,Boolean])],t)}(r.LocalizationService);t.EditorLocalizationService=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(15),d=o(16),l=o(4),s=o(7),c=o(10),u=o(8),p=o(37),m=o(38),f=o(23),g=o(41),h=o(43),_=o(9),b=o(24),v=o(25),y=o(26),k=o(11),C=o(2),w=o(44),E=o(27),x=o(5),T=o(28),D={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!0,removeMsClasses:!1,removeMsStyles:!1,stripTags:[]},S=_.conditionallyExecute(u.removeComments),B=_.conditionallyExecute(u.sanitize),I=function(e){if("all"===e.removeAttributes)return{"*":u.removeAttribute};var t=_.removeEmptyEntries({style:e.removeMsStyles?u.sanitizeStyleAttr:void 0,class:e.removeMsClasses?u.sanitizeClassAttr:void 0});return e.removeAttributes.reduce((function(e,t){var o;return n.__assign({},e,((o={})[t]=u.removeAttribute,o))}),t)},O=function(){function e(e,t,o,r,d,l){var s=this;this.dialogService=e,this.localization=t,this.cdr=o,this.ngZone=r,this.element=d,this.toolsService=l,this.iframe=!0,this.applyToWord=!1,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new i.EventEmitter,this.onFocus=new i.EventEmitter,this.paste=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.hostClass=!0,this.stateChange=new a.BehaviorSubject(h.initialToolBarState),this.valueModified=new a.Subject,this._readonly=!1,this._placeholder="",this.inForm=!1,this.afterViewInit=new a.Subject,this.contentAreaLoaded=new a.Subject,this.dispatchTransaction=function(e){var t=e.docChanged;if(!(s.disabled||s.readonly&&t)){if(t){var o=e.doc,n=u.getHtml({doc:o});s.trOnChange=e,s.htmlOnChange=n,s.ngZone.run((function(){s.valueModified.next(n)}))}t&&!s.inForm||s.view.updateState(s.view.state.apply(e))}},this.transformPastedHTML=function(e){var t=n.__assign({},D,s.pasteCleanupSettings),o=_.pipe(B(t.removeInvalidHTML),S(t.removeHtmlComments))(e),i=u.pasteCleanup(o,{convertMsLists:t.convertMsLists,stripTags:t.stripTags.join("|"),attributes:I(t)});if(c.hasObservers(s.paste)){var r=new T.EditorPasteEvent(i,e,s._pasteEvent);return s.ngZone.run((function(){return s.paste.emit(r)})),r.isDefaultPrevented()?"":r.cleanedHtml}return i},this.changeValue=function(e){var t=s._value;if(s._value=e,s._view){if(s.htmlOnChange===e&&s.trOnChange)s.view.updateState(s.view.state.apply(s.trOnChange));else if((t||"")!==(e||"")){if(s.iframe&&!s.container.element.nativeElement.contentWindow)return;var o=s.view.state,n=u.parseContent(e||"",o.schema,{preserveWhitespace:s.preserveWhitespace}),i=o.tr.setSelection(new u.AllSelection(o.doc)).replaceSelectionWith(n);s.view.updateState(o.apply(i))}s.trOnChange=null,s.htmlOnChange=null}},this.onChangeCallback=function(e){s.changeValue(e)},this.onTouchedCallback=function(e){},this.onPaste=function(e,t){return s._pasteEvent=t,!1},p.validatePackage(m.packageMetadata),this.direction=t.rtl?"rtl":"ltr",this.subs=a.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe((function(){return s.initialize()}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){if(this.trOnChange)return this.htmlOnChange;var e=this._view?this.getSource():this._value;return"<p></p>"===e?this._value?"":this._value:e},set:function(e){this.changeValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(h.disabledToolBarState):this.stateChange.next(h.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(e){if(this._readonly=e||!1,this._view){var t=void 0,o=(t=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode;this._view.dom.contains(o)&&t.getSelection().removeAllRanges();var n=this._view.state.doc,i=this._view.state.tr.setSelection(u.TextSelection.create(n,1));this._view.dispatch(i)}this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(h.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(h.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"schema",{get:function(){return this._schema},set:function(e){if(i.isDevMode){if(!(e instanceof u.Schema))throw new Error(E.EditorErrorMessages.schemaType);if(this._view)throw new Error(E.EditorErrorMessages.setSchemaOnce)}this._schema=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"plugins",{get:function(){return this._plugins},set:function(e){if(i.isDevMode){if("function"!=typeof e)throw new Error(E.EditorErrorMessages.pluginsCallbackType(e));if(this._view)throw new Error(E.EditorErrorMessages.setPluginsOnce)}this._plugins=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){if(i.isDevMode&&this._view)throw new Error(E.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isIE",{get:function(){return this.iframe&&_.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){var e=this.resizable;return e.minWidth?e.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){var e=this.resizable;return e.maxWidth?e.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){var e=this.resizable;return e.minHeight?e.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){var e=this.resizable;return e.maxHeight?e.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionText",{get:function(){return this._view&&this._view.state?u.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var o=t.rtl;e.direction=o?"rtl":"ltr"}))),this.subs.add(this.toolsService.needsCheck.subscribe((function(){return e.cdr.markForCheck()})))},e.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},e.prototype.ngOnChanges=function(e){var t=this;e.value&&this.view&&this.changeValue(e.value.currentValue),e.iframe&&!e.iframe.isFirstChange()&&this.ngZone.onStable.pipe(d.take(1)).subscribe((function(){return t.initialize()})),e.resizable&&!e.resizable.isFirstChange()&&this.normalizeSize()},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},e.prototype.exec=function(e,t){"setHTML"===e&&"string"==typeof t?t={content:t,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some((function(t){return t===e}))&&(t={value:t,applyToWord:this.applyToWord}),g.editorCommands[e](t)(this._view.state,this._view.dispatch,this._view)},e.prototype.openDialog=function(e){var t={createLink:{content:y.FileLinkDialogComponent},insertFile:{content:y.FileLinkDialogComponent},insertImage:{content:v.ImageDialogComponent},viewSource:{content:b.SourceDialogComponent,height:400,width:500}},o=Object.assign({appendTo:this.dialogContainer},t[e]);this.toolbar.toggle(!1);var n=this.dialogService.open(o).content.instance;"createLink"!==e&&"insertFile"!==e||(n.command=e),n.editor=this,n.setData(this._view.state,{applyToWord:this.applyToWord})},e.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},e.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},e.prototype.getSource=function(){return u.getHtml(this._view.state)},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},e.prototype.writeValue=function(e){this.inForm=!0,this.value=null===e?void 0:e},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.isEmpty=function(){return!1},e.prototype.initialize=function(){var e=this;if(c.isDocumentAvailable()){var t=this.schema||f.schema,o=this.container.element.nativeElement,n=u.parseContent((this.value||"").trim(),t,{preserveWhitespace:this.preserveWhitespace});if(this.iframe){var i=o.contentDocument,r=i.createElement("meta");r.setAttribute("charset","utf-8"),i.head.appendChild(r),[w.defaultStyle,w.tablesStyles,"rtl"===this.dir?w.rtlStyles:void 0].forEach((function(e){if(e){var t=i.createElement("style");t.appendChild(i.createTextNode(e)),i.head.appendChild(t)}})),(l=i.createElement("div")).classList.add("k-content"),i.body.appendChild(l)}else{var l=document.createElement("div");o.appendChild(l)}var s=[new u.Plugin({key:new u.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:e.readonly?"0":""}}}}),new u.Plugin({key:new u.PluginKey("toolbar-tools-update"),view:function(){return{update:function(t){e.disabled||e.stateChange.next(e.readonly?h.disabledToolBarState:h.getToolbarState(t.state,{applyToWord:e.applyToWord}))}}}}),u.history(),u.keymap(u.buildListKeymap(t)),u.keymap(u.buildKeymap(t,{applyToWord:this.applyToWord})),u.keymap(u.baseKeymap),u.gapCursor(),u.imageResizing(),u.tableEditing(),u.caretColor()];this.placeholder&&s.push(u.placeholder(this.placeholder));var p=u.EditorState.create({schema:t,doc:n,plugins:_.isPresent(this.plugins)?this.plugins(s):s});if(this.iframe?this.viewMountElement=o.contentDocument.querySelector("div"):this.viewMountElement=o.querySelector("div"),this.ngZone.runOutsideAngular((function(){e._view=new u.EditorView({mount:e.viewMountElement},{state:p,editable:function(){return!e.readonly},dispatchTransaction:e.dispatchTransaction,transformPastedHTML:e.transformPastedHTML,handleDOMEvents:{paste:e.onPaste}})})),this._view){var m=void 0,g=this.element.nativeElement.querySelector(".k-editor-content").classList;m=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(a.fromEvent(m,"focusin").subscribe((function(t){if(e.readonly&&g.add("k-focus"),!e.focusChangedProgrammatically||e.shouldEmitFocus){var o=t.relatedTarget;o&&o.classList.contains("k-colorpicker")&&!e.shouldEmitFocus||e.ngZone.run((function(){return e.onFocus.emit()})),e.shouldEmitFocus=!1}}))),this.subs.add(a.fromEvent(m,"focusout").subscribe((function(t){if(e.readonly&&g.remove("k-focus"),!e.focusChangedProgrammatically){var o=t.relatedTarget;o&&o.classList.contains("k-colorpicker")||e.ngZone.run((function(){return e.onBlur.emit()}))}})))}this.subs.add(this.stateChange.subscribe((function(){e.userToolBarComponent?e.userToolBarComponent.cdr.detectChanges():e.cdr.detectChanges()}))),this.subs.add(this.valueModified.subscribe((function(t){e.onChangeCallback(t),e.valueChange.emit(t),e.cdr.markForCheck()}))),this.subs.add(a.fromEvent(this.viewMountElement,"keyup").pipe(d.map((function(e){return e.keyCode})),d.filter((function(e){return 121===e})),d.map((function(){return e.userToolBarElement||e.defaultToolbar}))).subscribe((function(e){return e.nativeElement.focus()}))),this.subs.add(a.fromEvent(this.viewMountElement,"blur").pipe(d.filter((function(t){return!e.viewMountElement.contains(t.relatedTarget)}))).subscribe((function(){return e.onTouchedCallback()})))}},e.prototype.normalizeSize=function(){var e=this;if("object"==typeof this.resizable&&!this._styleObserver){var t=this.element.nativeElement;this._styleObserver=new MutationObserver((function(){e.ngZone.runOutsideAngular((function(){return e.normalizeProperties(t)}))})),this._styleObserver.observe(t,{attributeFilter:["style"]})}},e.prototype.normalizeProperties=function(e){var t=Object.keys(this.resizable),o=parseInt(e.style.width,10),n=parseInt(e.style.height,10),i=this.resizable;t.forEach((function(t){var r=t.startsWith("min"),a=!r,d=t.endsWith("Width"),l=!d;r&&d?o<i.minWidth&&(e.style.width=i.minWidth+"px"):r&&l?n<i.minHeight&&(e.style.height=i.minHeight+"px"):a&&d?o>i.maxWidth&&(e.style.width=i.maxWidth+"px"):n>i.maxHeight&&(e.style.height=i.maxHeight+"px")}))},n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"value",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"disabled",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"readonly",null),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"iframe",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"applyToWord",void 0),n.__decorate([i.Input(),n.__metadata("design:type",u.Schema),n.__metadata("design:paramtypes",[u.Schema])],e.prototype,"schema",null),n.__decorate([i.Input(),n.__metadata("design:type",Function),n.__metadata("design:paramtypes",[Function])],e.prototype,"plugins",null),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"placeholder",null),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"preserveWhitespace",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"pasteCleanupSettings",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"resizable",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.Output("focus"),n.__metadata("design:type",i.EventEmitter)],e.prototype,"onFocus",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"paste",void 0),n.__decorate([i.Output("blur"),n.__metadata("design:type",i.EventEmitter)],e.prototype,"onBlur",void 0),n.__decorate([i.HostBinding("class.k-editor"),n.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),n.__decorate([i.HostBinding("class.k-editor-resizable"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"resizableClass",null),n.__decorate([i.HostBinding("class.k-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isDisabled",null),n.__decorate([i.HostBinding("class.k-readonly"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isReadonly",null),n.__decorate([i.HostBinding("class.k-ie"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"isIE",null),n.__decorate([i.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),n.__decorate([i.HostBinding("attr.ariaDisabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"ariaDisabled",null),n.__decorate([i.HostBinding("style.minWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"minWidth",null),n.__decorate([i.HostBinding("style.maxWidth"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"maxWidth",null),n.__decorate([i.HostBinding("style.minHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"minHeight",null),n.__decorate([i.HostBinding("style.maxHeight"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"maxHeight",null),n.__decorate([i.ContentChild(l.ToolBarComponent,{static:!1}),n.__metadata("design:type",l.ToolBarComponent)],e.prototype,"userToolBarComponent",void 0),n.__decorate([i.ContentChild(l.ToolBarComponent,{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],e.prototype,"userToolBarElement",void 0),n.__decorate([i.ViewChild("dialogsContainer",{read:i.ViewContainerRef,static:!0}),n.__metadata("design:type",i.ViewContainerRef)],e.prototype,"dialogContainer",void 0),n.__decorate([i.ViewChild("content",{read:i.ViewContainerRef,static:!1}),n.__metadata("design:type",i.ViewContainerRef)],e.prototype,"container",void 0),n.__decorate([i.ViewChild("defaultToolbar",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],e.prototype,"defaultToolbar",void 0),n.__decorate([i.ViewChild("defaultToolbar",{read:l.ToolBarComponent,static:!1}),n.__metadata("design:type",l.ToolBarComponent)],e.prototype,"defaultToolbarComponent",void 0),e=t=n.__decorate([i.Component({selector:"kendo-editor",providers:[C.EditorLocalizationService,x.EditorToolsService,{provide:k.LocalizationService,useExisting:C.EditorLocalizationService},{provide:k.L10N_PREFIX,useValue:"kendo.editor"},{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return t})),multi:!0},{provide:c.KendoInput,useExisting:i.forwardRef((function(){return t}))}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-blockquote="kendo.editor.blockquote|The title of the tool that wraps an element in a blockquote"\n blockquote="Quotation"\n i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."\n bold="Bold"\n i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."\n cleanFormatting="Clean formatting"\n i18n-createLink="kendo.editor.createLink|The title of the tool that creates hyperlinks."\n createLink="Insert link"\n i18n-dialogApply="kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs."\n dialogApply="Apply"\n i18n-dialogCancel="kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs."\n dialogCancel="Cancel"\n i18n-dialogInsert="kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs."\n dialogInsert="Insert"\n i18n-dialogUpdate="kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs."\n dialogUpdate="Update"\n i18n-fileText="kendo.editor.fileText|The caption for the file text in the insertFile dialog."\n fileText="Text"\n i18n-fileTitle="kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog."\n fileTitle="Title"\n i18n-fileWebAddress="kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog."\n fileWebAddress="Web address"\n i18n-fontFamily="kendo.editor.fontFamily|The title of the tool that changes the text font."\n fontFamily="Select font family"\n i18n-fontSize="kendo.editor.fontSize|The title of the tool that changes the text size."\n fontSize="Select font size"\n i18n-foreColor="kendo.editor.foreColor|The title of the tool that changes the text color."\n foreColor="Color"\n i18n-format="kendo.editor.format|The title of the tool that lets users choose block formats."\n format="Format"\n i18n-imageAltText="kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog."\n imageAltText="Alternate text"\n i18n-imageHeight="kendo.editor.imageHeight|The caption for the image height in the insertImage dialog."\n imageHeight="Height (px)"\n i18n-imageWebAddress="kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog."\n imageWebAddress="Web address"\n i18n-imageWidth="kendo.editor.imageWidth|The caption for the image width in the insertImage dialog."\n imageWidth="Width (px)"\n i18n-indent="kendo.editor.indent|The title of the tool that indents the content."\n indent="Indent"\n i18n-insertFile="kendo.editor.insertFile|The title of the tool that inserts links to files."\n insertFile="Insert file"\n i18n-insertImage="kendo.editor.insertImage|The title of the tool that inserts images."\n insertImage="Insert image"\n i18n-insertOrderedList="kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list."\n insertOrderedList="Insert ordered list"\n i18n-insertUnorderedList="kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list."\n insertUnorderedList="Insert unordered list"\n i18n-italic="kendo.editor.italic|The title of the tool that makes text italicized."\n italic="Italic"\n i18n-linkOpenInNewWindow="kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog."\n linkOpenInNewWindow="Open link in new window"\n i18n-linkText="kendo.editor.linkText|The caption for the link text in the createLink dialog."\n linkText="Text"\n i18n-linkTitle="kendo.editor.linkTitle|The caption for the link title in the createLink dialog."\n linkTitle="Title"\n i18n-linkWebAddress="kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog."\n linkWebAddress="Web address"\n i18n-outdent="kendo.editor.outdent|The title of the tool that outdents the content."\n outdent="Outdent"\n i18n-print="kendo.editor.print|The title of the print tool."\n print="Print"\n i18n-redo="kendo.editor.redo|The title of the tool that undos the last action."\n redo="Redo"\n i18n-selectAll="kendo.editor.selectAll|The title of the tool that selects all content."\n selectAll="Select All"\n i18n-strikethrough="kendo.editor.strikethrough|The title of the tool that strikes through text."\n strikethrough="Strikethrough"\n i18n-subscript="kendo.editor.subscript|The title of the tool that makes text subscript."\n subscript="Subscript"\n i18n-superscript="kendo.editor.superscript|The title of the tool that makes text superscript."\n superscript="Superscript"\n i18n-underline="kendo.editor.underline|The title of the tool that underlines text."\n underline="Underline"\n i18n-unlink="kendo.editor.unlink|The title of the tool that removes hyperlinks."\n unlink="Remove Link"\n i18n-undo="kendo.editor.undo|The title of the tool that undos the last action."\n undo="Undo"\n i18n-viewSource="kendo.editor.viewSource|The title of the tool that shows the editor value as HTML."\n viewSource="View source"\n i18n-insertTable="kendo.editor.insertTable|The title of the tool that inserts table."\n insertTable="Insert Table"\n i18n-addColumnBefore="kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column."\n addColumnBefore="Add column before"\n i18n-addColumnAfter="kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column."\n addColumnAfter="Add column after"\n i18n-addRowBefore="kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row."\n addRowBefore="Add row before"\n i18n-addRowAfter="kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row."\n addRowAfter="Add row after"\n i18n-deleteColumn="kendo.editor.deleteColumn|The title of the tool that deletes a table column."\n deleteColumn="Delete column"\n i18n-deleteRow="kendo.editor.deleteRow|The title of the tool that deletes a table row."\n deleteRow="Delete row"\n i18n-deleteTable="kendo.editor.deleteTable|The title of the tool that deletes a table."\n deleteTable="Delete table"\n >\n </ng-container>\n\n <ng-content select="kendo-toolbar"></ng-content>\n <kendo-toolbar [overflow]="true" [tabindex]="readonly ? -1 : 0" *ngIf="!userToolBarElement" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf="!iframe" #content [attr.dir]="direction" class="k-editor-content"></div>\n\n <div class="k-editor-content" *ngIf="iframe">\n <iframe #content srcdoc="<!DOCTYPE html>" frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ',styles:["\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "]}),n.__metadata("design:paramtypes",[s.DialogService,k.LocalizationService,i.ChangeDetectorRef,i.NgZone,i.ElementRef,x.EditorToolsService])],e)}();t.EditorComponent=O},function(e,t){e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(15),a=function(){function e(){this.needsCheck=new r.Subject}return e=n.__decorate([i.Injectable()],e)}();t.EditorToolsService=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n,i,r){var a=e.call(this,t,o,n,i,r)||this;return a.command=t,a.button=o,a.editor=n,a.localization=i,a.toolsService=r,a}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},t.prototype.pointerdownHandler=function(e){e.preventDefault()},t.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},t}(o(34).EditorCommandBase);t.EditorCommandButton=i},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(10);t.outerWidth=function(e){var t=e.offsetWidth,o=getComputedStyle(e);return t+=parseFloat(o.marginLeft)||0+parseFloat(o.marginRight)||0},t.removeEntries=function(e,t){return Object.keys(e).filter((function(e){return t(e)})).reduce((function(t,o){var n;return Object.assign(t,((n={})[o]=e[o],n))}),{})},t.removeEmptyEntries=function(e){return t.removeEntries(e,(function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]}))},t.isEmpty=function(e){return 0===Object.keys(e).length},t.isNullOrUndefined=function(e){return null==e},t.isPresent=function(e){return!t.isNullOrUndefined(e)},t.detectIE=function(){if(!n.isDocumentAvailable())return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),o=e.indexOf("Trident/");return t>0||o>0},t.safeString=function(e){return t.isNullOrUndefined(e)?"":e.toString()},t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.unique=function(e){return Array.from(new Set(e))},t.split=function(e){return function(t){return t.split(e)}},t.trim=function(e){return e.trim()},t.filter=function(e){return function(t){return t.filter(e)}},t.toArray=function(e){return e instanceof Array?e:[e]},t.getUniqueStyleValues=function(e,o){if(e.hasNodesWithoutMarks)return"";var n=e.marks.filter((function(e){return"style"===e.type.name})).map((function(e){return e.attrs.style})).map(t.safeString).map(t.split(";")).map(t.filter((function(e){return e.includes(o)}))).map((function(e){return 0!==e.length?e:[o+": INVALID"]})).map(t.first).map(t.split(":")).map(t.last).map(t.trim).reduce((function(e,t){return e.indexOf(t)>-1?e:e.concat([t])}),[]);return n.indexOf("INVALID")>-1||1!==n.length?"":n[0]},t.conditionallyExecute=function(e){return function(t){return function(o){return t?e(o):o}}},t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}}},function(e,t){e.exports=r},function(e,t){e.exports=a},function(e,t){e.exports=d},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n,i,r){var a=e.call(this,t,o,n,i,r)||this;return a.dialog=t,a.button=o,a.editor=n,a.localization=i,a.toolsService=r,a}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},t.prototype.onStateChange=function(e){this.button.selected=e[this.command].selected,this.button.disabled=e[this.command].disabled},t}(o(34).EditorCommandBase);t.EditorCommandDialog=i},function(e,t){e.exports=s},function(e,t){e.exports=c},function(e,t){e.exports=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FormatDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FontFamilyDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(13),a=function(){function e(){this.valueChange=new i.EventEmitter}return e.prototype.onValueChange=function(e){this.valueChange.emit(e)},e.prototype.focus=function(){this.dropDownList.focus()},n.__decorate([i.Input(),n.__metadata("design:type",Array)],e.prototype,"data",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],e.prototype,"defaultItem",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Function)],e.prototype,"itemDisabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],e.prototype,"title",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("element",{static:!0}),n.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),n.__metadata("design:type",r.DropDownListComponent)],e.prototype,"dropDownList",void 0),e=n.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],e)}();t.FontSizeDropDownListComponent=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(17),d=o(2),l=o(9),s=o(3),c=o(7),u=o(30),p=o(16),m=function(e){function t(t,o,n,i){var r=e.call(this)||this;return r.editor=t,r.localization=o,r.dialogService=n,r.ngZone=i,r.tabindex=-1,r.disabled=!1,r.views=["palette"],r}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.disabled=o.disabled}))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},t.prototype.handleValueChange=function(e){this.editor.exec(this.editorCommand,e),this.editor.view.focus()},t.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.handleValueChange(e.color)},t.prototype.onOpen=function(e){this.valueCache=e.value,e.reset()},t.prototype.onClose=function(e){var t=this;e.value||(e.value=this.valueCache),this.editor.shouldEmitFocus=!0,this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return t.editor.view.focus()}))},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return l.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:u.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,views:this.views})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.colorPickerButton.nativeElement.focus():this.colorPicker.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"value",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"icon",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"paletteSettings",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"editorCommand",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),n.__decorate([i.Input(),n.__metadata("design:type",Array)],t.prototype,"views",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],t.prototype,"view",null),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("colorpicker",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("colorpicker",{read:a.ColorPickerComponent,static:!1}),n.__metadata("design:type",a.ColorPickerComponent)],t.prototype,"colorPicker",void 0),n.__decorate([i.ViewChild("colorPickerButton",{read:i.ElementRef,static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"colorPickerButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]="title"\n [icon]="icon"\n [views]="views"\n [format]="\'hex\'"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[s.EditorComponent,d.EditorLocalizationService,c.DialogService,i.NgZone])],t)}(r.ToolBarToolComponent);t.EditorColorPickerComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"background",blockquote:"blockquote",bold:"bold",cleanFormatting:"clear-css",createLink:"link-horizontal",foreColor:"foreground-color",indent:"indent-increase",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"indent-decrease",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"sub-script",superscript:"sup-script",underline:"underline",undo:"undo",unlink:"unlink-horizontal",viewSource:"html",insertTable:"table-insert",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(39),i=o(8);t.Schema=i.Schema;var r=i.marks,a=Object.assign(i.nodes,n.semanticNodes);t.schema=new i.Schema({marks:r,nodes:a})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data="",n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.textarea.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},t.prototype.getData=function(){return this.textarea.nativeElement.value},t.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.indent=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$/,"")},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("textarea",{static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"textarea",void 0),t=n.__decorate([i.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.SourceDialogComponent=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(7),d=o(8),l=o(9),s=o(2),c=o(10),u=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.src=new r.FormControl("",r.Validators.required),n.alt=new r.FormControl(""),n.width=new r.FormControl("",r.Validators.min(1)),n.height=new r.FormControl("",r.Validators.min(1)),n.data={alt:"",height:"",src:"",width:""},n.imageData=new r.FormGroup({alt:n.alt,height:n.height,src:n.src,width:n.width}),n}return n.__extends(t,e),t.prototype.ngOnInit=function(){this.srcInputId="k-"+c.guid(),this.altTextInputId="k-"+c.guid(),this.widthInputId="k-"+c.guid(),this.heightInputId="k-"+c.guid()},t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.srcInput.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},t.prototype.setData=function(e){var t=d.getNodeFromSelection(e);t&&(this.src.patchValue(t.attrs.src),this.alt.patchValue(t.attrs.alt),this.width.patchValue(t.attrs.width),this.height.patchValue(t.attrs.height))},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},t.prototype.normalizeDimension=function(e){return Number.isNaN(parseInt(e,10))||parseInt(e,10)<=0?"":l.safeString(parseInt(e,10))},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("srcInput",{read:i.ElementRef,static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"srcInput",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <div class="k-edit-label">\n <label [for]="altTextInputId">{{ textFor(\'imageAltText\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <div class="k-edit-label">\n <label [for]="widthInputId">{{ textFor(\'imageWidth\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <div class="k-edit-label">\n <label [for]="heightInputId">{{ textFor(\'imageHeight\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[a.DialogRef,s.EditorLocalizationService])],t)}(a.DialogContentBase);t.ImageDialogComponent=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(12),a=o(7),d=o(8),l=o(9),s=o(2),c=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.linkForm=new r.FormGroup({href:new r.FormControl("",r.Validators.required),text:new r.FormControl({value:"",disabled:!0},r.Validators.required),title:new r.FormControl("")}),n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.hrefInput.nativeElement.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){var e=this.getData();this.editor.exec(this.command,e),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(t.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),t.prototype.setData=function(e,t){"createLink"===this.command&&this.linkForm.addControl("target",new r.FormControl);var o=d.getMark(e,e.schema.marks.link);if(o)this.linkForm.reset({href:o.attrs.href,title:o.attrs.title,target:l.isPresent(o.attrs.target),text:this.setLinkText(e)});else if(e.selection.empty){var n=t.applyToWord?d.expandSelection(e,(function(){}),t).state:e;n.selection.empty||this.linkForm.patchValue({text:d.getSelectionText(n)})}else this.linkForm.patchValue({text:d.getSelectionText(e)})},t.prototype.textForWithPrefix=function(e){var t="createLink"===this.command?"link":"file";return this.textFor(t+e)},t.prototype.textFor=function(e){return this.localization.get(e)},t.prototype.setLinkText=function(e){var t=e.selection;if(t.empty&&t.$cursor){var o=t.$cursor,n=o.index();return o.parent.child(n).text}return d.getSelectionText(e)},t.prototype.getData=function(){var e=this.linkForm.value;return l.isPresent(this.linkForm.controls.target)&&(e.target=e.target?"_blank":null),e},n.__decorate([i.Input(),n.__metadata("design:type",Object)],t.prototype,"editor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"command",void 0),n.__decorate([i.ViewChild("hrefInput",{read:i.ElementRef,static:!0}),n.__metadata("design:type",i.ElementRef)],t.prototype,"hrefInput",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="textInput.focus()">{{ textForWithPrefix(\'Text\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="titleInput.focus()">{{ textForWithPrefix(\'Title\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <ng-container *ngIf="command === \'createLink\'">\n <div class="k-edit-label"></div>\n <div class="k-edit-field">\n <input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[a.DialogRef,s.EditorLocalizationService])],t)}(a.DialogContentBase);t.FileLinkDialogComponent=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(e){return"plugins must be a function, but received "+JSON.stringify(e)+"."},pastedContentCallbackType:function(e){return"pastedContent must be a function, but received "+JSON.stringify(e)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See https://www.telerik.com/kendo-angular-ui/components/editor/plugins/#toc-custom-plugins/",printTool:"The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=function(e){function t(t,o,n){var i=e.call(this)||this;return i.cleanedHtml=t,i.originalHtml=o,i.originalEvent=n,i}return n.__extends(t,e),t}(o(10).PreventableEvent);t.EditorPasteEvent=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(18),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.formatDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("formatDropDownList",{read:l.FormatDropDownListComponent,static:!0}),n.__metadata("design:type",l.FormatDropDownListComponent)],t.prototype,"formatDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FormatDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(17),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.colorPicker.focus()}))},t.prototype.handleActiveColorClick=function(e){e.preventOpen(),this.value=e.color},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close(),this.editor.view.focus()},t.prototype.setData=function(e){this.editor=e.editor,this.value=e.value,this.editorCommand=e.editorCommand,this.paletteSettings=e.paletteSettings,this.icon=e.icon,this.views=e.view?[e.view]:e.views},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("colorpicker",{read:l.ColorPickerComponent,static:!0}),n.__metadata("design:type",l.ColorPickerComponent)],t.prototype,"colorPicker",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [views]="views"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.ColorPickerDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(19),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.fontFamilyDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("fontFamilyDropDownList",{read:l.FontFamilyDropDownListComponent,static:!0}),n.__metadata("design:type",l.FontFamilyDropDownListComponent)],t.prototype,"fontFamilyDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FontFamilyDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n}return n.__extends(t,e),t.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},t.prototype.onCellClick=function(e){this.dialog.close(),this.editor.exec("insertTable",e),this.editor.view.focus()},t.prototype.setData=function(e){this.editor=e.editor},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.InsertTableDialogComponent=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(7),a=o(2),d=o(3),l=o(20),s=function(e){function t(t,o){var n=e.call(this,t)||this;return n.dialog=t,n.localization=o,n.data=[],n}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(null).then((function(){e.fontSizeDropDownList.dropDownList.focus()}))},t.prototype.onCancelAction=function(){this.dialog.close()},t.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},t.prototype.setData=function(e){this.editor=e.editor,this.data=e.data,this.defaultItem=e.defaultItem,this.value=e.value,this.itemDisabled=e.itemDisabled},t.prototype.textFor=function(e){return this.localization.get(e)},n.__decorate([i.Input(),n.__metadata("design:type",d.EditorComponent)],t.prototype,"editor",void 0),n.__decorate([i.ViewChild("fontSizeDropDownList",{read:l.FontSizeDropDownListComponent,static:!0}),n.__metadata("design:type",l.FontSizeDropDownListComponent)],t.prototype,"fontSizeDropDownList",void 0),t=n.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),n.__metadata("design:paramtypes",[r.DialogRef,a.EditorLocalizationService])],t)}(r.DialogContentBase);t.FontSizeDialogComponent=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(22),i=function(){function e(e,t,o,i,r){var a=this;this.command=e,this.button=t,this.editor=o,this.localization=i,this.toolsService=r,setTimeout((function(){var e=a.localization.get(a.command);e&&(a.button.showText="overflow",a.button.showIcon="both",a.button.text=e),a.button.toolbarOptions.icon||(a.button.icon=n.commandIcons[a.command]),a.button.title=e,a.toolsService.needsCheck.next()}))}return e.prototype.ngOnInit=function(){this.subs=this.editor.stateChange.subscribe(this.onStateChange.bind(this)),this.subs.add(this.button.click.subscribe(this.clickHandler.bind(this))),this.subs.add(this.button.pointerdown.subscribe(this.pointerdownHandler.bind(this)))},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},e.prototype.clickHandler=function(){},e.prototype.pointerdownHandler=function(e){},e.prototype.onStateChange=function(e){},e}();t.EditorCommandBase=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignCenter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignJustify",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignLeft",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"alignRight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"backColor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"blockquote",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"bold",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"cleanFormatting",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"createLink",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fontFamily",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fontSize",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"foreColor",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"format",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"indent",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertFile",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertImage",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertOrderedList",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertUnorderedList",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"italic",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"outdent",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"print",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"redo",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"selectAll",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"strikethrough",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"subscript",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"superscript",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"underline",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"undo",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"unlink",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"viewSource",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"insertTable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addColumnBefore",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addColumnAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addRowBefore",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"addRowAfter",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteColumn",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteRow",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"deleteTable",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogApply",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogCancel",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogInsert",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"dialogUpdate",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"fileWebAddress",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageAltText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageHeight",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageWebAddress",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"imageWidth",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkOpenInNewWindow",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkText",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkTitle",void 0),n.__decorate([i.Input(),n.__metadata("design:type",String)],t.prototype,"linkWebAddress",void 0),t}(o(11).ComponentMessages);t.Messages=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(3);t.EditorComponent=n.EditorComponent;var i=o(45);t.EditorModule=i.EditorModule;var r=o(23);t.schema=r.schema,t.Schema=r.Schema;var a=o(8);t.EditorState=a.EditorState,t.Plugin=a.Plugin,t.PluginKey=a.PluginKey,t.Transaction=a.Transaction,t.EditorView=a.EditorView,t.Decoration=a.Decoration,t.DecorationSet=a.DecorationSet,t.NodeType=a.NodeType,t.Node=a.Node,t.MarkType=a.MarkType,t.Mark=a.Mark,t.InputRule=a.InputRule,t.inputRules=a.inputRules,t.wrappingInputRule=a.wrappingInputRule,t.textblockTypeInputRule=a.textblockTypeInputRule,t.keymap=a.keymap,t.baseKeymap=a.baseKeymap,t.history=a.history,t.dropCursor=a.dropCursor,t.gapCursor=a.gapCursor,t.tableNodes=a.tableNodes,t.getSelectionText=a.getSelectionText;var d=o(28);t.EditorPasteEvent=d.EditorPasteEvent},function(e,t){e.exports=p},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1645723493,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(40);t.semanticTagNames=["article","main","nav","header","footer","aside","section"],t.semanticNodes=t.semanticTagNames.reduce((function(e,t){var o,r;return Object.assign(e,((o={})[t]=(r=t,{content:"block*",group:"block",attrs:n.__assign({},i.commonAttributes()),parseDOM:[{tag:r,getAttrs:i.getAttributes}],toDOM:function(e){return i.hasAttrs(e.attrs)?[r,i.getAttrs(e.attrs),i.hole]:[r,i.hole]}}),o))}),{})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0);t.hasAttrs=function(e,t){for(var o in e)if(o&&null!==e[o]&&o!==t)return!0;return!1},t.getAttrs=function(e,t){var o={};for(var n in e)n&&null!==e[n]&&n!==t&&(o[n]=e[n]);return o},t.getAttributes=function(e){for(var t,o={},n=e.attributes,i=0;i<n.length;i++)o[(t=n[i]).name]=t.value;return o},t.serializeDOMAttrs=function(e){return Array.from(e.attributes).reduce((function(e,t){var o;return Object.assign({},e,((o={})[t.name]=t.value,o))}),{})},t.commonAttributes=function(){return n.__assign({},t.createDefaultAttributes(["class","id","style"]))},t.createDefaultAttributes=function(e){return void 0===e&&(e=[]),n.__assign({},e.reduce((function(e,t){var o;return n.__assign({},e,((o={})[t]={default:null},o))}),{}))},t.hole=0,t.isSchemaNode=function(e){return function(t){return t.type.name===e}},t.isTable=t.isSchemaNode("table"),t.isTableBody=t.isSchemaNode("table_body"),t.isTableHead=t.isSchemaNode("table_head"),t.isTableFoot=t.isSchemaNode("table_foot"),t.isTableRow=t.isSchemaNode("table_row"),t.isTableCell=t.isSchemaNode("table_cell"),t.isTableHeaderCell=t.isSchemaNode("table_header")},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(8),r=o(42),a=function(e,t){return i.alignBlocks(i.alignRemoveRules)(e,t)},d={bold:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.bold,{applyToWord:e}))},cleanFormatting:function(e){return i.cleanFormatting(e)},createLink:function(e){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:e.value,applyToWord:e.applyToWord})},fontFamily:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-family",value:e.value,applyToWord:e.applyToWord})},fontSize:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-size",value:e.value+"px",applyToWord:e.applyToWord})},insertFile:function(e){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:e,applyToWord:e.applyToWord})},insertText:function(e){return i.insertText(e)},italic:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.italic,{applyToWord:e}))},strikethrough:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.strikethrough,{applyToWord:e}))},subscript:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.subscript,{applyToWord:e}))},superscript:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.superscript,{applyToWord:e}))},underline:function(e){return i.expandToWordWrap(i.toggleInlineFormat,n.__assign({},i.underline,{applyToWord:e}))},unlink:function(){return i.removeLink(i.link)},foreColor:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"color",value:e.value,applyToWord:e.applyToWord})},backColor:function(e){return i.expandToWordWrap(i.applyInlineStyle,{style:"background-color",value:e.value,applyToWord:e.applyToWord})},selectAll:function(){return function(e,t){return i.selectAll(e,t)}}},l={alignCenter:function(){return function(e,t){return i.isAligned(e,i.alignCenterRules)?a(e,t):i.alignBlocks(i.alignCenterRules)(e,t)}},alignJustify:function(){return function(e,t){return i.isAligned(e,i.alignJustifyRules)?a(e,t):i.alignBlocks(i.alignJustifyRules)(e,t)}},alignLeft:function(){return function(e,t){return i.isAligned(e,i.alignLeftRules)?a(e,t):i.alignBlocks(i.alignLeftRules)(e,t)}},alignRight:function(){return function(e,t){return i.isAligned(e,i.alignRightRules)?a(e,t):i.alignBlocks(i.alignRightRules)(e,t)}},format:function(e){return i.formatBlockElements(e.tag)},getHTML:function(){return i.getHtml},indent:function(){return i.indent},insertImage:function(e){return i.insertImage(e)},insertOrderedList:function(){return i.toggleOrderedList},insertUnorderedList:function(){return i.toggleUnorderedList},outdent:function(){return i.outdent},redo:function(){return i.redo},setHTML:function(e){var t=e.content,o=e.parseOptions;return i.setHtml(t,"setHTML",o)},undo:function(){return i.undo},blockquote:function(){return i.blockquote}},s={insertTable:function(e){return r.insertTable(e)},addColumnBefore:function(){return i.addColumnBefore},addColumnAfter:function(){return i.addColumnAfter},addRowBefore:function(){return i.addRowBefore},addRowAfter:function(){return i.addRowAfter},deleteRow:function(){return i.deleteRow},deleteColumn:function(){return i.deleteColumn},mergeCells:function(){return i.mergeCells},splitCell:function(){return i.splitCell},deleteTable:function(){return i.deleteTable}};t.editorCommands=Object.assign({},d,l,s)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8);t.insertTable=function(e){return function(t,o){var i=n.createTable(t.schema.nodes,e.rows,e.cols);i&&n.insertNode(i,!0)(t,o)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(8),i=o(8);t.getToolbarState=function(e,t){return{alignCenter:{selected:i.isAligned(e,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(e,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(e,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(e,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(e,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!n.cleanFormatting()(e)},format:{selected:i.activeNode(e),disabled:!1},blockquote:{selected:!1,disabled:!n.blockquote(e)},indent:{selected:!1,disabled:!(i.canIndentAsListItem(e,e.schema.nodes.list_item)||i.canBeIndented(e,i.indentRules))},insertOrderedList:{selected:i.hasNode(e,e.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:i.hasNode(e,e.schema.nodes.bullet_list),disabled:!1},italic:{selected:i.hasMark(e,i.italic),disabled:!1},unlink:{selected:!1,disabled:!i.hasMark(e,i.link)},outdent:{selected:!1,get disabled(){return!(i.hasNode(e,e.schema.nodes.blockquote)||i.canOutdentAsListItem(e,i.outdentRules)||n.isIndented(e,i.outdentRules.nodes))}},redo:{selected:!1,disabled:!i.redo(e)},selectAll:{selected:!1,disabled:!1},strikethrough:{selected:i.hasMark(e,i.strikethrough),disabled:!1},style:{selected:i.getActiveMarks(e,e.schema.marks.style),disabled:!1},subscript:{selected:i.hasMark(e,i.subscript),disabled:!1},superscript:{selected:i.hasMark(e,i.superscript),disabled:!1},underline:{selected:i.hasMark(e,i.underline),disabled:!1},undo:{selected:!1,disabled:!i.undo(e)},createLink:{selected:!1,get disabled(){var o=e.selection.empty;return t&&t.applyToWord&&o?i.expandSelection(e,(function(){}),t).state.selection.empty:o}},insertFile:{selected:!1,disabled:e.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},print:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!i.addColumnBefore(e)},addColumnAfter:{selected:!1,disabled:!i.addColumnAfter(e)},addRowBefore:{selected:!1,disabled:!i.addRowBefore(e)},addRowAfter:{selected:!1,disabled:!i.addRowAfter(e)},deleteRow:{selected:!1,disabled:!i.deleteRow(e)},deleteColumn:{selected:!1,disabled:!i.deleteColumn(e)},mergeCells:{selected:!1,disabled:!i.mergeCells(e)},splitCell:{selected:!1,disabled:!i.splitCell(e)},deleteTable:{selected:!1,disabled:!i.deleteTable(e)}}},t.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!1},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},t.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultStyle='\n html, body {\n margin: 0;\n height: 100%;\n padding: 0;\n }\n\n html {\n min-height: 100%;\n }\n\n body {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n }\n\n body > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n }\n\n div.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n }\n\n .ProseMirror pre {\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 .ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .ProseMirror li {\n position: relative;\n }\n\n li.ProseMirror-selectednode {\n outline: none;\n }\n\n li.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n }\n',t.tablesStyles='\n.ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n}\n\n.ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n}\n\n.ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n}\n\n.ProseMirror th {\n font-weight: bold;\n text-align: left;\n}\n\n.ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n\n/* Give selected cells a blue overlay */\n.ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n}\n',t.rtlStyles="body { direction: rtl }"},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(46),a=o(12),d=o(4),l=o(13),s=o(7),c=o(47),u=o(17),p=o(3),m=o(25),f=o(24),g=o(26),h=o(29),_=o(30),b=o(31),v=o(32),y=o(48),k=o(49),C=o(50),w=o(21),E=o(51),x=o(53),T=o(54),D=o(55),S=o(56),B=o(57),I=o(58),O=o(59),L=o(60),P=o(61),z=o(62),A=o(63),F=o(64),M=o(65),R=o(66),j=o(67),W=o(68),H=o(69),V=o(70),N=o(71),q=o(72),U=o(73),K=o(74),J=o(75),G=o(76),$=o(77),Z=o(78),X=o(79),Q=o(80),Y=o(81),ee=o(82),te=o(83),oe=o(84),ne=o(85),ie=o(86),re=o(87),ae=o(88),de=o(89),le=o(18),se=o(19),ce=o(20),ue=o(33),pe=o(90),me=o(91),fe=o(92),ge=[T.EditorAlignLeftButtonDirective,D.EditorAlignCenterButtonDirective,S.EditorAlignRightButtonDirective,B.EditorAlignJustifyButtonDirective,J.EditorInsertFileButtonDirective,O.EditorRedoButtonDirective,L.EditorUndoButtonDirective,P.EditorInsertImageButtonDirective,z.EditorIndentButtonDirective,A.EditorOutdentButtonDirective,F.EditorCreateLinkButtonDirective,M.EditorUnlinkButtonDirective,R.EditorInsertOrderedListButtonDirective,j.EditorInsertUnorderedListButtonDirective,W.EditorViewSourceButtonDirective,H.EditorBoldButtonDirective,V.EditorItalicButtonDirective,N.EditorUnderlineButtonDirective,q.EditorStrikethroughButtonDirective,U.EditorSubscriptButtonDirective,K.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,$.EditorBackColorDirective,Z.EditorCleanFormattingButtonDirective,X.EditorAddColumnBeforeButtonDirective,Q.EditorAddColumnAfterButtonDirective,Y.EditorAddRowBeforeButtonDirective,ee.EditorAddRowAfterButtonDirective,te.EditorDeleteColumnButtonDirective,oe.EditorDeleteRowButtonDirective,ne.EditorDeleteTableButtonDirective,ie.EditorMergeCellsButtonDirective,re.EditorSplitCellButtonDirective,de.CustomMessagesComponent,ae.LocalizedMessagesDirective,pe.DropDownToolDirective,me.EditorPrintDirective,fe.EditorSelectAllButtonDirective,I.EditorBlockquoteDirective],he=[k.EditorFontSizeComponent,C.EditorFontFamilyComponent,y.EditorFormatComponent,w.EditorColorPickerComponent,E.EditorInsertTableButtonComponent],_e=[g.FileLinkDialogComponent,m.ImageDialogComponent,f.SourceDialogComponent,h.FormatDialogComponent,_.ColorPickerDialogComponent,b.FontFamilyDialogComponent,ue.FontSizeDialogComponent,v.InsertTableDialogComponent],be=[x.PopupTableGridComponent,le.FormatDropDownListComponent,se.FontFamilyDropDownListComponent,ce.FontSizeDropDownListComponent],ve=function(){function e(){}return e=n.__decorate([i.NgModule({declarations:[p.EditorComponent,ge,he,_e,be],entryComponents:[_e],exports:[p.EditorComponent,ge,he,d.ToolBarModule,c.ButtonModule,a.FormsModule,a.ReactiveFormsModule,be],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.ButtonModule,u.ColorPickerModule,s.DialogModule,l.DropDownsModule,u.NumericTextBoxModule,u.CheckBoxModule,d.ToolBarModule,u.TextBoxModule]})],e)}();t.EditorModule=ve},function(e,t){e.exports=m},function(e,t){e.exports=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(7),d=o(9),l=o(3),s=o(2),c=o(29),u=o(18),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._data=[{text:"Paragraph",tag:"p"},{text:"Heading 1",tag:"h1"},{text:"Heading 2",tag:"h2"},{text:"Heading 3",tag:"h3"},{text:"Heading 4",tag:"h4"},{text:"Heading 5",tag:"h5"},{text:"Heading 6",tag:"h6"}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.formatDropDownList||e.formatDropDownList.dropDownList.isOpen)||null===t.dataItem.tag},setTimeout((function(){e.defaultItem={text:e.title,tag:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.format,n=e.data.findIndex((function(e){return e.tag===o.selected.tag}));e.value=-1!==n?o.selected.tag:null,e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){d.isPresent(e)&&(this.editor.exec("format",{tag:e}),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.tag===e}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){var e=this.formatDropDownList.element;if(e)return d.outerWidth(e.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.formatButton.nativeElement.focus():this.formatDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("formatDropDownList",{static:!1}),n.__metadata("design:type",u.FormatDropDownListComponent)],t.prototype,"formatDropDownList",void 0),n.__decorate([i.ViewChild("formatButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"formatButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[l.EditorComponent,a.DialogService,s.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFormatComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(9),d=o(3),l=o(2),s=o(7),c=o(33),u=o(20),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._data=[{text:"8px",size:8},{text:"10px",size:10},{text:"12px",size:12},{text:"14px",size:14},{text:"18px",size:18},{text:"24px",size:24},{text:"36px",size:36}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontSizeDropDownList||e.fontSizeDropDownList.dropDownList.isOpen)||null===t.dataItem.size},setTimeout((function(){e.defaultItem={text:e.title,size:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.value=(a.getUniqueStyleValues(o.selected,"font-size").match(/\d+/g)||[null])[0],e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){a.isPresent(e)&&(this.editor.exec("fontSize",e),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.size===parseInt(e,10)}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return a.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontSizeButton.nativeElement.focus():this.fontSizeDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:u.FontSizeDropDownListComponent,static:!1}),n.__metadata("design:type",u.FontSizeDropDownListComponent)],t.prototype,"fontSizeDropDownList",void 0),n.__decorate([i.ViewChild("fontSizeButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"fontSizeButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[d.EditorComponent,s.DialogService,l.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFontSizeComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(9),d=o(3),l=o(2),s=o(7),c=o(31),u=o(19),p=o(5),m=function(e){function t(t,o,n,r){var a=e.call(this)||this;return a.editor=t,a.dialogService=o,a.localization=n,a.toolsService=r,a.disabled=!1,a.tabindex=-1,a.valueChange=new i.EventEmitter,a._data=[{text:"Arial",fontName:'Arial,"Helvetica Neue",Helvetica,sans-serif'},{text:"Courier New",fontName:'"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace'},{text:"Georgia",fontName:'Georgia,Times,"Times New Roman",serif'},{fontName:'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',text:"Impact"},{text:"Lucida Console",fontName:'"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace'},{text:"Tahoma",fontName:"Tahoma,Verdana,Segoe,sans-serif"},{text:"Times New Roman",fontName:'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif'},{text:"Trebuchet MS",fontName:'"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif'},{text:"Verdana",fontName:"Verdana,Geneva,sans-serif"}],a}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e||this._data},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;this.itemDisabled=function(t){return!(e.overflows||!e.fontFamilyDropDownList||e.fontFamilyDropDownList.dropDownList.isOpen)||null===t.dataItem.fontName},setTimeout((function(){e.defaultItem={text:e.title,fontName:null},e.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(t){var o=t.style;e.value=a.getUniqueStyleValues(o.selected,"font-family")||null,e.disabled=o.disabled}))},t.prototype.onValueChange=function(e){a.isPresent(e)&&(this.editor.exec("fontFamily",e),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(t){return t.fontName===e}))))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return a.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:c.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontFamilyButton.nativeElement.focus():this.fontFamilyDropDownList.focus()},t.prototype.handleKey=function(){return this.tabindex=-1,!1},n.__decorate([i.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],t.prototype,"data",null),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("element",{read:u.FontFamilyDropDownListComponent,static:!1}),n.__metadata("design:type",u.FontFamilyDropDownListComponent)],t.prototype,"fontFamilyDropDownList",void 0),n.__decorate([i.ViewChild("fontFamilyButton",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"fontFamilyButton",void 0),t=o=n.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[d.EditorComponent,s.DialogService,l.EditorLocalizationService,p.EditorToolsService])],t)}(r.ToolBarToolComponent);t.EditorFontFamilyComponent=m},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(15),a=o(16),d=o(4),l=o(52),s=o(9),c=o(3),u=o(2),p=o(7),m=o(32),f=o(10),g=function(e){function t(t,o,n,d){var l=e.call(this)||this;return l.editor=t,l.localization=o,l.popupService=n,l.dialogService=d,l.open=!1,l.buttonBlurred=new i.EventEmitter,l.cellClicked=new i.EventEmitter,l.subs=l.editor.stateChange.subscribe((function(e){var t=e.insertTable;l.disabled=t.disabled})),l.subs.add(l.buttonBlurred.pipe(a.concatMap((function(){return r.interval(200).pipe(a.take(1),a.takeUntil(l.cellClicked))}))).subscribe((function(){l.toggle(!1)}))),l}var o;return n.__extends(t,e),o=t,t.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(t.prototype,"outerWidth",{get:function(){if(this.element)return s.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),t.prototype.toggle=function(e){this.open=void 0===e?!this.open:e,this.destroyPopup(),this.open&&this.createPopup()},t.prototype.openDialog=function(){var e={appendTo:this.editor.dialogContainer,content:m.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(e).content.instance.setData({editor:this.editor})},t.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},t.prototype.onCellClick=function(e){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",e)},t.prototype.canFocus=function(){return!this.disabled},t.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},t.prototype.handleKey=function(e){return e.keyCode===f.Keys.Space||e.keyCode===f.Keys.Enter||(this.tabIndex=-1,!1)},t.prototype.onTableWizardClick=function(){},t.prototype.createPopup=function(){var e="rtl"===this.editor.direction?"right":"left",t={horizontal:e,vertical:"bottom"},o={horizontal:e,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:t,animate:!0,content:this.popupGridTemplate,popupAlign:o,popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});var n=this.popupRef.popupElement;n.style.width="190px",n.style.height="164px",n.setAttribute("dir",this.editor.direction)},t.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},t.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},n.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"toolbarTemplate",void 0),n.__decorate([i.ViewChild("popupTemplate",{static:!1}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupTemplate",void 0),n.__decorate([i.ViewChild("element",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),n.__decorate([i.ViewChild("overflowElement",{static:!1}),n.__metadata("design:type",i.ElementRef)],t.prototype,"overflowElement",void 0),n.__decorate([i.ViewChild("popupGridTemplate",{static:!0}),n.__metadata("design:type",i.TemplateRef)],t.prototype,"popupGridTemplate",void 0),t=o=n.__decorate([i.Component({providers:[{provide:d.ToolBarToolComponent,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="toggle()"\n (blur)="onBlur()"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="openDialog()">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>\n </ng-template>\n '}),n.__param(0,i.Host()),n.__metadata("design:paramtypes",[c.EditorComponent,u.EditorLocalizationService,l.PopupService,p.DialogService])],t)}(d.ToolBarToolComponent);t.EditorInsertTableButtonComponent=g},function(e,t){e.exports=g},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}return Object.defineProperty(e.prototype,"message",{get:function(){var e=this.state,t=e.rows,o=e.cols;return"Create a "+(t>-1?t+1:"")+" "+(o>-1?"x":"")+" "+(o>-1?o+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),e.prototype.selected=function(e){var t=this.state,o=t.rows,n=t.cols,i=Math.floor(e/this.cols),r=e%this.cols;return i<=o&&r<=n},e.prototype.setState=function(e){var t=Math.floor(e/this.cols),o=e%this.cols;this.state={rows:t,cols:o}},e.prototype.resetState=function(){this.state={rows:-1,cols:-1}},e.prototype.insertTable=function(){this.cellClick.emit(this.state)},e.prototype.openTableWizard=function(){this.tableWizardClick.emit()},n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"cellClick",void 0),n.__decorate([i.Output(),n.__metadata("design:type",i.EventEmitter)],e.prototype,"tableWizardClick",void 0),e=n.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],e)}();t.PopupTableGridComponent=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignLeft",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignLeftButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignCenter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignCenterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignRight",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignRightButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"alignJustify",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAlignJustifyButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){var r=e.call(this,"blockquote",t,o,n,i)||this;return r.editor=o,r}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBlockquoteButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorBlockquoteDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"redo",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorRedoButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"undo",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUndoButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertImage",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorInsertImageButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"indent",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorIndentButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"outdent",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorOutdentButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"createLink",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorCreateLinkButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"unlink",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUnlinkButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertOrderedList",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorInsertOrderedListButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertUnorderedList",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorInsertUnorderedListButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(14),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"viewSource",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandDialog);t.EditorViewSourceButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"bold",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorBoldButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"italic",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorItalicButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"underline",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorUnderlineButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"strikethrough",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorStrikethroughButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"subscript",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSubscriptButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"superscript",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSuperscriptButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(3),a=o(14),d=o(4),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"insertFile",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[d.ToolBarButtonComponent,r.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(a.EditorCommandDialog);t.EditorInsertFileButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(21),a=o(22),d=function(){function e(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}return e=n.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],e)}();t.EditorForeColorDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(21),a=o(22),d=function(){function e(e){this.colorPicker=e,this.colorPicker.icon=a.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}return e=n.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),n.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],e)}();t.EditorBackColorDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"cleanFormatting",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorCleanFormattingButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addColumnBefore",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddColumnBeforeButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addColumnAfter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddColumnAfterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addRowBefore",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddRowBeforeButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"addRowAfter",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorAddRowAfterButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteColumn",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteColumnButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteRow",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteRowButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"deleteTable",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorDeleteTableButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"mergeCells",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorMergeCellsButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"splitCell",t,o,n,i)||this}return n.__extends(t,e),t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSplitCellButtonDirective=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=o(35),d=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,t=o=n.__decorate([i.Directive({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return o}))}],selector:"[kendoEditorLocalizedMessages]"}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.LocalizedMessagesDirective=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(11),a=o(35),d=function(e){function t(t){var o=e.call(this)||this;return o.service=t,o}var o;return n.__extends(t,e),o=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=o=n.__decorate([i.Component({providers:[{provide:a.Messages,useExisting:i.forwardRef((function(){return o}))}],selector:"kendo-editor-messages",template:""}),n.__metadata("design:paramtypes",[r.LocalizationService])],t)}(a.Messages);t.CustomMessagesComponent=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=function(){function e(e,t){this.hostEl=e,this.zone=t,this.preventDefault=function(e){e.preventDefault()}}return Object.defineProperty(e.prototype,"hostElement",{get:function(){return this.hostEl.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.zone.runOutsideAngular((function(){e.hostElement.addEventListener("pointerdown",e.preventDefault)}))},e.prototype.ngOnDestroy=function(){this.hostElement.removeEventListener("pointerdown",this.preventDefault)},e=n.__decorate([i.Directive({selector:"[kendoEditorDropDownTool]"}),n.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],e)}();t.DropDownToolDirective=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(27),c=o(5),u=function(e){function t(t,o,n,i){var r=e.call(this,"print",t,o,n,i)||this;return r.editor=o,r}return n.__extends(t,e),t.prototype.ngAfterViewInit=function(){if(i.isDevMode&&!this.editor.iframe)throw new Error(s.EditorErrorMessages.printTool)},t.prototype.clickHandler=function(){if(this.editor.iframe){var e=this.editor.view,t=e&&e.dom,o=t&&t.ownerDocument,n=o&&o.defaultView;n&&n.print()}},t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,c.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorPrintDirective=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),i=o(1),r=o(4),a=o(3),d=o(6),l=o(2),s=o(5),c=function(e){function t(t,o,n,i){return e.call(this,"selectAll",t,o,n,i)||this}return n.__extends(t,e),t.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,e.prototype.clickHandler.call(this)},t=n.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),n.__param(1,i.Host()),n.__metadata("design:paramtypes",[r.ToolBarButtonComponent,a.EditorComponent,l.EditorLocalizationService,s.EditorToolsService])],t)}(d.EditorCommandButton);t.EditorSelectAllButtonDirective=c}])}));
5
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,,,,],e):"object"==typeof exports?exports.KendoAngularEditor=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-toolbar"),require("@progress/kendo-angular-dialog"),require("@progress/kendo-editor-common"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@angular/forms"),require("@progress/kendo-angular-dropdowns"),require("rxjs"),require("@progress/kendo-angular-inputs"),require("@progress/kendo-licensing"),require("@angular/common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-angular-popup")):t.KendoAngularEditor=e(t.self,t.ng.core,t.KendoAngularToolbar,t.KendoAngularDialog,t.KendoEditorCommon,t.KendoAngularCommon,t.KendoAngularL10N,t.ng.forms,t.KendoAngularDropdowns,t.rxjs,t.KendoAngularInputs,t.KendoLicensing,t.ng.common,t.KendoAngularButtons,t.KendoAngularPopup)}(window,(function(t,e,n,o,i,r,s,a,u,c,l,d,p,h,f){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=36)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(11),s=function(t){function e(e,n,o){return t.call(this,e,n,o)||this}return o.__extends(e,t),e=o.__decorate([o.__param(0,i.Inject(r.L10N_PREFIX)),o.__param(1,i.Optional()),o.__param(2,i.Optional()),o.__param(2,i.Inject(r.RTL)),o.__metadata("design:paramtypes",[String,r.MessageService,Boolean])],e)}(r.LocalizationService);e.EditorLocalizationService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(12),s=n(15),a=n(22),u=n(4),c=n(7),l=n(10),d=n(8),p=n(37),h=n(38),f=n(23),m=n(41),b=n(43),v=n(9),_=n(24),y=n(25),g=n(26),w=n(11),x=n(2),k=n(44),C=n(27),S=n(5),E=n(28),T={convertMsLists:!1,removeAttributes:[],removeHtmlComments:!1,removeInvalidHTML:!0,removeMsClasses:!1,removeMsStyles:!1,stripTags:[]},I=v.conditionallyExecute(d.removeComments),D=v.conditionallyExecute(d.sanitize),B=function(t){if("all"===t.removeAttributes)return{"*":d.removeAttribute};var e=v.removeEmptyEntries({style:t.removeMsStyles?d.sanitizeStyleAttr:void 0,class:t.removeMsClasses?d.sanitizeClassAttr:void 0});return t.removeAttributes.reduce((function(t,e){var n;return o.__assign({},t,((n={})[e]=d.removeAttribute,n))}),e)},O=function(){function t(t,e,n,r,a,u){var c=this;this.dialogService=t,this.localization=e,this.cdr=n,this.ngZone=r,this.element=a,this.toolsService=u,this.iframe=!0,this.applyToWord=!1,this.preserveWhitespace=!1,this.resizable=!1,this.valueChange=new i.EventEmitter,this.onFocus=new i.EventEmitter,this.paste=new i.EventEmitter,this.onBlur=new i.EventEmitter,this.hostClass=!0,this.stateChange=new s.BehaviorSubject(b.initialToolBarState),this.valueModified=new s.Subject,this._readonly=!1,this._placeholder="",this.inForm=!1,this.afterViewInit=new s.Subject,this.contentAreaLoaded=new s.Subject,this.dispatchTransaction=function(t){var e=t.docChanged;if(!(c.disabled||c.readonly&&e)){if(e){var n=t.doc,o=d.getHtml({doc:n});c.trOnChange=t,c.htmlOnChange=o,c.ngZone.run((function(){c.valueModified.next(o)}))}e&&!c.inForm||c.view.updateState(c.view.state.apply(t))}},this.transformPastedHTML=function(t){var e=o.__assign({},T,c.pasteCleanupSettings),n=v.pipe(D(e.removeInvalidHTML),I(e.removeHtmlComments))(t),i=d.pasteCleanup(n,{convertMsLists:e.convertMsLists,stripTags:e.stripTags.join("|"),attributes:B(e)});if(l.hasObservers(c.paste)){var r=new E.EditorPasteEvent(i,t,c._pasteEvent);return c.ngZone.run((function(){return c.paste.emit(r)})),r.isDefaultPrevented()?"":r.cleanedHtml}return i},this.changeValue=function(t){var e=c._value;if(c._value=t,c._view){if(c.htmlOnChange===t&&c.trOnChange)c.view.updateState(c.view.state.apply(c.trOnChange));else if((e||"")!==(t||"")){if(c.iframe&&!c.container.element.nativeElement.contentWindow)return;var n=c.view.state,o=d.parseContent(t||"",n.schema,{preserveWhitespace:c.preserveWhitespace}),i=n.tr.setSelection(new d.AllSelection(n.doc)).replaceSelectionWith(o);c.view.updateState(n.apply(i))}c.trOnChange=null,c.htmlOnChange=null}},this.onChangeCallback=function(t){c.changeValue(t)},this.onTouchedCallback=function(t){},this.onPaste=function(t,e){return c._pasteEvent=e,!1},p.validatePackage(h.packageMetadata),this.direction=e.rtl?"rtl":"ltr",this.subs=s.zip(this.afterViewInit.asObservable(),this.contentAreaLoaded.asObservable()).subscribe((function(){return c.initialize()}))}var e;return e=t,Object.defineProperty(t.prototype,"value",{get:function(){if(this.trOnChange)return this.htmlOnChange;var t=this._view?this.getSource():this._value;return"<p></p>"===t?this._value?"":this._value:t},set:function(t){this.changeValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t||!1,this._view&&this._view.updateState(this._view.state),this._disabled&&(this.readonly=!1),this._disabled||this._readonly?this.stateChange.next(b.disabledToolBarState):this.stateChange.next(b.initialToolBarState)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readonly",{get:function(){return this._readonly},set:function(t){if(this._readonly=t||!1,this._view){var e=void 0,n=(e=this.iframe?this.container.element.nativeElement.contentWindow:window).getSelection().focusNode;this._view.dom.contains(n)&&e.getSelection().removeAllRanges();var o=this._view.state.doc,i=this._view.state.tr.setSelection(d.TextSelection.create(o,1));this._view.dispatch(i)}this._readonly?(this.toolbar&&(this.toolbar.tabindex=-1),this.stateChange.next(b.disabledToolBarState)):(this.toolbar&&(this.toolbar.tabindex=0),this.stateChange.next(b.initialToolBarState))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return this._schema},set:function(t){if(i.isDevMode){if(!(t instanceof d.Schema))throw new Error(C.EditorErrorMessages.schemaType);if(this._view)throw new Error(C.EditorErrorMessages.setSchemaOnce)}this._schema=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"plugins",{get:function(){return this._plugins},set:function(t){if(i.isDevMode){if("function"!=typeof t)throw new Error(C.EditorErrorMessages.pluginsCallbackType(t));if(this._view)throw new Error(C.EditorErrorMessages.setPluginsOnce)}this._plugins=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){if(i.isDevMode&&this._view)throw new Error(C.EditorErrorMessages.setPlaceHolderOnce);this._placeholder=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resizableClass",{get:function(){return!!this.resizable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isIE",{get:function(){return this.iframe&&v.detectIE()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ariaDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){var t=this.resizable;return t.minWidth?t.minWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){var t=this.resizable;return t.maxWidth?t.maxWidth+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){var t=this.resizable;return t.minHeight?t.minHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxHeight",{get:function(){var t=this.resizable;return t.maxHeight?t.maxHeight+"px":void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toolbar",{get:function(){return this.defaultToolbarComponent||this.userToolBarComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"view",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){return this._view&&this._view.state?d.getSelectionText(this._view.state):""},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"}))),this.subs.add(this.toolsService.needsCheck.subscribe((function(){return t.cdr.markForCheck()})))},t.prototype.ngAfterViewInit=function(){this.afterViewInit.next(),this.iframe||this.contentAreaLoaded.next(),this.resizable&&this.normalizeSize()},t.prototype.ngOnChanges=function(t){var e=this;t.value&&this.view&&this.changeValue(t.value.currentValue),t.iframe&&!t.iframe.isFirstChange()&&this.ngZone.onStable.pipe(a.take(1)).subscribe((function(){return e.initialize()})),t.resizable&&!t.resizable.isFirstChange()&&this.normalizeSize()},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.iframeOnLoad=function(){this.contentAreaLoaded.next()},t.prototype.exec=function(t,e){"setHTML"===t&&"string"==typeof e?e={content:e,parseOptions:{preserveWhitespace:this.preserveWhitespace}}:["fontFamily","fontSize","foreColor","backColor","createLink"].some((function(e){return e===t}))&&(e={value:e,applyToWord:this.applyToWord}),m.editorCommands[t](e)(this._view.state,this._view.dispatch,this._view)},t.prototype.openDialog=function(t){var e={createLink:{content:g.FileLinkDialogComponent},insertFile:{content:g.FileLinkDialogComponent},insertImage:{content:y.ImageDialogComponent},viewSource:{content:_.SourceDialogComponent,height:400,width:500}},n=Object.assign({appendTo:this.dialogContainer},e[t]);this.toolbar.toggle(!1);var o=this.dialogService.open(n).content.instance;"createLink"!==t&&"insertFile"!==t||(o.command=t),o.editor=this,o.setData(this._view.state,{applyToWord:this.applyToWord})},t.prototype.focus=function(){this.focusChangedProgrammatically=!0,this._view.focus(),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,this._view.dom.blur(),this.focusChangedProgrammatically=!1},t.prototype.getSource=function(){return d.getHtml(this._view.state)},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe(),this._styleObserver&&this._styleObserver.disconnect()},t.prototype.writeValue=function(t){this.inForm=!0,this.value=null===t?void 0:t},t.prototype.registerOnChange=function(t){this.onChangeCallback=t},t.prototype.registerOnTouched=function(t){this.onTouchedCallback=t},t.prototype.isEmpty=function(){return!1},t.prototype.initialize=function(){var t=this;if(l.isDocumentAvailable()){var e=this.schema||f.schema,n=this.container.element.nativeElement,o=d.parseContent((this.value||"").trim(),e,{preserveWhitespace:this.preserveWhitespace});if(this.iframe){var i=n.contentDocument,r=i.createElement("meta");r.setAttribute("charset","utf-8"),i.head.appendChild(r),[k.defaultStyle,k.tablesStyles,"rtl"===this.dir?k.rtlStyles:void 0].forEach((function(t){if(t){var e=i.createElement("style");e.appendChild(i.createTextNode(t)),i.head.appendChild(e)}})),(u=i.createElement("div")).classList.add("k-content"),i.body.appendChild(u)}else{var u=document.createElement("div");n.appendChild(u)}var c=[new d.Plugin({key:new d.PluginKey("editor-tabindex"),props:{attributes:function(){return{tabIndex:t.readonly?"0":""}}}}),new d.Plugin({key:new d.PluginKey("toolbar-tools-update"),view:function(){return{update:function(e){t.disabled||t.stateChange.next(t.readonly?b.disabledToolBarState:b.getToolbarState(e.state,{applyToWord:t.applyToWord}))}}}}),d.history(),d.keymap(d.buildListKeymap(e)),d.keymap(d.buildKeymap(e,{applyToWord:this.applyToWord})),d.keymap(d.baseKeymap),d.gapCursor(),d.imageResizing(),d.tableEditing(),d.caretColor()];this.placeholder&&c.push(d.placeholder(this.placeholder));var p=d.EditorState.create({schema:e,doc:o,plugins:v.isPresent(this.plugins)?this.plugins(c):c});if(this.iframe?this.viewMountElement=n.contentDocument.querySelector("div"):this.viewMountElement=n.querySelector("div"),this.ngZone.runOutsideAngular((function(){t._view=new d.EditorView({mount:t.viewMountElement},{state:p,editable:function(){return!t.readonly},dispatchTransaction:t.dispatchTransaction,transformPastedHTML:t.transformPastedHTML,handleDOMEvents:{paste:t.onPaste}})})),this._view){var h=void 0,m=this.element.nativeElement.querySelector(".k-editor-content").classList;h=this.iframe?this.container.element.nativeElement.contentDocument:this.container.element.nativeElement,this.subs.add(s.fromEvent(h,"focusin").subscribe((function(e){if(t.readonly&&m.add("k-focus"),!t.focusChangedProgrammatically||t.shouldEmitFocus){var n=e.relatedTarget;n&&n.classList.contains("k-colorpicker")&&!t.shouldEmitFocus||t.ngZone.run((function(){return t.onFocus.emit()})),t.shouldEmitFocus=!1}}))),this.subs.add(s.fromEvent(h,"focusout").subscribe((function(e){if(t.readonly&&m.remove("k-focus"),!t.focusChangedProgrammatically){var n=e.relatedTarget;n&&n.classList.contains("k-colorpicker")||t.ngZone.run((function(){return t.onBlur.emit()}))}})))}this.subs.add(this.stateChange.subscribe((function(){t.userToolBarComponent?t.userToolBarComponent.cdr.detectChanges():t.cdr.detectChanges()}))),this.subs.add(this.valueModified.subscribe((function(e){t.onChangeCallback(e),t.valueChange.emit(e),t.cdr.markForCheck()}))),this.subs.add(s.fromEvent(this.viewMountElement,"keyup").pipe(a.map((function(t){return t.keyCode})),a.filter((function(t){return 121===t})),a.map((function(){return t.userToolBarElement||t.defaultToolbar}))).subscribe((function(t){return t.nativeElement.focus()}))),this.subs.add(s.fromEvent(this.viewMountElement,"blur").pipe(a.filter((function(e){return!t.viewMountElement.contains(e.relatedTarget)}))).subscribe((function(){return t.onTouchedCallback()})))}},t.prototype.normalizeSize=function(){var t=this;if("object"==typeof this.resizable&&!this._styleObserver){var e=this.element.nativeElement;this._styleObserver=new MutationObserver((function(){t.ngZone.runOutsideAngular((function(){return t.normalizeProperties(e)}))})),this._styleObserver.observe(e,{attributeFilter:["style"]})}},t.prototype.normalizeProperties=function(t){var e=Object.keys(this.resizable),n=parseInt(t.style.width,10),o=parseInt(t.style.height,10),i=this.resizable;e.forEach((function(e){var r=e.startsWith("min"),s=!r,a=e.endsWith("Width"),u=!a;r&&a?n<i.minWidth&&(t.style.width=i.minWidth+"px"):r&&u?o<i.minHeight&&(t.style.height=i.minHeight+"px"):s&&a?n>i.maxWidth&&(t.style.width=i.maxWidth+"px"):o>i.maxHeight&&(t.style.height=i.maxHeight+"px")}))},o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],t.prototype,"value",null),o.__decorate([i.Input(),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[Boolean])],t.prototype,"disabled",null),o.__decorate([i.Input(),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[Boolean])],t.prototype,"readonly",null),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"iframe",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"applyToWord",void 0),o.__decorate([i.Input(),o.__metadata("design:type",d.Schema),o.__metadata("design:paramtypes",[d.Schema])],t.prototype,"schema",null),o.__decorate([i.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],t.prototype,"plugins",null),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],t.prototype,"placeholder",null),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"preserveWhitespace",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"pasteCleanupSettings",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"resizable",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),o.__decorate([i.Output("focus"),o.__metadata("design:type",i.EventEmitter)],t.prototype,"onFocus",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"paste",void 0),o.__decorate([i.Output("blur"),o.__metadata("design:type",i.EventEmitter)],t.prototype,"onBlur",void 0),o.__decorate([i.HostBinding("class.k-editor"),o.__metadata("design:type",Boolean)],t.prototype,"hostClass",void 0),o.__decorate([i.HostBinding("class.k-editor-resizable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],t.prototype,"resizableClass",null),o.__decorate([i.HostBinding("class.k-disabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],t.prototype,"isDisabled",null),o.__decorate([i.HostBinding("class.k-readonly"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],t.prototype,"isReadonly",null),o.__decorate([i.HostBinding("class.k-ie"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],t.prototype,"isIE",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"dir",null),o.__decorate([i.HostBinding("attr.ariaDisabled"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],t.prototype,"ariaDisabled",null),o.__decorate([i.HostBinding("style.minWidth"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"minWidth",null),o.__decorate([i.HostBinding("style.maxWidth"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"maxWidth",null),o.__decorate([i.HostBinding("style.minHeight"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"minHeight",null),o.__decorate([i.HostBinding("style.maxHeight"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],t.prototype,"maxHeight",null),o.__decorate([i.ContentChild(u.ToolBarComponent,{static:!1}),o.__metadata("design:type",u.ToolBarComponent)],t.prototype,"userToolBarComponent",void 0),o.__decorate([i.ContentChild(u.ToolBarComponent,{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],t.prototype,"userToolBarElement",void 0),o.__decorate([i.ViewChild("dialogsContainer",{read:i.ViewContainerRef,static:!0}),o.__metadata("design:type",i.ViewContainerRef)],t.prototype,"dialogContainer",void 0),o.__decorate([i.ViewChild("content",{read:i.ViewContainerRef,static:!1}),o.__metadata("design:type",i.ViewContainerRef)],t.prototype,"container",void 0),o.__decorate([i.ViewChild("defaultToolbar",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],t.prototype,"defaultToolbar",void 0),o.__decorate([i.ViewChild("defaultToolbar",{read:u.ToolBarComponent,static:!1}),o.__metadata("design:type",u.ToolBarComponent)],t.prototype,"defaultToolbarComponent",void 0),t=e=o.__decorate([i.Component({selector:"kendo-editor",providers:[x.EditorLocalizationService,S.EditorToolsService,{provide:w.LocalizationService,useExisting:x.EditorLocalizationService},{provide:w.L10N_PREFIX,useValue:"kendo.editor"},{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return e})),multi:!0},{provide:l.KendoInput,useExisting:i.forwardRef((function(){return e}))}],template:'\n <ng-container\n kendoEditorLocalizedMessages\n i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."\n alignCenter="Center text"\n i18n-alignJustify="kendo.editor.alignJustify|The title of the tool that justifies text both left and right."\n alignJustify="Justify"\n i18n-alignLeft="kendo.editor.alignLeft|The title of the tool that aligns text on the left."\n alignLeft="Align text left"\n i18n-alignRight="kendo.editor.alignRight|The title of the tool that aligns text on the right."\n alignRight="Align text right"\n i18n-backColor="kendo.editor.backColor|The title of the tool that changes the text background color."\n backColor="Background color"\n i18n-blockquote="kendo.editor.blockquote|The title of the tool that wraps an element in a blockquote"\n blockquote="Quotation"\n i18n-bold="kendo.editor.bold|The title of the tool that makes text bold."\n bold="Bold"\n i18n-cleanFormatting="kendo.editor.cleanFormatting|The title of the Clean Formatting tool."\n cleanFormatting="Clean formatting"\n i18n-createLink="kendo.editor.createLink|The title of the tool that creates hyperlinks."\n createLink="Insert link"\n i18n-dialogApply="kendo.editor.dialogApply|The label of the **Apply** button in all editor dialogs."\n dialogApply="Apply"\n i18n-dialogCancel="kendo.editor.dialogCancel|The label of the **Cancel** button in all editor dialogs."\n dialogCancel="Cancel"\n i18n-dialogInsert="kendo.editor.dialogInsert|The label of the **Insert** button in all editor dialogs."\n dialogInsert="Insert"\n i18n-dialogUpdate="kendo.editor.dialogUpdate|The label of the **Update** button in all editor dialogs."\n dialogUpdate="Update"\n i18n-fileText="kendo.editor.fileText|The caption for the file text in the insertFile dialog."\n fileText="Text"\n i18n-fileTitle="kendo.editor.fileTitle|The caption for the file Title in the insertFile dialog."\n fileTitle="Title"\n i18n-fileWebAddress="kendo.editor.fileWebAddress|The caption for the file URL in the insertFile dialog."\n fileWebAddress="Web address"\n i18n-fontFamily="kendo.editor.fontFamily|The title of the tool that changes the text font."\n fontFamily="Select font family"\n i18n-fontSize="kendo.editor.fontSize|The title of the tool that changes the text size."\n fontSize="Select font size"\n i18n-foreColor="kendo.editor.foreColor|The title of the tool that changes the text color."\n foreColor="Color"\n i18n-format="kendo.editor.format|The title of the tool that lets users choose block formats."\n format="Format"\n i18n-imageAltText="kendo.editor.imageAltText|The caption for the image alternate text in the insertImage dialog."\n imageAltText="Alternate text"\n i18n-imageHeight="kendo.editor.imageHeight|The caption for the image height in the insertImage dialog."\n imageHeight="Height (px)"\n i18n-imageWebAddress="kendo.editor.imageWebAddress|The caption for the image URL in the insertImage dialog."\n imageWebAddress="Web address"\n i18n-imageWidth="kendo.editor.imageWidth|The caption for the image width in the insertImage dialog."\n imageWidth="Width (px)"\n i18n-indent="kendo.editor.indent|The title of the tool that indents the content."\n indent="Indent"\n i18n-insertFile="kendo.editor.insertFile|The title of the tool that inserts links to files."\n insertFile="Insert file"\n i18n-insertImage="kendo.editor.insertImage|The title of the tool that inserts images."\n insertImage="Insert image"\n i18n-insertOrderedList="kendo.editor.insertOrderedList|The title of the tool that inserts an ordered list."\n insertOrderedList="Insert ordered list"\n i18n-insertUnorderedList="kendo.editor.insertUnorderedList|The title of the tool that inserts an unordered list."\n insertUnorderedList="Insert unordered list"\n i18n-italic="kendo.editor.italic|The title of the tool that makes text italicized."\n italic="Italic"\n i18n-linkOpenInNewWindow="kendo.editor.linkOpenInNewWindow|The caption for the checkbox for opening the link in a new window in the createLink dialog."\n linkOpenInNewWindow="Open link in new window"\n i18n-linkText="kendo.editor.linkText|The caption for the link text in the createLink dialog."\n linkText="Text"\n i18n-linkTitle="kendo.editor.linkTitle|The caption for the link title in the createLink dialog."\n linkTitle="Title"\n i18n-linkWebAddress="kendo.editor.linkWebAddress|The caption for the URL in the createLink dialog."\n linkWebAddress="Web address"\n i18n-outdent="kendo.editor.outdent|The title of the tool that outdents the content."\n outdent="Outdent"\n i18n-print="kendo.editor.print|The title of the print tool."\n print="Print"\n i18n-redo="kendo.editor.redo|The title of the tool that undos the last action."\n redo="Redo"\n i18n-selectAll="kendo.editor.selectAll|The title of the tool that selects all content."\n selectAll="Select All"\n i18n-strikethrough="kendo.editor.strikethrough|The title of the tool that strikes through text."\n strikethrough="Strikethrough"\n i18n-subscript="kendo.editor.subscript|The title of the tool that makes text subscript."\n subscript="Subscript"\n i18n-superscript="kendo.editor.superscript|The title of the tool that makes text superscript."\n superscript="Superscript"\n i18n-underline="kendo.editor.underline|The title of the tool that underlines text."\n underline="Underline"\n i18n-unlink="kendo.editor.unlink|The title of the tool that removes hyperlinks."\n unlink="Remove Link"\n i18n-undo="kendo.editor.undo|The title of the tool that undos the last action."\n undo="Undo"\n i18n-viewSource="kendo.editor.viewSource|The title of the tool that shows the editor value as HTML."\n viewSource="View source"\n i18n-insertTable="kendo.editor.insertTable|The title of the tool that inserts table."\n insertTable="Insert Table"\n i18n-addColumnBefore="kendo.editor.addColumnBefore|The title of the tool that adds new column before currently selected column."\n addColumnBefore="Add column before"\n i18n-addColumnAfter="kendo.editor.addColumnAfter|The title of the tool that adds new column after currently selected column."\n addColumnAfter="Add column after"\n i18n-addRowBefore="kendo.editor.addRowBefore|The title of the tool that adds new row before currently selected row."\n addRowBefore="Add row before"\n i18n-addRowAfter="kendo.editor.addRowAfter|The title of the tool that adds new row after currently selected row."\n addRowAfter="Add row after"\n i18n-deleteColumn="kendo.editor.deleteColumn|The title of the tool that deletes a table column."\n deleteColumn="Delete column"\n i18n-deleteRow="kendo.editor.deleteRow|The title of the tool that deletes a table row."\n deleteRow="Delete row"\n i18n-deleteTable="kendo.editor.deleteTable|The title of the tool that deletes a table."\n deleteTable="Delete table"\n >\n </ng-container>\n\n <ng-content select="kendo-toolbar"></ng-content>\n <kendo-toolbar [overflow]="true" [tabindex]="readonly ? -1 : 0" *ngIf="!userToolBarElement" #defaultToolbar>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnderlineButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-dropdownlist kendoEditorFormat></kendo-toolbar-dropdownlist>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorAlignLeftButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignCenterButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignRightButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorAlignJustifyButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertUnorderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorInsertOrderedListButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorIndentButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorOutdentButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorCreateLinkButton></kendo-toolbar-button>\n <kendo-toolbar-button kendoEditorUnlinkButton></kendo-toolbar-button>\n </kendo-toolbar-buttongroup>\n <kendo-toolbar-button kendoEditorInsertImageButton></kendo-toolbar-button>\n </kendo-toolbar>\n\n <div *ngIf="!iframe" #content [attr.dir]="direction" class="k-editor-content"></div>\n\n <div class="k-editor-content" *ngIf="iframe">\n <iframe #content srcdoc="<!DOCTYPE html>" frameborder="0" class="k-iframe" (load)="iframeOnLoad()"></iframe>\n </div>\n\n <ng-container #dialogsContainer></ng-container>\n ',styles:["\n >>> .k-editor-content > .ProseMirror {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n outline: none;\n overflow: auto;\n }\n\n .k-iframe {\n width: 100%;\n height: 100%;\n display: block;\n }\n "]}),o.__metadata("design:paramtypes",[c.DialogService,w.LocalizationService,i.ChangeDetectorRef,i.NgZone,i.ElementRef,S.EditorToolsService])],t)}();e.EditorComponent=O},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(15),s=function(){function t(){this.needsCheck=new r.Subject}return t=o.__decorate([i.Injectable()],t)}();e.EditorToolsService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=function(t){function e(e,n,o,i,r){var s=t.call(this,e,n,o,i,r)||this;return s.command=e,s.button=n,s.editor=o,s.localization=i,s.toolsService=r,s}return o.__extends(e,t),e.prototype.clickHandler=function(){this.editor.exec(this.command,this.editor.applyToWord),this.editor.focus()},e.prototype.pointerdownHandler=function(t){t.preventDefault()},e.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},e}(n(34).EditorCommandBase);e.EditorCommandButton=i},function(t,e){t.exports=o},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(10);e.outerWidth=function(t){var e=t.offsetWidth,n=getComputedStyle(t);return e+=parseFloat(n.marginLeft)||0+parseFloat(n.marginRight)||0},e.removeEntries=function(t,e){return Object.keys(t).filter((function(t){return e(t)})).reduce((function(e,n){var o;return Object.assign(e,((o={})[n]=t[n],o))}),{})},e.removeEmptyEntries=function(t){return e.removeEntries(t,(function(e){return null!==t[e]&&void 0!==t[e]&&""!==t[e]}))},e.isEmpty=function(t){return 0===Object.keys(t).length},e.isNullOrUndefined=function(t){return null==t},e.isPresent=function(t){return!e.isNullOrUndefined(t)},e.detectIE=function(){if(!o.isDocumentAvailable())return!1;var t=window.navigator.userAgent,e=t.indexOf("MSIE "),n=t.indexOf("Trident/");return e>0||n>0},e.safeString=function(t){return e.isNullOrUndefined(t)?"":t.toString()},e.first=function(t){return t[0]},e.last=function(t){return t[t.length-1]},e.unique=function(t){return Array.from(new Set(t))},e.split=function(t){return function(e){return e.split(t)}},e.trim=function(t){return t.trim()},e.filter=function(t){return function(e){return e.filter(t)}},e.toArray=function(t){return t instanceof Array?t:[t]},e.getUniqueStyleValues=function(t,n){if(t.hasNodesWithoutMarks)return"";var o=t.marks.filter((function(t){return"style"===t.type.name})).map((function(t){return t.attrs.style})).map(e.safeString).map(e.split(";")).map(e.filter((function(t){return t.includes(n)}))).map((function(t){return 0!==t.length?t:[n+": INVALID"]})).map(e.first).map(e.split(":")).map(e.last).map(e.trim).reduce((function(t,e){return t.indexOf(e)>-1?t:t.concat([e])}),[]);return o.indexOf("INVALID")>-1||1!==o.length?"":o[0]},e.conditionallyExecute=function(t){return function(e){return function(n){return e?t(n):n}}},e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}},function(t,e){t.exports=r},function(t,e){t.exports=s},function(t,e){t.exports=a},function(t,e){t.exports=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=function(t){function e(e,n,o,i,r){var s=t.call(this,e,n,o,i,r)||this;return s.dialog=e,s.button=n,s.editor=o,s.localization=i,s.toolsService=r,s}return o.__extends(e,t),e.prototype.clickHandler=function(){this.editor.openDialog(this.dialog)},e.prototype.onStateChange=function(t){this.button.selected=t[this.command].selected,this.button.disabled=t[this.command].disabled},e}(n(34).EditorCommandBase);e.EditorCommandDialog=i},function(t,e){t.exports=c},function(t,e){t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(13),s=function(){function t(){this.valueChange=new i.EventEmitter}return t.prototype.onValueChange=function(t){this.valueChange.emit(t)},t.prototype.focus=function(){this.dropDownList.focus()},o.__decorate([i.Input(),o.__metadata("design:type",Array)],t.prototype,"data",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"defaultItem",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function)],t.prototype,"itemDisabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),o.__decorate([i.ViewChild("element",{static:!0}),o.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),o.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),o.__metadata("design:type",r.DropDownListComponent)],t.prototype,"dropDownList",void 0),t=o.__decorate([i.Component({selector:"kendo-editor-format-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'tag\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <ng-container [ngSwitch]="dataItem.tag">\n <span *ngSwitchCase="\'h1\'" style="display: block; font-size: 2em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h2\'" style="display: block; font-size: 1.5em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h3\'" style="display: block; font-size: 1.17em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h4\'" style="display: block; font-size: 1em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h5\'" style="display: block; font-size: .83em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'h6\'" style="display: block; font-size: .67em; margin-left: 0; font-weight: bold;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchCase="\'p\'" style="display: block; margin-left: 0;">\n {{ dataItem.text }}\n </span>\n\n <span *ngSwitchDefault>{{ dataItem.text }}</span>\n </ng-container>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],t)}();e.FormatDropDownListComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(13),s=function(){function t(){this.valueChange=new i.EventEmitter}return t.prototype.onValueChange=function(t){this.valueChange.emit(t)},t.prototype.focus=function(){this.dropDownList.focus()},o.__decorate([i.Input(),o.__metadata("design:type",Array)],t.prototype,"data",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"defaultItem",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function)],t.prototype,"itemDisabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),o.__decorate([i.ViewChild("element",{static:!0}),o.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),o.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),o.__metadata("design:type",r.DropDownListComponent)],t.prototype,"dropDownList",void 0),t=o.__decorate([i.Component({selector:"kendo-editor-fontfamily-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'fontName\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]="{ \'font-family\': dataItem.fontName }">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],t)}();e.FontFamilyDropDownListComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(13),s=function(){function t(){this.valueChange=new i.EventEmitter}return t.prototype.onValueChange=function(t){this.valueChange.emit(t)},t.prototype.focus=function(){this.dropDownList.focus()},o.__decorate([i.Input(),o.__metadata("design:type",Array)],t.prototype,"data",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],t.prototype,"defaultItem",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function)],t.prototype,"itemDisabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"valueChange",void 0),o.__decorate([i.ViewChild("element",{static:!0}),o.__metadata("design:type",i.ElementRef)],t.prototype,"element",void 0),o.__decorate([i.ViewChild("element",{read:r.DropDownListComponent,static:!0}),o.__metadata("design:type",r.DropDownListComponent)],t.prototype,"dropDownList",void 0),t=o.__decorate([i.Component({selector:"kendo-editor-fontsize-dropdownlist",template:'\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]="defaultItem"\n [textField]="\'text\'"\n [valueField]="\'size\'"\n [data]="data"\n [(value)]="value"\n [valuePrimitive]="true"\n [itemDisabled]="itemDisabled"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-dropdownlist>\n ',styles:["\n .k-dropdownlist {\n width: 13em;\n }\n "]})],t)}();e.FontSizeDropDownListComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(16),a=n(2),u=n(9),c=n(3),l=n(7),d=n(30),p=n(22),h=function(t){function e(e,n,o,i){var r=t.call(this)||this;return r.editor=e,r.localization=n,r.dialogService=o,r.ngZone=i,r.tabindex=-1,r.disabled=!1,r.views=["palette"],r}var n;return o.__extends(e,t),n=e,Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(t){this.views=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.localization.get(this.editorCommand)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.subs=this.editor.stateChange.subscribe((function(e){var n=e.style;t.disabled=n.disabled}))},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},e.prototype.handleValueChange=function(t){this.editor.exec(this.editorCommand,t),this.editor.view.focus()},e.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.handleValueChange(t.color)},e.prototype.onOpen=function(t){this.valueCache=t.value,t.reset()},e.prototype.onClose=function(t){var e=this;t.value||(t.value=this.valueCache),this.editor.shouldEmitFocus=!0,this.ngZone.onStable.pipe(p.take(1)).subscribe((function(){return e.editor.view.focus()}))},Object.defineProperty(e.prototype,"outerWidth",{get:function(){if(this.element)return u.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),e.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:d.ColorPickerDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,value:this.value,title:this.title,editorCommand:this.editorCommand,paletteSettings:this.paletteSettings,icon:this.icon,views:this.views})},e.prototype.canFocus=function(){return!this.disabled},e.prototype.focus=function(){this.tabindex=0,this.overflows?this.colorPickerButton.nativeElement.focus():this.colorPicker.focus()},e.prototype.handleKey=function(){return this.tabindex=-1,!1},o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"value",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"icon",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"paletteSettings",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"editorCommand",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Array)],e.prototype,"views",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],e.prototype,"view",null),o.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"toolbarTemplate",void 0),o.__decorate([i.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"popupTemplate",void 0),o.__decorate([i.ViewChild("colorpicker",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),o.__decorate([i.ViewChild("colorpicker",{read:s.ColorPickerComponent,static:!1}),o.__metadata("design:type",s.ColorPickerComponent)],e.prototype,"colorPicker",void 0),o.__decorate([i.ViewChild("colorPickerButton",{read:i.ElementRef,static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"colorPickerButton",void 0),e=n=o.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-toolbar-colorpicker",template:'\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]="title"\n [icon]="icon"\n [views]="views"\n [format]="\'hex\'"\n [value]="value"\n [paletteSettings]="paletteSettings"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="handleValueChange($event)"\n (activeColorClick)="handleActiveColorClick($event)"\n (open)="onOpen(colorpicker)"\n (close)="onClose(colorpicker)"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #colorPickerButton\n class="k-overflow-button"\n [icon]="icon"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),o.__param(0,i.Host()),o.__metadata("design:paramtypes",[c.EditorComponent,a.EditorLocalizationService,l.DialogService,i.NgZone])],e)}(r.ToolBarToolComponent);e.EditorColorPickerComponent=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.commandIcons={alignCenter:"align-center",alignJustify:"align-justify",alignLeft:"align-left",alignRight:"align-right",backColor:"background",blockquote:"blockquote",bold:"bold",cleanFormatting:"clear-css",createLink:"link-horizontal",foreColor:"foreground-color",indent:"indent-increase",insertFile:"file-add",insertImage:"image",insertOrderedList:"list-ordered",insertUnorderedList:"list-unordered",italic:"italic",outdent:"indent-decrease",print:"print",redo:"redo",selectAll:"select-all",strikethrough:"strikethrough",subscript:"sub-script",superscript:"sup-script",underline:"underline",undo:"undo",unlink:"unlink-horizontal",viewSource:"html",insertTable:"table-insert",addColumnBefore:"table-column-insert-left",addColumnAfter:"table-column-insert-right",addRowBefore:"table-row-insert-above",addRowAfter:"table-row-insert-below",deleteRow:"table-row-delete",deleteColumn:"table-column-delete",mergeCells:"cells-merge",splitCell:"cell-split-horizontally",deleteTable:"table-delete"}},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return F})),n.d(e,"auditTime",(function(){return K})),n.d(e,"buffer",(function(){return Y})),n.d(e,"bufferCount",(function(){return $})),n.d(e,"bufferTime",(function(){return tt})),n.d(e,"bufferToggle",(function(){return at})),n.d(e,"bufferWhen",(function(){return lt})),n.d(e,"catchError",(function(){return ht})),n.d(e,"combineAll",(function(){return gt})),n.d(e,"combineLatest",(function(){return xt})),n.d(e,"concat",(function(){return Mt})),n.d(e,"concatAll",(function(){return Lt})),n.d(e,"concatMap",(function(){return Nt})),n.d(e,"concatMapTo",(function(){return jt})),n.d(e,"count",(function(){return Vt})),n.d(e,"debounce",(function(){return Ht})),n.d(e,"debounceTime",(function(){return Kt})),n.d(e,"defaultIfEmpty",(function(){return $t})),n.d(e,"delay",(function(){return ie})),n.d(e,"delayWhen",(function(){return ue})),n.d(e,"dematerialize",(function(){return he})),n.d(e,"distinct",(function(){return be})),n.d(e,"distinctUntilChanged",(function(){return ye})),n.d(e,"distinctUntilKeyChanged",(function(){return xe})),n.d(e,"elementAt",(function(){return Ne})),n.d(e,"endWith",(function(){return je})),n.d(e,"every",(function(){return Ve})),n.d(e,"exhaust",(function(){return He})),n.d(e,"exhaustMap",(function(){return Ke})),n.d(e,"expand",(function(){return Je})),n.d(e,"filter",(function(){return Se})),n.d(e,"finalize",(function(){return Xe})),n.d(e,"find",(function(){return en})),n.d(e,"findIndex",(function(){return rn})),n.d(e,"first",(function(){return sn})),n.d(e,"groupBy",(function(){return hn})),n.d(e,"ignoreElements",(function(){return yn})),n.d(e,"isEmpty",(function(){return xn})),n.d(e,"last",(function(){return In})),n.d(e,"map",(function(){return Tt})),n.d(e,"mapTo",(function(){return Dn})),n.d(e,"materialize",(function(){return An})),n.d(e,"max",(function(){return jn})),n.d(e,"merge",(function(){return Rn})),n.d(e,"mergeAll",(function(){return zt})),n.d(e,"mergeMap",(function(){return Bt})),n.d(e,"flatMap",(function(){return Bt})),n.d(e,"mergeMapTo",(function(){return Wn})),n.d(e,"mergeScan",(function(){return Hn})),n.d(e,"min",(function(){return Kn})),n.d(e,"multicast",(function(){return Qn})),n.d(e,"observeOn",(function(){return eo})),n.d(e,"onErrorResumeNext",(function(){return ro})),n.d(e,"pairwise",(function(){return uo})),n.d(e,"partition",(function(){return ho})),n.d(e,"pluck",(function(){return fo})),n.d(e,"publish",(function(){return bo})),n.d(e,"publishBehavior",(function(){return _o})),n.d(e,"publishLast",(function(){return go})),n.d(e,"publishReplay",(function(){return So})),n.d(e,"race",(function(){return Do})),n.d(e,"reduce",(function(){return Nn})),n.d(e,"repeat",(function(){return Bo})),n.d(e,"repeatWhen",(function(){return Po})),n.d(e,"retry",(function(){return Fo})),n.d(e,"retryWhen",(function(){return jo})),n.d(e,"refCount",(function(){return Yn})),n.d(e,"sample",(function(){return Wo})),n.d(e,"sampleTime",(function(){return Uo})),n.d(e,"scan",(function(){return Ln})),n.d(e,"sequenceEqual",(function(){return Jo})),n.d(e,"share",(function(){return ti})),n.d(e,"shareReplay",(function(){return ei})),n.d(e,"single",(function(){return ni})),n.d(e,"skip",(function(){return ri})),n.d(e,"skipLast",(function(){return ui})),n.d(e,"skipUntil",(function(){return di})),n.d(e,"skipWhile",(function(){return fi})),n.d(e,"startWith",(function(){return vi})),n.d(e,"subscribeOn",(function(){return Si})),n.d(e,"switchAll",(function(){return Bi})),n.d(e,"switchMap",(function(){return Ti})),n.d(e,"switchMapTo",(function(){return Oi})),n.d(e,"take",(function(){return Le})),n.d(e,"takeLast",(function(){return Sn})),n.d(e,"takeUntil",(function(){return Ai})),n.d(e,"takeWhile",(function(){return Li})),n.d(e,"tap",(function(){return Ie})),n.d(e,"throttle",(function(){return ji})),n.d(e,"throttleTime",(function(){return Wi})),n.d(e,"throwIfEmpty",(function(){return Pe})),n.d(e,"timeInterval",(function(){return Ki})),n.d(e,"timeout",(function(){return Qi})),n.d(e,"timeoutWith",(function(){return $i})),n.d(e,"timestamp",(function(){return tr})),n.d(e,"toArray",(function(){return or})),n.d(e,"window",(function(){return ir})),n.d(e,"windowCount",(function(){return ar})),n.d(e,"windowTime",(function(){return lr})),n.d(e,"windowToggle",(function(){return vr})),n.d(e,"windowWhen",(function(){return gr})),n.d(e,"withLatestFrom",(function(){return kr})),n.d(e,"zip",(function(){return Ar})),n.d(e,"zipAll",(function(){return Pr}));var o=n(0);function i(t){return"function"==typeof t}var r=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function a(t){setTimeout((function(){throw t}))}var u={closed:!0,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete:function(){}},c=Array.isArray||function(t){return t&&"number"==typeof t.length};function l(t){return null!==t&&"object"==typeof t}function d(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}d.prototype=Object.create(Error.prototype);var p=d,h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,o=this._parents,r=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,u=o?o.length:0;n;)n.remove(this),n=++a<u&&o[a]||null;if(i(r))try{r.call(this)}catch(n){e=!0,t=n instanceof p?f(n.errors):[n]}if(c(s))for(a=-1,u=s.length;++a<u;){var d=s[a];if(l(d))try{d.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof p?t=t.concat(f(n.errors)):t.push(n)}}if(e)throw new p(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var o=n;(n=new t)._subscriptions=[o]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var i=this._subscriptions;i?i.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function f(t){return t.reduce((function(t,e){return t.concat(e instanceof p?e.errors:e)}),[])}var m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),b=function(t){function e(n,o,i){var r=t.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=u;break;case 1:if(!n){r.destination=u;break}if("object"==typeof n){n instanceof e?(r.syncErrorThrowable=n.syncErrorThrowable,r.destination=n,n.add(r)):(r.syncErrorThrowable=!0,r.destination=new v(r,n));break}default:r.syncErrorThrowable=!0,r.destination=new v(r,n,o,i)}return r}return o.__extends(e,t),e.prototype[m]=function(){return this},e.create=function(t,n,o){var i=new e(t,n,o);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(h),v=function(t){function e(e,n,o,r){var s,a=t.call(this)||this;a._parentSubscriber=e;var c=a;return i(n)?s=n:n&&(s=n.next,o=n.error,r=n.complete,n!==u&&(i((c=Object.create(n)).unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=s,a._error=o,a._complete=r,a}return o.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):a(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;a(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw t;a(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(a(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(b),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(b),y=function(t){function e(e,n,o){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=o,i.index=0,i}return o.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(b);var g="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return k(t)}function k(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:w}var C=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var o=this.operator,i=function(t,e,n){if(t){if(t instanceof b)return t;if(t[m])return t[m]()}return t||e||n?new b(t,e,n):new b(u)}(t,e,n);if(o?i.add(o.call(i,this.source)):i.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&o instanceof b?o:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=S(e))((function(e,o){var i;i=n.subscribe((function(e){try{t(e)}catch(t){o(t),i&&i.unsubscribe()}}),o,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[g]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:k(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=S(t))((function(t,n){var o;e.subscribe((function(t){return o=t}),(function(t){return n(t)}),(function(){return t(o)}))}))},t.create=function(e){return new t(e)},t}();function S(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var E=function(t){return function(e){for(var n=0,o=t.length;n<o&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},T=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,a),e}};function I(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var D=I(),B=function(t){return function(e){for(var n=t[D]();;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}},O=function(t){return function(e){var n=t[g]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},A=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function P(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var z=function(t){if(t instanceof C)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[g])return O(t);if(A(t))return E(t);if(P(t))return T(t);if(t&&"function"==typeof t[D])return B(t);var e=l(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function L(t,e,n,o,i){if(void 0===i&&(i=new y(t,n,o)),!i.closed)return z(e)(i)}function F(t){return function(e){return e.lift(new M(t))}}var M=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.durationSelector))},t}(),N=function(t){function e(e,n){var o=t.call(this,e)||this;return o.durationSelector=n,o.hasValue=!1,o}return o.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=L(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,o){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(_),j=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.scheduler=e,o.work=n,o.pending=!1,o}return o.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,o=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(o,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(o,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,o=void 0;try{this.work(t)}catch(t){n=!0,o=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),o},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,o=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&n.splice(o,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return o.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(h)),V=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),R=function(t){function e(n,o){void 0===o&&(o=V.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():o()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return o.__extends(e,t),e.prototype.schedule=function(n,o,i){return void 0===o&&(o=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,o,i):t.prototype.schedule.call(this,n,o,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(V),W=new R(j);function H(t){return!c(t)&&t-parseFloat(t)+1>=0}function q(t){return t&&"function"==typeof t.schedule}function U(t){var e=t.index,n=t.period,o=t.subscriber;if(o.next(e),!o.closed){if(-1===n)return o.complete();t.index=e+1,this.schedule(t,n)}}function K(t,e){return void 0===e&&(e=W),F((function(){return function(t,e,n){void 0===t&&(t=0);var o=-1;return H(e)?o=Number(e)<1?1:Number(e):q(e)&&(n=e),q(n)||(n=W),new C((function(e){var i=H(t)?t:+t-n.now();return n.schedule(U,i,{index:0,period:o,subscriber:e})}))}(t,e)}))}function Y(t){return function(e){return e.lift(new G(t))}}var G=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new J(t,this.closingNotifier))},t}(),J=function(t){function e(e,n){var o=t.call(this,e)||this;return o.buffer=[],o.add(L(o,n)),o}return o.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,o,i){var r=this.buffer;this.buffer=[],this.destination.next(r)},e}(_);function $(t,e){return void 0===e&&(e=null),function(n){return n.lift(new Z(t,e))}}var Z=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?Q:X}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),X=function(t){function e(e,n){var o=t.call(this,e)||this;return o.bufferSize=n,o.buffer=[],o}return o.__extends(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(b),Q=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=o,i.buffers=[],i.count=0,i}return o.__extends(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,o=this.buffers,i=this.count;this.count++,i%n==0&&o.push([]);for(var r=o.length;r--;){var s=o[r];s.push(t),s.length===e&&(o.splice(r,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var o=e.shift();o.length>0&&n.next(o)}t.prototype._complete.call(this)},e}(b);function tt(t){var e=arguments.length,n=W;q(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var o=null;e>=2&&(o=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new et(t,o,i,n))}}var et=function(){function t(t,e,n,o){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=o}return t.prototype.call=function(t,e){return e.subscribe(new ot(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),nt=function(){return function(){this.buffer=[]}}(),ot=function(t){function e(e,n,o,i,r){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=o,s.maxBufferSize=i,s.scheduler=r,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==o||o<0,s.timespanOnly){var u={subscriber:s,context:a,bufferTimeSpan:n};s.add(a.closeAction=r.schedule(it,n,u))}else{var c={subscriber:s,context:a},l={bufferTimeSpan:n,bufferCreationInterval:o,subscriber:s,scheduler:r};s.add(a.closeAction=r.schedule(st,n,c)),s.add(r.schedule(rt,o,l))}return s}return o.__extends(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,o=n.length,i=0;i<o;i++){var r=n[i],s=r.buffer;s.push(t),s.length==this.maxBufferSize&&(e=r)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var o=e.shift();n.next(o.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,o={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(it,n,o))}},e.prototype.openContext=function(){var t=new nt;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(b);function it(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function rt(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,o=t.subscriber,i=t.scheduler,r=o.openContext();o.closed||(o.add(r.closeAction=i.schedule(st,n,{subscriber:o,context:r})),this.schedule(t,e))}function st(t){var e=t.subscriber,n=t.context;e.closeContext(n)}function at(t,e){return function(n){return n.lift(new ut(t,e))}}var ut=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new ct(t,this.openings,this.closingSelector))},t}(),ct=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=o,i.contexts=[],i.add(L(i,n)),i}return o.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,o=0;o<n;o++)e[o].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var o=n.shift();o.subscription.unsubscribe(),o.buffer=null,o.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,o,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,o=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(o),o.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new h,o={buffer:[],subscription:n};e.push(o);var i=L(this,t,o);!i||i.closed?this.closeBuffer(o):(i.context=o,this.add(i),n.add(i))},e}(_);function lt(t){return function(e){return e.lift(new dt(t))}}var dt=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new pt(t,this.closingSelector))},t}(),pt=function(t){function e(e,n){var o=t.call(this,e)||this;return o.closingSelector=n,o.subscribing=!1,o.openBuffer(),o}return o.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,o,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new h,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(L(this,e)),this.subscribing=!1},e}(_);function ht(t){return function(e){var n=new ft(t),o=e.lift(n);return n.caught=o}}var ft=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new mt(t,this.selector,this.caught))},t}(),mt=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.selector=n,i.caught=o,i}return o.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var o=new y(this,void 0,void 0);this.add(o),L(this,n,void 0,void 0,o)}},e}(_);function bt(t,e){return new C(e?function(n){var o=new h,i=0;return o.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||o.add(this.schedule())):n.complete()}))),o}:E(t))}var vt={};var _t=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new yt(t,this.resultSelector))},t}(),yt=function(t){function e(e,n){var o=t.call(this,e)||this;return o.resultSelector=n,o.active=0,o.values=[],o.observables=[],o}return o.__extends(e,t),e.prototype._next=function(t){this.values.push(vt),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var o=t[n];this.add(L(this,o,o,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,o,i){var r=this.values,s=r[n],a=this.toRespond?s===vt?--this.toRespond:this.toRespond:0;r[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(_);function gt(t){return function(e){return e.lift(new _t(t))}}function wt(t,e){if(!e)return t instanceof C?t:new C(z(t));if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new C(e?function(n){var o=new h;return o.add(e.schedule((function(){var i=t[g]();o.add(i.subscribe({next:function(t){o.add(e.schedule((function(){return n.next(t)})))},error:function(t){o.add(e.schedule((function(){return n.error(t)})))},complete:function(){o.add(e.schedule((function(){return n.complete()})))}}))}))),o}:O(t))}(t,e);if(P(t))return function(t,e){return new C(e?function(n){var o=new h;return o.add(e.schedule((function(){return t.then((function(t){o.add(e.schedule((function(){n.next(t),o.add(e.schedule((function(){return n.complete()})))})))}),(function(t){o.add(e.schedule((function(){return n.error(t)})))}))}))),o}:T(t))}(t,e);if(A(t))return bt(t,e);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new C(e?function(n){var o,i=new h;return i.add((function(){o&&"function"==typeof o.return&&o.return()})),i.add(e.schedule((function(){o=t[D](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=o.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}:B(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function xt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&c(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(wt([e].concat(t)),new _t(n))}}var kt=new C((function(t){return t.complete()}));function Ct(t){return t?function(t){return new C((function(e){return t.schedule((function(){return e.complete()}))}))}(t):kt}function St(t){var e=new C((function(e){e.next(t),e.complete()}));return e._isScalar=!0,e.value=t,e}function Et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(q(n)?t.pop():n=void 0,t.length){case 0:return Ct(n);case 1:return n?bt(t,n):St(t[0]);default:return bt(t,n)}}function Tt(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new It(t,e))}}var It=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Dt(t,this.project,this.thisArg))},t}(),Dt=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=o||i,i}return o.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(b);function Bt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(o){return o.pipe(Bt((function(n,o){return wt(t(n,o)).pipe(Tt((function(t,i){return e(n,t,o,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new Ot(t,n))})}var Ot=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new At(t,this.project,this.concurrent))},t}(),At=function(t){function e(e,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return o.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var o=new y(this,void 0,void 0);this.destination.add(o),L(this,t,e,n,o)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,o,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(_);function Pt(t){return t}function zt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Bt(Pt,t)}function Lt(){return zt(1)}function Ft(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Lt()(Et.apply(void 0,t))}function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Ft.apply(void 0,[e].concat(t)))}}function Nt(t,e){return Bt(t,e,1)}function jt(t,e){return Nt((function(){return t}),e)}function Vt(t){return function(e){return e.lift(new Rt(t,e))}}var Rt=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Wt(t,this.predicate,this.source))},t}(),Wt=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.predicate=n,i.source=o,i.count=0,i.index=0,i}return o.__extends(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(b);function Ht(t){return function(e){return e.lift(new qt(t))}}var qt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.durationSelector))},t}(),Ut=function(t){function e(e,n){var o=t.call(this,e)||this;return o.durationSelector=n,o.hasValue=!1,o.durationSubscription=null,o}return o.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=L(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,o,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(_);function Kt(t,e){return void 0===e&&(e=W),function(n){return n.lift(new Yt(t,e))}}var Yt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Gt(t,this.dueTime,this.scheduler))},t}(),Gt=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=o,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return o.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Jt,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(b);function Jt(t){t.debouncedNext()}function $t(t){return void 0===t&&(t=null),function(e){return e.lift(new Xt(t))}}var Zt,Xt=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Qt(t,this.defaultValue))},t}(),Qt=function(t){function e(e,n){var o=t.call(this,e)||this;return o.defaultValue=n,o.isEmpty=!0,o}return o.__extends(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(b);function te(t){return t instanceof Date&&!isNaN(+t)}function ee(t,e){return new C(e?function(n){return e.schedule(ne,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function ne(t){var e=t.error;t.subscriber.error(e)}Zt||(Zt={});var oe=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Et(this.value);case"E":return ee(this.error);case"C":return Ct()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function ie(t,e){void 0===e&&(e=W);var n=te(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new re(n,e))}}var re=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new se(t,this.delay,this.scheduler))},t}(),se=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=o,i.queue=[],i.active=!1,i.errored=!1,i}return o.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,o=t.scheduler,i=t.destination;n.length>0&&n[0].time-o.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var r=Math.max(0,n[0].time-o.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new ae(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(oe.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(oe.createComplete()),this.unsubscribe()},e}(b),ae=function(){return function(t,e){this.time=t,this.notification=e}}();function ue(t,e){return e?function(n){return new de(n,e).lift(new ce(t))}:function(e){return e.lift(new ce(t))}}var ce=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new le(t,this.delayDurationSelector))},t}(),le=function(t){function e(e,n){var o=t.call(this,e)||this;return o.delayDurationSelector=n,o.completed=!1,o.delayNotifierSubscriptions=[],o.index=0,o}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=L(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(_),de=function(t){function e(e,n){var o=t.call(this)||this;return o.source=e,o.subscriptionDelay=n,o}return o.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new pe(t,this.source))},e}(C),pe=function(t){function e(e,n){var o=t.call(this)||this;return o.parent=e,o.source=n,o.sourceSubscribed=!1,o}return o.__extends(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(b);function he(){return function(t){return t.lift(new fe)}}var fe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new me(t))},t}(),me=function(t){function e(e){return t.call(this,e)||this}return o.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(b);function be(t,e){return function(n){return n.lift(new ve(t,e))}}var ve=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new _e(t,this.keySelector,this.flushes))},t}(),_e=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,o&&i.add(L(i,o)),i}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(_);function ye(t,e){return function(n){return n.lift(new ge(t,e))}}var ge=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new we(t,this.compare,this.keySelector))},t}(),we=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.keySelector=o,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return o.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var o=!1;if(this.hasKey)try{o=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;o||(this.key=e,this.destination.next(t))},e}(b);function xe(t,e){return ye((function(n,o){return e?e(n[t],o[t]):n[t]===o[t]}))}function ke(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}ke.prototype=Object.create(Error.prototype);var Ce=ke;function Se(t,e){return function(n){return n.lift(new Ee(t,e))}}var Ee=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Te(t,this.predicate,this.thisArg))},t}(),Te=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=o,i.count=0,i}return o.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(b);function Ie(t,e,n){return function(o){return o.lift(new De(t,e,n))}}var De=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.nextOrObserver,this.error,this.complete))},t}(),Be=function(t){function e(e,n,o,r){var s=t.call(this,e)||this;return s._tapNext=w,s._tapError=w,s._tapComplete=w,s._tapError=o||w,s._tapComplete=r||w,i(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||w,s._tapError=n.error||w,s._tapComplete=n.complete||w),s}return o.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(b);function Oe(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Oe.prototype=Object.create(Error.prototype);var Ae=Oe,Pe=function(t){return void 0===t&&(t=ze),Ie({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function ze(){return new Ae}function Le(t){return function(e){return 0===t?Ct():e.lift(new Fe(t))}}var Fe=function(){function t(t){if(this.total=t,this.total<0)throw new Ce}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.total))},t}(),Me=function(t){function e(e,n){var o=t.call(this,e)||this;return o.total=n,o.count=0,o}return o.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(b);function Ne(t,e){if(t<0)throw new Ce;var n=arguments.length>=2;return function(o){return o.pipe(Se((function(e,n){return n===t})),Le(1),n?$t(e):Pe((function(){return new Ce})))}}function je(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];q(n)?t.pop():n=null;var o=t.length;return Ft(e,1!==o||n?o>0?bt(t,n):Ct(n):St(t[0]))}}function Ve(t,e){return function(n){return n.lift(new Re(t,e,n))}}var Re=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new We(t,this.predicate,this.thisArg,this.source))},t}(),We=function(t){function e(e,n,o,i){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=o,r.source=i,r.index=0,r.thisArg=o||r,r}return o.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(b);function He(){return function(t){return t.lift(new qe)}}var qe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ue(t))},t}(),Ue=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return o.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(L(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(_);function Ke(t,e){return e?function(n){return n.pipe(Ke((function(n,o){return wt(t(n,o)).pipe(Tt((function(t,i){return e(n,t,o,i)})))})))}:function(e){return e.lift(new Ye(t))}}var Ye=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ge(t,this.project))},t}(),Ge=function(t){function e(e,n){var o=t.call(this,e)||this;return o.project=n,o.hasSubscription=!1,o.hasCompleted=!1,o.index=0,o}return o.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var o=new y(this,void 0,void 0);this.destination.add(o),L(this,t,e,n,o)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,o,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(_);function Je(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(o){return o.lift(new $e(t,e,n))}}var $e=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Ze(t,this.project,this.concurrent,this.scheduler))},t}(),Ze=function(t){function e(e,n,o,i){var r=t.call(this,e)||this;return r.project=n,r.concurrent=o,r.scheduler=i,r.index=0,r.active=0,r.hasCompleted=!1,o<Number.POSITIVE_INFINITY&&(r.buffer=[]),r}return o.__extends(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,o=t.value,i=t.index;e.subscribeToProjection(n,o,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var o=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,o);if(this.scheduler){var r={subscriber:this,result:i,value:t,index:o};this.destination.add(this.scheduler.schedule(e.dispatch,0,r))}else this.subscribeToProjection(i,t,o)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(L(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,o,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(_);function Xe(t){return function(e){return e.lift(new Qe(t))}}var Qe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new tn(t,this.callback))},t}(),tn=function(t){function e(e,n){var o=t.call(this,e)||this;return o.add(new h(n)),o}return o.__extends(e,t),e}(b);function en(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(t,n,!1,e))}}var nn=function(){function t(t,e,n,o){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=o}return t.prototype.call=function(t,e){return e.subscribe(new on(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),on=function(t){function e(e,n,o,i,r){var s=t.call(this,e)||this;return s.predicate=n,s.source=o,s.yieldIndex=i,s.thisArg=r,s.index=0,s}return o.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,o=this.index++;try{e.call(n||this,t,o,this.source)&&this.notifyComplete(this.yieldIndex?o:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(b);function rn(t,e){return function(n){return n.lift(new nn(t,n,!0,e))}}function sn(t,e){var n=arguments.length>=2;return function(o){return o.pipe(t?Se((function(e,n){return t(e,n,o)})):Pt,Le(1),n?$t(e):Pe((function(){return new Ae})))}}function an(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}an.prototype=Object.create(Error.prototype);var un=an,cn=function(t){function e(e,n){var o=t.call(this)||this;return o.subject=e,o.subscriber=n,o.closed=!1,o}return o.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(h),ln=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o.__extends(e,t),e}(b),dn=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o.__extends(e,t),e.prototype[m]=function(){return new ln(this)},e.prototype.lift=function(t){var e=new pn(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new un;if(!this.isStopped)for(var e=this.observers,n=e.length,o=e.slice(),i=0;i<n;i++)o[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new un;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,o=e.slice(),i=0;i<n;i++)o[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new un;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),o=0;o<e;o++)n[o].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new un;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new un;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new cn(this,t))},e.prototype.asObservable=function(){var t=new C;return t.source=this,t},e.create=function(t,e){return new pn(t,e)},e}(C),pn=function(t){function e(e,n){var o=t.call(this)||this;return o.destination=e,o.source=n,o}return o.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):h.EMPTY},e}(dn);function hn(t,e,n,o){return function(i){return i.lift(new fn(t,e,n,o))}}var fn=function(){function t(t,e,n,o){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=o}return t.prototype.call=function(t,e){return e.subscribe(new mn(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),mn=function(t){function e(e,n,o,i,r){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=o,s.durationSelector=i,s.subjectSelector=r,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return o.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var o,i=n.get(e);if(this.elementSelector)try{o=this.elementSelector(t)}catch(t){this.error(t)}else o=t;if(!i){i=this.subjectSelector?this.subjectSelector():new dn,n.set(e,i);var r=new vn(e,i,this);if(this.destination.next(r),this.durationSelector){var s=void 0;try{s=this.durationSelector(new vn(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new bn(e,i,this)))}}i.closed||i.next(o)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(b),bn=function(t){function e(e,n,o){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=o,i}return o.__extends(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(b),vn=function(t){function e(e,n,o){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=o,i}return o.__extends(e,t),e.prototype._subscribe=function(t){var e=new h,n=this.refCountSubscription,o=this.groupSubject;return n&&!n.closed&&e.add(new _n(n)),e.add(o.subscribe(t)),e},e}(C),_n=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return o.__extends(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(h);function yn(){return function(t){return t.lift(new gn)}}var gn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new wn(t))},t}(),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype._next=function(t){},e}(b);function xn(){return function(t){return t.lift(new kn)}}var kn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Cn(t))},t}(),Cn=function(t){function e(e){return t.call(this,e)||this}return o.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(b);function Sn(t){return function(e){return 0===t?Ct():e.lift(new En(t))}}var En=function(){function t(t){if(this.total=t,this.total<0)throw new Ce}return t.prototype.call=function(t,e){return e.subscribe(new Tn(t,this.total))},t}(),Tn=function(t){function e(e,n){var o=t.call(this,e)||this;return o.total=n,o.ring=new Array,o.count=0,o}return o.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,o=this.count++;e.length<n?e.push(t):e[o%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,o=this.ring,i=0;i<n;i++){var r=e++%n;t.next(o[r])}t.complete()},e}(b);function In(t,e){var n=arguments.length>=2;return function(o){return o.pipe(t?Se((function(e,n){return t(e,n,o)})):Pt,Sn(1),n?$t(e):Pe((function(){return new Ae})))}}function Dn(t){return function(e){return e.lift(new Bn(t))}}var Bn=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new On(t,this.value))},t}(),On=function(t){function e(e,n){var o=t.call(this,e)||this;return o.value=n,o}return o.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(b);function An(){return function(t){return t.lift(new Pn)}}var Pn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new zn(t))},t}(),zn=function(t){function e(e){return t.call(this,e)||this}return o.__extends(e,t),e.prototype._next=function(t){this.destination.next(oe.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(oe.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(oe.createComplete()),t.complete()},e}(b);function Ln(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new Fn(t,e,n))}}var Fn=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Mn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Mn=function(t){function e(e,n,o,i){var r=t.call(this,e)||this;return r.accumulator=n,r._seed=o,r.hasSeed=i,r.index=0,r}return o.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(b);function Nn(t,e){return arguments.length>=2?function(n){return x(Ln(t,e),Sn(1),$t(e))(n)}:function(e){return x(Ln((function(e,n,o){return t(e,n,o+1)})),Sn(1))(e)}}function jn(t){return Nn("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}function Vn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,o=null,i=t[t.length-1];return q(i)?(o=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===o&&1===t.length&&t[0]instanceof C?t[0]:zt(n)(bt(t,o))}function Rn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Vn.apply(void 0,[e].concat(t)))}}function Wn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Bt((function(){return t}),e,n):("number"==typeof e&&(n=e),Bt((function(){return t}),n))}function Hn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(o){return o.lift(new qn(t,e,n))}}var qn=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Un(t,this.accumulator,this.seed,this.concurrent))},t}(),Un=function(t){function e(e,n,o,i){var r=t.call(this,e)||this;return r.accumulator=n,r.acc=o,r.concurrent=i,r.hasValue=!1,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return o.__extends(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,o=void 0;try{o=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(o,t,e)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){var o=new y(this,void 0,void 0);this.destination.add(o),L(this,t,e,n,o)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,o,i){var r=this.destination;this.acc=e,this.hasValue=!0,r.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(_);function Kn(t){return Nn("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}function Yn(){return function(t){return t.lift(new Gn(t))}}var Gn=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var o=new Jn(t,n),i=e.subscribe(o);return o.closed||(o.connection=n.connect()),i},t}(),Jn=function(t){function e(e,n){var o=t.call(this,e)||this;return o.connectable=n,o}return o.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,o=t._connection;this.connection=null,!o||n&&o!==n||o.unsubscribe()}}else this.connection=null},e}(b),$n=function(t){function e(e,n){var o=t.call(this)||this;return o.source=e,o.subjectFactory=n,o._refCount=0,o._isComplete=!1,o}return o.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new h).add(this.source.subscribe(new Xn(this.getSubject(),this))),t.closed?(this._connection=null,t=h.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Yn()(this)},e}(C).prototype,Zn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:$n._subscribe},_isComplete:{value:$n._isComplete,writable:!0},getSubject:{value:$n.getSubject},connect:{value:$n.connect},refCount:{value:$n.refCount}},Xn=function(t){function e(e,n){var o=t.call(this,e)||this;return o.connectable=n,o}return o.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(ln);function Qn(t,e){return function(n){var o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new to(o,e));var i=Object.create(n,Zn);return i.source=n,i.subjectFactory=o,i}}var to=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,o=this.subjectFactory(),i=n(o).subscribe(t);return i.add(e.subscribe(o)),i},t}();function eo(t,e){return void 0===e&&(e=0),function(n){return n.lift(new no(t,e))}}var no=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new oo(t,this.scheduler,this.delay))},t}(),oo=function(t){function e(e,n,o){void 0===o&&(o=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=o,i}return o.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new io(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(oe.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(oe.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(oe.createComplete()),this.unsubscribe()},e}(b),io=function(){return function(t,e){this.notification=t,this.destination=e}}();function ro(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&c(t[0])&&(t=t[0]),function(e){return e.lift(new so(t))}}var so=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new ao(t,this.nextSources))},t}(),ao=function(t){function e(e,n){var o=t.call(this,e)||this;return o.destination=e,o.nextSources=n,o}return o.__extends(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new y(this,void 0,void 0);this.destination.add(e),L(this,t,void 0,void 0,e)}else this.destination.complete()},e}(_);function uo(){return function(t){return t.lift(new co)}}var co=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new lo(t))},t}(),lo=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return o.__extends(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(b);function po(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function ho(t,e){return function(n){return[Se(t,e)(n),Se(po(t,e))(n)]}}function fo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Tt(mo(t,n))(e)}}function mo(t,e){return function(n){for(var o=n,i=0;i<e;i++){var r=o[t[i]];if(void 0===r)return;o=r}return o}}function bo(t){return t?Qn((function(){return new dn}),t):Qn(new dn)}var vo=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new un;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(dn);function _o(t){return function(e){return Qn(new vo(t))(e)}}var yo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return o.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),h.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(dn);function go(){return function(t){return Qn(new yo)(t)}}var wo=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.scheduler=e,o.work=n,o}return o.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,o){return void 0===o&&(o=0),null!==o&&o>0||null===o&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,o):e.flush(this)},e}(j),xo=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e}(R))(wo),ko=function(t){function e(e,n,o){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=o,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return o.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Co(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,o=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=o.length;if(this.closed)throw new un;if(this.isStopped||this.hasError?e=h.EMPTY:(this.observers.push(t),e=new cn(this,t)),i&&t.add(t=new oo(t,i)),n)for(var s=0;s<r&&!t.closed;s++)t.next(o[s]);else for(s=0;s<r&&!t.closed;s++)t.next(o[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||xo).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,o=this._events,i=o.length,r=0;r<i&&!(t-o[r].time<n);)r++;return i>e&&(r=Math.max(r,i-e)),r>0&&o.splice(0,r),o},e}(dn),Co=function(){return function(t,e){this.time=t,this.value=e}}();function So(t,e,n,o){n&&"function"!=typeof n&&(o=n);var i="function"==typeof n?n:void 0,r=new ko(t,e,o);return function(t){return Qn((function(){return r}),i)(t)}}function Eo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!c(t[0]))return t[0];t=t[0]}return bt(t,void 0).lift(new To)}var To=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Io(t))},t}(),Io=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return o.__extends(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var o=t[n],i=L(this,o,o,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,o,i){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var s=this.subscriptions[r];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(_);function Do(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&c(t[0])&&(t=t[0]),e.lift.call(Eo.apply(void 0,[e].concat(t)))}}function Bo(t){return void 0===t&&(t=-1),function(e){return 0===t?Ct():t<0?e.lift(new Oo(-1,e)):e.lift(new Oo(t-1,e))}}var Oo=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ao(t,this.count,this.source))},t}(),Ao=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.count=n,i.source=o,i}return o.__extends(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(b);function Po(t){return function(e){return e.lift(new zo(t))}}var zo=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Lo(t,this.notifier,e))},t}(),Lo=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.notifier=n,i.source=o,i.sourceIsBeingSubscribedTo=!0,i}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new dn;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=L(this,e)},e}(_);function Fo(t){return void 0===t&&(t=-1),function(e){return e.lift(new Mo(t,e))}}var Mo=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new No(t,this.count,this.source))},t}(),No=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.count=n,i.source=o,i}return o.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,o=this.count;if(0===o)return t.prototype.error.call(this,e);o>-1&&(this.count=o-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(b);function jo(t){return function(e){return e.lift(new Vo(t,e))}}var Vo=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ro(t,this.notifier,this.source))},t}(),Ro=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.notifier=n,i.source=o,i}return o.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,o=this.retries,i=this.retriesSubscription;if(o)this.errors=null,this.retriesSubscription=null;else{n=new dn;try{o=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}i=L(this,o)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=o,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,o,i){var r=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=r,this.source.subscribe(this)},e}(_);function Wo(t){return function(e){return e.lift(new Ho(t))}}var Ho=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new qo(t),o=e.subscribe(n);return o.add(L(n,this.notifier)),o},t}(),qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return o.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,o,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(_);function Uo(t,e){return void 0===e&&(e=W),function(n){return n.lift(new Ko(t,e))}}var Ko=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Yo(t,this.period,this.scheduler))},t}(),Yo=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.period=n,i.scheduler=o,i.hasValue=!1,i.add(o.schedule(Go,n,{subscriber:i,period:n})),i}return o.__extends(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(b);function Go(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Jo(t,e){return function(n){return n.lift(new $o(t,e))}}var $o=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Zo(t,this.compareTo,this.comparator))},t}(),Zo=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=o,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Xo(e,i))),i}return o.__extends(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var o=t.shift(),i=e.shift(),r=!1;try{r=n?n(o,i):o===i}catch(t){this.destination.error(t)}r||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(b),Xo=function(t){function e(e,n){var o=t.call(this,e)||this;return o.parent=n,o}return o.__extends(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(b);function Qo(){return new dn}function ti(){return function(t){return Yn()(Qn(Qo)(t))}}function ei(t,e,n){var o;return o=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,o=t.bufferSize,i=void 0===o?Number.POSITIVE_INFINITY:o,r=t.windowTime,s=void 0===r?Number.POSITIVE_INFINITY:r,a=t.refCount,u=t.scheduler,c=0,l=!1,d=!1;return function(t){c++,e&&!l||(l=!1,e=new ko(i,s,u),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){d=!0,e.complete()}}));var o=e.subscribe(this);this.add((function(){c--,o.unsubscribe(),n&&!d&&a&&0===c&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(o))}}function ni(t){return function(e){return e.lift(new oi(t,e))}}var oi=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new ii(t,this.predicate,this.source))},t}(),ii=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.predicate=n,i.source=o,i.seenValue=!1,i.index=0,i}return o.__extends(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Ae)},e}(b);function ri(t){return function(e){return e.lift(new si(t))}}var si=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new ai(t,this.total))},t}(),ai=function(t){function e(e,n){var o=t.call(this,e)||this;return o.total=n,o.count=0,o}return o.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(b);function ui(t){return function(e){return e.lift(new ci(t))}}var ci=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ce}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new b(t)):e.subscribe(new li(t,this._skipCount))},t}(),li=function(t){function e(e,n){var o=t.call(this,e)||this;return o._skipCount=n,o._count=0,o._ring=new Array(n),o}return o.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var o=n%e,i=this._ring,r=i[o];i[o]=t,this.destination.next(r)}},e}(b);function di(t){return function(e){return e.lift(new pi(t))}}var pi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new hi(t,this.notifier))},t}(),hi=function(t){function e(e,n){var o=t.call(this,e)||this;o.hasValue=!1;var i=new y(o,void 0,void 0);return o.add(i),o.innerSubscription=i,L(o,n,void 0,void 0,i),o}return o.__extends(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,o,i){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(_);function fi(t){return function(e){return e.lift(new mi(t))}}var mi=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new bi(t,this.predicate))},t}(),bi=function(t){function e(e,n){var o=t.call(this,e)||this;return o.predicate=n,o.skipping=!0,o.index=0,o}return o.__extends(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(b);function vi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];q(n)?t.pop():n=null;var o=t.length;return Ft(1!==o||n?o>0?bt(t,n):Ct(n):St(t[0]),e)}}var _i=1,yi={};var gi=function(t){var e=_i++;return yi[e]=t,Promise.resolve().then((function(){return function(t){var e=yi[t];e&&e()}(e)})),e},wi=function(t){delete yi[t]},xi=function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.scheduler=e,o.work=n,o}return o.__extends(e,t),e.prototype.requestAsyncId=function(e,n,o){return void 0===o&&(o=0),null!==o&&o>0?t.prototype.requestAsyncId.call(this,e,n,o):(e.actions.push(this),e.scheduled||(e.scheduled=gi(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,o){if(void 0===o&&(o=0),null!==o&&o>0||null===o&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,o);0===e.actions.length&&(wi(n),e.scheduled=void 0)},e}(j),ki=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,o=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++o<i&&(t=n.shift()));if(this.active=!1,e){for(;++o<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(R))(xi),Ci=function(t){function e(e,n,o){void 0===n&&(n=0),void 0===o&&(o=ki);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=o,(!H(n)||n<0)&&(i.delayTime=0),o&&"function"==typeof o.schedule||(i.scheduler=ki),i}return o.__extends(e,t),e.create=function(t,n,o){return void 0===n&&(n=0),void 0===o&&(o=ki),new e(t,n,o)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,o=this.source;return this.scheduler.schedule(e.dispatch,n,{source:o,subscriber:t})},e}(C);function Si(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Ei(t,e))}}var Ei=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Ci(e,this.delay,this.scheduler).subscribe(t)},t}();function Ti(t,e){return"function"==typeof e?function(n){return n.pipe(Ti((function(n,o){return wt(t(n,o)).pipe(Tt((function(t,i){return e(n,t,o,i)})))})))}:function(e){return e.lift(new Ii(t))}}var Ii=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Di(t,this.project))},t}(),Di=function(t){function e(e,n){var o=t.call(this,e)||this;return o.project=n,o.index=0,o}return o.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var o=this.innerSubscription;o&&o.unsubscribe();var i=new y(this,void 0,void 0);this.destination.add(i),this.innerSubscription=L(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,o,i){this.destination.next(e)},e}(_);function Bi(){return Ti(Pt)}function Oi(t,e){return e?Ti((function(){return t}),e):Ti((function(){return t}))}function Ai(t){return function(e){return e.lift(new Pi(t))}}var Pi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new zi(t),o=L(n,this.notifier);return o&&!n.seenValue?(n.add(o),e.subscribe(n)):n},t}(),zi=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(_);function Li(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new Fi(t,e))}}var Fi=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new Mi(t,this.predicate,this.inclusive))},t}(),Mi=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=o,i.index=0,i}return o.__extends(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(b),Ni={leading:!0,trailing:!1};function ji(t,e){return void 0===e&&(e=Ni),function(n){return n.lift(new Vi(t,e.leading,e.trailing))}}var Vi=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new Ri(t,this.durationSelector,this.leading,this.trailing))},t}(),Ri=function(t){function e(e,n,o,i){var r=t.call(this,e)||this;return r.destination=e,r.durationSelector=n,r._leading=o,r._trailing=i,r._hasValue=!1,r}return o.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=L(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,o,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(_);function Wi(t,e,n){return void 0===e&&(e=W),void 0===n&&(n=Ni),function(o){return o.lift(new Hi(t,e,n.leading,n.trailing))}}var Hi=function(){function t(t,e,n,o){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=o}return t.prototype.call=function(t,e){return e.subscribe(new qi(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),qi=function(t){function e(e,n,o,i,r){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=o,s.leading=i,s.trailing=r,s._hasTrailingValue=!1,s._trailingValue=null,s}return o.__extends(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Ui,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(b);function Ui(t){t.subscriber.clearThrottle()}function Ki(t){return void 0===t&&(t=W),function(e){return n=function(){return e.pipe(Ln((function(e,n){var o=e.current;return{value:n,current:t.now(),last:o}}),{current:t.now(),value:void 0,last:void 0}),Tt((function(t){var e=t.current,n=t.last,o=t.value;return new Yi(o,e-n)})))},new C((function(t){var e;try{e=n()}catch(e){return void t.error(e)}return(e?wt(e):Ct()).subscribe(t)}));var n}}var Yi=function(){return function(t,e){this.value=t,this.interval=e}}();function Gi(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Gi.prototype=Object.create(Error.prototype);var Ji=Gi;function $i(t,e,n){return void 0===n&&(n=W),function(o){var i=te(t),r=i?+t-n.now():Math.abs(t);return o.lift(new Zi(r,i,e,n))}}var Zi=function(){function t(t,e,n,o){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=o}return t.prototype.call=function(t,e){return e.subscribe(new Xi(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Xi=function(t){function e(e,n,o,i,r){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=o,s.withObservable=i,s.scheduler=r,s.action=null,s.scheduleTimeout(),s}return o.__extends(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(L(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(_);function Qi(t,e){return void 0===e&&(e=W),$i(t,ee(new Ji),e)}function tr(t){return void 0===t&&(t=W),Tt((function(e){return new er(e,t.now())}))}var er=function(){return function(t,e){this.value=t,this.timestamp=e}}();function nr(t,e,n){return 0===n?[e]:(t.push(e),t)}function or(){return Nn(nr,[])}function ir(t){return function(e){return e.lift(new rr(t))}}var rr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new sr(t),o=e.subscribe(n);return o.closed||n.add(L(n,this.windowBoundaries)),o},t}(),sr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new dn,e.next(n.window),n}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new dn;e.next(n)},e}(_);function ar(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ur(t,e))}}var ur=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new cr(t,this.windowSize,this.startWindowEvery))},t}(),cr=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=o,i.windows=[new dn],i.count=0,e.next(i.windows[0]),i}return o.__extends(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,o=this.windowSize,i=this.windows,r=i.length,s=0;s<r&&!this.closed;s++)i[s].next(t);var a=this.count-o+1;if(a>=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new dn;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(b);function lr(t){var e=W,n=null,o=Number.POSITIVE_INFINITY;return q(arguments[3])&&(e=arguments[3]),q(arguments[2])?e=arguments[2]:H(arguments[2])&&(o=arguments[2]),q(arguments[1])?e=arguments[1]:H(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new dr(t,n,o,e))}}var dr=function(){function t(t,e,n,o){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=o}return t.prototype.call=function(t,e){return e.subscribe(new hr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),pr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return o.__extends(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(dn),hr=function(t){function e(e,n,o,i,r){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=o,s.maxWindowSize=i,s.scheduler=r,s.windows=[];var a=s.openWindow();if(null!==o&&o>=0){var u={subscriber:s,window:a,context:null},c={windowTimeSpan:n,windowCreationInterval:o,subscriber:s,scheduler:r};s.add(r.schedule(br,n,u)),s.add(r.schedule(mr,o,c))}else{var l={subscriber:s,window:a,windowTimeSpan:n};s.add(r.schedule(fr,n,l))}return s}return o.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,o=0;o<n;o++){var i=e[o];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new pr;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(b);function fr(t){var e=t.subscriber,n=t.windowTimeSpan,o=t.window;o&&e.closeWindow(o),t.window=e.openWindow(),this.schedule(t,n)}function mr(t){var e=t.windowTimeSpan,n=t.subscriber,o=t.scheduler,i=t.windowCreationInterval,r=n.openWindow(),s={action:this,subscription:null},a={subscriber:n,window:r,context:s};s.subscription=o.schedule(br,e,a),this.add(s.subscription),this.schedule(t,i)}function br(t){var e=t.subscriber,n=t.window,o=t.context;o&&o.action&&o.subscription&&o.action.remove(o.subscription),e.closeWindow(n)}function vr(t,e){return function(n){return n.lift(new _r(t,e))}}var _r=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new yr(t,this.openings,this.closingSelector))},t}(),yr=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=o,i.contexts=[],i.add(i.openSubscription=L(i,n,n)),i}return o.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,o=0;o<n;o++)e[o].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var o=n.length,i=-1;++i<o;){var r=n[i];r.window.error(e),r.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,o=-1;++o<n;){var i=e[o];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var o=t[n];o.window.unsubscribe(),o.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,o,i){if(t===this.openings){var r=void 0;try{r=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var s=new dn,a=new h,u={window:s,subscription:a};this.contexts.push(u);var c=L(this,r,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,a.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],o=n.window,i=n.subscription;e.splice(t,1),o.complete(),i.unsubscribe()}},e}(_);function gr(t){return function(e){return e.lift(new wr(t))}}var wr=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new xr(t,this.closingSelector))},t}(),xr=function(t){function e(e,n){var o=t.call(this,e)||this;return o.destination=e,o.closingSelector=n,o.openWindow(),o}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,o=this.window=new dn;this.destination.next(o);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=L(this,n))},e}(_);function kr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var o=t;return e.lift(new Cr(o,n))}}var Cr=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Sr(t,this.observables,this.project))},t}(),Sr=function(t){function e(e,n,o){var i=t.call(this,e)||this;i.observables=n,i.project=o,i.toRespond=[];var r=n.length;i.values=new Array(r);for(var s=0;s<r;s++)i.toRespond.push(s);for(s=0;s<r;s++){var a=n[s];i.add(L(i,a,a,s))}return i}return o.__extends(e,t),e.prototype.notifyNext=function(t,e,n,o,i){this.values[n]=e;var r=this.toRespond;if(r.length>0){var s=r.indexOf(n);-1!==s&&r.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(_);function Er(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),bt(t,void 0).lift(new Tr(n))}var Tr=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ir(t,this.resultSelector))},t}(),Ir=function(t){function e(e,n,o){void 0===o&&(o=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=o,i}return o.__extends(e,t),e.prototype._next=function(t){var e=this.iterators;c(t)?e.push(new Br(t)):"function"==typeof t[D]?e.push(new Dr(t[D]())):e.push(new Or(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var o=t[n];if(o.stillUnsubscribed)this.destination.add(o.subscribe(o,n));else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,o=0;o<e;o++){if("function"==typeof(s=t[o]).hasValue&&!s.hasValue())return}var i=!1,r=[];for(o=0;o<e;o++){var s,a=(s=t[o]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();r.push(a.value)}this.resultSelector?this._tryresultSelector(r):n.next(r),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(b),Dr=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),Br=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[D]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Or=function(t){function e(e,n,o){var i=t.call(this,e)||this;return i.parent=n,i.observable=o,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return o.__extends(e,t),e.prototype[D]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,o,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return L(this,this.observable,this,e)},e}(_);function Ar(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Er.apply(void 0,[e].concat(t)))}}function Pr(t){return function(e){return e.lift(new Tr(t))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(39),i=n(8);e.Schema=i.Schema;var r=i.marks,s=Object.assign(i.nodes,o.semanticNodes);e.schema=new i.Schema({marks:r,nodes:s})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(7),s=n(2),a=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o.data="",o}return o.__extends(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then((function(){t.textarea.nativeElement.focus()}))},e.prototype.onCancelAction=function(){this.dialog.close()},e.prototype.onConfirmAction=function(){this.editor.exec("setHTML",this.getData()),this.dialog.close(),this.editor.view.focus()},e.prototype.getData=function(){return this.textarea.nativeElement.value},e.prototype.setData=function(){this.data=this.indent(this.editor.getSource())},e.prototype.textFor=function(t){return this.localization.get(t)},e.prototype.indent=function(t){return t.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$/,"")},o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"editor",void 0),o.__decorate([i.ViewChild("textarea",{static:!0}),o.__metadata("design:type",i.ElementRef)],e.prototype,"textarea",void 0),e=o.__decorate([i.Component({styles:["\n >>> .k-editor-textarea {\n height: 100%;\n }\n "],template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'viewSource\') }}\n </kendo-dialog-titlebar>\n <textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogUpdate\') }}</button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[r.DialogRef,s.EditorLocalizationService])],e)}(r.DialogContentBase);e.SourceDialogComponent=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(12),s=n(7),a=n(8),u=n(9),c=n(2),l=n(10),d=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o.src=new r.FormControl("",r.Validators.required),o.alt=new r.FormControl(""),o.width=new r.FormControl("",r.Validators.min(1)),o.height=new r.FormControl("",r.Validators.min(1)),o.data={alt:"",height:"",src:"",width:""},o.imageData=new r.FormGroup({alt:o.alt,height:o.height,src:o.src,width:o.width}),o}return o.__extends(e,t),e.prototype.ngOnInit=function(){this.srcInputId="k-"+l.guid(),this.altTextInputId="k-"+l.guid(),this.widthInputId="k-"+l.guid(),this.heightInputId="k-"+l.guid()},e.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then((function(){t.srcInput.nativeElement.focus()}))},e.prototype.onCancelAction=function(){this.dialog.close()},e.prototype.onConfirmAction=function(){this.src.value&&(this.editor.exec("insertImage",this.getData()),this.dialog.close(),this.editor.view.focus())},e.prototype.setData=function(t){var e=a.getNodeFromSelection(t);e&&(this.src.patchValue(e.attrs.src),this.alt.patchValue(e.attrs.alt),this.width.patchValue(e.attrs.width),this.height.patchValue(e.attrs.height))},e.prototype.textFor=function(t){return this.localization.get(t)},e.prototype.getData=function(){return{alt:this.alt.value,height:this.normalizeDimension(this.height.value),src:this.src.value,width:this.normalizeDimension(this.width.value)}},e.prototype.normalizeDimension=function(t){return Number.isNaN(parseInt(t,10))||parseInt(t,10)<=0?"":u.safeString(parseInt(t,10))},o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"editor",void 0),o.__decorate([i.ViewChild("srcInput",{read:i.ElementRef,static:!0}),o.__metadata("design:type",i.ElementRef)],e.prototype,"srcInput",void 0),e=o.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertImage\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <div class="k-edit-label">\n <label [for]="srcInputId">{{ textFor(\'imageWebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="srcInputId" #srcInput [formControl]="src" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <div class="k-edit-label">\n <label [for]="altTextInputId">{{ textFor(\'imageAltText\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="altTextInputId" [formControl]="alt" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <div class="k-edit-label">\n <label [for]="widthInputId">{{ textFor(\'imageWidth\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="widthInputId" [formControl]="width" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <div class="k-edit-label">\n <label [for]="heightInputId">{{ textFor(\'imageHeight\') }}</label>\n </div>\n <div class="k-edit-field">\n <input [id]="heightInputId" [formControl]="height" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="imageData.invalid"\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogInsert\') }}</button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[s.DialogRef,c.EditorLocalizationService])],e)}(s.DialogContentBase);e.ImageDialogComponent=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(12),s=n(7),a=n(8),u=n(9),c=n(2),l=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o.linkForm=new r.FormGroup({href:new r.FormControl("",r.Validators.required),text:new r.FormControl({value:"",disabled:!0},r.Validators.required),title:new r.FormControl("")}),o}return o.__extends(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then((function(){t.hrefInput.nativeElement.focus()}))},e.prototype.onCancelAction=function(){this.dialog.close()},e.prototype.onConfirmAction=function(){var t=this.getData();this.editor.exec(this.command,t),this.dialog.close(),this.editor.view.focus()},Object.defineProperty(e.prototype,"titleText",{get:function(){return this.localization.get(this.command)},enumerable:!0,configurable:!0}),e.prototype.setData=function(t,e){"createLink"===this.command&&this.linkForm.addControl("target",new r.FormControl);var n=a.getMark(t,t.schema.marks.link);if(n)this.linkForm.reset({href:n.attrs.href,title:n.attrs.title,target:u.isPresent(n.attrs.target),text:this.setLinkText(t)});else if(t.selection.empty){var o=e.applyToWord?a.expandSelection(t,(function(){}),e).state:t;o.selection.empty||this.linkForm.patchValue({text:a.getSelectionText(o)})}else this.linkForm.patchValue({text:a.getSelectionText(t)})},e.prototype.textForWithPrefix=function(t){var e="createLink"===this.command?"link":"file";return this.textFor(e+t)},e.prototype.textFor=function(t){return this.localization.get(t)},e.prototype.setLinkText=function(t){var e=t.selection;if(e.empty&&e.$cursor){var n=e.$cursor,o=n.index();return n.parent.child(o).text}return a.getSelectionText(t)},e.prototype.getData=function(){var t=this.linkForm.value;return u.isPresent(this.linkForm.controls.target)&&(t.target=t.target?"_blank":null),t},o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"editor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"command",void 0),o.__decorate([i.ViewChild("hrefInput",{read:i.ElementRef,static:!0}),o.__metadata("design:type",i.ElementRef)],e.prototype,"hrefInput",void 0),e=o.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content">\n <form novalidate [formGroup]="linkForm">\n <div class="k-edit-label">\n <label (click)="hrefInput.focus()">{{ textForWithPrefix(\'WebAddress\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="textInput.focus()">{{ textForWithPrefix(\'Text\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n\n <div class="k-edit-label">\n <label (click)="titleInput.focus()">{{ textForWithPrefix(\'Title\') }}</label>\n </div>\n <div class="k-edit-field">\n <input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />\n </div>\n <ng-container *ngIf="command === \'createLink\'">\n <div class="k-edit-label"></div>\n <div class="k-edit-field">\n <input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />\n <label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix(\'OpenInNewWindow\') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">\n {{ textFor(\'dialogInsert\') }}\n </button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[s.DialogRef,c.EditorLocalizationService])],e)}(s.DialogContentBase);e.FileLinkDialogComponent=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorErrorMessages={schemaType:"Expected value of type Schema. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",setSchemaOnce:"The Schema cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/schema/",pluginsCallbackType:function(t){return"plugins must be a function, but received "+JSON.stringify(t)+"."},pastedContentCallbackType:function(t){return"pastedContent must be a function, but received "+JSON.stringify(t)+"."},setPluginsOnce:"The plugins cannot be changed dynamically. See http://www.telerik.com/kendo-angular-ui/components/editor/plugins/",setPlaceHolderOnce:"The placeholder cannot be changed dynamically. See https://www.telerik.com/kendo-angular-ui/components/editor/plugins/#toc-custom-plugins/",printTool:"The Print tool and functionality are supported only in iframe mode. See https://www.telerik.com/kendo-angular-ui-develop/components/editor/api/EditorPrintButtonDirective/"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=function(t){function e(e,n,o){var i=t.call(this)||this;return i.cleanedHtml=e,i.originalHtml=n,i.originalEvent=o,i}return o.__extends(e,t),e}(n(10).PreventableEvent);e.EditorPasteEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(7),s=n(2),a=n(3),u=n(17),c=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o.data=[],o}return o.__extends(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then((function(){t.formatDropDownList.dropDownList.focus()}))},e.prototype.onCancelAction=function(){this.dialog.close()},e.prototype.onConfirmAction=function(){this.value&&this.editor.exec("format",{tag:this.value}),this.dialog.close()},e.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},e.prototype.textFor=function(t){return this.localization.get(t)},o.__decorate([i.Input(),o.__metadata("design:type",a.EditorComponent)],e.prototype,"editor",void 0),o.__decorate([i.ViewChild("formatDropDownList",{read:u.FormatDropDownListComponent,static:!0}),o.__metadata("design:type",u.FormatDropDownListComponent)],e.prototype,"formatDropDownList",void 0),e=o.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'format\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[r.DialogRef,s.EditorLocalizationService])],e)}(r.DialogContentBase);e.FormatDialogComponent=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(7),s=n(2),a=n(3),u=n(16),c=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o}return o.__extends(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then((function(){t.colorPicker.focus()}))},e.prototype.handleActiveColorClick=function(t){t.preventOpen(),this.value=t.color},e.prototype.onCancelAction=function(){this.dialog.close()},e.prototype.onConfirmAction=function(){this.value&&this.editor.exec(this.editorCommand,this.value),this.dialog.close(),this.editor.view.focus()},e.prototype.setData=function(t){this.editor=t.editor,this.value=t.value,this.editorCommand=t.editorCommand,this.paletteSettings=t.paletteSettings,this.icon=t.icon,this.views=t.view?[t.view]:t.views},e.prototype.textFor=function(t){return this.localization.get(t)},o.__decorate([i.Input(),o.__metadata("design:type",a.EditorComponent)],e.prototype,"editor",void 0),o.__decorate([i.ViewChild("colorpicker",{read:u.ColorPickerComponent,static:!0}),o.__metadata("design:type",u.ColorPickerComponent)],e.prototype,"colorPicker",void 0),e=o.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(editorCommand) }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-colorpicker\n #colorpicker\n [views]="views"\n [format]="\'hex\'"\n [attr.title]="title"\n [icon]="icon"\n [(value)]="value"\n [paletteSettings]="paletteSettings"\n (activeColorClick)="handleActiveColorClick($event)"\n >\n </kendo-colorpicker>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[r.DialogRef,s.EditorLocalizationService])],e)}(r.DialogContentBase);e.ColorPickerDialogComponent=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(7),s=n(2),a=n(3),u=n(18),c=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o.data=[],o}return o.__extends(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then((function(){t.fontFamilyDropDownList.dropDownList.focus()}))},e.prototype.onCancelAction=function(){this.dialog.close()},e.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontFamily",this.value),this.dialog.close()},e.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},e.prototype.textFor=function(t){return this.localization.get(t)},o.__decorate([i.Input(),o.__metadata("design:type",a.EditorComponent)],e.prototype,"editor",void 0),o.__decorate([i.ViewChild("fontFamilyDropDownList",{read:u.FontFamilyDropDownListComponent,static:!0}),o.__metadata("design:type",u.FontFamilyDropDownListComponent)],e.prototype,"fontFamilyDropDownList",void 0),e=o.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontFamily\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[r.DialogRef,s.EditorLocalizationService])],e)}(r.DialogContentBase);e.FontFamilyDialogComponent=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(7),s=n(2),a=n(3),u=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o}return o.__extends(e,t),e.prototype.onCancelAction=function(){this.dialog.close(),this.editor.view.focus()},e.prototype.onCellClick=function(t){this.dialog.close(),this.editor.exec("insertTable",t),this.editor.view.focus()},e.prototype.setData=function(t){this.editor=t.editor},e.prototype.textFor=function(t){return this.localization.get(t)},o.__decorate([i.Input(),o.__metadata("design:type",a.EditorComponent)],e.prototype,"editor",void 0),e=o.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'insertTable\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-ct-popup k-window-content" style="text-align: center;">\n <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[r.DialogRef,s.EditorLocalizationService])],e)}(r.DialogContentBase);e.InsertTableDialogComponent=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(7),s=n(2),a=n(3),u=n(19),c=function(t){function e(e,n){var o=t.call(this,e)||this;return o.dialog=e,o.localization=n,o.data=[],o}return o.__extends(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Promise.resolve(null).then((function(){t.fontSizeDropDownList.dropDownList.focus()}))},e.prototype.onCancelAction=function(){this.dialog.close()},e.prototype.onConfirmAction=function(){this.value&&this.editor.exec("fontSize",this.value),this.dialog.close()},e.prototype.setData=function(t){this.editor=t.editor,this.data=t.data,this.defaultItem=t.defaultItem,this.value=t.value,this.itemDisabled=t.itemDisabled},e.prototype.textFor=function(t){return this.localization.get(t)},o.__decorate([i.Input(),o.__metadata("design:type",a.EditorComponent)],e.prototype,"editor",void 0),o.__decorate([i.ViewChild("fontSizeDropDownList",{read:u.FontSizeDropDownListComponent,static:!0}),o.__metadata("design:type",u.FontSizeDropDownListComponent)],e.prototype,"fontSizeDropDownList",void 0),e=o.__decorate([i.Component({template:'\n <kendo-dialog-titlebar (close)="onCancelAction()">\n {{ textFor(\'fontSize\') }}\n </kendo-dialog-titlebar>\n <div class="k-editor-dialog">\n <div class="k-editor-dialog k-popup-edit-form k-window-content k-content">\n <div class="k-edit-form-container k-window-content" style="text-align: center;">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)="onCancelAction()">{{ textFor(\'dialogCancel\') }}</button>\n <button kendoButton\n (click)="onConfirmAction()" [primary]="true">{{ textFor(\'dialogApply\') }}</button>\n </kendo-dialog-actions>\n '}),o.__metadata("design:paramtypes",[r.DialogRef,s.EditorLocalizationService])],e)}(r.DialogContentBase);e.FontSizeDialogComponent=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(21),i=function(){function t(t,e,n,i,r){var s=this;this.command=t,this.button=e,this.editor=n,this.localization=i,this.toolsService=r,setTimeout((function(){var t=s.localization.get(s.command);t&&(s.button.showText="overflow",s.button.showIcon="both",s.button.text=t),s.button.toolbarOptions.icon||(s.button.icon=o.commandIcons[s.command]),s.button.title=t,s.toolsService.needsCheck.next()}))}return t.prototype.ngOnInit=function(){this.subs=this.editor.stateChange.subscribe(this.onStateChange.bind(this)),this.subs.add(this.button.click.subscribe(this.clickHandler.bind(this))),this.subs.add(this.button.pointerdown.subscribe(this.pointerdownHandler.bind(this)))},t.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},t.prototype.clickHandler=function(){},t.prototype.pointerdownHandler=function(t){},t.prototype.onStateChange=function(t){},t}();e.EditorCommandBase=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"alignCenter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"alignJustify",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"alignLeft",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"alignRight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"backColor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"blockquote",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"bold",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"cleanFormatting",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"createLink",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"fontFamily",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"fontSize",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"foreColor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"format",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"indent",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"insertFile",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"insertImage",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"insertOrderedList",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"insertUnorderedList",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"italic",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"outdent",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"print",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"redo",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"selectAll",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"strikethrough",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"subscript",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"superscript",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"underline",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"undo",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"unlink",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"viewSource",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"insertTable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"addColumnBefore",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"addColumnAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"addRowBefore",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"addRowAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"deleteColumn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"deleteRow",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"deleteTable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"dialogApply",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"dialogCancel",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"dialogInsert",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"dialogUpdate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"fileText",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"fileTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"fileWebAddress",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"imageAltText",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"imageHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"imageWebAddress",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"imageWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"linkOpenInNewWindow",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"linkText",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"linkTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"linkWebAddress",void 0),e}(n(11).ComponentMessages);e.Messages=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(3);e.EditorComponent=o.EditorComponent;var i=n(45);e.EditorModule=i.EditorModule;var r=n(23);e.schema=r.schema,e.Schema=r.Schema;var s=n(8);e.EditorState=s.EditorState,e.Plugin=s.Plugin,e.PluginKey=s.PluginKey,e.Transaction=s.Transaction,e.EditorView=s.EditorView,e.Decoration=s.Decoration,e.DecorationSet=s.DecorationSet,e.NodeType=s.NodeType,e.Node=s.Node,e.MarkType=s.MarkType,e.Mark=s.Mark,e.InputRule=s.InputRule,e.inputRules=s.inputRules,e.wrappingInputRule=s.wrappingInputRule,e.textblockTypeInputRule=s.textblockTypeInputRule,e.keymap=s.keymap,e.baseKeymap=s.baseKeymap,e.history=s.history,e.dropCursor=s.dropCursor,e.gapCursor=s.gapCursor,e.tableNodes=s.tableNodes,e.getSelectionText=s.getSelectionText;var a=n(28);e.EditorPasteEvent=a.EditorPasteEvent},function(t,e){t.exports=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-editor",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646218976,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(40);e.semanticTagNames=["article","main","nav","header","footer","aside","section"],e.semanticNodes=e.semanticTagNames.reduce((function(t,e){var n,r;return Object.assign(t,((n={})[e]=(r=e,{content:"block*",group:"block",attrs:o.__assign({},i.commonAttributes()),parseDOM:[{tag:r,getAttrs:i.getAttributes}],toDOM:function(t){return i.hasAttrs(t.attrs)?[r,i.getAttrs(t.attrs),i.hole]:[r,i.hole]}}),n))}),{})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0);e.hasAttrs=function(t,e){for(var n in t)if(n&&null!==t[n]&&n!==e)return!0;return!1},e.getAttrs=function(t,e){var n={};for(var o in t)o&&null!==t[o]&&o!==e&&(n[o]=t[o]);return n},e.getAttributes=function(t){for(var e,n={},o=t.attributes,i=0;i<o.length;i++)n[(e=o[i]).name]=e.value;return n},e.serializeDOMAttrs=function(t){return Array.from(t.attributes).reduce((function(t,e){var n;return Object.assign({},t,((n={})[e.name]=e.value,n))}),{})},e.commonAttributes=function(){return o.__assign({},e.createDefaultAttributes(["class","id","style"]))},e.createDefaultAttributes=function(t){return void 0===t&&(t=[]),o.__assign({},t.reduce((function(t,e){var n;return o.__assign({},t,((n={})[e]={default:null},n))}),{}))},e.hole=0,e.isSchemaNode=function(t){return function(e){return e.type.name===t}},e.isTable=e.isSchemaNode("table"),e.isTableBody=e.isSchemaNode("table_body"),e.isTableHead=e.isSchemaNode("table_head"),e.isTableFoot=e.isSchemaNode("table_foot"),e.isTableRow=e.isSchemaNode("table_row"),e.isTableCell=e.isSchemaNode("table_cell"),e.isTableHeaderCell=e.isSchemaNode("table_header")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(8),r=n(42),s=function(t,e){return i.alignBlocks(i.alignRemoveRules)(t,e)},a={bold:function(t){return i.expandToWordWrap(i.toggleInlineFormat,o.__assign({},i.bold,{applyToWord:t}))},cleanFormatting:function(t){return i.cleanFormatting(t)},createLink:function(t){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:t.value,applyToWord:t.applyToWord})},fontFamily:function(t){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-family",value:t.value,applyToWord:t.applyToWord})},fontSize:function(t){return i.expandToWordWrap(i.applyInlineStyle,{style:"font-size",value:t.value+"px",applyToWord:t.applyToWord})},insertFile:function(t){return i.expandToWordWrap(i.applyLink,{mark:"link",attrs:t,applyToWord:t.applyToWord})},insertText:function(t){return i.insertText(t)},italic:function(t){return i.expandToWordWrap(i.toggleInlineFormat,o.__assign({},i.italic,{applyToWord:t}))},strikethrough:function(t){return i.expandToWordWrap(i.toggleInlineFormat,o.__assign({},i.strikethrough,{applyToWord:t}))},subscript:function(t){return i.expandToWordWrap(i.toggleInlineFormat,o.__assign({},i.subscript,{applyToWord:t}))},superscript:function(t){return i.expandToWordWrap(i.toggleInlineFormat,o.__assign({},i.superscript,{applyToWord:t}))},underline:function(t){return i.expandToWordWrap(i.toggleInlineFormat,o.__assign({},i.underline,{applyToWord:t}))},unlink:function(){return i.removeLink(i.link)},foreColor:function(t){return i.expandToWordWrap(i.applyInlineStyle,{style:"color",value:t.value,applyToWord:t.applyToWord})},backColor:function(t){return i.expandToWordWrap(i.applyInlineStyle,{style:"background-color",value:t.value,applyToWord:t.applyToWord})},selectAll:function(){return function(t,e){return i.selectAll(t,e)}}},u={alignCenter:function(){return function(t,e){return i.isAligned(t,i.alignCenterRules)?s(t,e):i.alignBlocks(i.alignCenterRules)(t,e)}},alignJustify:function(){return function(t,e){return i.isAligned(t,i.alignJustifyRules)?s(t,e):i.alignBlocks(i.alignJustifyRules)(t,e)}},alignLeft:function(){return function(t,e){return i.isAligned(t,i.alignLeftRules)?s(t,e):i.alignBlocks(i.alignLeftRules)(t,e)}},alignRight:function(){return function(t,e){return i.isAligned(t,i.alignRightRules)?s(t,e):i.alignBlocks(i.alignRightRules)(t,e)}},format:function(t){return i.formatBlockElements(t.tag)},getHTML:function(){return i.getHtml},indent:function(){return i.indent},insertImage:function(t){return i.insertImage(t)},insertOrderedList:function(){return i.toggleOrderedList},insertUnorderedList:function(){return i.toggleUnorderedList},outdent:function(){return i.outdent},redo:function(){return i.redo},setHTML:function(t){var e=t.content,n=t.parseOptions;return i.setHtml(e,"setHTML",n)},undo:function(){return i.undo},blockquote:function(){return i.blockquote}},c={insertTable:function(t){return r.insertTable(t)},addColumnBefore:function(){return i.addColumnBefore},addColumnAfter:function(){return i.addColumnAfter},addRowBefore:function(){return i.addRowBefore},addRowAfter:function(){return i.addRowAfter},deleteRow:function(){return i.deleteRow},deleteColumn:function(){return i.deleteColumn},mergeCells:function(){return i.mergeCells},splitCell:function(){return i.splitCell},deleteTable:function(){return i.deleteTable}};e.editorCommands=Object.assign({},a,u,c)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8);e.insertTable=function(t){return function(e,n){var i=o.createTable(e.schema.nodes,t.rows,t.cols);i&&o.insertNode(i,!0)(e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=n(8);e.getToolbarState=function(t,e){return{alignCenter:{selected:i.isAligned(t,i.alignCenterRules),disabled:!1},alignJustify:{selected:i.isAligned(t,i.alignJustifyRules),disabled:!1},alignLeft:{selected:i.isAligned(t,i.alignLeftRules),disabled:!1},alignRight:{selected:i.isAligned(t,i.alignRightRules),disabled:!1},bold:{selected:i.hasMark(t,i.bold),disabled:!1},cleanFormatting:{selected:!1,disabled:!o.cleanFormatting()(t)},format:{selected:i.activeNode(t),disabled:!1},blockquote:{selected:!1,disabled:!o.blockquote(t)},indent:{selected:!1,disabled:!(i.canIndentAsListItem(t,t.schema.nodes.list_item)||i.canBeIndented(t,i.indentRules))},insertOrderedList:{selected:i.hasNode(t,t.schema.nodes.ordered_list),disabled:!1},insertUnorderedList:{selected:i.hasNode(t,t.schema.nodes.bullet_list),disabled:!1},italic:{selected:i.hasMark(t,i.italic),disabled:!1},unlink:{selected:!1,disabled:!i.hasMark(t,i.link)},outdent:{selected:!1,get disabled(){return!(i.hasNode(t,t.schema.nodes.blockquote)||i.canOutdentAsListItem(t,i.outdentRules)||o.isIndented(t,i.outdentRules.nodes))}},redo:{selected:!1,disabled:!i.redo(t)},selectAll:{selected:!1,disabled:!1},strikethrough:{selected:i.hasMark(t,i.strikethrough),disabled:!1},style:{selected:i.getActiveMarks(t,t.schema.marks.style),disabled:!1},subscript:{selected:i.hasMark(t,i.subscript),disabled:!1},superscript:{selected:i.hasMark(t,i.superscript),disabled:!1},underline:{selected:i.hasMark(t,i.underline),disabled:!1},undo:{selected:!1,disabled:!i.undo(t)},createLink:{selected:!1,get disabled(){var n=t.selection.empty;return e&&e.applyToWord&&n?i.expandSelection(t,(function(){}),e).state.selection.empty:n}},insertFile:{selected:!1,disabled:t.selection.empty},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},print:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!i.addColumnBefore(t)},addColumnAfter:{selected:!1,disabled:!i.addColumnAfter(t)},addRowBefore:{selected:!1,disabled:!i.addRowBefore(t)},addRowAfter:{selected:!1,disabled:!i.addRowAfter(t)},deleteRow:{selected:!1,disabled:!i.deleteRow(t)},deleteColumn:{selected:!1,disabled:!i.deleteColumn(t)},mergeCells:{selected:!1,disabled:!i.mergeCells(t)},splitCell:{selected:!1,disabled:!i.splitCell(t)},deleteTable:{selected:!1,disabled:!i.deleteTable(t)}}},e.initialToolBarState={alignCenter:{selected:!1,disabled:!1},alignJustify:{selected:!1,disabled:!1},alignLeft:{selected:!1,disabled:!1},alignRight:{selected:!1,disabled:!1},bold:{selected:!1,disabled:!1},italic:{selected:!1,disabled:!1},underline:{selected:!1,disabled:!1},strikethrough:{selected:!1,disabled:!1},subscript:{selected:!1,disabled:!1},superscript:{selected:!1,disabled:!1},format:{selected:{text:"Format",tag:null},disabled:!1},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!1},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!1},indent:{selected:!1,disabled:!1},outdent:{selected:!1,disabled:!1},insertOrderedList:{selected:!1,disabled:!1},insertUnorderedList:{selected:!1,disabled:!1},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!1},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!1},viewSource:{selected:!1,disabled:!1},insertTable:{selected:!1,disabled:!1},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!1}},e.disabledToolBarState={alignCenter:{selected:!1,disabled:!0},alignJustify:{selected:!1,disabled:!0},alignLeft:{selected:!1,disabled:!0},alignRight:{selected:!1,disabled:!0},bold:{selected:!1,disabled:!0},italic:{selected:!1,disabled:!0},underline:{selected:!1,disabled:!0},strikethrough:{selected:!1,disabled:!0},subscript:{selected:!1,disabled:!0},superscript:{selected:!1,disabled:!0},format:{selected:{text:"Format",tag:null},disabled:!0},style:{selected:{marks:[],hasNodesWithoutMarks:!1},disabled:!0},cleanFormatting:{selected:!1,disabled:!0},blockquote:{selected:!1,disabled:!0},indent:{selected:!1,disabled:!0},outdent:{selected:!1,disabled:!0},insertOrderedList:{selected:!1,disabled:!0},insertUnorderedList:{selected:!1,disabled:!0},unlink:{selected:!1,disabled:!0},redo:{selected:!1,disabled:!0},undo:{selected:!1,disabled:!0},print:{selected:!1,disabled:!0},createLink:{selected:!1,disabled:!0},insertFile:{selected:!1,disabled:!0},insertImage:{selected:!1,disabled:!0},viewSource:{selected:!1,disabled:!0},insertTable:{selected:!1,disabled:!0},addColumnBefore:{selected:!1,disabled:!0},addColumnAfter:{selected:!1,disabled:!0},addRowBefore:{selected:!1,disabled:!0},addRowAfter:{selected:!1,disabled:!0},deleteRow:{selected:!1,disabled:!0},deleteColumn:{selected:!1,disabled:!0},mergeCells:{selected:!1,disabled:!0},splitCell:{selected:!1,disabled:!0},deleteTable:{selected:!1,disabled:!0},selectAll:{selected:!1,disabled:!0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultStyle='\n html, body {\n margin: 0;\n height: 100%;\n padding: 0;\n }\n\n html {\n min-height: 100%;\n }\n\n body {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n }\n\n body > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n }\n\n div.ProseMirror {\n position: relative;\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n }\n\n .ProseMirror pre {\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 .ProseMirror .k-placeholder::before {\n content: attr(data-placeholder);\n height: 0;\n color: #8a8a8a;\n float: left;\n opacity: 1;\n cursor: text;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .ProseMirror li {\n position: relative;\n }\n\n li.ProseMirror-selectednode {\n outline: none;\n }\n\n li.ProseMirror-selectednode:after {\n content: "";\n position: absolute;\n left: -32px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n border: 2px solid #8cf;\n pointer-events: none;\n }\n',e.tablesStyles='\n.ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n}\n\n.ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n}\n\n.ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n}\n\n.ProseMirror th {\n font-weight: bold;\n text-align: left;\n}\n\n.ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n}\n\n.ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n}\n\n/* Give selected cells a blue overlay */\n.ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n}\n',e.rtlStyles="body { direction: rtl }"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(46),s=n(12),a=n(4),u=n(13),c=n(7),l=n(47),d=n(16),p=n(3),h=n(25),f=n(24),m=n(26),b=n(29),v=n(30),_=n(31),y=n(32),g=n(48),w=n(49),x=n(50),k=n(20),C=n(51),S=n(53),E=n(54),T=n(55),I=n(56),D=n(57),B=n(58),O=n(59),A=n(60),P=n(61),z=n(62),L=n(63),F=n(64),M=n(65),N=n(66),j=n(67),V=n(68),R=n(69),W=n(70),H=n(71),q=n(72),U=n(73),K=n(74),Y=n(75),G=n(76),J=n(77),$=n(78),Z=n(79),X=n(80),Q=n(81),tt=n(82),et=n(83),nt=n(84),ot=n(85),it=n(86),rt=n(87),st=n(88),at=n(89),ut=n(17),ct=n(18),lt=n(19),dt=n(33),pt=n(90),ht=n(91),ft=n(92),mt=[E.EditorAlignLeftButtonDirective,T.EditorAlignCenterButtonDirective,I.EditorAlignRightButtonDirective,D.EditorAlignJustifyButtonDirective,Y.EditorInsertFileButtonDirective,O.EditorRedoButtonDirective,A.EditorUndoButtonDirective,P.EditorInsertImageButtonDirective,z.EditorIndentButtonDirective,L.EditorOutdentButtonDirective,F.EditorCreateLinkButtonDirective,M.EditorUnlinkButtonDirective,N.EditorInsertOrderedListButtonDirective,j.EditorInsertUnorderedListButtonDirective,V.EditorViewSourceButtonDirective,R.EditorBoldButtonDirective,W.EditorItalicButtonDirective,H.EditorUnderlineButtonDirective,q.EditorStrikethroughButtonDirective,U.EditorSubscriptButtonDirective,K.EditorSuperscriptButtonDirective,G.EditorForeColorDirective,J.EditorBackColorDirective,$.EditorCleanFormattingButtonDirective,Z.EditorAddColumnBeforeButtonDirective,X.EditorAddColumnAfterButtonDirective,Q.EditorAddRowBeforeButtonDirective,tt.EditorAddRowAfterButtonDirective,et.EditorDeleteColumnButtonDirective,nt.EditorDeleteRowButtonDirective,ot.EditorDeleteTableButtonDirective,it.EditorMergeCellsButtonDirective,rt.EditorSplitCellButtonDirective,at.CustomMessagesComponent,st.LocalizedMessagesDirective,pt.DropDownToolDirective,ht.EditorPrintDirective,ft.EditorSelectAllButtonDirective,B.EditorBlockquoteDirective],bt=[w.EditorFontSizeComponent,x.EditorFontFamilyComponent,g.EditorFormatComponent,k.EditorColorPickerComponent,C.EditorInsertTableButtonComponent],vt=[m.FileLinkDialogComponent,h.ImageDialogComponent,f.SourceDialogComponent,b.FormatDialogComponent,v.ColorPickerDialogComponent,_.FontFamilyDialogComponent,dt.FontSizeDialogComponent,y.InsertTableDialogComponent],_t=[S.PopupTableGridComponent,ut.FormatDropDownListComponent,ct.FontFamilyDropDownListComponent,lt.FontSizeDropDownListComponent],yt=function(){function t(){}return t=o.__decorate([i.NgModule({declarations:[p.EditorComponent,mt,bt,vt,_t],entryComponents:[vt],exports:[p.EditorComponent,mt,bt,a.ToolBarModule,l.ButtonModule,s.FormsModule,s.ReactiveFormsModule,_t],imports:[r.CommonModule,s.FormsModule,s.ReactiveFormsModule,l.ButtonModule,d.ColorPickerModule,c.DialogModule,u.DropDownsModule,d.NumericTextBoxModule,d.CheckBoxModule,a.ToolBarModule,d.TextBoxModule]})],t)}();e.EditorModule=yt},function(t,e){t.exports=p},function(t,e){t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(7),a=n(9),u=n(3),c=n(2),l=n(29),d=n(17),p=n(5),h=function(t){function e(e,n,o,r){var s=t.call(this)||this;return s.editor=e,s.dialogService=n,s.localization=o,s.toolsService=r,s.disabled=!1,s.tabindex=-1,s.valueChange=new i.EventEmitter,s._data=[{text:"Paragraph",tag:"p"},{text:"Heading 1",tag:"h1"},{text:"Heading 2",tag:"h2"},{text:"Heading 3",tag:"h3"},{text:"Heading 4",tag:"h4"},{text:"Heading 5",tag:"h5"},{text:"Heading 6",tag:"h6"}],s}var n;return o.__extends(e,t),n=e,Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.itemDisabled=function(e){return!(t.overflows||!t.formatDropDownList||t.formatDropDownList.dropDownList.isOpen)||null===e.dataItem.tag},setTimeout((function(){t.defaultItem={text:t.title,tag:null},t.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(e){var n=e.format,o=t.data.findIndex((function(t){return t.tag===n.selected.tag}));t.value=-1!==o?n.selected.tag:null,t.disabled=n.disabled}))},e.prototype.onValueChange=function(t){a.isPresent(t)&&(this.editor.exec("format",{tag:t}),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(e){return e.tag===t}))))},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(e.prototype,"outerWidth",{get:function(){var t=this.formatDropDownList.element;if(t)return a.outerWidth(t.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.localization.get("format")},enumerable:!0,configurable:!0}),e.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:l.FormatDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},e.prototype.canFocus=function(){return!this.disabled},e.prototype.focus=function(){this.tabindex=0,this.overflows?this.formatButton.nativeElement.focus():this.formatDropDownList.focus()},e.prototype.handleKey=function(){return this.tabindex=-1,!1},o.__decorate([i.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),o.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"toolbarTemplate",void 0),o.__decorate([i.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"popupTemplate",void 0),o.__decorate([i.ViewChild("formatDropDownList",{static:!1}),o.__metadata("design:type",d.FormatDropDownListComponent)],e.prototype,"formatDropDownList",void 0),o.__decorate([i.ViewChild("formatButton",{static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"formatButton",void 0),e=n=o.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFormat]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-format-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n #formatButton\n [tabindex]="tabindex"\n type="button"\n kendoButton\n class="k-overflow-button"\n [icon]="\'apply-format\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),o.__param(0,i.Host()),o.__metadata("design:paramtypes",[u.EditorComponent,s.DialogService,c.EditorLocalizationService,p.EditorToolsService])],e)}(r.ToolBarToolComponent);e.EditorFormatComponent=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(9),a=n(3),u=n(2),c=n(7),l=n(33),d=n(19),p=n(5),h=function(t){function e(e,n,o,r){var s=t.call(this)||this;return s.editor=e,s.dialogService=n,s.localization=o,s.toolsService=r,s.disabled=!1,s.tabindex=-1,s.valueChange=new i.EventEmitter,s._data=[{text:"8px",size:8},{text:"10px",size:10},{text:"12px",size:12},{text:"14px",size:14},{text:"18px",size:18},{text:"24px",size:24},{text:"36px",size:36}],s}var n;return o.__extends(e,t),n=e,Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.itemDisabled=function(e){return!(t.overflows||!t.fontSizeDropDownList||t.fontSizeDropDownList.dropDownList.isOpen)||null===e.dataItem.size},setTimeout((function(){t.defaultItem={text:t.title,size:null},t.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(e){var n=e.style;t.value=(s.getUniqueStyleValues(n.selected,"font-size").match(/\d+/g)||[null])[0],t.disabled=n.disabled}))},e.prototype.onValueChange=function(t){s.isPresent(t)&&(this.editor.exec("fontSize",t),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(e){return e.size===parseInt(t,10)}))))},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(e.prototype,"outerWidth",{get:function(){if(this.element)return s.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.localization.get("fontSize")},enumerable:!0,configurable:!0}),e.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:l.FontSizeDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},e.prototype.canFocus=function(){return!this.disabled},e.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontSizeButton.nativeElement.focus():this.fontSizeDropDownList.focus()},e.prototype.handleKey=function(){return this.tabindex=-1,!1},o.__decorate([i.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),o.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"toolbarTemplate",void 0),o.__decorate([i.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"popupTemplate",void 0),o.__decorate([i.ViewChild("element",{static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),o.__decorate([i.ViewChild("element",{read:d.FontSizeDropDownListComponent,static:!1}),o.__metadata("design:type",d.FontSizeDropDownListComponent)],e.prototype,"fontSizeDropDownList",void 0),o.__decorate([i.ViewChild("fontSizeButton",{static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"fontSizeButton",void 0),e=n=o.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontSize]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontsize-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontsize-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontSizeButton\n class="k-overflow-button"\n [icon]="\'font-size\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),o.__param(0,i.Host()),o.__metadata("design:paramtypes",[a.EditorComponent,c.DialogService,u.EditorLocalizationService,p.EditorToolsService])],e)}(r.ToolBarToolComponent);e.EditorFontSizeComponent=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(9),a=n(3),u=n(2),c=n(7),l=n(31),d=n(18),p=n(5),h=function(t){function e(e,n,o,r){var s=t.call(this)||this;return s.editor=e,s.dialogService=n,s.localization=o,s.toolsService=r,s.disabled=!1,s.tabindex=-1,s.valueChange=new i.EventEmitter,s._data=[{text:"Arial",fontName:'Arial,"Helvetica Neue",Helvetica,sans-serif'},{text:"Courier New",fontName:'"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace'},{text:"Georgia",fontName:'Georgia,Times,"Times New Roman",serif'},{fontName:'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',text:"Impact"},{text:"Lucida Console",fontName:'"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace'},{text:"Tahoma",fontName:"Tahoma,Verdana,Segoe,sans-serif"},{text:"Times New Roman",fontName:'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif'},{text:"Trebuchet MS",fontName:'"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif'},{text:"Verdana",fontName:"Verdana,Geneva,sans-serif"}],s}var n;return o.__extends(e,t),n=e,Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(t){this._data=t||this._data},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this.itemDisabled=function(e){return!(t.overflows||!t.fontFamilyDropDownList||t.fontFamilyDropDownList.dropDownList.isOpen)||null===e.dataItem.fontName},setTimeout((function(){t.defaultItem={text:t.title,fontName:null},t.toolsService.needsCheck.next()})),this.subs=this.editor.stateChange.subscribe((function(e){var n=e.style;t.value=s.getUniqueStyleValues(n.selected,"font-family")||null,t.disabled=n.disabled}))},e.prototype.onValueChange=function(t){s.isPresent(t)&&(this.editor.exec("fontFamily",t),this.editor.view.focus(),this.valueChange.emit(this.data.find((function(e){return e.fontName===t}))))},e.prototype.ngOnDestroy=function(){this.subs&&this.subs.unsubscribe()},Object.defineProperty(e.prototype,"outerWidth",{get:function(){if(this.element)return s.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.localization.get("fontFamily")},enumerable:!0,configurable:!0}),e.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:l.FontFamilyDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor,data:this.data,defaultItem:this.defaultItem,value:this.value,itemDisabled:this.itemDisabled})},e.prototype.canFocus=function(){return!this.disabled},e.prototype.focus=function(){this.tabindex=0,this.overflows?this.fontFamilyButton.nativeElement.focus():this.fontFamilyDropDownList.focus()},e.prototype.handleKey=function(){return this.tabindex=-1,!1},o.__decorate([i.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"valueChange",void 0),o.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"toolbarTemplate",void 0),o.__decorate([i.ViewChild("popupTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"popupTemplate",void 0),o.__decorate([i.ViewChild("element",{static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),o.__decorate([i.ViewChild("element",{read:d.FontFamilyDropDownListComponent,static:!1}),o.__metadata("design:type",d.FontFamilyDropDownListComponent)],e.prototype,"fontFamilyDropDownList",void 0),o.__decorate([i.ViewChild("fontFamilyButton",{static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"fontFamilyButton",void 0),e=n=o.__decorate([i.Component({providers:[{provide:r.ToolBarToolComponent,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-toolbar-dropdownlist[kendoEditorFontFamily]",template:'\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]="defaultItem"\n [data]="data"\n [(value)]="value"\n [itemDisabled]="itemDisabled"\n [title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (valueChange)="onValueChange($event)"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex="-1"\n type="button"\n kendoButton\n #fontFamilyButton\n class="k-overflow-button"\n [icon]="\'font-family\'"\n [attr.title]="title"\n [disabled]="disabled"\n [tabindex]="tabindex"\n (click)="openDialog()"\n >\n {{ title }}\n </button>\n </ng-template>\n '}),o.__param(0,i.Host()),o.__metadata("design:paramtypes",[a.EditorComponent,c.DialogService,u.EditorLocalizationService,p.EditorToolsService])],e)}(r.ToolBarToolComponent);e.EditorFontFamilyComponent=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(15),s=n(22),a=n(4),u=n(52),c=n(9),l=n(3),d=n(2),p=n(7),h=n(32),f=n(10),m=function(t){function e(e,n,o,a){var u=t.call(this)||this;return u.editor=e,u.localization=n,u.popupService=o,u.dialogService=a,u.open=!1,u.buttonBlurred=new i.EventEmitter,u.cellClicked=new i.EventEmitter,u.subs=u.editor.stateChange.subscribe((function(t){var e=t.insertTable;u.disabled=e.disabled})),u.subs.add(u.buttonBlurred.pipe(s.concatMap((function(){return r.interval(200).pipe(s.take(1),s.takeUntil(u.cellClicked))}))).subscribe((function(){u.toggle(!1)}))),u}var n;return o.__extends(e,t),n=e,e.prototype.ngOnDestroy=function(){this.destroyPopup(),this.subs&&this.subs.unsubscribe()},Object.defineProperty(e.prototype,"outerWidth",{get:function(){if(this.element)return c.outerWidth(this.element.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.localization.get("insertTable")},enumerable:!0,configurable:!0}),e.prototype.toggle=function(t){this.open=void 0===t?!this.open:t,this.destroyPopup(),this.open&&this.createPopup()},e.prototype.openDialog=function(){var t={appendTo:this.editor.dialogContainer,content:h.InsertTableDialogComponent};this.editor.toolbar.toggle(!1),this.dialogService.open(t).content.instance.setData({editor:this.editor})},e.prototype.onBlur=function(){this.tabIndex=-1,this.buttonBlurred.emit()},e.prototype.onCellClick=function(t){this.cellClicked.emit(),this.toggle(!1),this.editor.exec("insertTable",t)},e.prototype.canFocus=function(){return!this.disabled},e.prototype.focus=function(){this.tabIndex=0,this.getButton().focus()},e.prototype.handleKey=function(t){return t.keyCode===f.Keys.Space||t.keyCode===f.Keys.Enter||(this.tabIndex=-1,!1)},e.prototype.onTableWizardClick=function(){},e.prototype.createPopup=function(){var t="rtl"===this.editor.direction?"right":"left",e={horizontal:t,vertical:"bottom"},n={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.element,anchorAlign:e,animate:!0,content:this.popupGridTemplate,popupAlign:n,popupClass:"k-ct-popup k-group k-reset k-state-border-up",positionMode:"absolute"});var o=this.popupRef.popupElement;o.style.width="190px",o.style.height="164px",o.setAttribute("dir",this.editor.direction)},e.prototype.destroyPopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)},e.prototype.getButton=function(){return(this.overflows?this.overflowElement:this.element).nativeElement},o.__decorate([i.ViewChild("toolbarTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"toolbarTemplate",void 0),o.__decorate([i.ViewChild("popupTemplate",{static:!1}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"popupTemplate",void 0),o.__decorate([i.ViewChild("element",{static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"element",void 0),o.__decorate([i.ViewChild("overflowElement",{static:!1}),o.__metadata("design:type",i.ElementRef)],e.prototype,"overflowElement",void 0),o.__decorate([i.ViewChild("popupGridTemplate",{static:!0}),o.__metadata("design:type",i.TemplateRef)],e.prototype,"popupGridTemplate",void 0),e=n=o.__decorate([i.Component({providers:[{provide:a.ToolBarToolComponent,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-editor-insert-table-button",template:'\n <ng-template #toolbarTemplate>\n <button\n type="button"\n kendoButton\n #element\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="toggle()"\n (blur)="onBlur()"\n ></button>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n kendoButton\n #overflowElement\n [attr.title]="title"\n [attr.tabindex]="tabIndex"\n [icon]="\'table-insert\'"\n [disabled]="disabled"\n (click)="openDialog()">\n {{ title }}\n </button>\n </ng-template>\n <ng-template #popupGridTemplate>\n <kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>\n </ng-template>\n '}),o.__param(0,i.Host()),o.__metadata("design:paramtypes",[l.EditorComponent,d.EditorLocalizationService,u.PopupService,p.DialogService])],e)}(a.ToolBarToolComponent);e.EditorInsertTableButtonComponent=m},function(t,e){t.exports=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=function(){function t(){this.cellClick=new i.EventEmitter,this.tableWizardClick=new i.EventEmitter,this.state={rows:-1,cols:-1},this.rows=6,this.cols=8}return Object.defineProperty(t.prototype,"message",{get:function(){var t=this.state,e=t.rows,n=t.cols;return"Create a "+(e>-1?e+1:"")+" "+(n>-1?"x":"")+" "+(n>-1?n+1:"")+" table"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return Array.from(Array(this.rows*this.cols).keys())},enumerable:!0,configurable:!0}),t.prototype.selected=function(t){var e=this.state,n=e.rows,o=e.cols,i=Math.floor(t/this.cols),r=t%this.cols;return i<=n&&r<=o},t.prototype.setState=function(t){var e=Math.floor(t/this.cols),n=t%this.cols;this.state={rows:e,cols:n}},t.prototype.resetState=function(){this.state={rows:-1,cols:-1}},t.prototype.insertTable=function(){this.cellClick.emit(this.state)},t.prototype.openTableWizard=function(){this.tableWizardClick.emit()},o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"cellClick",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],t.prototype,"tableWizardClick",void 0),t=o.__decorate([i.Component({selector:"kendo-popup-table-grid",template:'\n <div style="border-color: inherit;" (mouseleave)="resetState()" (click)="insertTable()">\n <span *ngFor="let i of cells"\n class="k-ct-cell"\n [class.k-state-selected]="selected(i)"\n [class.k-state-disabled]="!selected(i)"\n (mouseenter)="setState(i)">\n </span>\n </div>\n <div class="k-status" unselectable="on">{{ message }}</div>\n \x3c!-- uncomment when TableWizard is completed\n <div class="k-editor-toolbar" unselectable="on">\n <button type="button" kendoButton class="k-tool" [icon]="\'table-wizard\'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>\n </div>\n --\x3e\n '})],t)}();e.PopupTableGridComponent=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"alignLeft",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignLeftButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAlignLeftButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"alignCenter",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignCenterButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAlignCenterButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"alignRight",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignRightButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAlignRightButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"alignJustify",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAlignJustifyButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAlignJustifyButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){var r=t.call(this,"blockquote",e,n,o,i)||this;return r.editor=n,r}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBlockquoteButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorBlockquoteDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"redo",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorRedoButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorRedoButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"undo",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUndoButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorUndoButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(14),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"insertImage",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertImageButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandDialog);e.EditorInsertImageButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"indent",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorIndentButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorIndentButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"outdent",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorOutdentButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorOutdentButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(14),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"createLink",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCreateLinkButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandDialog);e.EditorCreateLinkButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"unlink",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnlinkButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorUnlinkButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"insertOrderedList",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertOrderedListButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorInsertOrderedListButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"insertUnorderedList",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertUnorderedListButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorInsertUnorderedListButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(14),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"viewSource",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorViewSourceButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandDialog);e.EditorViewSourceButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"bold",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorBoldButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorBoldButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"italic",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorItalicButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorItalicButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"underline",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorUnderlineButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorUnderlineButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"strikethrough",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorStrikethroughButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorStrikethroughButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"subscript",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSubscriptButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorSubscriptButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"superscript",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSuperscriptButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorSuperscriptButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(3),s=n(14),a=n(4),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"insertFile",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorInsertFileButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[a.ToolBarButtonComponent,r.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(s.EditorCommandDialog);e.EditorInsertFileButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(20),s=n(21),a=function(){function t(t){this.colorPicker=t,this.colorPicker.icon=s.commandIcons.foreColor,this.colorPicker.editorCommand="foreColor"}return t=o.__decorate([i.Directive({selector:"[kendoEditorForeColor]"}),o.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],t)}();e.EditorForeColorDirective=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(20),s=n(21),a=function(){function t(t){this.colorPicker=t,this.colorPicker.icon=s.commandIcons.backColor,this.colorPicker.editorCommand="backColor"}return t=o.__decorate([i.Directive({selector:"[kendoEditorBackColor]"}),o.__metadata("design:paramtypes",[r.EditorColorPickerComponent])],t)}();e.EditorBackColorDirective=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"cleanFormatting",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorCleanFormattingButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorCleanFormattingButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"addColumnBefore",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnBeforeButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAddColumnBeforeButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"addColumnAfter",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddColumnAfterButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAddColumnAfterButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"addRowBefore",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowBeforeButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAddRowBeforeButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"addRowAfter",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorAddRowAfterButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorAddRowAfterButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"deleteColumn",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteColumnButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorDeleteColumnButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"deleteRow",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteRowButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorDeleteRowButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"deleteTable",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorDeleteTableButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorDeleteTableButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"mergeCells",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorMergeCellsButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorMergeCellsButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"splitCell",e,n,o,i)||this}return o.__extends(e,t),e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSplitCellButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorSplitCellButtonDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(11),s=n(35),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return o.__extends(e,t),n=e,e=n=o.__decorate([i.Directive({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoEditorLocalizedMessages]"}),o.__metadata("design:paramtypes",[r.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(11),s=n(35),a=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return o.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=o.__decorate([i.Component({providers:[{provide:s.Messages,useExisting:i.forwardRef((function(){return n}))}],selector:"kendo-editor-messages",template:""}),o.__metadata("design:paramtypes",[r.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=function(){function t(t,e){this.hostEl=t,this.zone=e,this.preventDefault=function(t){t.preventDefault()}}return Object.defineProperty(t.prototype,"hostElement",{get:function(){return this.hostEl.nativeElement},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.zone.runOutsideAngular((function(){t.hostElement.addEventListener("pointerdown",t.preventDefault)}))},t.prototype.ngOnDestroy=function(){this.hostElement.removeEventListener("pointerdown",this.preventDefault)},t=o.__decorate([i.Directive({selector:"[kendoEditorDropDownTool]"}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone])],t)}();e.DropDownToolDirective=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(27),l=n(5),d=function(t){function e(e,n,o,i){var r=t.call(this,"print",e,n,o,i)||this;return r.editor=n,r}return o.__extends(e,t),e.prototype.ngAfterViewInit=function(){if(i.isDevMode&&!this.editor.iframe)throw new Error(c.EditorErrorMessages.printTool)},e.prototype.clickHandler=function(){if(this.editor.iframe){var t=this.editor.view,e=t&&t.dom,n=e&&e.ownerDocument,o=n&&n.defaultView;o&&o.print()}},e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorPrintButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,l.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorPrintDirective=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=n(1),r=n(4),s=n(3),a=n(6),u=n(2),c=n(5),l=function(t){function e(e,n,o,i){return t.call(this,"selectAll",e,n,o,i)||this}return o.__extends(e,t),e.prototype.clickHandler=function(){this.editor.shouldEmitFocus=!0,t.prototype.clickHandler.call(this)},e=o.__decorate([i.Directive({selector:"kendo-toolbar-button[kendoEditorSelectAllButton]"}),o.__param(1,i.Host()),o.__metadata("design:paramtypes",[r.ToolBarButtonComponent,s.EditorComponent,u.EditorLocalizationService,c.EditorToolsService])],e)}(a.EditorCommandButton);e.EditorSelectAllButtonDirective=l}])}));