@progress/kendo-angular-dialog 6.0.2 → 7.0.0-dev.202204191040
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/bundles/kendo-angular-dialog.umd.js +5 -0
- package/{dist/es2015/common → common}/actions-layout.d.ts +0 -0
- package/{dist/es2015/common → common}/preventable-event.d.ts +4 -3
- package/{dist/es2015/common → common}/util.d.ts +1 -1
- package/{dist/es2015/dialog → dialog}/dialog-actions.component.d.ts +14 -7
- package/{dist/es2015/dialog → dialog}/dialog-container.directive.d.ts +3 -0
- package/dialog/dialog-container.service.d.ts +16 -0
- package/{dist/es2015/dialog → dialog}/dialog-content-base.d.ts +4 -1
- package/{dist/es2015/dialog → dialog}/dialog-titlebar.component.d.ts +5 -2
- package/{dist/es2015/dialog → dialog}/dialog.component.d.ts +13 -6
- package/{dist/es2015/dialog → dialog}/dialog.service.d.ts +5 -1
- package/dialog/models/dialog-action.d.ts +28 -0
- package/dialog/models/dialog-close-result.d.ts +11 -0
- package/dialog/models/dialog-ref.d.ts +38 -0
- package/dialog/models/dialog-result.d.ts +14 -0
- package/{dist/es2015/dialog → dialog/models}/dialog-settings.d.ts +5 -73
- package/{dist/es/localization/dialog-localization.service.js → dialog/models/index.d.ts} +5 -5
- package/{dist/es2015/dialog.module.d.ts → dialog.module.d.ts} +11 -0
- package/{dist/es2015/dialogs.module.d.ts → dialogs.module.d.ts} +6 -0
- package/{dist/es2015 → esm2015}/common/actions-layout.js +1 -0
- package/{dist/es2015 → esm2015}/common/preventable-event.js +3 -3
- package/{dist/es2015 → esm2015}/common/util.js +0 -5
- package/esm2015/dialog/dialog-actions.component.js +115 -0
- package/esm2015/dialog/dialog-container.directive.js +30 -0
- package/esm2015/dialog/dialog-container.service.js +23 -0
- package/{dist/es2015 → esm2015}/dialog/dialog-content-base.js +18 -10
- package/esm2015/dialog/dialog-titlebar.component.js +136 -0
- package/{dist/es2015 → esm2015}/dialog/dialog.component.js +123 -113
- package/{dist/es2015 → esm2015}/dialog/dialog.service.js +16 -15
- package/{dist/es2015/window/window-container.service.d.ts → esm2015/dialog/models/dialog-action.js} +3 -5
- package/esm2015/dialog/models/dialog-close-result.js +11 -0
- package/esm2015/dialog/models/dialog-ref.js +11 -0
- package/{dist/es/common/actions-layout.js → esm2015/dialog/models/dialog-result.js} +1 -0
- package/{dist/es2015/dialog/dialog-container.service.d.ts → esm2015/dialog/models/dialog-settings.js} +3 -5
- package/esm2015/dialog/models/index.js +9 -0
- package/{dist/es2015 → esm2015}/dialog.module.js +21 -13
- package/{dist/es → esm2015}/dialogs.module.js +12 -12
- package/esm2015/kendo-angular-dialog.js +8 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/{dist/es2015 → esm2015}/localization/dialog-localization.service.js +0 -0
- package/esm2015/localization/localized-messages.directive.js +40 -0
- package/esm2015/localization/messages.js +29 -0
- package/esm2015/localization/titlebar-localization.service.js +44 -0
- package/{dist/es2015 → esm2015}/main.js +9 -2
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/esm2015/shared.module.js +38 -0
- package/esm2015/window/actions/window-close-action.directive.js +59 -0
- package/esm2015/window/actions/window-maximize-action.directive.js +65 -0
- package/esm2015/window/actions/window-minimize-action.directive.js +65 -0
- package/esm2015/window/actions/window-restore-action.directive.js +65 -0
- package/{dist/es2015 → esm2015}/window/drag-resize.service.js +9 -11
- package/esm2015/window/models/index.js +10 -0
- package/esm2015/window/models/window-close-result.js +9 -0
- package/{dist/es2015/window/window-events.js → esm2015/window/models/window-messages.js} +1 -0
- package/esm2015/window/models/window-options.js +5 -0
- package/{dist/es2015/window/window-settings.js → esm2015/window/models/window-ref.js} +0 -11
- package/esm2015/window/models/window-settings.js +10 -0
- package/esm2015/window/models/window-types.js +5 -0
- package/{dist/es2015 → esm2015}/window/navigation.service.js +10 -11
- package/esm2015/window/window-container.directive.js +30 -0
- package/esm2015/window/window-container.service.js +23 -0
- package/{dist/es → esm2015}/window/window-events.js +1 -0
- package/{dist/es2015 → esm2015}/window/window-resize-handle.directive.js +21 -26
- package/{dist/es2015 → esm2015}/window/window-titlebar.component.js +35 -34
- package/{dist/es2015 → esm2015}/window/window.component.js +168 -187
- package/{dist/es2015 → esm2015}/window/window.service.js +15 -14
- package/{dist/es2015 → esm2015}/window.module.js +30 -13
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dialog.js} +1029 -925
- package/{dist/es2015/shared.module.d.ts → kendo-angular-dialog.d.ts} +3 -7
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/dialog-localization.service.d.ts +0 -0
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/localization → localization}/titlebar-localization.service.d.ts +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +8 -2
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +31 -104
- package/schematics/ngAdd/index.js +6 -3
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +21 -0
- package/{dist/es2015/window → window}/actions/window-close-action.directive.d.ts +3 -0
- package/{dist/es2015/window → window}/actions/window-maximize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-minimize-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/actions/window-restore-action.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/drag-resize.service.d.ts +8 -4
- package/window/models/index.d.ts +10 -0
- package/window/models/window-close-result.d.ts +9 -0
- package/window/models/window-messages.d.ts +26 -0
- package/window/models/window-options.d.ts +20 -0
- package/window/models/window-ref.d.ts +40 -0
- package/{dist/es2015/window → window/models}/window-settings.d.ts +4 -84
- package/window/models/window-types.d.ts +11 -0
- package/{dist/es2015/window → window}/navigation.service.d.ts +4 -1
- package/{dist/es2015/window → window}/window-container.directive.d.ts +3 -0
- package/window/window-container.service.d.ts +16 -0
- package/{dist/es2015/window → window}/window-events.d.ts +0 -0
- package/{dist/es2015/window → window}/window-resize-handle.directive.d.ts +4 -1
- package/{dist/es2015/window → window}/window-titlebar.component.d.ts +6 -3
- package/{dist/es2015/window → window}/window.component.d.ts +42 -25
- package/{dist/es2015/window → window}/window.service.d.ts +5 -1
- package/window.module.d.ts +45 -0
- package/dist/cdn/js/kendo-angular-dialog.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/preventable-event.js +0 -29
- package/dist/es/common/util.js +0 -214
- package/dist/es/dialog/dialog-actions.component.js +0 -89
- package/dist/es/dialog/dialog-container.directive.js +0 -31
- package/dist/es/dialog/dialog-container.service.js +0 -31
- package/dist/es/dialog/dialog-content-base.js +0 -45
- package/dist/es/dialog/dialog-settings.js +0 -46
- package/dist/es/dialog/dialog-titlebar.component.js +0 -94
- package/dist/es/dialog/dialog.component.js +0 -462
- package/dist/es/dialog/dialog.service.js +0 -214
- package/dist/es/dialog.module.js +0 -56
- package/dist/es/index.js +0 -22
- package/dist/es/localization/custom-messages.component.js +0 -44
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -34
- package/dist/es/localization/titlebar-localization.service.js +0 -34
- package/dist/es/main.js +0 -21
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/shared.module.js +0 -34
- package/dist/es/window/actions/window-close-action.directive.js +0 -63
- package/dist/es/window/actions/window-maximize-action.directive.js +0 -75
- package/dist/es/window/actions/window-minimize-action.directive.js +0 -75
- package/dist/es/window/actions/window-restore-action.directive.js +0 -75
- package/dist/es/window/drag-resize.service.js +0 -351
- package/dist/es/window/navigation.service.js +0 -155
- package/dist/es/window/window-container.directive.js +0 -31
- package/dist/es/window/window-container.service.js +0 -31
- package/dist/es/window/window-resize-handle.directive.js +0 -78
- package/dist/es/window/window-settings.js +0 -34
- package/dist/es/window/window-titlebar.component.js +0 -144
- package/dist/es/window/window.component.js +0 -808
- package/dist/es/window/window.service.js +0 -214
- package/dist/es/window.module.js +0 -76
- package/dist/es2015/dialog/dialog-actions.component.js +0 -98
- package/dist/es2015/dialog/dialog-container.directive.js +0 -30
- package/dist/es2015/dialog/dialog-container.service.js +0 -23
- package/dist/es2015/dialog/dialog-settings.js +0 -30
- package/dist/es2015/dialog/dialog-titlebar.component.js +0 -106
- package/dist/es2015/dialogs.module.js +0 -41
- package/dist/es2015/index.d.ts +0 -22
- package/dist/es2015/index.js +0 -22
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -36
- package/dist/es2015/localization/localized-messages.directive.js +0 -35
- package/dist/es2015/localization/messages.js +0 -28
- package/dist/es2015/localization/titlebar-localization.service.js +0 -31
- package/dist/es2015/shared.module.js +0 -31
- package/dist/es2015/window/actions/window-close-action.directive.js +0 -60
- package/dist/es2015/window/actions/window-maximize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-minimize-action.directive.js +0 -68
- package/dist/es2015/window/actions/window-restore-action.directive.js +0 -68
- package/dist/es2015/window/window-container.directive.js +0 -30
- package/dist/es2015/window/window-container.service.js +0 -23
- package/dist/es2015/window.module.d.ts +0 -28
- package/dist/fesm5/index.js +0 -3474
- package/dist/npm/common/actions-layout.js +0 -6
- package/dist/npm/common/preventable-event.js +0 -31
- package/dist/npm/common/util.js +0 -219
- package/dist/npm/dialog/dialog-actions.component.js +0 -91
- package/dist/npm/dialog/dialog-container.directive.js +0 -33
- package/dist/npm/dialog/dialog-container.service.js +0 -33
- package/dist/npm/dialog/dialog-content-base.js +0 -47
- package/dist/npm/dialog/dialog-settings.js +0 -48
- package/dist/npm/dialog/dialog-titlebar.component.js +0 -96
- package/dist/npm/dialog/dialog.component.js +0 -464
- package/dist/npm/dialog/dialog.service.js +0 -216
- package/dist/npm/dialog.module.js +0 -58
- package/dist/npm/dialogs.module.js +0 -46
- package/dist/npm/index.js +0 -40
- package/dist/npm/localization/custom-messages.component.js +0 -46
- package/dist/npm/localization/dialog-localization.service.js +0 -11
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -36
- package/dist/npm/localization/titlebar-localization.service.js +0 -36
- package/dist/npm/main.js +0 -45
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/shared.module.js +0 -36
- package/dist/npm/window/actions/window-close-action.directive.js +0 -65
- package/dist/npm/window/actions/window-maximize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-minimize-action.directive.js +0 -77
- package/dist/npm/window/actions/window-restore-action.directive.js +0 -77
- package/dist/npm/window/drag-resize.service.js +0 -353
- package/dist/npm/window/navigation.service.js +0 -157
- package/dist/npm/window/window-container.directive.js +0 -33
- package/dist/npm/window/window-container.service.js +0 -33
- package/dist/npm/window/window-events.js +0 -6
- package/dist/npm/window/window-resize-handle.directive.js +0 -80
- package/dist/npm/window/window-settings.js +0 -36
- package/dist/npm/window/window-titlebar.component.js +0 -146
- package/dist/npm/window/window.component.js +0 -810
- package/dist/npm/window/window.service.js +0 -216
- package/dist/npm/window.module.js +0 -78
- package/dist/systemjs/kendo-angular-dialog.js +0 -5
package/dist/cdn/main.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@progress/kendo-popup-common"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,,],e):"object"==typeof exports?exports.KendoAngularDialog=e(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-buttons"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@progress/kendo-popup-common"),require("@angular/common")):t.KendoAngularDialog=e(t.self,t.ng.core,t.KendoAngularL10N,t.rxjs,t.KendoAngularCommon,t.KendoAngularButtons,t.KendoLicensing,t.ng.animations,t.KendoPopupCommon,t.ng.common)}(window,(function(t,e,n,i,r,o,s,u,c,a){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},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=34)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(6);e.isPresent=function(t){return null!=t},e.isTruthy=function(t){return!!t};var o=function(t){return String(t).trim().split(" ")},s=/^(?:a|input|select|textarea|button|object)$/i;!function(t){t[t.esc=27]="esc",t[t.tab=9]="tab",t[t.enter=13]="enter",t[t.space=32]="space",t[t.ctrl=17]="ctrl",t[t.shift=16]="shift",t[t.left=37]="left",t[t.up=38]="up",t[t.right=39]="right",t[t.down=40]="down"}(e.Keys||(e.Keys={})),e.DIALOG_ELEMENTS_HANDLING_ESC_KEY="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",e.DIALOG_ELEMENTS_HANDLING_ARROWS="k-dialog-buttongroup",e.WINDOW_CLASSES="k-window",e.hasClasses=function(t,e){var n=o(e);return Boolean(o(t.className).find((function(t){return n.indexOf(t)>=0})))},e.isVisible=function(t){var e=t.getBoundingClientRect();return!(!e.width||!e.height)&&"hidden"!==window.getComputedStyle(t).visibility},e.isFocusable=function(t,n){if(void 0===n&&(n=!0),t.tagName){var i=t.tagName.toLowerCase(),r=t.getAttribute("tabIndex"),o=null!==r&&!isNaN(r)&&r>-1;return(s.test(i)?!t.disabled:o)&&(!n||e.isVisible(t))}return!1},e.setHTMLAttributes=function(t,e,n){for(var i in t)i&&e.setAttribute(n,i,t[i])},e.parseCSSClassNames=function(t){return e.isObject(t)?u(t):e.isString(t)?c(t):Array.isArray(t)?a(t):void 0};var u=function(t){var n=[];return Object.keys(t).forEach((function(i){var r=e.splitStringToArray(i);t[i]&&r[0]&&n.push.apply(n,r)})),n},c=function(t){var n=[];return e.splitStringToArray(t).forEach((function(t){n.push(t)})),n},a=function(t){var n=[];return t.forEach((function(t){var i=e.splitStringToArray(t);i[0]&&n.push.apply(n,i)})),n};e.focusableSelector=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),e.preventDefault=function(t){var e=t.originalEvent;e.stopPropagation(),e.preventDefault()},e.isWindowAvailable=function(){return"undefined"!=typeof window},e.preventOnDblClick=function(t){return function(e){return i.of(e).pipe(r.delay(150),r.takeUntil(t))}},e.RESIZE_DIRECTIONS=["n","e","s","w","se","sw","ne","nw"],e.OFFSET_STYLES=["top","left","width","height"],e.isString=function(t){return t instanceof String||"string"==typeof t},e.isObject=function(t){return e.isPresent(t)&&!Array.isArray(t)&&"object"==typeof t},e.isNumber=function(t){return"number"==typeof t&&isFinite(t)},e.createValueWithUnit=function(t){return t+(e.isNumber(t)?"px":"")},e.splitStringToArray=function(t){return t.trim().replace(/\s+/g," ").split(" ")},e.findPrimaryButton=function(t){for(var e=t.length-1;e>=0;e--)for(var n=t[e].classList,i=0;i<n.length;i++)if(n[i].endsWith("-primary"))return t[e]}},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(6),u=n(3),c=n(37),a=10002,l={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},h=function(t,e){return function(n){return t.kendoDrag.pipe(s.takeUntil(t.kendoRelease.pipe(s.tap((function(){e.emit()})))),s.map((function(t){var e=t.pageX,i=t.pageY;return{originalX:n.pageX,originalY:n.pageY,pageX:e,pageY:i}})))}},p=function(){function t(t){this.ngZone=t,this.close=new r.EventEmitter,this.focus=new r.EventEmitter,this.change=new r.EventEmitter,this.stateChange=new r.EventEmitter,this.dragStart=new r.EventEmitter,this.dragEnd=new r.EventEmitter,this.resizeStart=new r.EventEmitter,this.resizeEnd=new r.EventEmitter,this.options=Object.assign({},l),this.lastAction=null,this.subscriptions=new o.Subscription,this.dragSubscription=new o.Subscription}return t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()},t.prototype.init=function(t){var e=this.options.state,n=this.options;this.window=t,"default"!==e&&(this.restoreOptions=Object.assign({},n)),"minimized"===e&&(n.height=0,n.minHeight=0),"maximized"===e&&(n.position="fixed")},t.prototype.onDrag=function(t){var e=this;this.subscriptions.add(this.ngZone.runOutsideAngular((function(){var n,i;e.dragSubscription=t.kendoPress.pipe(s.tap((function(t){t.isTouch||u.preventDefault(t),e.focus.emit(),n=e.currentPosition(),i=!1})),s.switchMap(h(t,e.dragEnd))).subscribe((function(t){var r=t.pageX,o=t.pageY,s=t.originalX,u=t.originalY;i||(e.ensureWidth(),e.dragStart.emit(),i=!0),e.handleDrag({originalX:s,originalY:u,pageX:r,pageY:o,startPosition:n})}))})))},t.prototype.handleDrag=function(t){var e=t.originalX,n=t.originalY,i=t.pageX,r=t.pageY,o=t.startPosition;this.options.left=o.x+i-e,this.options.top=o.y+r-n,"minimized"===this.options.state&&u.isPresent(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:o.x+i-e,top:o.y+r-n})},t.prototype.onResize=function(t,e){var n=this;this.subscriptions.add(this.ngZone.runOutsideAngular((function(){var i,r=!1;t.kendoPress.pipe(s.tap((function(t){u.preventDefault(t),n.focus.emit(),i=n.currentOffsetAndPosition(),r=!1})),s.switchMap(h(t,n.resizeEnd))).subscribe((function(t){var o=t.pageX,s=t.pageY,u=t.originalX,c=t.originalY;r||(n.resizeStart.emit(e),r=!0);var a=o-u,l=s-c;n.handleResize(i,e,a,l)}))})))},t.prototype.handleResize=function(t,e,n,i){var r=this,o=this.options,s={};e.indexOf("e")>=0&&((l=t.width+n)!==o.width&&l>=o.minWidth&&(s.width=l));if(e.indexOf("n")>=0){var c=t.height-i,a=t.y+i;c!==o.height&&c>=o.minHeight&&a!==o.top&&(s.height=c,s.top=a)}e.indexOf("s")>=0&&((c=t.height+i)!==o.height&&c>=o.minHeight&&(s.height=c));if(e.indexOf("w")>=0){var l,h=t.x+n;(l=t.width-n)!==o.width&&l>=o.minWidth&&h!==o.left&&(s.width=l,s.left=h)}(u.isPresent(s.width)||u.isPresent(s.height))&&(u.OFFSET_STYLES.forEach((function(t){u.isPresent(s[t])&&(r.options[t]=s[t])})),this.change.emit(s))},t.prototype.restoreAction=function(){this.lastAction="restore",this.defaultState()},t.prototype.defaultState=function(){u.isPresent(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")},t.prototype.storeOptions=function(){this.restoreOptions=Object.assign({},this.options)},t.prototype.maximizeAction=function(){this.lastAction="maximize",this.maximizeState()},t.prototype.maximizeState=function(){this.storeOptions();var t=this.windowViewPort;this.options=Object.assign({},this.options,{height:t.height,left:0,position:"fixed",state:"maximized",top:0,width:t.width}),this.stateChange.emit("maximized")},t.prototype.minimizeAction=function(){this.lastAction="minimize",this.minimizeState()},t.prototype.minimizeState=function(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")},t.prototype.applyManualState=function(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}},t.prototype.closeAction=function(){this.close.emit()},t.prototype.ensureWidth=function(){var t=c.offset(this.window.nativeElement);u.isPresent(this.options.width)||(this.options.width=t.width,this.change.emit({width:t.width}))},t.prototype.clearHeight=function(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight},t.prototype.center=function(){if("maximized"!==this.options.state){var t=c.scrollPosition(this.window.nativeElement),e=this.windowViewPort,n=c.offset(this.window.nativeElement),i={};u.isPresent(this.options.left)||(this.options.left=t.x+Math.max(0,(e.width-n.width)/2),i.left=this.options.left),u.isPresent(this.options.top)||(this.options.top=t.y+Math.max(0,(e.height-n.height)/2),i.top=this.options.top),this.change.emit(i)}},t.prototype.currentOffsetAndPosition=function(){var t=this.options,e=c.offset(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:t.height?t.height:e.height,width:t.width?t.width:e.width})},t.prototype.currentPosition=function(){var t=this.options;return t.top&&t.left||this.setPosition(),{x:this.options.left,y:this.options.top}},t.prototype.setPosition=function(){var t=c.positionWithScroll(this.window.nativeElement,c.getDocumentElement(this.window.nativeElement));this.options.left=t.left,this.options.top=t.top},t.prototype.setRestoreOption=function(t,e){u.isPresent(this.restoreOptions)&&(this.restoreOptions[t]=e)},Object.defineProperty(t.prototype,"nextPossibleZIndex",{get:function(){return a},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextZIndex",{get:function(){return a++},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"windowViewPort",{get:function(){return c.getWindowViewPort(this.window.nativeElement)},enumerable:!0,configurable:!0}),t=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.NgZone])],t)}();e.DragResizeService=p},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return W})),n.d(e,"auditTime",(function(){return Z})),n.d(e,"buffer",(function(){return q})),n.d(e,"bufferCount",(function(){return X})),n.d(e,"bufferTime",(function(){return tt})),n.d(e,"bufferToggle",(function(){return ut})),n.d(e,"bufferWhen",(function(){return lt})),n.d(e,"catchError",(function(){return dt})),n.d(e,"combineAll",(function(){return _t})),n.d(e,"combineLatest",(function(){return xt})),n.d(e,"concat",(function(){return Vt})),n.d(e,"concatAll",(function(){return jt})),n.d(e,"concatMap",(function(){return Rt})),n.d(e,"concatMapTo",(function(){return Mt})),n.d(e,"count",(function(){return Bt})),n.d(e,"debounce",(function(){return Ht})),n.d(e,"debounceTime",(function(){return Zt})),n.d(e,"defaultIfEmpty",(function(){return Xt})),n.d(e,"delay",(function(){return re})),n.d(e,"delayWhen",(function(){return ce})),n.d(e,"dematerialize",(function(){return de})),n.d(e,"distinct",(function(){return ye})),n.d(e,"distinctUntilChanged",(function(){return ge})),n.d(e,"distinctUntilKeyChanged",(function(){return xe})),n.d(e,"elementAt",(function(){return Re})),n.d(e,"endWith",(function(){return Me})),n.d(e,"every",(function(){return Be})),n.d(e,"exhaust",(function(){return He})),n.d(e,"exhaustMap",(function(){return Ze})),n.d(e,"expand",(function(){return Ge})),n.d(e,"filter",(function(){return Ee})),n.d(e,"finalize",(function(){return Qe})),n.d(e,"find",(function(){return en})),n.d(e,"findIndex",(function(){return on})),n.d(e,"first",(function(){return sn})),n.d(e,"groupBy",(function(){return dn})),n.d(e,"ignoreElements",(function(){return gn})),n.d(e,"isEmpty",(function(){return xn})),n.d(e,"last",(function(){return On})),n.d(e,"map",(function(){return It})),n.d(e,"mapTo",(function(){return kn})),n.d(e,"materialize",(function(){return Nn})),n.d(e,"max",(function(){return Mn})),n.d(e,"merge",(function(){return Fn})),n.d(e,"mergeAll",(function(){return Pt})),n.d(e,"mergeMap",(function(){return Dt})),n.d(e,"flatMap",(function(){return Dt})),n.d(e,"mergeMapTo",(function(){return Ln})),n.d(e,"mergeScan",(function(){return Hn})),n.d(e,"min",(function(){return Zn})),n.d(e,"multicast",(function(){return Jn})),n.d(e,"observeOn",(function(){return ei})),n.d(e,"onErrorResumeNext",(function(){return oi})),n.d(e,"pairwise",(function(){return ci})),n.d(e,"partition",(function(){return pi})),n.d(e,"pluck",(function(){return di})),n.d(e,"publish",(function(){return bi})),n.d(e,"publishBehavior",(function(){return vi})),n.d(e,"publishLast",(function(){return gi})),n.d(e,"publishReplay",(function(){return Ci})),n.d(e,"race",(function(){return Oi})),n.d(e,"reduce",(function(){return Rn})),n.d(e,"repeat",(function(){return ki})),n.d(e,"repeatWhen",(function(){return Ni})),n.d(e,"retry",(function(){return ji})),n.d(e,"retryWhen",(function(){return Ri})),n.d(e,"refCount",(function(){return qn})),n.d(e,"sample",(function(){return Fi})),n.d(e,"sampleTime",(function(){return Ki})),n.d(e,"scan",(function(){return jn})),n.d(e,"sequenceEqual",(function(){return Ui})),n.d(e,"share",(function(){return Ji})),n.d(e,"shareReplay",(function(){return tr})),n.d(e,"single",(function(){return er})),n.d(e,"skip",(function(){return rr})),n.d(e,"skipLast",(function(){return ur})),n.d(e,"skipUntil",(function(){return lr})),n.d(e,"skipWhile",(function(){return dr})),n.d(e,"startWith",(function(){return yr})),n.d(e,"subscribeOn",(function(){return Cr})),n.d(e,"switchAll",(function(){return kr})),n.d(e,"switchMap",(function(){return Tr})),n.d(e,"switchMapTo",(function(){return Dr})),n.d(e,"take",(function(){return je})),n.d(e,"takeLast",(function(){return En})),n.d(e,"takeUntil",(function(){return Ar})),n.d(e,"takeWhile",(function(){return Pr})),n.d(e,"tap",(function(){return Oe})),n.d(e,"throttle",(function(){return Rr})),n.d(e,"throttleTime",(function(){return Fr})),n.d(e,"throwIfEmpty",(function(){return ze})),n.d(e,"timeInterval",(function(){return Yr})),n.d(e,"timeout",(function(){return Qr})),n.d(e,"timeoutWith",(function(){return Gr})),n.d(e,"timestamp",(function(){return Jr})),n.d(e,"toArray",(function(){return no})),n.d(e,"window",(function(){return io})),n.d(e,"windowCount",(function(){return so})),n.d(e,"windowTime",(function(){return ao})),n.d(e,"windowToggle",(function(){return vo})),n.d(e,"windowWhen",(function(){return _o})),n.d(e,"withLatestFrom",(function(){return So})),n.d(e,"zip",(function(){return No})),n.d(e,"zipAll",(function(){return zo}));var i=n(0);function r(t){return"function"==typeof t}var o=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function u(t){setTimeout((function(){throw t}))}var c={closed:!0,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;u(t)},complete:function(){}},a=Array.isArray||function(t){return t&&"number"==typeof t.length};function l(t){return null!==t&&"object"==typeof t}function h(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}h.prototype=Object.create(Error.prototype);var p=h,d=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,i=this._parents,o=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var u=-1,c=i?i.length:0;n;)n.remove(this),n=++u<c&&i[u]||null;if(r(o))try{o.call(this)}catch(n){e=!0,t=n instanceof p?f(n.errors):[n]}if(a(s))for(u=-1,c=s.length;++u<c;){var h=s[u];if(l(h))try{h.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 i=n;(n=new t)._subscriptions=[i]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var r=this._subscriptions;r?r.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 b="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){function e(n,i,r){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=c;break;case 1:if(!n){o.destination=c;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new v(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new v(o,n,i,r)}return o}return i.__extends(e,t),e.prototype[b]=function(){return this},e.create=function(t,n,i){var r=new e(t,n,i);return r.syncErrorThrowable=!1,r},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}(d),v=function(t){function e(e,n,i,o){var s,u=t.call(this)||this;u._parentSubscriber=e;var a=u;return r(n)?s=n:n&&(s=n.next,i=n.error,o=n.complete,n!==c&&(r((a=Object.create(n)).unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=s,u._error=i,u._complete=o,u}return i.__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):u(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;u(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;u(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):(u(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(y),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(y),g=function(t){function e(e,n,i){var r=t.call(this)||this;return r.parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.__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}(y);var _="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S(t)}function S(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 i=this.operator,r=function(t,e,n){if(t){if(t instanceof y)return t;if(t[b])return t[b]()}return t||e||n?new y(t,e,n):new y(c)}(t,e,n);if(i?r.add(i.call(r,this.source)):r.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},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,i=e.destination,r=e.isStopped;if(n||r)return!1;t=i&&i instanceof y?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=E(e))((function(e,i){var r;r=n.subscribe((function(e){try{t(e)}catch(t){i(t),r&&r.unsubscribe()}}),i,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[_]=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:S(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=E(t))((function(t,n){var i;e.subscribe((function(t){return i=t}),(function(t){return n(t)}),(function(){return t(i)}))}))},t.create=function(e){return new t(e)},t}();function E(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var T=function(t){return function(e){for(var n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},I=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,u),e}};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var k=O(),D=function(t){return function(e){for(var n=t[k]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}},A=function(t){return function(e){var n=t[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},N=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function z(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var P=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[_])return A(t);if(N(t))return T(t);if(z(t))return I(t);if(t&&"function"==typeof t[k])return D(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 j(t,e,n,i,r){if(void 0===r&&(r=new g(t,n,i)),!r.closed)return P(e)(r)}function W(t){return function(e){return e.lift(new V(t))}}var V=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new R(t,this.durationSelector))},t}(),R=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__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=j(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,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(m),M=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return i.__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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,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,i=void 0;try{this.work(t)}catch(t){n=!0,i=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,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 i.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(d)),B=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}(),F=function(t){function e(n,i){void 0===i&&(i=B.now);var r=t.call(this,n,(function(){return e.delegate&&e.delegate!==r?e.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return i.__extends(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},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}(B),L=new F(M);function H(t){return!a(t)&&t-parseFloat(t)+1>=0}function K(t){return t&&"function"==typeof t.schedule}function Y(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function Z(t,e){return void 0===e&&(e=L),W((function(){return function(t,e,n){void 0===t&&(t=0);var i=-1;return H(e)?i=Number(e)<1?1:Number(e):K(e)&&(n=e),K(n)||(n=L),new C((function(e){var r=H(t)?t:+t-n.now();return n.schedule(Y,r,{index:0,period:i,subscriber:e})}))}(t,e)}))}function q(t){return function(e){return e.lift(new U(t))}}var U=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new G(t,this.closingNotifier))},t}(),G=function(t){function e(e,n){var i=t.call(this,e)||this;return i.buffer=[],i.add(j(i,n)),i}return i.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(m);function X(t,e){return void 0===e&&(e=null),function(n){return n.lift(new $(t,e))}}var $=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?J:Q}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),Q=function(t){function e(e,n){var i=t.call(this,e)||this;return i.bufferSize=n,i.buffer=[],i}return i.__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}(y),J=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.bufferSize=n,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i.__extends(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var s=i[o];s.push(t),s.length===e&&(i.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var i=e.shift();i.length>0&&n.next(i)}t.prototype._complete.call(this)},e}(y);function tt(t){var e=arguments.length,n=L;K(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return e>=3&&(r=arguments[2]),function(e){return e.lift(new et(t,i,r,n))}}var et=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),nt=function(){return function(){this.buffer=[]}}(),it=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=i,s.maxBufferSize=r,s.scheduler=o,s.contexts=[];var u=s.openContext();if(s.timespanOnly=null==i||i<0,s.timespanOnly){var c={subscriber:s,context:u,bufferTimeSpan:n};s.add(u.closeAction=o.schedule(rt,n,c))}else{var a={subscriber:s,context:u},l={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:s,scheduler:o};s.add(u.closeAction=o.schedule(st,n,a)),s.add(o.schedule(ot,i,l))}return s}return i.__extends(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}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 i=e.shift();n.next(i.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,i={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(rt,n,i))}},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}(y);function rt(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 ot(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(st,n,{subscriber:i,context:o})),this.schedule(t,e))}function st(t){var e=t.subscriber,n=t.context;e.closeContext(n)}function ut(t,e){return function(n){return n.lift(new ct(t,e))}}var ct=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new at(t,this.openings,this.closingSelector))},t}(),at=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(j(r,n)),r}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,i=0;i<n;i++)e[i].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.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,i,r){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,i=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new d,i={buffer:[],subscription:n};e.push(i);var r=j(this,t,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},e}(m);function lt(t){return function(e){return e.lift(new ht(t))}}var ht=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 i=t.call(this,e)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__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,i,r){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 d,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(j(this,e)),this.subscribing=!1},e}(m);function dt(t){return function(e){var n=new ft(t),i=e.lift(n);return n.caught=i}}var ft=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new bt(t,this.selector,this.caught))},t}(),bt=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return i.__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 i=new g(this,void 0,void 0);this.add(i),j(this,n,void 0,void 0,i)}},e}(m);function yt(t,e){return new C(e?function(n){var i=new d,r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:T(t))}var vt={};var mt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new gt(t,this.resultSelector))},t}(),gt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__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 i=t[n];this.add(j(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.values,s=o[n],u=this.toRespond?s===vt?--this.toRespond:this.toRespond:0;o[n]=e,0===u&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.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}(m);function _t(t){return function(e){return e.lift(new mt(t))}}function wt(t,e){if(!e)return t instanceof C?t:new C(P(t));if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new C(e?function(n){var i=new d;return i.add(e.schedule((function(){var r=t[_]();i.add(r.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}:A(t))}(t,e);if(z(t))return function(t,e){return new C(e?function(n){var i=new d;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}:I(t))}(t,e);if(N(t))return yt(t,e);if(function(t){return t&&"function"==typeof t[k]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new C(e?function(n){var i,r=new d;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(e.schedule((function(){i=t[k](),r.add(e.schedule((function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),r}:D(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&&a(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(wt([e].concat(t)),new mt(n))}}var St=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):St}function Et(t){var e=new C((function(e){e.next(t),e.complete()}));return e._isScalar=!0,e.value=t,e}function Tt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(K(n)?t.pop():n=void 0,t.length){case 0:return Ct(n);case 1:return n?yt(t,n):Et(t[0]);default:return yt(t,n)}}function It(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 Ot(t,e))}}var Ot=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.project,this.thisArg))},t}(),kt=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.__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}(y);function Dt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(Dt((function(n,i){return wt(t(n,i)).pipe(It((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new At(t,n))})}var At=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 Nt(t,this.project,this.concurrent))},t}(),Nt=function(t){function e(e,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=t.call(this,e)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.__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 i=new g(this,void 0,void 0);this.destination.add(i),j(this,t,e,n,i)},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,i,r){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}(m);function zt(t){return t}function Pt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Dt(zt,t)}function jt(){return Pt(1)}function Wt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return jt()(Tt.apply(void 0,t))}function Vt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Wt.apply(void 0,[e].concat(t)))}}function Rt(t,e){return Dt(t,e,1)}function Mt(t,e){return Rt((function(){return t}),e)}function Bt(t){return function(e){return e.lift(new Ft(t,e))}}var Ft=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.predicate,this.source))},t}(),Lt=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.source=i,r.count=0,r.index=0,r}return i.__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}(y);function Ht(t){return function(e){return e.lift(new Kt(t))}}var Kt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Yt(t,this.durationSelector))},t}(),Yt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i.durationSubscription=null,i}return i.__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=j(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,i,r){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}(m);function Zt(t,e){return void 0===e&&(e=L),function(n){return n.lift(new qt(t,e))}}var qt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.dueTime,this.scheduler))},t}(),Ut=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Gt,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}(y);function Gt(t){t.debouncedNext()}function Xt(t){return void 0===t&&(t=null),function(e){return e.lift(new Qt(t))}}var $t,Qt=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.defaultValue))},t}(),Jt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__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}(y);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)}$t||($t={});var ie=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 Tt(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 re(t,e){void 0===e&&(e=L);var n=te(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new oe(n,e))}}var oe=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,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}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 ue(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ie.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ie.createComplete()),this.unsubscribe()},e}(y),ue=function(){return function(t,e){this.time=t,this.notification=e}}();function ce(t,e){return e?function(n){return new he(n,e).lift(new ae(t))}:function(e){return e.lift(new ae(t))}}var ae=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 i=t.call(this,e)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(t),this.removeSubscription(r),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=j(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}(m),he=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subscriptionDelay=n,i}return i.__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 i=t.call(this)||this;return i.parent=e,i.source=n,i.sourceSubscribed=!1,i}return i.__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}(y);function de(){return function(t){return t.lift(new fe)}}var fe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new be(t))},t}(),be=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(y);function ye(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 me(t,this.keySelector,this.flushes))},t}(),me=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=n,r.values=new Set,i&&r.add(j(r,i)),r}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){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}(m);function ge(t,e){return function(n){return n.lift(new _e(t,e))}}var _e=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,i){var r=t.call(this,e)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.__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 i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))},e}(y);function xe(t,e){return ge((function(n,i){return e?e(n[t],i[t]):n[t]===i[t]}))}function Se(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Se.prototype=Object.create(Error.prototype);var Ce=Se;function Ee(t,e){return function(n){return n.lift(new Te(t,e))}}var Te=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ie(t,this.predicate,this.thisArg))},t}(),Ie=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i.__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}(y);function Oe(t,e,n){return function(i){return i.lift(new ke(t,e,n))}}var ke=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 De(t,this.nextOrObserver,this.error,this.complete))},t}(),De=function(t){function e(e,n,i,o){var s=t.call(this,e)||this;return s._tapNext=w,s._tapError=w,s._tapComplete=w,s._tapError=i||w,s._tapComplete=o||w,r(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 i.__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}(y);function Ae(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ae.prototype=Object.create(Error.prototype);var Ne=Ae,ze=function(t){return void 0===t&&(t=Pe),Oe({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Pe(){return new Ne}function je(t){return function(e){return 0===t?Ct():e.lift(new We(t))}}var We=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 Ve(t,this.total))},t}(),Ve=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.__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}(y);function Re(t,e){if(t<0)throw new Ce;var n=arguments.length>=2;return function(i){return i.pipe(Ee((function(e,n){return n===t})),je(1),n?Xt(e):ze((function(){return new Ce})))}}function Me(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];K(n)?t.pop():n=null;var i=t.length;return Wt(e,1!==i||n?i>0?yt(t,n):Ct(n):Et(t[0]))}}function Be(t,e){return function(n){return n.lift(new Fe(t,e,n))}}var Fe=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 Le(t,this.predicate,this.thisArg,this.source))},t}(),Le=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.__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}(y);function He(){return function(t){return t.lift(new Ke)}}var Ke=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ye(t))},t}(),Ye=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(j(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}(m);function Ze(t,e){return e?function(n){return n.pipe(Ze((function(n,i){return wt(t(n,i)).pipe(It((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new qe(t))}}var qe=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ue(t,this.project))},t}(),Ue=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__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 i=new g(this,void 0,void 0);this.destination.add(i),j(this,t,e,n,i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){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}(m);function Ge(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(i){return i.lift(new Xe(t,e,n))}}var Xe=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 $e(t,this.project,this.concurrent,this.scheduler))},t}(),$e=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.project=n,o.concurrent=i,o.scheduler=r,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i.__extends(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,i=t.value,r=t.index;e.subscribeToProjection(n,i,r)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(t);try{var r=(0,this.project)(t,i);if(this.scheduler){var o={subscriber:this,result:r,value:t,index:i};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(r,t,i)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(j(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,i,r){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}(m);function Qe(t){return function(e){return e.lift(new Je(t))}}var Je=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 i=t.call(this,e)||this;return i.add(new d(n)),i}return i.__extends(e,t),e}(y);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,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}return t.prototype.call=function(t,e){return e.subscribe(new rn(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),rn=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=i,s.yieldIndex=r,s.thisArg=o,s.index=0,s}return i.__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,i=this.index++;try{e.call(n||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(y);function on(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(i){return i.pipe(t?Ee((function(e,n){return t(e,n,i)})):zt,je(1),n?Xt(e):ze((function(){return new Ne})))}}function un(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}un.prototype=Object.create(Error.prototype);var cn=un,an=function(t){function e(e,n){var i=t.call(this)||this;return i.subject=e,i.subscriber=n,i.closed=!1,i}return i.__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}(d),ln=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i.__extends(e,t),e}(y),hn=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 i.__extends(e,t),e.prototype[b]=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 cn;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].next(t)},e.prototype.error=function(t){if(this.closed)throw new cn;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new cn;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].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 cn;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new cn;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new an(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 i=t.call(this)||this;return i.destination=e,i.source=n,i}return i.__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):d.EMPTY},e}(hn);function dn(t,e,n,i){return function(r){return r.lift(new fn(t,e,n,i))}}var fn=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new bn(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),bn=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=i,s.durationSelector=r,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return i.__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 i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(t){this.error(t)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new hn,n.set(e,r);var o=new vn(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new vn(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new yn(e,r,this)))}}r.closed||r.next(i)},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}(y),yn=function(t){function e(e,n,i){var r=t.call(this,n)||this;return r.key=e,r.group=n,r.parent=i,r}return i.__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}(y),vn=function(t){function e(e,n,i){var r=t.call(this)||this;return r.key=e,r.groupSubject=n,r.refCountSubscription=i,r}return i.__extends(e,t),e.prototype._subscribe=function(t){var e=new d,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new mn(n)),e.add(i.subscribe(t)),e},e}(C),mn=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return i.__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}(d);function gn(){return function(t){return t.lift(new _n)}}var _n=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 i.__extends(e,t),e.prototype._next=function(t){},e}(y);function xn(){return function(t){return t.lift(new Sn)}}var Sn=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 i.__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}(y);function En(t){return function(e){return 0===t?Ct():e.lift(new Tn(t))}}var Tn=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 In(t,this.total))},t}(),In=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%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,i=this.ring,r=0;r<n;r++){var o=e++%n;t.next(i[o])}t.complete()},e}(y);function On(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ee((function(e,n){return t(e,n,i)})):zt,En(1),n?Xt(e):ze((function(){return new Ne})))}}function kn(t){return function(e){return e.lift(new Dn(t))}}var Dn=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new An(t,this.value))},t}(),An=function(t){function e(e,n){var i=t.call(this,e)||this;return i.value=n,i}return i.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(y);function Nn(){return function(t){return t.lift(new zn)}}var zn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Pn(t))},t}(),Pn=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._next=function(t){this.destination.next(ie.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ie.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ie.createComplete()),t.complete()},e}(y);function jn(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Wn(t,e,n))}}var Wn=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 Vn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Vn=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.__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}(y);function Rn(t,e){return arguments.length>=2?function(n){return x(jn(t,e),En(1),Xt(e))(n)}:function(e){return x(jn((function(e,n,i){return t(e,n,i+1)})),En(1))(e)}}function Mn(t){return Rn("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}function Bn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,i=null,r=t[t.length-1];return K(r)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof r&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof C?t[0]:Pt(n)(yt(t,i))}function Fn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Bn.apply(void 0,[e].concat(t)))}}function Ln(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Dt((function(){return t}),e,n):("number"==typeof e&&(n=e),Dt((function(){return t}),n))}function Hn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Kn(t,e,n))}}var Kn=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 Yn(t,this.accumulator,this.seed,this.concurrent))},t}(),Yn=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=i,o.concurrent=r,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(i,t,e)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){var i=new g(this,void 0,void 0);this.destination.add(i),j(this,t,e,n,i)},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,i,r){var o=this.destination;this.acc=e,this.hasValue=!0,o.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}(m);function Zn(t){return Rn("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}function qn(){return function(t){return t.lift(new Un(t))}}var Un=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new Gn(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),Gn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.__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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(y),Xn=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.__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 d).add(this.source.subscribe(new Qn(this.getSubject(),this))),t.closed?(this._connection=null,t=d.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return qn()(this)},e}(C).prototype,$n={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Xn._subscribe},_isComplete:{value:Xn._isComplete,writable:!0},getSubject:{value:Xn.getSubject},connect:{value:Xn.connect},refCount:{value:Xn.refCount}},Qn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.__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 Jn(t,e){return function(n){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new ti(i,e));var r=Object.create(n,$n);return r.source=n,r.subjectFactory=i,r}}var ti=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r},t}();function ei(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ni(t,e))}}var ni=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 ii(t,this.scheduler,this.delay))},t}(),ii=function(t){function e(e,n,i){void 0===i&&(i=0);var r=t.call(this,e)||this;return r.scheduler=n,r.delay=i,r}return i.__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 ri(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(ie.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(ie.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(ie.createComplete()),this.unsubscribe()},e}(y),ri=function(){return function(t,e){this.notification=t,this.destination=e}}();function oi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&a(t[0])&&(t=t[0]),function(e){return e.lift(new si(t))}}var si=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new ui(t,this.nextSources))},t}(),ui=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.nextSources=n,i}return i.__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 g(this,void 0,void 0);this.destination.add(e),j(this,t,void 0,void 0,e)}else this.destination.complete()},e}(m);function ci(){return function(t){return t.lift(new ai)}}var ai=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new li(t))},t}(),li=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return i.__extends(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(y);function hi(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function pi(t,e){return function(n){return[Ee(t,e)(n),Ee(hi(t,e))(n)]}}function di(){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 It(fi(t,n))(e)}}function fi(t,e){return function(n){for(var i=n,r=0;r<e;r++){var o=i[t[r]];if(void 0===o)return;i=o}return i}}function bi(t){return t?Jn((function(){return new hn}),t):Jn(new hn)}var yi=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i.__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 cn;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(hn);function vi(t){return function(e){return Jn(new yi(t))(e)}}var mi=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 i.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),d.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),d.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}(hn);function gi(){return function(t){return Jn(new mi)(t)}}var _i=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.__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,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(M),wi=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(F))(_i),xi=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=e<1?1:e,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.__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 Si(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new cn;if(this.isStopped||this.hasError?e=d.EMPTY:(this.observers.push(t),e=new an(this,t)),r&&t.add(t=new ii(t,r)),n)for(var s=0;s<o&&!t.closed;s++)t.next(i[s]);else for(s=0;s<o&&!t.closed;s++)t.next(i[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||wi).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(hn),Si=function(){return function(t,e){this.time=t,this.value=e}}();function Ci(t,e,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new xi(t,e,i);return function(t){return Jn((function(){return o}),r)(t)}}function Ei(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!a(t[0]))return t[0];t=t[0]}return yt(t,void 0).lift(new Ti)}var Ti=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ii(t))},t}(),Ii=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__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 i=t[n],r=j(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(m);function Oi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&a(t[0])&&(t=t[0]),e.lift.call(Ei.apply(void 0,[e].concat(t)))}}function ki(t){return void 0===t&&(t=-1),function(e){return 0===t?Ct():t<0?e.lift(new Di(-1,e)):e.lift(new Di(t-1,e))}}var Di=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ai(t,this.count,this.source))},t}(),Ai=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.count=n,r.source=i,r}return i.__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}(y);function Ni(t){return function(e){return e.lift(new zi(t))}}var zi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Pi(t,this.notifier,e))},t}(),Pi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.notifier=n,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){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 hn;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=j(this,e)},e}(m);function ji(t){return void 0===t&&(t=-1),function(e){return e.lift(new Wi(t,e))}}var Wi=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Vi(t,this.count,this.source))},t}(),Vi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.count=n,r.source=i,r}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(y);function Ri(t){return function(e){return e.lift(new Mi(t,e))}}var Mi=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Bi(t,this.notifier,this.source))},t}(),Bi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.notifier=n,r.source=i,r}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{n=new hn;try{i=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}r=j(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,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,i,r){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},e}(m);function Fi(t){return function(e){return e.lift(new Li(t))}}var Li=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Hi(t),i=e.subscribe(n);return i.add(j(n,this.notifier)),i},t}(),Hi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return i.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(m);function Ki(t,e){return void 0===e&&(e=L),function(n){return n.lift(new Yi(t,e))}}var Yi=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Zi(t,this.period,this.scheduler))},t}(),Zi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.period=n,r.scheduler=i,r.hasValue=!1,r.add(i.schedule(qi,n,{subscriber:r,period:n})),r}return i.__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}(y);function qi(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Ui(t,e){return function(n){return n.lift(new Gi(t,e))}}var Gi=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Xi(t,this.compareTo,this.comparator))},t}(),Xi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.compareTo=n,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(n.subscribe(new $i(e,r))),r}return i.__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 i=t.shift(),r=e.shift(),o=!1;try{o=n?n(i,r):i===r}catch(t){this.destination.error(t)}o||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}(y),$i=function(t){function e(e,n){var i=t.call(this,e)||this;return i.parent=n,i}return i.__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}(y);function Qi(){return new hn}function Ji(){return function(t){return qn()(Jn(Qi)(t))}}function tr(t,e,n){var i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,c=t.scheduler,a=0,l=!1,h=!1;return function(t){a++,e&&!l||(l=!1,e=new xi(r,s,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,e.complete()}}));var i=e.subscribe(this);this.add((function(){a--,i.unsubscribe(),n&&!h&&u&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(i))}}function er(t){return function(e){return e.lift(new nr(t,e))}}var nr=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new ir(t,this.predicate,this.source))},t}(),ir=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.source=i,r.seenValue=!1,r.index=0,r}return i.__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 Ne)},e}(y);function rr(t){return function(e){return e.lift(new or(t))}}var or=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new sr(t,this.total))},t}(),sr=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(y);function ur(t){return function(e){return e.lift(new cr(t))}}var cr=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 y(t)):e.subscribe(new ar(t,this._skipCount))},t}(),ar=function(t){function e(e,n){var i=t.call(this,e)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var i=n%e,r=this._ring,o=r[i];r[i]=t,this.destination.next(o)}},e}(y);function lr(t){return function(e){return e.lift(new hr(t))}}var hr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new pr(t,this.notifier))},t}(),pr=function(t){function e(e,n){var i=t.call(this,e)||this;i.hasValue=!1;var r=new g(i,void 0,void 0);return i.add(r),i.innerSubscription=r,j(i,n,void 0,void 0,r),i}return i.__extends(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,i,r){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(m);function dr(t){return function(e){return e.lift(new fr(t))}}var fr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new br(t,this.predicate))},t}(),br=function(t){function e(e,n){var i=t.call(this,e)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__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}(y);function yr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];K(n)?t.pop():n=null;var i=t.length;return Wt(1!==i||n?i>0?yt(t,n):Ct(n):Et(t[0]),e)}}var vr=1,mr={};var gr=function(t){var e=vr++;return mr[e]=t,Promise.resolve().then((function(){return function(t){var e=mr[t];e&&e()}(e)})),e},_r=function(t){delete mr[t]},wr=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.__extends(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=gr(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(_r(n),e.scheduled=void 0)},e}(M),xr=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}(F))(wr),Sr=function(t){function e(e,n,i){void 0===n&&(n=0),void 0===i&&(i=xr);var r=t.call(this)||this;return r.source=e,r.delayTime=n,r.scheduler=i,(!H(n)||n<0)&&(r.delayTime=0),i&&"function"==typeof i.schedule||(r.scheduler=xr),r}return i.__extends(e,t),e.create=function(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=xr),new e(t,n,i)},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,i=this.source;return this.scheduler.schedule(e.dispatch,n,{source:i,subscriber:t})},e}(C);function Cr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Er(t,e))}}var Er=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Sr(e,this.delay,this.scheduler).subscribe(t)},t}();function Tr(t,e){return"function"==typeof e?function(n){return n.pipe(Tr((function(n,i){return wt(t(n,i)).pipe(It((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Ir(t))}}var Ir=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Or(t,this.project))},t}(),Or=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return i.__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 i=this.innerSubscription;i&&i.unsubscribe();var r=new g(this,void 0,void 0);this.destination.add(r),this.innerSubscription=j(this,t,e,n,r)},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,i,r){this.destination.next(e)},e}(m);function kr(){return Tr(zt)}function Dr(t,e){return e?Tr((function(){return t}),e):Tr((function(){return t}))}function Ar(t){return function(e){return e.lift(new Nr(t))}}var Nr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new zr(t),i=j(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),zr=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(m);function Pr(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new jr(t,e))}}var jr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new Wr(t,this.predicate,this.inclusive))},t}(),Wr=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.inclusive=i,r.index=0,r}return i.__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}(y),Vr={leading:!0,trailing:!1};function Rr(t,e){return void 0===e&&(e=Vr),function(n){return n.lift(new Mr(t,e.leading,e.trailing))}}var Mr=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 Br(t,this.durationSelector,this.leading,this.trailing))},t}(),Br=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=i,o._trailing=r,o._hasValue=!1,o}return i.__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=j(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,i,r){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(m);function Fr(t,e,n){return void 0===e&&(e=L),void 0===n&&(n=Vr),function(i){return i.lift(new Lr(t,e,n.leading,n.trailing))}}var Lr=function(){function t(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new Hr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Hr=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=i,s.leading=r,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return i.__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(Kr,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}(y);function Kr(t){t.subscriber.clearThrottle()}function Yr(t){return void 0===t&&(t=L),function(e){return n=function(){return e.pipe(jn((function(e,n){var i=e.current;return{value:n,current:t.now(),last:i}}),{current:t.now(),value:void 0,last:void 0}),It((function(t){var e=t.current,n=t.last,i=t.value;return new Zr(i,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 Zr=function(){return function(t,e){this.value=t,this.interval=e}}();function qr(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}qr.prototype=Object.create(Error.prototype);var Ur=qr;function Gr(t,e,n){return void 0===n&&(n=L),function(i){var r=te(t),o=r?+t-n.now():Math.abs(t);return i.lift(new Xr(o,r,e,n))}}var Xr=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new $r(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),$r=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=i,s.withObservable=r,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}return i.__extends(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(j(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}(m);function Qr(t,e){return void 0===e&&(e=L),Gr(t,ee(new Ur),e)}function Jr(t){return void 0===t&&(t=L),It((function(e){return new to(e,t.now())}))}var to=function(){return function(t,e){this.value=t,this.timestamp=e}}();function eo(t,e,n){return 0===n?[e]:(t.push(e),t)}function no(){return Rn(eo,[])}function io(t){return function(e){return e.lift(new ro(t))}}var ro=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new oo(t),i=e.subscribe(n);return i.closed||n.add(j(n,this.windowBoundaries)),i},t}(),oo=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new hn,e.next(n.window),n}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){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 hn;e.next(n)},e}(m);function so(t,e){return void 0===e&&(e=0),function(n){return n.lift(new uo(t,e))}}var uo=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new co(t,this.windowSize,this.startWindowEvery))},t}(),co=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.destination=e,r.windowSize=n,r.startWindowEvery=i,r.windows=[new hn],r.count=0,e.next(r.windows[0]),r}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,s=0;s<o&&!this.closed;s++)r[s].next(t);var u=this.count-i+1;if(u>=0&&u%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var c=new hn;r.push(c),n.next(c)}},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}(y);function ao(t){var e=L,n=null,i=Number.POSITIVE_INFINITY;return K(arguments[3])&&(e=arguments[3]),K(arguments[2])?e=arguments[2]:H(arguments[2])&&(i=arguments[2]),K(arguments[1])?e=arguments[1]:H(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new lo(t,n,i,e))}}var lo=function(){function t(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new po(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ho=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return i.__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}(hn),po=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=i,s.maxWindowSize=r,s.scheduler=o,s.windows=[];var u=s.openWindow();if(null!==i&&i>=0){var c={subscriber:s,window:u,context:null},a={windowTimeSpan:n,windowCreationInterval:i,subscriber:s,scheduler:o};s.add(o.schedule(yo,n,c)),s.add(o.schedule(bo,i,a))}else{var l={subscriber:s,window:u,windowTimeSpan:n};s.add(o.schedule(fo,n,l))}return s}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,i=0;i<n;i++){var r=e[i];r.closed||(r.next(t),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},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 ho;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}(y);function fo(t){var e=t.subscriber,n=t.windowTimeSpan,i=t.window;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function bo(t){var e=t.windowTimeSpan,n=t.subscriber,i=t.scheduler,r=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null},u={subscriber:n,window:o,context:s};s.subscription=i.schedule(yo,e,u),this.add(s.subscription),this.schedule(t,r)}function yo(t){var e=t.subscriber,n=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}function vo(t,e){return function(n){return n.lift(new mo(t,e))}}var mo=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new go(t,this.openings,this.closingSelector))},t}(),go=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=j(r,n,n)),r}return i.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,i=0;i<n;i++)e[i].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(e),o.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,i=-1;++i<n;){var r=e[i];r.window.complete(),r.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 i=t[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,i,r){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var s=new hn,u=new d,c={window:s,subscription:u};this.contexts.push(c);var a=j(this,o,c);a.closed?this.closeWindow(this.contexts.length-1):(a.context=c,u.add(a)),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],i=n.window,r=n.subscription;e.splice(t,1),i.complete(),r.unsubscribe()}},e}(m);function _o(t){return function(e){return e.lift(new wo(t))}}var wo=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new xo(t,this.closingSelector))},t}(),xo=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.closingSelector=n,i.openWindow(),i}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow(r)},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,i=this.window=new hn;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=j(this,n))},e}(m);function So(){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 i=t;return e.lift(new Co(i,n))}}var Co=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Eo(t,this.observables,this.project))},t}(),Eo=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.observables=n,r.project=i,r.toRespond=[];var o=n.length;r.values=new Array(o);for(var s=0;s<o;s++)r.toRespond.push(s);for(s=0;s<o;s++){var u=n[s];r.add(j(r,u,u,s))}return r}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.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}(m);function To(){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(),yt(t,void 0).lift(new Io(n))}var Io=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Oo(t,this.resultSelector))},t}(),Oo=function(t){function e(e,n,i){void 0===i&&(i=Object.create(null));var r=t.call(this,e)||this;return r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:null,r.values=i,r}return i.__extends(e,t),e.prototype._next=function(t){var e=this.iterators;a(t)?e.push(new Do(t)):"function"==typeof t[k]?e.push(new ko(t[k]())):e.push(new Ao(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 i=t[n];if(i.stillUnsubscribed)this.destination.add(i.subscribe(i,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,i=0;i<e;i++){if("function"==typeof(s=t[i]).hasValue&&!s.hasValue())return}var r=!1,o=[];for(i=0;i<e;i++){var s,u=(s=t[i]).next();if(s.hasCompleted()&&(r=!0),u.done)return void n.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&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}(y),ko=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}(),Do=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[k]=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}(),Ao=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return i.__extends(e,t),e.prototype[k]=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,i,r){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return j(this,this.observable,this,e)},e}(m);function No(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(To.apply(void 0,[e].concat(t)))}}function zo(t){return function(e){return e.lift(new Io(t))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=function(){function t(t){this.el=t,this.layout="stretched",this.action=new r.EventEmitter,this.buttonGroupClassName=!0}return Object.defineProperty(t.prototype,"className",{get:function(){return"stretched"===this.layout},enumerable:!0,configurable:!0}),t.prototype.actionTemplate=function(){return this.actions instanceof r.TemplateRef},t.prototype.onButtonClick=function(t,e){this.action.emit(t)},t.prototype.buttonClass=function(t){var e=["k-button k-button-md k-rounded-md"],n=t.fillMode?t.fillMode:"solid",i=t.themeColor?t.themeColor:"base",r=t.cssClass?o.parseCSSClassNames(t.cssClass):[];return e.push("k-button-"+n+" k-button-"+n+"-"+i),r.length>0&&(e=e.concat(r)),e.join(" ")},i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"actions",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"layout",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"action",void 0),i.__decorate([r.HostBinding("class.k-dialog-buttongroup"),r.HostBinding("class.k-actions"),i.__metadata("design:type",Boolean)],t.prototype,"buttonGroupClassName",void 0),i.__decorate([r.HostBinding("class.k-actions-stretched"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),t=i.__decorate([r.Component({selector:"kendo-dialog-actions",template:'\n <ng-content *ngIf="!actions"></ng-content>\n <ng-container *ngIf="!actionTemplate()">\n <button\n type="button"\n [ngClass]="buttonClass(action)"\n (click)="onButtonClick(action, $event)"\n *ngFor="let action of actions"\n [attr.aria-label]="action.text"\n >\n {{ action.text }}\n </button>\n </ng-container>\n <ng-template [ngTemplateOutlet]="actions" *ngIf="actionTemplate()"></ng-template>\n '}),i.__metadata("design:paramtypes",[r.ElementRef])],t)}();e.DialogActionsComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(6),u=n(17),c=n(36),a=function(){function t(t,e,n){this.zone=t,this.hostElement=e,this.localizationService=n,this.close=new r.EventEmitter}return Object.defineProperty(t.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.zone.onStable.pipe(s.take(1)).subscribe((function(){t.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",t.id)}))},t.prototype.onCloseClick=function(t){t.preventDefault();var e=new u.PreventableEvent;this.close.emit(e)},i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),i.__decorate([r.HostBinding("class.k-window-titlebar"),r.HostBinding("class.k-dialog-titlebar"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),t=i.__decorate([r.Component({selector:"kendo-dialog-titlebar",providers:[c.TitleBarLocalizationService,{provide:o.LocalizationService,useExisting:c.TitleBarLocalizationService},{provide:o.L10N_PREFIX,useValue:"kendo.dialog"}],template:'\n <ng-container\n kendoDialogTitleBarLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-window-title k-dialog-title">\n <ng-content></ng-content>\n </div>\n\n <div class="k-window-actions k-dialog-actions">\n <button\n role="button"\n [attr.title]="closeButtonTitle"\n [attr.aria-label]="closeButtonTitle"\n class="k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-icon-button k-window-action k-dialog-action k-dialog-close"\n (click)="onCloseClick($event)"\n >\n <span class="k-button-icon k-icon k-i-x"></span>\n </button>\n </div>\n </ng-container>\n '}),i.__param(2,r.Optional()),i.__metadata("design:paramtypes",[r.NgZone,r.ElementRef,o.LocalizationService])],t)}();e.DialogTitleBarComponent=a},function(t,e){t.exports=r},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(35),s=n(7),u=n(8),c=n(2),a=n(19),l=n(20),h=n(3),p=n(12),d=n(18),f=n(6),b=n(4),y=function(){function t(t,e,n,i,o){var s=this;this.wrapper=t,this.renderer=e,this.cdr=i,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new r.EventEmitter,this.close=new r.EventEmitter,this.tabIndex=0,this.subscriptions=[],this.domSubs=new b.Subscription,a.validatePackage(l.packageMetadata),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe((function(t){var e=t.rtl;return s.direction=e?"rtl":"ltr"}))),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}return Object.defineProperty(t.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(t){h.setHTMLAttributes(t,this.renderer,this.wrapper.nativeElement);var e=this.wrapper.nativeElement,n=e.getAttribute("dir"),i=e.getAttribute("tabindex");this.direction!==n&&n&&(this.direction=n),this.tabIndex!==i&&i&&(this.tabIndex=i),this._htmlAttributes=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){this.setServiceClasses(this._cssClass,t),this._cssClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe((function(){h.isPresent(t.titlebarContent.first)&&(t.titlebarContent.first.id=t.titleId,t.ngZone.onStable.pipe(f.take(1)).subscribe((function(){t.bubble("close",t.titlebarContent.first),t.renderer.setAttribute(t.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",t.titleId)})))})))},t.prototype.ngAfterViewInit=function(){var t=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe((function(){h.isPresent(t.titlebarView.first)&&(t.titlebarView.first.id=t.titleId,t.ngZone.onStable.pipe(f.take(1)).subscribe((function(){t.bubble("close",t.titlebarView.first),t.renderer.setAttribute(t.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",t.titleId)})))}))),this.initDomEvents()},t.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()},t.prototype.focus=function(){var t=this.wrapper.nativeElement;h.isPresent(t)&&t.focus()},t.prototype.initDomEvents=function(){var t=this;this.wrapper&&this.ngZone.runOutsideAngular((function(){t.domSubs.add(t.renderer.listen(t.wrapper.nativeElement,"keydown",(function(e){t.onKeyDown(e)})))}))},t.prototype.onKeyDown=function(t){var e=this,n=t.target,i=n.parentElement;(h.hasClasses(n,h.DIALOG_ELEMENTS_HANDLING_ESC_KEY)||h.hasClasses(i,h.DIALOG_ELEMENTS_HANDLING_ESC_KEY))&&t.keyCode===h.Keys.esc&&this.ngZone.run((function(){e.close.emit(new p.DialogCloseResult)})),h.hasClasses(n,"k-button")&&h.hasClasses(i,h.DIALOG_ELEMENTS_HANDLING_ARROWS)&&(t.keyCode===h.Keys.left||t.keyCode===h.Keys.right)&&this.ngZone.run((function(){e.handleActionButtonFocus(i,t.keyCode)})),t.keyCode===h.Keys.tab&&this.ngZone.run((function(){e.keepFocusWithinComponent(n,t)}))},t.prototype.setServiceClasses=function(t,e){var n=this,i=this.wrapper.nativeElement;t&&h.parseCSSClassNames(t).forEach((function(t){n.renderer.removeClass(i,t)})),e&&h.parseCSSClassNames(e).forEach((function(t){n.renderer.addClass(i,t)}))},t.prototype.handleInitialFocus=function(){var t=this.wrapper.nativeElement,e=this.findPrimary(t);if(this.autoFocusedElement){var n=t.querySelector(this.autoFocusedElement);n&&n.focus()}else this.shouldFocusPrimary(e)?e.focus():t.focus()},t.prototype.findPrimary=function(t){var e=t.querySelectorAll(".k-actions .k-button");return h.findPrimaryButton(e)},t.prototype.handleActionButtonFocus=function(t,e){for(var n=this.getAllFocusableChildren(t),i=0;i<n.length;i++){if(n[i]===document.activeElement){if(e===h.Keys.left&&i>0){n[i-1].focus();break}if(e===h.Keys.right&&i<n.length-1){n[i+1].focus();break}}}},t.prototype.keepFocusWithinComponent=function(t,e){var n=this.wrapper.nativeElement,i=this.getFirstAndLastFocusable(n),r=i[0],o=i[1],s=!e.shiftKey&&t===o,u=e.shiftKey&&t===r;s&&(e.preventDefault(),r.focus()),u&&(e.preventDefault(),o.focus())},t.prototype.shouldFocusPrimary=function(t){return h.isPresent(t)&&h.isFocusable(t)},t.prototype.getAllFocusableChildren=function(t){return t.querySelectorAll(h.focusableSelector)},t.prototype.getFirstAndLastFocusable=function(t){var e=this.getAllFocusableChildren(t);return[e.length>0?e[0]:t,e.length>0?e[e.length-1]:t]},t.prototype.generateTitleId=function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()},t.prototype.generateContentId=function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()},Object.defineProperty(t.prototype,"wrapperClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){var t={};return this.width&&(t.width=h.createValueWithUnit(this.width)),this.height&&(t.height=h.createValueWithUnit(this.height)),this.minWidth&&(t.minWidth=h.createValueWithUnit(this.minWidth)),this.maxWidth&&(t.maxWidth=h.createValueWithUnit(this.maxWidth)),this.minHeight&&(t.minHeight=h.createValueWithUnit(this.minHeight)),this.maxHeight&&(t.maxHeight=h.createValueWithUnit(this.maxHeight)),t},enumerable:!0,configurable:!0}),t.prototype.bubble=function(t,e){var n=this;if(e){var i=e[t].subscribe((function(e){return n[t].emit(e)}));this.subscriptions.push(i)}},i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"actions",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"actionsLayout",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"autoFocusedElement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"width",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"minWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"maxWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"height",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"minHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"maxHeight",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"action",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"dir",null),i.__decorate([r.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([r.ContentChildren(u.DialogTitleBarComponent,{descendants:!1}),i.__metadata("design:type",r.QueryList)],t.prototype,"titlebarContent",void 0),i.__decorate([r.ViewChildren(u.DialogTitleBarComponent),i.__metadata("design:type",r.QueryList)],t.prototype,"titlebarView",void 0),i.__decorate([r.ViewChild(s.DialogActionsComponent,{static:!1}),i.__metadata("design:type",s.DialogActionsComponent)],t.prototype,"actionsView",void 0),i.__decorate([r.HostBinding("class.k-dialog-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperClass",null),t=i.__decorate([r.Component({animations:[o.trigger("overlayAppear",[o.state("in",o.style({opacity:1})),o.transition("void => *",[o.style({opacity:.1}),o.animate(".3s cubic-bezier(.2, .6, .4, 1)")])]),o.trigger("dialogSlideInAppear",[o.state("in",o.style({transform:"translate(0, 0)"})),o.transition("void => *",[o.style({transform:"translate(0, -10%)"}),o.animate(".3s cubic-bezier(.2, 1, .2, 1)")])])],exportAs:"kendoDialog",providers:[c.LocalizationService,{provide:d.DIALOG_LOCALIZATION_SERVICE,useExisting:c.LocalizationService},{provide:c.L10N_PREFIX,useValue:"kendo.dialog"}],selector:"kendo-dialog",template:'\n <ng-container\n kendoDialogLocalizedMessages\n i18n-closeTitle="kendo.dialog.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n <div class="k-overlay" @overlayAppear></div>\n\n <div class="k-window k-dialog" role="dialog" aria-modal="true" [ngStyle]="styles" @dialogSlideInAppear>\n <kendo-dialog-titlebar *ngIf="title" [closeTitle]="closeTitle" [id]="titleId">{{ title }}</kendo-dialog-titlebar>\n <ng-content select="kendo-dialog-titlebar" *ngIf="!title"></ng-content>\n\n <div [id]="contentId" class="k-content k-window-content k-dialog-content">\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-content select="kendo-dialog-actions" *ngIf="!actions"></ng-content>\n <kendo-dialog-actions *ngIf="actions" [actions]="actions" [layout]="actionsLayout"> </kendo-dialog-actions>\n </div>\n </ng-container>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,c.LocalizationService,r.ChangeDetectorRef,r.NgZone])],t)}();e.DialogComponent=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){};e.DialogAction=i;var r=function(){};e.DialogCloseResult=r;var o=function(){};e.DialogSettings=o;var s=function(){};e.DialogRef=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(){}var e;return e=t,Object.defineProperty(t.prototype,"container",{get:function(){return e.container},set:function(t){e.container=t},enumerable:!0,configurable:!0}),t.container=null,t=e=i.__decorate([r.Injectable()],t)}();e.DialogContainerService=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(9),u=n(4),c=n(19),a=n(20),l=n(5),h=n(3),p=n(3),d=n(23),f=n(15),b=n(38),y=function(){function t(t,e,n,i,o,s){var l=this;this.el=t,this.renderer=e,this.service=n,this.navigation=i,this.ngZone=o,this.localization=s,this.keepContent=!1,this.dragStart=new r.EventEmitter,this.dragEnd=new r.EventEmitter,this.resizeStart=new r.EventEmitter,this.resizeEnd=new r.EventEmitter,this.close=new r.EventEmitter,this.widthChange=new r.EventEmitter,this.heightChange=new r.EventEmitter,this.topChange=new r.EventEmitter,this.leftChange=new r.EventEmitter,this.stateChange=new r.EventEmitter,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new u.Subscription,this.domSubs=new u.Subscription,c.validatePackage(a.packageMetadata),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var e=t.rtl;return l.direction=e?"rtl":"ltr"})),this.resizeDirections=p.RESIZE_DIRECTIONS,this.subscribeEvents()}return Object.defineProperty(t.prototype,"draggable",{get:function(){return this.options.draggable},set:function(t){this.options.draggable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resizable",{get:function(){return this.options.resizable},set:function(t){this.options.resizable=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){this.setServiceClasses(this._cssClass,t),this._cssClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"htmlAttributes",{get:function(){return this._htmlAttributes},set:function(t){h.setHTMLAttributes(t,this.renderer,this.el.nativeElement);var e=this.el.nativeElement,n=e.getAttribute("dir"),i=e.getAttribute("tabindex");this.direction!==n&&(this.direction=n),this.tabIndex!==i&&(this.tabIndex=i),this._htmlAttributes=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.options.state},set:function(t){this.options.state=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.options.minWidth},set:function(t){this.setOption("minWidth",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this.options.minHeight},set:function(t){this.setOption("minHeight",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.options.width},set:function(t){this.setOption("width",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.options.height},set:function(t){this.setOption("height",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.options.top},set:function(t){this.setOption("top",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this.options.left},set:function(t){this.setOption("left",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closeButtonTitle",{get:function(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"restoreButtonTitle",{get:function(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximizeButtonTitle",{get:function(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimizeButtonTitle",{get:function(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular((function(){return Promise.resolve(null).then((function(){return t.setInitialOffset()}))})),this.initDomEvents()},t.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)},t.prototype.ngOnChanges=function(t){var e=this;if(h.OFFSET_STYLES.forEach((function(n){s.isChanged(n,t)&&e.setStyle(n,e.options[n])})),s.isChanged("draggable",t)){var n=h.isPresent(this.titleBarContent)?this.titleBarContent:this.titleBarView;h.isTruthy(t.draggable.currentValue)?n.subscribeDrag():n.unsubscribeDrag()}s.isChanged("state",t)&&(h.isPresent(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))},t.prototype.ngOnDestroy=function(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()},t.prototype.focus=function(){var t=this.el.nativeElement;h.isPresent(t)&&t.focus()},t.prototype.bringToFront=function(){this.setNextZIndex()},t.prototype.setDimension=function(t,e){this.setOption(t,e),this.setStyle(t,e)},t.prototype.setOffset=function(t,e){this.setOption(t,e),this.setStyle(t,e)},Object.defineProperty(t.prototype,"showDefaultTitleBar",{get:function(){return!h.isPresent(this.titleBarContent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleMinWidth",{get:function(){return this.minWidth+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleMinHeight",{get:function(){return this.minHeight+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stylePosition",{get:function(){return this.options.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperMaximizedClass",{get:function(){return"maximized"===this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperMinimizedClass",{get:function(){return"minimized"===this.state},enumerable:!0,configurable:!0}),t.prototype.onComponentFocus=function(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()},t.prototype.onComponentBlur=function(){this.renderer.removeClass(this.el.nativeElement,"k-focus")},t.prototype.subscribeEvents=function(){var t=this;s.isDocumentAvailable()&&(this.windowSubscription.add(this.service.focus.subscribe((function(){t.el.nativeElement.focus()}))),this.windowSubscription.add(this.service.dragStart.subscribe((function(){t.draged=!0,t.ngZone.run((function(){t.dragStart.emit()}))}))),this.windowSubscription.add(this.service.dragEnd.subscribe((function(){t.draged&&(t.draged=!1,t.ngZone.run((function(){t.dragEnd.emit()})))}))),this.windowSubscription.add(this.service.close.subscribe((function(){t.close.emit()}))),this.windowSubscription.add(this.service.resizeStart.subscribe((function(){t.resized=!0,t.ngZone.run((function(){t.resizeStart.emit()}))}))),this.windowSubscription.add(this.service.resizeEnd.subscribe((function(){t.resized&&(t.resized=!1,t.ngZone.run((function(){t.resizeEnd.emit()})))}))),this.windowSubscription.add(this.service.change.subscribe((function(e){h.OFFSET_STYLES.forEach((function(n){if(h.isPresent(e[n])&&(t.setStyle(n,e[n]),"maximized"!==t.state)){var i=t[n+"Change"];i.observers.length&&t.ngZone.run((function(){i.emit(e[n])}))}}))}))),this.windowSubscription.add(this.service.stateChange.subscribe((function(e){h.isPresent(t.service.lastAction)&&(t.updateAllOffset(),t.stateChange.emit(e))}))))},t.prototype.initDomEvents=function(){var t=this;this.el&&this.ngZone.runOutsideAngular((function(){t.domSubs.add(t.renderer.listen(t.el.nativeElement,"keydown",(function(e){t.onKeyDown(e)})))}))},t.prototype.onKeyDown=function(t){h.hasClasses(t.target,h.WINDOW_CLASSES)&&this.navigation.process(t)},t.prototype.setServiceClasses=function(t,e){var n=this,i=this.el.nativeElement;t&&h.parseCSSClassNames(t).forEach((function(t){n.renderer.removeClass(i,t)})),e&&h.parseCSSClassNames(e).forEach((function(t){n.renderer.addClass(i,t)}))},t.prototype.setNextZIndex=function(){var t=this.el.nativeElement.style["z-index"],e=this.service.nextPossibleZIndex;(!t||e-t>1)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)},t.prototype.setInitialOffset=function(){if("maximized"!==this.state)this.updateAllOffset(),h.isPresent(this.left)&&h.isPresent(this.top)||this.service.center();else{var t=this.service.windowViewPort;this.setStyle("width",t.width),this.setStyle("height",t.height),this.setStyle("top",0),this.setStyle("left",0)}},t.prototype.updateAllOffset=function(){var t=this;h.OFFSET_STYLES.forEach((function(e){h.isPresent(t[e])?t.setStyle(e,t[e]):t.removeStyle(e)}))},t.prototype.setStyle=function(t,e){this.renderer.setStyle(this.el.nativeElement,t,e+"px")},t.prototype.removeStyle=function(t){this.renderer.removeStyle(this.el.nativeElement,t)},Object.defineProperty(t.prototype,"options",{get:function(){return this.service.options},enumerable:!0,configurable:!0}),t.prototype.setOption=function(t,e){if("number"==typeof e||"string"==typeof e){var n="number"==typeof e?e:parseInt(e,10);this.options[t]=n,this.service.setRestoreOption(t,n)}},t.prototype.handleInitialFocus=function(){var t=this.el.nativeElement;if(this.autoFocusedElement){var e=t.querySelector(this.autoFocusedElement);e&&e.focus()}else this.focus()},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"autoFocusedElement",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"draggable",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"resizable",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"keepContent",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"state",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"minWidth",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"minHeight",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"width",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"height",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"top",null),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"left",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"dragStart",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"dragEnd",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"resizeStart",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"resizeEnd",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"widthChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"heightChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"topChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"leftChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"stateChange",void 0),i.__decorate([r.HostBinding("attr.tabIndex"),i.__metadata("design:type",Number)],t.prototype,"tabIndex",void 0),i.__decorate([r.HostBinding("class.k-window"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"hostClasses",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"dir",null),i.__decorate([r.ViewChild(f.WindowTitleBarComponent,{static:!1}),i.__metadata("design:type",f.WindowTitleBarComponent)],t.prototype,"titleBarView",void 0),i.__decorate([r.ContentChild(f.WindowTitleBarComponent,{static:!1}),i.__metadata("design:type",f.WindowTitleBarComponent)],t.prototype,"titleBarContent",void 0),i.__decorate([r.ViewChildren(d.ResizeHandleDirective),i.__metadata("design:type",r.QueryList)],t.prototype,"resizeHandles",void 0),i.__decorate([r.HostBinding("style.minWidth"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"styleMinWidth",null),i.__decorate([r.HostBinding("style.minHeight"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"styleMinHeight",null),i.__decorate([r.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"stylePosition",null),i.__decorate([r.HostBinding("class.k-window-maximized"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperMaximizedClass",null),i.__decorate([r.HostBinding("class.k-window-minimized"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"wrapperMinimizedClass",null),i.__decorate([r.HostListener("focus"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onComponentFocus",null),i.__decorate([r.HostListener("blur"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],t.prototype,"onComponentBlur",null),t=i.__decorate([r.Component({exportAs:"kendoWindow",providers:[l.DragResizeService,b.NavigationService,o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.window"}],selector:"kendo-window",template:'\n <ng-container kendoWindowLocalizedMessages\n i18n-closeTitle="kendo.window.closeTitle|The title of the close button"\n closeTitle="Close"\n\n i18n-restoreTitle="kendo.window.restoreTitle|The title of the restore button"\n restoreTitle="Restore"\n\n i18n-maximizeTitle="kendo.window.maximizeTitle|The title of the maximize button"\n maximizeTitle="Maximize"\n\n i18n-minimizeTitle="kendo.window.minimizeTitle|The title of the minimize button"\n minimizeTitle="Minimize"\n >\n <ng-container>\n\n <kendo-window-titlebar *ngIf="showDefaultTitleBar" [template]="titleBarTemplate">\n <div class="k-window-title">{{ title }}</div>\n <div class="k-window-actions">\n <button kendoWindowMinimizeAction [attr.title]="minimizeButtonTitle" [attr.aria-label]="minimizeButtonTitle"></button>\n <button kendoWindowMaximizeAction [attr.title]="maximizeButtonTitle" [attr.aria-label]="maximizeButtonTitle"></button>\n <button kendoWindowRestoreAction [attr.title]="restoreButtonTitle" [attr.aria-label]="restoreButtonTitle"></button>\n <button kendoWindowCloseAction [attr.title]="closeButtonTitle" [attr.aria-label]="closeButtonTitle"></button>\n </div>\n </kendo-window-titlebar>\n <ng-content select="kendo-window-titlebar" *ngIf="!showDefaultTitleBar"></ng-content>\n\n <div *ngIf="state !== \'minimized\' || keepContent"\n [hidden]="state === \'minimized\' && keepContent"\n class="k-content k-window-content"\n >\n <ng-content *ngIf="!contentTemplate"></ng-content>\n <ng-template [ngTemplateOutlet]="contentTemplate" *ngIf="contentTemplate"></ng-template>\n </div>\n\n <ng-template [ngIf]=\'resizable\'>\n <div *ngFor=\'let dir of resizeDirections\'\n [direction]="dir"\n kendoWindowResizeHandle\n kendoDraggable>\n </div>\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,l.DragResizeService,b.NavigationService,r.NgZone,o.LocalizationService])],t)}();e.WindowComponent=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(9),s=n(5),u=n(4),c=n(3),a=function(){function t(t,e,n){this.el=t,this.ngZone=n,this.service=e}return t.prototype.ngOnInit=function(){this.dragDirective=new o.DraggableDirective(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()},t.prototype.ngOnDestroy=function(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()},t.prototype.subscribeDrag=function(){var t=this;this.unsubscribeDrag(),this.dragSubscription=u.of(this.dragDirective).subscribe((function(e){t.service.onDrag(e)}))},t.prototype.subscribeStateChange=function(){var t=this;this.stateSubscription=this.service.stateChange.subscribe((function(e){t.service.options.draggable&&("maximized"===e?t.unsubscribeDrag():t.subscribeDrag())}))},t.prototype.unsubscribeDrag=function(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)},t.prototype.unsubscribeState=function(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)},Object.defineProperty(t.prototype,"className",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchAction",{get:function(){if(this.isDraggable)return"none"},enumerable:!0,configurable:!0}),t.prototype.handle=function(t){var e=t.target,n=this.service.options.state;c.hasClasses(e,"k-icon")||c.isFocusable(e,!1)||!this.service.options.resizable||("default"===n?this.service.maximizeAction():"maximized"===n&&this.service.restoreAction())},Object.defineProperty(t.prototype,"isDraggable",{get:function(){var t=this.service.options;return t.draggable&&"maximized"!==t.state},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],t.prototype,"template",void 0),i.__decorate([r.HostBinding("class.k-window-titlebar"),r.HostBinding("class.k-dialog-titlebar"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),i.__decorate([r.HostBinding("style.touch-action"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"touchAction",null),i.__decorate([r.HostListener("dblclick",["$event"]),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Object]),i.__metadata("design:returntype",void 0)],t.prototype,"handle",null),t=i.__decorate([r.Component({selector:"kendo-window-titlebar",template:'\n <ng-content *ngIf="!template"></ng-content>\n <ng-template\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\'$implicit\': service}" *ngIf="template">\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,s.DragResizeService,r.NgZone])],t)}();e.WindowTitleBarComponent=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(){}var e;return e=t,Object.defineProperty(t.prototype,"container",{get:function(){return e.container},set:function(t){e.container=t},enumerable:!0,configurable:!0}),t.container=null,t=e=i.__decorate([r.Injectable()],t)}();e.WindowContainerService=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}();e.PreventableEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1);e.DIALOG_LOCALIZATION_SERVICE=new i.InjectionToken("Dialog LocalizationService")},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646217112,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 i=n(0),r=n(7),o=n(8),s=n(1),u=n(6),c=function(){function t(t){this.dialog=t}return t.prototype.ngAfterViewInit=function(){var t=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(u.filter((function(t){return!t.isDefaultPrevented()}))).subscribe((function(){t.dialog.close()})),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe((function(e){return t.dialog.dialog.instance.action.emit(e)}))},i.__decorate([s.ViewChild(o.DialogTitleBarComponent,{static:!1}),i.__metadata("design:type",o.DialogTitleBarComponent)],t.prototype,"dialogTitleBar",void 0),i.__decorate([s.ViewChild(r.DialogActionsComponent,{static:!1}),i.__metadata("design:type",r.DialogActionsComponent)],t.prototype,"dialogActions",void 0),t}();e.DialogContentBase=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(6),s=n(1),u=n(11),c=n(13),a=n(12),l=n(21),h=n(17),p=n(3),d=function(){function t(t,e){this.getDialogRef=t,this.parentInjector=e}return t.prototype.get=function(t,e){return t===a.DialogRef?this.getDialogRef():this.parentInjector.get(t,e)},t}(),f=function(){function t(t,e){this.resolver=t,this.containerService=e}return t.prototype.open=function(t){var e=this.resolver.resolveComponentFactory(u.DialogComponent),n=t.appendTo||this.containerService.container;if(!n)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(t.content,e,n,{close:function(){},content:null,dialog:null,result:null},t)},t.prototype.initializeDialog=function(t,e,n,i,u){var c=this.contentFrom(t,n,i),d=n.createComponent(e,void 0,void 0,c.nodes);i.dialog=d,d.changeDetectorRef.markForCheck(),this.applyOptions(d.instance,u);var f=new r.Subject,b=function(t){t instanceof h.PreventableEvent&&(t=new a.DialogCloseResult),f.next(t||new a.DialogCloseResult),c.componentRef&&c.componentRef.destroy(),d.destroy()},y=r.merge(f,r.merge(d.instance.close,d.instance.action).pipe(o.map((function(t){return t instanceof h.PreventableEvent?new a.DialogCloseResult:t})),o.filter((function(e){if(u.preventAction){var n=function(t){return p.isString(t)||t instanceof s.TemplateRef}(t)?void 0:i;return!u.preventAction(e,n)}return!0})))).pipe(o.take(1),o.share());if(y.subscribe(b),i.close=b,i.result=y,t&&s.isDevMode()){var v=c.nodes[0]&&c.nodes[0].length>0,m=c.nodes[2]&&c.nodes[2].length>0,g=u.title&&v,_=u.actions&&m;t.prototype instanceof l.DialogContentBase?(g||_)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(v||m)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return i},t.prototype.applyOptions=function(t,e){t.title=e.title,t.actions=e.actions,t.actionsLayout=e.actionsLayout||"stretched",t.width=e.width,t.minWidth=e.minWidth,t.maxWidth=e.maxWidth,t.height=e.height,t.minHeight=e.minHeight,t.maxHeight=e.maxHeight,t.autoFocusedElement=e.autoFocusedElement,t.closeTitle=e.closeTitle,t.cssClass=e.cssClass,t.htmlAttributes=e.htmlAttributes,e.content instanceof s.TemplateRef&&(t.contentTemplate=e.content)},t.prototype.contentFrom=function(t,e,n){var i=e.injector.get(s.Renderer2),r=[],o=[],u=[],c=null;if("string"==typeof t)r=[i.createText(t)];else if(t&&!(t instanceof s.TemplateRef)){var a=new d((function(){return n}),e.injector),l=this.resolver.resolveComponentFactory(t);c=e.createComponent(l,void 0,a),o=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),r=[c.location.nativeElement],u=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-actions")),n.content=c}return{componentRef:c,nodes:[o,r,u]}},t=i.__decorate([s.Injectable(),i.__param(1,s.Inject(c.DialogContainerService)),i.__metadata("design:paramtypes",[s.ComponentFactoryResolver,c.DialogContainerService])],t)}();e.DialogService=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(9),s=n(5),u=n(4),c=function(){function t(t,e,n,i){this.draggable=t,this.el=e,this.renderer=n,this.service=i,this.subscriptions=new u.Subscription}return Object.defineProperty(t.prototype,"hostClass",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(u.of(this.draggable).subscribe((function(e){t.service.onResize(e,t.direction)}))),this.subscriptions.add(this.service.resizeStart.subscribe((function(e){e!==t.direction&&t.setDisplay("none")}))),this.subscriptions.add(this.service.dragStart.subscribe((function(){t.setDisplay("none")}))),this.subscriptions.add(u.merge(this.service.resizeEnd,this.service.dragEnd).subscribe((function(){t.setDisplay("block")}))),this.subscriptions.add(this.service.stateChange.subscribe((function(e){t.setDisplay("default"===e?"block":"none")})))},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},t.prototype.setDisplay=function(t){void 0===t&&(t="block"),this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?t:"none")},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([r.HostBinding("class.k-resize-handle"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"hostClass",null),t=i.__decorate([r.Directive({selector:"[kendoWindowResizeHandle]"}),i.__param(0,r.Host()),i.__metadata("design:paramtypes",[o.DraggableDirective,r.ElementRef,r.Renderer2,s.DragResizeService])],t)}();e.ResizeHandleDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(10),u=n(2),c=function(t){function e(e,n,i,r,o){var s=t.call(this,e,n,null,r,o)||this;return s.buttonType="button",s.window=i,s.fillMode="flat",s.icon="window-maximize",s}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||this.window.maximizeAction()},Object.defineProperty(e.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([r.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",void 0),i.__decorate([r.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),i.__decorate([r.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"visible",null),e=i.__decorate([r.Directive({exportAs:"kendoWindowMaximizeAction",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMaximizeAction]"}),i.__param(2,r.Optional()),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,o.DragResizeService,u.LocalizationService,r.NgZone])],e)}(s.Button);e.WindowMaximizeActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(10),u=n(2),c=function(t){function e(e,n,i,r,o){var s=t.call(this,e,n,null,r,o)||this;return s.buttonType="button",s.window=i,s.fillMode="flat",s.icon="window-minimize",s}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||this.window.minimizeAction()},Object.defineProperty(e.prototype,"visible",{get:function(){return"default"===this.window.options.state?"inline-flex":"none"},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([r.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",void 0),i.__decorate([r.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),i.__decorate([r.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"visible",null),e=i.__decorate([r.Directive({exportAs:"kendoWindowMinimizeAction",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowMinimizeAction]"}),i.__param(2,r.Optional()),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,o.DragResizeService,u.LocalizationService,r.NgZone])],e)}(s.Button);e.WindowMinimizeActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(10),u=n(2),c=function(t){function e(e,n,i,r,o){var s=t.call(this,e,n,null,r,o)||this;return s.buttonType="button",s.window=i,s.fillMode="flat",s.icon="close",s}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||this.window.closeAction()},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([r.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",void 0),i.__decorate([r.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),e=i.__decorate([r.Directive({exportAs:"kendoWindowCloseAction",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowCloseAction]"}),i.__param(2,r.Optional()),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,o.DragResizeService,u.LocalizationService,r.NgZone])],e)}(s.Button);e.WindowCloseActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(10),u=n(2),c=function(t){function e(e,n,i,r,o){var s=t.call(this,e,n,null,r,o)||this;return s.buttonType="button",s.window=i,s.fillMode="flat",s.icon="window-restore",s}return i.__extends(e,t),e.prototype.onClick=function(){this.isDisabled||this.window.restoreAction()},Object.defineProperty(e.prototype,"visible",{get:function(){return"default"===this.window.options.state?"none":"inline-flex"},enumerable:!0,configurable:!0}),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"window",void 0),i.__decorate([r.HostBinding("attr.type"),i.__metadata("design:type",String)],e.prototype,"buttonType",void 0),i.__decorate([r.HostListener("click"),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[]),i.__metadata("design:returntype",void 0)],e.prototype,"onClick",null),i.__decorate([r.HostBinding("style.display"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"visible",null),e=i.__decorate([r.Directive({exportAs:"kendoWindowRestoreAction",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.button"}],selector:"button[kendoWindowRestoreAction]"}),i.__param(2,r.Optional()),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,o.DragResizeService,u.LocalizationService,r.NgZone])],e)}(s.Button);e.WindowRestoreActionDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){};e.WindowSettings=i;var r=function(){};e.WindowCloseResult=r;var o=function(){};e.WindowRef=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(6),u=n(28),c=n(14),a=n(3),l=n(16),h=function(){function t(t,e){this.getWindowRef=t,this.parentInjector=e}return t.prototype.get=function(t,e){return t===u.WindowRef?this.getWindowRef():this.parentInjector.get(t,e)},t}(),p=function(){function t(t,e){this.resolver=t,this.containerService=e}return t.prototype.open=function(t){var e=this.resolver.resolveComponentFactory(c.WindowComponent),n=t.appendTo||this.containerService.container;if(!n)throw new Error("Cannot attach window to the page.\n Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n ");var i={close:function(){},content:null,result:null,window:null},l=this.contentFrom(t.content,n,i),h=n.createComponent(e,void 0,void 0,l.nodes);i.window=h,this.applyOptions(h.instance,t);var p=new o.Subject,d=function(t){p.next(t||new u.WindowCloseResult),l.componentRef&&l.componentRef.destroy(),h.destroy()},f=o.merge(p,h.instance.close.pipe(s.map((function(t){return t||new u.WindowCloseResult})),s.filter((function(e){if(t.preventClose){var n=(o=t.content,a.isString(o)||o instanceof r.TemplateRef?void 0:i);return!t.preventClose(e,n)}var o;return!0})))).pipe(s.take(1),s.share());return f.subscribe(d),i.close=d,i.result=f,h.changeDetectorRef.markForCheck(),i},t.prototype.applyOptions=function(t,e){a.isPresent(e.htmlAttributes)&&(t.htmlAttributes=e.htmlAttributes),a.isPresent(e.cssClass)&&(t.cssClass=e.cssClass),a.isPresent(e.title)&&(t.title=e.title),a.isPresent(e.keepContent)&&(t.keepContent=e.keepContent),a.isPresent(e.width)&&(t.width=e.width),a.isPresent(e.minWidth)&&(t.minWidth=e.minWidth),a.isPresent(e.height)&&(t.height=e.height),a.isPresent(e.minHeight)&&(t.minHeight=e.minHeight),a.isPresent(e.left)&&(t.left=e.left),a.isPresent(e.top)&&(t.top=e.top),a.isPresent(e.draggable)&&(t.draggable=e.draggable),a.isPresent(e.resizable)&&(t.resizable=e.resizable),a.isPresent(e.messages&&e.messages.closeTitle)&&(t.messages.closeTitle=e.messages.closeTitle),a.isPresent(e.messages&&e.messages.restoreTitle)&&(t.messages.restoreTitle=e.messages.restoreTitle),a.isPresent(e.messages&&e.messages.maximizeTitle)&&(t.messages.maximizeTitle=e.messages.maximizeTitle),a.isPresent(e.messages&&e.messages.minimizeTitle)&&(t.messages.minimizeTitle=e.messages.minimizeTitle),a.isPresent(e.autoFocusedElement)&&(t.autoFocusedElement=e.autoFocusedElement),a.isPresent(e.state)&&(t.state=e.state,"minimized"===e.state&&(t.keepContent=!0)),e.content instanceof r.TemplateRef&&(t.contentTemplate=e.content),e.titleBarContent instanceof r.TemplateRef&&(t.titleBarTemplate=e.titleBarContent)},t.prototype.contentFrom=function(t,e,n){var i=e.injector.get(r.Renderer2),o=[],s=null;if("string"==typeof t)o=[i.createText(t)];else if(t&&!(t instanceof r.TemplateRef)){var u=new h((function(){return n}),e.injector),c=this.resolver.resolveComponentFactory(t);o=[(s=e.createComponent(c,void 0,u)).location.nativeElement],n.content=s}return{componentRef:s,nodes:[[],o]}},t=i.__decorate([r.Injectable(),i.__param(1,r.Inject(l.WindowContainerService)),i.__metadata("design:paramtypes",[r.ComponentFactoryResolver,l.WindowContainerService])],t)}();e.WindowService=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),s=n(8),u=n(22),c=n(39),a=n(13),l=n(31);e.DIALOG_DIRECTIVES=[o.DialogComponent,s.DialogTitleBarComponent];var h=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[e.DIALOG_DIRECTIVES,c.DialogContainerDirective],entryComponents:[e.DIALOG_DIRECTIVES],exports:[e.DIALOG_DIRECTIVES,l.SHARED_DIRECTIVES,c.DialogContainerDirective],imports:[l.SharedModule],providers:[a.DialogContainerService,u.DialogService]})],t)}();e.DialogModule=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(40),s=n(7),u=n(41),c=n(42);e.SHARED_DIRECTIVES=[s.DialogActionsComponent,c.CustomMessagesComponent,u.LocalizedMessagesDirective];var a=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[e.SHARED_DIRECTIVES],exports:[e.SHARED_DIRECTIVES,o.CommonModule],imports:[o.CommonModule]})],t)}();e.SharedModule=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"restoreTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"maximizeTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"minimizeTitle",void 0),e}(n(2).ComponentMessages);e.Messages=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),s=n(15),u=n(9),c=n(23),a=n(24),l=n(25),h=n(26),p=n(27),d=n(29),f=n(16),b=n(43),y=n(31),v=[c.ResizeHandleDirective,o.WindowComponent,s.WindowTitleBarComponent,h.WindowCloseActionDirective,l.WindowMinimizeActionDirective,a.WindowMaximizeActionDirective,p.WindowRestoreActionDirective],m=[o.WindowComponent,s.WindowTitleBarComponent],g=[o.WindowComponent,h.WindowCloseActionDirective,l.WindowMinimizeActionDirective,a.WindowMaximizeActionDirective,p.WindowRestoreActionDirective,s.WindowTitleBarComponent],_=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[v,b.WindowContainerDirective],entryComponents:[m],exports:[g,y.SHARED_DIRECTIVES,b.WindowContainerDirective],imports:[y.SharedModule,u.DraggableModule],providers:[f.WindowContainerService,d.WindowService]})],t)}();e.WindowModule=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.DialogComponent=i.DialogComponent;var r=n(8);e.DialogTitleBarComponent=r.DialogTitleBarComponent;var o=n(21);e.DialogContentBase=o.DialogContentBase;var s=n(7);e.DialogActionsComponent=s.DialogActionsComponent;var u=n(22);e.DialogService=u.DialogService;var c=n(12);e.DialogCloseResult=c.DialogCloseResult,e.DialogRef=c.DialogRef,e.DialogSettings=c.DialogSettings,e.DialogAction=c.DialogAction;var a=n(14);e.WindowComponent=a.WindowComponent;var l=n(15);e.WindowTitleBarComponent=l.WindowTitleBarComponent;var h=n(24);e.WindowMaximizeActionDirective=h.WindowMaximizeActionDirective;var p=n(25);e.WindowMinimizeActionDirective=p.WindowMinimizeActionDirective;var d=n(26);e.WindowCloseActionDirective=d.WindowCloseActionDirective;var f=n(27);e.WindowRestoreActionDirective=f.WindowRestoreActionDirective;var b=n(28);e.WindowSettings=b.WindowSettings,e.WindowRef=b.WindowRef,e.WindowCloseResult=b.WindowCloseResult;var y=n(29);e.WindowService=y.WindowService;var v=n(30);e.DialogModule=v.DialogModule;var m=n(33);e.WindowModule=m.WindowModule;var g=n(44);e.DialogsModule=g.DialogsModule},function(t,e){t.exports=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),s=n(18),u=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.dialogLocalization=r,o}return i.__extends(e,t),e.prototype.get=function(e){return this.dialogLocalization?this.dialogLocalization.get(e):t.prototype.get.call(this,e)},e=i.__decorate([i.__param(0,o.Inject(r.L10N_PREFIX)),i.__param(1,o.Optional()),i.__param(2,o.Optional()),i.__param(2,o.Inject(r.RTL)),i.__param(3,o.Optional()),i.__param(3,o.Inject(s.DIALOG_LOCALIZATION_SERVICE)),i.__metadata("design:paramtypes",[String,r.MessageService,Boolean,r.LocalizationService])],e)}(r.LocalizationService);e.TitleBarLocalizationService=u},function(t,e){t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(3),u=function(){function t(t,e){this.window=t,this.ngZone=e}return t.prototype.process=function(t){var e=this,n=t.keyCode;switch(n){case s.Keys.up:case s.Keys.down:case s.Keys.left:case s.Keys.right:t.preventDefault(),this.ngZone.run((function(){e.handleArrow(n,t)}));break;case s.Keys.esc:this.ngZone.run((function(){e.handleEscape()}))}},t.prototype.handleArrow=function(t,e){var n=this.window.options;e.altKey?this.handleStateChange(t,n.state):(e.ctrlKey||e.metaKey)&&"default"===n.state?this.handleResize(t):this.handleDrag(t)},t.prototype.handleEscape=function(){this.window.closeAction()},t.prototype.handleDrag=function(t){var e=this.window.options;if(e.draggable){var n=this.window.currentOffsetAndPosition(),i=this.window.restoreOptions,r={},o=10;switch(t!==s.Keys.left&&t!==s.Keys.up||(o*=-1),t){case s.Keys.left:case s.Keys.right:r.left=n.x+o,e.left=r.left;break;case s.Keys.up:case s.Keys.down:r.top=n.y+o,e.top=r.top}"minimized"===e.state&&s.isPresent(i)&&(i.left=e.left,i.top=e.top),this.window.change.emit(r)}},t.prototype.handleResize=function(t){var e=this,n=this.window.options;if(n.resizable){var i,r,o=this.window.currentOffsetAndPosition(),u={},c=10;switch(t!==s.Keys.left&&t!==s.Keys.up||(c*=-1),t){case s.Keys.left:case s.Keys.right:(i=o.width+c)!==n.width&&i>=n.minWidth&&(u.width=i);break;case s.Keys.up:case s.Keys.down:(r=o.height+c)!==n.height&&r>=n.minHeight&&(u.height=r)}(s.isPresent(u.width)||s.isPresent(u.height))&&(s.OFFSET_STYLES.forEach((function(t){s.isPresent(u[t])&&(e.window.options[t]=u[t])})),this.window.change.emit(u))}},t.prototype.handleStateChange=function(t,e){"minimized"===e&&t===s.Keys.up||"maximized"===e&&t===s.Keys.down?this.window.restoreAction():"default"===e&&(t===s.Keys.up?this.window.maximizeAction():t===s.Keys.down&&this.window.minimizeAction())},t=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[o.DragResizeService,r.NgZone])],t)}();e.NavigationService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(13),s=function(){function t(t,e){e.container=t}return t=i.__decorate([r.Directive({selector:"[kendoDialogContainer]"}),i.__metadata("design:paramtypes",[r.ViewContainerRef,o.DialogContainerService])],t)}();e.DialogContainerDirective=s},function(t,e){t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(32),u=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return i.__extends(e,t),n=e,e=n=i.__decorate([r.Directive({providers:[{provide:s.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"\n [kendoDialogLocalizedMessages],\n [kendoWindowLocalizedMessages],\n [kendoDialogTitleBarLocalizedMessages]\n "}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}(s.Messages);e.LocalizedMessagesDirective=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(32),u=function(t){function e(e){var n=t.call(this)||this;return n.service=e,n}var n;return i.__extends(e,t),n=e,Object.defineProperty(e.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),e=n=i.__decorate([r.Component({providers:[{provide:s.Messages,useExisting:r.forwardRef((function(){return n}))}],selector:"kendo-dialog-messages, kendo-window-messages",template:""}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}(s.Messages);e.CustomMessagesComponent=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(16),s=function(){function t(t,e){e.container=t}return t=i.__decorate([r.Directive({selector:"[kendoWindowContainer]"}),i.__metadata("design:paramtypes",[r.ViewContainerRef,o.WindowContainerService])],t)}();e.WindowContainerDirective=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(30),s=n(33),u=function(){function t(){}return t=i.__decorate([r.NgModule({exports:[o.DialogModule,s.WindowModule]})],t)}();e.DialogsModule=u}])}));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
var PreventableEvent = /** @class */ (function () {
|
|
9
|
-
function PreventableEvent() {
|
|
10
|
-
this.prevented = false;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Prevents the default action for a specified event.
|
|
14
|
-
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
15
|
-
*/
|
|
16
|
-
PreventableEvent.prototype.preventDefault = function () {
|
|
17
|
-
this.prevented = true;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* If the event is prevented by any of its subscribers, returns `true`.
|
|
21
|
-
*
|
|
22
|
-
* @returns `true` if the default action was prevented. Otherwise, returns `false`.
|
|
23
|
-
*/
|
|
24
|
-
PreventableEvent.prototype.isDefaultPrevented = function () {
|
|
25
|
-
return this.prevented;
|
|
26
|
-
};
|
|
27
|
-
return PreventableEvent;
|
|
28
|
-
}());
|
|
29
|
-
export { PreventableEvent };
|