@progress/kendo-angular-tooltip 3.1.5-dev.202201261018 → 3.1.6-dev.202202281009

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.
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations"),require("@progress/kendo-angular-l10n")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs","rxjs/operators","@angular/common","@angular/animations","@progress/kendo-angular-l10n"],t):"object"==typeof exports?exports.KendoAngularTooltip=t(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/animations"),require("@progress/kendo-angular-l10n")):e.KendoAngularTooltip=t(e["@angular/core"],e.rxjs,e["rxjs/operators"],e["@angular/common"],e["@angular/animations"],e["@progress/kendo-angular-l10n"])}(window,(function(e,t,n,o,i,r){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=27)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return s})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return p})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return l})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return O})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return S})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return P})),n.d(t,"__classPrivateFieldSet",(function(){return j}));
5
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,],e):"object"==typeof exports?exports.KendoAngularTooltip=e(require("@angular/core"),require("@progress/kendo-angular-popup"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):t.KendoAngularTooltip=e(t.ng.core,t.KendoAngularPopup,t.rxjs,t.KendoAngularCommon,t.KendoAngularL10N,t.KendoLicensing,t.ng.common)}(window,(function(t,e,n,i,r,o,s){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=26)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return u})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return a})),n.d(e,"__awaiter",(function(){return p})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return v})),n.d(e,"__spread",(function(){return b})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return _})),n.d(e,"__asyncGenerator",(function(){return m})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return T})),n.d(e,"__classPrivateFieldGet",(function(){return E})),n.d(e,"__classPrivateFieldSet",(function(){return O}));
6
6
  /*! *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
8
8
 
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
19
  ***************************************************************************** */
20
- var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function a(e,t,n,o){var i,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(r<3?i(s):r>3?i(t,n,s):i(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,o){t(n,o,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,o){return new(n||(n=Promise))((function(i,r){function s(e){try{c(o.next(e))}catch(e){r(e)}}function a(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((o=o.apply(e,t||[])).next())}))}function l(e,t){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}function d(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}function h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return s}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,i++)o[i]=r[s];return o}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){r.push([e,t,n,o])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,p):u(r[0][2],n)}catch(e){u(r[0][3],e)}var n}function c(e){a("next",e)}function p(e){a("throw",e)}function u(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}}function _(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:b(e[o](t)),done:"return"===o}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function P(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function j(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return F})),n.d(t,"PreventableEvent",(function(){return te})),n.d(t,"DraggableDirective",(function(){return S})),n.d(t,"DraggableModule",(function(){return E})),n.d(t,"closestInScope",(function(){return P})),n.d(t,"closest",(function(){return j})),n.d(t,"contains",(function(){return C})),n.d(t,"findElement",(function(){return x})),n.d(t,"findFocusableChild",(function(){return z})),n.d(t,"findFocusable",(function(){return R})),n.d(t,"hasClasses",(function(){return M})),n.d(t,"isFocusableWithTabKey",(function(){return D})),n.d(t,"isFocusable",(function(){return k})),n.d(t,"isVisible",(function(){return A})),n.d(t,"matchesClasses",(function(){return L})),n.d(t,"matchesNodeName",(function(){return N})),n.d(t,"rtlScrollPosition",(function(){return H})),n.d(t,"EventsOutsideAngularDirective",(function(){return V})),n.d(t,"EventsModule",(function(){return Z})),n.d(t,"ResizeSensorComponent",(function(){return J})),n.d(t,"ResizeBatchService",(function(){return X})),n.d(t,"ResizeCompatService",(function(){return W})),n.d(t,"ResizeObserverService",(function(){return G})),n.d(t,"ResizeSensorModule",(function(){return Q})),n.d(t,"KendoInput",(function(){return ee})),n.d(t,"isDocumentAvailable",(function(){return b})),n.d(t,"isChanged",(function(){return y})),n.d(t,"anyChanged",(function(){return _})),n.d(t,"hasObservers",(function(){return O})),n.d(t,"guid",(function(){return w})),n.d(t,"Keys",(function(){return K}));var o=n(1),i=n(0),r=function(e,t){return function(n){return t(e(n))}},s=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},c=function(){},p=function(e){return e.preventDefault()},u=/touch/;function l(e){return e.type.match(u)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=c);var o=e.drag;void 0===o&&(o=c);var i=e.release;void 0===i&&(i=c);var u=e.mouseOnly;void 0===u&&(u=!1),this._pressHandler=r(l,n),this._dragHandler=r(l,o),this._releaseHandler=r(l,i),this._ignoreMouse=!1,this._mouseOnly=u,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(s(t.document,"mousemove",t._mousemove),s(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(s(t.document,"pointermove",t._pointermove),s(t.document,"pointerup",t._pointerup),s(t.document,"pointercancel",t._pointerup),s(t.document,"contextmenu",p),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",p),t._releaseHandler(e))}},h={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},h.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?s(e,"pointerdown",this._pointerdown):(s(e,"mousedown",this._mousedown),this._mouseOnly||(s(e,"touchstart",this._touchstart),s(e,"touchmove",this._touchmove),s(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",p),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=c);var n=e.drag;void 0===n&&(n=c);var o=e.release;void 0===o&&(o=c);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=r(l,t),this._dragHandler=r(l,n),this._releaseHandler=r(l,o),this._mouseOnly=i},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,h),d.default=d;var f=d,v=n(5),m=n(4),g=n(3),b=function(){return"undefined"!=typeof document},y=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},_=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return y(e,t,n)}))},O=function(e){return e&&e.observers.length>0},w=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},S=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){y("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;b()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new f({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(o.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),E=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[S],exports:[S],imports:[v.CommonModule]})],e)}(),P=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},j=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},C=function(e,t,n){if(void 0===n&&(n=!1),!j(t,(function(t){return t===e})))return!1;var o=j(t,(function(e){return e===t}));return o&&(n||o!==e)},x=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var o=x(e,t);if(o)return o}e=e.nextSibling}}},T=/^(?:a|input|select|option|textarea|button|object)$/i,k=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&T.test(t)||n},A=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,o=0!==t.x&&0!==t.y;return(n||o)&&"hidden"!==window.getComputedStyle(e).visibility},D=function(e,t){if(void 0===t&&(t=!0),!k(e))return!1;var n=e.getAttribute("tabIndex");return(!t||A(e))&&"-1"!==n},z=function(e,t){return void 0===t&&(t=!0),x(e,(function(e){return D(e,t)}),!1)},R=function(e,t){return void 0===t&&(t=!0),x(e,(function(e){return D(e,t)}))},I=function(e){return String(e).trim().split(" ")},M=function(e,t){var n=I(t);return Boolean(I(e.className).find((function(e){return n.indexOf(e)>=0})))},L=function(e){return function(t){return M(t,e)}},B={},N=function(e){return B[e]||(B[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),B[e]};function H(e,t,n){var o=e;return n<0?o=-e:n>0&&(o=t.scrollWidth-t.offsetWidth-e),o}var K,V=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(o.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(o.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(o.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),Z=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[V],exports:[V]})],e)}(),F=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){b()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),U=function(e){var t=document.createElement("div");return t.style.cssText=e,t},q="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",W=function(e){function t(t,n,o){var i=e.call(this,t)||this;return i.element=n,i.ngZone=o,i}return Object(o.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=q,e.setAttribute("dir","ltr"),this.expand=U(q),this.expandChild=U("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=U(q);var t=U("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(g.merge)(Object(g.fromEvent)(e.shrink,"scroll"),Object(g.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(F),Y="undefined"!=typeof ResizeObserver,G=function(e){function t(t,n,o){var i=e.call(this,t)||this;return i.element=n,i.ngZone=o,i}return Object(o.__extends)(t,e),t.supported=function(){return Y},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(F),X=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(g.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,o=0;o<n;o++)if(t[o].instance===e)return t.splice(o,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[i.NgZone])],e)}(),J=function(){function e(e,t,n){var o=this;this.rateLimit=10,this.resize=new i.EventEmitter;var r=G.supported()?G:W;this.resizeService=new r(e,t,n);var s=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(m.auditTime)(s)).subscribe((function(){o.resizeService.acceptedSize||o.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(o.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(o.__metadata)("design:paramtypes",[X,i.ElementRef,i.NgZone])],e)}(),$=[J],Q=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[$],exports:[$],providers:[X]})],e)}(),ee=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(K||(K={}));var te=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=o},function(e,t,n){"use strict";n.r(t),n.d(t,"AlignService",(function(){return te})),n.d(t,"AnimationService",(function(){return se})),n.d(t,"DOMService",(function(){return Q})),n.d(t,"PositionService",(function(){return ne})),n.d(t,"ResizeService",(function(){return oe})),n.d(t,"ScrollableService",(function(){return ie})),n.d(t,"PopupService",(function(){return le})),n.d(t,"POPUP_CONTAINER",(function(){return ue})),n.d(t,"PopupComponent",(function(){return pe})),n.d(t,"PopupModule",(function(){return he})),n.d(t,"SCALE",(function(){return ee}));var o=n(1),i=n(0),r="bottom",s="center",a="middle",c="left",p="right",u="top",l=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,c=e.margin;void 0===c&&(c={});var u=n.horizontal,l=n.vertical,d=i.horizontal,h=i.vertical,f=c.horizontal||0,v=c.vertical||0,m=t.top,g=t.left;return l===r&&(m+=t.height),l!==s&&l!==a||(m+=Math.round(t.height/2)),h===r&&(m-=o.height,v*=-1),h!==s&&h!==a||(m-=Math.round(o.height/2),v*=-1),u===p&&(g+=t.width),u!==s&&u!==a||(g+=Math.round(t.width/2)),d===p&&(g-=o.width,f*=-1),d!==s&&d!==a||(g-=Math.round(o.width/2),f*=-1),{top:m+v,left:g+f}};function d(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},v=function(e){return h(e).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function b(e){var t=f(e),n=v(e),o={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(o.width-=g()),o}var y=function(e){if(!e.getBoundingClientRect){var t=b(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},_=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||v(e)},O=function(e){var t=e.getBoundingClientRect(),n=t.left,o=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,o=t.left,i=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=o,e.style.position=i,r}(e)),{top:o,left:n,height:t.height,width:t.width}},w=function(e,t){for(var n=[],o=e.parentNode;o&&(n.push(o),o!==t);)o=o.parentNode;return n};function S(e){var t=v(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var E=function(e){return e===(e.ownerDocument||{}).body?S(e):{x:e.scrollLeft,y:e.scrollTop}};var P=function(e,t){var n=f(e),o=n.getComputedStyle(e),i=O(e),r=t||_(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,c={top:0,left:0};if("fixed"!==o.position&&a){var p=n.getComputedStyle(r);(c=O(r)).top+=parseInt(p.borderTopWidth,10),c.left+=parseInt(p.borderLeftWidth,10)}return{top:i.top-c.top,left:i.left-c.left,height:i.height,width:i.width}},j=function(e,t){return e?E(e):function(e){var t=_(e);return t?E(t):{x:0,y:0}}(t)},C=function(e,t,n){void 0===n&&(n=1);var o=t?_(t):null,i=P(e,o),r=i.top,s=i.left,a=i.height,c=i.width,p=j(o,e),u=p.x,l=p.y,d=e.ownerDocument,h=o===d.body||o===d.documentElement?1:n;return{top:r+l*h,left:s+u*h,height:a,width:c}};function x(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var T="fit",k="flip",A=function(e,t,n){var o=0;return e+t>n&&(o=n-(e+t)),e<0&&(o=-e),o},D=function(e){var t=e.offset,n=e.size,o=e.anchorSize,i=e.viewPortSize,r=e.anchorAlignPoint,p=e.elementAlignPoint,l=0,d=2*e.margin;if(p!==r&&!(p===s||p===a)&&!(r===s||r===a)){var h=r===u||r===c;t<0&&h?t+(l=n+o+d)+n>i&&(l=0):t>=0&&!h&&(t+n>i&&(l+=-(o+n+d)),t+l<0&&(l=0))}return l},z=function(e){var t=e.anchorRect,n=e.anchorAlign,o=e.elementRect,i=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var c=o.top,p=o.left,u=o.height,l=o.width,d=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,b=r.vertical===T,y=r.horizontal===T,_=r.vertical===k,O=r.horizontal===k;b&&(g+=A(c,u,d)),y&&(m+=A(p,l,h)),_&&(g+=D({margin:v,offset:c,size:u,anchorSize:t.height,viewPortSize:d,anchorAlignPoint:n.vertical,elementAlignPoint:i.vertical})),O&&(m+=D({margin:f,offset:p,size:l,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:i.horizontal}));var w=_&&0!==g,S=O&&0!==m,E=b&&0!==g,P=y&&0!==m;return{flipped:S||w,fitted:E||P,flip:{horizontal:S,vertical:w},fit:{horizontal:P,vertical:E},offset:{left:m,top:g}}},R=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},I=function(e,t){for(var n,o,i=w(e),r=t;r&&(n=R(r),!(o=i.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return o};M=function(e){if(!N())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var o=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),o},B=!1;var M,L,B,N=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},H=n(2),K=n(3),V=n(4),Z=n(7),F=n(9),U=n(5),q=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},W=function(){return"undefined"!=typeof window},Y=/auto|scroll/,G=function(e){return function(e){return""+e.style.overflow+e.style.overflowX+e.style.overflowY}(e)||function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY}(e)};var X=function(e){var t,n=!1;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return n||(t=e.apply(void 0,o),n=!0),t}}((function(){if(!Object(H.isDocumentAvailable)()&&null!==document.body)return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t})),J=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},$=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.addScroll=function(e,t){return d(e,t)},e.prototype.align=function(e){return l(e)},e.prototype.boundingOffset=function(e){return y(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return $.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return W()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?O(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),o=n.style,i=o.left,r=o.top,s=o.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var a=O(n);return n.style.left=i,n.style.top=r,n.offsetHeight,n.style.transition=s,a},e.prototype.nativeElement=function(e){return e?e.nativeElement||e:null},e.prototype.position=function(e,t,n){return void 0===n&&(n=1),e&&t?C(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return x(e,t)},e.prototype.restrictToView=function(e){return z(e)},e.prototype.scrollPosition=function(e){return S(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(H.isDocumentAvailable)()||!W())return t;for(var n=e.parentElement;n;)(Y.test(G(n))||n.hasAttribute("data-scrollable"))&&t.push(n),n=n.parentElement;return t.push(window),t}(this.nativeElement(e))},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?O(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.getRelativeContextElement=function(e){if(!e||!X())return null;for(var t=this.nativeElement(e).parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return b(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(H.isDocumentAvailable)()||!W())return null;var n=I(e,t);if(!n)return null;var o=[e].concat(w(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,o=parseInt(n,10);return o>e?o:e}),0);return o?o+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(H.isDocumentAvailable)()&&W()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(o.__decorate)([Object(i.Injectable)()],e)}(),ee=new i.InjectionToken("Popup Document Scale"),te=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,o=e.anchorAlign,i=e.elementAlign,r=e.margin,s=e.offset,a=e.positionMode,c=this.scale||1,p="fixed"===a||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,s,c):this.relativeRect(t,n,s,c),u=J(this._dom.offset(n),c);return this._dom.align({anchorAlign:o,anchorRect:p,elementAlign:i,elementRect:u,margin:r})},e.prototype.absoluteRect=function(e,t,n,o){var i=this.elementScrollPosition(e,t),r=q(this._dom.offset(e),n),s=2*o,a=this._dom.stackingElementScroll(t);1!==o&&a&&(a.x/=s,a.y/=s);var c=this._dom.stackingElementOffset(t);return 1!==o&&c&&(c.left/=s,c.top/=s),this._dom.removeScroll(this._dom.addScroll(function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(J(r,o),c),a),i)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,o){var i=q(this._dom.position(e,t,o),n);return J(i,o)},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(1,Object(i.Inject)(ee)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[Q,Number])],e)}(),ne=function(){function e(e,t){void 0===t&&(t=1),this._dom=e,this.scale=t}return e.prototype.positionElement=function(e){var t=e.anchor,n=e.currentLocation,o=e.element,i=e.anchorAlign,r=e.elementAlign,s=e.collisions,a=e.margin,c=this._dom,p=this.scale||1,u=c.offsetAtPoint(o,n),l=J(u,p),d=J(c.offset(t),p),h=q(d,n),f=e.viewPort||c.windowViewPort(o);f.width=f.width/p,f.height=f.height/p;var v=c.restrictToView({anchorAlign:i,anchorRect:h,collisions:s,elementAlign:r,elementRect:l,margin:a,viewPort:f}),m=c.addOffset(n,v.offset);return{flip:v.flip,flipped:v.flipped,offset:m}},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(1,Object(i.Inject)(ee)),Object(o.__param)(1,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[Q,Number])],e)}(),oe=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(H.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(K.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(V.auditTime)(1e3/60)).subscribe((function(){return e()}))}))},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isUnsubscribed=function(){return this.subscription&&this.subscription.closed},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Q,i.NgZone])],e)}(),ie=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.forElement=function(e){return this.unsubscribe(),this.element=e,this},e.prototype.subscribe=function(e){var t=this;if(e&&Object(H.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),o=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var i=o.map((function(e){return Object(K.fromEvent)(e,"scroll").pipe(Object(V.auditTime)(1e3/60))}));t.subscription=K.merge.apply(void 0,i).subscribe((function(i){var r=i.target,s=o.filter((function(e){return e===r})).length>0,a=r===document,c=r===window;(s||a||c)&&e(t.isVisible(n,r))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),o=this._dom.boundingOffset(t);return!(1<o.top-n.bottom)&&(!(1<n.top-o.bottom)&&(!(1<n.left-o.right)&&!(1<o.left-n.right)))},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Q,i.NgZone])],e)}(),re={expand:function(e){var t="up"===e||"down"===e?"scaleY":"scaleX";return{start:{transform:t+"(0)",transformOrigin:"down"===e?"top":"left"===e?"right":"right"===e?"left":"bottom"},end:{transform:t+"(1)"}}},slide:function(e){var t="left"===e||"right"===e?"translateX":"translateY";return{start:{transform:t+"("+("right"===e||"down"===e?-100:100)+"%)"},end:{transform:t+"(0%)"}}},fade:function(){return{start:{opacity:0},end:{opacity:1}}},zoom:function(){return{start:{transform:"scale(0)"},end:{transform:"scale(1)"}}}},se=function(){function e(e){this.animationBuilder=e,this.start=new i.EventEmitter,this.end=new i.EventEmitter}return e.prototype.play=function(e,t,n){if(!this.flip||this.flip.horizontal!==n.horizontal||this.flip.vertical!==n.vertical){this.flip=n;var o=t.type||"slide",r=re[o];if(r){var s=r(this.getDirection(n,t));this.playStates(e,s,t)}else if(Object(i.isDevMode)())throw new Error('Unsupported animation type: "'+o+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var o=this;this.stopPlayer();var i=n.duration||100,r=this.animationBuilder.build([Object(Z.style)(t.start),Object(Z.animate)(i+"ms ease-in",Object(Z.style)(t.end))]),s=this.player=r.create(e);s.onDone((function(){o.end.emit(),o.stopPlayer()})),this.start.emit(),s.play()},e.prototype.getDirection=function(e,t){var n=t.direction||"down";return e.horizontal&&("left"===n?n="right":"right"===n&&(n="left")),e.vertical&&("down"===n?n="up":"up"===n&&(n="down")),n},e.prototype.stopPlayer=function(){this.player&&(this.player.destroy(),this.player=null)},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__metadata)("design:paramtypes",[Z.AnimationBuilder])],e)}(),ae={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642583997,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"},ce={left:-1e4,top:0},pe=function(){function e(e,t,n,o,r,s,a,c,p){this.container=e,this._alignService=t,this.domService=n,this._positionService=o,this._resizeService=r,this._scrollableService=s,this.animationService=a,this._renderer=c,this._zone=p,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=ce,this.anchorViewportLeave=new i.EventEmitter,this.close=new i.EventEmitter,this.open=new i.EventEmitter,this.positionChange=new i.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(F.validatePackage)(ae),this._renderer.addClass(e.nativeElement,"k-animation-container"),this.updateFixedClass()}return e.prototype.ngOnInit=function(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.anchor||this.container).subscribe(this.onScroll.bind(this)),this.currentOffset=ce,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.animate||this.resolvedPromise.then((function(){e.onAnimationEnd()}))},e.prototype.ngAfterViewChecked=function(){var e=this;this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular((function(){e.unsubscribeReposition(),e.repositionSubscription=Object(K.from)(e.resolvedPromise).subscribe(e.reposition)}))},e.prototype.ngOnDestroy=function(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()},e.prototype.onResize=function(){this.reposition()},e.prototype.onAnimationStart=function(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")},e.prototype.onAnimationEnd=function(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()},Object.defineProperty(e.prototype,"currentOffset",{get:function(){return this._currentOffset},set:function(e){this.setContainerStyle("left",e.left+"px"),this.setContainerStyle("top",e.top+"px"),this._currentOffset=e},enumerable:!0,configurable:!0}),e.prototype.setZIndex=function(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.anchor,this.container)))},e.prototype.reposition=function(){var e=this;if(Object(H.isDocumentAvailable)()){var t,n,o,i,r,s,a=this.position(),c=a.flip,p=a.offset;(!this.currentOffset||(t=this.currentOffset,n=p,o=t.left,i=t.top,r=n.left,s=n.top,Math.abs(o-r)>=1||Math.abs(i-s)>=1))&&(this.currentOffset=p,Object(H.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:p,flip:c})}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,c),this.resizeSensor.acceptSize()}},e.prototype.position=function(){var e=this._alignService.alignElement({anchor:this.anchor,anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.anchor,anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})},e.prototype.onScroll=function(e){var t=this,n=Object(H.hasObservers)(this.anchorViewportLeave);e||!n?this.reposition():n&&this._zone.run((function(){t.anchorViewportLeave.emit()}))},e.prototype.copyFontStyles=function(){var e=this;this.anchor&&this.copyAnchorStyles&&this.domService.getFontStyles(this.anchor).forEach((function(t){return e.setContainerStyle(t.key,t.value)}))},e.prototype.updateFixedClass=function(){var e="fixed"===this.positionMode?"addClass":"removeClass";this._renderer[e](this.container.nativeElement,"k-animation-container-fixed")},e.prototype.setContainerStyle=function(e,t){this._renderer.setStyle(this.container.nativeElement,e,t)},e.prototype.unsubscribeReposition=function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()},Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",i.ElementRef)],e.prototype,"anchor",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(o.__decorate)([Object(i.Input)(),Object(o.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"close",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"open",void 0),Object(o.__decorate)([Object(i.Output)(),Object(o.__metadata)("design:type",i.EventEmitter)],e.prototype,"positionChange",void 0),Object(o.__decorate)([Object(i.ViewChild)("container",{static:!0}),Object(o.__metadata)("design:type",i.ElementRef)],e.prototype,"contentContainer",void 0),Object(o.__decorate)([Object(i.ViewChild)(H.ResizeSensorComponent,{static:!0}),Object(o.__metadata)("design:type",H.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(o.__decorate)([Object(i.Component)({exportAs:"kendo-popup",providers:[te,se,Q,ne,oe,ie],selector:"kendo-popup",template:'\n <div class="k-popup" [ngClass]="popupClass" #container>\n <ng-content></ng-content>\n <ng-template [ngTemplateOutlet]="content" [ngIf]="content"></ng-template>\n <kendo-resize-sensor [rateLimit]="100" (resize)="onResize()">\n </kendo-resize-sensor>\n </div>\n '}),Object(o.__metadata)("design:paramtypes",[i.ElementRef,te,Q,ne,oe,ie,se,i.Renderer2,i.NgZone])],e)}(),ue=new i.InjectionToken("Popup Container"),le=function(){function e(e,t,n,o){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=o}return Object.defineProperty(e.prototype,"rootViewContainer",{get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootViewContainerNode",{get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)},enumerable:!0,configurable:!0}),e.prototype.open=function(e){void 0===e&&(e={});var t=this.contentFrom(e.content),n=t.component,o=t.nodes,i=this.appendPopup(o,e.appendTo),r=i.instance;this.projectComponentInputs(i,e),i.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var s=this.getComponentRootNode(i);return{close:function(){var e;n&&n.destroy(),i.destroy(),(e=s)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:i,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:s,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(pe,e,t);return t||this.rootViewContainerNode.appendChild(this.getComponentRootNode(n)),n},e.prototype.getComponentRootNode=function(e){return e.location.nativeElement},e.prototype.getComponentFactory=function(e){return this.componentFactoryResolver.resolveComponentFactory(e)},e.prototype.createComponent=function(e,t,n){var o=this.getComponentFactory(e);if(n)return n.createComponent(o,void 0,this.injector,t);var i=o.create(this.injector,t);return this.applicationRef.attachView(i.hostView),i},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof i.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof i.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(o.__decorate)([Object(i.Injectable)(),Object(o.__param)(3,Object(i.Inject)(ue)),Object(o.__param)(3,Object(i.Optional)()),Object(o.__metadata)("design:paramtypes",[i.ApplicationRef,i.ComponentFactoryResolver,i.Injector,i.ElementRef])],e)}(),de=[pe],he=function(){function e(){}return e=Object(o.__decorate)([Object(i.NgModule)({declarations:[de],entryComponents:[de],exports:[de],imports:[U.CommonModule,H.ResizeSensorModule],providers:[le]})],e)}()},function(e,t){e.exports=i},function(e,t,n){"use strict";function o(e){return 9===e.nodeType}Object.defineProperty(t,"__esModule",{value:!0}),t.align=function(e,t){var n={},o={},i={};switch(e){case"top":n={horizontal:"center",vertical:"top"},o={horizontal:"center",vertical:"bottom"},i={horizontal:0,vertical:t};break;case"bottom":n={horizontal:"center",vertical:"bottom"},o={horizontal:"center",vertical:"top"},i={horizontal:0,vertical:t};break;case"right":n={horizontal:"right",vertical:"center"},o={horizontal:"left",vertical:"center"},i={horizontal:t,vertical:0};break;case"left":n={horizontal:"left",vertical:"center"},o={horizontal:"right",vertical:"center"},i={horizontal:t,vertical:0}}return{anchorAlign:n,popupAlign:o,popupMargin:i}},t.collision=function(e,t){return e||("top"===t||"bottom"===t?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},t.closestBySelector=function(e,t){if(e.closest)return e.closest(t);for(var n=Element.prototype.matches?function(e,t){return e.matches(t)}:function(e,t){return e.msMatchesSelector(t)},i=e;i&&!o(i);){if(n(i,t))return i;i=i.parentNode}},t.contains=function(e,t){return!!e&&(!o(e)&&(e.contains?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},t.hasParent=function(e,t){for(;e&&e!==t;)e=e.parentNode;return e},t.getCenterOffset=function(e,t,n){var o=e.getBoundingClientRect();return o[t]+o[n]/2},t.containsItem=function(e,t){return-1!==e.indexOf(t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return p})),n.d(t,"validatePackage",(function(){return u}));var o,i,r=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];o=r,i=131,function(e){for(;--e;)o.push(o.shift())}(++i);var s=function(e,t){var n=r[e-=0];if(void 0===s.eVebMg){s.JsjtEd=function(e){for(var t=function(e){for(var t,n,o=String(e).replace(/=+$/,""),i="",r=0,s=0;n=o.charAt(s++);~n&&(t=r%4?64*t+n:n,r++%4)?i+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],o=0,i=t.length;o<i;o++)n+="%"+("00"+t.charCodeAt(o).toString(16)).slice(-2);return decodeURIComponent(n)},s.rqrXoU={},s.eVebMg=!0}var o=s.rqrXoU[e];return void 0===o?(n=s.JsjtEd(n),s.rqrXoU[e]=n):n=o,n},a={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},c=new Map;function p(e){}function u(e){if(c[s("0x14")](e[s("0x4")])){if(s("0x35")==s("0x35"))return c[s("0x36")](e[s("0x4")])}var t,n=e[s("0x1")]?" v"+e[s("0x1")]:"",o=e[s("0x4")]+n,i=JSON[s("0x9")](a[s("0x34")]),r=!i[s("0x26")]&&!i[s("0x38")],p=i[s("0x26")]&&typeof KendoLicensing===s("0x2b"),u=function(e,t){var n=e[s("0x8")];if(!n||!n[s("0x2d")]){if(s("0x11")==s("0x11"))return null}var o=new Set(t);return n[s("0x2a")]((function(e){if(s("0xa")!==s("0x18"))return o[s("0x14")](e[s("0x39")])}))}(i,e[s("0x2")]);if(r||p)if(s("0x29")!=s("0x29")){}else t={type:0,packageName:o,docsUrl:e[s("0x27")]};else if(s("0xf")===s("0x24")){}else if(u){if(s("0x12")!=s("0x12")){}else if(u[s("0x37")]<e[s("0x1c")])if(s("0x21")===s("0x32")){}else t={type:2,packageName:o,publishDate:l(e[s("0x1c")]),expiryDate:l(u[s("0x37")]),docsUrl:e[s("0x27")]}}else if(s("0x6")!=s("0x6")){}else t={type:1,packageName:o,docsUrl:e[s("0x27")]};if(t&&typeof console===s("0x30"))if(s("0x5")===s("0x3")){}else{var d=s("0x1b")+e[s("0xe")],h=typeof console[s("0x7")]===s("0x33");if(h)if(s("0xc")!=s("0xc")){}else console[s("0x7")](d);else if(s("0x17")!=s("0x17")){}else console[s("0x1e")](d);if(console[s("0x1e")](function(e){var t=s("0x28")+e[s("0x16")]+"\n";if(2===e[s("0x3a")])if(s("0x20")!=s("0x20")){}else t+=s("0x25")+e[s("0x15")][s("0x2c")]()+s("0xb")+e[s("0x1c")][s("0x2c")]()+".\n";else if(0===e[s("0x3a")])if(s("0x13")!==s("0x10"))t+=s("0xd");else{}else if(1===e[s("0x3a")])if(s("0x2e")===s("0x23")){}else t+=s("0x1d");return t+=s("0x31")+e[s("0x1a")]+s("0x22")}(t)),h)if(s("0x1f")!==s("0x19"))console[s("0x2f")]();else{}}var f=!t;return c[s("0x0")](e[s("0x4")],f),f}function l(e){return new Date(1e3*e)}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=n(3),a=n(9),c=n(16),p=n(19),u=n(12),l=n(13),d=n(14),h=function(){function e(e){this.localization=e,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new i.EventEmitter,this.shown=new i.EventEmitter,this.hide=new i.EventEmitter,this.hidden=new i.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},a.validatePackage(c.packageMetadata)}return Object.defineProperty(e.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(e){this._offset=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height="number"==typeof e?e+"px":e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateData",{get:function(){return this._templateData},set:function(e){if(i.isDevMode&&"function"!=typeof e)throw new Error(p.ERRORS.templateData+" "+JSON.stringify(e)+".");this._templateData=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subs.add(this.localization.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})))},e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},e.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number),o.__metadata("design:paramtypes",[Number])],e.prototype,"offset",null),o.__decorate([i.HostBinding("style.width"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"width",null),o.__decorate([i.HostBinding("style.height"),i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"height",null),o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"title",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"subtitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"body",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"animation",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Function),o.__metadata("design:paramtypes",[Function])],e.prototype,"templateData",null),o.__decorate([i.HostBinding("class.k-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"isHidden",null),o.__decorate([i.HostBinding("attr.aria-hidden"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"hasAttributeHidden",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"show",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"shown",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"hide",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"hidden",void 0),o.__decorate([i.ContentChild(u.PopoverTitleTemplateDirective,{static:!1}),o.__metadata("design:type",u.PopoverTitleTemplateDirective)],e.prototype,"titleTemplate",void 0),o.__decorate([i.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),o.__metadata("design:type",l.PopoverBodyTemplateDirective)],e.prototype,"bodyTemplate",void 0),o.__decorate([i.ContentChild(d.PopoverActionsTemplateDirective,{static:!1}),o.__metadata("design:type",d.PopoverActionsTemplateDirective)],e.prototype,"actionsTemplate",void 0),e=o.__decorate([i.Component({selector:"kendo-popover",providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),o.__metadata("design:paramtypes",[r.LocalizationService])],e)}();t.PopoverComponent=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverTitleTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverTitleTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverBodyTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverBodyTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=function(){function e(e){this.templateRef=e}return e=o.__decorate([i.Directive({selector:"[kendoPopoverActionsTemplate]"}),o.__param(0,i.Optional()),o.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PopoverActionsTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(4),s=n(3),a=n(6),c=n(9),p=n(16),u=n(17),l=n(18),d=n(8),h=function(){function e(e,t,n,o,i,a){var u=this;this.tooltipWrapper=e,this.ngZone=t,this.renderer=n,this.popupService=o,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],c.validatePackage(p.packageMetadata),Object.assign(this,i,a),this.ngZone.runOutsideAngular((function(){var e=u.tooltipWrapper.nativeElement;u.anchorTitleSubscription=s.fromEvent(e,"mouseover").pipe(r.filter((function(){return""!==u.filter}))).subscribe((function(e){var t=d.closestBySelector(e.target,u.filter);t&&u.hideElementTitle({nativeElement:t})})),u.mouseOverSubscription=s.fromEvent(e,"mouseover").pipe(r.debounceTime(100),r.filter((function(){return""!==u.filter}))).subscribe((function(e){return u.onMouseOver(e)})),u.mouseOutSubscription=s.fromEvent(e,"mouseout").pipe(r.debounceTime(100)).subscribe((function(e){return u.onMouseOut(e)}))}))}return Object.defineProperty(e.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(e){this.template=e},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var t=this;if(!this.popupRef)if(e instanceof Element&&(e={nativeElement:e}),this.anchor=e,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout((function(){return t.showContent(t.anchor)}),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},e.prototype.hide=function(){clearTimeout(this.showTimeout);var e=this.anchor&&this.anchor.nativeElement;e&&e.getAttribute("data-title")&&(!e.getAttribute("title")&&e.hasAttribute("title")&&e.setAttribute("title",e.getAttribute("data-title")),e.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},e.prototype.toggle=function(e,t){var n=this.anchor&&this.anchor.nativeElement;e instanceof Element&&(e={nativeElement:e}),n!==e.nativeElement&&this.hide(),n===e.nativeElement&&"click"===this.showOn&&this.hide(),void 0===t&&(t=!this.popupRef),t?this.show(e):this.hide()},e.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},e.prototype.ngOnChanges=function(e){e.showOn&&this.subscribeClick()},e.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!d.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},e.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},e.prototype.showContent=function(e){var t=this;(e.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run((function(){t.openPopup(e),t.bindContent(t.popupRef.content,e)})),this.popupRef.popupAnchorViewportLeave.pipe(r.take(1)).subscribe((function(){return t.hide()})))},e.prototype.bindContent=function(e,t){var n=this,o=e.instance;this.closeClickSubscription=o.close.subscribe((function(){n.hide()})),this.template?o.templateRef=this.template:o.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(o.titleTemplate=this.titleTemplate),o.closeTitle=this.closeTitle,o.anchor=t,o.callout=this.callout,o.closable=this.closable,o.position=this.position,o.tooltipWidth=this.tooltipWidth,o.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},e.prototype.hideElementTitle=function(e){var t=e.nativeElement;t.getAttribute("title")&&(t.setAttribute("data-title",t.getAttribute("title")),t.setAttribute("title",""))},e.prototype.openPopup=function(e){var t=this,n=d.align(this.position,this.offset),o=n.anchorAlign,i=n.popupAlign,r=n.popupMargin;this.popupRef=this.popupService.open({anchor:e,anchorAlign:o,animate:!1,content:l.TooltipContentComponent,collision:d.collision(this.collision,this.position),margin:r,popupAlign:i,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var a=this.popupRef.content.instance;a.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(e){var n=e.flip,o=!0===n.horizontal||!0===n.vertical;a.updateCalloutPosition(t.position,o)}))),"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var e=t.popupRef.popupElement;t.popupMouseOutSubscription=s.fromEvent(e,"mouseout").subscribe((function(e){return t.onMouseOut(e)}))}))},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},e.prototype.subscribeClick=function(){var e=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(r.filter((function(){return""!==e.filter}))).subscribe((function(t){return e.onMouseClick(t,e.tooltipWrapper.nativeElement)})))},e.prototype.onMouseClick=function(e,t){var n=e.target,o=d.closestBySelector(n,this.filter),i=this.popupRef&&this.popupRef.popupElement;if(i){if(i.contains(n))return;if(this.closable)return}t.contains(n)&&o?this.toggle(o,!0):i&&this.hide()},e.prototype.onMouseOver=function(e){var t=d.closestBySelector(e.target,this.filter);"hover"===this.showOn&&t&&this.toggle(t,!0)},e.prototype.onMouseOut=function(e){if("hover"===this.showOn&&!this.closable){var t=this.popupRef&&this.popupRef.popupElement,n=e.relatedTarget;n&&this.anchor&&d.contains(this.anchor.nativeElement,n)||n&&d.contains(t,n)||this.hide()}},e.prototype.verifyProperties=function(){if(i.isDevMode()){if(!d.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!d.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"filter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"position",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"showOn",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"showAfter",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"callout",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"offset",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"tooltipClass",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],e.prototype,"collision",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef),o.__metadata("design:paramtypes",[i.TemplateRef])],e.prototype,"tooltipTemplate",null),e=o.__decorate([i.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),o.__param(4,i.Optional()),o.__param(5,i.Optional()),o.__param(5,i.Inject(u.TOOLTIP_SETTINGS)),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2,a.PopupService,u.TooltipSettings,u.TooltipSettings])],e)}();t.TooltipDirective=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1643192233,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0);t.TOOLTIP_SETTINGS=new i.InjectionToken("kendo-ui-tooltip-settings");var r=function(){function e(){}return e=o.__decorate([i.Injectable()],e)}();t.TooltipSettings=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=n(8),a=function(){function e(e,t){this.content=e,this.localizationService=t,this.close=new i.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(e,t,n){var o={},i="top"===e||"bottom"===e;return n?("top"===e?o.bottom="unset":"bottom"===e?o.top="unset":"left"===e?o.right="unset":"right"===e&&(o.left="unset"),o[e]=-t+"px",o.transform=i?"rotateX(180deg)":"rotateY(180deg)",o):(o.transform=i?"rotateX(0deg)":"rotateY(0deg)",o)},this.direction=t.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"}))},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(e.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),e.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},e.prototype.onCloseClick=function(e){e.preventDefault(),this.close.emit()},e.prototype.updateCalloutPosition=function(e,t){if(this.callout){var n=this.content.nativeElement.querySelector(".k-callout"),o="top"===e||"bottom"===e,i=o?"width":"height",r=o?"left":"top",a=o?"marginLeft":"marginTop",c=n.getBoundingClientRect()[i],p=s.getCenterOffset(this.anchor.nativeElement,r,i),u=s.getCenterOffset(this.content.nativeElement,r,i),l=Math.abs(u-p);if(l>1||0===l||0===Math.round(l)){var d=u-p+c/2;n.style[a]=-d+"px"}var h=this.calloutStyles(e,c,t);Object.keys(h).forEach((function(e){n.style[e]=h[e]}))}},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],e.prototype,"direction",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],e.prototype,"close",void 0),o.__decorate([i.HostBinding("class"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"cssClasses",null),o.__decorate([i.HostBinding("class.k-tooltip-closable"),o.__metadata("design:type",Boolean),o.__metadata("design:paramtypes",[])],e.prototype,"className",null),o.__decorate([i.HostBinding("style.position"),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[])],e.prototype,"cssPosition",null),o.__decorate([i.HostBinding("style.width.px"),i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipWidth",void 0),o.__decorate([i.HostBinding("style.height.px"),i.Input(),o.__metadata("design:type",Number)],e.prototype,"tooltipHeight",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"titleTemplate",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.ElementRef)],e.prototype,"anchor",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Boolean)],e.prototype,"closable",void 0),o.__decorate([i.Input(),o.__metadata("design:type",i.TemplateRef)],e.prototype,"templateRef",void 0),o.__decorate([i.Input(),o.__metadata("design:type",String)],e.prototype,"templateString",void 0),e=o.__decorate([i.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[r.LocalizationService,{provide:r.L10N_PREFIX,useValue:"kendo.tooltip"}]}),o.__metadata("design:paramtypes",[i.ElementRef,r.LocalizationService])],e)}();t.TooltipContentComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),s=n(6),a=n(4),c=n(8),p=n(21),u=n(23),l=function(e){function t(t,n,o,i,s){var c=e.call(this,n,o,i)||this;return c.wrapperEl=t,c.ngZone=n,c.popupService=o,c.renderer=i,c.popoverService=s,c.mouseenterHandler=function(e){c.controlVisibility(e,!0)},c.mouseleaveHandler=function(e){var t=e.anchor;c.isPrevented(t,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(e){var t=e[0],n=e[2],o=e[3];t||n||(c.hide(),!n&&o&&c.show(o))})))},c.focusHandler=function(e){c.controlVisibility(e,!0)},c.blurHandler=function(e){var t=e.anchor,n=e.domEvent;if(!c.isPrevented(t,!1)){var o=!!r.closest(n.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}));o||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(a.filter((function(e){return null!==e}))).subscribe((function(e){e||o||c.hide()})))}},c._popoverService=c.popoverService,c}return o.__extends(t,e),t.prototype.show=function(e){var t=this;this.popupRef||(this.ngZone.run((function(){t.openPopup(e)})),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe((function(){return t.hide()})))},t.prototype.toggle=function(e){var t=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),t!==e&&this.show(e)):this.show(e)},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){var n=c.closestBySelector(t.target,e.filter);e.clickHandler(n,t)}))},t.prototype.subscribeToEvents=function(e){var t=this;r.isDocumentAvailable()&&Array.from(document.querySelectorAll(this.filter)).forEach((function(n){t.subs.add(t.renderer.listen(n,e[0].name,(function(){t.popoverService.emitAnchorState(!0,n),e[0].handler(n)}))),t.subs.add(t.renderer.listen(n,e[1].name,(function(o){t.popoverService.emitAnchorState(!1,null),e[1].handler({anchor:n,domEvent:o})})))}))},t.prototype.clickHandler=function(e,t){var n=!!r.closest(t.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),o=this.popupRef&&this.popupRef.content.instance.anchor,i=!!r.closest(t.target,(function(t){return t===(o||e)}));"click"!==this.showOn||n||this.popupRef&&i||(e||!this.popupRef?i?this.controlVisibility(e,!0):this.popupRef&&(this.controlVisibility(e,!1),this.controlVisibility(e,!0)):this.controlVisibility(e,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show(e):this.hide())},o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"filter",void 0),t=o.__decorate([i.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[u.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,u.PopoverService])],t)}(p.PopoverDirectivesBase);t.PopoverContainerDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),s=n(19),a=n(22),c=n(8),p=n(11),u=n(3),l=["hover","click","none","focus"],d=function(){function e(e,t,n){this.ngZone=e,this.popupService=t,this.renderer=n,this.subs=new u.Subscription,this._showOn="click"}return Object.defineProperty(e.prototype,"popover",{get:function(){return this._popover},set:function(e){if(e instanceof p.PopoverComponent||"function"==typeof e)this._popover=e;else if(i.isDevMode)throw new Error(s.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOn",{get:function(){return this._showOn},set:function(e){if(i.isDevMode&&!c.containsItem(l,e))throw new Error(s.ERRORS.showOn);this._showOn=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular((function(){switch(e.showOn){case"hover":e.subscribeToEvents([{name:"mouseenter",handler:e.mouseenterHandler},{name:"mouseleave",handler:e.mouseleaveHandler}]);break;case"focus":e.subscribeToEvents([{name:"focus",handler:e.focusHandler},{name:"blur",handler:e.blurHandler}]);break;case"click":e.subscribeClick()}}))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},e.prototype.hide=function(){this.closePopup()},e.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},e.prototype.openPopup=function(e){var t=e instanceof i.ElementRef?e.nativeElement:e,n=this.popover instanceof p.PopoverComponent?this.popover:this.popover(t),o=c.align(n.position,n.offset),r=o.anchorAlign,s=o.popupAlign,a=o.popupMargin,u=n.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:t},animate:u,content:p.PopoverComponent,popupAlign:s,anchorAlign:r,margin:a,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,n,e),this.monitorPopup(),this.initializeCompletionEvents(n,t)},e.prototype.isPrevented=function(e,t){var n,o=this.popover instanceof p.PopoverComponent?this.popover:this.popover(e);return(n=this.initializeEvents(o,n,t,e)).isDefaultPrevented()},e.prototype.monitorPopup=function(){var e=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupHoverInListener=e.renderer.listen(t,"mouseenter",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!0)}))})),e.disposePopupHoverOutListener=e.renderer.listen(t,"mouseleave",(function(t){e.ngZone.run((function(t){return e._popoverService.emitPopoverState(!1)}))}))})),"focus"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.disposePopupFocusOutListener=e.renderer.listen(t,"focusout",(function(t){r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||e.ngZone.run((function(t){return e._popoverService.emitFocusInsidePopover(!1)}))}))}))},e.prototype.applySettings=function(e,t,n){var o=e.instance,r=n instanceof i.ElementRef?n.nativeElement:n;o.visible=!0,o.anchor=r,o.position=t.position,o.offset=t.offset,o.width=t.width,o.height=t.height,o.title=t.title,o.body=t.body,o.callout=t.callout,o.animation=t.animation,o.contextData=t.templateData(r),o.titleTemplate=t.titleTemplate,o.bodyTemplate=t.bodyTemplate,o.actionsTemplate=t.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},e.prototype.initializeEvents=function(e,t,n,o){var i=this;return n?this.ngZone.run((function(n){t=new a.PopoverShowEvent(o),i.popupRef||e.show.emit(t)})):this.ngZone.run((function(n){t=new a.PopoverHideEvent(o,i.popupRef),i.popupRef&&e.hide.emit(t)})),t},e.prototype.initializeCompletionEvents=function(e,t){var n=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var o=new a.PopoverShownEvent(t,n.popupRef);e.shown.emit(o)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){n.ngZone.run((function(n){var o=new a.PopoverHiddenEvent(t);e.hidden.emit(o)}))}))},o.__decorate([i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],e.prototype,"popover",null),o.__decorate([i.Input(),o.__metadata("design:type",String),o.__metadata("design:paramtypes",[String])],e.prototype,"showOn",null),e}();t.PopoverDirectivesBase=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(2),r=function(e){function t(t){var n=e.call(this)||this;return n.anchor=t,n}return o.__extends(t,e),t}(i.PreventableEvent);t.PopoverShowEvent=r;var s=function(e){function t(t,n){var o=e.call(this)||this;return o.anchor=t,o.popover=n,o}return o.__extends(t,e),t}(i.PreventableEvent);t.PopoverHideEvent=s;var a=function(e,t){this.anchor=e,this.popover=t};t.PopoverShownEvent=a;var c=function(e){this.anchor=e};t.PopoverHiddenEvent=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(3),s=n(4),a=function(){function e(e){this.ngZone=e,this._pointerOverPopup=new r.BehaviorSubject(null),this._pointerOverAnchor=new r.BehaviorSubject(null),this._focusInsidePopover=new r.BehaviorSubject(null),this._hidePopover=new r.Subject,this.subs=new r.Subscription,this.monitor()}return e.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(e.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitPopoverState=function(e){var t=this;this.ngZone.run((function(n){return t._pointerOverPopup.next(e)}))},Object.defineProperty(e.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitAnchorState=function(e,t){var n=this;this._isOrigin=this.originAnchor===t,this.currentAnchor=t,e&&(this.originAnchor=t),this.ngZone.run((function(t){return n._pointerOverAnchor.next(e)}))},Object.defineProperty(e.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.emitFocusInsidePopover=function(e){var t=this;this.ngZone.run((function(n){return t._focusInsidePopover.next(e)})),this._focusInsidePopover.next(null)},Object.defineProperty(e.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),e.prototype.monitor=function(){var e=this;this.subs.add(r.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe((function(t){var n=t[0],o=t[1];e._hidePopover.next([n,o,e._isOrigin,e.currentAnchor])})))},e=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[i.NgZone])],e)}();t.PopoverService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(2),s=n(6),a=n(4),c=n(21),p=n(23),u=function(e){function t(t,n,o,i,s){var c=e.call(this,n,o,i)||this;return c.hostEl=t,c.ngZone=n,c.popupService=o,c.renderer=i,c.popoverService=s,c.mouseenterHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.mouseleaveHandler=function(){c.isPrevented(c.hostEl.nativeElement,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(e){var t=e[0],n=e[1];t||n||c.hide()})))},c.focusHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.blurHandler=function(e){var t=e.domEvent;c.isPrevented(c.hostEl.nativeElement,!1)||(!!r.closest(t.relatedTarget,(function(e){return e.classList&&e.classList.contains("k-popover")}))||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(a.filter((function(e){return null!==e}))).subscribe((function(e){e||c.hide()}))))},c._popoverService=c.popoverService,c}return o.__extends(t,e),t.prototype.show=function(){var e=this;this.popupRef||(this.ngZone.run((function(){e.openPopup(e.hostEl)})),this.popupRef.popupAnchorViewportLeave.pipe(a.take(1)).subscribe((function(){return e.hide()})))},t.prototype.toggle=function(){this.popupRef?this.hide():this.show()},t.prototype.subscribeToEvents=function(e){var t=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[0].name,(function(){t.popoverService.emitAnchorState(!0,t.hostEl.nativeElement),e[0].handler()}))),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,e[1].name,(function(n){t.popoverService.emitAnchorState(!1,null),e[1].handler({domEvent:n})})))},t.prototype.subscribeClick=function(){var e=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(t){e.onClick(t)}))},t.prototype.onClick=function(e){var t=this,n=!!r.closest(e.target,(function(e){return e.classList&&e.classList.contains("k-popup")})),o=!!r.closest(e.target,(function(e){return e===t.hostEl.nativeElement}));n||this.popupRef&&o||(o?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},t.prototype.controlVisibility=function(e,t){this.isPrevented(e,t)||(t?this.show():this.hide())},t=o.__decorate([i.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[p.PopoverService]}),o.__metadata("design:paramtypes",[i.ElementRef,i.NgZone,s.PopupService,i.Renderer2,p.PopoverService])],t)}(c.PopoverDirectivesBase);t.PopoverAnchorDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(5),s=n(15),a=n(6),c=n(18),p=n(28),u=[s.TooltipDirective,c.TooltipContentComponent,p.LocalizedMessagesDirective],l=[a.PopupModule],d=function(){function e(){}return e=o.__decorate([i.NgModule({declarations:[u],entryComponents:[c.TooltipContentComponent],imports:[r.CommonModule].concat(l),exports:[u]})],e)}();t.TooltipModule=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(5),r=n(0),s=n(6),a=n(24),c=n(20),p=n(11),u=n(12),l=n(13),d=[n(14).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,u.PopoverTitleTemplateDirective,a.PopoverAnchorDirective,c.PopoverContainerDirective],h=function(){function e(){}return e=o.__decorate([r.NgModule({declarations:d.concat([p.PopoverComponent]),entryComponents:[p.PopoverComponent],exports:d.concat([p.PopoverComponent]),imports:[i.CommonModule,s.PopupModule]})],e)}();t.PopoverModule=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(15);t.TooltipDirective=o.TooltipDirective;var i=n(17);t.TooltipSettings=i.TooltipSettings,t.TOOLTIP_SETTINGS=i.TOOLTIP_SETTINGS;var r=n(11);t.PopoverComponent=r.PopoverComponent;var s=n(20);t.PopoverContainerDirective=s.PopoverContainerDirective;var a=n(24);t.PopoverAnchorDirective=a.PopoverAnchorDirective;var c=n(12);t.PopoverTitleTemplateDirective=c.PopoverTitleTemplateDirective;var p=n(13);t.PopoverBodyTemplateDirective=p.PopoverBodyTemplateDirective;var u=n(14);t.PopoverActionsTemplateDirective=u.PopoverActionsTemplateDirective;var l=n(22);t.PopoverShowEvent=l.PopoverShowEvent,t.PopoverShownEvent=l.PopoverShownEvent,t.PopoverHideEvent=l.PopoverHideEvent,t.PopoverHiddenEvent=l.PopoverHiddenEvent;var d=n(25);t.TooltipModule=d.TooltipModule;var h=n(26);t.PopoverModule=h.PopoverModule;var f=n(29);t.TooltipsModule=f.TooltipsModule},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(10),s=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return o.__extends(t,e),n=t,o.__decorate([i.Input(),o.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),t=n=o.__decorate([i.Directive({providers:[{provide:r.ComponentMessages,useExisting:i.forwardRef((function(){return n}))}],selector:"[kendoTooltipLocalizedMessages]"}),o.__metadata("design:paramtypes",[r.LocalizationService])],t)}(r.ComponentMessages);t.LocalizedMessagesDirective=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(0),r=n(25),s=n(26),a=function(){function e(){}return e=o.__decorate([i.NgModule({exports:[r.TooltipModule,s.PopoverModule]})],e)}();t.TooltipsModule=a}])}));
20
+ var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function u(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(r=t[u])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function a(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function u(t){try{c(i.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}c((i=i.apply(t,e||[])).next())}))}function l(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function f(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function b(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,u=o.length;s<u;s++,r++)i[r]=o[s];return i}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function m(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||u(t,e)}))})}function u(t,e){try{(n=r[t](e)).value instanceof _?Promise.resolve(n.value.v).then(c,a):p(o[0][2],n)}catch(t){p(o[0][3],t)}var n}function c(t){u("next",t)}function a(t){u("throw",t)}function p(t,e){t(e),o.shift(),o.length&&u(o[0][0],o[0][1])}}function g(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:_(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,r,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function T(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function O(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";function i(t){return 9===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0}),e.align=function(t,e){var n={},i={},r={};switch(t){case"top":n={horizontal:"center",vertical:"top"},i={horizontal:"center",vertical:"bottom"},r={horizontal:0,vertical:e};break;case"bottom":n={horizontal:"center",vertical:"bottom"},i={horizontal:"center",vertical:"top"},r={horizontal:0,vertical:e};break;case"right":n={horizontal:"right",vertical:"center"},i={horizontal:"left",vertical:"center"},r={horizontal:e,vertical:0};break;case"left":n={horizontal:"left",vertical:"center"},i={horizontal:"right",vertical:"center"},r={horizontal:e,vertical:0}}return{anchorAlign:n,popupAlign:i,popupMargin:r}},e.collision=function(t,e){return t||("top"===e||"bottom"===e?{horizontal:"fit",vertical:"flip"}:{horizontal:"flip",vertical:"fit"})},e.closestBySelector=function(t,e){if(t.closest)return t.closest(e);for(var n=Element.prototype.matches?function(t,e){return t.matches(e)}:function(t,e){return t.msMatchesSelector(e)},r=t;r&&!i(r);){if(n(r,e))return r;r=r.parentNode}},e.contains=function(t,e){return!!t&&(!i(t)&&(t.contains?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY):void 0))},e.hasParent=function(t,e){for(;t&&t!==e;)t=t.parentNode;return t},e.getCenterOffset=function(t,e,n){var i=t.getBoundingClientRect();return i[e]+i[n]/2},e.containsItem=function(t,e){return-1!==t.indexOf(e)}},function(t,e){t.exports=i},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return D})),n.d(e,"auditTime",(function(){return Z})),n.d(e,"buffer",(function(){return U})),n.d(e,"bufferCount",(function(){return $})),n.d(e,"bufferTime",(function(){return tt})),n.d(e,"bufferToggle",(function(){return ut})),n.d(e,"bufferWhen",(function(){return pt})),n.d(e,"catchError",(function(){return ft})),n.d(e,"combineAll",(function(){return gt})),n.d(e,"combineLatest",(function(){return xt})),n.d(e,"concat",(function(){return Mt})),n.d(e,"concatAll",(function(){return Rt})),n.d(e,"concatMap",(function(){return Bt})),n.d(e,"concatMapTo",(function(){return Ht})),n.d(e,"count",(function(){return zt})),n.d(e,"debounce",(function(){return Ft})),n.d(e,"debounceTime",(function(){return Zt})),n.d(e,"defaultIfEmpty",(function(){return $t})),n.d(e,"delay",(function(){return re})),n.d(e,"delayWhen",(function(){return ce})),n.d(e,"dematerialize",(function(){return fe})),n.d(e,"distinct",(function(){return be})),n.d(e,"distinctUntilChanged",(function(){return me})),n.d(e,"distinctUntilKeyChanged",(function(){return xe})),n.d(e,"elementAt",(function(){return Be})),n.d(e,"endWith",(function(){return He})),n.d(e,"every",(function(){return ze})),n.d(e,"exhaust",(function(){return Fe})),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 Je})),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 fn})),n.d(e,"ignoreElements",(function(){return mn})),n.d(e,"isEmpty",(function(){return xn})),n.d(e,"last",(function(){return Cn})),n.d(e,"map",(function(){return Pt})),n.d(e,"mapTo",(function(){return In})),n.d(e,"materialize",(function(){return jn})),n.d(e,"max",(function(){return Hn})),n.d(e,"merge",(function(){return Ln})),n.d(e,"mergeAll",(function(){return Vt})),n.d(e,"mergeMap",(function(){return kt})),n.d(e,"flatMap",(function(){return kt})),n.d(e,"mergeMapTo",(function(){return Wn})),n.d(e,"mergeScan",(function(){return Fn})),n.d(e,"min",(function(){return Zn})),n.d(e,"multicast",(function(){return Qn})),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 hi})),n.d(e,"pluck",(function(){return fi})),n.d(e,"publish",(function(){return vi})),n.d(e,"publishBehavior",(function(){return yi})),n.d(e,"publishLast",(function(){return mi})),n.d(e,"publishReplay",(function(){return Ti})),n.d(e,"race",(function(){return Ci})),n.d(e,"reduce",(function(){return Bn})),n.d(e,"repeat",(function(){return Ii})),n.d(e,"repeatWhen",(function(){return ji})),n.d(e,"retry",(function(){return Ri})),n.d(e,"retryWhen",(function(){return Bi})),n.d(e,"refCount",(function(){return Un})),n.d(e,"sample",(function(){return Li})),n.d(e,"sampleTime",(function(){return Yi})),n.d(e,"scan",(function(){return Rn})),n.d(e,"sequenceEqual",(function(){return Ki})),n.d(e,"share",(function(){return Qi})),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 pr})),n.d(e,"skipWhile",(function(){return fr})),n.d(e,"startWith",(function(){return br})),n.d(e,"subscribeOn",(function(){return Tr})),n.d(e,"switchAll",(function(){return Ir})),n.d(e,"switchMap",(function(){return Or})),n.d(e,"switchMapTo",(function(){return kr})),n.d(e,"take",(function(){return Re})),n.d(e,"takeLast",(function(){return En})),n.d(e,"takeUntil",(function(){return Nr})),n.d(e,"takeWhile",(function(){return Vr})),n.d(e,"tap",(function(){return Ce})),n.d(e,"throttle",(function(){return Br})),n.d(e,"throttleTime",(function(){return Lr})),n.d(e,"throwIfEmpty",(function(){return Ae})),n.d(e,"timeInterval",(function(){return qr})),n.d(e,"timeout",(function(){return Jr})),n.d(e,"timeoutWith",(function(){return Gr})),n.d(e,"timestamp",(function(){return Qr})),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 yo})),n.d(e,"windowWhen",(function(){return go})),n.d(e,"withLatestFrom",(function(){return So})),n.d(e,"zip",(function(){return jo})),n.d(e,"zipAll",(function(){return Ao}));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 p(t){return null!==t&&"object"==typeof t}function l(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}l.prototype=Object.create(Error.prototype);var h=l,f=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 h?d(n.errors):[n]}if(a(s))for(u=-1,c=s.length;++u<c;){var l=s[u];if(p(l))try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof h?t=t.concat(d(n.errors)):t.push(n)}}if(e)throw new h(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 d(t){return t.reduce((function(t,e){return t.concat(e instanceof h?e.errors:e)}),[])}var v="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),b=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 y(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,n,i,r)}return o}return i.__extends(e,t),e.prototype[v]=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}(f),y=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}(b),_=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}(b),m=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}(b);var g="function"==typeof Symbol&&Symbol.observable||"@@observable";function w(){}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 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 T=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 b)return t;if(t[v])return t[v]()}return t||e||n?new b(t,e,n):new b(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 b?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[g]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this: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 O=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()}},P=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 C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var I=C(),k=function(t){return function(e){for(var n=t[I]();;){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}},N=function(t){return function(e){var n=t[g]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},j=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function A(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var V=function(t){if(t instanceof T)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[g])return N(t);if(j(t))return O(t);if(A(t))return P(t);if(t&&"function"==typeof t[I])return k(t);var e=p(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 R(t,e,n,i,r){if(void 0===r&&(r=new m(t,n,i)),!r.closed)return V(e)(r)}function D(t){return function(e){return e.lift(new M(t))}}var M=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new B(t,this.durationSelector))},t}(),B=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=R(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}(_),H=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}(f)),z=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}(),L=function(t){function e(n,i){void 0===i&&(i=z.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}(z),W=new L(H);function F(t){return!a(t)&&t-parseFloat(t)+1>=0}function Y(t){return t&&"function"==typeof t.schedule}function q(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=W),D((function(){return function(t,e,n){void 0===t&&(t=0);var i=-1;return F(e)?i=Number(e)<1?1:Number(e):Y(e)&&(n=e),Y(n)||(n=W),new T((function(e){var r=F(t)?t:+t-n.now();return n.schedule(q,r,{index:0,period:i,subscriber:e})}))}(t,e)}))}function U(t){return function(e){return e.lift(new K(t))}}var K=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(R(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}(_);function $(t,e){return void 0===e&&(e=null),function(n){return n.lift(new X(t,e))}}var X=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?Q:J}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),J=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}(b),Q=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}(b);function tt(t){var e=arguments.length,n=W;Y(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},p={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:s,scheduler:o};s.add(u.closeAction=o.schedule(st,n,a)),s.add(o.schedule(ot,i,p))}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}(b);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(R(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 f,i={buffer:[],subscription:n};e.push(i);var r=R(this,t,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},e}(_);function pt(t){return function(e){return e.lift(new lt(t))}}var lt=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ht(t,this.closingSelector))},t}(),ht=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 f,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(R(this,e)),this.subscribing=!1},e}(_);function ft(t){return function(e){var n=new dt(t),i=e.lift(n);return n.caught=i}}var dt=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.selector,this.caught))},t}(),vt=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 m(this,void 0,void 0);this.add(i),R(this,n,void 0,void 0,i)}},e}(_);function bt(t,e){return new T(e?function(n){var i=new f,r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:O(t))}var yt={};var _t=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new mt(t,this.resultSelector))},t}(),mt=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(yt),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(R(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===yt?--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}(_);function gt(t){return function(e){return e.lift(new _t(t))}}function wt(t,e){if(!e)return t instanceof T?t:new T(V(t));if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new T(e?function(n){var i=new f;return i.add(e.schedule((function(){var r=t[g]();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}:N(t))}(t,e);if(A(t))return function(t,e){return new T(e?function(n){var i=new f;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}:P(t))}(t,e);if(j(t))return bt(t,e);if(function(t){return t&&"function"==typeof t[I]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new T(e?function(n){var i,r=new f;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(e.schedule((function(){i=t[I](),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}:k(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 _t(n))}}var St=new T((function(t){return t.complete()}));function Tt(t){return t?function(t){return new T((function(e){return t.schedule((function(){return e.complete()}))}))}(t):St}function Et(t){var e=new T((function(e){e.next(t),e.complete()}));return e._isScalar=!0,e.value=t,e}function Ot(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Y(n)?t.pop():n=void 0,t.length){case 0:return Tt(n);case 1:return n?bt(t,n):Et(t[0]);default:return bt(t,n)}}function Pt(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 Ct(t,e))}}var Ct=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new It(t,this.project,this.thisArg))},t}(),It=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}(b);function kt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(kt((function(n,i){return wt(t(n,i)).pipe(Pt((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new Nt(t,n))})}var Nt=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 jt(t,this.project,this.concurrent))},t}(),jt=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 m(this,void 0,void 0);this.destination.add(i),R(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}(_);function At(t){return t}function Vt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),kt(At,t)}function Rt(){return Vt(1)}function Dt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Rt()(Ot.apply(void 0,t))}function Mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Dt.apply(void 0,[e].concat(t)))}}function Bt(t,e){return kt(t,e,1)}function Ht(t,e){return Bt((function(){return t}),e)}function zt(t){return function(e){return e.lift(new Lt(t,e))}}var Lt=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Wt(t,this.predicate,this.source))},t}(),Wt=function(t){function e(e,n,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}(b);function Ft(t){return function(e){return e.lift(new Yt(t))}}var Yt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new qt(t,this.durationSelector))},t}(),qt=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=R(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}(_);function Zt(t,e){return void 0===e&&(e=W),function(n){return n.lift(new Ut(t,e))}}var Ut=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Kt(t,this.dueTime,this.scheduler))},t}(),Kt=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}(b);function Gt(t){t.debouncedNext()}function $t(t){return void 0===t&&(t=null),function(e){return e.lift(new Jt(t))}}var Xt,Jt=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Qt(t,this.defaultValue))},t}(),Qt=function(t){function e(e,n){var 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}(b);function te(t){return t instanceof Date&&!isNaN(+t)}function ee(t,e){return new T(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)}Xt||(Xt={});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 Ot(this.value);case"E":return ee(this.error);case"C":return Tt()}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=W);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}(b),ue=function(){return function(t,e){this.time=t,this.notification=e}}();function ce(t,e){return e?function(n){return new le(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 pe(t,this.delayDurationSelector))},t}(),pe=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=R(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}(_),le=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 he(t,this.source))},e}(T),he=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}(b);function fe(){return function(t){return t.lift(new de)}}var de=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ve(t))},t}(),ve=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}(b);function be(t,e){return function(n){return n.lift(new ye(t,e))}}var ye=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new _e(t,this.keySelector,this.flushes))},t}(),_e=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=n,r.values=new Set,i&&r.add(R(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}(_);function me(t,e){return function(n){return n.lift(new ge(t,e))}}var ge=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new we(t,this.compare,this.keySelector))},t}(),we=function(t){function e(e,n,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}(b);function xe(t,e){return me((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 Te=Se;function Ee(t,e){return function(n){return n.lift(new Oe(t,e))}}var Oe=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Pe(t,this.predicate,this.thisArg))},t}(),Pe=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}(b);function Ce(t,e,n){return function(i){return i.lift(new Ie(t,e,n))}}var Ie=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 ke(t,this.nextOrObserver,this.error,this.complete))},t}(),ke=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}(b);function Ne(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ne.prototype=Object.create(Error.prototype);var je=Ne,Ae=function(t){return void 0===t&&(t=Ve),Ce({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Ve(){return new je}function Re(t){return function(e){return 0===t?Tt():e.lift(new De(t))}}var De=function(){function t(t){if(this.total=t,this.total<0)throw new Te}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.total))},t}(),Me=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}(b);function Be(t,e){if(t<0)throw new Te;var n=arguments.length>=2;return function(i){return i.pipe(Ee((function(e,n){return n===t})),Re(1),n?$t(e):Ae((function(){return new Te})))}}function He(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];Y(n)?t.pop():n=null;var i=t.length;return Dt(e,1!==i||n?i>0?bt(t,n):Tt(n):Et(t[0]))}}function ze(t,e){return function(n){return n.lift(new Le(t,e,n))}}var Le=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new We(t,this.predicate,this.thisArg,this.source))},t}(),We=function(t){function e(e,n,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}(b);function Fe(){return function(t){return t.lift(new Ye)}}var Ye=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new qe(t))},t}(),qe=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(R(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(_);function Ze(t,e){return e?function(n){return n.pipe(Ze((function(n,i){return wt(t(n,i)).pipe(Pt((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Ue(t))}}var Ue=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ke(t,this.project))},t}(),Ke=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 m(this,void 0,void 0);this.destination.add(i),R(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}(_);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 $e(t,e,n))}}var $e=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Xe(t,this.project,this.concurrent,this.scheduler))},t}(),Xe=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(R(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}(_);function Je(t){return function(e){return e.lift(new Qe(t))}}var Qe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new tn(t,this.callback))},t}(),tn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new f(n)),i}return i.__extends(e,t),e}(b);function en(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(t,n,!1,e))}}var nn=function(){function t(t,e,n,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}(b);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)})):At,Re(1),n?$t(e):Ae((function(){return new je})))}}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}(f),pn=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i.__extends(e,t),e}(b),ln=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[v]=function(){return new pn(this)},e.prototype.lift=function(t){var e=new hn(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),f.EMPTY):this.isStopped?(t.complete(),f.EMPTY):(this.observers.push(t),new an(this,t))},e.prototype.asObservable=function(){var t=new T;return t.source=this,t},e.create=function(t,e){return new hn(t,e)},e}(T),hn=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):f.EMPTY},e}(ln);function fn(t,e,n,i){return function(r){return r.lift(new dn(t,e,n,i))}}var dn=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 vn(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),vn=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 ln,n.set(e,r);var o=new yn(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new yn(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new bn(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}(b),bn=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}(b),yn=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 f,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new _n(n)),e.add(i.subscribe(t)),e},e}(T),_n=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}(f);function mn(){return function(t){return t.lift(new gn)}}var gn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new wn(t))},t}(),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._next=function(t){},e}(b);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 Tn(t))},t}(),Tn=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}(b);function En(t){return function(e){return 0===t?Tt():e.lift(new On(t))}}var On=function(){function t(t){if(this.total=t,this.total<0)throw new Te}return t.prototype.call=function(t,e){return e.subscribe(new Pn(t,this.total))},t}(),Pn=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}(b);function Cn(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ee((function(e,n){return t(e,n,i)})):At,En(1),n?$t(e):Ae((function(){return new je})))}}function In(t){return function(e){return e.lift(new kn(t))}}var kn=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Nn(t,this.value))},t}(),Nn=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}(b);function jn(){return function(t){return t.lift(new An)}}var An=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t))},t}(),Vn=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}(b);function Rn(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Dn(t,e,n))}}var Dn=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Mn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Mn=function(t){function e(e,n,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}(b);function Bn(t,e){return arguments.length>=2?function(n){return x(Rn(t,e),En(1),$t(e))(n)}:function(e){return x(Rn((function(e,n,i){return t(e,n,i+1)})),En(1))(e)}}function Hn(t){return Bn("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}function zn(){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 Y(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 T?t[0]:Vt(n)(bt(t,i))}function Ln(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(zn.apply(void 0,[e].concat(t)))}}function Wn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?kt((function(){return t}),e,n):("number"==typeof e&&(n=e),kt((function(){return t}),n))}function Fn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Yn(t,e,n))}}var Yn=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 qn(t,this.accumulator,this.seed,this.concurrent))},t}(),qn=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 m(this,void 0,void 0);this.destination.add(i),R(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}(_);function Zn(t){return Bn("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}function Un(){return function(t){return t.lift(new Kn(t))}}var Kn=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}(b),$n=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 f).add(this.source.subscribe(new Jn(this.getSubject(),this))),t.closed?(this._connection=null,t=f.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Un()(this)},e}(T).prototype,Xn={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:$n._subscribe},_isComplete:{value:$n._isComplete,writable:!0},getSubject:{value:$n.getSubject},connect:{value:$n.connect},refCount:{value:$n.refCount}},Jn=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}(pn);function Qn(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,Xn);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}(b),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 m(this,void 0,void 0);this.destination.add(e),R(this,t,void 0,void 0,e)}else this.destination.complete()},e}(_);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 pi(t))},t}(),pi=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}(b);function li(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function hi(t,e){return function(n){return[Ee(t,e)(n),Ee(li(t,e))(n)]}}function fi(){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 Pt(di(t,n))(e)}}function di(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 vi(t){return t?Qn((function(){return new ln}),t):Qn(new ln)}var bi=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}(ln);function yi(t){return function(e){return Qn(new bi(t))(e)}}var _i=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),f.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),f.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}(ln);function mi(){return function(t){return Qn(new _i)(t)}}var gi=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}(H),wi=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(L))(gi),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=f.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}(ln),Si=function(){return function(t,e){this.time=t,this.value=e}}();function Ti(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 Qn((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 bt(t,void 0).lift(new Oi)}var Oi=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Pi(t))},t}(),Pi=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=R(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}(_);function Ci(){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 Ii(t){return void 0===t&&(t=-1),function(e){return 0===t?Tt():t<0?e.lift(new ki(-1,e)):e.lift(new ki(t-1,e))}}var ki=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ni(t,this.count,this.source))},t}(),Ni=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}(b);function ji(t){return function(e){return e.lift(new Ai(t))}}var Ai=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Vi(t,this.notifier,e))},t}(),Vi=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 ln;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=R(this,e)},e}(_);function Ri(t){return void 0===t&&(t=-1),function(e){return e.lift(new Di(t,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 Mi(t,this.count,this.source))},t}(),Mi=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}(b);function Bi(t){return function(e){return e.lift(new Hi(t,e))}}var Hi=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new zi(t,this.notifier,this.source))},t}(),zi=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 ln;try{i=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}r=R(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}(_);function Li(t){return function(e){return e.lift(new Wi(t))}}var Wi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Fi(t),i=e.subscribe(n);return i.add(R(n,this.notifier)),i},t}(),Fi=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}(_);function Yi(t,e){return void 0===e&&(e=W),function(n){return n.lift(new qi(t,e))}}var qi=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(Ui,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}(b);function Ui(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Ki(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 $i(t,this.compareTo,this.comparator))},t}(),$i=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 Xi(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}(b),Xi=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}(b);function Ji(){return new ln}function Qi(){return function(t){return Un()(Qn(Ji)(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,p=!1,l=!1;return function(t){a++,e&&!p||(p=!1,e=new xi(r,s,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){p=!0,e.error(t)},complete:function(){l=!0,e.complete()}}));var i=e.subscribe(this);this.add((function(){a--,i.unsubscribe(),n&&!l&&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 je)},e}(b);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}(b);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 Te}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new b(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}(b);function pr(t){return function(e){return e.lift(new lr(t))}}var lr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new hr(t,this.notifier))},t}(),hr=function(t){function e(e,n){var i=t.call(this,e)||this;i.hasValue=!1;var r=new m(i,void 0,void 0);return i.add(r),i.innerSubscription=r,R(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}(_);function fr(t){return function(e){return e.lift(new dr(t))}}var dr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.predicate))},t}(),vr=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}(b);function br(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];Y(n)?t.pop():n=null;var i=t.length;return Dt(1!==i||n?i>0?bt(t,n):Tt(n):Et(t[0]),e)}}var yr=1,_r={};var mr=function(t){var e=yr++;return _r[e]=t,Promise.resolve().then((function(){return function(t){var e=_r[t];e&&e()}(e)})),e},gr=function(t){delete _r[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=mr(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&&(gr(n),e.scheduled=void 0)},e}(H),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}(L))(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,(!F(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}(T);function Tr(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 Or(t,e){return"function"==typeof e?function(n){return n.pipe(Or((function(n,i){return wt(t(n,i)).pipe(Pt((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Pr(t))}}var Pr=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Cr(t,this.project))},t}(),Cr=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 m(this,void 0,void 0);this.destination.add(r),this.innerSubscription=R(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}(_);function Ir(){return Or(At)}function kr(t,e){return e?Or((function(){return t}),e):Or((function(){return t}))}function Nr(t){return function(e){return e.lift(new jr(t))}}var jr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Ar(t),i=R(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),Ar=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}(_);function Vr(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new Rr(t,e))}}var Rr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new Dr(t,this.predicate,this.inclusive))},t}(),Dr=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}(b),Mr={leading:!0,trailing:!1};function Br(t,e){return void 0===e&&(e=Mr),function(n){return n.lift(new Hr(t,e.leading,e.trailing))}}var Hr=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 zr(t,this.durationSelector,this.leading,this.trailing))},t}(),zr=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=R(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}(_);function Lr(t,e,n){return void 0===e&&(e=W),void 0===n&&(n=Mr),function(i){return i.lift(new Wr(t,e,n.leading,n.trailing))}}var Wr=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 Fr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Fr=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(Yr,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(b);function Yr(t){t.subscriber.clearThrottle()}function qr(t){return void 0===t&&(t=W),function(e){return n=function(){return e.pipe(Rn((function(e,n){var i=e.current;return{value:n,current:t.now(),last:i}}),{current:t.now(),value:void 0,last:void 0}),Pt((function(t){var e=t.current,n=t.last,i=t.value;return new Zr(i,e-n)})))},new T((function(t){var e;try{e=n()}catch(e){return void t.error(e)}return(e?wt(e):Tt()).subscribe(t)}));var n}}var Zr=function(){return function(t,e){this.value=t,this.interval=e}}();function Ur(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Ur.prototype=Object.create(Error.prototype);var Kr=Ur;function Gr(t,e,n){return void 0===n&&(n=W),function(i){var r=te(t),o=r?+t-n.now():Math.abs(t);return i.lift(new $r(o,r,e,n))}}var $r=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 Xr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Xr=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(R(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(_);function Jr(t,e){return void 0===e&&(e=W),Gr(t,ee(new Kr),e)}function Qr(t){return void 0===t&&(t=W),Pt((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 Bn(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(R(n,this.windowBoundaries)),i},t}(),oo=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new ln,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 ln;e.next(n)},e}(_);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 ln],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 ln;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}(b);function ao(t){var e=W,n=null,i=Number.POSITIVE_INFINITY;return Y(arguments[3])&&(e=arguments[3]),Y(arguments[2])?e=arguments[2]:F(arguments[2])&&(i=arguments[2]),Y(arguments[1])?e=arguments[1]:F(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new po(t,n,i,e))}}var po=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 ho(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),lo=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}(ln),ho=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(bo,n,c)),s.add(o.schedule(vo,i,a))}else{var p={subscriber:s,window:u,windowTimeSpan:n};s.add(o.schedule(fo,n,p))}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 lo;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(b);function 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 vo(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(bo,e,u),this.add(s.subscription),this.schedule(t,r)}function bo(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 yo(t,e){return function(n){return n.lift(new _o(t,e))}}var _o=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new mo(t,this.openings,this.closingSelector))},t}(),mo=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=R(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 ln,u=new f,c={window:s,subscription:u};this.contexts.push(c);var a=R(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}(_);function go(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 ln;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=R(this,n))},e}(_);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 To(i,n))}}var To=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(R(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}(_);function Oo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),bt(t,void 0).lift(new Po(n))}var Po=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Co(t,this.resultSelector))},t}(),Co=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 ko(t)):"function"==typeof t[I]?e.push(new Io(t[I]())):e.push(new No(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}(b),Io=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}(),ko=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[I]=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}(),No=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[I]=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 R(this,this.observable,this,e)},e}(_);function jo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Oo.apply(void 0,[e].concat(t)))}}function Ao(t){return function(e){return e.lift(new Po(t))}}},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),s=n(3),u=n(13),c=n(14),a=n(17),p=n(9),l=n(10),h=n(11),f=function(){function t(t){this.localization=t,this.position="right",this.callout=!0,this.animation=!1,this.visible=!1,this.show=new r.EventEmitter,this.shown=new r.EventEmitter,this.hide=new r.EventEmitter,this.hidden=new r.EventEmitter,this._offset=6,this._width="auto",this._height="auto",this.subs=new s.Subscription,this._templateData=function(){return null},u.validatePackage(c.packageMetadata)}return Object.defineProperty(t.prototype,"offset",{get:function(){return this.callout?14+this._offset:this._offset},set:function(t){this._offset=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(t){this._width="number"==typeof t?t+"px":t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(t){this._height="number"==typeof t?t+"px":t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateData",{get:function(){return this._templateData},set:function(t){if(r.isDevMode&&"function"!=typeof t)throw new Error(a.ERRORS.templateData+" "+JSON.stringify(t)+".");this._templateData=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasAttributeHidden",{get:function(){return!this.visible},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.subs.add(this.localization.changes.subscribe((function(e){var n=e.rtl;t.direction=n?"rtl":"ltr"})))},t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},t.prototype.getCalloutPosition=function(){switch(this.position){case"top":return{"k-callout-s":!0};case"bottom":return{"k-callout-n":!0};case"left":return{"k-callout-e":!0};case"right":return{"k-callout-w":!0};default:return{"k-callout-s":!0}}},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number),i.__metadata("design:paramtypes",[Number])],t.prototype,"offset",null),i.__decorate([r.HostBinding("style.width"),r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"width",null),i.__decorate([r.HostBinding("style.height"),r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"height",null),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"title",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"subtitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"body",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"animation",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"templateData",null),i.__decorate([r.HostBinding("class.k-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"isHidden",null),i.__decorate([r.HostBinding("attr.aria-hidden"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"hasAttributeHidden",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"show",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"shown",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"hide",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"hidden",void 0),i.__decorate([r.ContentChild(p.PopoverTitleTemplateDirective,{static:!1}),i.__metadata("design:type",p.PopoverTitleTemplateDirective)],t.prototype,"titleTemplate",void 0),i.__decorate([r.ContentChild(l.PopoverBodyTemplateDirective,{static:!1}),i.__metadata("design:type",l.PopoverBodyTemplateDirective)],t.prototype,"bodyTemplate",void 0),i.__decorate([r.ContentChild(h.PopoverActionsTemplateDirective,{static:!1}),i.__metadata("design:type",h.PopoverActionsTemplateDirective)],t.prototype,"actionsTemplate",void 0),t=i.__decorate([r.Component({selector:"kendo-popover",providers:[o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.popover"}],template:'\n <div *ngIf="visible" role="tooltip" class="k-popover" [ngStyle]="{\'width.px\': width, \'height.px\': height}">\n <div class="k-popover-callout" [ngClass]="getCalloutPosition()" *ngIf="callout"></div>\n\n <div *ngIf="titleTemplate || title" class="k-popover-header">\n <ng-template *ngIf="titleTemplate"\n [ngTemplateOutlet]="titleTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="title && !titleTemplate">\n {{ title }}\n </ng-container>\n </div>\n\n <div *ngIf="bodyTemplate || body" class="k-popover-body">\n <ng-template *ngIf="bodyTemplate"\n [ngTemplateOutlet]="bodyTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n <ng-container *ngIf="body && !bodyTemplate">\n {{ body }}\n </ng-container>\n </div>\n\n <div *ngIf="actionsTemplate" class="k-popover-actions k-actions k-hstack k-justify-content-between">\n <ng-template *ngIf="actionsTemplate"\n [ngTemplateOutlet]="actionsTemplate?.templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, data: contextData }">\n </ng-template>\n </div>\n </div>\n '}),i.__metadata("design:paramtypes",[o.LocalizationService])],t)}();e.PopoverComponent=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoPopoverTitleTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.PopoverTitleTemplateDirective=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoPopoverBodyTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.PopoverBodyTemplateDirective=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoPopoverActionsTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.PopoverActionsTemplateDirective=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(6),s=n(3),u=n(2),c=n(13),a=n(14),p=n(15),l=n(16),h=n(4),f=function(){function t(t,e,n,i,r,u){var p=this;this.tooltipWrapper=t,this.ngZone=e,this.renderer=n,this.popupService=i,this.filter="[title]",this.position="top",this.showAfter=100,this.callout=!0,this.closable=!1,this.offset=6,this.anchor=null,this.validPositions=["top","bottom","right","left"],this.validShowOptions=["hover","click","none"],c.validatePackage(a.packageMetadata),Object.assign(this,r,u),this.ngZone.runOutsideAngular((function(){var t=p.tooltipWrapper.nativeElement;p.anchorTitleSubscription=s.fromEvent(t,"mouseover").pipe(o.filter((function(){return""!==p.filter}))).subscribe((function(t){var e=h.closestBySelector(t.target,p.filter);e&&p.hideElementTitle({nativeElement:e})})),p.mouseOverSubscription=s.fromEvent(t,"mouseover").pipe(o.debounceTime(100),o.filter((function(){return""!==p.filter}))).subscribe((function(t){return p.onMouseOver(t)})),p.mouseOutSubscription=s.fromEvent(t,"mouseout").pipe(o.debounceTime(100)).subscribe((function(t){return p.onMouseOut(t)}))}))}return Object.defineProperty(t.prototype,"tooltipTemplate",{get:function(){return this.template},set:function(t){this.template=t},enumerable:!0,configurable:!0}),t.prototype.show=function(t){var e=this;if(!this.popupRef)if(t instanceof Element&&(t={nativeElement:t}),this.anchor=t,"hover"===this.showOn){if(this.popupRef)return;clearTimeout(this.showTimeout),this.showTimeout=window.setTimeout((function(){return e.showContent(e.anchor)}),this.showAfter)}else this.hideElementTitle(this.anchor),this.showContent(this.anchor)},t.prototype.hide=function(){clearTimeout(this.showTimeout);var t=this.anchor&&this.anchor.nativeElement;t&&t.getAttribute("data-title")&&(!t.getAttribute("title")&&t.hasAttribute("title")&&t.setAttribute("title",t.getAttribute("data-title")),t.setAttribute("data-title","")),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe(),this.closeClickSubscription&&this.closeClickSubscription.unsubscribe(),this.closePopup()},t.prototype.toggle=function(t,e){var n=this.anchor&&this.anchor.nativeElement;t instanceof Element&&(t={nativeElement:t}),n!==t.nativeElement&&this.hide(),n===t.nativeElement&&"click"===this.showOn&&this.hide(),void 0===e&&(e=!this.popupRef),e?this.show(t):this.hide()},t.prototype.ngOnInit=function(){void 0===this.showOn&&(this.showOn="hover"),this.verifyProperties()},t.prototype.ngOnChanges=function(t){t.showOn&&this.subscribeClick()},t.prototype.ngAfterViewChecked=function(){this.popupRef&&this.anchor&&!h.hasParent(this.anchor.nativeElement||this.anchor,this.tooltipWrapper.nativeElement)&&(this.anchor=null,this.hide())},t.prototype.ngOnDestroy=function(){this.hide(),this.template=null,this.anchorTitleSubscription.unsubscribe(),this.mouseOverSubscription.unsubscribe(),this.mouseOutSubscription.unsubscribe(),this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe(),this.popupMouseOutSubscription&&this.popupMouseOutSubscription.unsubscribe()},t.prototype.showContent=function(t){var e=this;(t.nativeElement.getAttribute("data-title")||this.template)&&(this.ngZone.run((function(){e.openPopup(t),e.bindContent(e.popupRef.content,t)})),this.popupRef.popupAnchorViewportLeave.pipe(o.take(1)).subscribe((function(){return e.hide()})))},t.prototype.bindContent=function(t,e){var n=this,i=t.instance;this.closeClickSubscription=i.close.subscribe((function(){n.hide()})),this.template?i.templateRef=this.template:i.templateString=this.anchor.nativeElement.getAttribute("data-title"),this.titleTemplate&&(i.titleTemplate=this.titleTemplate),i.closeTitle=this.closeTitle,i.anchor=e,i.callout=this.callout,i.closable=this.closable,i.position=this.position,i.tooltipWidth=this.tooltipWidth,i.tooltipHeight=this.tooltipHeight,this.popupRef.content.changeDetectorRef.detectChanges()},t.prototype.hideElementTitle=function(t){var e=t.nativeElement;e.getAttribute("title")&&(e.setAttribute("data-title",e.getAttribute("title")),e.setAttribute("title",""))},t.prototype.openPopup=function(t){var e=this,n=h.align(this.position,this.offset),i=n.anchorAlign,r=n.popupAlign,o=n.popupMargin;this.popupRef=this.popupService.open({anchor:t,anchorAlign:i,animate:!1,content:l.TooltipContentComponent,collision:h.collision(this.collision,this.position),margin:o,popupAlign:r,popupClass:"k-popup-transparent"}),this.renderer.addClass(this.popupRef.popupElement,"k-tooltip-wrapper"),this.tooltipClass&&this.renderer.addClass(this.popupRef.popupElement,this.tooltipClass);var u=this.popupRef.content.instance;u.callout&&(this.popupPositionChangeSubscription=this.popupRef.popupPositionChange.subscribe((function(t){var n=t.flip,i=!0===n.horizontal||!0===n.vertical;u.updateCalloutPosition(e.position,i)}))),"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var t=e.popupRef.popupElement;e.popupMouseOutSubscription=s.fromEvent(t,"mouseout").subscribe((function(t){return e.onMouseOut(t)}))}))},t.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.popupPositionChangeSubscription&&this.popupPositionChangeSubscription.unsubscribe()},t.prototype.subscribeClick=function(){var t=this;this.mouseClickSubscription&&this.mouseClickSubscription.unsubscribe(),"click"===this.showOn&&(this.mouseClickSubscription=s.fromEvent(document,"click").pipe(o.filter((function(){return""!==t.filter}))).subscribe((function(e){return t.onMouseClick(e,t.tooltipWrapper.nativeElement)})))},t.prototype.onMouseClick=function(t,e){var n=t.target,i=h.closestBySelector(n,this.filter),r=this.popupRef&&this.popupRef.popupElement;if(r){if(r.contains(n))return;if(this.closable)return}e.contains(n)&&i?this.toggle(i,!0):r&&this.hide()},t.prototype.onMouseOver=function(t){var e=h.closestBySelector(t.target,this.filter);"hover"===this.showOn&&e&&this.toggle(e,!0)},t.prototype.onMouseOut=function(t){if("hover"===this.showOn&&!this.closable){var e=this.popupRef&&this.popupRef.popupElement,n=t.relatedTarget;n&&this.anchor&&h.contains(this.anchor.nativeElement,n)||n&&h.contains(e,n)||this.hide()}},t.prototype.verifyProperties=function(){if(r.isDevMode()){if(!h.containsItem(this.validPositions,this.position))throw new Error("Invalid value provided for position property.The available options are 'top', 'bottom', 'left', or 'right'.");if(!h.containsItem(this.validShowOptions,this.showOn))throw new Error("Invalid value provided for showOn property.The available options are 'hover' or 'none'.")}},i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"position",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],t.prototype,"titleTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"showOn",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"showAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"callout",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"offset",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"tooltipClass",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"collision",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"closeTitle",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef),i.__metadata("design:paramtypes",[r.TemplateRef])],t.prototype,"tooltipTemplate",null),t=i.__decorate([r.Directive({selector:"[kendoTooltip]",exportAs:"kendoTooltip"}),i.__param(4,r.Optional()),i.__param(5,r.Optional()),i.__param(5,r.Inject(p.TOOLTIP_SETTINGS)),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2,u.PopupService,p.TooltipSettings,p.TooltipSettings])],t)}();e.TooltipDirective=f},function(t,e){t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-tooltip",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646042891,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(1);e.TOOLTIP_SETTINGS=new r.InjectionToken("kendo-ui-tooltip-settings");var o=function(){function t(){}return t=i.__decorate([r.Injectable()],t)}();e.TooltipSettings=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),s=n(4),u=function(){function t(t,e){this.content=t,this.localizationService=e,this.close=new r.EventEmitter,this.tooltipWidth=null,this.tooltipHeight=null,this.callout=!0,this.calloutStyles=function(t,e,n){var i={},r="top"===t||"bottom"===t;return n?("top"===t?i.bottom="unset":"bottom"===t?i.top="unset":"left"===t?i.right="unset":"right"===t&&(i.left="unset"),i[t]=-e+"px",i.transform=r?"rotateX(180deg)":"rotateY(180deg)",i):(i.transform=r?"rotateX(0deg)":"rotateY(0deg)",i)},this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(t.prototype,"cssClasses",{get:function(){return"k-widget k-tooltip"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.closable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssPosition",{get:function(){return"relative"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var n=e.rtl;return t.direction=n?"rtl":"ltr"}))},t.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},Object.defineProperty(t.prototype,"closeButtonTitle",{get:function(){return this.closeTitle||this.localizationService.get("closeTitle")},enumerable:!0,configurable:!0}),t.prototype.calloutPositionClass=function(){return{top:"k-callout-s",left:"k-callout-e",bottom:"k-callout-n",right:"k-callout-w"}[this.position]},t.prototype.onCloseClick=function(t){t.preventDefault(),this.close.emit()},t.prototype.updateCalloutPosition=function(t,e){if(this.callout){var n=this.content.nativeElement.querySelector(".k-callout"),i="top"===t||"bottom"===t,r=i?"width":"height",o=i?"left":"top",u=i?"marginLeft":"marginTop",c=n.getBoundingClientRect()[r],a=s.getCenterOffset(this.anchor.nativeElement,o,r),p=s.getCenterOffset(this.content.nativeElement,o,r),l=Math.abs(p-a);if(l>1||0===l||0===Math.round(l)){var h=p-a+c/2;n.style[u]=-h+"px"}var f=this.calloutStyles(t,c,e);Object.keys(f).forEach((function(t){n.style[t]=f[t]}))}},i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String)],t.prototype,"direction",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"close",void 0),i.__decorate([r.HostBinding("class"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssClasses",null),i.__decorate([r.HostBinding("class.k-tooltip-closable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"className",null),i.__decorate([r.HostBinding("style.position"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"cssPosition",null),i.__decorate([r.HostBinding("style.width.px"),r.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipWidth",void 0),i.__decorate([r.HostBinding("style.height.px"),r.Input(),i.__metadata("design:type",Number)],t.prototype,"tooltipHeight",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],t.prototype,"titleTemplate",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.ElementRef)],t.prototype,"anchor",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"closable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],t.prototype,"templateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"templateString",void 0),t=i.__decorate([r.Component({selector:"kendo-tooltip",template:'\n <ng-container kendoTooltipLocalizedMessages\n i18n-closeTitle="kendo.tooltip.closeTitle|The title of the close button"\n closeTitle="Close"\n >\n </ng-container>\n\n <div class="k-tooltip-content">\n <div class="k-tooltip-title" *ngIf="titleTemplate">\n <ng-template\n [ngIf]="titleTemplate"\n [ngTemplateOutlet]="titleTemplate"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n </div>\n\n <ng-template\n [ngIf]="templateRef"\n [ngTemplateOutlet]="templateRef"\n [ngTemplateOutletContext]="{ $implicit: anchor, anchor: anchor }">\n </ng-template>\n <ng-template\n [ngIf]="templateString">\n {{ templateString }}\n </ng-template>\n </div>\n\n <div *ngIf="closable" class="k-tooltip-button" (click)="onCloseClick($event)">\n <a href="#" class="k-icon k-i-close" [attr.title]="closeButtonTitle"></a>\n </div>\n\n <div class="k-callout" *ngIf="callout" [ngClass]="calloutPositionClass()"></div>\n ',providers:[o.LocalizationService,{provide:o.L10N_PREFIX,useValue:"kendo.tooltip"}]}),i.__metadata("design:paramtypes",[r.ElementRef,o.LocalizationService])],t)}();e.TooltipContentComponent=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ERRORS={popover:"Invalid value provided for the 'popover' property. The accepted data types are 'PopoverComponent' or 'PopoverFn'.",templateData:"templateData must be a function, but received",showOn:"Invalid value provided for the 'showOn' property. The available options are 'click', 'hover', 'focus' or 'none'."}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(2),u=n(6),c=n(4),a=n(19),p=n(21),l=function(t){function e(e,n,i,r,s){var c=t.call(this,n,i,r)||this;return c.wrapperEl=e,c.ngZone=n,c.popupService=i,c.renderer=r,c.popoverService=s,c.mouseenterHandler=function(t){c.controlVisibility(t,!0)},c.mouseleaveHandler=function(t){var e=t.anchor;c.isPrevented(e,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(t){var e=t[0],n=t[2],i=t[3];e||n||(c.hide(),!n&&i&&c.show(i))})))},c.focusHandler=function(t){c.controlVisibility(t,!0)},c.blurHandler=function(t){var e=t.anchor,n=t.domEvent;if(!c.isPrevented(e,!1)){var i=!!o.closest(n.relatedTarget,(function(t){return t.classList&&t.classList.contains("k-popover")}));i||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(u.filter((function(t){return null!==t}))).subscribe((function(t){t||i||c.hide()})))}},c._popoverService=c.popoverService,c}return i.__extends(e,t),e.prototype.show=function(t){var e=this;this.popupRef||(this.ngZone.run((function(){e.openPopup(t)})),this.popupRef.popupAnchorViewportLeave.pipe(u.take(1)).subscribe((function(){return e.hide()})))},e.prototype.toggle=function(t){var e=this.popupRef&&this.popupRef.content.instance.anchor;this.popupRef?(this.hide(),e!==t&&this.show(t)):this.show(t)},e.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(e){var n=c.closestBySelector(e.target,t.filter);t.clickHandler(n,e)}))},e.prototype.subscribeToEvents=function(t){var e=this;Array.from(document.querySelectorAll(this.filter)).forEach((function(n){e.subs.add(e.renderer.listen(n,t[0].name,(function(){e.popoverService.emitAnchorState(!0,n),t[0].handler(n)}))),e.subs.add(e.renderer.listen(n,t[1].name,(function(i){e.popoverService.emitAnchorState(!1,null),t[1].handler({anchor:n,domEvent:i})})))}))},e.prototype.clickHandler=function(t,e){var n=!!o.closest(e.target,(function(t){return t.classList&&t.classList.contains("k-popup")})),i=this.popupRef&&this.popupRef.content.instance.anchor,r=!!o.closest(e.target,(function(e){return e===(i||t)}));"click"!==this.showOn||n||this.popupRef&&r||(t||!this.popupRef?r?this.controlVisibility(t,!0):this.popupRef&&(this.controlVisibility(t,!1),this.controlVisibility(t,!0)):this.controlVisibility(t,!1))},e.prototype.controlVisibility=function(t,e){this.isPrevented(t,e)||(e?this.show(t):this.hide())},i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),e=i.__decorate([r.Directive({selector:"[kendoPopoverContainer]",exportAs:"kendoPopoverContainer",providers:[p.PopoverService]}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,s.PopupService,r.Renderer2,p.PopoverService])],e)}(a.PopoverDirectivesBase);e.PopoverContainerDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(17),u=n(20),c=n(4),a=n(8),p=n(3),l=["hover","click","none","focus"],h=function(){function t(t,e,n){this.ngZone=t,this.popupService=e,this.renderer=n,this.subs=new p.Subscription,this._showOn="click"}return Object.defineProperty(t.prototype,"popover",{get:function(){return this._popover},set:function(t){if(t instanceof a.PopoverComponent||"function"==typeof t)this._popover=t;else if(r.isDevMode)throw new Error(s.ERRORS.popover)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showOn",{get:function(){return this._showOn},set:function(t){if(r.isDevMode&&!c.containsItem(l,t))throw new Error(s.ERRORS.showOn);this._showOn=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;o.isDocumentAvailable()&&this.ngZone.runOutsideAngular((function(){switch(t.showOn){case"hover":t.subscribeToEvents([{name:"mouseenter",handler:t.mouseenterHandler},{name:"mouseleave",handler:t.mouseleaveHandler}]);break;case"focus":t.subscribeToEvents([{name:"focus",handler:t.focusHandler},{name:"blur",handler:t.blurHandler}]);break;case"click":t.subscribeClick()}}))},t.prototype.ngOnDestroy=function(){this.closePopup(),this.disposeHoverOverListener&&this.disposeHoverOverListener(),this.disposeHoverOutListener&&this.disposeHoverOutListener(),this.disposeClickListener&&this.disposeClickListener(),this._focusInsideSub&&this._focusInsideSub.unsubscribe(),this._hideSub&&this._hideSub.unsubscribe(),this.subs&&this.subs.unsubscribe(),this._popupOpenSub&&this._popupOpenSub.unsubscribe(),this._popupCloseSub&&this._popupCloseSub.unsubscribe()},t.prototype.hide=function(){this.closePopup()},t.prototype.closePopup=function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.disposePopupHoverOutListener&&this.disposePopupHoverOutListener(),this.disposePopupHoverInListener&&this.disposePopupHoverInListener(),this.disposePopupFocusOutListener&&this.disposePopupFocusOutListener())},t.prototype.openPopup=function(t){var e=t instanceof r.ElementRef?t.nativeElement:t,n=this.popover instanceof a.PopoverComponent?this.popover:this.popover(e),i=c.align(n.position,n.offset),o=i.anchorAlign,s=i.popupAlign,u=i.popupMargin,p=n.animation;this.popupRef=this.popupService.open({anchor:{nativeElement:e},animate:p,content:a.PopoverComponent,popupAlign:s,anchorAlign:o,margin:u,popupClass:"k-popup-transparent",collision:{horizontal:"fit",vertical:"fit"}}),this.applySettings(this.popupRef.content,n,t),this.monitorPopup(),this.initializeCompletionEvents(n,e)},t.prototype.isPrevented=function(t,e){var n,i=this.popover instanceof a.PopoverComponent?this.popover:this.popover(t);return(n=this.initializeEvents(i,n,e,t)).isDefaultPrevented()},t.prototype.monitorPopup=function(){var t=this;"hover"===this.showOn&&this.ngZone.runOutsideAngular((function(){var e=t.popupRef.popupElement;t.disposePopupHoverInListener=t.renderer.listen(e,"mouseenter",(function(e){t.ngZone.run((function(e){return t._popoverService.emitPopoverState(!0)}))})),t.disposePopupHoverOutListener=t.renderer.listen(e,"mouseleave",(function(e){t.ngZone.run((function(e){return t._popoverService.emitPopoverState(!1)}))}))})),"focus"===this.showOn&&this.ngZone.runOutsideAngular((function(){var e=t.popupRef.popupElement;t.disposePopupFocusOutListener=t.renderer.listen(e,"focusout",(function(e){o.closest(e.relatedTarget,(function(t){return t.classList&&t.classList.contains("k-popover")}))||t.ngZone.run((function(e){return t._popoverService.emitFocusInsidePopover(!1)}))}))}))},t.prototype.applySettings=function(t,e,n){var i=t.instance,o=n instanceof r.ElementRef?n.nativeElement:n;i.visible=!0,i.anchor=o,i.position=e.position,i.offset=e.offset,i.width=e.width,i.height=e.height,i.title=e.title,i.body=e.body,i.callout=e.callout,i.animation=e.animation,i.contextData=e.templateData(o),i.titleTemplate=e.titleTemplate,i.bodyTemplate=e.bodyTemplate,i.actionsTemplate=e.actionsTemplate,this.popupRef.content.changeDetectorRef.detectChanges()},t.prototype.initializeEvents=function(t,e,n,i){var r=this;return n?this.ngZone.run((function(n){e=new u.PopoverShowEvent(i),r.popupRef||t.show.emit(e)})):this.ngZone.run((function(n){e=new u.PopoverHideEvent(i,r.popupRef),r.popupRef&&t.hide.emit(e)})),e},t.prototype.initializeCompletionEvents=function(t,e){var n=this;this._popupOpenSub||this.popupRef.popupOpen.subscribe((function(){var i=new u.PopoverShownEvent(e,n.popupRef);t.shown.emit(i)})),this._popupCloseSub||this.popupRef.popupClose.subscribe((function(){n.ngZone.run((function(n){var i=new u.PopoverHiddenEvent(e);t.hidden.emit(i)}))}))},i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"popover",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"showOn",null),t}();e.PopoverDirectivesBase=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(5),o=function(t){function e(e){var n=t.call(this)||this;return n.anchor=e,n}return i.__extends(e,t),e}(r.PreventableEvent);e.PopoverShowEvent=o;var s=function(t){function e(e,n){var i=t.call(this)||this;return i.anchor=e,i.popover=n,i}return i.__extends(e,t),e}(r.PreventableEvent);e.PopoverHideEvent=s;var u=function(t,e){this.anchor=t,this.popover=e};e.PopoverShownEvent=u;var c=function(t){this.anchor=t};e.PopoverHiddenEvent=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(6),u=function(){function t(t){this.ngZone=t,this._pointerOverPopup=new o.BehaviorSubject(null),this._pointerOverAnchor=new o.BehaviorSubject(null),this._focusInsidePopover=new o.BehaviorSubject(null),this._hidePopover=new o.Subject,this.subs=new o.Subscription,this.monitor()}return t.prototype.ngOnDestroy=function(){this.subs.unsubscribe()},Object.defineProperty(t.prototype,"isPopoverHovered",{get:function(){return this._pointerOverPopup.asObservable()},enumerable:!0,configurable:!0}),t.prototype.emitPopoverState=function(t){var e=this;this.ngZone.run((function(n){return e._pointerOverPopup.next(t)}))},Object.defineProperty(t.prototype,"isAnchorHovered",{get:function(){return this._pointerOverAnchor.asObservable()},enumerable:!0,configurable:!0}),t.prototype.emitAnchorState=function(t,e){var n=this;this._isOrigin=this.originAnchor===e,this.currentAnchor=e,t&&(this.originAnchor=e),this.ngZone.run((function(e){return n._pointerOverAnchor.next(t)}))},Object.defineProperty(t.prototype,"isFocusInsidePopover",{get:function(){return this._focusInsidePopover.asObservable()},enumerable:!0,configurable:!0}),t.prototype.emitFocusInsidePopover=function(t){var e=this;this.ngZone.run((function(n){return e._focusInsidePopover.next(t)})),this._focusInsidePopover.next(null)},Object.defineProperty(t.prototype,"hidePopover",{get:function(){return this._hidePopover.asObservable()},enumerable:!0,configurable:!0}),t.prototype.monitor=function(){var t=this;this.subs.add(o.combineLatest(this.isPopoverHovered,this.isAnchorHovered).pipe(s.auditTime(20)).subscribe((function(e){var n=e[0],i=e[1];t._hidePopover.next([n,i,t._isOrigin,t.currentAnchor])})))},t=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.NgZone])],t)}();e.PopoverService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(2),u=n(6),c=n(19),a=n(21),p=function(t){function e(e,n,i,r,s){var c=t.call(this,n,i,r)||this;return c.hostEl=e,c.ngZone=n,c.popupService=i,c.renderer=r,c.popoverService=s,c.mouseenterHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.mouseleaveHandler=function(){c.isPrevented(c.hostEl.nativeElement,!1)||c._hideSub||(c._hideSub=c.popoverService.hidePopover.subscribe((function(t){var e=t[0],n=t[1];e||n||c.hide()})))},c.focusHandler=function(){c.controlVisibility(c.hostEl.nativeElement,!0)},c.blurHandler=function(t){var e=t.domEvent;c.isPrevented(c.hostEl.nativeElement,!1)||(!!o.closest(e.relatedTarget,(function(t){return t.classList&&t.classList.contains("k-popover")}))||c.hide(),c._focusInsideSub||(c._focusInsideSub=c.popoverService.isFocusInsidePopover.pipe(u.filter((function(t){return null!==t}))).subscribe((function(t){t||c.hide()}))))},c._popoverService=c.popoverService,c}return i.__extends(e,t),e.prototype.show=function(){var t=this;this.popupRef||(this.ngZone.run((function(){t.openPopup(t.hostEl)})),this.popupRef.popupAnchorViewportLeave.pipe(u.take(1)).subscribe((function(){return t.hide()})))},e.prototype.toggle=function(){this.popupRef?this.hide():this.show()},e.prototype.subscribeToEvents=function(t){var e=this;this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[0].name,(function(){e.popoverService.emitAnchorState(!0,e.hostEl.nativeElement),t[0].handler()}))),this.subs.add(this.renderer.listen(this.hostEl.nativeElement,t[1].name,(function(n){e.popoverService.emitAnchorState(!1,null),t[1].handler({domEvent:n})})))},e.prototype.subscribeClick=function(){var t=this;this.disposeClickListener&&this.disposeClickListener(),this.disposeClickListener=this.renderer.listen(document,"click",(function(e){t.onClick(e)}))},e.prototype.onClick=function(t){var e=this,n=!!o.closest(t.target,(function(t){return t.classList&&t.classList.contains("k-popup")})),i=!!o.closest(t.target,(function(t){return t===e.hostEl.nativeElement}));n||this.popupRef&&i||(i?this.controlVisibility(this.hostEl.nativeElement,!0):this.controlVisibility(this.hostEl.nativeElement,!1))},e.prototype.controlVisibility=function(t,e){this.isPrevented(t,e)||(e?this.show():this.hide())},e=i.__decorate([r.Directive({selector:"[kendoPopoverAnchor]",exportAs:"kendoPopoverAnchor",providers:[a.PopoverService]}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,s.PopupService,r.Renderer2,a.PopoverService])],e)}(c.PopoverDirectivesBase);e.PopoverAnchorDirective=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(24),s=n(12),u=n(2),c=n(16),a=n(27),p=[s.TooltipDirective,c.TooltipContentComponent,a.LocalizedMessagesDirective],l=[u.PopupModule],h=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[p],entryComponents:[c.TooltipContentComponent],imports:[o.CommonModule].concat(l),exports:[p]})],t)}();e.TooltipModule=h},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(24),o=n(1),s=n(2),u=n(22),c=n(18),a=n(8),p=n(9),l=n(10),h=[n(11).PopoverActionsTemplateDirective,l.PopoverBodyTemplateDirective,p.PopoverTitleTemplateDirective,u.PopoverAnchorDirective,c.PopoverContainerDirective],f=function(){function t(){}return t=i.__decorate([o.NgModule({declarations:h.concat([a.PopoverComponent]),entryComponents:[a.PopoverComponent],exports:h.concat([a.PopoverComponent]),imports:[r.CommonModule,s.PopupModule]})],t)}();e.PopoverModule=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(12);e.TooltipDirective=i.TooltipDirective;var r=n(15);e.TooltipSettings=r.TooltipSettings,e.TOOLTIP_SETTINGS=r.TOOLTIP_SETTINGS;var o=n(8);e.PopoverComponent=o.PopoverComponent;var s=n(18);e.PopoverContainerDirective=s.PopoverContainerDirective;var u=n(22);e.PopoverAnchorDirective=u.PopoverAnchorDirective;var c=n(9);e.PopoverTitleTemplateDirective=c.PopoverTitleTemplateDirective;var a=n(10);e.PopoverBodyTemplateDirective=a.PopoverBodyTemplateDirective;var p=n(11);e.PopoverActionsTemplateDirective=p.PopoverActionsTemplateDirective;var l=n(20);e.PopoverShowEvent=l.PopoverShowEvent,e.PopoverShownEvent=l.PopoverShownEvent,e.PopoverHideEvent=l.PopoverHideEvent,e.PopoverHiddenEvent=l.PopoverHiddenEvent;var h=n(23);e.TooltipModule=h.TooltipModule;var f=n(25);e.PopoverModule=f.PopoverModule;var d=n(28);e.TooltipsModule=d.TooltipsModule},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),s=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,i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"closeTitle",void 0),e=n=i.__decorate([r.Directive({providers:[{provide:o.ComponentMessages,useExisting:r.forwardRef((function(){return n}))}],selector:"[kendoTooltipLocalizedMessages]"}),i.__metadata("design:paramtypes",[o.LocalizationService])],e)}(o.ComponentMessages);e.LocalizedMessagesDirective=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(23),s=n(25),u=function(){function t(){}return t=i.__decorate([r.NgModule({exports:[o.TooltipModule,s.PopoverModule]})],t)}();e.TooltipsModule=u}])}));