@progress/kendo-angular-treeview 5.4.3 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dist/cdn/js/kendo-angular-treeview.js +18 -18
  5. package/dist/cdn/main.js +1 -1
  6. package/dist/es/check.directive.js +30 -39
  7. package/dist/es/checkbox/checkbox.component.js +17 -1
  8. package/dist/es/drag-and-drop/drag-and-drop-utils.js +3 -3
  9. package/dist/es/drag-and-drop/drag-and-drop.directive.js +2 -2
  10. package/dist/es/expand.directive.js +40 -41
  11. package/dist/es/package-metadata.js +1 -1
  12. package/dist/es/selection/select.directive.js +22 -28
  13. package/dist/es/size.js +4 -0
  14. package/dist/es/treeview-group.component.js +7 -2
  15. package/dist/es/treeview-item-content.directive.js +2 -2
  16. package/dist/es/treeview-item.directive.js +1 -1
  17. package/dist/es/treeview.component.js +36 -4
  18. package/dist/es/utils.js +21 -11
  19. package/dist/es2015/check.directive.d.ts +8 -1
  20. package/dist/es2015/check.directive.js +30 -35
  21. package/dist/es2015/checkbox/checkbox.component.d.ts +6 -0
  22. package/dist/es2015/checkbox/checkbox.component.js +13 -1
  23. package/dist/es2015/drag-and-drop/drag-and-drop-utils.js +3 -3
  24. package/dist/es2015/drag-and-drop/drag-and-drop.directive.js +2 -2
  25. package/dist/es2015/expand.directive.d.ts +12 -3
  26. package/dist/es2015/expand.directive.js +39 -36
  27. package/dist/es2015/index.metadata.json +1 -1
  28. package/dist/es2015/package-metadata.js +1 -1
  29. package/dist/es2015/selection/select.directive.d.ts +11 -3
  30. package/dist/es2015/selection/select.directive.js +22 -24
  31. package/dist/es2015/size.d.ts +14 -0
  32. package/dist/es2015/size.js +4 -0
  33. package/dist/es2015/treeview-group.component.d.ts +2 -0
  34. package/dist/es2015/treeview-group.component.js +49 -35
  35. package/dist/es2015/treeview-item-content.directive.js +2 -2
  36. package/dist/es2015/treeview-item.directive.js +1 -1
  37. package/dist/es2015/treeview.component.d.ts +13 -0
  38. package/dist/es2015/treeview.component.js +46 -13
  39. package/dist/es2015/utils.d.ts +9 -4
  40. package/dist/es2015/utils.js +21 -11
  41. package/dist/fesm2015/index.js +224 -163
  42. package/dist/fesm5/index.js +177 -134
  43. package/dist/npm/check.directive.js +30 -39
  44. package/dist/npm/checkbox/checkbox.component.js +17 -1
  45. package/dist/npm/drag-and-drop/drag-and-drop-utils.js +3 -3
  46. package/dist/npm/drag-and-drop/drag-and-drop.directive.js +2 -2
  47. package/dist/npm/expand.directive.js +40 -41
  48. package/dist/npm/package-metadata.js +1 -1
  49. package/dist/npm/selection/select.directive.js +22 -28
  50. package/dist/npm/size.js +6 -0
  51. package/dist/npm/treeview-group.component.js +7 -2
  52. package/dist/npm/treeview-item-content.directive.js +2 -2
  53. package/dist/npm/treeview-item.directive.js +1 -1
  54. package/dist/npm/treeview.component.js +35 -3
  55. package/dist/npm/utils.js +21 -11
  56. package/dist/systemjs/kendo-angular-treeview.js +1 -1
  57. package/package.json +9 -8
@@ -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("@progress/kendo-angular-l10n"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations")):"function"==typeof define&&define.amd?define(["@angular/core","@progress/kendo-angular-l10n","@angular/common","rxjs","rxjs/operators","@angular/animations"],t):"object"==typeof exports?exports.KendoAngularTreeview=t(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/animations")):e.KendoAngularTreeview=t(e["@angular/core"],e["@progress/kendo-angular-l10n"],e["@angular/common"],e.rxjs,e["rxjs/operators"],e["@angular/animations"])}(window,(function(e,t,n,i,r,o){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=50)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return v})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return O})),n.d(t,"__makeTemplateObject",(function(){return j})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return w})),n.d(t,"__classPrivateFieldGet",(function(){return S})),n.d(t,"__classPrivateFieldSet",(function(){return k}));
5
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@angular/animations")):"function"==typeof define&&define.amd?define(["@angular/core","@progress/kendo-angular-l10n","rxjs","@angular/common","rxjs/operators","@angular/animations"],t):"object"==typeof exports?exports.KendoAngularTreeview=t(require("@angular/core"),require("@progress/kendo-angular-l10n"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("@angular/animations")):e.KendoAngularTreeview=t(e["@angular/core"],e["@progress/kendo-angular-l10n"],e.rxjs,e["@angular/common"],e["rxjs/operators"],e["@angular/animations"])}(window,(function(e,t,n,i,o,r){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=50)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return r})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return d})),n.d(t,"__generator",(function(){return u})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return b})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return v})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return O})),n.d(t,"__makeTemplateObject",(function(){return j})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return k})),n.d(t,"__classPrivateFieldGet",(function(){return w})),n.d(t,"__classPrivateFieldSet",(function(){return S}));
6
6
  /*! *****************************************************************************
7
7
  Copyright (c) Microsoft Corporation.
8
8
 
@@ -17,63 +17,63 @@ 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 i=function(e,t){return(i=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 r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function d(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=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],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function b(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}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={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(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 w(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function k(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(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return N})),n.d(t,"PreventableEvent",(function(){return U})),n.d(t,"DraggableDirective",(function(){return f})),n.d(t,"DraggableModule",(function(){return m})),n.d(t,"closestInScope",(function(){return g})),n.d(t,"closest",(function(){return b})),n.d(t,"contains",(function(){return y})),n.d(t,"findElement",(function(){return v})),n.d(t,"findFocusableChild",(function(){return w})),n.d(t,"findFocusable",(function(){return S})),n.d(t,"hasClasses",(function(){return x})),n.d(t,"isFocusableWithTabKey",(function(){return C})),n.d(t,"isFocusable",(function(){return O})),n.d(t,"isVisible",(function(){return j})),n.d(t,"matchesClasses",(function(){return E})),n.d(t,"matchesNodeName",(function(){return D})),n.d(t,"rtlScrollPosition",(function(){return P})),n.d(t,"EventsOutsideAngularDirective",(function(){return M})),n.d(t,"EventsModule",(function(){return A})),n.d(t,"ResizeSensorComponent",(function(){return L})),n.d(t,"ResizeBatchService",(function(){return H})),n.d(t,"ResizeCompatService",(function(){return F})),n.d(t,"ResizeObserverService",(function(){return z})),n.d(t,"ResizeSensorModule",(function(){return G})),n.d(t,"KendoInput",(function(){return Z})),n.d(t,"isDocumentAvailable",(function(){return l})),n.d(t,"isChanged",(function(){return u})),n.d(t,"anyChanged",(function(){return d})),n.d(t,"hasObservers",(function(){return p})),n.d(t,"guid",(function(){return h})),n.d(t,"Keys",(function(){return T}));var i=n(0),r=n(1),o=n(37),a=n(4),s=n(6),c=n(5),l=function(){return"undefined"!=typeof document},u=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},d=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return u(e,t,n)}))},p=function(e){return e&&e.observers.length>0},h=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},f=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new r.EventEmitter,this.kendoDrag=new r.EventEmitter,this.kendoRelease=new r.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){u("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;l()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new o.default({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(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone])],e)}(),m=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[f],exports:[f],imports:[a.CommonModule]})],e)}(),g=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},b=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},y=function(e,t,n){if(void 0===n&&(n=!1),!b(t,(function(t){return t===e})))return!1;var i=b(t,(function(e){return e===t}));return i&&(n||i!==e)},v=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=v(e,t);if(i)return i}e=e.nextSibling}}},_=/^(?:a|input|select|option|textarea|button|object)$/i,O=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&_.test(t)||n},j=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},C=function(e,t){if(void 0===t&&(t=!0),!O(e))return!1;var n=e.getAttribute("tabIndex");return(!t||j(e))&&"-1"!==n},w=function(e,t){return void 0===t&&(t=!0),v(e,(function(e){return C(e,t)}),!1)},S=function(e,t){return void 0===t&&(t=!0),v(e,(function(e){return C(e,t)}))},k=function(e){return String(e).trim().split(" ")},x=function(e,t){var n=k(t);return Boolean(k(e.className).find((function(e){return n.indexOf(e)>=0})))},E=function(e){return function(t){return x(t,e)}},I={},D=function(e){return I[e]||(I[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),I[e]};function P(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var T,M=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(i.__decorate)([Object(r.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2])],e)}(),A=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[M],exports:[M]})],e)}(),N=function(){function e(e){this.resizeBatchService=e,this.resize=new r.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(){l()&&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}(),V=function(e){var t=document.createElement("div");return t.style.cssText=e,t},B="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",F=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.element=n,r.ngZone=i,r}return Object(i.__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=B,e.setAttribute("dir","ltr"),this.expand=V(B),this.expandChild=V("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=V(B);var t=V("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(c.merge)(Object(c.fromEvent)(e.shrink,"scroll"),Object(c.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(N),R="undefined"!=typeof ResizeObserver,z=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.element=n,r.ngZone=i,r}return Object(i.__extends)(t,e),t.supported=function(){return R},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}(N),H=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(c.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,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,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(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[r.NgZone])],e)}(),L=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new r.EventEmitter;var o=z.supported()?z:F;this.resizeService=new o(e,t,n);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(s.auditTime)(a)).subscribe((function(){i.resizeService.acceptedSize||i.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(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"resize",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[H,r.ElementRef,r.NgZone])],e)}(),K=[L],G=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[K],exports:[K],providers:[H]})],e)}(),Z=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"}(T||(T={}));var U=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=i},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(9),o=/^(?:a|input|select|option|textarea|button|object)$/i;t.match=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},t.closestWithMatch=function(e,n){if(!document.documentElement.contains(e))return null;for(var i=e;null!==i&&1===i.nodeType;){if(t.match(i,n))return i;i=i.parentElement||i.parentNode}return null},t.noop=function(){},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isBoolean=function(e){return"boolean"==typeof e},t.closestNode=function(e){return i.isDocumentAvailable()?e.closest?e.closest("li.k-treeview-item"):t.closestWithMatch(e,"li.k-treeview-item"):null},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,r=null!==n&&!i;return o.test(t)&&(r=!e.disabled&&!i),r}return!1},t.isContent=function(e){if(!i.isDocumentAvailable())return null;for(var n=e;n&&!t.match(n,".k-in:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)n=n.parentNode;return n?t.match(n,".k-in:not(.k-treeview-load-more-button)"):void 0},t.getContentElement=function(e){if(!t.isPresent(e))return null;var n=".k-in:not(.k-treeview-load-more-button)";return t.match(e,n)?e:e.querySelector(n)},t.isLoadMoreButton=function(e){return t.isPresent(t.closestWithMatch(e,".k-in.k-treeview-load-more-button"))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.hasParent=function(e,n){return Boolean(t.closest(e,(function(e){return e===n})))},t.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},t.hasActiveNode=function(e,n){var i=n||t.closestNode(e);return i&&(i===e||e.tabIndex<0)},t.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},t.nodeIndex=function(e){return(e||{}).index},t.dataItemsEqual=function(e,n){return!t.isPresent(e)&&!t.isPresent(n)||t.isPresent(e)&&t.isPresent(n)&&e.item.dataItem===n.item.dataItem},t.getDataItem=function(e){return t.isPresent(e)?e.item.dataItem:e},t.isArrayWithAtLeastOneItem=function(e){return e&&Array.isArray(e)&&0!==e.length},t.filterTree=function(e,n,i,r,o){var c=i.operator,u=i.ignoreCase,d=i.mode;void 0===o&&(o=0);var p="string"==typeof r?r:r[o];e.forEach((function(e){var i=("string"==typeof c?l(p,c,u):c)(e.dataItem,n);e.isMatch=i,e.visible=i,e.containsMatches=!1,i&&a(e.parent),e.children&&e.children.length>0&&("strict"!==d&&i?s(e.children):t.filterTree(e.children,n,{operator:c,ignoreCase:u,mode:d},r,o+1))}))};var a=function(e){t.isPresent(e)&&(e.containsMatches=!0,e.visible=!0,t.isPresent(e.parent)&&!e.parent.containsMatches&&a(e.parent))},s=function(e){e.forEach((function(e){e.visible=!0,e.children&&s(e.children)}))},c={contains:function(e,t){return e.indexOf(t)>=0},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return e.indexOf(t,e.length-t.length)>=0},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},l=function(e,t,n){return function(i,o){return function(e,t){return function(n,i){return t?e(n.toLowerCase(),i.toLowerCase()):e(n,i)}}(c[t],n)(r.getter(e)(i),o)}};t.buildTreeIndex=function(e,n){return[e,n].filter((function(e){return t.isPresent(e)})).join("_")},t.buildTreeItem=function(e,n,i){return t.isPresent(e)?{dataItem:e,index:t.buildTreeIndex(i,n)}:null},t.fetchLoadedDescendants=function(e,n){if(!t.isPresent(e)||0===e.children.length)return[];var i=e.children;return t.isPresent(n)&&(i=i.filter(n)),i.forEach((function(e){return i=i.concat(t.fetchLoadedDescendants(e,n))})),i},t.sameValues=function(e,t){if(e.length!==t.length)return!1;var n=new Set(t);return e.every((function(e){return n.has(e)}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return l})),n.d(t,"validatePackage",(function(){return u}));var i,r,o=["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"];i=o,r=131,function(e){for(;--e;)i.push(i.shift())}(++r);var a=function(e,t){var n=o[e-=0];if(void 0===a.eVebMg){a.JsjtEd=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),r="",o=0,a=0;n=i.charAt(a++);~n&&(t=o%4?64*t+n:n,o++%4)?r+=String.fromCharCode(255&t>>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return r}(e),n=[],i=0,r=t.length;i<r;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)},a.rqrXoU={},a.eVebMg=!0}var i=a.rqrXoU[e];return void 0===i?(n=a.JsjtEd(n),a.rqrXoU[e]=n):n=i,n},s={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 l(e){}function u(e){if(c[a("0x14")](e[a("0x4")])){if(a("0x35")==a("0x35"))return c[a("0x36")](e[a("0x4")])}var t,n=e[a("0x1")]?" v"+e[a("0x1")]:"",i=e[a("0x4")]+n,r=JSON[a("0x9")](s[a("0x34")]),o=!r[a("0x26")]&&!r[a("0x38")],l=r[a("0x26")]&&typeof KendoLicensing===a("0x2b"),u=function(e,t){var n=e[a("0x8")];if(!n||!n[a("0x2d")]){if(a("0x11")==a("0x11"))return null}var i=new Set(t);return n[a("0x2a")]((function(e){if(a("0xa")!==a("0x18"))return i[a("0x14")](e[a("0x39")])}))}(r,e[a("0x2")]);if(o||l)if(a("0x29")!=a("0x29")){}else t={type:0,packageName:i,docsUrl:e[a("0x27")]};else if(a("0xf")===a("0x24")){}else if(u){if(a("0x12")!=a("0x12")){}else if(u[a("0x37")]<e[a("0x1c")])if(a("0x21")===a("0x32")){}else t={type:2,packageName:i,publishDate:d(e[a("0x1c")]),expiryDate:d(u[a("0x37")]),docsUrl:e[a("0x27")]}}else if(a("0x6")!=a("0x6")){}else t={type:1,packageName:i,docsUrl:e[a("0x27")]};if(t&&typeof console===a("0x30"))if(a("0x5")===a("0x3")){}else{var p=a("0x1b")+e[a("0xe")],h=typeof console[a("0x7")]===a("0x33");if(h)if(a("0xc")!=a("0xc")){}else console[a("0x7")](p);else if(a("0x17")!=a("0x17")){}else console[a("0x1e")](p);if(console[a("0x1e")](function(e){var t=a("0x28")+e[a("0x16")]+"\n";if(2===e[a("0x3a")])if(a("0x20")!=a("0x20")){}else t+=a("0x25")+e[a("0x15")][a("0x2c")]()+a("0xb")+e[a("0x1c")][a("0x2c")]()+".\n";else if(0===e[a("0x3a")])if(a("0x13")!==a("0x10"))t+=a("0xd");else{}else if(1===e[a("0x3a")])if(a("0x2e")===a("0x23")){}else t+=a("0x1d");return t+=a("0x31")+e[a("0x1a")]+a("0x22")}(t)),h)if(a("0x1f")!==a("0x19"))console[a("0x2f")]();else{}}var f=!t;return c[a("0x0")](e[a("0x4")],f),f}function d(e){return new Date(1e3*e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobileOS",(function(){return l})),n.d(t,"detectDesktopBrowser",(function(){return u})),n.d(t,"browser",(function(){return p})),n.d(t,"mobileOS",(function(){return h})),n.d(t,"touch",(function(){return f})),n.d(t,"msPointers",(function(){return m})),n.d(t,"pointers",(function(){return g})),n.d(t,"touchEnabled",(function(){return b})),n.d(t,"getter",(function(){return O})),n.d(t,"setter",(function(){return w}));var i=function(){return"undefined"!=typeof window},r={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},c=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},l=function(e){var t,n=[];for(var i in r)if(r.hasOwnProperty(i)){if(!(n=e.match(r[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=c(e,s,"default"),a.name=c(i,o),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null},u=function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},d=i()&&window.navigator?window.navigator.userAgent:null,p=d?u(d):null,h=d?l(d):null,f=i()&&"ontouchstart"in window,m=p&&!p.chrome&&window.MSPointerEvent,g=p&&!p.chrome&&window.PointerEvent,b=h&&(f||m||g),y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function v(e){var t=[];return e.replace(y,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),t}var _={};function O(e){if(_[e])return _[e];var t=v(e);return _[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},_[e]}_[void 0]=function(e){return e};var j={undefined:function(e){return e}},C=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function w(e){if(j[e])return j[e];var t=v(e);return j[e]=function(e,n,i){for(var r=e,o=t.length-1,a=0;a<o&&r;a++)r=r[t[a]]=r[t[a]]||C(t[a+1],i);r[t[o]]=n},j[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(3),s=n(5),c=n(8),l=n(51),u=n(38),d=n(23),p=n(14),h=n(11),f=n(24),m=n(15),g=n(39),b=n(16),y=n(17),v=n(18),_=n(25),O=n(26),j=n(27),C=n(7),w=[p.ExpandStateService,h.IndexBuilderService,j.TreeViewLookupService,f.LoadingNotificationService,g.NodeChildrenService,m.NavigationService,O.SelectionService,u.DataChangeNotificationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.treeview"},{provide:v.DataBoundComponent,useExisting:r.forwardRef((function(){return S}))},{provide:_.ExpandableComponent,useExisting:r.forwardRef((function(){return S}))}],S=function(){function e(e,t,n,i,o,a,u,p,h,f,m){var g=this;this.element=e,this.changeDetectorRef=t,this.expandService=n,this.navigationService=i,this.nodeChildrenService=o,this.selectionService=a,this.treeViewLookupService=u,this.ngZone=p,this.renderer=h,this.dataChangeNotification=f,this.localization=m,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return g.data},this.childrenLoaded=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.expand=new r.EventEmitter,this.collapse=new r.EventEmitter,this.nodeDragStart=new r.EventEmitter,this.nodeDrag=new r.EventEmitter,this.filterStateChange=new r.EventEmitter,this.nodeDrop=new r.EventEmitter,this.nodeDragEnd=new r.EventEmitter,this.addItem=new r.EventEmitter,this.removeItem=new r.EventEmitter,this.checkedChange=new r.EventEmitter,this.selectionChange=new r.EventEmitter,this.filterChange=new r.EventEmitter,this.nodeClick=new r.EventEmitter,this.nodeDblClick=new r.EventEmitter,this.trackBy=d.trackBy,this.isDisabled=d.isDisabled,this.isVisible=d.isVisible,this.navigable=!0,this.children=function(){return s.of([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new s.BehaviorSubject([]),this._animate=!0,this.subscriptions=new s.Subscription,this.domSubscriptions=[],c.validatePackage(l.packageMetadata)}return Object.defineProperty(e.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeTemplateRef",{get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonTemplateRef",{get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||d.hasChildren},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this._isChecked||d.isChecked},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||d.isExpanded},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||d.isSelected},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),o.anyChanged(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(e){return e()}))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(t){return e.childrenLoaded.emit(t)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(t){var n=t.index,i=t.dataItem;return t.expand?e.expand.emit({index:n,dataItem:i}):e.collapse.emit({index:n,dataItem:i})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(t){o.hasObservers(e.selectionChange)&&e.ngZone.run((function(){e.selectionChange.emit(t)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){e.attachDomHandlers()}))},e.prototype.blur=function(){if(o.isDocumentAvailable()){var e=C.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){var t=e||C.nodeIndex(this.navigationService.focusableItem);this.navigationService.activateIndex(t);var n=C.focusableNode(this.element);n&&n.focus()},e.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},e.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},e.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},e.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},e.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},e.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},e.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},e.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},e.prototype.focusHandler=function(e){var t,n=this;C.match(e.target,".k-treeview-item")?t=e.target:C.isFocusable(e.target)||(t=C.closestNode(e.target)),t&&(this.navigationService.activateIndex(C.nodeId(e.target)),!this.isActive&&o.hasObservers(this.onFocus)&&this.ngZone.run((function(){n.onFocus.emit()})),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!C.match(e.target,".k-treeview-item")||e.relatedTarget&&C.match(e.relatedTarget,".k-treeview-item")&&C.hasParent(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,o.hasObservers(this.onBlur)&&this.ngZone.run((function(){t.onBlur.emit()})))},e.prototype.clickHandler=function(e){var t=this,n=e.target;if(("contextmenu"!==e.type||o.hasObservers(this.nodeClick))&&("click"!==e.type||o.hasObservers(this.nodeClick)||o.hasObservers(this.selectionChange)||C.isLoadMoreButton(n))&&("dblclick"!==e.type||o.hasObservers(this.nodeDblClick))&&!C.isFocusable(n)&&(C.isContent(n)||C.isLoadMoreButton(n))&&C.hasParent(n,this.element.nativeElement)){var i=C.nodeId(C.closestNode(n));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run((function(){var n=t.treeViewLookupService.itemLookup(i);if("click"===e.type){if(t.navigationService.model.findNode(i).loadMoreButton)return void t.navigationService.notifyLoadMore(i);t.navigationService.selectIndex(i)}("dblclick"===e.type?t.nodeDblClick:t.nodeClick).emit({item:n.item,originalEvent:e,type:e.type})}))}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run((function(){t.navigationService.move(e)}))},e.prototype.verifyLoadMoreService=function(){if(r.isDevMode()&&!C.isPresent(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},e.prototype.registerLookupItems=function(e,t){var n=this;if(void 0===t&&(t=null),C.isPresent(e)&&0!==e.length){var i=C.nodeIndex(t),r=e.map((function(e,t){return C.buildTreeItem(e,t,i)}));C.isPresent(t)&&this.treeViewLookupService.registerChildren(i,r),r.forEach((function(e){n.treeViewLookupService.registerItem(e,t),n.hasChildren(e.dataItem)&&n.children(e.dataItem).subscribe((function(t){return n.registerLookupItems(t,e)}))}))}},i.__decorate([r.HostBinding("class.k-widget"),r.HostBinding("class.k-treeview"),i.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"direction",null),i.__decorate([r.ViewChild("assetsContainer",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],e.prototype,"assetsContainer",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"filterInputPlaceholder",void 0),i.__decorate([r.Input(),r.HostBinding("@.disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"childrenLoaded",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"expand",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"collapse",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeDragStart",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeDrag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"filterStateChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeDrop",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeDragEnd",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"addItem",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"removeItem",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"checkedChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"nodeDblClick",void 0),i.__decorate([r.ContentChild(b.NodeTemplateDirective,{static:!1}),i.__metadata("design:type",b.NodeTemplateDirective)],e.prototype,"nodeTemplateQuery",void 0),i.__decorate([r.Input("nodeTemplate"),i.__metadata("design:type",b.NodeTemplateDirective),i.__metadata("design:paramtypes",[b.NodeTemplateDirective])],e.prototype,"nodeTemplateRef",null),i.__decorate([r.ContentChild(y.LoadMoreButtonTemplateDirective,{static:!1}),i.__metadata("design:type",y.LoadMoreButtonTemplateDirective)],e.prototype,"loadMoreButtonTemplateQuery",void 0),i.__decorate([r.Input("loadMoreButtonTemplate"),i.__metadata("design:type",y.LoadMoreButtonTemplateDirective),i.__metadata("design:paramtypes",[y.LoadMoreButtonTemplateDirective])],e.prototype,"loadMoreButtonTemplateRef",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:w,selector:"kendo-treeview",template:'\n <kendo-textbox\n #filterInput\n *ngIf="filterable"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef?.templateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n [loadMoreService]="loadMoreService"\n [trackBy]="trackBy"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.ChangeDetectorRef,p.ExpandStateService,m.NavigationService,g.NodeChildrenService,O.SelectionService,j.TreeViewLookupService,r.NgZone,r.Renderer2,u.DataChangeNotificationService,a.LocalizationService])],e)}();t.TreeViewComponent=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=i.__decorate([r.Injectable()],e)}();t.IndexBuilderService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(40),t),i.__exportStar(n(41),t),i.__exportStar(n(57),t),i.__exportStar(n(33),t),i.__exportStar(n(42),t),i.__exportStar(n(43),t),i.__exportStar(n(44),t)},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=function(){function e(){this.changes=new o.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=i.__decorate([r.Injectable()],e)}();t.ExpandStateService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(3),s=n(5),c=n(52),l=n(7),u=function(){function e(e){var t,n=this;this.localization=e,this.expands=new s.Subject,this.moves=new s.Subject,this.checks=new s.Subject,this.selects=new s.Subject,this.loadMore=new s.Subject,this.navigable=!0,this.actions=((t={})[o.Keys.ArrowUp]=function(){return n.activate(n.model.findVisiblePrev(n.focusableItem))},t[o.Keys.ArrowDown]=function(){return n.activate(n.model.findVisibleNext(n.focusableItem))},t[o.Keys.ArrowLeft]=function(){return!n.isLoadMoreButton&&n.expand({expand:n.localization.rtl,intercept:n.localization.rtl?n.moveToFirstVisibleChild:n.moveToParent})},t[o.Keys.ArrowRight]=function(){return!n.isLoadMoreButton&&n.expand({expand:!n.localization.rtl,intercept:n.localization.rtl?n.moveToParent:n.moveToFirstVisibleChild})},t[o.Keys.Home]=function(){return n.activate(n.model.firstVisibleNode())},t[o.Keys.End]=function(){return n.activate(n.model.lastVisibleNode())},t[o.Keys.Enter]=function(){return n.handleEnter()},t[o.Keys.Space]=function(){return n.handleSpace()},t),this.isFocused=!1,this._model=new c.NavigationModel,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return l.nodeIndex(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(l.nodeIndex(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},e.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},e.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},e.prototype.activateClosest=function(e){e&&l.nodeIndex(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},e.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},e.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},e.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},e.prototype.notifyLoadMore=function(e){l.isPresent(e)&&this.loadMore.next(e)},e.prototype.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return l.nodeIndex(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t,n,i,r){void 0===i&&(i=!1),void 0===r&&(r=!0);var o=this.model.findNode(t);l.isPresent(o)&&(this.model.unregisterItem(o.id,o.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,n,i,r)},e.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},e.prototype.move=function(e){if(this.navigable){var t=this.actions[e.keyCode];t&&(t(),e.preventDefault())}},e.prototype.expand=function(e){var t=e.expand,n=e.intercept,i=l.nodeIndex(this.activeItem);i&&!n(i)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(l.nodeIndex(this.activeItem))),!0)},e.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(l.nodeIndex(this.activeItem))),!0)},e.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},e.prototype.notifyMove=function(){this.moves.next(this.navigationState())},e.prototype.navigationState=function(e){return void 0===e&&(e=!1),{expand:e,index:this.activeIndex,isFocused:this.isFocused}},e.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},e.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.NavigationService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTreeViewNodeTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.NodeTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.LoadMoreButtonTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(){}return e=i.__decorate([r.Injectable()],e)}();t.DataBoundComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r,o,a=n(2),s=n(7),c=n(12),l=(i=function(){if(!a.isDocumentAvailable()||!s.isPresent(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},o=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o||(r=i.apply(void 0,e),o=!0),r});t.getContainerOffset=function(e){if(!e||!l())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){var n=t.getBoundingClientRect();return{left:n.left-t.scrollLeft,top:n.top-t.scrollTop}}return{left:0,top:0}},t.getDropAction=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return c.DropAction.Invalid;switch(e){case c.DropPosition.Over:return c.DropAction.Add;case c.DropPosition.Before:return s.isPresent(s.closestNode(t).previousElementSibling)?c.DropAction.InsertMiddle:c.DropAction.InsertTop;case c.DropPosition.After:return s.isPresent(s.closestNode(t).nextElementSibling)?c.DropAction.InsertMiddle:c.DropAction.InsertBottom;default:return c.DropAction.Invalid}},t.getDropPosition=function(e,t,n,i,r){if(s.isPresent(e)&&s.isPresent(t)&&s.isPresent(i)&&s.isPresent(r)){var o=s.closestWithMatch(t,".k-mid");if(s.isPresent(o)){var a=s.getContentElement(o),l=s.hasParent(o,s.closestNode(e));if(s.isPresent(a)&&a!==e&&!l){var u=a.getBoundingClientRect(),d=u.height/(s.isContent(t)?4:2),p=n-r.top,h=u.top-r.top;return p<h+d?c.DropPosition.Before:p>=h+u.height-d?c.DropPosition.After:c.DropPosition.Over}}}},t.treeItemFromEventTarget=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return null;var n=s.closestNode(t),i=s.nodeId(n),r=e.itemLookup(i);return s.isPresent(r)&&s.isPresent(r.item.dataItem)?r:null},t.collapseEmptyParent=function(e,t,n){s.isPresent(e)&&0===t.length&&n.isExpanded(e.item.dataItem,e.item.index)&&n.collapseNode(e.item.dataItem,e.item.index)},t.expandDropTarget=function(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)},t.getDropTarget=function(e){return a.isDocumentAvailable()&&s.isPresent(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target},t.updateMovedItemIndex=function(e,t){var n=e.split("_"),i=t.split("_");if(n.length<i.length)return e;var r=i.length-1,o=i.slice(0,r).join("_"),a=n.slice(0,r).join("_"),s=i.length-1,c=Number(i[s]),l=Number(n[s]);return o===a&&l>c?(n[s]=String(l-1),n.join("_")):e};var u=new RegExp("(auto|scroll)");t.getScrollableContainer=function(e){for(;s.isPresent(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,n=u.test(getComputedStyle(e).overflowY);if(t&&n)return e;e=e.parentNode}return e};var d=function(e){return Math.floor(e.scrollTop)<=0},p=function(e){return Math.ceil(e.scrollTop)>=e.scrollHeight-e.clientHeight};t.scrollElementBy=function(e,t,n){if(s.isPresent(e)&&a.isDocumentAvailable())for(var i=e.scrollTop,r=t,o=0;i===e.scrollTop&&(n!==c.ScrollDirection.Up||!d(e))&&(n!==c.ScrollDirection.Down||!p(e))&&o<20;)e.scrollTop+=r*n,r+=1,o+=1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(37),s=n(58),c=n(59),l=n(21),u=n(22),d=n(19),p=n(7),h=n(10),f=n(12),m={enabled:!0,step:1,interval:1},g=function(){function e(e,t,n,i,r){this.element=e,this.zone=t,this.treeview=n,this.dragClueService=i,this.dropHintService=r,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}return Object.defineProperty(e.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},m,e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},e.prototype.ngOnDestroy=function(){this.draggable.destroy()},e.prototype.handlePress=function(e){var t=e.originalEvent;p.isContent(t.target)&&(this.draggedItem=p.closestWithMatch(t.target,".k-in"),this.pendingDragStartEvent=t)},e.prototype.handleDrag=function(e){var t=this,n=e.originalEvent,i=e.clientX,r=e.clientY;if(this.shouldInitiateDragStart({clientX:i,clientY:r})&&this.initiateDragStart(),p.isPresent(this.draggedItem)&&!p.isPresent(this.pendingDragStartEvent)){var a=d.getDropTarget(n);o.hasObservers(this.treeview.nodeDrag)&&this.zone.run((function(){return t.notifyDrag(n,a)}));var s=this.getTargetTreeView(a),c=d.getDropPosition(this.draggedItem,a,r,s,this.containerOffset),l=p.closestWithMatch(a,".k-mid"),u=d.getDropAction(c,a),h=d.treeItemFromEventTarget(this.treeview,this.draggedItem),f=d.treeItemFromEventTarget(s,a);this.updateDropHintState(c,l,u,h,f),this.updateDragClueState(u,i,r,h,f),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}},e.prototype.handleRelease=function(e){var t=this,n=e.originalEvent,i=e.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!p.isPresent(this.draggedItem)||p.isPresent(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var r=d.getDropTarget(n),a=this.treeview,s=this.getTargetTreeView(r),c=d.getDropPosition(this.draggedItem,r,i,this.getTargetTreeView(r),this.containerOffset),l=d.treeItemFromEventTarget(a,this.draggedItem),u=d.treeItemFromEventTarget(s,r);p.isPresent(u)&&p.isPresent(c)?this.zone.run((function(){return t.notifyDrop({sourceItem:l,destinationItem:u,dropPosition:c,sourceTree:a,destinationTree:s},n)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),o.hasObservers(this.treeview.nodeDragEnd)&&this.zone.run((function(){return t.notifyDragEnd({sourceItem:l,destinationItem:u,originalEvent:n})})),this.dropHintService.hide(),this.draggedItem=null},e.prototype.updateDropHintState=function(e,t,n,i,r){if(p.isPresent(t)&&e!==f.DropPosition.Over&&p.isPresent(e)){var o=t.getBoundingClientRect(),a=e===f.DropPosition.Before?o.top:o.top+o.height;this.dropHintService.updateDropHintData(n,i,r),this.dropHintService.move(o.left-this.containerOffset.left,a-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},e.prototype.updateDragClueState=function(e,t,n,i,r){this.dragClueService.move(t-this.containerOffset.left,n-this.containerOffset.top),this.dragClueService.updateDragClueData(e,i,r),this.dragClueService.show()},e.prototype.initalizeDraggable=function(){var e=this;this.draggable=new a.default({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))},e.prototype.notifyDragStart=function(e,t){var n=d.treeItemFromEventTarget(this.treeview,t),i=new f.TreeItemDragStartEvent({sourceItem:n,originalEvent:e});return this.treeview.nodeDragStart.emit(i),i},e.prototype.notifyDrag=function(e,t){var n={sourceItem:d.treeItemFromEventTarget(this.treeview,this.draggedItem),destinationItem:d.treeItemFromEventTarget(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(n)},e.prototype.notifyDrop=function(e,t){var n=new f.TreeItemDropEvent(e,t);e.destinationTree.nodeDrop.emit(n),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!n.isDefaultPrevented()&&n.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):n.isDefaultPrevented()?this.dragClueService.hide():n.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},e.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},e.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,n=p.closestWithMatch(e,t);return[this.treeview].concat(this.dropZoneTreeViews).find((function(e){return p.isPresent(e)&&e.element.nativeElement===n}))},e.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.animate=!0}))})))},e.prototype.shouldInitiateDragStart=function(e){return!!p.isPresent(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},e.prototype.initiateDragStart=function(){var e=this;if(o.hasObservers(this.treeview.nodeDragStart)&&this.zone.run((function(){return e.notifyDragStart(e.pendingDragStartEvent,d.getDropTarget(e.pendingDragStartEvent))})).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=d.getContainerOffset(this.draggedItem),this.pendingDragStartEvent=null},i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"allowCopy",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"dropZoneTreeViews",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"startDragAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"autoScroll",void 0),i.__decorate([r.ContentChild(l.DragClueTemplateDirective,{static:!1}),i.__metadata("design:type",l.DragClueTemplateDirective)],e.prototype,"dragClueTemplate",void 0),i.__decorate([r.ContentChild(u.DropHintTemplateDirective,{static:!1}),i.__metadata("design:type",u.DropHintTemplateDirective)],e.prototype,"dropHintTemplate",void 0),i.__decorate([r.HostBinding("style.user-select"),r.HostBinding("style.-ms-user-select"),r.HostBinding("style.-moz-user-select"),r.HostBinding("style.-webkit-user-select"),i.__metadata("design:type",String)],e.prototype,"userSelectStyle",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewDragAndDrop]",providers:[s.DragClueService,c.DropHintService]}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,h.TreeViewComponent,s.DragClueService,c.DropHintService])],e)}();t.DragAndDropDirective=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTreeViewDragClueTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.DragClueTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.templateRef=e}return e=i.__decorate([r.Directive({selector:"[kendoTreeViewDropHintTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],e)}();t.DropHintTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=function(){return!1},t.isChecked=function(){return"none"},t.isDisabled=function(){return!1},t.isExpanded=function(){return!0},t.isSelected=function(){return!1},t.isVisible=function(){return!0},t.trackBy=function(e,t){return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=function(){function e(){this.changes=new o.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=i.__decorate([r.Injectable()],e)}();t.LoadingNotificationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(){}return e=i.__decorate([r.Injectable()],e)}();t.ExpandableComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=function(){function e(){this.changes=new o.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=i.__decorate([r.Injectable()],e)}();t.SelectionService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),a=/\d+$/,s=function(){function e(){this.map=new Map}return e.prototype.reset=function(){this.map.clear()},e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(o.nodeIndex(t))};this.map.set(e.index,n)},e.prototype.registerChildren=function(e,t){var n=this.item(e);n&&(n.children=t)},e.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter((function(e){return e.dataItem!==t}))))},e.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},e.prototype.itemLookup=function(e){var t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null},e.prototype.hasItem=function(e){return this.map.has(e)},e.prototype.item=function(e){return this.map.get(e)||null},e.prototype.addToParent=function(e,t){if(t){var n=this.item(t.index),i=parseInt(a.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(i,0,e)}},e.prototype.mapChildren=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){var n=t.item(e.index),i=n.item,r=n.parent,o=n.children;return{children:t.mapChildren(o),item:i,parent:r}}))},e=i.__decorate([r.Injectable()],e)}();t.TreeViewLookupService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),a=n(7),s=n(5),c=n(6),l=function(){function e(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new r.EventEmitter,this.subscriptions=new s.Subscription,this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this._checkedKeys=[],this.subscriptions.add(this.treeView.checkedChange.subscribe((function(e){return n.check(e)})));var i=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(c.filter((function(){return n.options.checkChildren&&n.treeView.loadOnDemand})),c.tap((function(e){return i.push(e)})),c.switchMap((function(){return n.zone.onStable.pipe(c.take(1))}))).subscribe((function(){return n.addCheckedItemsChildren(i)}))),this.treeView.isChecked=this.isItemChecked.bind(this)}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkedKeys",{get:function(){return this._checkedKeys},set:function(e){this._checkedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!a.isPresent(this.checkable)||"string"==typeof this.checkable)return e;var t=a.isBoolean(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick())},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.isItemChecked=function(e,t){return this.checkKey?this.checkedKeys.indexOf(this.itemKey({dataItem:e,index:t}))>-1?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t=this.checkedKeys.filter(function(e){return function(t){return e===t||!!t.split&&t.split("_").reduce((function(t,n){var i=t.key,r=t.result;return e===(i+=n)||r?{result:!0}:{key:i+="_",result:!1}}),{key:"",result:!1}).result}}(e));if(function(e,t){return e.filter((function(e){return e===t})).length>0}(t,e))return"checked";var n=this.options,i=n.mode,r=n.checkParents;return"multiple"===i&&r&&t.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return a.isPresent(this.checkKey)?"string"==typeof this.checkKey&&a.isPresent(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,n=t.enabled,i=t.mode,r=this.checkActions[i]||a.noop;n&&r(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item);this.checkedKeys=this.checkedKeys[0]!==t?[t]:[],this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(t){if("click"===t.type){var n=e.treeView.itemLookup(t.item.index);e.check(n)}})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(a.isPresent(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var n=this.itemKey(e.item);if(a.isPresent(n)){var i=new Set(this.checkedKeys),r=[n];if(this.options.checkChildren){var o=a.fetchLoadedDescendants(e,(function(e){var n=e.item;return t.treeView.isVisible(n.dataItem,n.index)&&!t.treeView.isDisabled(n.dataItem,n.index)})).map((function(e){var n=e.item;return t.itemKey(n)}));r.push.apply(r,o)}var s=!i.has(n);r.forEach((function(e){s?i.add(e):i.delete(e)})),this.checkedKeys=Array.from(i)}}},e.prototype.checkParents=function(e){var t=this;if(a.isPresent(e)){for(var n=new Set(this.checkedKeys),i=e;i;){var r=this.itemKey(i.item);i.children.every((function(e){return n.has(t.itemKey(e))}))?n.add(r):n.delete(r),i=i.parent}this.checkedKeys=Array.from(n)}},e.prototype.notify=function(){this.checkedKeysChange.emit(this.checkedKeys.slice())},e.prototype.addCheckedItemsChildren=function(e){var t=this;if(a.isPresent(e)&&0!==e.length){var n=this.checkedKeys.length,i=new Set(this.checkedKeys);e.forEach((function(e){var n=t.itemKey(e.item);i.has(n)&&e.children.forEach((function(n){t.treeView.isDisabled(e.item.dataItem,e.item.index)||t.treeView.isDisabled(n.dataItem,n.index)||i.add(t.itemKey(n))}))})),n!==i.size&&(this.checkedKeys=Array.from(i),this.zone.run((function(){return t.notify()})))}},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([r.Input("checkBy"),i.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"checkedKeys",null),i.__decorate([r.Input("kendoTreeViewCheckable"),i.__metadata("design:type",Object)],e.prototype,"checkable",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewCheckable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.NgZone])],e)}();t.CheckDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),a=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),i.__decorate([r.Input("kendoTreeViewDisable"),i.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewDisable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.ChangeDetectorRef])],e)}();t.DisableDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(25),a=n(5),s=n(6),c=n(7),l={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},u=function(){function e(e){var t=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new r.EventEmitter,this.subscriptions=new a.Subscription,this._expandedKeys=[],this.originalExpandedKeys=[],this.isFiltered=!1,this.updateExpandedNodes=function(e,n,i){(n.containsMatches||n.isMatch&&i&&c.isArrayWithAtLeastOneItem(n.children))&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),c.isArrayWithAtLeastOneItem(n.children)&&n.children.forEach((function(n){t.updateExpandedNodes(e,n,i)}))},this.getEveryExpandKey=function(e,n){c.isArrayWithAtLeastOneItem(n.children)&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),c.isArrayWithAtLeastOneItem(n.children)&&n.children.forEach((function(n){t.getEveryExpandKey(e,n)}))},this.subscriptions.add(a.merge(this.component.expand.pipe(s.map((function(e){return i.__assign({expand:!0},e)}))),this.component.collapse.pipe(s.map((function(e){return i.__assign({expand:!1},e)})))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(e,n){return t.expandedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterExpandSettings",{get:function(){var e=c.isBoolean(this.expandOnFilter)?{enabled:this.expandOnFilter}:i.__assign({},this.expandOnFilter,{enabled:!0});return Object.assign({},l,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandedKeys",{get:function(){return this._expandedKeys},set:function(e){this._expandedKeys=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},e.prototype.toggleExpand=function(e){var t=e.index,n=e.dataItem,i=e.expand,r=this.itemKey({index:t,dataItem:n}),o=this.expandedKeys.indexOf(r),a=!1;o>-1&&!i?(this.expandedKeys.splice(o,1),a=!0):-1===o&&i&&(this.expandedKeys.push(r),a=!0),a&&this.expandedKeysChange.emit(this.expandedKeys)},e.prototype.handleAutoExpand=function(e){var t=this,n=e.nodes,i=e.matchCount,r=e.term;if(this.filterExpandSettings.enabled){var o=this.filterExpandSettings,a=o.maxAutoExpandResults,s=o.expandMatches,l=o.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=this.expandedKeys.slice()),this.isFiltered&&!r||-1!==a&&i>a){switch(l){case"initial":c.sameValues(this.expandedKeys,this.originalExpandedKeys)||(this.expandedKeys=this.originalExpandedKeys,this.expandedKeysChange.emit(this.expandedKeys));break;case"all":this.expandedKeys=n.reduce((function(e,n){return t.getEveryExpandKey(e,n),e}),[]),this.expandedKeysChange.emit(this.expandedKeys);break;case"unchanged":break;case"none":default:0!==this.expandedKeys.length&&(this.expandedKeys=[],this.expandedKeysChange.emit(this.expandedKeys))}this.isFiltered=!1}else{var u=n.reduce((function(e,n){return t.updateExpandedNodes(e,n,s),e}),[]);c.sameValues(this.expandedKeys,u)||(this.expandedKeys=u,this.expandedKeysChange.emit(this.expandedKeys)),this.isFiltered=!0}}},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([r.Input("expandBy"),i.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"expandOnFilter",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"expandedKeysChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"expandedKeys",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewExpandable]"}),i.__metadata("design:paramtypes",[o.ExpandableComponent])],e)}();t.ExpandDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),a=n(7),s=n(5),c=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new r.EventEmitter,this.subscriptions=new s.Subscription,this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this._selectedKeys=[],this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,n){return t.selectedKeys.indexOf(t.itemKey({dataItem:e,index:n}))>-1}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedKeys",{get:function(){return this._selectedKeys},set:function(e){this._selectedKeys=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!a.isPresent(this.selection)||"string"==typeof this.selection)return e;var t=a.isBoolean(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},e.prototype.select=function(e){var t=this.options,n=t.enabled,i=t.mode,r=this.selectActions[i]||a.noop;n&&r(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.selectedKeys[0]!==t&&(this.selectedKeys=[t],this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.selectedKeys.indexOf(t),i=n>-1;a.isPresent(t)&&(i?this.selectedKeys.splice(n,1):this.selectedKeys.push(t),this.notify())},e.prototype.notify=function(){this.selectedKeysChange.emit(this.selectedKeys.slice())},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([r.Input("selectBy"),i.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),i.__decorate([r.Input("kendoTreeViewSelectable"),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"selectedKeys",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([r.HostBinding("attr.aria-multiselectable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewSelectable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],e)}();t.SelectDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(9),a=n(2),s=n(18),c=n(7),l=n(5),u=n(56),d=n(20),p=n(23),h=n(11),f=n(49),m=new h.IndexBuilderService,g=function(e,t,n,i){return void 0===n&&(n=null),void 0===i&&(i=""),c.isArrayWithAtLeastOneItem(e)?e.map((function(e,r){var a=m.nodeIndex(r.toString(),i),s={dataItem:e,index:a,parent:n,visible:!0};return s.children=g(o.getter(t)(e),t,s,a),s})):[]},b=function(e){function t(t,n){var i=e.call(this,t)||this;i.component=t,i.dragAndDropDirective=n,i.loadOnDemand=!0,i.originalData=[];var r=!c.isPresent(i.dragAndDropDirective);return i.component.isVisible=r?function(e){return i.visibleNodes.has(e)}:p.isVisible,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{set:function(e){this.originalData=e||[],this.filterData=g(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;c.isPresent(this.childrenField)&&(this.component.children=function(t){return l.of(o.getter(e.childrenField)(t))},this.component.hasChildren=function(t){var n=o.getter(e.childrenField)(t);return Boolean(n&&n.length)},this.component.editService=new u.HierarchyEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&c.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},t.prototype.ngOnChanges=function(e){a.isChanged("childrenField",e,!1)&&(this.nodes=this.originalData),a.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&c.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"childrenField",null),i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),i.__param(1,r.Optional()),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[s.DataBoundComponent,d.DragAndDropDirective])],t)}(f.FilteringBase);t.HierarchyBindingDirective=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(2),o=n(1),a=n(9),s=n(5),c=n(62),l=n(18),u=n(7),d=n(63),p=n(11),h=n(49),f=function(e,t,n){return t.filter((function(t){return e(t)===n}))},m=new p.IndexBuilderService,g=function(e,t,n,i,r,o){return void 0===r&&(r=null),void 0===o&&(o=""),u.isArrayWithAtLeastOneItem(e)?e.map((function(e,s){var c=m.nodeIndex(s.toString(),o),l={dataItem:e,index:c,parent:r,visible:!0};return l.children=g(f(a.getter(n),t||[],a.getter(i)(e)),t,n,i,l,c),l})):[]},b=function(e){function t(t){var n=e.call(this,t)||this;return n.component=t,n.loadOnDemand=!0,n.originalData=[],n.component.isVisible=function(e){return n.visibleNodes.has(e)},n}return i.__extends(t,e),Object.defineProperty(t.prototype,"nodes",{set:function(e){if(this.originalData=e||[],u.isNullOrEmptyString(this.parentIdField))this.component.nodes=this.originalData.slice(0);else{var t=a.getter(this.parentIdField);this.component.nodes=this.originalData.filter(c.compose(u.isBlank,t)),this.filterData=g(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;if(u.isPresent(this.parentIdField)&&u.isPresent(this.idField)){var t=function(t){return f(a.getter(e.parentIdField),e.originalData||[],a.getter(e.idField)(t))};this.component.hasChildren=function(e){return t(e).length>0},this.component.children=function(e){return s.of(t(e))},this.component.editService=new d.FlatEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&u.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}},t.prototype.ngOnChanges=function(e){r.isChanged("parentIdField",e,!1)&&(this.nodes=this.originalData),r.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&u.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],t.prototype,"idField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),t=i.__decorate([o.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),i.__metadata("design:paramtypes",[l.DataBoundComponent])],t)}(h.FilteringBase);t.FlatDataBindingDirective=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=n(10),s=n(7),c=function(){function e(e){this.treeview=e,this.subscriptions=new o.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}return Object.defineProperty(e.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleAdd=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},e.prototype.handleRemove=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"editService",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewDragAndDropEditing]"}),i.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.DragAndDropEditingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(10),s=n(7),c="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",l=function(){function e(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=o.guid(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}return Object.defineProperty(e.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.verifySettings()},e.prototype.verifySettings=function(){if(r.isDevMode()){if(!s.isPresent(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+c+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(s.isPresent(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+c+".");if(s.isPresent(e)&&!s.isPresent(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+c+".")}},e.prototype.getGroupSize=function(e){var t=e||this.rootLevelId;return this.pageSizes.has(t)?this.pageSizes.get(t):this.pageSize},e.prototype.setGroupSize=function(e,t){var n=e||this.rootLevelId,i=t>0?t:0;this.pageSizes.set(n,i)},e.prototype.getTotalNodesCount=function(e,t){return s.isPresent(e)&&s.isPresent(this.totalField)?e[this.totalField]:!s.isPresent(e)&&s.isPresent(this.totalRootNodes)?this.totalRootNodes:t},e.prototype.getInitalPageSize=function(){return this.pageSize},i.__decorate([r.Input("kendoTreeViewLoadMore"),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"loadMoreNodes",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"pageSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"totalRootNodes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"totalField",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewLoadMore]"}),i.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.LoadMoreDirective=l},function(e,t,n){"use strict";n.r(t),n.d(t,"Draggable",(function(){return u}));var i=function(e,t){return function(n){return t(e(n))}},r=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},o=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},a=function(){},s=function(e){return e.preventDefault()},c=/touch/;function l(e){return e.type.match(c)?{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 u=function(e){var t=this,n=e.press;void 0===n&&(n=a);var c=e.drag;void 0===c&&(c=a);var u=e.release;void 0===u&&(u=a);var d=e.mouseOnly;void 0===d&&(d=!1),this._pressHandler=i(l,n),this._dragHandler=i(l,c),this._releaseHandler=i(l,u),this._ignoreMouse=!1,this._mouseOnly=d,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||(r(t.document,"mousemove",t._mousemove),r(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){o(t.document,"mousemove",t._mousemove),o(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(r(t.document,"pointermove",t._pointermove),r(t.document,"pointerup",t._pointerup),r(t.document,"pointercancel",t._pointerup),r(t.document,"contextmenu",s),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(o(t.document,"pointermove",t._pointermove),o(t.document,"pointerup",t._pointerup),o(t.document,"pointercancel",t._pointerup),o(t.document,"contextmenu",s),t._releaseHandler(e))}},d={document:{configurable:!0}};u.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},u.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},u.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?r(e,"pointerdown",this._pointerdown):(r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(e,"touchend",this._touchend)))},u.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return o(e,"pointerdown",this._pointerdown),o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"contextmenu",s),void o(this.document,"pointercancel",this._pointerup);o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend))},u.prototype._usePointers=function(){return!this._mouseOnly&&u.supportPointerEvent()},u.prototype.update=function(e){var t=e.press;void 0===t&&(t=a);var n=e.drag;void 0===n&&(n=a);var r=e.release;void 0===r&&(r=a);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=i(l,t),this._dragHandler=i(l,n),this._releaseHandler=i(l,r),this._mouseOnly=o},u.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(u.prototype,d),u.default=u,t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(){this.changes=new i.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}();t.DataChangeNotificationService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),a=function(){function e(){this.changes=new o.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=i.__decorate([r.Injectable()],e)}();t.NodeChildrenService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Add=0]="Add",e[e.InsertTop=1]="InsertTop",e[e.InsertBottom=2]="InsertBottom",e[e.InsertMiddle=3]="InsertMiddle",e[e.Invalid=4]="Invalid"}(t.DropAction||(t.DropAction={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Over=0]="Over",e[e.Before=1]="Before",e[e.After=2]="After"}(t.DropPosition||(t.DropPosition={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t,n){var i=e.call(this)||this;return i.isValid=!0,Object.assign(i,t),i.originalEvent=n,i}return i.__extends(t,e),t.prototype.setValid=function(e){this.isValid=e},t}(n(33).PreventableEvent);t.TreeItemDropEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return i.__extends(t,e),t}(n(33).PreventableEvent);t.TreeItemDragStartEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.TreeItemDragEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.copyPageSize=function(e,t,n){if(i.isPresent(e.loadMoreService)){var r=e.getNodePageSize(t);e.setNodePageSize(n,r)}},t.incrementPageSize=function(e,t){if(i.isPresent(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n+1)}},t.decrementPageSize=function(e,t){if(i.isPresent(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n-1)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(12),a=function(){function e(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(e.prototype,"statusIconClass",{get:function(){switch(this.action){case o.DropAction.Add:return"k-i-plus";case o.DropAction.InsertTop:return"k-i-insert-up";case o.DropAction.InsertBottom:return"k-i-insert-down";case o.DropAction.InsertMiddle:return"k-i-insert-middle";case o.DropAction.Invalid:default:return"k-i-cancel"}},enumerable:!0,configurable:!0}),e.prototype.detectChanges=function(){this.cdr.detectChanges()},i.__decorate([r.HostBinding("class.k-header"),r.HostBinding("class.k-drag-clue"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("style.position"),i.__metadata("design:type",String)],e.prototype,"posistionStyle",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[r.ChangeDetectorRef])],e)}();t.DragClueComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=function(){function e(){}return Object.defineProperty(e.prototype,"componentRef",{get:function(){if(!i.isPresent(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef},set:function(e){this._componentRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){i.isPresent(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},e.prototype.show=function(){this.element.style.display=""},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.move=function(e,t,n){void 0===n&&(n=0),this.element.style.left=e+n+"px",this.element.style.top=t+n+"px"},e}();t.DragAndDropAssetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function e(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return e.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},i.__decorate([r.HostBinding("class.k-drop-hint-container"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([r.HostBinding("style.position"),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([r.HostBinding("style.pointer-events"),i.__metadata("design:type",String)],e.prototype,"pointerEvents",void 0),e=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n '}),i.__metadata("design:paramtypes",[r.ChangeDetectorRef])],e)}();t.DropHintComponent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(60),a=n(7),s=function(){function e(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=o.DEFAULT_FILTER_SETTINGS}return Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=i.__assign({},o.DEFAULT_FILTER_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),e.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&a.filterTree(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),a.isPresent(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings}))},e.prototype.updateVisibleNodes=function(e){var t=this;e.forEach((function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)}))},e.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach((function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)}))},i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"filterSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"filter",null),e}();t.FilteringBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10);t.TreeViewComponent=i.TreeViewComponent;var r=n(53);t.TreeViewModule=r.TreeViewModule;var o=n(16);t.NodeTemplateDirective=o.NodeTemplateDirective;var a=n(28);t.CheckDirective=a.CheckDirective;var s=n(29);t.DisableDirective=s.DisableDirective;var c=n(30);t.ExpandDirective=c.ExpandDirective;var l=n(31);t.SelectDirective=l.SelectDirective;var u=n(18);t.DataBoundComponent=u.DataBoundComponent;var d=n(25);t.ExpandableComponent=d.ExpandableComponent;var p=n(32);t.HierarchyBindingDirective=p.HierarchyBindingDirective;var h=n(34);t.FlatDataBindingDirective=h.FlatDataBindingDirective;var f=n(20);t.DragAndDropDirective=f.DragAndDropDirective;var m=n(35);t.DragAndDropEditingDirective=m.DragAndDropEditingDirective;var g=n(22);t.DropHintTemplateDirective=g.DropHintTemplateDirective;var b=n(21);t.DragClueTemplateDirective=b.DragClueTemplateDirective;var y=n(40);t.DropAction=y.DropAction;var v=n(41);t.DropPosition=v.DropPosition;var _=n(42);t.TreeItemDropEvent=_.TreeItemDropEvent;var O=n(43);t.TreeItemDragStartEvent=O.TreeItemDragStartEvent;var j=n(44);t.TreeItemDragEvent=j.TreeItemDragEvent;var C=n(36);t.LoadMoreDirective=C.LoadMoreDirective;var w=n(17);t.LoadMoreButtonTemplateDirective=w.LoadMoreButtonTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1638439762,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 i=n(11),r=n(7),o=function(e){return e||{}},a=function(e){return o(e).children||[]},s=function(e){if(!Array.isArray(e)||0===e.length)return null;for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(n.visible)return n}return null},c=function(){function e(){this.ib=new i.IndexBuilderService,this.nodes=[]}return e.prototype.firstVisibleNode=function(){return(this.nodes||[]).find((function(e){return e.visible}))},e.prototype.lastVisibleNode=function(){for(var e=s(this.nodes);r.isPresent(e)&&a(e).length>0;){var t=a(e),n=s(t);if(!r.isPresent(n))return e;e=n}return e},e.prototype.closestNode=function(e){var t=o(this.findNode(e)).prev||this.firstVisibleNode();return o(t).index===e?this.visibleSibling(t,1):t},e.prototype.firstFocusableNode=function(){return this.nodes.find((function(e){return!e.disabled&&e.visible}))},e.prototype.findNode=function(e){return this.find(e,this.nodes)},e.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},e.prototype.findVisibleChild=function(e){var t=this.findNode(e);return a(t).find((function(e){return e.visible}))},e.prototype.findVisiblePrev=function(e){var t=e.index,n=this.findParent(t),i=this.ib.lastLevelIndex(t),r=this.container(n).slice(0,i).every((function(e){return!e.visible}));if(0===i||r)return n;var o=this.findNode(t),a=this.visibleSibling(o,-1);if(a)for(var c=this.container(a);c.length>0&&c.some((function(e){return e.visible}));)a=s(c),c=this.container(a);return a},e.prototype.findVisibleNext=function(e){var t=this.container(e),n=t.some((function(e){return e.visible}));return 0!==t.length&&n?t.find((function(e){return e.visible})):this.visibleSibling(e,1)},e.prototype.registerItem=function(e,t,n,i,r){void 0===i&&(i=!1),void 0===r&&(r=!0);var o=this.ib.level(t),a=this.findParent(t);if(a||1===o){var s={id:e,children:[],index:t,parent:a,disabled:n,loadMoreButton:i,visible:r};this.insert(s,a)}},e.prototype.unregisterItem=function(e,t){var n=this.find(t,this.nodes);if(n&&n.id===e){var i=this.container(n.parent);i.splice(i.indexOf(n),1)}},e.prototype.childLevel=function(e){var t=e.filter((function(e){return r.isPresent(e)}));return t&&t.length?this.ib.level(t[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),r=n===this.ib.level(e),o=t.find((function(e){return e&&e.index===i}));return o?r?o:this.find(e,o.children):null},e.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},e.prototype.visibleSibling=function(e,t){if(!e)return null;for(var n=this.findParent(e.index),i=this.container(n),o=i.indexOf(e)+t,a=i[o];r.isPresent(a);){if(a.visible)return a;a=i[o+=t]}return this.visibleSibling(n,t)},e}();t.NavigationModel=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),a=n(54),s=n(16),c=n(28),l=n(29),u=n(30),d=n(31),p=n(32),h=n(34),f=n(20),m=n(21),g=n(22),b=n(35),y=n(36),v=n(17),_=[o.TreeViewComponent,s.NodeTemplateDirective,c.CheckDirective,l.DisableDirective,u.ExpandDirective,d.SelectDirective,p.HierarchyBindingDirective,h.FlatDataBindingDirective,f.DragAndDropDirective,m.DragClueTemplateDirective,g.DropHintTemplateDirective,b.DragAndDropEditingDirective,y.LoadMoreDirective,v.LoadMoreButtonTemplateDirective],O=function(){function e(){}return e=i.__decorate([r.NgModule({exports:[_],imports:[a.SharedModule]})],e)}();t.TreeViewModule=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),a=n(55),s=n(4),c=n(16),l=n(28),u=n(29),d=n(30),p=n(31),h=n(32),f=n(61),m=n(34),g=n(64),b=n(65),y=n(66),v=n(20),_=n(21),O=n(22),j=n(46),C=n(48),w=n(35),S=n(36),k=n(17),x=n(68),E=[o.TreeViewComponent,a.TreeViewGroupComponent,g.TreeViewItemDirective,b.TreeViewItemContentDirective,c.NodeTemplateDirective,l.CheckDirective,u.DisableDirective,d.ExpandDirective,p.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,m.FlatDataBindingDirective,v.DragAndDropDirective,_.DragClueTemplateDirective,j.DragClueComponent,O.DropHintTemplateDirective,C.DropHintComponent,w.DragAndDropEditingDirective,S.LoadMoreDirective,k.LoadMoreButtonTemplateDirective],I=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[E],exports:[E],imports:[s.CommonModule,y.CheckBoxModule,x.InputsModule],entryComponents:[j.DragClueComponent,C.DropHintComponent]})],e)}();t.SharedModule=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(13),a=n(9),s=n(14),c=n(11),l=n(27),u=n(15),d=n(39),p=n(7),h=n(24),f=n(5),m=n(6),g=n(38),b=function(){function e(e,t,n,i,r,o,a,s){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=r,this.nodeChildrenService=o,this.dataChangeNotification=a,this.changeDetectorRef=s,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new f.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return f.of([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"moreNodesAvailable",{get:function(){return!(!p.isPresent(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return p.isPresent(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){if(p.isPresent(this.pageSize)){var e=this.pageSize>0?this.pageSize:0;return this._data.slice(0,e)}return this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return p.isPresent(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)},e.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},e.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},e.prototype.nodeText=function(e){var t=p.isArray(this.textField)?this.textField[0]:this.textField;return a.getter(t)(e)},e.prototype.ngOnDestroy=function(){p.isPresent(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),p.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(m.filter((function(t){return t===e.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(m.catchError((function(){return n.loadingService.notifyLoaded(t),f.EMPTY})),m.tap((function(){return n.loadingService.notifyLoaded(t)})))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return p.isArray(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.loadMoreNodes=function(){p.isPresent(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},e.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},e.prototype.fetchMoreNodes=function(){var e=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,p.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(m.finalize((function(){return e.loadingMoreNodes=!1}))).subscribe((function(t){if(Array.isArray(t)&&t.length>0){var n=e.loadMoreButtonIndex;e.pageSize+=t.length,e.data=e.data.concat(t),e.navigationService.isActive(n)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(n))}})))},e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map((function(e,n){return{dataItem:e,index:t.nodeIndex(n)}})):[]},e.prototype.emitChildrenLoaded=function(e){if(this.parentIndex){var t=e.filter((function(e){return e.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}},e.prototype.subscribeToNodesChange=function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(t){e.data=t,e.initialNodesLoaded=!0}))},e.prototype.reselectItemAt=function(e){p.isPresent(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},e.prototype.registerLoadedNodes=function(e){void 0===e&&(e=[]);var t=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(t),this.emitChildrenLoaded(t)},i.__decorate([r.HostBinding("class.k-group"),i.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"touchActions",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"nodes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],e.prototype,"loadMoreButtonTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"loadMoreService",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=i.__decorate([r.Component({animations:[o.trigger("toggle",[o.transition("void => *",[o.style({height:0}),o.animate("0.1s ease-in",o.style({height:"*"}))]),o.transition("* => void",[o.style({height:"*"}),o.animate("0.1s ease-in",o.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-item k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div class="k-mid">\n <span\n class="k-icon"\n [class.k-i-collapse]="isExpanded(node, nodeIndex(index))"\n [class.k-i-expand]="!isExpanded(node, nodeIndex(index))"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n tabindex="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-in"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n >\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [disabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-item k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-mid">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-expand"\n >\n </span>\n <span\n class="k-in k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </div>\n </li>\n '}),i.__metadata("design:paramtypes",[s.ExpandStateService,h.LoadingNotificationService,c.IndexBuilderService,l.TreeViewLookupService,u.NavigationService,d.NodeChildrenService,g.DataChangeNotificationService,r.ChangeDetectorRef])],e)}();t.TreeViewGroupComponent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(12),o=n(19),a=n(45),s=n(7),c=function(){function e(e){this.hierarchyBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,c=e.dropPosition,l=e.sourceTree,u=e.destinationTree,d=Object.assign({},s.getDataItem(t));if(c===r.DropPosition.Over){o.expandDropTarget(n,u);var p=this.childrenFor(s.getDataItem(n)),h=s.isPresent(u.loadMoreService)?Math.min(u.loadMoreService.getGroupSize(s.getDataItem(n)),p.length):p.length;p.splice(h,0,d),i.setter(this.hierarchyBinding.childrenField)(s.getDataItem(n),p),this.movedItemNewIndex=s.buildTreeIndex(n.item.index,h)}else{var f=this.getParentNodes(n,u),m=c===r.DropPosition.After?1:0;h=f.indexOf(s.getDataItem(n))+m;f.splice(h,0,d);var g=n.parent?n.parent.item.index:null;this.movedItemNewIndex=s.buildTreeIndex(g,h)}var b=c===r.DropPosition.Over?s.getDataItem(n):s.getDataItem(n.parent);a.incrementPageSize(u,b),a.copyPageSize(u,s.getDataItem(t),d),l===u||u.loadOnDemand||u.preloadChildNodes(),l!==u&&(u.changeDetectorRef.detectChanges(),u.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,r=this.getParentNodes(t,n),c=r.indexOf(s.getDataItem(t));if(r.splice(c,1),o.collapseEmptyParent(t.parent,r,n),a.decrementPageSize(n,s.getDataItem(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var l=o.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);i.focus(l)}},e.prototype.getParentNodes=function(e,t){return s.isPresent(e.parent)?this.childrenFor(s.getDataItem(e.parent)):t.nodes},e.prototype.childrenFor=function(e){return i.getter(this.hierarchyBinding.childrenField)(e)||[]},e}();t.HierarchyEditingService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(t.ScrollDirection||(t.ScrollDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(46),a=n(12),s=n(7),c=n(47),l=n(19);t.CLUE_OFFSET=10,t.RETURN_ANIMATION_DURATION=200;var u=function(e){function n(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return i.__extends(n,e),n.prototype.initialize=function(e,t){s.isPresent(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(o.DragClueComponent);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},n.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),e.prototype.ngOnDestroy.call(this)},n.prototype.move=function(n,i){e.prototype.move.call(this,n,i,t.CLUE_OFFSET)},n.prototype.animateDragClueToElementPosition=function(e){var n=this;if(s.isPresent(e)&&s.isPresent(this.element.animate)){var i=e.getBoundingClientRect(),r=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(i.left-r.left)+"px, "+(i.top-r.top)+"px)"}],t.RETURN_ANIMATION_DURATION),this.returnAnimation.onfinish=function(){return n.hide()}}else this.hide()},n.prototype.cancelReturnAnimation=function(){s.isPresent(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},n.prototype.updateDragClueData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&s.dataItemsEqual(t,i.sourceItem)&&s.dataItemsEqual(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},n.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},n.prototype.scrollIntoView=function(e){var t=e.step,n=e.interval;this.cancelScroll();var i=l.getScrollableContainer(this.element);if(s.isPresent(i)){var r=i.getBoundingClientRect(),o=this.element.getBoundingClientRect(),c=Math.max(r.top,0),u=c+o.height,d=c+Math.min(r.bottom,i.clientHeight);o.top<u?this.scrollInterval=setInterval((function(){return l.scrollElementBy(i,t,a.ScrollDirection.Up)}),n):o.bottom>d&&(this.scrollInterval=setInterval((function(){return l.scrollElementBy(i,t,a.ScrollDirection.Down)}),n))}},n.prototype.cancelScroll=function(){s.isPresent(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},n=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.ComponentFactoryResolver])],n)}(c.DragAndDropAssetService);t.DragClueService=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(7),a=n(48),s=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return i.__extends(t,e),t.prototype.initialize=function(e,t){o.isPresent(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(a.DropHintComponent);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.updateDropHintData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&o.dataItemsEqual(t,i.sourceItem)&&o.dataItemsEqual(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},t=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.ComponentFactoryResolver])],t)}(n(47).DragAndDropAssetService);t.DropHintService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILTER_SETTINGS={operator:"contains",ignoreCase:!0,mode:"lenient"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(14),a=n(24),s=n(5),c=n(6),l=function(){function e(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.loadingService.changes.pipe(c.filter((function(t){return t===e.index})));this.subscription=this.expandService.changes.pipe(c.filter((function(t){return t.index===e.index})),c.tap((function(t){!t.expand&&e.loading&&(e.loading=!1)})),c.filter((function(e){return e.expand})),c.switchMap((function(e){return s.of(e).pipe(c.delay(100),c.takeUntil(t))}))).subscribe((function(){return e.loading=!0})),this.subscription.add(t.subscribe((function(){return e.loading=!1})))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([r.HostBinding("class.k-i-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),i.__decorate([r.Input("kendoTreeViewLoading"),i.__metadata("design:type",String)],e.prototype,"index",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewLoading]"}),i.__metadata("design:paramtypes",[o.ExpandStateService,a.LoadingNotificationService,r.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(6),o=n(12),a=n(19),s=n(45),c=n(7),l=function(){function e(e){this.flatBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,r=e.dropPosition,l=e.sourceTree,u=e.destinationTree,d=Object.assign({},c.getDataItem(t));if(r===o.DropPosition.Over){a.expandDropTarget(n,u);var p=i.getter(this.flatBinding.idField)(c.getDataItem(n));i.setter(this.flatBinding.parentIdField)(d,p);var h=this.getLastVisibleChildNodeIndex(u,this.flatBinding.originalData,c.getDataItem(n))+1;this.flatBinding.originalData.splice(h,0,d),this.rebindData();var f=this.fetchChildNodes(c.getDataItem(n),u).indexOf(d);this.movedItemNewIndex=c.buildTreeIndex(n.item.index,f)}else{var m=r===o.DropPosition.After?1:0;h=this.flatBinding.originalData.indexOf(c.getDataItem(n))+m;this.flatBinding.originalData.splice(h,0,d);var g=i.getter(this.flatBinding.parentIdField)(c.getDataItem(n));i.setter(this.flatBinding.parentIdField)(d,g),this.rebindData();var b=n.parent?n.parent.item.index:null;f=(n.parent?this.fetchChildNodes(c.getDataItem(n.parent),u):u.nodes).indexOf(d);this.movedItemNewIndex=c.buildTreeIndex(b,f)}l!==u&&this.addChildNodes(d,l);var y=r===o.DropPosition.Over?c.getDataItem(n):c.getDataItem(n.parent);s.incrementPageSize(u,y),s.copyPageSize(u,c.getDataItem(t),d),l===u||u.loadOnDemand||u.preloadChildNodes(),l!==u&&(u.changeDetectorRef.detectChanges(),u.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,r=c.getDataItem(t),o=this.flatBinding.originalData.indexOf(r);this.flatBinding.originalData.splice(o,1),n!==i&&this.removeChildNodes(r,n),this.rebindData();var l=t.parent?t.parent.children:[];if(a.collapseEmptyParent(t.parent,l,n),s.decrementPageSize(n,c.getDataItem(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var u=a.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);i.focus(u)}},e.prototype.addChildNodes=function(e,t){var n,i=this.fetchAllDescendantNodes(e,t);(n=this.flatBinding.originalData).push.apply(n,i)},e.prototype.removeChildNodes=function(e,t){var n=this;this.fetchAllDescendantNodes(e,t).forEach((function(e){var t=n.flatBinding.originalData.indexOf(e);n.flatBinding.originalData.splice(t,1)}))},e.prototype.fetchAllDescendantNodes=function(e,t){var n=this,i=this.fetchChildNodes(e,t);return i.forEach((function(e){return i=i.concat(n.fetchAllDescendantNodes(e,t)||[])})),i},e.prototype.fetchChildNodes=function(e,t){if(!e)return[];var n=[];return t.children(e).pipe(r.take(1)).subscribe((function(e){return n=n.concat(e||[])})),n},e.prototype.getLastVisibleChildNodeIndex=function(e,t,n){if(!c.isPresent(e.loadMoreService)||!e.hasChildren(n))return t.length;var i=e.loadMoreService.getGroupSize(n),r=this.fetchChildNodes(n,e).slice(0,i),o=r[r.length-1];return t.indexOf(o)},e.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},e}();t.FlatEditingService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=n(15),s=n(26),c=n(14),l=n(11),u=n(27),d=n(7),p=n(6),h=function(e,t){return{dataItem:t,index:e}},f=0,m=function(){function e(e,t,n,i,r,o,a){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=r,this.renderer=o,this.ib=a,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=f++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeItem",{get:function(){return h(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?h(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;o.anyChanged(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),o.anyChanged(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((function(e,t){return t.unsubscribe(),e}),[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe((function(){e.updateTabIndex(),e.focusItem()})),this.navigationService.expands.pipe(p.filter((function(t){return t.index===e.index&&!e.isDisabled}))).subscribe((function(t){var n=t.expand;return e.expand(n)}))]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}},e.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},e.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},e.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},e.prototype.moveLookupItem=function(e){void 0===e&&(e={});var t=e.dataItem,n=e.index,i=e.parentDataItem,r=e.parentIndex;if((!n||!n.firstChange)&&(t||n||i||r)){var o=(n||{}).previousValue||this.index;this.lookupService.replaceItem(o,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&d.isPresent(t)&&d.isPresent(i)&&(this.navigationService.unregisterItem(this.id,i),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},e.prototype.updateNodeAvailability=function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},e.prototype.setDisabledClass=function(){this.setClass("k-state-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){d.isPresent(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=i.__decorate([r.Directive({selector:"[kendoTreeViewItem]"}),i.__metadata("design:paramtypes",[r.ElementRef,c.ExpandStateService,a.NavigationService,s.SelectionService,u.TreeViewLookupService,r.Renderer2,l.IndexBuilderService])],e)}();t.TreeViewItemDirective=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(15),a=n(26),s=n(23),c=n(5),l=n(6),u=function(){function e(e,t,n,i){var r=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=s.isSelected,this.subscriptions=new c.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(l.filter((function(e){return e===r.index}))).subscribe((function(e){return r.selectionService.select(e,r.dataItem)}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(){r.updateSelectionClass(r.isSelected(r.dataItem,r.index))})))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-state-focused")},e.prototype.updateSelectionClass=function(e){this.render(e,"k-state-selected")},e.prototype.render=function(e,t){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewItemContent]"}),i.__metadata("design:paramtypes",[r.ElementRef,o.NavigationService,a.SelectionService,r.Renderer2])],e)}();t.TreeViewItemContentDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=[n(67).CheckBoxComponent],a=function(){function e(){}return e=i.__decorate([r.NgModule({declarations:[o],exports:[o]})],e)}();t.CheckBoxModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),a=function(){function e(e,t,n){this.element=e,this.renderer=t,this.changeDetector=n,this.id="_"+o.guid(),this.tabindex=0,this.checkStateChange=new r.EventEmitter,this.checkState="none"}return Object.defineProperty(e.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},e.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},e.prototype.handleChange=function(e){var t=e.target.checked?"checked":"none";this.checkState=t,this.changeDetector.detectChanges(),this.checkStateChange.emit(t)},i.__decorate([r.HostBinding("class.k-checkbox-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"isChecked",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],e.prototype,"node",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],e.prototype,"labelText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],e.prototype,"checkStateChange",void 0),e=i.__decorate([r.Component({selector:"kendo-checkbox",template:'\n <input\n class="k-checkbox"\n type="checkbox"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),i.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2,r.ChangeDetectorRef])],e)}();t.CheckBoxComponent=a},function(e,t,n){"use strict";n.r(t),n.d(t,"CheckBoxModule",(function(){return ul})),n.d(t,"ColorInputComponent",(function(){return Zc})),n.d(t,"ContrastValidationComponent",(function(){return rl})),n.d(t,"ContrastComponent",(function(){return ol})),n.d(t,"FocusOnDomReadyDirective",(function(){return il})),n.d(t,"ColorGradientLocalizationService",(function(){return Gc})),n.d(t,"ColorPaletteLocalizationService",(function(){return Yc})),n.d(t,"ColorPickerLocalizationService",(function(){return Kc})),n.d(t,"ColorPickerCustomMessagesComponent",(function(){return tl})),n.d(t,"ColorPickerMessages",(function(){return el})),n.d(t,"ColorPaletteService",(function(){return Xc})),n.d(t,"MaskingService",(function(){return Ys})),n.d(t,"NumericTextBoxMessages",(function(){return zs})),n.d(t,"RadioButtonModule",(function(){return pl})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return lc})),n.d(t,"RangeSliderMessages",(function(){return sc})),n.d(t,"SHARED_DIRECTIVES",(function(){return Sc})),n.d(t,"SliderCustomMessagesComponent",(function(){return oc})),n.d(t,"SliderMessages",(function(){return ic})),n.d(t,"SliderBase",(function(){return _s})),n.d(t,"SlidersCommonModule",(function(){return nc})),n.d(t,"SwitchCustomMessagesComponent",(function(){return hc})),n.d(t,"Messages",(function(){return dc})),n.d(t,"TextFieldsBase",(function(){return Ec})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return jc})),n.d(t,"TextBoxMessages",(function(){return Oc})),n.d(t,"SliderComponent",(function(){return Os})),n.d(t,"RangeSliderComponent",(function(){return Cs})),n.d(t,"LabelTemplateDirective",(function(){return vs})),n.d(t,"SwitchComponent",(function(){return ws})),n.d(t,"TextBoxContainerComponent",(function(){return Es})),n.d(t,"TextBoxDirective",(function(){return Is})),n.d(t,"TextAreaDirective",(function(){return Ss})),n.d(t,"NumericTextBoxComponent",(function(){return Rs})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return Hs})),n.d(t,"MaskedTextBoxComponent",(function(){return Qs})),n.d(t,"InputsModule",(function(){return vl})),n.d(t,"SliderTicksComponent",(function(){return tc})),n.d(t,"SliderModule",(function(){return ac})),n.d(t,"RangeSliderModule",(function(){return uc})),n.d(t,"SwitchModule",(function(){return fc})),n.d(t,"NumericTextBoxModule",(function(){return gc})),n.d(t,"MaskedTextBoxModule",(function(){return bc})),n.d(t,"TextBoxModule",(function(){return xc})),n.d(t,"TextAreaModule",(function(){return Tc})),n.d(t,"ColorPickerComponent",(function(){return $c})),n.d(t,"ColorPaletteComponent",(function(){return Qc})),n.d(t,"ColorGradientComponent",(function(){return Wc})),n.d(t,"ColorPickerModule",(function(){return cl})),n.d(t,"ActiveColorClickEvent",(function(){return Ac})),n.d(t,"CheckBoxDirective",(function(){return ll})),n.d(t,"RadioButtonDirective",(function(){return dl})),n.d(t,"HintComponent",(function(){return gl})),n.d(t,"ErrorComponent",(function(){return fl})),n.d(t,"FormFieldComponent",(function(){return bl})),n.d(t,"FormFieldModule",(function(){return yl})),n.d(t,"TextBoxComponent",(function(){return _c})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return vc})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return yc})),n.d(t,"TextAreaComponent",(function(){return Dc})),n.d(t,"TextAreaSuffixComponent",(function(){return Pc})),n.d(t,"InputSeparatorComponent",(function(){return wc})),n.d(t,"SharedModule",(function(){return kc})),n.d(t,"LocalizedColorPickerMessagesDirective",(function(){return nl})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return mc})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return Cc})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return rc})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return cc})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return pc}));var i=n(0),r=n(1),o=n(4),a=null;function s(){return a}var c,l=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],r=0;r<i.length;r++)if(null!=t.getStyle(n,i[r]+"AnimationName")){t._animationPrefix="-"+i[r].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach((function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=o[e])}))}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(i.__extends)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),u={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},d={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},p={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},h=function(){if(r["ɵglobal"].Node)return r["ɵglobal"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,a||(a=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,Object(i.__spread)(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return u},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return h.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),i=0;i<t.length;i++)n[i]=t[i];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach((function(n){return e.insertBefore(n,t)}))},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var i=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(e,t),i},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var i=this.getStyle(e,t)||"";return n?i==n:i.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i<n.length;i++){var r=n.item(i);t.set(r.name,r.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,i){e.setAttributeNS(t,n,i)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&p.hasOwnProperty(t)&&(t=p[t]))}return d[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t=function(){if(!m&&!(m=document.querySelector("base")))return null;return m.getAttribute("href")}();return null==t?null:function(e){c||(c=document.createElement("a"));return c.setAttribute("href",e),"/"===c.pathname.charAt(0)?c.pathname:"/"+c.pathname}
20
+ var i=function(e,t){return(i=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 o(e,t){function n(){this.constructor=e}i(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,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}function s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,i){t(n,i,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function u(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function p(e,t,n,i){void 0===i&&(i=n),e[i]=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],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function v(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(e){o[e]&&(i[e]=function(t){return new Promise((function(n,i){r.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,l):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function _(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,o){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:o?o(t):t}:o}}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={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,o){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,o,(t=e[n](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(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 k(e){return e&&e.__esModule?e:{default:e}}function w(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(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(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return N})),n.d(t,"PreventableEvent",(function(){return U})),n.d(t,"DraggableDirective",(function(){return f})),n.d(t,"DraggableModule",(function(){return m})),n.d(t,"closestInScope",(function(){return b})),n.d(t,"closest",(function(){return g})),n.d(t,"contains",(function(){return y})),n.d(t,"findElement",(function(){return v})),n.d(t,"findFocusableChild",(function(){return k})),n.d(t,"findFocusable",(function(){return w})),n.d(t,"hasClasses",(function(){return E})),n.d(t,"isFocusableWithTabKey",(function(){return C})),n.d(t,"isFocusable",(function(){return O})),n.d(t,"isVisible",(function(){return j})),n.d(t,"matchesClasses",(function(){return x})),n.d(t,"matchesNodeName",(function(){return D})),n.d(t,"rtlScrollPosition",(function(){return P})),n.d(t,"EventsOutsideAngularDirective",(function(){return M})),n.d(t,"EventsModule",(function(){return A})),n.d(t,"ResizeSensorComponent",(function(){return L})),n.d(t,"ResizeBatchService",(function(){return H})),n.d(t,"ResizeCompatService",(function(){return R})),n.d(t,"ResizeObserverService",(function(){return z})),n.d(t,"ResizeSensorModule",(function(){return G})),n.d(t,"KendoInput",(function(){return Z})),n.d(t,"isDocumentAvailable",(function(){return l})),n.d(t,"isChanged",(function(){return d})),n.d(t,"anyChanged",(function(){return u})),n.d(t,"hasObservers",(function(){return p})),n.d(t,"guid",(function(){return h})),n.d(t,"Keys",(function(){return T}));var i=n(0),o=n(1),r=n(37),a=n(5),s=n(6),c=n(4),l=function(){return"undefined"!=typeof document},d=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},u=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return d(e,t,n)}))},p=function(e){return e&&e.observers.length>0},h=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},f=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){d("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;l()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new r.default({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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoPress",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoDraggable]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),m=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[f],exports:[f],imports:[a.CommonModule]})],e)}(),b=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},g=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},y=function(e,t,n){if(void 0===n&&(n=!1),!g(t,(function(t){return t===e})))return!1;var i=g(t,(function(e){return e===t}));return i&&(n||i!==e)},v=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=v(e,t);if(i)return i}e=e.nextSibling}}},_=/^(?:a|input|select|option|textarea|button|object)$/i,O=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&_.test(t)||n},j=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,i=0!==t.x&&0!==t.y;return(n||i)&&"hidden"!==window.getComputedStyle(e).visibility},C=function(e,t){if(void 0===t&&(t=!0),!O(e))return!1;var n=e.getAttribute("tabIndex");return(!t||j(e))&&"-1"!==n},k=function(e,t){return void 0===t&&(t=!0),v(e,(function(e){return C(e,t)}),!1)},w=function(e,t){return void 0===t&&(t=!0),v(e,(function(e){return C(e,t)}))},S=function(e){return String(e).trim().split(" ")},E=function(e,t){var n=S(t);return Boolean(S(e.className).find((function(e){return n.indexOf(e)>=0})))},x=function(e){return function(t){return E(t,e)}},I={},D=function(e){return I[e]||(I[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),I[e]};function P(e,t,n){var i=e;return n<0?i=-e:n>0&&(i=t.scrollWidth-t.offsetWidth-e),i}var T,M=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(i.__decorate)([Object(o.Input)("kendoEventsOutsideAngular"),Object(i.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2])],e)}(),A=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[M],exports:[M]})],e)}(),N=function(){function e(e){this.resizeBatchService=e,this.resize=new o.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(){l()&&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}(),V=function(e){var t=document.createElement("div");return t.style.cssText=e,t},B="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",R=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__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=B,e.setAttribute("dir","ltr"),this.expand=V(B),this.expandChild=V("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=V(B);var t=V("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(c.merge)(Object(c.fromEvent)(e.shrink,"scroll"),Object(c.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(N),F="undefined"!=typeof ResizeObserver,z=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.element=n,o.ngZone=i,o}return Object(i.__extends)(t,e),t.supported=function(){return F},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}(N),H=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(c.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,i=0;i<n;i++)if(t[i].instance===e)return t.splice(i,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(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[o.NgZone])],e)}(),L=function(){function e(e,t,n){var i=this;this.rateLimit=10,this.resize=new o.EventEmitter;var r=z.supported()?z:R;this.resizeService=new r(e,t,n);var a=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(s.auditTime)(a)).subscribe((function(){i.resizeService.acceptedSize||i.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"resize",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-resize-sensor",template:""}),Object(i.__metadata)("design:paramtypes",[H,o.ElementRef,o.NgZone])],e)}(),K=[L],G=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[K],exports:[K],providers:[H]})],e)}(),Z=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"}(T||(T={}));var U=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=i},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(9),r=/^(?:a|input|select|option|textarea|button|object)$/i;t.match=function(e,t){var n=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return!!n&&n.call(e,t)},t.closestWithMatch=function(e,n){if(!document.documentElement.contains(e))return null;for(var i=e;null!==i&&1===i.nodeType;){if(t.match(i,n))return i;i=i.parentElement||i.parentNode}return null},t.noop=function(){},t.isPresent=function(e){return null!=e},t.isBlank=function(e){return null==e},t.isArray=function(e){return Array.isArray(e)},t.isNullOrEmptyString=function(e){return t.isBlank(e)||0===e.trim().length},t.isBoolean=function(e){return"boolean"==typeof e},t.closestNode=function(e){return i.isDocumentAvailable()?e.closest?e.closest("li.k-treeview-item"):t.closestWithMatch(e,"li.k-treeview-item"):null},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),i="-1"===n,o=null!==n&&!i;return r.test(t)&&(o=!e.disabled&&!i),o}return!1},t.isContent=function(e){if(!i.isDocumentAvailable())return null;for(var n=e;n&&!t.match(n,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)n=n.parentNode;return n?t.match(n,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0},t.getContentElement=function(e){if(!t.isPresent(e))return null;var n=".k-treeview-leaf:not(.k-treeview-load-more-button)";return t.match(e,n)?e:e.querySelector(n)},t.isLoadMoreButton=function(e){return t.isPresent(t.closestWithMatch(e,".k-treeview-leaf.k-treeview-load-more-button"))},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.hasParent=function(e,n){return Boolean(t.closest(e,(function(e){return e===n})))},t.focusableNode=function(e){return e.nativeElement.querySelector('li[tabindex="0"]')},t.hasActiveNode=function(e,n){var i=n||t.closestNode(e);return i&&(i===e||e.tabIndex<0)},t.nodeId=function(e){return e?e.getAttribute("data-treeindex"):""},t.nodeIndex=function(e){return(e||{}).index},t.dataItemsEqual=function(e,n){return!t.isPresent(e)&&!t.isPresent(n)||t.isPresent(e)&&t.isPresent(n)&&e.item.dataItem===n.item.dataItem},t.getDataItem=function(e){return t.isPresent(e)?e.item.dataItem:e},t.isArrayWithAtLeastOneItem=function(e){return e&&Array.isArray(e)&&0!==e.length},t.filterTree=function(e,n,i,o,r){var c=i.operator,d=i.ignoreCase,u=i.mode;void 0===r&&(r=0);var p="string"==typeof o?o:o[r];e.forEach((function(e){var i=("string"==typeof c?l(p,c,d):c)(e.dataItem,n);e.isMatch=i,e.visible=i,e.containsMatches=!1,i&&a(e.parent),e.children&&e.children.length>0&&("strict"!==u&&i?s(e.children):t.filterTree(e.children,n,{operator:c,ignoreCase:d,mode:u},o,r+1))}))};var a=function(e){t.isPresent(e)&&(e.containsMatches=!0,e.visible=!0,t.isPresent(e.parent)&&!e.parent.containsMatches&&a(e.parent))},s=function(e){e.forEach((function(e){e.visible=!0,e.children&&s(e.children)}))},c={contains:function(e,t){return e.indexOf(t)>=0},doesnotcontain:function(e,t){return-1===e.indexOf(t)},startswith:function(e,t){return 0===e.lastIndexOf(t,0)},doesnotstartwith:function(e,t){return-1===e.lastIndexOf(t,0)},endswith:function(e,t){return e.indexOf(t,e.length-t.length)>=0},doesnotendwith:function(e,t){return e.indexOf(t,e.length-t.length)<0}},l=function(e,t,n){return function(i,r){return function(e,t){return function(n,i){return t?e(n.toLowerCase(),i.toLowerCase()):e(n,i)}}(c[t],n)(o.getter(e)(i),r)}};t.buildTreeIndex=function(e,n){return[e,n].filter((function(e){return t.isPresent(e)})).join("_")},t.buildTreeItem=function(e,n,i){return t.isPresent(e)?{dataItem:e,index:t.buildTreeIndex(i,n)}:null},t.fetchLoadedDescendants=function(e,n){if(!t.isPresent(e)||0===e.children.length)return[];var i=e.children;return t.isPresent(n)&&(i=i.filter(n)),i.forEach((function(e){return i=i.concat(t.fetchLoadedDescendants(e,n))})),i},t.sameValues=function(e,t){return e.size===t.size&&Array.from(e).every((function(e){return t.has(e)}))},t.getSizeClass=function(e,t){return{small:"k-"+e+"-sm",medium:"k-"+e+"-md",large:"k-"+e+"-lg"}[t]}},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return l})),n.d(t,"validatePackage",(function(){return d}));var i,o,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"];i=r,o=131,function(e){for(;--e;)i.push(i.shift())}(++o);var a=function(e,t){var n=r[e-=0];if(void 0===a.eVebMg){a.JsjtEd=function(e){for(var t=function(e){for(var t,n,i=String(e).replace(/=+$/,""),o="",r=0,a=0;n=i.charAt(a++);~n&&(t=r%4?64*t+n:n,r++%4)?o+=String.fromCharCode(255&t>>(-2*r&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],i=0,o=t.length;i<o;i++)n+="%"+("00"+t.charCodeAt(i).toString(16)).slice(-2);return decodeURIComponent(n)},a.rqrXoU={},a.eVebMg=!0}var i=a.rqrXoU[e];return void 0===i?(n=a.JsjtEd(n),a.rqrXoU[e]=n):n=i,n},s={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 l(e){}function d(e){if(c[a("0x14")](e[a("0x4")])){if(a("0x35")==a("0x35"))return c[a("0x36")](e[a("0x4")])}var t,n=e[a("0x1")]?" v"+e[a("0x1")]:"",i=e[a("0x4")]+n,o=JSON[a("0x9")](s[a("0x34")]),r=!o[a("0x26")]&&!o[a("0x38")],l=o[a("0x26")]&&typeof KendoLicensing===a("0x2b"),d=function(e,t){var n=e[a("0x8")];if(!n||!n[a("0x2d")]){if(a("0x11")==a("0x11"))return null}var i=new Set(t);return n[a("0x2a")]((function(e){if(a("0xa")!==a("0x18"))return i[a("0x14")](e[a("0x39")])}))}(o,e[a("0x2")]);if(r||l)if(a("0x29")!=a("0x29")){}else t={type:0,packageName:i,docsUrl:e[a("0x27")]};else if(a("0xf")===a("0x24")){}else if(d){if(a("0x12")!=a("0x12")){}else if(d[a("0x37")]<e[a("0x1c")])if(a("0x21")===a("0x32")){}else t={type:2,packageName:i,publishDate:u(e[a("0x1c")]),expiryDate:u(d[a("0x37")]),docsUrl:e[a("0x27")]}}else if(a("0x6")!=a("0x6")){}else t={type:1,packageName:i,docsUrl:e[a("0x27")]};if(t&&typeof console===a("0x30"))if(a("0x5")===a("0x3")){}else{var p=a("0x1b")+e[a("0xe")],h=typeof console[a("0x7")]===a("0x33");if(h)if(a("0xc")!=a("0xc")){}else console[a("0x7")](p);else if(a("0x17")!=a("0x17")){}else console[a("0x1e")](p);if(console[a("0x1e")](function(e){var t=a("0x28")+e[a("0x16")]+"\n";if(2===e[a("0x3a")])if(a("0x20")!=a("0x20")){}else t+=a("0x25")+e[a("0x15")][a("0x2c")]()+a("0xb")+e[a("0x1c")][a("0x2c")]()+".\n";else if(0===e[a("0x3a")])if(a("0x13")!==a("0x10"))t+=a("0xd");else{}else if(1===e[a("0x3a")])if(a("0x2e")===a("0x23")){}else t+=a("0x1d");return t+=a("0x31")+e[a("0x1a")]+a("0x22")}(t)),h)if(a("0x1f")!==a("0x19"))console[a("0x2f")]();else{}}var f=!t;return c[a("0x0")](e[a("0x4")],f),f}function u(e){return new Date(1e3*e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"detectMobileOS",(function(){return l})),n.d(t,"detectDesktopBrowser",(function(){return d})),n.d(t,"browser",(function(){return p})),n.d(t,"mobileOS",(function(){return h})),n.d(t,"touch",(function(){return f})),n.d(t,"msPointers",(function(){return m})),n.d(t,"pointers",(function(){return b})),n.d(t,"touchEnabled",(function(){return g})),n.d(t,"getter",(function(){return O})),n.d(t,"setter",(function(){return k}));var i=function(){return"undefined"!=typeof window},o={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},r={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},a={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},s={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},c=function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)&&t[i].test(e))return i;return void 0!==n?n:e},l=function(e){var t,n=[];for(var i in o)if(o.hasOwnProperty(i)){if(!(n=e.match(o[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var a={};return a.device=i,a.browser=c(e,s,"default"),a.name=c(i,r),a[a.name]=!0,a.majorVersion=n[2],a.minorVersion=n[3]?n[3].replace("_","."):".0",t=a.minorVersion.replace(".","").substr(0,2),a.flatVersion=a.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),a.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,a.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||a.cordova,a}return null},d=function(e){var t=null,n=[];for(var i in a)if(a.hasOwnProperty(i)&&(n=e.match(a[i]))){(t={})[i]=!0,t[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},u=i()&&window.navigator?window.navigator.userAgent:null,p=u?d(u):null,h=u?l(u):null,f=i()&&"ontouchstart"in window,m=p&&!p.chrome&&window.MSPointerEvent,b=p&&!p.chrome&&window.PointerEvent,g=h&&(f||m||b),y=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function v(e){var t=[];return e.replace(y,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),t}var _={};function O(e){if(_[e])return _[e];var t=v(e);return _[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},_[e]}_[void 0]=function(e){return e};var j={undefined:function(e){return e}},C=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function k(e){if(j[e])return j[e];var t=v(e);return j[e]=function(e,n,i){for(var o=e,r=t.length-1,a=0;a<r&&o;a++)o=o[t[a]]=o[t[a]]||C(t[a+1],i);o[t[r]]=n},j[e]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(3),s=n(4),c=n(8),l=n(51),d=n(38),u=n(23),p=n(14),h=n(11),f=n(24),m=n(15),b=n(39),g=n(16),y=n(17),v=n(18),_=n(25),O=n(26),j=n(27),C=n(7),k=[p.ExpandStateService,h.IndexBuilderService,j.TreeViewLookupService,f.LoadingNotificationService,b.NodeChildrenService,m.NavigationService,O.SelectionService,d.DataChangeNotificationService,a.LocalizationService,{provide:a.L10N_PREFIX,useValue:"kendo.treeview"},{provide:v.DataBoundComponent,useExisting:o.forwardRef((function(){return w}))},{provide:_.ExpandableComponent,useExisting:o.forwardRef((function(){return w}))}],w=function(){function e(e,t,n,i,r,a,d,p,h,f,m){var b=this;this.element=e,this.changeDetectorRef=t,this.expandService=n,this.navigationService=i,this.nodeChildrenService=r,this.selectionService=a,this.treeViewLookupService=d,this.ngZone=p,this.renderer=h,this.dataChangeNotification=f,this.localization=m,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return b.data},this.childrenLoaded=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.expand=new o.EventEmitter,this.collapse=new o.EventEmitter,this.nodeDragStart=new o.EventEmitter,this.nodeDrag=new o.EventEmitter,this.filterStateChange=new o.EventEmitter,this.nodeDrop=new o.EventEmitter,this.nodeDragEnd=new o.EventEmitter,this.addItem=new o.EventEmitter,this.removeItem=new o.EventEmitter,this.checkedChange=new o.EventEmitter,this.selectionChange=new o.EventEmitter,this.filterChange=new o.EventEmitter,this.nodeClick=new o.EventEmitter,this.nodeDblClick=new o.EventEmitter,this.trackBy=u.trackBy,this.isDisabled=u.isDisabled,this.isVisible=u.isVisible,this.navigable=!0,this.children=function(){return s.of([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new s.BehaviorSubject([]),this._animate=!0,this._size="medium",this.subscriptions=new s.Subscription,this.domSubscriptions=[],c.validatePackage(l.packageMetadata)}return Object.defineProperty(e.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animate",{get:function(){return!this._animate},set:function(e){this._animate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeTemplateRef",{get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonTemplateRef",{get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this._hasChildren||u.hasChildren},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this._isChecked||u.isChecked},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||u.isExpanded},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||u.isSelected},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.renderer.removeClass(this.element.nativeElement,C.getSizeClass("treeview",this.size)),e&&this.renderer.addClass(this.element.nativeElement,C.getSizeClass("treeview",e)),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.navigationService.navigable=Boolean(this.navigable),r.anyChanged(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(e){return e()}))},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(t){return e.childrenLoaded.emit(t)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(t){var n=t.index,i=t.dataItem;return t.expand?e.expand.emit({index:n,dataItem:i}):e.collapse.emit({index:n,dataItem:i})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(t){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(t))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(t){r.hasObservers(e.selectionChange)&&e.ngZone.run((function(){e.selectionChange.emit(t)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){e.attachDomHandlers()})),this.size&&this.renderer.addClass(this.element.nativeElement,C.getSizeClass("treeview",this.size))},e.prototype.blur=function(){if(r.isDocumentAvailable()){var e=C.focusableNode(this.element);document.activeElement===e&&e.blur()}},e.prototype.focus=function(e){var t=e||C.nodeIndex(this.navigationService.focusableItem);this.navigationService.activateIndex(t);var n=C.focusableNode(this.element);n&&n.focus()},e.prototype.itemLookup=function(e){return this.treeViewLookupService.itemLookup(e)},e.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},e.prototype.expandNode=function(e,t){this.expandService.expand(t,e)},e.prototype.collapseNode=function(e,t){this.expandService.collapse(t,e)},e.prototype.getNodePageSize=function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)},e.prototype.setNodePageSize=function(e,t){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,t)},e.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},e.prototype.attachDomHandlers=function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))},e.prototype.focusHandler=function(e){var t,n=this;C.match(e.target,".k-treeview-item")?t=e.target:C.isFocusable(e.target)||(t=C.closestNode(e.target)),t&&(this.navigationService.activateIndex(C.nodeId(e.target)),!this.isActive&&r.hasObservers(this.onFocus)&&this.ngZone.run((function(){n.onFocus.emit()})),this.isActive=!0)},e.prototype.blurHandler=function(e){var t=this;!this.isActive||!C.match(e.target,".k-treeview-item")||e.relatedTarget&&C.match(e.relatedTarget,".k-treeview-item")&&C.hasParent(e.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,r.hasObservers(this.onBlur)&&this.ngZone.run((function(){t.onBlur.emit()})))},e.prototype.clickHandler=function(e){var t=this,n=e.target;if(("contextmenu"!==e.type||r.hasObservers(this.nodeClick))&&("click"!==e.type||r.hasObservers(this.nodeClick)||r.hasObservers(this.selectionChange)||C.isLoadMoreButton(n))&&("dblclick"!==e.type||r.hasObservers(this.nodeDblClick))&&!C.isFocusable(n)&&(C.isContent(n)||C.isLoadMoreButton(n))&&C.hasParent(n,this.element.nativeElement)){var i=C.nodeId(C.closestNode(n));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run((function(){var n=t.treeViewLookupService.itemLookup(i);if("click"===e.type){if(t.navigationService.model.findNode(i).loadMoreButton)return void t.navigationService.notifyLoadMore(i);t.navigationService.selectIndex(i)}("dblclick"===e.type?t.nodeDblClick:t.nodeClick).emit({item:n.item,originalEvent:e,type:e.type})}))}},e.prototype.keydownHandler=function(e){var t=this;this.isActive&&this.navigable&&this.ngZone.run((function(){t.navigationService.move(e)}))},e.prototype.verifyLoadMoreService=function(){if(o.isDevMode()&&!C.isPresent(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")},e.prototype.registerLookupItems=function(e,t){var n=this;if(void 0===t&&(t=null),C.isPresent(e)&&0!==e.length){var i=C.nodeIndex(t),o=e.map((function(e,t){return C.buildTreeItem(e,t,i)}));C.isPresent(t)&&this.treeViewLookupService.registerChildren(i,o),o.forEach((function(e){n.treeViewLookupService.registerItem(e,t),n.hasChildren(e.dataItem)&&n.children(e.dataItem).subscribe((function(t){return n.registerLookupItems(t,e)}))}))}},i.__decorate([o.HostBinding("class.k-treeview"),i.__metadata("design:type",Boolean)],e.prototype,"classNames",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],e.prototype,"direction",null),i.__decorate([o.ViewChild("assetsContainer",{read:o.ViewContainerRef,static:!0}),i.__metadata("design:type",o.ViewContainerRef)],e.prototype,"assetsContainer",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"filterInputPlaceholder",void 0),i.__decorate([o.Input(),o.HostBinding("@.disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"animate",null),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"childrenLoaded",void 0),i.__decorate([o.Output("blur"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),i.__decorate([o.Output("focus"),i.__metadata("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"expand",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"collapse",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDragStart",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDrag",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"filterStateChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDrop",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDragEnd",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"addItem",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"removeItem",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"filterChange",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeClick",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"nodeDblClick",void 0),i.__decorate([o.ContentChild(g.NodeTemplateDirective,{static:!1}),i.__metadata("design:type",g.NodeTemplateDirective)],e.prototype,"nodeTemplateQuery",void 0),i.__decorate([o.Input("nodeTemplate"),i.__metadata("design:type",g.NodeTemplateDirective),i.__metadata("design:paramtypes",[g.NodeTemplateDirective])],e.prototype,"nodeTemplateRef",null),i.__decorate([o.ContentChild(y.LoadMoreButtonTemplateDirective,{static:!1}),i.__metadata("design:type",y.LoadMoreButtonTemplateDirective)],e.prototype,"loadMoreButtonTemplateQuery",void 0),i.__decorate([o.Input("loadMoreButtonTemplate"),i.__metadata("design:type",y.LoadMoreButtonTemplateDirective),i.__metadata("design:paramtypes",[y.LoadMoreButtonTemplateDirective])],e.prototype,"loadMoreButtonTemplateRef",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],e.prototype,"nodes",null),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"hasChildren",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"filterable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"filter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"size",null),e=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:k,selector:"kendo-treeview",template:'\n <span\n class="k-treeview-filter"\n *ngIf="filterable"\n >\n <kendo-textbox\n [size]="size"\n [value]="filter"\n [clearButton]="true"\n (valueChange)="filterChange.emit($event)"\n [placeholder]="filterInputPlaceholder"\n >\n <ng-template kendoTextBoxPrefixTemplate>\n <span class="k-input-icon k-icon k-i-search"></span>\n </ng-template>\n </kendo-textbox>\n </span>\n <ul class="k-treeview-lines"\n kendoTreeViewGroup\n role="group"\n [size]="size"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef?.templateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef?.templateRef"\n [textField]="textField"\n [nodes]="fetchNodes"\n [loadMoreService]="loadMoreService"\n [trackBy]="trackBy"\n >\n </ul>\n <ng-container #assetsContainer></ng-container>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.ChangeDetectorRef,p.ExpandStateService,m.NavigationService,b.NodeChildrenService,O.SelectionService,j.TreeViewLookupService,o.NgZone,o.Renderer2,d.DataChangeNotificationService,a.LocalizationService])],e)}();t.TreeViewComponent=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(){this.INDEX_SEPARATOR="_"}return e.prototype.nodeIndex=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),""+t+(t?this.INDEX_SEPARATOR:"")+e},e.prototype.indexForLevel=function(e,t){return e.split(this.INDEX_SEPARATOR).slice(0,t).join(this.INDEX_SEPARATOR)},e.prototype.lastLevelIndex=function(e){void 0===e&&(e="");var t=e.split(this.INDEX_SEPARATOR);return t.length?parseInt(t[t.length-1],10):NaN},e.prototype.level=function(e){return e.split(this.INDEX_SEPARATOR).length},e=i.__decorate([o.Injectable()],e)}();t.IndexBuilderService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(40),t),i.__exportStar(n(41),t),i.__exportStar(n(57),t),i.__exportStar(n(33),t),i.__exportStar(n(42),t),i.__exportStar(n(43),t),i.__exportStar(n(44),t)},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(){this.changes=new r.Subject}return e.prototype.expand=function(e,t){this.changes.next({dataItem:t,index:e,expand:!0})},e.prototype.collapse=function(e,t){this.changes.next({dataItem:t,index:e,expand:!1})},e=i.__decorate([o.Injectable()],e)}();t.ExpandStateService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(3),s=n(4),c=n(52),l=n(7),d=function(){function e(e){var t,n=this;this.localization=e,this.expands=new s.Subject,this.moves=new s.Subject,this.checks=new s.Subject,this.selects=new s.Subject,this.loadMore=new s.Subject,this.navigable=!0,this.actions=((t={})[r.Keys.ArrowUp]=function(){return n.activate(n.model.findVisiblePrev(n.focusableItem))},t[r.Keys.ArrowDown]=function(){return n.activate(n.model.findVisibleNext(n.focusableItem))},t[r.Keys.ArrowLeft]=function(){return!n.isLoadMoreButton&&n.expand({expand:n.localization.rtl,intercept:n.localization.rtl?n.moveToFirstVisibleChild:n.moveToParent})},t[r.Keys.ArrowRight]=function(){return!n.isLoadMoreButton&&n.expand({expand:!n.localization.rtl,intercept:n.localization.rtl?n.moveToParent:n.moveToFirstVisibleChild})},t[r.Keys.Home]=function(){return n.activate(n.model.firstVisibleNode())},t[r.Keys.End]=function(){return n.activate(n.model.lastVisibleNode())},t[r.Keys.Enter]=function(){return n.handleEnter()},t[r.Keys.Space]=function(){return n.handleSpace()},t),this.isFocused=!1,this._model=new c.NavigationModel,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return l.nodeIndex(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),e.prototype.activate=function(e){this.navigable&&e&&!this.isActive(l.nodeIndex(e))&&(this.isFocused=!0,this.activeItem=e||this.activeItem,this.notifyMove())},e.prototype.activateParent=function(e){this.activate(this.model.findParent(e))},e.prototype.activateIndex=function(e){e&&this.activate(this.model.findNode(e))},e.prototype.activateClosest=function(e){e&&l.nodeIndex(this.focusableItem)===e&&(this.activeItem=this.model.closestNode(e),this.notifyMove())},e.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},e.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},e.prototype.checkIndex=function(e){this.isDisabled(e)||this.checks.next(e)},e.prototype.selectIndex=function(e){this.isDisabled(e)||this.selects.next(e)},e.prototype.notifyLoadMore=function(e){l.isPresent(e)&&this.loadMore.next(e)},e.prototype.isActive=function(e){return!!e&&(this.isFocused&&this.activeIndex===e)},e.prototype.isFocusable=function(e){return l.nodeIndex(this.focusableItem)===e},e.prototype.isDisabled=function(e){return this.model.findNode(e).disabled},e.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var r=this.model.findNode(t);l.isPresent(r)&&(this.model.unregisterItem(r.id,r.index),this.isActive(t)&&this.deactivate()),this.model.registerItem(e,t,n,i,o)},e.prototype.unregisterItem=function(e,t){this.isActive(t)&&this.activateParent(t),this.model.unregisterItem(e,t)},e.prototype.move=function(e){if(this.navigable){var t=this.actions[e.keyCode];t&&(t(),e.preventDefault())}},e.prototype.expand=function(e){var t=e.expand,n=e.intercept,i=l.nodeIndex(this.activeItem);i&&!n(i)&&this.notifyExpand(t)},e.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(l.nodeIndex(this.activeItem))),!0)},e.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(l.nodeIndex(this.activeItem))),!0)},e.prototype.notifyExpand=function(e){this.expands.next(this.navigationState(e))},e.prototype.notifyMove=function(){this.moves.next(this.navigationState())},e.prototype.navigationState=function(e){return void 0===e&&(e=!1),{expand:e,index:this.activeIndex,isFocused:this.isFocused}},e.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},e.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},e=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[a.LocalizationService])],e)}();t.NavigationService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTreeViewNodeTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.NodeTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.LoadMoreButtonTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(){}return e=i.__decorate([o.Injectable()],e)}();t.DataBoundComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n(2),s=n(7),c=n(12),l=(i=function(){if(!a.isDocumentAvailable()||!s.isPresent(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},r=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r||(o=i.apply(void 0,e),r=!0),o});t.getContainerOffset=function(e){if(!e||!l())return{left:0,top:0};for(var t=e.parentElement;t&&"none"===window.getComputedStyle(t).transform;)t=t.parentElement;if(t){var n=t.getBoundingClientRect();return{left:n.left-t.scrollLeft,top:n.top-t.scrollTop}}return{left:0,top:0}},t.getDropAction=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return c.DropAction.Invalid;switch(e){case c.DropPosition.Over:return c.DropAction.Add;case c.DropPosition.Before:return s.isPresent(s.closestNode(t).previousElementSibling)?c.DropAction.InsertMiddle:c.DropAction.InsertTop;case c.DropPosition.After:return s.isPresent(s.closestNode(t).nextElementSibling)?c.DropAction.InsertMiddle:c.DropAction.InsertBottom;default:return c.DropAction.Invalid}},t.getDropPosition=function(e,t,n,i,o){if(s.isPresent(e)&&s.isPresent(t)&&s.isPresent(i)&&s.isPresent(o)){var r=s.closestWithMatch(t,".k-treeview-mid");if(s.isPresent(r)){var a=s.getContentElement(r),l=s.hasParent(r,s.closestNode(e));if(s.isPresent(a)&&a!==e&&!l){var d=a.getBoundingClientRect(),u=d.height/(s.isContent(t)?4:2),p=n-o.top,h=d.top-o.top;return p<h+u?c.DropPosition.Before:p>=h+d.height-u?c.DropPosition.After:c.DropPosition.Over}}}},t.treeItemFromEventTarget=function(e,t){if(!s.isPresent(e)||!s.isPresent(t))return null;var n=s.closestNode(t),i=s.nodeId(n),o=e.itemLookup(i);return s.isPresent(o)&&s.isPresent(o.item.dataItem)?o:null},t.collapseEmptyParent=function(e,t,n){s.isPresent(e)&&0===t.length&&n.isExpanded(e.item.dataItem,e.item.index)&&n.collapseNode(e.item.dataItem,e.item.index)},t.expandDropTarget=function(e,t){t.isExpanded(e.item.dataItem,e.item.index)||t.expandNode(e.item.dataItem,e.item.index)},t.getDropTarget=function(e){return a.isDocumentAvailable()&&s.isPresent(document.elementFromPoint)?document.elementFromPoint(e.clientX,e.clientY):e.target},t.updateMovedItemIndex=function(e,t){var n=e.split("_"),i=t.split("_");if(n.length<i.length)return e;var o=i.length-1,r=i.slice(0,o).join("_"),a=n.slice(0,o).join("_"),s=i.length-1,c=Number(i[s]),l=Number(n[s]);return r===a&&l>c?(n[s]=String(l-1),n.join("_")):e};var d=new RegExp("(auto|scroll)");t.getScrollableContainer=function(e){for(;s.isPresent(e)&&"HTML"!==e.nodeName;){var t=e.scrollHeight>e.clientHeight,n=d.test(getComputedStyle(e).overflowY);if(t&&n)return e;e=e.parentNode}return e};var u=function(e){return Math.floor(e.scrollTop)<=0},p=function(e){return Math.ceil(e.scrollTop)>=e.scrollHeight-e.clientHeight};t.scrollElementBy=function(e,t,n){if(s.isPresent(e)&&a.isDocumentAvailable())for(var i=e.scrollTop,o=t,r=0;i===e.scrollTop&&(n!==c.ScrollDirection.Up||!u(e))&&(n!==c.ScrollDirection.Down||!p(e))&&r<20;)e.scrollTop+=o*n,o+=1,r+=1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(37),s=n(58),c=n(59),l=n(21),d=n(22),u=n(19),p=n(7),h=n(10),f=n(12),m={enabled:!0,step:1,interval:1},b=function(){function e(e,t,n,i,o){this.element=e,this.zone=t,this.treeview=n,this.dragClueService=i,this.dropHintService=o,this.allowCopy=!1,this.dropZoneTreeViews=[],this.startDragAfter=5,this.autoScroll=!0,this.userSelectStyle="none",this.containerOffset={top:0,left:0},this.treeview.touchActions=!1}return Object.defineProperty(e.prototype,"scrollSettings",{get:function(){var e="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},m,e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.initalizeDraggable(),this.dragClueService.initialize(this.treeview.assetsContainer,this.dragClueTemplate&&this.dragClueTemplate.templateRef),this.dropHintService.initialize(this.treeview.assetsContainer,this.dropHintTemplate&&this.dropHintTemplate.templateRef)},e.prototype.ngOnDestroy=function(){this.draggable.destroy()},e.prototype.handlePress=function(e){var t=e.originalEvent;p.isContent(t.target)&&(this.draggedItem=p.closestWithMatch(t.target,".k-treeview-leaf"),this.pendingDragStartEvent=t)},e.prototype.handleDrag=function(e){var t=this,n=e.originalEvent,i=e.clientX,o=e.clientY;if(this.shouldInitiateDragStart({clientX:i,clientY:o})&&this.initiateDragStart(),p.isPresent(this.draggedItem)&&!p.isPresent(this.pendingDragStartEvent)){var a=u.getDropTarget(n);r.hasObservers(this.treeview.nodeDrag)&&this.zone.run((function(){return t.notifyDrag(n,a)}));var s=this.getTargetTreeView(a),c=u.getDropPosition(this.draggedItem,a,o,s,this.containerOffset),l=p.closestWithMatch(a,".k-treeview-mid"),d=u.getDropAction(c,a),h=u.treeItemFromEventTarget(this.treeview,this.draggedItem),f=u.treeItemFromEventTarget(s,a);this.updateDropHintState(c,l,d,h,f),this.updateDragClueState(d,i,o,h,f),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}},e.prototype.handleRelease=function(e){var t=this,n=e.originalEvent,i=e.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!p.isPresent(this.draggedItem)||p.isPresent(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var o=u.getDropTarget(n),a=this.treeview,s=this.getTargetTreeView(o),c=u.getDropPosition(this.draggedItem,o,i,this.getTargetTreeView(o),this.containerOffset),l=u.treeItemFromEventTarget(a,this.draggedItem),d=u.treeItemFromEventTarget(s,o);p.isPresent(d)&&p.isPresent(c)?this.zone.run((function(){return t.notifyDrop({sourceItem:l,destinationItem:d,dropPosition:c,sourceTree:a,destinationTree:s},n)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),r.hasObservers(this.treeview.nodeDragEnd)&&this.zone.run((function(){return t.notifyDragEnd({sourceItem:l,destinationItem:d,originalEvent:n})})),this.dropHintService.hide(),this.draggedItem=null},e.prototype.updateDropHintState=function(e,t,n,i,o){if(p.isPresent(t)&&e!==f.DropPosition.Over&&p.isPresent(e)){var r=t.getBoundingClientRect(),a=e===f.DropPosition.Before?r.top:r.top+r.height;this.dropHintService.updateDropHintData(n,i,o),this.dropHintService.move(r.left-this.containerOffset.left,a-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},e.prototype.updateDragClueState=function(e,t,n,i,o){this.dragClueService.move(t-this.containerOffset.left,n-this.containerOffset.top),this.dragClueService.updateDragClueData(e,i,o),this.dragClueService.show()},e.prototype.initalizeDraggable=function(){var e=this;this.draggable=new a.default({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))},e.prototype.notifyDragStart=function(e,t){var n=u.treeItemFromEventTarget(this.treeview,t),i=new f.TreeItemDragStartEvent({sourceItem:n,originalEvent:e});return this.treeview.nodeDragStart.emit(i),i},e.prototype.notifyDrag=function(e,t){var n={sourceItem:u.treeItemFromEventTarget(this.treeview,this.draggedItem),destinationItem:u.treeItemFromEventTarget(this.getTargetTreeView(t),t),originalEvent:e};this.treeview.nodeDrag.emit(n)},e.prototype.notifyDrop=function(e,t){var n=new f.TreeItemDropEvent(e,t);e.destinationTree.nodeDrop.emit(n),this.disableAnimationsForNextTick(e.destinationTree),e.sourceTree!==e.destinationTree&&this.disableAnimationsForNextTick(e.sourceTree),!n.isDefaultPrevented()&&n.isValid?(this.dragClueService.hide(),e.destinationTree.addItem.emit(e),t.ctrlKey&&this.allowCopy||e.sourceTree.removeItem.emit(e)):n.isDefaultPrevented()?this.dragClueService.hide():n.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},e.prototype.notifyDragEnd=function(e){this.treeview.nodeDragEnd.emit(e)},e.prototype.getTargetTreeView=function(e){var t=this.treeview.element.nativeElement.tagName,n=p.closestWithMatch(e,t);return[this.treeview].concat(this.dropZoneTreeViews).find((function(e){return p.isPresent(e)&&e.element.nativeElement===n}))},e.prototype.disableAnimationsForNextTick=function(e){e.animate||(e.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return e.animate=!0}))})))},e.prototype.shouldInitiateDragStart=function(e){return!!p.isPresent(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-e.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-e.clientY,2))>=this.startDragAfter},e.prototype.initiateDragStart=function(){var e=this;if(r.hasObservers(this.treeview.nodeDragStart)&&this.zone.run((function(){return e.notifyDragStart(e.pendingDragStartEvent,u.getDropTarget(e.pendingDragStartEvent))})).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=u.getContainerOffset(this.draggedItem),this.pendingDragStartEvent=null},i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"allowCopy",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"dropZoneTreeViews",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"startDragAfter",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"autoScroll",void 0),i.__decorate([o.ContentChild(l.DragClueTemplateDirective,{static:!1}),i.__metadata("design:type",l.DragClueTemplateDirective)],e.prototype,"dragClueTemplate",void 0),i.__decorate([o.ContentChild(d.DropHintTemplateDirective,{static:!1}),i.__metadata("design:type",d.DropHintTemplateDirective)],e.prototype,"dropHintTemplate",void 0),i.__decorate([o.HostBinding("style.user-select"),o.HostBinding("style.-ms-user-select"),o.HostBinding("style.-moz-user-select"),o.HostBinding("style.-webkit-user-select"),i.__metadata("design:type",String)],e.prototype,"userSelectStyle",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewDragAndDrop]",providers:[s.DragClueService,c.DropHintService]}),i.__metadata("design:paramtypes",[o.ElementRef,o.NgZone,h.TreeViewComponent,s.DragClueService,c.DropHintService])],e)}();t.DragAndDropDirective=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTreeViewDragClueTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.DragClueTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.templateRef=e}return e=i.__decorate([o.Directive({selector:"[kendoTreeViewDropHintTemplate]"}),i.__param(0,o.Optional()),i.__metadata("design:paramtypes",[o.TemplateRef])],e)}();t.DropHintTemplateDirective=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=function(){return!1},t.isChecked=function(){return"none"},t.isDisabled=function(){return!1},t.isExpanded=function(){return!0},t.isSelected=function(){return!1},t.isVisible=function(){return!0},t.trackBy=function(e,t){return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(){this.changes=new r.Subject}return e.prototype.notifyLoaded=function(e){this.changes.next(e)},e=i.__decorate([o.Injectable()],e)}();t.LoadingNotificationService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(){}return e=i.__decorate([o.Injectable()],e)}();t.ExpandableComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(){this.changes=new r.Subject}return e.prototype.isFirstSelected=function(e){return this.firstIndex===e},e.prototype.setFirstSelected=function(e,t){this.firstIndex===e&&!1===t?this.firstIndex=null:!this.firstIndex&&t&&(this.firstIndex=e)},e.prototype.select=function(e,t){this.changes.next({dataItem:t,index:e})},e=i.__decorate([o.Injectable()],e)}();t.SelectionService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=/\d+$/,s=function(){function e(){this.map=new Map}return e.prototype.reset=function(){this.map.clear()},e.prototype.registerItem=function(e,t){var n={children:[],item:e,parent:this.item(r.nodeIndex(t))};this.map.set(e.index,n)},e.prototype.registerChildren=function(e,t){var n=this.item(e);n&&(n.children=t)},e.prototype.unregisterItem=function(e,t){var n=this.item(e);n&&n.item.dataItem===t&&(this.map.delete(e),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter((function(e){return e.dataItem!==t}))))},e.prototype.replaceItem=function(e,t,n){t&&(this.unregisterItem(e,t.dataItem),this.registerItem(t,n),this.addToParent(t,n))},e.prototype.itemLookup=function(e){var t=this.item(e);return t?{children:this.mapChildren(t.children),item:t.item,parent:t.parent}:null},e.prototype.hasItem=function(e){return this.map.has(e)},e.prototype.item=function(e){return this.map.get(e)||null},e.prototype.addToParent=function(e,t){if(t){var n=this.item(t.index),i=parseInt(a.exec(e.index)[0],10);n.children=n.children||[],n.children.splice(i,0,e)}},e.prototype.mapChildren=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){var n=t.item(e.index),i=n.item,o=n.parent,r=n.children;return{children:t.mapChildren(r),item:i,parent:o}}))},e=i.__decorate([o.Injectable()],e)}();t.TreeViewLookupService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(10),a=n(7),s=n(4),c=n(6),l=n(2),d=function(){function e(e,t){var n=this;this.treeView=e,this.zone=t,this.checkedKeysChange=new o.EventEmitter,this.subscriptions=new s.Subscription,this.checkActions={multiple:function(e){return n.checkMultiple(e)},single:function(e){return n.checkSingle(e)}},this.state=new Set,this.subscriptions.add(this.treeView.checkedChange.subscribe((function(e){return n.check(e)})));var i=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(c.filter((function(){return n.options.checkChildren&&n.treeView.loadOnDemand})),c.tap((function(e){return i.push(e)})),c.switchMap((function(){return n.zone.onStable.pipe(c.take(1))}))).subscribe((function(){return n.addCheckedItemsChildren(i)}))),this.treeView.isChecked=this.isItemChecked.bind(this)}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.treeView.isChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!a.isPresent(this.checkable)||"string"==typeof this.checkable)return e;var t=a.isBoolean(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick()),l.isChanged("checkedKeys",e,!1)&&e.checkedKeys.currentValue!==this.lastChange&&(this.state=new Set(e.checkedKeys.currentValue))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},e.prototype.isItemChecked=function(e,t){return this.checkKey?this.state.has(this.itemKey({dataItem:e,index:t}))?"checked":"none":this.isIndexChecked(t)},e.prototype.isIndexChecked=function(e){var t=Array.from(this.state).filter(function(e){return function(t){return e===t||!!t.split&&t.split("_").reduce((function(t,n){var i=t.key,o=t.result;return e===(i+=n)||o?{result:!0}:{key:i+="_",result:!1}}),{key:"",result:!1}).result}}(e));if(function(e,t){return e.filter((function(e){return e===t})).length>0}(t,e))return"checked";var n=this.options,i=n.mode,o=n.checkParents;return"multiple"===i&&o&&t.length?"indeterminate":"none"},e.prototype.itemKey=function(e){return a.isPresent(this.checkKey)?"string"==typeof this.checkKey&&a.isPresent(e.dataItem)?e.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(e):void 0:e.index},e.prototype.check=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.checkActions[i]||a.noop;n&&o(e)},e.prototype.checkSingle=function(e){var t=this.itemKey(e.item),n=this.state.has(t);this.state.clear(),n||this.state.add(t),this.notify()},e.prototype.checkMultiple=function(e){this.checkNode(e),this.options.checkParents&&this.checkParents(e.parent),this.notify()},e.prototype.toggleCheckOnClick=function(){var e=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(t){if("click"===t.type){var n=e.treeView.itemLookup(t.item.index);e.check(n)}})))},e.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},e.prototype.checkNode=function(e){var t=this;if(a.isPresent(e.item.dataItem)&&!this.treeView.isDisabled(e.item.dataItem,e.item.index)){var n=this.itemKey(e.item);if(a.isPresent(n)){var i=[n];if(this.options.checkChildren){var o=a.fetchLoadedDescendants(e,(function(e){var n=e.item;return t.treeView.isVisible(n.dataItem,n.index)&&!t.treeView.isDisabled(n.dataItem,n.index)})).map((function(e){var n=e.item;return t.itemKey(n)}));i.push.apply(i,o)}var r=!this.state.has(n);i.forEach((function(e){r?t.state.add(e):t.state.delete(e)}))}}},e.prototype.checkParents=function(e){var t=this;if(a.isPresent(e))for(var n=e;n;){var i=this.itemKey(n.item);n.children.every((function(e){return t.state.has(t.itemKey(e))}))?this.state.add(i):this.state.delete(i),n=n.parent}},e.prototype.notify=function(){this.lastChange=Array.from(this.state),this.checkedKeysChange.emit(this.lastChange)},e.prototype.addCheckedItemsChildren=function(e){var t=this;if(a.isPresent(e)&&0!==e.length){var n=this.state.size;e.forEach((function(e){var n=t.itemKey(e.item);t.state.has(n)&&e.children.forEach((function(n){t.treeView.isDisabled(e.item.dataItem,e.item.index)||t.treeView.isDisabled(n.dataItem,n.index)||t.state.add(t.itemKey(n))}))})),n!==this.state.size&&this.zone.run((function(){return t.notify()}))}},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isChecked",null),i.__decorate([o.Input("checkBy"),i.__metadata("design:type",Object)],e.prototype,"checkKey",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"checkedKeys",void 0),i.__decorate([o.Input("kendoTreeViewCheckable"),i.__metadata("design:type",Object)],e.prototype,"checkable",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkedKeysChange",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewCheckable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent,o.NgZone])],e)}();t.CheckDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(10),a=function(){function e(e,t){var n=this;this.treeView=e,this.cdr=t,this.disabledKeys=[],this.treeView.isDisabled=function(e,t){return n.disabledKeys.indexOf(n.itemKey({dataItem:e,index:t}))>-1}}return Object.defineProperty(e.prototype,"isDisabled",{set:function(e){this.treeView.isDisabled=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){void 0===e&&(e={});var t=e.disabledKeys;t&&!t.firstChange&&this.cdr.markForCheck()},e.prototype.itemKey=function(e){return this.disableKey?"string"==typeof this.disableKey?e.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(e):void 0:e.index},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isDisabled",null),i.__decorate([o.Input("kendoTreeViewDisable"),i.__metadata("design:type",Object)],e.prototype,"disableKey",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"disabledKeys",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewDisable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent,o.ChangeDetectorRef])],e)}();t.DisableDirective=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(25),a=n(4),s=n(6),c=n(7),l=n(2),d={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},u=function(){function e(e){var t=this;this.component=e,this.expandOnFilter=!1,this.expandedKeysChange=new o.EventEmitter,this.subscriptions=new a.Subscription,this.state=new Set,this.originalExpandedKeys=new Set,this.isFiltered=!1,this.updateExpandedNodes=function(e,n,i){(n.containsMatches||n.isMatch&&i&&c.isArrayWithAtLeastOneItem(n.children))&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),c.isArrayWithAtLeastOneItem(n.children)&&n.children.forEach((function(n){t.updateExpandedNodes(e,n,i)}))},this.getEveryExpandKey=function(e,n){c.isArrayWithAtLeastOneItem(n.children)&&e.push(t.itemKey({dataItem:n.dataItem,index:n.index})),c.isArrayWithAtLeastOneItem(n.children)&&n.children.forEach((function(n){t.getEveryExpandKey(e,n)}))},this.subscriptions.add(a.merge(this.component.expand.pipe(s.map((function(e){return i.__assign({expand:!0},e)}))),this.component.collapse.pipe(s.map((function(e){return i.__assign({expand:!1},e)})))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(e,n){return t.state.has(t.itemKey({dataItem:e,index:n}))}}return Object.defineProperty(e.prototype,"isExpanded",{set:function(e){this.component.isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterExpandSettings",{get:function(){var e=c.isBoolean(this.expandOnFilter)?{enabled:this.expandOnFilter}:i.__assign({},this.expandOnFilter,{enabled:!0});return Object.assign({},d,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){l.isChanged("expandedKeys",e,!1)&&e.expandedKeys.currentValue!==this.lastChange&&(this.state=new Set(e.expandedKeys.currentValue))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){if(this.expandKey){if("string"==typeof this.expandKey)return e.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(e)}return e.index},e.prototype.toggleExpand=function(e){var t=e.index,n=e.dataItem,i=e.expand,o=this.itemKey({index:t,dataItem:n}),r=this.state.has(o),a=!1;r&&!i?(this.state.delete(o),a=!0):!r&&i&&(this.state.add(o),a=!0),a&&this.notify()},e.prototype.handleAutoExpand=function(e){var t=this,n=e.nodes,i=e.matchCount,o=e.term;if(this.filterExpandSettings.enabled){var r=this.filterExpandSettings,a=r.maxAutoExpandResults,s=r.expandMatches,l=r.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=new Set(this.state)),this.isFiltered&&!o||-1!==a&&i>a){switch(l){case"initial":c.sameValues(this.state,this.originalExpandedKeys)||(this.state=this.originalExpandedKeys,this.notify());break;case"all":this.state=new Set(n.reduce((function(e,n){return t.getEveryExpandKey(e,n),e}),[])),this.notify();break;case"unchanged":break;case"none":default:0!==this.state.size&&(this.state.clear(),this.notify())}this.isFiltered=!1}else{var d=new Set(n.reduce((function(e,n){return t.updateExpandedNodes(e,n,s),e}),[]));c.sameValues(this.state,d)||(this.state=d,this.notify()),this.isFiltered=!0}}},e.prototype.notify=function(){this.lastChange=Array.from(this.state),this.expandedKeysChange.emit(this.lastChange)},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isExpanded",null),i.__decorate([o.Input("expandBy"),i.__metadata("design:type",Object)],e.prototype,"expandKey",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"expandOnFilter",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"expandedKeysChange",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"expandedKeys",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewExpandable]"}),i.__metadata("design:paramtypes",[r.ExpandableComponent])],e)}();t.ExpandDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(10),a=n(7),s=n(4),c=n(2),l=function(){function e(e){var t=this;this.treeView=e,this.selectedKeysChange=new o.EventEmitter,this.subscriptions=new s.Subscription,this.selectActions={multiple:function(e){return t.selectMultiple(e)},single:function(e){return t.selectSingle(e)}},this.state=new Set,this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(e,n){return t.state.has(t.itemKey({dataItem:e,index:n}))}}return Object.defineProperty(e.prototype,"isSelected",{set:function(e){this.treeView.isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){var e={enabled:!0,mode:"single"};if(!a.isPresent(this.selection)||"string"==typeof this.selection)return e;var t=a.isBoolean(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(e,t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){c.isChanged("selectedKeys",e,!1)&&e.selectedKeys.currentValue!==this.lastChange&&(this.state=new Set(e.selectedKeys.currentValue))},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.itemKey=function(e){return this.selectKey?"string"==typeof this.selectKey?e.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(e):void 0:e.index},e.prototype.select=function(e){var t=this.options,n=t.enabled,i=t.mode,o=this.selectActions[i]||a.noop;n&&o(e)},e.prototype.selectSingle=function(e){var t=this.itemKey(e);this.state.has(t)||(this.state.clear(),this.state.add(t),this.notify())},e.prototype.selectMultiple=function(e){var t=this.itemKey(e),n=this.state.has(t);a.isPresent(t)&&(n?this.state.delete(t):this.state.add(t),this.notify())},e.prototype.notify=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)},i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isSelected",null),i.__decorate([o.Input("selectBy"),i.__metadata("design:type",Object)],e.prototype,"selectKey",void 0),i.__decorate([o.Input("kendoTreeViewSelectable"),i.__metadata("design:type",Object)],e.prototype,"selection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Array)],e.prototype,"selectedKeys",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"selectedKeysChange",void 0),i.__decorate([o.HostBinding("attr.aria-multiselectable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"getAriaMultiselectable",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewSelectable]"}),i.__metadata("design:paramtypes",[r.TreeViewComponent])],e)}();t.SelectDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(9),a=n(2),s=n(18),c=n(7),l=n(4),d=n(56),u=n(20),p=n(23),h=n(11),f=n(49),m=new h.IndexBuilderService,b=function(e,t,n,i){return void 0===n&&(n=null),void 0===i&&(i=""),c.isArrayWithAtLeastOneItem(e)?e.map((function(e,o){var a=m.nodeIndex(o.toString(),i),s={dataItem:e,index:a,parent:n,visible:!0};return s.children=b(r.getter(t)(e),t,s,a),s})):[]},g=function(e){function t(t,n){var i=e.call(this,t)||this;i.component=t,i.dragAndDropDirective=n,i.loadOnDemand=!0,i.originalData=[];var o=!c.isPresent(i.dragAndDropDirective);return i.component.isVisible=o?function(e){return i.visibleNodes.has(e)}:p.isVisible,i}return i.__extends(t,e),Object.defineProperty(t.prototype,"childrenField",{get:function(){return this._childrenField},set:function(e){if(!e)throw new Error("'childrenField' cannot be empty");this._childrenField=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{set:function(e){this.originalData=e||[],this.filterData=b(e,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;c.isPresent(this.childrenField)&&(this.component.children=function(t){return l.of(r.getter(e.childrenField)(t))},this.component.hasChildren=function(t){var n=r.getter(e.childrenField)(t);return Boolean(n&&n.length)},this.component.editService=new d.HierarchyEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&c.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes())},t.prototype.ngOnChanges=function(e){a.isChanged("childrenField",e,!1)&&(this.nodes=this.originalData),a.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&c.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"childrenField",null),i.__decorate([o.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),i.__decorate([o.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),t=i.__decorate([o.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),i.__param(1,o.Optional()),i.__param(1,o.Host()),i.__metadata("design:paramtypes",[s.DataBoundComponent,u.DragAndDropDirective])],t)}(f.FilteringBase);t.HierarchyBindingDirective=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(2),r=n(1),a=n(9),s=n(4),c=n(62),l=n(18),d=n(7),u=n(63),p=n(11),h=n(49),f=function(e,t,n){return t.filter((function(t){return e(t)===n}))},m=new p.IndexBuilderService,b=function(e,t,n,i,o,r){return void 0===o&&(o=null),void 0===r&&(r=""),d.isArrayWithAtLeastOneItem(e)?e.map((function(e,s){var c=m.nodeIndex(s.toString(),r),l={dataItem:e,index:c,parent:o,visible:!0};return l.children=b(f(a.getter(n),t||[],a.getter(i)(e)),t,n,i,l,c),l})):[]},g=function(e){function t(t){var n=e.call(this,t)||this;return n.component=t,n.loadOnDemand=!0,n.originalData=[],n.component.isVisible=function(e){return n.visibleNodes.has(e)},n}return i.__extends(t,e),Object.defineProperty(t.prototype,"nodes",{set:function(e){if(this.originalData=e||[],d.isNullOrEmptyString(this.parentIdField))this.component.nodes=this.originalData.slice(0);else{var t=a.getter(this.parentIdField);this.component.nodes=this.originalData.filter(c.compose(d.isBlank,t)),this.filterData=b(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{set:function(e){this.component.isVisible=e},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var e=this;if(d.isPresent(this.parentIdField)&&d.isPresent(this.idField)){var t=function(t){return f(a.getter(e.parentIdField),e.originalData||[],a.getter(e.idField)(t))};this.component.hasChildren=function(e){return t(e).length>0},this.component.children=function(e){return s.of(t(e))},this.component.editService=new u.FlatEditingService(this),this.component.filterChange.subscribe(this.handleFilterChange.bind(this)),this.component.filter&&this.handleFilterChange(this.component.filter),!this.loadOnDemand&&d.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()}},t.prototype.ngOnChanges=function(e){o.isChanged("parentIdField",e,!1)&&(this.nodes=this.originalData),o.anyChanged(["nodes","loadOnDemand"],e)&&!this.loadOnDemand&&d.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},i.__decorate([r.Input(),i.__metadata("design:type",Array),i.__metadata("design:paramtypes",[Array])],t.prototype,"nodes",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"parentIdField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"idField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isVisible",null),t=i.__decorate([r.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),i.__metadata("design:paramtypes",[l.DataBoundComponent])],t)}(h.FilteringBase);t.FlatDataBindingDirective=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=n(10),s=n(7),c=function(){function e(e){this.treeview=e,this.subscriptions=new r.Subscription,this.subscriptions.add(this.treeview.addItem.subscribe(this.handleAdd.bind(this))),this.subscriptions.add(this.treeview.removeItem.subscribe(this.handleRemove.bind(this)))}return Object.defineProperty(e.prototype,"editService",{set:function(e){this.treeview.editService=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.handleAdd=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.add(e)},e.prototype.handleRemove=function(e){if(!s.isPresent(this.treeview.editService))throw new Error("No `editService` provided. Either provide your own implementation or use this directive in combination with one of the data binding directives (`kendoTreeViewHierarchyBinding` or `kendoTreeViewFlatDataBinding`).");this.treeview.editService.remove(e)},i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"editService",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewDragAndDropEditing]"}),i.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.DragAndDropEditingDirective=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(10),s=n(7),c="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",l=function(){function e(e){this.treeview=e,this.pageSizes=new Map,this.rootLevelId=r.guid(),this.treeview.loadMoreService={getInitialPageSize:this.getInitalPageSize.bind(this),getGroupSize:this.getGroupSize.bind(this),setGroupSize:this.setGroupSize.bind(this),getTotalNodesCount:this.getTotalNodesCount.bind(this)}}return Object.defineProperty(e.prototype,"loadMoreNodes",{set:function(e){"string"!=typeof e&&(this.treeview.loadMoreService.loadMoreNodes=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.verifySettings()},e.prototype.verifySettings=function(){if(o.isDevMode()){if(!s.isPresent(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+c+".");var e=this.treeview.loadMoreService.loadMoreNodes;if(s.isPresent(e)&&"function"!=typeof e)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+c+".");if(s.isPresent(e)&&!s.isPresent(this.totalField))throw new Error("When a function to fetch additional nodes is provided to the `kendoTreeViewLoadMore` directive, the `totalField` and `totalRootNodes` values must also be provided. See "+c+".")}},e.prototype.getGroupSize=function(e){var t=e||this.rootLevelId;return this.pageSizes.has(t)?this.pageSizes.get(t):this.pageSize},e.prototype.setGroupSize=function(e,t){var n=e||this.rootLevelId,i=t>0?t:0;this.pageSizes.set(n,i)},e.prototype.getTotalNodesCount=function(e,t){return s.isPresent(e)&&s.isPresent(this.totalField)?e[this.totalField]:!s.isPresent(e)&&s.isPresent(this.totalRootNodes)?this.totalRootNodes:t},e.prototype.getInitalPageSize=function(){return this.pageSize},i.__decorate([o.Input("kendoTreeViewLoadMore"),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"loadMoreNodes",null),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"pageSize",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"totalRootNodes",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"totalField",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewLoadMore]"}),i.__metadata("design:paramtypes",[a.TreeViewComponent])],e)}();t.LoadMoreDirective=l},function(e,t,n){"use strict";n.r(t),n.d(t,"Draggable",(function(){return d}));var i=function(e,t){return function(n){return t(e(n))}},o=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},r=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},a=function(){},s=function(e){return e.preventDefault()},c=/touch/;function l(e){return e.type.match(c)?{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=a);var c=e.drag;void 0===c&&(c=a);var d=e.release;void 0===d&&(d=a);var u=e.mouseOnly;void 0===u&&(u=!1),this._pressHandler=i(l,n),this._dragHandler=i(l,c),this._releaseHandler=i(l,d),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||(o(t.document,"mousemove",t._mousemove),o(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){r(t.document,"mousemove",t._mousemove),r(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(o(t.document,"pointermove",t._pointermove),o(t.document,"pointerup",t._pointerup),o(t.document,"pointercancel",t._pointerup),o(t.document,"contextmenu",s),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(r(t.document,"pointermove",t._pointermove),r(t.document,"pointerup",t._pointerup),r(t.document,"pointercancel",t._pointerup),r(t.document,"contextmenu",s),t._releaseHandler(e))}},u={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},u.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()?o(e,"pointerdown",this._pointerdown):(o(e,"mousedown",this._mousedown),this._mouseOnly||(o(e,"touchstart",this._touchstart),o(e,"touchmove",this._touchmove),o(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return r(e,"pointerdown",this._pointerdown),r(this.document,"pointermove",this._pointermove),r(this.document,"pointerup",this._pointerup),r(this.document,"contextmenu",s),void r(this.document,"pointercancel",this._pointerup);r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(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=a);var n=e.drag;void 0===n&&(n=a);var o=e.release;void 0===o&&(o=a);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=i(l,t),this._dragHandler=i(l,n),this._releaseHandler=i(l,o),this._mouseOnly=r},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,u),d.default=d,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(){function e(){this.changes=new i.EventEmitter}return e.prototype.notify=function(){this.changes.emit()},e}();t.DataChangeNotificationService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),a=function(){function e(){this.changes=new r.Subject}return e.prototype.childrenLoaded=function(e,t){this.changes.next({item:e,children:t})},e=i.__decorate([o.Injectable()],e)}();t.NodeChildrenService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Add=0]="Add",e[e.InsertTop=1]="InsertTop",e[e.InsertBottom=2]="InsertBottom",e[e.InsertMiddle=3]="InsertMiddle",e[e.Invalid=4]="Invalid"}(t.DropAction||(t.DropAction={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Over=0]="Over",e[e.Before=1]="Before",e[e.After=2]="After"}(t.DropPosition||(t.DropPosition={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(t,n){var i=e.call(this)||this;return i.isValid=!0,Object.assign(i,t),i.originalEvent=n,i}return i.__extends(t,e),t.prototype.setValid=function(e){this.isValid=e},t}(n(33).PreventableEvent);t.TreeItemDropEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return i.__extends(t,e),t}(n(33).PreventableEvent);t.TreeItemDragStartEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.TreeItemDragEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7);t.copyPageSize=function(e,t,n){if(i.isPresent(e.loadMoreService)){var o=e.getNodePageSize(t);e.setNodePageSize(n,o)}},t.incrementPageSize=function(e,t){if(i.isPresent(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n+1)}},t.decrementPageSize=function(e,t){if(i.isPresent(e.loadMoreService)){var n=e.getNodePageSize(t);e.setNodePageSize(t,n-1)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(12),a=function(){function e(e){this.cdr=e,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(e.prototype,"statusIconClass",{get:function(){switch(this.action){case r.DropAction.Add:return"k-i-plus";case r.DropAction.InsertTop:return"k-i-insert-up";case r.DropAction.InsertBottom:return"k-i-insert-down";case r.DropAction.InsertMiddle:return"k-i-insert-middle";case r.DropAction.Invalid:default:return"k-i-cancel"}},enumerable:!0,configurable:!0}),e.prototype.detectChanges=function(){this.cdr.detectChanges()},i.__decorate([o.HostBinding("class.k-header"),o.HostBinding("class.k-drag-clue"),i.__metadata("design:type",Boolean)],e.prototype,"hostClasses",void 0),i.__decorate([o.HostBinding("style.position"),i.__metadata("design:type",String)],e.prototype,"posistionStyle",void 0),e=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drag-clue",template:'\n <ng-container *ngIf="!template">\n <span class="k-icon {{statusIconClass}} k-drag-status"></span>\n <span>{{text}}</span>\n </ng-container>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n text: text,\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n </ng-template>\n '}),i.__metadata("design:paramtypes",[o.ChangeDetectorRef])],e)}();t.DragClueComponent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=function(){function e(){}return Object.defineProperty(e.prototype,"componentRef",{get:function(){if(!i.isPresent(this._componentRef))throw new Error("The `initalize` method must be called before calling other service methods.");return this._componentRef},set:function(e){this._componentRef=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){i.isPresent(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},e.prototype.show=function(){this.element.style.display=""},e.prototype.hide=function(){this.element.style.display="none"},e.prototype.move=function(e,t,n){void 0===n&&(n=0),this.element.style.left=e+n+"px",this.element.style.top=t+n+"px"},e}();t.DragAndDropAssetService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.changeDetectorRef=e,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return e.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},i.__decorate([o.HostBinding("class.k-drop-hint-container"),i.__metadata("design:type",Boolean)],e.prototype,"hostClass",void 0),i.__decorate([o.HostBinding("style.position"),i.__metadata("design:type",String)],e.prototype,"position",void 0),i.__decorate([o.HostBinding("style.pointer-events"),i.__metadata("design:type",String)],e.prototype,"pointerEvents",void 0),e=i.__decorate([o.Component({changeDetection:o.ChangeDetectionStrategy.OnPush,selector:"kendo-treeview-drop-hint",template:'\n <div\n *ngIf="!template"\n class="k-drop-hint k-drop-hint-h"\n >\n <div class=\'k-drop-hint-start\'></div>\n <div class=\'k-drop-hint-line\'></div>\n </div>\n\n <ng-template\n *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{\n action: action,\n sourceItem: sourceItem,\n destinationItem: destinationItem\n }"\n >\n <ng-template>\n '}),i.__metadata("design:paramtypes",[o.ChangeDetectorRef])],e)}();t.DropHintComponent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(60),a=n(7),s=function(){function e(e){this.component=e,this.visibleNodes=new Set,this._filterSettings=r.DEFAULT_FILTER_SETTINGS}return Object.defineProperty(e.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(e){this._filterSettings=i.__assign({},r.DEFAULT_FILTER_SETTINGS,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{set:function(e){this.handleFilterChange(e)},enumerable:!0,configurable:!0}),e.prototype.handleFilterChange=function(e){this.filterData&&(this.resetNodesVisibility(this.filterData),e&&a.filterTree(this.filterData,e,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),a.isPresent(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:e,filterSettings:this.filterSettings}))},e.prototype.updateVisibleNodes=function(e){var t=this;e.forEach((function(e){e.visible&&t.visibleNodes.add(e.dataItem),e.children&&t.updateVisibleNodes(e.children)}))},e.prototype.resetNodesVisibility=function(e){var t=this;this.visibleNodes.clear(),e.forEach((function(e){e.visible=!0,e.children&&t.resetNodesVisibility(e.children)}))},i.__decorate([o.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],e.prototype,"filterSettings",null),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"filter",null),e}();t.FilteringBase=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10);t.TreeViewComponent=i.TreeViewComponent;var o=n(53);t.TreeViewModule=o.TreeViewModule;var r=n(16);t.NodeTemplateDirective=r.NodeTemplateDirective;var a=n(28);t.CheckDirective=a.CheckDirective;var s=n(29);t.DisableDirective=s.DisableDirective;var c=n(30);t.ExpandDirective=c.ExpandDirective;var l=n(31);t.SelectDirective=l.SelectDirective;var d=n(18);t.DataBoundComponent=d.DataBoundComponent;var u=n(25);t.ExpandableComponent=u.ExpandableComponent;var p=n(32);t.HierarchyBindingDirective=p.HierarchyBindingDirective;var h=n(34);t.FlatDataBindingDirective=h.FlatDataBindingDirective;var f=n(20);t.DragAndDropDirective=f.DragAndDropDirective;var m=n(35);t.DragAndDropEditingDirective=m.DragAndDropEditingDirective;var b=n(22);t.DropHintTemplateDirective=b.DropHintTemplateDirective;var g=n(21);t.DragClueTemplateDirective=g.DragClueTemplateDirective;var y=n(40);t.DropAction=y.DropAction;var v=n(41);t.DropPosition=v.DropPosition;var _=n(42);t.TreeItemDropEvent=_.TreeItemDropEvent;var O=n(43);t.TreeItemDragStartEvent=O.TreeItemDragStartEvent;var j=n(44);t.TreeItemDragEvent=j.TreeItemDragEvent;var C=n(36);t.LoadMoreDirective=C.LoadMoreDirective;var k=n(17);t.LoadMoreButtonTemplateDirective=k.LoadMoreButtonTemplateDirective},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642578286,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 i=n(11),o=n(7),r=function(e){return e||{}},a=function(e){return r(e).children||[]},s=function(e){if(!Array.isArray(e)||0===e.length)return null;for(var t=e.length-1;t>=0;t-=1){var n=e[t];if(n.visible)return n}return null},c=function(){function e(){this.ib=new i.IndexBuilderService,this.nodes=[]}return e.prototype.firstVisibleNode=function(){return(this.nodes||[]).find((function(e){return e.visible}))},e.prototype.lastVisibleNode=function(){for(var e=s(this.nodes);o.isPresent(e)&&a(e).length>0;){var t=a(e),n=s(t);if(!o.isPresent(n))return e;e=n}return e},e.prototype.closestNode=function(e){var t=r(this.findNode(e)).prev||this.firstVisibleNode();return r(t).index===e?this.visibleSibling(t,1):t},e.prototype.firstFocusableNode=function(){return this.nodes.find((function(e){return!e.disabled&&e.visible}))},e.prototype.findNode=function(e){return this.find(e,this.nodes)},e.prototype.findParent=function(e){var t=this.ib.level(e)-1;return this.findNode(this.ib.indexForLevel(e,t))},e.prototype.findVisibleChild=function(e){var t=this.findNode(e);return a(t).find((function(e){return e.visible}))},e.prototype.findVisiblePrev=function(e){var t=e.index,n=this.findParent(t),i=this.ib.lastLevelIndex(t),o=this.container(n).slice(0,i).every((function(e){return!e.visible}));if(0===i||o)return n;var r=this.findNode(t),a=this.visibleSibling(r,-1);if(a)for(var c=this.container(a);c.length>0&&c.some((function(e){return e.visible}));)a=s(c),c=this.container(a);return a},e.prototype.findVisibleNext=function(e){var t=this.container(e),n=t.some((function(e){return e.visible}));return 0!==t.length&&n?t.find((function(e){return e.visible})):this.visibleSibling(e,1)},e.prototype.registerItem=function(e,t,n,i,o){void 0===i&&(i=!1),void 0===o&&(o=!0);var r=this.ib.level(t),a=this.findParent(t);if(a||1===r){var s={id:e,children:[],index:t,parent:a,disabled:n,loadMoreButton:i,visible:o};this.insert(s,a)}},e.prototype.unregisterItem=function(e,t){var n=this.find(t,this.nodes);if(n&&n.id===e){var i=this.container(n.parent);i.splice(i.indexOf(n),1)}},e.prototype.childLevel=function(e){var t=e.filter((function(e){return o.isPresent(e)}));return t&&t.length?this.ib.level(t[0].index):1},e.prototype.container=function(e){return e?e.children:this.nodes},e.prototype.find=function(e,t){var n=this.childLevel(t),i=this.ib.indexForLevel(e,n),o=n===this.ib.level(e),r=t.find((function(e){return e&&e.index===i}));return r?o?r:this.find(e,r.children):null},e.prototype.insert=function(e,t){this.container(t).splice(this.ib.lastLevelIndex(e.index),0,e)},e.prototype.visibleSibling=function(e,t){if(!e)return null;for(var n=this.findParent(e.index),i=this.container(n),r=i.indexOf(e)+t,a=i[r];o.isPresent(a);){if(a.visible)return a;a=i[r+=t]}return this.visibleSibling(n,t)},e}();t.NavigationModel=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(10),a=n(54),s=n(16),c=n(28),l=n(29),d=n(30),u=n(31),p=n(32),h=n(34),f=n(20),m=n(21),b=n(22),g=n(35),y=n(36),v=n(17),_=[r.TreeViewComponent,s.NodeTemplateDirective,c.CheckDirective,l.DisableDirective,d.ExpandDirective,u.SelectDirective,p.HierarchyBindingDirective,h.FlatDataBindingDirective,f.DragAndDropDirective,m.DragClueTemplateDirective,b.DropHintTemplateDirective,g.DragAndDropEditingDirective,y.LoadMoreDirective,v.LoadMoreButtonTemplateDirective],O=function(){function e(){}return e=i.__decorate([o.NgModule({exports:[_],imports:[a.SharedModule]})],e)}();t.TreeViewModule=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(10),a=n(55),s=n(5),c=n(16),l=n(28),d=n(29),u=n(30),p=n(31),h=n(32),f=n(61),m=n(34),b=n(64),g=n(65),y=n(66),v=n(20),_=n(21),O=n(22),j=n(46),C=n(48),k=n(35),w=n(36),S=n(17),E=n(68),x=[r.TreeViewComponent,a.TreeViewGroupComponent,b.TreeViewItemDirective,g.TreeViewItemContentDirective,c.NodeTemplateDirective,l.CheckDirective,d.DisableDirective,u.ExpandDirective,p.SelectDirective,h.HierarchyBindingDirective,f.LoadingIndicatorDirective,m.FlatDataBindingDirective,v.DragAndDropDirective,_.DragClueTemplateDirective,j.DragClueComponent,O.DropHintTemplateDirective,C.DropHintComponent,k.DragAndDropEditingDirective,w.LoadMoreDirective,S.LoadMoreButtonTemplateDirective],I=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[x],exports:[x],imports:[s.CommonModule,y.CheckBoxModule,E.InputsModule],entryComponents:[j.DragClueComponent,C.DropHintComponent]})],e)}();t.SharedModule=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(13),a=n(9),s=n(14),c=n(11),l=n(27),d=n(15),u=n(39),p=n(7),h=n(24),f=n(4),m=n(6),b=n(38),g=function(){function e(e,t,n,i,o,r,a,s){this.expandService=e,this.loadingService=t,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=o,this.nodeChildrenService=r,this.dataChangeNotification=a,this.changeDetectorRef=s,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new f.Subscription,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return f.of([])},this.hasChildren=function(){return!1}}return Object.defineProperty(e.prototype,"moreNodesAvailable",{get:function(){return!(!p.isPresent(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return p.isPresent(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(e){this.loadMoreService.setGroupSize(this.parentDataItem,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){if(p.isPresent(this.pageSize)){var e=this.pageSize>0?this.pageSize:0;return this._data.slice(0,e)}return this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTemplate",{get:function(){return p.isPresent(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(e,t,n){n?this.expandService.expand(e,t):this.expandService.collapse(e,t)},e.prototype.checkNode=function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)},e.prototype.nodeIndex=function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)},e.prototype.nodeText=function(e){var t=p.isArray(this.textField)?this.textField[0]:this.textField;return a.getter(t)(e)},e.prototype.ngOnDestroy=function(){p.isPresent(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),p.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(m.filter((function(t){return t===e.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},e.prototype.ngOnChanges=function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},e.prototype.fetchChildren=function(e,t){var n=this;return this.children(e).pipe(m.catchError((function(){return n.loadingService.notifyLoaded(t),f.EMPTY})),m.tap((function(){return n.loadingService.notifyLoaded(t)})))},Object.defineProperty(e.prototype,"nextFields",{get:function(){return p.isArray(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),e.prototype.loadMoreNodes=function(){p.isPresent(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},e.prototype.loadMoreLocalNodes=function(){var e=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(e)},e.prototype.fetchMoreNodes=function(){var e=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,p.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(m.finalize((function(){return e.loadingMoreNodes=!1}))).subscribe((function(t){if(Array.isArray(t)&&t.length>0){var n=e.loadMoreButtonIndex;e.pageSize+=t.length,e.data=e.data.concat(t),e.navigationService.isActive(n)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(n))}})))},e.prototype.setNodeChildren=function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)},e.prototype.mapToTreeItem=function(e){var t=this;return this.parentIndex?e.map((function(e,n){return{dataItem:e,index:t.nodeIndex(n)}})):[]},e.prototype.emitChildrenLoaded=function(e){if(this.parentIndex){var t=e.filter((function(e){return e.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},t)}},e.prototype.subscribeToNodesChange=function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(t){e.data=t,e.initialNodesLoaded=!0}))},e.prototype.reselectItemAt=function(e){p.isPresent(e)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(e))},e.prototype.registerLoadedNodes=function(e){void 0===e&&(e=[]);var t=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(t),this.emitChildrenLoaded(t)},i.__decorate([o.HostBinding("class.k-treeview-group"),i.__metadata("design:type",Boolean)],e.prototype,"kGroupClass",void 0),i.__decorate([o.HostBinding("attr.role"),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkboxes",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandIcons",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"touchActions",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"trackBy",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"nodes",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"textField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"nodeTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",o.TemplateRef)],e.prototype,"loadMoreButtonTemplateRef",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"loadMoreService",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"size",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isChecked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isExpanded",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isVisible",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"children",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"hasChildren",void 0),e=i.__decorate([o.Component({animations:[r.trigger("toggle",[r.transition("void => *",[r.style({height:0}),r.animate("0.1s ease-in",r.style({height:"*"}))]),r.transition("* => void",[r.style({height:"*"}),r.animate("0.1s ease-in",r.style({height:0}))])])],selector:"[kendoTreeViewGroup]",template:'\n <li\n *ngFor="let node of data; let index = index; trackBy: trackBy"\n class="k-treeview-item"\n [class.k-display-none]="!isVisible(node, nodeIndex(index))"\n kendoTreeViewItem\n [attr.aria-setsize]="totalNodesCount"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [loadOnDemand]="loadOnDemand"\n [checkable]="checkboxes"\n [isChecked]="isChecked(node, nodeIndex(index))"\n [isDisabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isVisible]="isVisible(node, nodeIndex(index))"\n [expandable]="expandIcons && hasChildren(node)"\n [isExpanded]="isExpanded(node, nodeIndex(index))"\n [selectable]="selectable"\n [isSelected]="isSelected(node, nodeIndex(index))"\n [attr.data-treeindex]="nodeIndex(index)"\n >\n <div class="k-treeview-mid">\n <span\n class="k-treeview-toggle"\n [kendoTreeViewLoading]="nodeIndex(index)"\n (click)="expandNode(nodeIndex(index), node, !isExpanded(node, nodeIndex(index)))"\n *ngIf="expandIcons && hasChildren(node)"\n >\n <span\n class="k-icon"\n [class.k-i-collapse]="isExpanded(node, nodeIndex(index))"\n [class.k-i-expand]="!isExpanded(node, nodeIndex(index))"\n >\n </span>\n </span>\n <kendo-checkbox\n *ngIf="checkboxes"\n [size]="size"\n [node]="node"\n [index]="nodeIndex(index)"\n [isChecked]="isChecked"\n (checkStateChange)="checkNode(nodeIndex(index))"\n tabindex="-1"\n ></kendo-checkbox>\n <span kendoTreeViewItemContent\n [attr.data-treeindex]="nodeIndex(index)"\n [dataItem]="node"\n [index]="nodeIndex(index)"\n [initialSelection]="isSelected(node, nodeIndex(index))"\n [isSelected]="isSelected"\n class="k-treeview-leaf"\n [style.touch-action]="touchActions ? \'\' : \'none\'"\n >\n <span class="k-treeview-leaf-text">\n <ng-container [ngSwitch]="hasTemplate">\n <ng-container *ngSwitchCase="true">\n <ng-template\n [ngTemplateOutlet]="nodeTemplateRef"\n [ngTemplateOutletContext]="{\n $implicit: node,\n index: nodeIndex(index)\n }"\n >\n </ng-template>\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{nodeText(node)}}\n </ng-container>\n </ng-container>\n </span>\n </span>\n </div>\n <ul\n *ngIf="isExpanded(node, nodeIndex(index)) && hasChildren(node)"\n kendoTreeViewGroup\n role="group"\n [nodes]="fetchChildren"\n [loadOnDemand]="loadOnDemand"\n [checkboxes]="checkboxes"\n [expandIcons]="expandIcons"\n [selectable]="selectable"\n [touchActions]="touchActions"\n [children]="children"\n [hasChildren]="hasChildren"\n [isChecked]="isChecked"\n [isDisabled]="isDisabled"\n [disabled]="disabled || isDisabled(node, nodeIndex(index))"\n [isExpanded]="isExpanded"\n [isSelected]="isSelected"\n [isVisible]="isVisible"\n [nodeTemplateRef]="nodeTemplateRef"\n [loadMoreButtonTemplateRef]="loadMoreButtonTemplateRef"\n [parentIndex]="nodeIndex(index)"\n [parentDataItem]="node"\n [textField]="nextFields"\n [loadMoreService]="loadMoreService"\n [@toggle]="true"\n [trackBy]="trackBy"\n >\n </ul>\n </li>\n <li\n *ngIf="initialNodesLoaded && moreNodesAvailable"\n class="k-treeview-item"\n [class.k-treeview-load-more-checkboxes-container]="checkboxes"\n kendoTreeViewItem\n role="button"\n [selectable]="false"\n [checkable]="false"\n [expandable]="false"\n [index]="loadMoreButtonIndex"\n [parentDataItem]="parentDataItem"\n [parentIndex]="parentIndex"\n [attr.data-treeindex]="loadMoreButtonIndex"\n >\n <div class="k-treeview-mid">\n <span\n *ngIf="loadingMoreNodes"\n class="k-icon k-i-loading k-i-expand"\n >\n </span>\n <span\n class="k-treeview-leaf k-treeview-load-more-button"\n [attr.data-treeindex]="loadMoreButtonIndex"\n kendoTreeViewItemContent\n [index]="loadMoreButtonIndex"\n >\n <span class="k-treeview-leaf-text">\n <ng-template\n *ngIf="loadMoreButtonTemplateRef"\n [ngTemplateOutlet]="loadMoreButtonTemplateRef"\n [ngTemplateOutletContext]="{\n index: loadMoreButtonIndex\n }"\n >\n </ng-template>\n <ng-container *ngIf="!loadMoreButtonTemplateRef">\n Load more\n </ng-container>\n </span>\n </span>\n </div>\n </li>\n '}),i.__metadata("design:paramtypes",[s.ExpandStateService,h.LoadingNotificationService,c.IndexBuilderService,l.TreeViewLookupService,d.NavigationService,u.NodeChildrenService,b.DataChangeNotificationService,o.ChangeDetectorRef])],e)}();t.TreeViewGroupComponent=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=n(12),r=n(19),a=n(45),s=n(7),c=function(){function e(e){this.hierarchyBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,c=e.dropPosition,l=e.sourceTree,d=e.destinationTree,u=Object.assign({},s.getDataItem(t));if(c===o.DropPosition.Over){r.expandDropTarget(n,d);var p=this.childrenFor(s.getDataItem(n)),h=s.isPresent(d.loadMoreService)?Math.min(d.loadMoreService.getGroupSize(s.getDataItem(n)),p.length):p.length;p.splice(h,0,u),i.setter(this.hierarchyBinding.childrenField)(s.getDataItem(n),p),this.movedItemNewIndex=s.buildTreeIndex(n.item.index,h)}else{var f=this.getParentNodes(n,d),m=c===o.DropPosition.After?1:0;h=f.indexOf(s.getDataItem(n))+m;f.splice(h,0,u);var b=n.parent?n.parent.item.index:null;this.movedItemNewIndex=s.buildTreeIndex(b,h)}var g=c===o.DropPosition.Over?s.getDataItem(n):s.getDataItem(n.parent);a.incrementPageSize(d,g),a.copyPageSize(d,s.getDataItem(t),u),l===d||d.loadOnDemand||d.preloadChildNodes(),l!==d&&(d.changeDetectorRef.detectChanges(),d.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=this.getParentNodes(t,n),c=o.indexOf(s.getDataItem(t));if(o.splice(c,1),r.collapseEmptyParent(t.parent,o,n),a.decrementPageSize(n,s.getDataItem(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var l=r.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);i.focus(l)}},e.prototype.getParentNodes=function(e,t){return s.isPresent(e.parent)?this.childrenFor(s.getDataItem(e.parent)):t.nodes},e.prototype.childrenFor=function(e){return i.getter(this.hierarchyBinding.childrenField)(e)||[]},e}();t.HierarchyEditingService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"}(t.ScrollDirection||(t.ScrollDirection={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(46),a=n(12),s=n(7),c=n(47),l=n(19);t.CLUE_OFFSET=10,t.RETURN_ANIMATION_DURATION=200;var d=function(e){function n(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return i.__extends(n,e),n.prototype.initialize=function(e,t){s.isPresent(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(r.DragClueComponent);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},n.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),e.prototype.ngOnDestroy.call(this)},n.prototype.move=function(n,i){e.prototype.move.call(this,n,i,t.CLUE_OFFSET)},n.prototype.animateDragClueToElementPosition=function(e){var n=this;if(s.isPresent(e)&&s.isPresent(this.element.animate)){var i=e.getBoundingClientRect(),o=this.element.getBoundingClientRect();this.returnAnimation=this.element.animate([{transform:"translate(0, 0)"},{transform:"translate("+(i.left-o.left)+"px, "+(i.top-o.top)+"px)"}],t.RETURN_ANIMATION_DURATION),this.returnAnimation.onfinish=function(){return n.hide()}}else this.hide()},n.prototype.cancelReturnAnimation=function(){s.isPresent(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},n.prototype.updateDragClueData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&s.dataItemsEqual(t,i.sourceItem)&&s.dataItemsEqual(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},n.prototype.updateText=function(e){e!==this.componentRef.instance.text&&(this.componentRef.instance.text=e,this.componentRef.instance.detectChanges())},n.prototype.scrollIntoView=function(e){var t=e.step,n=e.interval;this.cancelScroll();var i=l.getScrollableContainer(this.element);if(s.isPresent(i)){var o=i.getBoundingClientRect(),r=this.element.getBoundingClientRect(),c=Math.max(o.top,0),d=c+r.height,u=c+Math.min(o.bottom,i.clientHeight);r.top<d?this.scrollInterval=setInterval((function(){return l.scrollElementBy(i,t,a.ScrollDirection.Up)}),n):r.bottom>u&&(this.scrollInterval=setInterval((function(){return l.scrollElementBy(i,t,a.ScrollDirection.Down)}),n))}},n.prototype.cancelScroll=function(){s.isPresent(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},n=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.ComponentFactoryResolver])],n)}(c.DragAndDropAssetService);t.DragClueService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(7),a=n(48),s=function(e){function t(t){var n=e.call(this)||this;return n.componentFactoryResolver=t,n}return i.__extends(t,e),t.prototype.initialize=function(e,t){r.isPresent(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(a.DropHintComponent);this.componentRef=e.createComponent(n),this.hide(),this.componentRef.instance.template=t,this.componentRef.changeDetectorRef.detectChanges()},t.prototype.updateDropHintData=function(e,t,n){var i=this.componentRef.instance;e===i.action&&r.dataItemsEqual(t,i.sourceItem)&&r.dataItemsEqual(n,i.destinationItem)||(i.action=e,i.sourceItem=t,i.destinationItem=n,i.detectChanges())},t=i.__decorate([o.Injectable(),i.__metadata("design:paramtypes",[o.ComponentFactoryResolver])],t)}(n(47).DragAndDropAssetService);t.DropHintService=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FILTER_SETTINGS={operator:"contains",ignoreCase:!0,mode:"lenient"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(14),a=n(24),s=n(4),c=n(6),l=function(){function e(e,t,n){this.expandService=e,this.loadingService=t,this.cd=n,this._loading=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=this.loadingService.changes.pipe(c.filter((function(t){return t===e.index})));this.subscription=this.expandService.changes.pipe(c.filter((function(t){return t.index===e.index})),c.tap((function(t){!t.expand&&e.loading&&(e.loading=!1)})),c.filter((function(e){return e.expand})),c.switchMap((function(e){return s.of(e).pipe(c.delay(100),c.takeUntil(t))}))).subscribe((function(){return e.loading=!0})),this.subscription.add(t.subscribe((function(){return e.loading=!1})))},e.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()},i.__decorate([o.HostBinding("class.k-i-loading"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"loading",null),i.__decorate([o.Input("kendoTreeViewLoading"),i.__metadata("design:type",String)],e.prototype,"index",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewLoading]"}),i.__metadata("design:paramtypes",[r.ExpandStateService,a.LoadingNotificationService,o.ChangeDetectorRef])],e)}();t.LoadingIndicatorDirective=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduceRight((function(e,t){return t(e)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=n(6),r=n(12),a=n(19),s=n(45),c=n(7),l=function(){function e(e){this.flatBinding=e}return e.prototype.add=function(e){var t=e.sourceItem,n=e.destinationItem,o=e.dropPosition,l=e.sourceTree,d=e.destinationTree,u=Object.assign({},c.getDataItem(t));if(o===r.DropPosition.Over){a.expandDropTarget(n,d);var p=i.getter(this.flatBinding.idField)(c.getDataItem(n));i.setter(this.flatBinding.parentIdField)(u,p);var h=this.getLastVisibleChildNodeIndex(d,this.flatBinding.originalData,c.getDataItem(n))+1;this.flatBinding.originalData.splice(h,0,u),this.rebindData();var f=this.fetchChildNodes(c.getDataItem(n),d).indexOf(u);this.movedItemNewIndex=c.buildTreeIndex(n.item.index,f)}else{var m=o===r.DropPosition.After?1:0;h=this.flatBinding.originalData.indexOf(c.getDataItem(n))+m;this.flatBinding.originalData.splice(h,0,u);var b=i.getter(this.flatBinding.parentIdField)(c.getDataItem(n));i.setter(this.flatBinding.parentIdField)(u,b),this.rebindData();var g=n.parent?n.parent.item.index:null;f=(n.parent?this.fetchChildNodes(c.getDataItem(n.parent),d):d.nodes).indexOf(u);this.movedItemNewIndex=c.buildTreeIndex(g,f)}l!==d&&this.addChildNodes(u,l);var y=o===r.DropPosition.Over?c.getDataItem(n):c.getDataItem(n.parent);s.incrementPageSize(d,y),s.copyPageSize(d,c.getDataItem(t),u),l===d||d.loadOnDemand||d.preloadChildNodes(),l!==d&&(d.changeDetectorRef.detectChanges(),d.focus(this.movedItemNewIndex))},e.prototype.remove=function(e){var t=e.sourceItem,n=e.sourceTree,i=e.destinationTree,o=c.getDataItem(t),r=this.flatBinding.originalData.indexOf(o);this.flatBinding.originalData.splice(r,1),n!==i&&this.removeChildNodes(o,n),this.rebindData();var l=t.parent?t.parent.children:[];if(a.collapseEmptyParent(t.parent,l,n),s.decrementPageSize(n,c.getDataItem(t.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var d=a.updateMovedItemIndex(this.movedItemNewIndex,t.item.index);i.focus(d)}},e.prototype.addChildNodes=function(e,t){var n,i=this.fetchAllDescendantNodes(e,t);(n=this.flatBinding.originalData).push.apply(n,i)},e.prototype.removeChildNodes=function(e,t){var n=this;this.fetchAllDescendantNodes(e,t).forEach((function(e){var t=n.flatBinding.originalData.indexOf(e);n.flatBinding.originalData.splice(t,1)}))},e.prototype.fetchAllDescendantNodes=function(e,t){var n=this,i=this.fetchChildNodes(e,t);return i.forEach((function(e){return i=i.concat(n.fetchAllDescendantNodes(e,t)||[])})),i},e.prototype.fetchChildNodes=function(e,t){if(!e)return[];var n=[];return t.children(e).pipe(o.take(1)).subscribe((function(e){return n=n.concat(e||[])})),n},e.prototype.getLastVisibleChildNodeIndex=function(e,t,n){if(!c.isPresent(e.loadMoreService)||!e.hasChildren(n))return t.length;var i=e.loadMoreService.getGroupSize(n),o=this.fetchChildNodes(n,e).slice(0,i),r=o[o.length-1];return t.indexOf(r)},e.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},e}();t.FlatEditingService=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(15),s=n(26),c=n(14),l=n(11),d=n(27),u=n(7),p=n(6),h=function(e,t){return{dataItem:t,index:e}},f=0,m=function(){function e(e,t,n,i,o,r,a){this.element=e,this.expandService=t,this.navigationService=n,this.selectionService=i,this.lookupService=o,this.renderer=r,this.ib=a,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=f++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return Object.defineProperty(e.prototype,"isChecked",{set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treeItem",{get:function(){return h(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?h(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()},e.prototype.ngOnChanges=function(e){var t=e.index,n=e.isDisabled;r.anyChanged(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(t),r.anyChanged(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()},e.prototype.ngOnDestroy=function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((function(e,t){return t.unsubscribe(),e}),[])},e.prototype.subscribe=function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe((function(){e.updateTabIndex(),e.focusItem()})),this.navigationService.expands.pipe(p.filter((function(t){return t.index===e.index&&!e.isDisabled}))).subscribe((function(t){var n=t.expand;return e.expand(n)}))]},e.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},e.prototype.activateItem=function(){if(!this.isDisabled){var e=this.navigationService,t=this.selectionService,n=this.index;t.setFirstSelected(n,this.isSelected),!e.isActive(n)&&t.isFirstSelected(n)&&e.activateIndex(n)}},e.prototype.expand=function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)},e.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},e.prototype.focusItem=function(){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus()},e.prototype.moveLookupItem=function(e){void 0===e&&(e={});var t=e.dataItem,n=e.index,i=e.parentDataItem,o=e.parentIndex;if((!n||!n.firstChange)&&(t||n||i||o)){var r=(n||{}).previousValue||this.index;this.lookupService.replaceItem(r,this.treeItem,this.parentTreeItem)}},e.prototype.moveNavigationItem=function(e){void 0===e&&(e={});var t=e.currentValue,n=e.firstChange,i=e.previousValue;!n&&u.isPresent(t)&&u.isPresent(i)&&(this.navigationService.unregisterItem(this.id,i),this.navigationService.registerItem(this.id,t,this.isDisabled,this.isButton))},e.prototype.updateNodeAvailability=function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)},e.prototype.setAriaAttributes=function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)},e.prototype.setDisabledClass=function(){this.setClass("k-disabled",this.isDisabled)},e.prototype.setClass=function(e,t){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},e.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},e.prototype.setAttribute=function(e,t){u.isPresent(t)?this.renderer.setAttribute(this.element.nativeElement,e,t):this.renderer.removeAttribute(this.element.nativeElement,e)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"parentDataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"parentIndex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"role",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"checkable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"selectable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"expandable",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"isChecked",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isDisabled",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"isVisible",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isExpanded",null),i.__decorate([o.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],e.prototype,"isSelected",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewItem]"}),i.__metadata("design:paramtypes",[o.ElementRef,c.ExpandStateService,a.NavigationService,s.SelectionService,d.TreeViewLookupService,o.Renderer2,l.IndexBuilderService])],e)}();t.TreeViewItemDirective=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(15),a=n(26),s=n(23),c=n(4),l=n(6),d=function(){function e(e,t,n,i){var o=this;this.element=e,this.navigationService=t,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=s.isSelected,this.subscriptions=new c.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(l.filter((function(e){return e===o.index}))).subscribe((function(e){return o.selectionService.select(e,o.dataItem)}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))})))}return e.prototype.ngOnChanges=function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-focus")},e.prototype.updateSelectionClass=function(e){this.render(e,"k-selected")},e.prototype.render=function(e,t){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"dataItem",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Boolean)],e.prototype,"initialSelection",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Function)],e.prototype,"isSelected",void 0),e=i.__decorate([o.Directive({selector:"[kendoTreeViewItemContent]"}),i.__metadata("design:paramtypes",[o.ElementRef,r.NavigationService,a.SelectionService,o.Renderer2])],e)}();t.TreeViewItemContentDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=[n(67).CheckBoxComponent],a=function(){function e(){}return e=i.__decorate([o.NgModule({declarations:[r],exports:[r]})],e)}();t.CheckBoxModule=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(2),a=n(7),s=function(){function e(e,t,n){this.element=e,this.renderer=t,this.changeDetector=n,this.id="_"+r.guid(),this.tabindex=0,this.size="medium",this.checkStateChange=new o.EventEmitter,this.checkState="none"}return Object.defineProperty(e.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkBoxClasses",{get:function(){return"k-checkbox "+(this.size?a.getSizeClass("checkbox",this.size):"")+" k-rounded-md"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},e.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},e.prototype.handleChange=function(e){var t=e.target.checked?"checked":"none";this.checkState=t,this.changeDetector.detectChanges(),this.checkStateChange.emit(t)},i.__decorate([o.HostBinding("class.k-checkbox-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],e.prototype,"classWrapper",null),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"id",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"isChecked",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Object)],e.prototype,"node",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"index",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"labelText",void 0),i.__decorate([o.Input(),i.__metadata("design:type",Number)],e.prototype,"tabindex",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"size",void 0),i.__decorate([o.Output(),i.__metadata("design:type",o.EventEmitter)],e.prototype,"checkStateChange",void 0),e=i.__decorate([o.Component({selector:"kendo-checkbox",template:'\n <input\n type="checkbox"\n [class]="checkBoxClasses"\n [id]="id"\n [checked]="checked"\n [indeterminate]="indeterminate"\n [tabindex]="tabindex"\n (change)="handleChange($event)"\n />\n <label\n class="k-checkbox-label"\n tabindex="-1"\n [for]="id"\n >{{labelText}}</label>\n '}),i.__metadata("design:paramtypes",[o.ElementRef,o.Renderer2,o.ChangeDetectorRef])],e)}();t.CheckBoxComponent=s},function(e,t,n){"use strict";n.r(t),n.d(t,"CheckBoxModule",(function(){return kl})),n.d(t,"ColorContrastSvgComponent",(function(){return vl})),n.d(t,"ColorInputComponent",(function(){return tl})),n.d(t,"ContrastValidationComponent",(function(){return gl})),n.d(t,"ContrastComponent",(function(){return yl})),n.d(t,"FlatColorPickerActionButtonsComponent",(function(){return ll})),n.d(t,"FlatColorPickerHeaderComponent",(function(){return cl})),n.d(t,"FocusOnDomReadyDirective",(function(){return bl})),n.d(t,"ColorGradientLocalizationService",(function(){return el})),n.d(t,"ColorPaletteLocalizationService",(function(){return ol})),n.d(t,"ColorPickerLocalizationService",(function(){return Vc})),n.d(t,"ColorPickerCustomMessagesComponent",(function(){return fl})),n.d(t,"FlatColorPickerLocalizationService",(function(){return Bc})),n.d(t,"ColorPickerMessages",(function(){return hl})),n.d(t,"ColorPaletteService",(function(){return rl})),n.d(t,"FlatColorPickerService",(function(){return Fc})),n.d(t,"MaskingService",(function(){return ec})),n.d(t,"NumericTextBoxMessages",(function(){return Ks})),n.d(t,"RadioButtonModule",(function(){return Sl})),n.d(t,"RangeSliderCustomMessagesComponent",(function(){return pc})),n.d(t,"RangeSliderMessages",(function(){return dc})),n.d(t,"SHARED_DIRECTIVES",(function(){return xc})),n.d(t,"SliderCustomMessagesComponent",(function(){return cc})),n.d(t,"SliderMessages",(function(){return ac})),n.d(t,"SliderBase",(function(){return Ss})),n.d(t,"SlidersCommonModule",(function(){return rc})),n.d(t,"SwitchCustomMessagesComponent",(function(){return bc})),n.d(t,"Messages",(function(){return fc})),n.d(t,"TextFieldsBase",(function(){return Pc})),n.d(t,"TextBoxCustomMessagesComponent",(function(){return wc})),n.d(t,"TextBoxMessages",(function(){return kc})),n.d(t,"SliderComponent",(function(){return Es})),n.d(t,"RangeSliderComponent",(function(){return Is})),n.d(t,"LabelTemplateDirective",(function(){return ws})),n.d(t,"SwitchComponent",(function(){return Ds})),n.d(t,"TextBoxDirective",(function(){return Ps})),n.d(t,"TextAreaDirective",(function(){return Ts})),n.d(t,"NumericTextBoxComponent",(function(){return Ls})),n.d(t,"NumericTextBoxCustomMessagesComponent",(function(){return Gs})),n.d(t,"MaskedTextBoxComponent",(function(){return nc})),n.d(t,"InputsModule",(function(){return Ml})),n.d(t,"SliderTicksComponent",(function(){return oc})),n.d(t,"SliderModule",(function(){return lc})),n.d(t,"RangeSliderModule",(function(){return hc})),n.d(t,"SwitchModule",(function(){return gc})),n.d(t,"NumericTextBoxModule",(function(){return vc})),n.d(t,"MaskedTextBoxModule",(function(){return _c})),n.d(t,"TextBoxModule",(function(){return Dc})),n.d(t,"TextAreaModule",(function(){return Nc})),n.d(t,"ColorPickerComponent",(function(){return pl})),n.d(t,"ColorPaletteComponent",(function(){return sl})),n.d(t,"ColorGradientComponent",(function(){return il})),n.d(t,"ColorPickerModule",(function(){return jl})),n.d(t,"FlatColorPickerComponent",(function(){return dl})),n.d(t,"ColorPickerCancelEvent",(function(){return zc})),n.d(t,"CheckBoxDirective",(function(){return Cl})),n.d(t,"RadioButtonDirective",(function(){return wl})),n.d(t,"HintComponent",(function(){return Dl})),n.d(t,"ErrorComponent",(function(){return xl})),n.d(t,"FormFieldComponent",(function(){return Pl})),n.d(t,"FormFieldModule",(function(){return Tl})),n.d(t,"TextBoxComponent",(function(){return Cc})),n.d(t,"TextBoxPrefixTemplateDirective",(function(){return jc})),n.d(t,"TextBoxSuffixTemplateDirective",(function(){return Oc})),n.d(t,"TextAreaComponent",(function(){return Mc})),n.d(t,"TextAreaSuffixComponent",(function(){return Ac})),n.d(t,"InputSeparatorComponent",(function(){return Ec})),n.d(t,"SharedModule",(function(){return Ic})),n.d(t,"LocalizedColorPickerMessagesDirective",(function(){return ml})),n.d(t,"LocalizedNumericTextBoxMessagesDirective",(function(){return yc})),n.d(t,"LocalizedTextBoxMessagesDirective",(function(){return Sc})),n.d(t,"LocalizedSliderMessagesDirective",(function(){return sc})),n.d(t,"LocalizedRangeSliderMessagesDirective",(function(){return uc})),n.d(t,"LocalizedSwitchMessagesDirective",(function(){return mc})),n.d(t,"ColorPickerCloseEvent",(function(){return Hc})),n.d(t,"ColorPickerOpenEvent",(function(){return Lc})),n.d(t,"ActiveColorClickEvent",(function(){return Kc}));var i=n(0),o=n(1),r=n(5),a=null;function s(){return a}var c,l=function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(null!=t.getStyle(n,i[o]+"AnimationName")){t._animationPrefix="-"+i[o].toLowerCase()+"-";break}var r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(r).forEach((function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=r[e])}))}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(i.__extends)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}()),d={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},u={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},p={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},h=function(){if(o["ɵglobal"].Node)return o["ɵglobal"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,a||(a=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var o;(o=e)[t].apply(o,Object(i.__spread)(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return d},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return h.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),i=0;i<t.length;i++)n[i]=t[i];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach((function(n){return e.insertBefore(n,t)}))},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var i=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(e,t),i},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var i=this.getStyle(e,t)||"";return n?i==n:i.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i<n.length;i++){var o=n.item(i);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,i){e.setAttributeNS(t,n,i)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&p.hasOwnProperty(t)&&(t=p[t]))}return u[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t=function(){if(!m&&!(m=document.querySelector("base")))return null;return m.getAttribute("href")}();return null==t?null:function(e){c||(c=document.createElement("a"));return c.setAttribute("href",e),"/"===c.pathname.charAt(0)?c.pathname:"/"+c.pathname}
21
21
  /**
22
22
  * @license
23
23
  * Copyright Google Inc. All Rights Reserved.
24
24
  *
25
25
  * Use of this source code is governed by an MIT-style license that can be
26
26
  * found in the LICENSE file at https://angular.io/license
27
- */(t)},t.prototype.resetBaseElement=function(){m=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Object(o["ɵparseCookieValue"])(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(l),m=null;
27
+ */(t)},t.prototype.resetBaseElement=function(){m=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Object(r["ɵparseCookieValue"])(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(l),m=null;
28
28
  /**
29
29
  * @license
30
30
  * Copyright Google Inc. All Rights Reserved.
31
31
  *
32
32
  * Use of this source code is governed by an MIT-style license that can be
33
33
  * found in the LICENSE file at https://angular.io/license
34
- */function g(){return!!window.history.pushState}
34
+ */function b(){return!!window.history.pushState}
35
35
  /**
36
36
  * @license
37
37
  * Copyright Google Inc. All Rights Reserved.
38
38
  *
39
39
  * Use of this source code is governed by an MIT-style license that can be
40
40
  * found in the LICENSE file at https://angular.io/license
41
- */var b=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(i.__extends)(t,e),t.prototype._init=function(){this.location=s().getLocation(),this._history=s().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref(this._doc)},t.prototype.onPopState=function(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){g()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){g()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.prototype.getState=function(){return this._history.state},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(o.PlatformLocation),y=new r.InjectionToken("TRANSITION_ID");
41
+ */var g=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(i.__extends)(t,e),t.prototype._init=function(){this.location=s().getLocation(),this._history=s().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref(this._doc)},t.prototype.onPopState=function(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){b()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){b()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.prototype.getState=function(){return this._history.state},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(r.PlatformLocation),y=new o.InjectionToken("TRANSITION_ID");
42
42
  /**
43
43
  * @license
44
44
  * Copyright Google Inc. All Rights Reserved.
45
45
  *
46
46
  * Use of this source code is governed by an MIT-style license that can be
47
47
  * found in the LICENSE file at https://angular.io/license
48
- */var v=[{provide:r.APP_INITIALIZER,useFactory:function(e,t,n){return function(){n.get(r.ApplicationInitStatus).donePromise.then((function(){var n=s();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter((function(t){return n.getAttribute(t,"ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[y,o.DOCUMENT,r.Injector],multi:!0}],_=function(){function e(){}return e.init=function(){Object(r.setTestabilityGetter)(new e)},e.prototype.addToWindow=function(e){r["ɵglobal"].getAngularTestability=function(t,n){void 0===n&&(n=!0);var i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},r["ɵglobal"].getAllAngularTestabilities=function(){return e.getAllTestabilities()},r["ɵglobal"].getAllAngularRootElements=function(){return e.getAllRootElements()};r["ɵglobal"].frameworkStabilizers||(r["ɵglobal"].frameworkStabilizers=[]),r["ɵglobal"].frameworkStabilizers.push((function(e){var t=r["ɵglobal"].getAllAngularTestabilities(),n=t.length,i=!1,o=function(t){i=i||t,0==--n&&e(i)};t.forEach((function(e){e.whenStable(o)}))}))},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?s().isShadowRoot(t)?this.findTestabilityInTree(e,s().getHost(t),!0):this.findTestabilityInTree(e,s().parentElement(t),!0):null},e}();
48
+ */var v=[{provide:o.APP_INITIALIZER,useFactory:function(e,t,n){return function(){n.get(o.ApplicationInitStatus).donePromise.then((function(){var n=s();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter((function(t){return n.getAttribute(t,"ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[y,r.DOCUMENT,o.Injector],multi:!0}],_=function(){function e(){}return e.init=function(){Object(o.setTestabilityGetter)(new e)},e.prototype.addToWindow=function(e){o["ɵglobal"].getAngularTestability=function(t,n){void 0===n&&(n=!0);var i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},o["ɵglobal"].getAllAngularTestabilities=function(){return e.getAllTestabilities()},o["ɵglobal"].getAllAngularRootElements=function(){return e.getAllRootElements()};o["ɵglobal"].frameworkStabilizers||(o["ɵglobal"].frameworkStabilizers=[]),o["ɵglobal"].frameworkStabilizers.push((function(e){var t=o["ɵglobal"].getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach((function(e){e.whenStable(r)}))}))},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?s().isShadowRoot(t)?this.findTestabilityInTree(e,s().getHost(t),!0):this.findTestabilityInTree(e,s().parentElement(t),!0):null},e}();
49
49
  /**
50
50
  * @license
51
51
  * Copyright Google Inc. All Rights Reserved.
52
52
  *
53
53
  * Use of this source code is governed by an MIT-style license that can be
54
54
  * found in the LICENSE file at https://angular.io/license
55
- */function O(e,t){"undefined"!=typeof COMPILED&&COMPILED||((r["ɵglobal"].ng=r["ɵglobal"].ng||{})[e]=t)}
55
+ */function O(e,t){"undefined"!=typeof COMPILED&&COMPILED||((o["ɵglobal"].ng=o["ɵglobal"].ng||{})[e]=t)}
56
56
  /**
57
57
  * @license
58
58
  * Copyright Google Inc. All Rights Reserved.
59
59
  *
60
60
  * Use of this source code is governed by an MIT-style license that can be
61
61
  * found in the LICENSE file at https://angular.io/license
62
- */var j={ApplicationRef:r.ApplicationRef,NgZone:r.NgZone};function C(e){return Object(r.getDebugNode)(e)}var w=[{provide:r.APP_INITIALIZER,useFactory:function(e){return O("probe",C),O("coreTokens",Object(i.__assign)({},j,(e||[]).reduce((function(e,t){return e[t.name]=t.token,e}),{}))),function(){return C}},deps:[[r.NgProbeToken,new r.Optional]],multi:!0}],S=new r.InjectionToken("EventManagerPlugins"),k=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event "+e)},e=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(S)),Object(i.__metadata)("design:paramtypes",[Array,r.NgZone])],e)}(),x=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var i=s().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target "+i+" for event "+t);return this.addEventListener(i,t,n)},e}(),E=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e=Object(i.__decorate)([Object(r.Injectable)()],e)}(),I=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(i.__extends)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return s().remove(e)}))},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(E),D={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},P=/%COMP%/g,T="_nghost-%COMP%",M="_ngcontent-%COMP%";function A(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?A(e,r,n):(r=r.replace(P,e),n.push(r))}return n}function N(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var V=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new B(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new z(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case r.ViewEncapsulation.Native:case r.ViewEncapsulation.ShadowDom:return new H(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=A(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(2,Object(r.Inject)(r.APP_ID)),Object(i.__metadata)("design:paramtypes",[k,I,String])],e)}(),B=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(D[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,i){if(i){t=i+":"+t;var r=D[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var i=D[n];i?e.removeAttributeNS(i,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,i){i&r.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,i&r.RendererStyleFlags2.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&r.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){R(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return R(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,N(n)):this.eventManager.addEventListener(e,t,N(n))},e}(),F="@".charCodeAt(0);function R(e,t){if(e.charCodeAt(0)===F)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var z=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;o.component=i;var a,s=A(r+"-"+i.id,i.styles,[]);return n.addStyles(s),o.contentAttr=(a=r+"-"+i.id,M.replace(P,a)),o.hostAttr=function(e){return T.replace(P,e)}(r+"-"+i.id),o}return Object(i.__extends)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var i=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,i,this.contentAttr,""),i},t}(B),H=function(e){function t(t,n,i,o){var a=e.call(this,t)||this;a.sharedStylesHost=n,a.hostEl=i,a.component=o,o.encapsulation===r.ViewEncapsulation.ShadowDom?a.shadowRoot=i.attachShadow({mode:"open"}):a.shadowRoot=i.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=A(o.id,o.styles,[]),c=0;c<s.length;c++){var l=document.createElement("style");l.textContent=s[c],a.shadowRoot.appendChild(l)}return a}return Object(i.__extends)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,i){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,i)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(B),L="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},K=L("addEventListener"),G=L("removeEventListener"),Z={},U="__zone_symbol__propagationStopped",W=function(){var e="undefined"!=typeof Zone&&Zone[L("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach((function(e){t[e]=e})),t}}(),q=function(e){return!!W&&W.hasOwnProperty(e)},$=function(e){var t=Z[e.type];if(t){var n=this[t];if(n){var i=[e];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i);for(var r=n.slice(),o=0;o<r.length&&!0!==e[U];o++){var a;(a=r[o]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i)}}}},X=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.ngZone=n,i&&Object(o.isPlatformServer)(i)||r.patchEvent(),r}return Object(i.__extends)(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[U]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var i=this,o=e[K],a=n;if(!o||r.NgZone.isInAngularZone()&&!q(t))e.addEventListener(t,a,!1);else{var s=Z[t];s||(s=Z[t]=L("ANGULAR"+t+"FALSE"));var c=e[s],l=c&&c.length>0;c||(c=e[s]=[]);var u=q(t)?Zone.root:Zone.current;if(0===c.length)c.push({zone:u,handler:a});else{for(var d=!1,p=0;p<c.length;p++)if(c[p].handler===a){d=!0;break}d||c.push({zone:u,handler:a})}l||e[K](t,$,!1)}return function(){return i.removeEventListener(e,t,a)}},t.prototype.removeEventListener=function(e,t,n){var i=e[G];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);var r=Z[t],o=r&&e[r];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&i.apply(e,[t,$,!1]):e.removeEventListener.apply(e,[t,n,!1])},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Inject)(r.PLATFORM_ID)),Object(i.__metadata)("design:paramtypes",[Object,r.NgZone,Object])],t)}(x),Y={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},J=new r.InjectionToken("HammerGestureConfig"),Q=new r.InjectionToken("HammerLoader"),ee=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e=Object(i.__decorate)([Object(r.Injectable)()],e)}(),te=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o._config=n,o.console=i,o.loader=r,o}return Object(i.__extends)(t,e),t.prototype.supports=function(e){return!(!Y.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&(!(!window.Hammer&&!this.loader)||(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),!1))},t.prototype.addEventListener=function(e,t,n){var i=this,r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var o=!1,a=function(){o=!0};return this.loader().then((function(){if(!window.Hammer)return i.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});o||(a=i.addEventListener(e,t,n))})).catch((function(){i.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return r.runOutsideAngular((function(){var o=i._config.buildHammer(e),a=function(e){r.runGuarded((function(){n(e)}))};return o.on(t,a),function(){o.off(t,a),"function"==typeof o.destroy&&o.destroy()}}))},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__param)(1,Object(r.Inject)(J)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__param)(3,Object(r.Inject)(Q)),Object(i.__metadata)("design:paramtypes",[Object,ee,r["ɵConsole"],Object])],t)}(x),ne=["alt","control","meta","shift"],ie={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},re=function(e){function t(t){return e.call(this,t)||this}var n;return Object(i.__extends)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return s().onAndCancel(e,r.domEventName,o)}))},t.parseEventName=function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(ne.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ne.forEach((function(i){i!=n&&((0,ie[i])(e)&&(t+=i+"."))})),t+=n},t.eventCallback=function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded((function(){return t(r)}))}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t=n=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(x),oe=function(){},ae=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(i.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case r.SecurityContext.NONE:return t;case r.SecurityContext.HTML:return t instanceof ce?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(r["ɵ_sanitizeHtml"])(this._doc,String(t)));case r.SecurityContext.STYLE:return t instanceof le?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(r["ɵ_sanitizeStyle"])(t));case r.SecurityContext.SCRIPT:if(t instanceof ue)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case r.SecurityContext.URL:return t instanceof pe||t instanceof de?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(r["ɵ_sanitizeUrl"])(String(t)));case r.SecurityContext.RESOURCE_URL:if(t instanceof pe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof se)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new ce(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new le(e)},t.prototype.bypassSecurityTrustScript=function(e){return new ue(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new de(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new pe(e)},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(oe),se=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(se),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(se),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(se),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(se),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(se),he=o["ɵPLATFORM_BROWSER_ID"],fe=[{provide:r.PLATFORM_ID,useValue:he},{provide:r.PLATFORM_INITIALIZER,useValue:function(){f.makeCurrent(),_.init()},multi:!0},{provide:o.PlatformLocation,useClass:b,deps:[o.DOCUMENT]},{provide:o.DOCUMENT,useFactory:function(){return document},deps:[]}],me=[{provide:r.Sanitizer,useExisting:oe},{provide:oe,useClass:ae,deps:[o.DOCUMENT]}];Object(r.createPlatformFactory)(r.platformCore,"browser",fe);var ge=[me,{provide:r["ɵAPP_ROOT"],useValue:!0},{provide:r.ErrorHandler,useFactory:function(){return new r.ErrorHandler},deps:[]},{provide:S,useClass:X,multi:!0,deps:[o.DOCUMENT,r.NgZone,r.PLATFORM_ID]},{provide:S,useClass:re,multi:!0,deps:[o.DOCUMENT]},{provide:S,useClass:te,multi:!0,deps:[o.DOCUMENT,J,r["ɵConsole"],[new r.Optional,Q]]},{provide:J,useClass:ee,deps:[]},{provide:V,useClass:V,deps:[k,I,r.APP_ID]},{provide:r.RendererFactory2,useExisting:V},{provide:E,useExisting:I},{provide:I,useClass:I,deps:[o.DOCUMENT]},{provide:r.Testability,useClass:r.Testability,deps:[r.NgZone]},{provide:k,useClass:k,deps:[S,r.NgZone]},w];!function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:r.APP_ID,useValue:e.appId},{provide:y,useExisting:r.APP_ID},v]}},e=t=Object(i.__decorate)([Object(r.NgModule)({providers:ge,exports:[o.CommonModule,r.ApplicationModule]}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.SkipSelf)()),Object(i.__param)(0,Object(r.Inject)(t)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function be(){return new ye(Object(r["ɵɵinject"])(o.DOCUMENT))}var ye=function(){function e(e){this._doc=e,this._dom=s()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce((function(e,i){return i&&e.push(n._getOrCreateElement(i,t)),e}),[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),i=this.getTag(n);if(i&&this._containsAttributes(e,i))return i}var r=this._dom.createElement("meta");this._setMetaElementAttributes(e,r);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,r),r},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach((function(i){return n._dom.setAttribute(t,i,e[i])})),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every((function(i){return n._dom.getAttribute(t,i)===e[i]}))},e.ngInjectableDef=Object(r["ɵɵdefineInjectable"])({factory:be,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(r.Injectable)({providedIn:"root",useFactory:be,deps:[]}),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function ve(){return new _e(Object(r["ɵɵinject"])(o.DOCUMENT))}var _e=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return s().getTitle(this._doc)},e.prototype.setTitle=function(e){s().setTitle(this._doc,e)},e.ngInjectableDef=Object(r["ɵɵdefineInjectable"])({factory:ve,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(r.Injectable)({providedIn:"root",useFactory:ve,deps:[]}),Object(i.__param)(0,Object(r.Inject)(o.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Oe="undefined"!=typeof window&&window||{},je=function(e,t){this.msPerTick=e,this.numTicks=t};
62
+ */var j={ApplicationRef:o.ApplicationRef,NgZone:o.NgZone};function C(e){return Object(o.getDebugNode)(e)}var k=[{provide:o.APP_INITIALIZER,useFactory:function(e){return O("probe",C),O("coreTokens",Object(i.__assign)({},j,(e||[]).reduce((function(e,t){return e[t.name]=t.token,e}),{}))),function(){return C}},deps:[[o.NgProbeToken,new o.Optional]],multi:!0}],w=new o.InjectionToken("EventManagerPlugins"),S=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach((function(e){return e.manager=n})),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var o=n[i];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(w)),Object(i.__metadata)("design:paramtypes",[Array,o.NgZone])],e)}(),E=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var i=s().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target "+i+" for event "+t);return this.addEventListener(i,t,n)},e}(),x=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),I=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(i.__extends)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach((function(e){return s().remove(e)}))},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(x),D={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},P=/%COMP%/g,T="_nghost-%COMP%",M="_ngcontent-%COMP%";function A(e,t,n){for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?A(e,o,n):(o=o.replace(P,e),n.push(o))}return n}function N(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var V=function(){function e(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new B(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case o.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new z(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case o.ViewEncapsulation.Native:case o.ViewEncapsulation.ShadowDom:return new H(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=A(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(2,Object(o.Inject)(o.APP_ID)),Object(i.__metadata)("design:paramtypes",[S,I,String])],e)}(),B=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(D[t]||t,e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,i){if(i){t=i+":"+t;var o=D[i];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var i=D[n];i?e.removeAttributeNS(i,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,i){i&o.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,i&o.RendererStyleFlags2.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&o.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){F(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return F(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,N(n)):this.eventManager.addEventListener(e,t,N(n))},e}(),R="@".charCodeAt(0);function F(e,t){if(e.charCodeAt(0)===R)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var z=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;r.component=i;var a,s=A(o+"-"+i.id,i.styles,[]);return n.addStyles(s),r.contentAttr=(a=o+"-"+i.id,M.replace(P,a)),r.hostAttr=function(e){return T.replace(P,e)}(o+"-"+i.id),r}return Object(i.__extends)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var i=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,i,this.contentAttr,""),i},t}(B),H=function(e){function t(t,n,i,r){var a=e.call(this,t)||this;a.sharedStylesHost=n,a.hostEl=i,a.component=r,r.encapsulation===o.ViewEncapsulation.ShadowDom?a.shadowRoot=i.attachShadow({mode:"open"}):a.shadowRoot=i.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var s=A(r.id,r.styles,[]),c=0;c<s.length;c++){var l=document.createElement("style");l.textContent=s[c],a.shadowRoot.appendChild(l)}return a}return Object(i.__extends)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,i){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,i)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(B),L="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},K=L("addEventListener"),G=L("removeEventListener"),Z={},U="__zone_symbol__propagationStopped",W=function(){var e="undefined"!=typeof Zone&&Zone[L("BLACK_LISTED_EVENTS")];if(e){var t={};return e.forEach((function(e){t[e]=e})),t}}(),q=function(e){return!!W&&W.hasOwnProperty(e)},$=function(e){var t=Z[e.type];if(t){var n=this[t];if(n){var i=[e];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i);for(var o=n.slice(),r=0;r<o.length&&!0!==e[U];r++){var a;(a=o[r]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i)}}}},X=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.ngZone=n,i&&Object(r.isPlatformServer)(i)||o.patchEvent(),o}return Object(i.__extends)(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[U]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var i=this,r=e[K],a=n;if(!r||o.NgZone.isInAngularZone()&&!q(t))e.addEventListener(t,a,!1);else{var s=Z[t];s||(s=Z[t]=L("ANGULAR"+t+"FALSE"));var c=e[s],l=c&&c.length>0;c||(c=e[s]=[]);var d=q(t)?Zone.root:Zone.current;if(0===c.length)c.push({zone:d,handler:a});else{for(var u=!1,p=0;p<c.length;p++)if(c[p].handler===a){u=!0;break}u||c.push({zone:d,handler:a})}l||e[K](t,$,!1)}return function(){return i.removeEventListener(e,t,a)}},t.prototype.removeEventListener=function(e,t,n){var i=e[G];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);var o=Z[t],r=o&&e[o];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);for(var a=!1,s=0;s<r.length;s++)if(r[s].handler===n){a=!0,r.splice(s,1);break}a?0===r.length&&i.apply(e,[t,$,!1]):e.removeEventListener.apply(e,[t,n,!1])},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(o.PLATFORM_ID)),Object(i.__metadata)("design:paramtypes",[Object,o.NgZone,Object])],t)}(E),Y={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},J=new o.InjectionToken("HammerGestureConfig"),Q=new o.InjectionToken("HammerLoader"),ee=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),te=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;return r._config=n,r.console=i,r.loader=o,r}return Object(i.__extends)(t,e),t.prototype.supports=function(e){return!(!Y.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&(!(!window.Hammer&&!this.loader)||(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),!1))},t.prototype.addEventListener=function(e,t,n){var i=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var r=!1,a=function(){r=!0};return this.loader().then((function(){if(!window.Hammer)return i.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(a=function(){});r||(a=i.addEventListener(e,t,n))})).catch((function(){i.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),a=function(){}})),function(){a()}}return o.runOutsideAngular((function(){var r=i._config.buildHammer(e),a=function(e){o.runGuarded((function(){n(e)}))};return r.on(t,a),function(){r.off(t,a),"function"==typeof r.destroy&&r.destroy()}}))},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__param)(1,Object(o.Inject)(J)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Q)),Object(i.__metadata)("design:paramtypes",[Object,ee,o["ɵConsole"],Object])],t)}(E),ne=["alt","control","meta","shift"],ie={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},oe=function(e){function t(t){return e.call(this,t)||this}var n;return Object(i.__extends)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,i){var o=n.parseEventName(t),r=n.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return s().onAndCancel(e,o.domEventName,r)}))},t.parseEventName=function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var o=n._normalizeKey(t.pop()),r="";if(ne.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),r+=e+".")})),r+=o,0!=t.length||0===o.length)return null;var a={};return a.domEventName=i,a.fullKey=r,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ne.forEach((function(i){i!=n&&((0,ie[i])(e)&&(t+=i+"."))})),t+=n},t.eventCallback=function(e,t,i){return function(o){n.getEventFullKey(o)===e&&i.runGuarded((function(){return t(o)}))}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t=n=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(E),re=function(){},ae=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(i.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.SecurityContext.NONE:return t;case o.SecurityContext.HTML:return t instanceof ce?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(o["ɵ_sanitizeHtml"])(this._doc,String(t)));case o.SecurityContext.STYLE:return t instanceof le?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(o["ɵ_sanitizeStyle"])(t));case o.SecurityContext.SCRIPT:if(t instanceof de)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case o.SecurityContext.URL:return t instanceof pe||t instanceof ue?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(o["ɵ_sanitizeUrl"])(String(t)));case o.SecurityContext.RESOURCE_URL:if(t instanceof pe)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof se)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new ce(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new le(e)},t.prototype.bypassSecurityTrustScript=function(e){return new de(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new ue(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new pe(e)},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],t)}(re),se=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(se),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(se),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(se),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(se),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(se),he=r["ɵPLATFORM_BROWSER_ID"],fe=[{provide:o.PLATFORM_ID,useValue:he},{provide:o.PLATFORM_INITIALIZER,useValue:function(){f.makeCurrent(),_.init()},multi:!0},{provide:r.PlatformLocation,useClass:g,deps:[r.DOCUMENT]},{provide:r.DOCUMENT,useFactory:function(){return document},deps:[]}],me=[{provide:o.Sanitizer,useExisting:re},{provide:re,useClass:ae,deps:[r.DOCUMENT]}];Object(o.createPlatformFactory)(o.platformCore,"browser",fe);var be=[me,{provide:o["ɵAPP_ROOT"],useValue:!0},{provide:o.ErrorHandler,useFactory:function(){return new o.ErrorHandler},deps:[]},{provide:w,useClass:X,multi:!0,deps:[r.DOCUMENT,o.NgZone,o.PLATFORM_ID]},{provide:w,useClass:oe,multi:!0,deps:[r.DOCUMENT]},{provide:w,useClass:te,multi:!0,deps:[r.DOCUMENT,J,o["ɵConsole"],[new o.Optional,Q]]},{provide:J,useClass:ee,deps:[]},{provide:V,useClass:V,deps:[S,I,o.APP_ID]},{provide:o.RendererFactory2,useExisting:V},{provide:x,useExisting:I},{provide:I,useClass:I,deps:[r.DOCUMENT]},{provide:o.Testability,useClass:o.Testability,deps:[o.NgZone]},{provide:S,useClass:S,deps:[w,o.NgZone]},k];!function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var t;t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:o.APP_ID,useValue:e.appId},{provide:y,useExisting:o.APP_ID},v]}},e=t=Object(i.__decorate)([Object(o.NgModule)({providers:be,exports:[r.CommonModule,o.ApplicationModule]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(0,Object(o.Inject)(t)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function ge(){return new ye(Object(o["ɵɵinject"])(r.DOCUMENT))}var ye=function(){function e(e){this._doc=e,this._dom=s()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce((function(e,i){return i&&e.push(n._getOrCreateElement(i,t)),e}),[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),i=this.getTag(n);if(i&&this._containsAttributes(e,i))return i}var o=this._dom.createElement("meta");this._setMetaElementAttributes(e,o);var r=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(r,o),o},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach((function(i){return n._dom.setAttribute(t,i,e[i])})),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every((function(i){return n._dom.getAttribute(t,i)===e[i]}))},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:ge,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:ge,deps:[]}),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}();function ve(){return new _e(Object(o["ɵɵinject"])(r.DOCUMENT))}var _e=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return s().getTitle(this._doc)},e.prototype.setTitle=function(e){s().setTitle(this._doc,e)},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:ve,token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:ve,deps:[]}),Object(i.__param)(0,Object(o.Inject)(r.DOCUMENT)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Oe="undefined"!=typeof window&&window||{},je=function(e,t){this.msPerTick=e,this.numTicks=t};
63
63
  /**
64
64
  * @license
65
65
  * Copyright Google Inc. All Rights Reserved.
66
66
  *
67
67
  * Use of this source code is governed by an MIT-style license that can be
68
68
  * found in the LICENSE file at https://angular.io/license
69
- */!function(){function e(e){this.appRef=e.injector.get(r.ApplicationRef)}e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=Oe.console.profile;t&&n&&Oe.console.profile("Change Detection");for(var i=s().performanceNow(),r=0;r<5||s().performanceNow()-i<500;)this.appRef.tick(),r++;var o=s().performanceNow();t&&n&&Oe.console.profileEnd("Change Detection");var a=(o-i)/r;return Oe.console.log("ran "+r+" change detection cycles"),Oe.console.log(a.toFixed(2)+" ms per check"),new je(a,r)}}();var Ce=function(){function e(){this.store={},this.onSerializeCallbacks={}}var t;return t=e,e.init=function(e){var n=new t;return n.store=e,n},e.prototype.get=function(e,t){return void 0!==this.store[e]?this.store[e]:t},e.prototype.set=function(e,t){this.store[e]=t},e.prototype.remove=function(e){delete this.store[e]},e.prototype.hasKey=function(e){return this.store.hasOwnProperty(e)},e.prototype.onSerialize=function(e,t){this.onSerializeCallbacks[e]=t},e.prototype.toJson=function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)},e=t=Object(i.__decorate)([Object(r.Injectable)()],e)}();function we(e,t){var n,i,r=e.getElementById(t+"-state"),o={};if(r&&r.textContent)try{o=JSON.parse((n=r.textContent,i={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},n.replace(/&[^;]+;/g,(function(e){return i[e]}))))}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return Ce.init(o)}(function(){function e(){}e=Object(i.__decorate)([Object(r.NgModule)({providers:[{provide:Ce,useFactory:we,deps:[o.DOCUMENT,r.APP_ID]}]})],e)})(),function(){function e(){}e.all=function(){return function(){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&s().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}}}(),new r.Version("8.2.14")
69
+ */!function(){function e(e){this.appRef=e.injector.get(o.ApplicationRef)}e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=null!=Oe.console.profile;t&&n&&Oe.console.profile("Change Detection");for(var i=s().performanceNow(),o=0;o<5||s().performanceNow()-i<500;)this.appRef.tick(),o++;var r=s().performanceNow();t&&n&&Oe.console.profileEnd("Change Detection");var a=(r-i)/o;return Oe.console.log("ran "+o+" change detection cycles"),Oe.console.log(a.toFixed(2)+" ms per check"),new je(a,o)}}();var Ce=function(){function e(){this.store={},this.onSerializeCallbacks={}}var t;return t=e,e.init=function(e){var n=new t;return n.store=e,n},e.prototype.get=function(e,t){return void 0!==this.store[e]?this.store[e]:t},e.prototype.set=function(e,t){this.store[e]=t},e.prototype.remove=function(e){delete this.store[e]},e.prototype.hasKey=function(e){return this.store.hasOwnProperty(e)},e.prototype.onSerialize=function(e,t){this.onSerializeCallbacks[e]=t},e.prototype.toJson=function(){for(var e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)},e=t=Object(i.__decorate)([Object(o.Injectable)()],e)}();function ke(e,t){var n,i,o=e.getElementById(t+"-state"),r={};if(o&&o.textContent)try{r=JSON.parse((n=o.textContent,i={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},n.replace(/&[^;]+;/g,(function(e){return i[e]}))))}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return Ce.init(r)}(function(){function e(){}e=Object(i.__decorate)([Object(o.NgModule)({providers:[{provide:Ce,useFactory:ke,deps:[r.DOCUMENT,o.APP_ID]}]})],e)})(),function(){function e(){}e.all=function(){return function(){return!0}},e.css=function(e){return function(t){return null!=t.nativeElement&&s().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}}}(),new o.Version("8.2.14")
70
70
  /**
71
71
  * @license
72
72
  * Copyright Google Inc. All Rights Reserved.
73
73
  *
74
74
  * Use of this source code is governed by an MIT-style license that can be
75
75
  * found in the LICENSE file at https://angular.io/license
76
- */;var Se=n(5),ke=n(6),xe=new r.InjectionToken("NgValueAccessor"),Ee={provide:xe,useExisting:Object(r.forwardRef)((function(){return Ie})),multi:!0},Ie=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(r.Directive)({selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[Ee]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}(),De={provide:xe,useExisting:Object(r.forwardRef)((function(){return Te})),multi:!0};var Pe=new r.InjectionToken("CompositionEventMode"),Te=function(){function e(e,t,n){var i;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=s()?s().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e=Object(i.__decorate)([Object(r.Directive)({selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[De]}),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Inject)(Pe)),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef,Boolean])],e)}(),Me=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(Me);
76
+ */;var we=n(4),Se=n(6),Ee=new o.InjectionToken("NgValueAccessor"),xe={provide:Ee,useExisting:Object(o.forwardRef)((function(){return Ie})),multi:!0},Ie=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[xe]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),De={provide:Ee,useExisting:Object(o.forwardRef)((function(){return Te})),multi:!0};var Pe=new o.InjectionToken("CompositionEventMode"),Te=function(){function e(e,t,n){var i;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=s()?s().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[De]}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(Pe)),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,Boolean])],e)}(),Me=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),Ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(Me);
77
77
  /**
78
78
  * @license
79
79
  * Copyright Google Inc. All Rights Reserved.
@@ -81,7 +81,7 @@ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
81
81
  * Use of this source code is governed by an MIT-style license that can be
82
82
  * found in the LICENSE file at https://angular.io/license
83
83
  */
84
- function Ne(){throw new Error("unimplemented")}var Ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return Ne()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Ne()},enumerable:!0,configurable:!0}),t}(Me),Be=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),Fe={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},Re=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(r.Directive)({selector:"[formControlName],[ngModel],[formControl]",host:Fe}),Object(i.__param)(0,Object(r.Self)()),Object(i.__metadata)("design:paramtypes",[Ve])],t)}(Be),ze=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(r.Directive)({selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:Fe}),Object(i.__param)(0,Object(r.Self)()),Object(i.__metadata)("design:paramtypes",[Ae])],t)}(Be);
84
+ function Ne(){throw new Error("unimplemented")}var Ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return Ne()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Ne()},enumerable:!0,configurable:!0}),t}(Me),Be=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),Re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},Fe=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formControlName],[ngModel],[formControl]",host:Re}),Object(i.__param)(0,Object(o.Self)()),Object(i.__metadata)("design:paramtypes",[Ve])],t)}(Be),ze=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:Re}),Object(i.__param)(0,Object(o.Self)()),Object(i.__metadata)("design:paramtypes",[Ae])],t)}(Be);
85
85
  /**
86
86
  * @license
87
87
  * Copyright Google Inc. All Rights Reserved.
@@ -96,7 +96,7 @@ function Ne(){throw new Error("unimplemented")}var Ve=function(e){function t(){v
96
96
  * Use of this source code is governed by an MIT-style license that can be
97
97
  * found in the LICENSE file at https://angular.io/license
98
98
  */
99
- function He(e){return null==e||0===e.length}var Le=new r.InjectionToken("NgValidators"),Ke=new r.InjectionToken("NgAsyncValidators"),Ge=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ze=function(){function e(){}return e.min=function(e){return function(t){if(He(t.value)||He(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(He(t.value)||He(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return He(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return He(e.value)||Ge.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(He(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(He(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Ue);return 0==t.length?null:function(e){return qe(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Ue);return 0==t.length?null:function(e){var n=function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(We);return Object(Se.forkJoin)(n).pipe(Object(ke.map)(qe))}},e}();function Ue(e){return null!=e}function We(e){var t=Object(r["ɵisPromise"])(e)?Object(Se.from)(e):e;if(!Object(r["ɵisObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function qe(e){var t=e.reduce((function(e,t){return null!=t?Object(i.__assign)({},e,t):e}),{});return 0===Object.keys(t).length?null:t}
99
+ function He(e){return null==e||0===e.length}var Le=new o.InjectionToken("NgValidators"),Ke=new o.InjectionToken("NgAsyncValidators"),Ge=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ze=function(){function e(){}return e.min=function(e){return function(t){if(He(t.value)||He(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(He(t.value)||He(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return He(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return He(e.value)||Ge.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(He(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(He(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Ue);return 0==t.length?null:function(e){return qe(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Ue);return 0==t.length?null:function(e){var n=function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(We);return Object(we.forkJoin)(n).pipe(Object(Se.map)(qe))}},e}();function Ue(e){return null!=e}function We(e){var t=Object(o["ɵisPromise"])(e)?Object(we.from)(e):e;if(!Object(o["ɵisObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function qe(e){var t=e.reduce((function(e,t){return null!=t?Object(i.__assign)({},e,t):e}),{});return 0===Object.keys(t).length?null:t}
100
100
  /**
101
101
  * @license
102
102
  * Copyright Google Inc. All Rights Reserved.
@@ -110,7 +110,7 @@ function He(e){return null==e||0===e.length}var Le=new r.InjectionToken("NgValid
110
110
  *
111
111
  * Use of this source code is governed by an MIT-style license that can be
112
112
  * found in the LICENSE file at https://angular.io/license
113
- */var Ye={provide:xe,useExisting:Object(r.forwardRef)((function(){return Je})),multi:!0},Je=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(r.Directive)({selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Ye]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}(),Qe={provide:xe,useExisting:Object(r.forwardRef)((function(){return tt})),multi:!0},et=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e=Object(i.__decorate)([Object(r.Injectable)()],e)}(),tt=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Ve),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"name",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formControlName",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"value",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Qe]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef,et,r.Injector])],e)}(),nt={provide:xe,useExisting:Object(r.forwardRef)((function(){return it})),multi:!0},it=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(r.Directive)({selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}(),rt='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',ot='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',at='\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',st='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ct='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ',lt=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+rt)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+ot+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+st)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+rt)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ot)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+at)},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}(),ut={provide:xe,useExisting:Object(r.forwardRef)((function(){return pt})),multi:!0};function dt(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var pt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=dt(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var r=Object(i.__values)(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a),e))return a}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(r.Directive)({selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ut]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}(),ht=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(dt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(r.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(r.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(r.Directive)({selector:"option"}),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Host)()),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.Renderer2,pt])],e)}(),ft={provide:xe,useExisting:Object(r.forwardRef)((function(){return gt})),multi:!0};function mt(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var gt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=r["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=t._getOptionValue(a.value);i.push(s)}else for(r=n.options,o=0;o<r.length;o++){if((a=r.item(o)).selected){s=t._getOptionValue(a.value);i.push(s)}}t.value=i,e(i)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var r=Object(i.__values)(Array.from(this._optionMap.keys())),o=r.next();!o.done;o=r.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a)._value,e))return a}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(r.Directive)({selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[ft]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef])],e)}(),bt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(mt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(mt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(r.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(r.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(r.Directive)({selector:"option"}),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Host)()),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.Renderer2,gt])],e)}();
113
+ */var Ye={provide:Ee,useExisting:Object(o.forwardRef)((function(){return Je})),multi:!0},Je=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Ye]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),Qe={provide:Ee,useExisting:Object(o.forwardRef)((function(){return tt})),multi:!0},et=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),tt=function(){function e(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Ve),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formControlName",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"value",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Qe]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,et,o.Injector])],e)}(),nt={provide:Ee,useExisting:Object(o.forwardRef)((function(){return it})),multi:!0},it=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),ot='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',rt='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',at='\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',st='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ct='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ',lt=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ot)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+rt+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+st)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ot)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+rt)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+at)},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e.ngModelWarning=function(e){console.warn("\n It looks like you're using ngModel on the same form field as "+e+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===e?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},e}(),dt={provide:Ee,useExisting:Object(o.forwardRef)((function(){return pt})),multi:!0};function ut(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var pt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=ut(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){var t,n;try{for(var o=Object(i.__values)(Array.from(this._optionMap.keys())),r=o.next();!r.done;r=o.next()){var a=r.value;if(this._compareWith(this._optionMap.get(a),e))return a}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[dt]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),ht=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(ut(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(o.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(o.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"option"}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Host)()),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,pt])],e)}(),ft={provide:Ee,useExisting:Object(o.forwardRef)((function(){return bt})),multi:!0};function mt(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var bt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["ɵlooseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,r=0;r<o.length;r++){var a=o.item(r),s=t._getOptionValue(a.value);i.push(s)}else for(o=n.options,r=0;r<o.length;r++){if((a=o.item(r)).selected){s=t._getOptionValue(a.value);i.push(s)}}t.value=i,e(i)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){var t,n;try{for(var o=Object(i.__values)(Array.from(this._optionMap.keys())),r=o.next();!r.done;r=o.next()){var a=r.value;if(this._compareWith(this._optionMap.get(a)._value,e))return a}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Function])],e.prototype,"compareWith",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[ft]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),gt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(mt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(mt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},Object(i.__decorate)([Object(o.Input)("ngValue"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"ngValue",null),Object(i.__decorate)([Object(o.Input)("value"),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"value",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"option"}),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Host)()),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,bt])],e)}();
114
114
  /**
115
115
  * @license
116
116
  * Copyright Google Inc. All Rights Reserved.
@@ -118,21 +118,21 @@ function He(e){return null==e||0===e.length}var Le=new r.InjectionToken("NgValid
118
118
  * Use of this source code is governed by an MIT-style license that can be
119
119
  * found in the LICENSE file at https://angular.io/license
120
120
  */
121
- function yt(e,t){return Object(i.__spread)(t.path,[e])}function vt(e,t){e||Ct(t,"Cannot find control with"),t.valueAccessor||Ct(t,"No value accessor for form control with"),e.validator=Ze.compose([e.validator,t.validator]),e.asyncValidator=Ze.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&_t(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&_t(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function _t(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ot(e,t){null==e&&Ct(t,"Cannot find control with"),e.validator=Ze.compose([e.validator,t.validator]),e.asyncValidator=Ze.composeAsync([e.asyncValidator,t.asyncValidator])}function jt(e){return Ct(e,"There is no FormControl instance attached to form control element with")}function Ct(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function wt(e){return null!=e?Ze.compose(e.map($e)):null}function St(e){return null!=e?Ze.composeAsync(e.map(Xe)):null}function kt(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(r["ɵlooseIdentical"])(t,n.currentValue)}var xt=[Ie,it,Je,pt,gt,tt];function Et(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function It(e,t){if(!t)return null;Array.isArray(t)||Ct(e,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return t.forEach((function(t){var o;t.constructor===Te?n=t:(o=t,xt.some((function(e){return o.constructor===e}))?(i&&Ct(e,"More than one built-in value accessor matches form control with"),i=t):(r&&Ct(e,"More than one custom value accessor matches form control with"),r=t))})),r||(i||(n||(Ct(e,"No valid value accessor for form control with"),null)))}function Dt(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Pt(e,t,n,i){Object(r.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(lt.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}
121
+ function yt(e,t){return Object(i.__spread)(t.path,[e])}function vt(e,t){e||Ct(t,"Cannot find control with"),t.valueAccessor||Ct(t,"No value accessor for form control with"),e.validator=Ze.compose([e.validator,t.validator]),e.asyncValidator=Ze.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&_t(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&_t(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function _t(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Ot(e,t){null==e&&Ct(t,"Cannot find control with"),e.validator=Ze.compose([e.validator,t.validator]),e.asyncValidator=Ze.composeAsync([e.asyncValidator,t.asyncValidator])}function jt(e){return Ct(e,"There is no FormControl instance attached to form control element with")}function Ct(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function kt(e){return null!=e?Ze.compose(e.map($e)):null}function wt(e){return null!=e?Ze.composeAsync(e.map(Xe)):null}function St(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(o["ɵlooseIdentical"])(t,n.currentValue)}var Et=[Ie,it,Je,pt,bt,tt];function xt(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function It(e,t){if(!t)return null;Array.isArray(t)||Ct(e,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,o=void 0;return t.forEach((function(t){var r;t.constructor===Te?n=t:(r=t,Et.some((function(e){return r.constructor===e}))?(i&&Ct(e,"More than one built-in value accessor matches form control with"),i=t):(o&&Ct(e,"More than one custom value accessor matches form control with"),o=t))})),o||(i||(n||(Ct(e,"No valid value accessor for form control with"),null)))}function Dt(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Pt(e,t,n,i){Object(o.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||t._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(lt.ngModelWarning(e),t._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}
122
122
  /**
123
123
  * @license
124
124
  * Copyright Google Inc. All Rights Reserved.
125
125
  *
126
126
  * Use of this source code is governed by an MIT-style license that can be
127
127
  * found in the LICENSE file at https://angular.io/license
128
- */function Tt(e){var t=At(e)?e.validators:e;return Array.isArray(t)?wt(t):t||null}function Mt(e,t){var n=At(t)?t.asyncValidators:e;return Array.isArray(n)?St(n):n||null}function At(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Nt=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=Tt(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=Mt(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object(i.__assign)({},e,{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object(i.__assign)({},e,{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=We(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce((function(e,t){return e instanceof Bt?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Ft&&e.at(t)||null}),e))}(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls((function(t){return t.status===e}))},e.prototype._anyControlsDirty=function(){return this._anyControls((function(e){return e.dirty}))},e.prototype._anyControlsTouched=function(){return this._anyControls((function(e){return e.touched}))},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){At(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){var t=this._parent&&this._parent.dirty;return!e&&t&&!this._parent._anyControlsDirty()},e}(),Vt=function(e){function t(t,n,i){void 0===t&&(t=null);var r=e.call(this,Tt(n),Mt(i,n))||this;return r._onChange=[],r._applyFormState(t),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return Object(i.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach((function(e){return e(n.value,!1!==t.emitViewToModelChange)})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(Nt),Bt=function(e){function t(t,n,i){var r=e.call(this,Tt(n),Mt(i,n))||this;return r.controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(i.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach((function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach((function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Vt?t.value:t.getRawValue(),e}))},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild((function(i,r){n=n||t.contains(r)&&e(i)})),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(Object.keys(this.controls)),r=n.next();!r.done;r=n.next()){var o=r.value;if(this.controls[o].enabled)return!1}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},t}(Nt),Ft=function(e){function t(t,n,i){var r=e.call(this,Tt(n),Mt(i,n))||this;return r.controls=t,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(i.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach((function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach((function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map((function(e){return e instanceof Vt?e.value:e.getRawValue()}))},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},t.prototype._syncPendingControls=function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach((function(t,n){e(t,n)}))},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))},t.prototype._anyControls=function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(this.controls),r=n.next();!r.done;r=n.next()){if(r.value.enabled)return!1}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Nt),Rt={provide:Ae,useExisting:Object(r.forwardRef)((function(){return Ht}))},zt=Promise.resolve(null),Ht=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new r.EventEmitter,i.form=new Bt({},wt(t),St(n)),i}return Object(i.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),vt(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Dt(t._directives,e)}))},t.prototype.addFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path),i=new Bt({});Ot(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))},t.prototype.removeFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;zt.then((function(){n.form.get(e.path).setValue(t)}))},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,Et(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},Object(i.__decorate)([Object(r.Input)("ngFormOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),t=Object(i.__decorate)([Object(r.Directive)({selector:"form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]",providers:[Rt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Self)()),Object(i.__param)(0,Object(r.Inject)(Le)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Ae),Lt=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+rt+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+ct)},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+ot+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+st)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+ot+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+st)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},e}(),Kt=new r.InjectionToken("NgFormSelectorWarning"),Gt=function(){function e(e){(e&&"once"!==e||t._ngFormWarning)&&"always"!==e||(Lt.ngFormWarning(),t._ngFormWarning=!0)}var t;return t=e,e._ngFormWarning=!1,e=t=Object(i.__decorate)([Object(r.Directive)({selector:"ngForm"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Inject)(Kt)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return yt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return St(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(Ae),Ut={provide:Ae,useExisting:Object(r.forwardRef)((function(){return Wt}))},Wt=function(e){function t(t,n,i){var r=e.call(this)||this;return r._parent=t,r._validators=n,r._asyncValidators=i,r}var n;return Object(i.__extends)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Ht||Lt.modelGroupParentException()},Object(i.__decorate)([Object(r.Input)("ngModelGroup"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=n=Object(i.__decorate)([Object(r.Directive)({selector:"[ngModelGroup]",providers:[Ut],exportAs:"ngModelGroup"}),Object(i.__param)(0,Object(r.Host)()),Object(i.__param)(0,Object(r.SkipSelf)()),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Le)),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Self)()),Object(i.__param)(2,Object(r.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array])],t)}(Zt),qt={provide:Ve,useExisting:Object(r.forwardRef)((function(){return Xt}))},$t=Promise.resolve(null),Xt=function(e){function t(t,n,i,o){var a=e.call(this)||this;return a.control=new Vt,a._registered=!1,a.update=new r.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=It(a,o),a}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),kt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?yt(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return St(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){vt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Wt)&&this._parent instanceof Zt?Lt.formGroupNameException():this._parent instanceof Wt||this._parent instanceof Ht||Lt.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Lt.missingNameException()},t.prototype._updateValue=function(e){var t=this;$t.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;$t.then((function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()}))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),Object(i.__decorate)([Object(r.Input)("disabled"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"isDisabled",void 0),Object(i.__decorate)([Object(r.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(r.Input)("ngModelOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),Object(i.__decorate)([Object(r.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=Object(i.__decorate)([Object(r.Directive)({selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[qt],exportAs:"ngModel"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Host)()),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Le)),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Self)()),Object(i.__param)(2,Object(r.Inject)(Ke)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__param)(3,Object(r.Self)()),Object(i.__param)(3,Object(r.Inject)(xe)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array,Array])],t)}(Ve),Yt=function(){function e(){}return e=Object(i.__decorate)([Object(r.Directive)({selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}})],e)}(),Jt=new r.InjectionToken("NgModelWithFormControlWarning"),Qt={provide:Ve,useExisting:Object(r.forwardRef)((function(){return en}))},en=function(e){function t(t,n,i,o){var a=e.call(this)||this;return a._ngModelWarningConfig=o,a.update=new r.EventEmitter,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=n||[],a.valueAccessor=It(a,i),a}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){lt.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(vt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),kt(e,this.viewModel)&&(Pt("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return St(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,Object(i.__decorate)([Object(r.Input)("formControl"),Object(i.__metadata)("design:type",Vt)],t.prototype,"form",void 0),Object(i.__decorate)([Object(r.Input)("disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(i.__decorate)([Object(r.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(r.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(i.__decorate)([Object(r.Directive)({selector:"[formControl]",providers:[Qt],exportAs:"ngForm"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Self)()),Object(i.__param)(0,Object(r.Inject)(Le)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Ke)),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Self)()),Object(i.__param)(2,Object(r.Inject)(xe)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__param)(3,Object(r.Inject)(Jt)),Object(i.__metadata)("design:paramtypes",[Array,Array,Array,Object])],t)}(Ve),tn={provide:Ae,useExisting:Object(r.forwardRef)((function(){return nn}))},nn=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new r.EventEmitter,i}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return vt(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){Dt(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,Et(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(!function(e,t){t.valueAccessor.registerOnChange((function(){return jt(t)})),t.valueAccessor.registerOnTouched((function(){return jt(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&vt(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=wt(this._validators);this.form.validator=Ze.compose([this.form.validator,e]);var t=St(this._asyncValidators);this.form.asyncValidator=Ze.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||lt.missingFormException()},Object(i.__decorate)([Object(r.Input)("formGroup"),Object(i.__metadata)("design:type",Bt)],t.prototype,"form",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",Object)],t.prototype,"ngSubmit",void 0),t=Object(i.__decorate)([Object(r.Directive)({selector:"[formGroup]",providers:[tn],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Self)()),Object(i.__param)(0,Object(r.Inject)(Le)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Ae),rn={provide:Ae,useExisting:Object(r.forwardRef)((function(){return on}))},on=function(e){function t(t,n,i){var r=e.call(this)||this;return r._parent=t,r._validators=n,r._asyncValidators=i,r}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){cn(this._parent)&&lt.groupParentException()},Object(i.__decorate)([Object(r.Input)("formGroupName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(r.Directive)({selector:"[formGroupName]",providers:[rn]}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Host)()),Object(i.__param)(0,Object(r.SkipSelf)()),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Le)),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Self)()),Object(i.__param)(2,Object(r.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array])],t)}(Zt),an={provide:Ae,useExisting:Object(r.forwardRef)((function(){return sn}))},sn=function(e){function t(t,n,i){var r=e.call(this)||this;return r._parent=t,r._validators=n,r._asyncValidators=i,r}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return yt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return St(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){cn(this._parent)&&lt.arrayParentException()},Object(i.__decorate)([Object(r.Input)("formArrayName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(r.Directive)({selector:"[formArrayName]",providers:[an]}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Host)()),Object(i.__param)(0,Object(r.SkipSelf)()),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Le)),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Self)()),Object(i.__param)(2,Object(r.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array])],t)}(Ae);function cn(e){return!(e instanceof on||e instanceof nn||e instanceof sn)}
128
+ */function Tt(e){var t=At(e)?e.validators:e;return Array.isArray(t)?kt(t):t||null}function Mt(e,t){var n=At(t)?t.asyncValidators:e;return Array.isArray(n)?wt(n):n||null}function At(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var Nt=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=Tt(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=Mt(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object(i.__assign)({},e,{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))},e.prototype.enable=function(e){void 0===e&&(e={});var t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object(i.__assign)({},e,{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object(i.__assign)({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=We(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce((function(e,t){return e instanceof Bt?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Rt&&e.at(t)||null}),e))}(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls((function(t){return t.status===e}))},e.prototype._anyControlsDirty=function(){return this._anyControls((function(e){return e.dirty}))},e.prototype._anyControlsTouched=function(){return this._anyControls((function(e){return e.touched}))},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){At(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e.prototype._parentMarkedDirty=function(e){var t=this._parent&&this._parent.dirty;return!e&&t&&!this._parent._anyControlsDirty()},e}(),Vt=function(e){function t(t,n,i){void 0===t&&(t=null);var o=e.call(this,Tt(n),Mt(i,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(i.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach((function(e){return e(n.value,!1!==t.emitViewToModelChange)})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(Nt),Bt=function(e){function t(t,n,i){var o=e.call(this,Tt(n),Mt(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach((function(i){n._throwIfControlMissing(i),n.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach((function(i){n.controls[i]&&n.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Vt?t.value:t.getRawValue(),e}))},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild((function(i,o){n=n||t.contains(o)&&e(i)})),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},(function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t}))},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild((function(e,i){n=t(n,e,i)})),n},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(Object.keys(this.controls)),o=n.next();!o.done;o=n.next()){var r=o.value;if(this.controls[r].enabled)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},t}(Nt),Rt=function(e){function t(t,n,i){var o=e.call(this,Tt(n),Mt(i,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(i.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach((function(e,i){n._throwIfControlMissing(i),n.at(i).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach((function(e,i){n.at(i)&&n.at(i).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})})),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild((function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)},t.prototype.getRawValue=function(){return this.controls.map((function(e){return e instanceof Vt?e.value:e.getRawValue()}))},t.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},t.prototype._syncPendingControls=function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach((function(t,n){e(t,n)}))},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))},t.prototype._anyControls=function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))},t.prototype._setUpControls=function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))},t.prototype._checkAllValuesPresent=function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")}))},t.prototype._allControlsDisabled=function(){var e,t;try{for(var n=Object(i.__values)(this.controls),o=n.next();!o.done;o=n.next()){if(o.value.enabled)return!1}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Nt),Ft={provide:Ae,useExisting:Object(o.forwardRef)((function(){return Ht}))},zt=Promise.resolve(null),Ht=function(e){function t(t,n){var i=e.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new o.EventEmitter,i.form=new Bt({},kt(t),wt(n)),i}return Object(i.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),vt(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Dt(t._directives,e)}))},t.prototype.addFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path),i=new Bt({});Ot(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))},t.prototype.removeFormGroup=function(e){var t=this;zt.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;zt.then((function(){n.form.get(e.path).setValue(t)}))},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,xt(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},Object(i.__decorate)([Object(o.Input)("ngFormOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]",providers:[Ft],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(Le)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Ae),Lt=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ot+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+ct)},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+rt+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+st)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+rt+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+st)},e.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n <ngForm #myForm=\"ngForm\">\n\n After:\n <ng-form #myForm=\"ngForm\">\n ")},e}(),Kt=new o.InjectionToken("NgFormSelectorWarning"),Gt=function(){function e(e){(e&&"once"!==e||t._ngFormWarning)&&"always"!==e||(Lt.ngFormWarning(),t._ngFormWarning=!0)}var t;return t=e,e._ngFormWarning=!1,e=t=Object(i.__decorate)([Object(o.Directive)({selector:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Inject)(Kt)),Object(i.__metadata)("design:paramtypes",[Object])],e)}(),Zt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return yt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return kt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(Ae),Ut={provide:Ae,useExisting:Object(o.forwardRef)((function(){return Wt}))},Wt=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}var n;return Object(i.__extends)(t,e),n=t,t.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Ht||Lt.modelGroupParentException()},Object(i.__decorate)([Object(o.Input)("ngModelGroup"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[ngModelGroup]",providers:[Ut],exportAs:"ngModelGroup"}),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Le)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array])],t)}(Zt),qt={provide:Ve,useExisting:Object(o.forwardRef)((function(){return Xt}))},$t=Promise.resolve(null),Xt=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a.control=new Vt,a._registered=!1,a.update=new o.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=It(a,r),a}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),St(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?yt(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return kt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){vt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Wt)&&this._parent instanceof Zt?Lt.formGroupNameException():this._parent instanceof Wt||this._parent instanceof Ht||Lt.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Lt.missingNameException()},t.prototype._updateValue=function(e){var t=this;$t.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;$t.then((function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"isDisabled",void 0),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Input)("ngModelOptions"),Object(i.__metadata)("design:type",Object)],t.prototype,"options",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[qt],exportAs:"ngModel"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Le)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Self)()),Object(i.__param)(3,Object(o.Inject)(Ee)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array,Array])],t)}(Ve),Yt=function(){function e(){}return e=Object(i.__decorate)([Object(o.Directive)({selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}})],e)}(),Jt=new o.InjectionToken("NgModelWithFormControlWarning"),Qt={provide:Ve,useExisting:Object(o.forwardRef)((function(){return en}))},en=function(e){function t(t,n,i,r){var a=e.call(this)||this;return a._ngModelWarningConfig=r,a.update=new o.EventEmitter,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=n||[],a.valueAccessor=It(a,i),a}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){lt.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(vt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),St(e,this.viewModel)&&(Pt("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return kt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t._ngModelWarningSentOnce=!1,Object(i.__decorate)([Object(o.Input)("formControl"),Object(i.__metadata)("design:type",Vt)],t.prototype,"form",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[formControl]",providers:[Qt],exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(Le)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ee)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Jt)),Object(i.__metadata)("design:paramtypes",[Array,Array,Array,Object])],t)}(Ve),tn={provide:Ae,useExisting:Object(o.forwardRef)((function(){return nn}))},nn=function(e){function t(t,n){var i=e.call(this)||this;return i._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new o.EventEmitter,i}return Object(i.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return vt(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){Dt(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);Ot(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,xt(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(!function(e,t){t.valueAccessor.registerOnChange((function(){return jt(t)})),t.valueAccessor.registerOnTouched((function(){return jt(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&vt(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=kt(this._validators);this.form.validator=Ze.compose([this.form.validator,e]);var t=wt(this._asyncValidators);this.form.asyncValidator=Ze.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||lt.missingFormException()},Object(i.__decorate)([Object(o.Input)("formGroup"),Object(i.__metadata)("design:type",Bt)],t.prototype,"form",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",Object)],t.prototype,"ngSubmit",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroup]",providers:[tn],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Self)()),Object(i.__param)(0,Object(o.Inject)(Le)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Array,Array])],t)}(Ae),on={provide:Ae,useExisting:Object(o.forwardRef)((function(){return rn}))},rn=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype._checkParentType=function(){cn(this._parent)&&lt.groupParentException()},Object(i.__decorate)([Object(o.Input)("formGroupName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formGroupName]",providers:[on]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Le)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array])],t)}(Zt),an={provide:Ae,useExisting:Object(o.forwardRef)((function(){return sn}))},sn=function(e){function t(t,n,i){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=i,o}return Object(i.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return yt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return kt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){cn(this._parent)&&lt.arrayParentException()},Object(i.__decorate)([Object(o.Input)("formArrayName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),t=Object(i.__decorate)([Object(o.Directive)({selector:"[formArrayName]",providers:[an]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Le)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array])],t)}(Ae);function cn(e){return!(e instanceof rn||e instanceof nn||e instanceof sn)}
129
129
  /**
130
130
  * @license
131
131
  * Copyright Google Inc. All Rights Reserved.
132
132
  *
133
133
  * Use of this source code is governed by an MIT-style license that can be
134
134
  * found in the LICENSE file at https://angular.io/license
135
- */var ln={provide:Ve,useExisting:Object(r.forwardRef)((function(){return un}))},un=function(e){function t(t,n,i,o,a){var s=e.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new r.EventEmitter,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=It(s,o),s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){lt.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),kt(e,this.viewModel)&&(Pt("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return yt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return wt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return St(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof on)&&this._parent instanceof Zt?lt.ngModelGroupException():this._parent instanceof on||this._parent instanceof nn||this._parent instanceof sn||lt.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t._ngModelWarningSentOnce=!1,Object(i.__decorate)([Object(r.Input)("formControlName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),Object(i.__decorate)([Object(r.Input)("disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(i.__decorate)([Object(r.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(r.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(i.__decorate)([Object(r.Directive)({selector:"[formControlName]",providers:[ln]}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Host)()),Object(i.__param)(0,Object(r.SkipSelf)()),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(1,Object(r.Self)()),Object(i.__param)(1,Object(r.Inject)(Le)),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Self)()),Object(i.__param)(2,Object(r.Inject)(Ke)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__param)(3,Object(r.Self)()),Object(i.__param)(3,Object(r.Inject)(xe)),Object(i.__param)(4,Object(r.Optional)()),Object(i.__param)(4,Object(r.Inject)(Jt)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array,Array,Object])],t)}(Ve),dn={provide:Le,useExisting:Object(r.forwardRef)((function(){return hn})),multi:!0},pn={provide:Le,useExisting:Object(r.forwardRef)((function(){return fn})),multi:!0},hn=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?Ze.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"required",null),e=Object(i.__decorate)([Object(r.Directive)({selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[dn],host:{"[attr.required]":'required ? "" : null'}})],e)}(),fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.validate=function(e){return this.required?Ze.requiredTrue(e):null},t=Object(i.__decorate)([Object(r.Directive)({selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[pn],host:{"[attr.required]":'required ? "" : null'}})],t)}(hn),mn={provide:Le,useExisting:Object(r.forwardRef)((function(){return gn})),multi:!0},gn=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?Ze.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"email",null),e=Object(i.__decorate)([Object(r.Directive)({selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[mn]})],e)}(),bn={provide:Le,useExisting:Object(r.forwardRef)((function(){return yn})),multi:!0},yn=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ze.minLength(parseInt(this.minlength,10))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"minlength",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[bn],host:{"[attr.minlength]":"minlength ? minlength : null"}})],e)}(),vn={provide:Le,useExisting:Object(r.forwardRef)((function(){return _n})),multi:!0},_n=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ze.maxLength(parseInt(this.maxlength,10))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"maxlength",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[vn],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}})],e)}(),On={provide:Le,useExisting:Object(r.forwardRef)((function(){return jn})),multi:!0},jn=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ze.pattern(this.pattern)},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"pattern",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[On],host:{"[attr.pattern]":"pattern ? pattern : null"}})],e)}(),Cn=[Yt,ht,bt,Te,Je,it,Ie,pt,gt,tt,Re,ze,hn,yn,_n,jn,fn,gn],wn=[Xt,Wt,Ht,Gt],Sn=[en,nn,un,on,sn],kn=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:Cn,exports:Cn})],e)}();var xn=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(!
135
+ */var ln={provide:Ve,useExisting:Object(o.forwardRef)((function(){return dn}))},dn=function(e){function t(t,n,i,r,a){var s=e.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new o.EventEmitter,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=It(s,r),s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"isDisabled",{set:function(e){lt.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),St(e,this.viewModel)&&(Pt("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return yt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return kt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return wt(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof rn)&&this._parent instanceof Zt?lt.ngModelGroupException():this._parent instanceof rn||this._parent instanceof nn||this._parent instanceof sn||lt.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t._ngModelWarningSentOnce=!1,Object(i.__decorate)([Object(o.Input)("formControlName"),Object(i.__metadata)("design:type",String)],t.prototype,"name",void 0),Object(i.__decorate)([Object(o.Input)("disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],t.prototype,"isDisabled",null),Object(i.__decorate)([Object(o.Input)("ngModel"),Object(i.__metadata)("design:type",Object)],t.prototype,"model",void 0),Object(i.__decorate)([Object(o.Output)("ngModelChange"),Object(i.__metadata)("design:type",Object)],t.prototype,"update",void 0),t=n=Object(i.__decorate)([Object(o.Directive)({selector:"[formControlName]",providers:[ln]}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__param)(0,Object(o.Host)()),Object(i.__param)(0,Object(o.SkipSelf)()),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(1,Object(o.Self)()),Object(i.__param)(1,Object(o.Inject)(Le)),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Self)()),Object(i.__param)(2,Object(o.Inject)(Ke)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Self)()),Object(i.__param)(3,Object(o.Inject)(Ee)),Object(i.__param)(4,Object(o.Optional)()),Object(i.__param)(4,Object(o.Inject)(Jt)),Object(i.__metadata)("design:paramtypes",[Ae,Array,Array,Array,Object])],t)}(Ve),un={provide:Le,useExisting:Object(o.forwardRef)((function(){return hn})),multi:!0},pn={provide:Le,useExisting:Object(o.forwardRef)((function(){return fn})),multi:!0},hn=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?Ze.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"required",null),e=Object(i.__decorate)([Object(o.Directive)({selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[un],host:{"[attr.required]":'required ? "" : null'}})],e)}(),fn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.validate=function(e){return this.required?Ze.requiredTrue(e):null},t=Object(i.__decorate)([Object(o.Directive)({selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[pn],host:{"[attr.required]":'required ? "" : null'}})],t)}(hn),mn={provide:Le,useExisting:Object(o.forwardRef)((function(){return bn})),multi:!0},bn=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?Ze.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"email",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[mn]})],e)}(),gn={provide:Le,useExisting:Object(o.forwardRef)((function(){return yn})),multi:!0},yn=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ze.minLength(parseInt(this.minlength,10))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"minlength",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[gn],host:{"[attr.minlength]":"minlength ? minlength : null"}})],e)}(),vn={provide:Le,useExisting:Object(o.forwardRef)((function(){return _n})),multi:!0},_n=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ze.maxLength(parseInt(this.maxlength,10))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"maxlength",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[vn],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}})],e)}(),On={provide:Le,useExisting:Object(o.forwardRef)((function(){return jn})),multi:!0},jn=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Ze.pattern(this.pattern)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"pattern",void 0),e=Object(i.__decorate)([Object(o.Directive)({selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[On],host:{"[attr.pattern]":"pattern ? pattern : null"}})],e)}(),Cn=[Yt,ht,gt,Te,Je,it,Ie,pt,bt,tt,Fe,ze,hn,yn,_n,jn,fn,bn],kn=[Xt,Wt,Ht,Gt],wn=[en,nn,dn,rn,sn],Sn=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:Cn,exports:Cn})],e)}();var En=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),i=null,o=null,r=void 0;return null!=t&&(!
136
136
  /**
137
137
  * @license
138
138
  * Copyright Google Inc. All Rights Reserved.
@@ -140,11 +140,11 @@ function yt(e,t){return Object(i.__spread)(t.path,[e])}function vt(e,t){e||Ct(t,
140
140
  * Use of this source code is governed by an MIT-style license that can be
141
141
  * found in the LICENSE file at https://angular.io/license
142
142
  */
143
- function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null):(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0)),new Bt(n,{asyncValidators:r,updateOn:o,validators:i})},e.prototype.control=function(e,t,n){return new Vt(e,t,n)},e.prototype.array=function(e,t,n){var i=this,r=e.map((function(e){return i._createControl(e)}));return new Ft(r,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach((function(i){n[i]=t._createControl(e[i])})),n},e.prototype._createControl=function(e){if(e instanceof Vt||e instanceof Bt||e instanceof Ft)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,i=e.length>2?e[2]:null;return this.control(t,n,i)}return this.control(e)},e=Object(i.__decorate)([Object(r.Injectable)()],e)}(),En=(new r.Version("8.2.14"),function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Kt,useValue:e.warnOnDeprecatedNgFormSelector}]}},e=t=Object(i.__decorate)([Object(r.NgModule)({declarations:wn,providers:[et],exports:[kn,wn]})],e)}(),function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Jt,useValue:e.warnOnNgModelWithFormControl}]}},e=t=Object(i.__decorate)([Object(r.NgModule)({declarations:[Sn],providers:[xn,et],exports:[kn,Sn]})],e)}(),n(3)),In=n(2),Dn=n(8),Pn=n(9),Tn={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};
143
+ function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validator?t.validator:null,o=null!=t.asyncValidator?t.asyncValidator:null):(i=null!=t.validators?t.validators:null,o=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0)),new Bt(n,{asyncValidators:o,updateOn:r,validators:i})},e.prototype.control=function(e,t,n){return new Vt(e,t,n)},e.prototype.array=function(e,t,n){var i=this,o=e.map((function(e){return i._createControl(e)}));return new Rt(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach((function(i){n[i]=t._createControl(e[i])})),n},e.prototype._createControl=function(e){if(e instanceof Vt||e instanceof Bt||e instanceof Rt)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,i=e.length>2?e[2]:null;return this.control(t,n,i)}return this.control(e)},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),xn=(new o.Version("8.2.14"),function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Kt,useValue:e.warnOnDeprecatedNgFormSelector}]}},e=t=Object(i.__decorate)([Object(o.NgModule)({declarations:kn,providers:[et],exports:[Sn,kn]})],e)}(),function(){function e(){}var t;t=e,e.withConfig=function(e){return{ngModule:t,providers:[{provide:Jt,useValue:e.warnOnNgModelWithFormControl}]}},e=t=Object(i.__decorate)([Object(o.NgModule)({declarations:[wn],providers:[En,et],exports:[Sn,wn]})],e)}(),n(3)),In=n(2),Dn=n(8),Pn=n(9),Tn={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"€","symbol-alt-narrow":"€"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};
144
144
  /**
145
145
  * @license
146
146
  * Copyright Google Inc. All Rights Reserved.
147
147
  *
148
148
  * Use of this source code is governed by an MIT-style license that can be
149
149
  * found in the LICENSE file at https://angular.io/license
150
- */function Mn(e){return"string"==typeof e}var An=/\{(\d+)}?\}/g,Nn=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};Nn.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Bn(e),i=this.message.replace(An,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+i},Nn.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var Vn,Bn=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},Fn=(Vn={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(Vn).reduce((function(e,t){return e[t]=new Nn({name:t,message:Vn[t]}),e}),{}));var Rn=Tn;function zn(e){return Mn(e)?Hn(e):e}function Hn(e){if(Rn[e])return Rn[e];if(Rn.supplemental.likelySubtags){var t=e.split("-"),n=t[0],i=t.slice(1),r=function(e,t){for(var n=Rn.supplemental.likelySubtags,i=0;i<t.length;i++){var r=n[e+"-"+t[i]];if(r)return r}if(n[e])return n[e]}(n,i),o=r?function(e,t){var n=e.split("-"),i=n[0],r=n[1],o=n[2];return Rn[e]||-1!==t.indexOf(o)&&Rn[i+"-"+o]||-1!==t.indexOf(r)&&Rn[i+"-"+r]||Rn[i]}(r,i):null;if(o)return o}throw Fn.NoLocale.error(e)}var Ln=/([#,0.]+)/g,Kn=/¤/g;function Gn(e){return Ln.lastIndex=0,e.replace(Kn,"$").replace(Ln,"n").split(";")}function Zn(e){return Ln.lastIndex=0,Ln.exec(e.split(";")[0])[0].split(".")[0].split(",").slice(1).map((function(e){return e.length})).reverse()}function Un(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}","n").replace("{1}","$"))}function Wn(e,t){var n=Rn[e],i=n.numbers=n.numbers||{};for(var r in i.symbols=i.symbols||{},t)if("symbols-numberSystem-latn"===r)Object.assign(i.symbols,t[r]);else if(r.includes("Formats-numberSystem-latn")){var o=r.substr(0,r.indexOf("Formats-numberSystem-latn")),a=t[r].standard;i[o]={patterns:Gn(a)},"currency"===o?(i[o].groupSize=Zn((t["decimalFormats-numberSystem-latn"]||t[r]).standard),Un(i[o],t[r]),i.accounting={patterns:Gn(t[r].accounting),groupSize:i[o].groupSize}):i[o].groupSize=Zn(a)}else"currencies"===r&&(i.currencies=t[r])}var qn={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},$n=/y+/g,Xn=[["dateFormats","short"]],Yn={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function Jn(e){for(var t=[],n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var r=e[n[i]];t.push(r)}return t}function Qn(e,t){var n={};for(var i in e){var r=n[i]={};for(var o in e[i]){var a=e[i][o];r[o]=t?a:Jn(a)}}return n}function ei(e,t){var n=Rn[e].calendar;n.days=Qn(t.days),n.months=Qn(t.months),n.quarters=Qn(t.quarters),n.dayPeriods=Qn(t.dayPeriods,!0),n.eras=function(e){var t={},n=t.format={},i={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var r in e){n[i[r]]=e[r]}return t}(t.eras)}function ti(e,t){var n=Rn[e].calendar,i={};for(var r in t){var o=r.split("-"),a=o[0],s=o[1];void 0===s&&(s="wide");var c=i[a]||{},l=t[r].displayName;l&&(c[s]=l,i[a]=c)}n.dateFields=i}function ni(e,t){for(var n=[],i=0;i<e.length;i++){for(var r=e[i],o=t,a=0;a<r.length;a++)o=o[r[a]];n.push(o)}return n.join(" ")}function ii(e,t){var n=Rn[e].calendar,i=n.patterns={};for(var r in i.d=ni(Xn,t).replace($n,"y"),Yn)i[r]=ni(Yn[r],t);for(var o in qn)i[o]=qn[o];var a=t.dateTimeFormats;n.dateTimeFormats={full:a.full,long:a.long,medium:a.medium,short:a.short,availableFormats:a.availableFormats},n.timeFormats=t.timeFormats,n.dateFormats=t.dateFormats}function ri(e,t){var n=Rn[e].calendar=Rn[e].calendar||{};for(var i in t)"timeZoneNames"===i?(n.gmtFormat=t[i].gmtFormat,n.gmtZeroFormat=t[i].gmtZeroFormat):"calendars"===i&&t[i].gregorian?(ii(e,t[i].gregorian),ei(e,t[i].gregorian)):"fields"===i&&ti(e,t.fields)}function oi(e){if(e.territory)return e.territory;var t,n=e.name,i=e.identity;return t=i&&i.territory?i.territory:function(e,t){var n=Rn.supplemental.likelySubtags,i=e.split("-");if(n){var r=n[e]||n[i[0]];r&&(i=r.split("-"))}if(t)for(var o=i.length-1;o>=1;o--){var a=i[o];a!==t.variant&&a!==t.script||i.splice(o,1)}var s=i.length;if(s>1)return i[s-1].toUpperCase()}(n,i),e.territory=t,t}function ai(e,t){for(var n in t)"numbers"===n?Wn(e,t[n]):"dates"===n&&ri(e,t[n])}function si(e,t){var n,i=t.type,r=t.nameType,o=t.standAlone,a=t.lower,s=o?"stand-alone":"format",c=(a?"lower-":"")+r,l=zn(e).calendar[i][s],u=l[c];return!u&&a&&(u=l[c]=(n=l[r],Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(n):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(n))),u}function ci(e){var t=e.split("-"),n=parseInt(t[0],10),i=parseInt(t[1],10)-1,r=parseInt(t[2],10);return new Date(n,i,r)}var li=Fn.NoCurrency,ui=Fn.NoCurrencyDisplay,di=Fn.NoSupplementalCurrency,pi=Fn.NoCurrencyRegion,hi=Fn.NoValidCurrency,fi={"001":"USD",150:"EUR"};function mi(e,t,n){var i=zn(e).numbers.currencies;if(i){var r=i[t];if(r)return r;if(n)throw ui.error()}else if(n)throw li.error()}function gi(e,t){return t.length-e.length}function bi(e,t){if(void 0===t&&(t=!0),fi[e])return fi[e];var n=Rn.supplemental.currencyData;if(n){var i=n.region[e];if(i)return function(e){for(var t,n,i,r,o=0;o<e.length;o++){var a=e[o],s=Object.keys(a)[0],c=a[s];if("XXX"!==s&&"false"!==c._tender&&c._from)if(c._to){if(!i){var l=ci(c._from),u=ci(c._to);(!n||n.to<u||n.from<l)&&(t=s,n={from:l,to:u})}}else{var d=ci(c._from);(!r||r<d)&&(i=s,r=d)}}return i||t}(i);if(t)throw pi.error(e)}else if(t)throw di.error()}function yi(e,t){var n=zn(e),i=n.numbers;if(!i.localeCurrency){var r=bi(oi(n),t);if(!r&&t)throw hi.error(n.name);i.localeCurrency=r}return i.localeCurrency}var vi=["sun","mon","tue","wed","thu","fri","sat"],_i=Fn.NoWeekData,Oi=Fn.NoFirstDay;function ji(e){var t=zn(e);if(!isNaN(t.firstDay))return t.firstDay;var n=Rn.supplemental.weekData;if(!n)throw _i.error();var i=n.firstDay[oi(t)]||n.firstDay["001"];if(!i)throw Oi.error();return t.firstDay=vi.indexOf(i),t.firstDay}var Ci=Fn.NoWeekData;function wi(e){return 1/e==-1/0}function Si(e,t){return void 0===t&&(t={}),t.currency||(t.currency=yi(e,!0)),function(e,t){var n=t.value,i=t.currency,r=t.currencyDisplay;if(void 0===r&&(r="symbol"),"code"===r)return i;var o=mi(e,i,!0);return"symbol"===r?o["symbol-alt-narrow"]||o.symbol:void 0===typeof n||1!==n?o["displayName-count-other"]:o["displayName-count-one"]}(e,t)}function ki(e,t,n,i,r){var o=r.numbers.symbols,a=e.indexOf(o.decimal),s=i.groupSize.slice(),c=s.shift(),l=-1!==a?a:n+1,u=e.substring(t,l),d=e,p=u.length;if(p>=c){for(var h=p,f=[];h>-1;){var m=u.substring(h-c,h);m&&f.push(m),h-=c;var g=s.shift();if(0===(c=void 0!==g?g:c)){(m=u.substring(0,h))&&f.push(m);break}}u=f.reverse().join(o.group),d=e.substring(0,t)+u+e.substring(l)}return d}function xi(e){return"currency"===e||"accounting"===e}function Ei(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var i=t-String(e).length,r=e;if(i>0){var o=new Array(i+1).join("0");r=n?e+o:o+e}return r}function Ii(e,t){var n=e,i=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+i:i)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-i:-i))).toFixed(Math.min(i,20))}var Di=/0+$/;function Pi(e){var t,n=e.minimumFractionDigits,i=e.maximumFractionDigits,r=e.style,o=xi(r);return o&&(t=function(e){var t=2,n=2,i=((Rn.supplemental.currencyData||{}).fractions||{})[e];return i&&i._digits&&(n=t=parseInt(i._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=o?t.minimumFractionDigits:0),void 0===i&&(i="percent"===r?Math.max(n,0):o?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:i}}var Ti=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function Mi(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=Si(t))}function Ai(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(Ti,(function(e){var t=e.charAt(0).replace("\\",""),i=e.slice(1).replace(t,"");return n.push(i),"__??__"}))}}var Ni=/(\.(?:[0-9]*[1-9])?)0+$/g,Vi=/\.$/,Bi=/\,/g;function Fi(e){var t,n,i,r=e.number,o=e.format,a=o.indexOf(".");if(-1!==a){var s=o.lastIndexOf("0")-a,c=o.lastIndexOf("#")-a,l=s>-1,u=c>-1,d=r.toString().split("e"),p=(d=(d=d[1]?Ii(r,Math.abs(d[1])):d[0]).split(".")[1]||"").length,h=-1;l||u?l&&s>c?p=s:c>s&&(u&&p>c?p=c:l&&p<s&&(p=s),h=l?s:0):(e.format=o.substring(0,a)+o.substring(a+1),a=-1,p=0),p>-1&&(r=Ii(r,p),h>-1&&(t=r,i=0===(n=h)?Ni:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),r=t.replace(i,"$1").replace(Vi,"")))}else r=Ii(r);e.negative&&-1*r>=0&&!e.negativeZero&&(e.negative=!1),e.number=r,e.decimalIndex=a}function Ri(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function zi(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e;if(t)for(var i=t.length,r=0;r<i;r++)n=n.replace("__??__",t[r]);return n}(n=function(e,t,n){var i=e;if("currency"===t||"percent"===t){i="";for(var r=0,o=e.length;r<o;r++){var a=e.charAt(r);i+="$"===a||"%"===a?n:a}}return i}(n=function(e,t){var n=e.start,i=e.end,r=e.negative,o=e.negativeZero,a=e.format,s=e.decimalIndex,c=e.lastZeroIndex,l=e.hasNegativeFormat,u=e.hasGroup,d=e.number,p=d.toString().split("."),h=a.length,f=p[0],m=p[1]||"",g=f.length,b="";d=a.substring(0,n),!r&&!o||l||(d+="-");for(var y=n;y<h;y++){var v=a.charAt(y);if(-1===s){if(i-y<g){d+=f;break}}else if(-1!==c&&c<y&&(b=""),s-y<=g&&s-y>-1&&(d+=f,y=s),s===y){d+=(m?t.numbers.symbols.decimal:"")+m,y+=i-s+1;continue}"0"===v?(d+=v,b=v):"#"===v&&(d+=b)}return u&&(d=ki(d,n+(r&&!l?1:0),Math.max(i,g+n),t.numbers.decimal,t)),i>=n&&(d+=a.substring(i+1)),d}(e,t),e.style,e.symbol),e.literals)),n}function Hi(e,t,n){var i={negative:e<0,number:Math.abs(e),negativeZero:wi(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var i=n[2];n=i||n[0],i&&function(e){return-1===e.indexOf("#")&&-1===e.indexOf("0")}(i)&&(e.constant=i)}else n=n[0];e.format=n}(i),i.constant?i.constant:(Ai(i),Mi(i,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(Bi,""))}(i),Fi(i),function(e){var t=e.format,n=t.indexOf("#"),i=t.indexOf("0"),r=Ri(n,i,!0),o=Ri(n=t.lastIndexOf("#"),i=t.lastIndexOf("0"));r===t.length&&(o=r),e.start=r,e.end=o,e.lastZeroIndex=i}(i),zi(i,n))}var Li=/^(n|c|p|e|a)(\d*)$/i;function Ki(e){return Mn(e)?function(e){var t=Li.exec(e);if(t){var n={style:"decimal"},i=t[1].toLowerCase();return"c"===i?n.style="currency":"a"===i?n.style="accounting":"p"===i?n.style="percent":"e"===i&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function Gi(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var i,r=Hn(n),o=Ki(t);if(o){var a=o.style||"decimal";i=function(e,t,n){var i=n.numbers.symbols,r=t.style,o=xi(r);if("scientific"===r)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",i.decimal);var a,s=e;o&&(t.value=s,a=Si(n,t)),"percent"===r&&(s*=100,a=i.percentSign);var c=Pi(t),l=c.minimumFractionDigits,u=(s=Ii(s,c.maximumFractionDigits))<0,d=wi(e),p=s.split("."),h=p[0],f=Ei(p[1]?p[1].replace(Di,""):"",l,!0);u&&(h=h.substring(1)),t.minimumIntegerDigits&&(h=Ei(h,t.minimumIntegerDigits));var m,g=!1!==t.useGrouping?ki(h,0,h.length,t,n):h;if(f&&(g+=i.decimal+f),o&&"name"===t.currencyDisplay)m=function(e,t){var n=e.numbers.currency,i=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(i=i.replace("n","-n")),i}(n,e);else{var b=t.patterns;m=u||d?b[1]||"-"+b[0]:b[0]}return"n"!==m||u?function(e,t,n){for(var i="",r=0,o=t.length;r<o;r++){var a=t.charAt(r);i+="n"===a?e:"$"===a||"%"===a?n:a}return i}(g,m,a):g}(e,Object.assign({},r.numbers[a],o),r)}else i=Hi(e,t,r);return i}function Zi(e){return"number"==typeof e}var Ui=/[eE][\-+]?[0-9]+/,Wi=/\u00A0/g;function qi(e,t){if(t.length>1){var n=(t[1]||"").replace("$","").split("n");if(e.indexOf(n[0])>-1&&e.indexOf(n[1])>-1)return e.replace(n[0],"").replace(n[1],"")}}function $i(e,t,n){var i,r=Ki(n)||{},o=xi(r.style),a=e,s=r.currency||yi(t,o);if(s){var c=function(e,t,n){void 0===n&&(n=!0);var i=mi(e,t,n);if(i){if(!i.displays){var r=[t];for(var o in i)r.push(i[o]);r.sort(gi),i.displays=r}return i.displays}}(t,s,o);if(c)for(var l=0;l<c.length;l++){var u=c[l];if(a.includes(u)){a=a.replace(u,""),o=!0;break}}if(o){var d=qi(a,t.numbers.currency.patterns)||qi(a,t.numbers.accounting.patterns);d&&(i=!0,a=d)}}return{number:a,negative:i}}var Xi=/\{(\d+)}/g;function Yi(e){var t=arguments;return e.replace(Xi,(function(e,n){return t[parseInt(n,10)+1]}))}var Ji=[2,1,5,3,4],Qi={};Qi[(-2).toString()]=8,Qi[(-1).toString()]=6,Qi[2..toString()]=6,Qi[1..toString()]=3;var er={numeric:1,"2-digit":2,short:3,long:4,narrow:5},tr=/[hHmsSzZoOvVxX]/;var nr=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],ir={e:"c",E:"c",M:"L",Q:"q"},rr={},or={};function ar(e){return rr[e]||(rr[e]=new RegExp(e+"+")),rr[e]}function sr(e){for(var t=[],n=e.charAt(0),i=n,r=1;r<e.length;r++){var o=e.charAt(r);o===i?n+=o:(t.push(n),n=i=o)}return t.push(n),t}function cr(e,t){var n,i,r=e.length,o=-Number.MAX_VALUE;for(var a in t){for(var s=[],c=a.replace("v","z"),l=0,u=0;u<r;u++){var d=e[u],p=(ar(d[0]).exec(c)||[])[0];if(p){if(c=c.replace(p,""),p.length!==d.length){var h=Math.max(Math.min(Ji[p.length]-Ji[d.length],2),-2);l-=Qi[h]}}else l-=120;if(s.push(p),l<o)break}c.length&&(l-=20*sr(c).length),l>o&&(o=l,n=s,i=t[a])}i=i.replace("v","z");for(var f=0;f<r;f++){var m=n[f];if(m&&m!==e[f]){var g=n[f][0];i=i.replace(ar(g),e[f]),ir[g]&&(i=i.replace(ar(ir[g]),e[f]))}}return i}function lr(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(or[t.name]&&or[t.name][e])return or[t.name][e];var i,r=e.search(tr);if(r>0){var o=e.substr(0,r),a=e.substr(r);i=Yi(t.calendar.dateTimeFormats.short,n[a]||cr(sr(a),n),n[o]||cr(sr(o),n))}else i=cr(sr(e),n);return function(e,t,n){or[n]||(or[n]={}),or[n][e]=t}(e,i,t.name),i}function ur(e,t){var n,i=t.calendar;if(Mn(e))n=i.patterns[e]?i.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var r=e.skeleton;r||(e.datetime?n=Yi(i.dateTimeFormats[e.datetime],i.timeFormats[e.datetime],i.dateFormats[e.datetime]):e.date?n=i.dateFormats[e.date]:e.time?n=i.timeFormats[e.time]:r=function(e){for(var t=[],n=0;n<nr.length;n++){var i=nr[n],r=e[i.key];if(r){var o=i.specifier||i.getSpecifier(e);t.push(o.repeat(er[r]))}}return t.join("")}(e)),r&&(n=lr(r,t))}return n||(n=i.patterns.d),n}function dr(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function pr(e,t,n,i,r){return si(e,{type:t,nameType:dr(n),standAlone:i,lower:r})}function hr(e){return"function"==typeof e}function fr(e){return Boolean(e)&&hr(e.getTime)&&hr(e.getMonth)}var mr={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},gr=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function br(e,t,n,i){return t<=2?Ei(e+1,t):pr(n,"months",t,i)[e]}function yr(e,t,n,i){var r=Math.floor(e.getMonth()/3);return t<3?r+1:pr(n,"quarters",t,i)[r]}function vr(e,t,n){var i=n.shortHours,r=n.optionalMinutes,o=n.separator,a=n.localizedName,s=n.zZeroOffset,c=e.getTimezoneOffset()/60;if(0===c&&s)return"Z";var l=c<=0?"+":"-",u=Math.abs(c).toString().split("."),d=u[1]||0,p=l+(i?u[0]:Ei(u[0],2));(!d&&r||(p+=(o?":":"")+Ei(d,2)),a)&&(p=Yi(0===c?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p));return p}function _r(e,t,n,i){var r,o,a;return t<3?(o=e.getDay(),a=ji(n),r=(o<a?7-a+o:o-a)+1):r=pr(n,"days",t,i)[e.getDay()],r}var Or={};function jr(e,t,n){if(void 0===n&&(n="en"),!fr(e))return null==e?"":e;var i=Hn(n);return ur(t,i).replace(gr,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):Or[t[0]](e,n,i)}))}function Cr(e,t,n){var i=e.getTimezoneOffset(),r=new Date(e.getTime()+6e4*(t-n)),o=r.getTimezoneOffset();return new Date(r.getTime()+6e4*(o-i))}Or.d=function(e,t){return Ei(e.getDate(),t)},Or.E=function(e,t,n){return pr(n,"days",t)[e.getDay()]},Or.M=function(e,t,n){return br(e.getMonth(),t,n,!1)},Or.L=function(e,t,n){return br(e.getMonth(),t,n,!0)},Or.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),Ei(n,t)},Or.h=function(e,t){return Ei(e.getHours()%12||12,t)},Or.H=function(e,t){return Ei(e.getHours(),t)},Or.k=function(e,t){return Ei(e.getHours()||24,t)},Or.K=function(e,t){return Ei(e.getHours()%12,t)},Or.m=function(e,t){return Ei(e.getMinutes(),t)},Or.s=function(e,t){return Ei(e.getSeconds(),t)},Or.S=function(e,t){var n=e.getMilliseconds();return 0!==n?Ei(String(n/1e3).split(".")[1].substr(0,t),t,!0):Ei("",t)},Or.a=function(e,t,n){return pr(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},Or.z=function(e,t,n){return vr(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},Or.Z=function(e,t,n){return vr(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},Or.x=function(e,t,n){return vr(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},Or.X=function(e,t,n){return vr(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},Or.G=function(e,t,n){var i=e.getFullYear()>=0?1:0;return pr(n,"eras",t)[i]},Or.e=_r,Or.c=function(e,t,n){return _r(e,t,n,!0)},Or.q=function(e,t,n){return yr(e,t,n,!0)},Or.Q=yr;var wr=/([+|\-]\d{1,2})(:?)(\d{2})?/,Sr=/^\/Date\((.*?)\)\/$/,kr=/[+-]\d*/,xr={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Er=/\d+/,Ir=/^ */,Dr=/ *$/,Pr=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Tr=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Mr(e,t,n){return!(e>=t&&e<=n)}function Ar(e,t){for(var n=t.format,i=t.idx,r=0;n[i]===e;)r++,i++;return r>0&&(i-=1),t.idx=i,r}function Nr(e,t){var n=e?xr[e]||new RegExp("^\\d{1,"+e+"}"):Er,i=t.value.substr(t.valueIdx,e).match(n);return i?(i=i[0],t.valueIdx+=i.length,parseInt(i,10)):null}function Vr(e,t,n){for(var i,r,o,a=0,s=e.length,c=0,l=0;a<s;a++)r=(i=e[a]).length,o=t.value.substr(t.valueIdx,r),n&&(o=o.toLowerCase()),o===i&&r>c&&(c=r,l=a);return c?(t.valueIdx+=c,l+1):null}function Br(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function Fr(e,t,n){var i=n.shortHours,r=n.noSeparator,o=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!Vr(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw Fn.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var c=wr.exec(e.value.substr(e.valueIdx,6));if(!c)return!a;var l=c[1],u=c[3],d=parseInt(l,10),p=c[2],h=parseInt(u,10);return!!(isNaN(d)||!i&&3!==l.length||!o&&isNaN(h)||r&&p)||(isNaN(h)&&(h=null),!!(Mr(d,-12,13)||h&&Mr(h,0,59))||(e.valueIdx+=c[0].length,e.hoursOffset=d,void(e.minutesOffset=h)))}function Rr(e,t,n){var i=Ar(e,t),r=pr(n,"months",i,"L"===e,!0),o=i<3?Nr(2,t):Vr(r,t,!0);if(null===o||Mr(o,1,12))return!0;t.month=o-1}function zr(e,t,n){var i=Ar(e,t),r=pr(n,"days",i,"c"===e,!0),o=i<3?Nr(1,t):Vr(r,t,!0);if(!o&&0!==o||Mr(o,1,7))return!0}var Hr={};function Lr(e,t){return""+Ir.exec(t)[0]+e+Dr.exec(t)[0]}function Kr(e,t,n){for(var i=ur(t,n).split(""),r={format:i,idx:0,value:Lr(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},o=i.length,a=!1;r.idx<o;r.idx++){var s=i[r.idx];if(a)"'"===s&&(a=!1),Br(r);else if(Hr[s]){if(Hr[s](r,n))return null}else if("'"===s)a=!0,Br(r);else if(!Br(r))return null}return r.valueIdx<e.length?null:function(e){var t,n=e.year,i=e.month,r=e.day,o=e.hours,a=e.minutes,s=e.seconds,c=e.milliseconds,l=e.pmHour,u=e.UTC,d=e.hoursOffset,p=e.minutesOffset,h=null!==o||null!==a||s||null,f=new Date;return null===n&&null===i&&null===r&&h?(n=f.getFullYear(),i=f.getMonth(),r=f.getDate()):(null===n&&(n=f.getFullYear()),null===r&&(r=1)),l&&o<12&&(o+=12),u?(d&&(o+=-d),p&&(a+=-p*(d<0?-1:1)),t=new Date(Date.UTC(n,i,r,o,a,s,c))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,i,r,o,a,s,c),o),n<100&&t.setFullYear(n),t.getDate()!==r&&void 0===u?null:t}(r)||null}function Gr(e){if(e&&0===e.indexOf("/D")){var t=Sr.exec(e);if(t){t=t[1];var n=kr.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(i=n[0],r="-"===i.substr(0,1)?-1:1,o=i.substring(1),n=r*(o=60*parseInt(o.substr(0,2),10)+parseInt(o.substring(2),10)),t=Cr(t,t.getTimezoneOffset(),0),t=Cr(t,0,-1*n)),t}}var i,r,o}Hr.d=function(e){Ar("d",e);var t=Nr(2,e);if(null===t||Mr(t,1,31))return!0;null===e.day&&(e.day=t)},Hr.E=function(e,t){if(null===Vr(pr(t,"days",Ar("E",e),!1,!0),e,!0))return!0},Hr.M=function(e,t){return Rr("M",e,t)},Hr.L=function(e,t){return Rr("L",e,t)},Hr.y=function(e){var t=Ar("y",e),n=Nr(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var i=(new Date).getFullYear();(n=i-i%100+n)>2029&&(n-=100)}e.year=n},Hr.h=function(e){Ar("h",e);var t=Nr(2,e);if(12===t&&(t=0),null===t||Mr(t,0,11))return!0;e.hours=t},Hr.K=function(e){Ar("K",e);var t=Nr(2,e);if(null===t||Mr(t,0,11))return!0;e.hours=t},Hr.a=function(e,t){var n=pr(t,"dayPeriods",Ar("a",e),!1,!0),i=Vr([n.pm],e,!0);if(!i&&!Vr([n.am],e,!0))return!0;e.pmHour=i},Hr.H=function(e){Ar("H",e);var t=Nr(2,e);if(null===t||Mr(t,0,23))return!0;e.hours=t},Hr.k=function(e){Ar("k",e);var t=Nr(2,e);if(null===t||Mr(t,1,24))return!0;e.hours=24===t?0:t},Hr.m=function(e){Ar("m",e);var t=Nr(2,e);if(null===t||Mr(t,0,59))return!0;e.minutes=t},Hr.s=function(e){Ar("s",e);var t=Nr(2,e);if(null===t||Mr(t,0,59))return!0;e.seconds=t},Hr.S=function(e){var t=Ar("S",e),n=e.value.substr(e.valueIdx,t),i=null;if(isNaN(parseInt(n,10))||(i=Ii(i=parseFloat("0."+n,10),3),i*=1e3,e.valueIdx+=t),null===i||Mr(i,0,999))return!0;e.milliseconds=i},Hr.z=function(e,t){var n=Ar("z",e)<4,i=Fr(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(i)return i},Hr.Z=function(e,t){var n=Ar("Z",e),i=Fr(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(i)return i},Hr.x=function(e,t){var n=Ar("x",e),i=Fr(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(i)return i},Hr.X=function(e,t){var n=Ar("X",e),i=Fr(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(i)return i},Hr.G=function(e,t){var n=pr(t,"eras",Ar("G",e),!1,!0);if(null===Vr([n[0],n[1]],e,!0))return!0},Hr.e=function(e,t){return zr("e",e,t)},Hr.c=function(e,t){return zr("c",e,t)};var Zr={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}};function Ur(e,t){var n=e[e.length-1];n&&"literal"===n.type?n.pattern+=t:e.push({type:"literal",pattern:t})}function Wr(e){return"h"===e||"K"===e}var qr=/\{(\d+)(:[^\}]+)?\}/g;function $r(e,t,n){if(t){if(fr(e))return jr(e,t,n);if(Zi(e))return Gi(e,t,n)}return null!=e?e:""}var Xr={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635938345,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"},Yr="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",Jr={NoCurrency:"Solution: "+Yr+"#toc-no-currency",NoCurrencyDisplay:"Solution: "+Yr+"#toc-no-currency-display",NoCurrencyRegion:"Solution: "+Yr+"#toc-no-currency-region",NoDateFieldNames:"Solution: "+Yr+"#toc-no-date-filed-names",NoFirstDay:"Solution: "+Yr+"#toc-no-first-day",NoGMTInfo:"Solution: "+Yr+"#toc-no-gmt-info",NoLocale:"Solution: "+Yr+"#toc-no-locale",NoValidCurrency:"Solution: "+Yr+"#toc-no-valid-currency",NoWeekData:"Solution: "+Yr+"#toc-no-week-data"};function Qr(e){var t=e.message,n=Jr[Object.keys(Jr).filter((function(e){return 0===t.indexOf(e)}))[0]];return n?t+" "+n:t}function eo(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return e.apply(null,t)}catch(e){throw e.message=Qr(e),e}}}var to=eo(si),no=eo((function(e,t){void 0===t&&(t="en");var n=Hn(t).calendar.dateFields;if(!n)throw Fn.NoDateFieldNames.error();var i=n[e.type]||{};return i[e.nameType]||i.wide})),io=eo(ji),ro=eo((function(e,t,n){return e.replace(qr,(function(e,i,r){return $r(t[parseInt(i,10)],r?r.substring(1):"",n)}))})),oo=eo(jr),ao=eo(Gi),so=(eo((function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var i=e[n];if(i.main){var r=Object.keys(i.main)[0],o=i.main[r],a=Rn[r]=Rn[r]||{};a.name=a.name||r,a.identity=a.identity||o.identity,oi(a),ai(r,o)}else if(i.supplemental)if(i.supplemental.weekData)Rn.supplemental.weekData={firstDay:i.supplemental.weekData.firstDay,weekendStart:i.supplemental.weekData.weekendStart,weekendEnd:i.supplemental.weekData.weekendEnd};else if(i.supplemental.likelySubtags)Rn.supplemental.likelySubtags=Object.assign(Rn.supplemental.likelySubtags,i.supplemental.likelySubtags);else if(i.supplemental.currencyData){var s=Rn.supplemental.currencyData;s.region=Object.assign(s.region||{},i.supplemental.currencyData.region),s.fractions=Object.assign(s.fractions||{},i.supplemental.currencyData.fractions)}}})),eo((function(e){return zn(e).numbers.symbols}))),co=eo((function(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(fr(e))return e;var i=String(e).trim(),r=Gr(i);if(r)return r;for(var o=Hn(n),a=t||function(e){for(var t=[],n=e.patterns,i=Tr.length,r=0;r<i;r++)t.push(n[Tr[r]]);return t.concat(Pr)}(o.calendar),s=(a=Array.isArray(a)?a:[a]).length,c=0;c<s;c++)if(r=Kr(i,a[c],o))return r;return r})),lo=eo((function(e,t,n){if(void 0===t&&(t="en"),void 0===n&&(n={}),!e&&0!==e)return null;if(Zi(e))return e;var i,r=Hn(t),o=r.numbers.symbols,a=e.toString(),s=n||{};if(Mn(n)&&(Ai(s={format:n}),a=function(e,t){var n=t.literals,i=e;if(n)for(var r=0;r<n.length;r++)i=i.replace(n[r],"");return i}(a,s),Mi(s,r)),("percent"===s.style||a.indexOf(o.percentSign)>-1)&&(a=a.replace(o.percentSign,""),i=!0),Ui.test(a))return a=parseFloat(a.replace(o.decimal,".")),isNaN(a)?null:a;var c=$i(a,r,s),l=c.negative,u=c.number,d=(a=String(u).trim()).indexOf("-");if(d>0)return null;var p=d>-1;return p=void 0!==l?l:p,a=a.replace("-","").replace(Wi," ").split(o.group.replace(Wi," ")).join("").replace(o.decimal,"."),a=parseFloat(a),isNaN(a)?a=null:p&&(a*=-1),a&&i&&(a/=100),a})),uo=eo((function(e,t){void 0===t&&(t="en");for(var n=ur(e,Hn(t)),i=[],r=gr.lastIndex=0,o=gr.exec(n);o;){var a=o[0];if(r<o.index&&Ur(i,n.substring(r,o.index)),a.startsWith('"')||a.startsWith("'"))Ur(i,a);else{var s=a[0],c=mr[s],l={type:c,pattern:a};"hour"===c&&(l.hour12=Wr(a));var u=Zr[c];if(u){var d=Zi(u.minLength)?u.minLength:u.minLength[s],p=a.length;p>=d&&(l.names={type:u.type,nameType:dr(p),standAlone:u.standAlone===s})}i.push(l)}r=gr.lastIndex,o=gr.exec(n)}return r<n.length&&Ur(i,n.substring(r)),i})),po=eo($r),ho=eo((function(e){var t=zn(e);if(t.weekendRange)return t.weekendRange;var n=Rn.supplemental.weekData;if(!n)throw Ci.error();var i=oi(t),r=n.weekendStart[i]||n.weekendStart["001"],o=n.weekendEnd[i]||n.weekendEnd["001"];return t.weekendRange={start:vi.indexOf(r),end:vi.indexOf(o)},t.weekendRange})),fo=/_/g;function mo(e){return new bo(e)}var go=function(){function e(){this.changes=new r.EventEmitter,Object(Dn.validatePackage)(Xr)}return e.prototype.notify=function(){this.changes.emit()},e.ngInjectableDef=Object(r["ɵɵdefineInjectable"])({factory:function(){return mo(Object(r["ɵɵinject"])(r.LOCALE_ID))},token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(r.Injectable)({providedIn:"root",useFactory:mo,deps:[r.LOCALE_ID]}),Object(i.__metadata)("design:paramtypes",[])],e)}(),bo=function(e){function t(t){var n=e.call(this)||this;return n.localeId=t,n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"localeId",{get:function(){return this.locale},set:function(e){var t=e.replace(fo,"-");t!==this.locale&&(this.locale=t,this.notify())},enumerable:!0,configurable:!0}),t.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ro(e,t,this.localeId)},t.prototype.toString=function(e,t,n){return po(e,t,n||this.localeId)},t.prototype.formatDate=function(e,t,n){return oo(e,t,n||this.localeId)},t.prototype.parseDate=function(e,t,n){return co(e,t,n||this.localeId)},t.prototype.parseNumber=function(e,t,n){return lo(e,n||this.localeId,t)},t.prototype.formatNumber=function(e,t,n){return ao(e,t,n||this.localeId)},t.prototype.dateFieldName=function(e,t){return no(e,t||this.localeId)},t.prototype.dateFormatNames=function(e,t){return to(t||this.localeId,e)},t.prototype.splitDateFormat=function(e,t){return uo(e,t||this.localeId)},t.prototype.numberSymbols=function(e){return so(e||this.localeId)},t.prototype.firstDay=function(e){return io(e||this.localeId)},t.prototype.weekendRange=function(e){return ho(e||this.localeId)},t=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(0,Object(r.Inject)(r.LOCALE_ID)),Object(i.__metadata)("design:paramtypes",[String])],t)}(go),yo=function(e){return!isNaN(e-parseFloat(e))},vo=[function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return void 0===t&&(t=""),(e=this.normalize(e))?this.intlService.formatDate(e,t,n):e},e.prototype.normalize=function(e){return e&&"string"==typeof e?e=this.intlService.parseDate(e):e&&yo(e)&&(e=new Date(parseFloat(e))),e},e=Object(i.__decorate)([Object(r.Pipe)({name:"kendoDate"}),Object(i.__metadata)("design:paramtypes",[go])],e)}(),function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return"string"==typeof e&&(e=this.intlService.parseNumber(e)),null!=e?this.intlService.formatNumber(e,t,n):e},e=Object(i.__decorate)([Object(r.Pipe)({name:"kendoNumber"}),Object(i.__metadata)("design:paramtypes",[go])],e)}()],_o=(function(){function e(){}e=Object(i.__decorate)([Object(r.NgModule)({declarations:[vo],exports:[vo]})],e)}(),"bottom"),Oo="center",jo="middle",Co="left",wo="right",So="top",ko=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,o=e.margin;void 0===o&&(o={});var a=n.horizontal,s=n.vertical,c=r.horizontal,l=r.vertical,u=o.horizontal||0,d=o.vertical||0,p=t.top,h=t.left;return s===_o&&(p+=t.height),s!==Oo&&s!==jo||(p+=Math.round(t.height/2)),l===_o&&(p-=i.height,d*=-1),l!==Oo&&l!==jo||(p-=Math.round(i.height/2),d*=-1),a===wo&&(h+=t.width),a!==Oo&&a!==jo||(h+=Math.round(t.width/2)),c===wo&&(h-=i.width,u*=-1),c!==Oo&&c!==jo||(h-=Math.round(i.width/2),u*=-1),{top:p+d,left:h+u}};function xo(e){return e.ownerDocument||e.document||e}var Eo=function(e){return xo(e).defaultView},Io=function(e){return xo(e).documentElement},Do=0;function Po(){if(!Do&&"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),Do=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Do}function To(e){var t=Eo(e),n=Io(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=Po()),i}var Mo=function(e){if(!e.getBoundingClientRect){var t=To(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}},Ao=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||Io(e)},No=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=r,o}(e)),{top:i,left:n,height:t.height,width:t.width}},Vo=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function Bo(e){var t=Io(e),n=Eo(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var Fo=function(e){return e===(e.ownerDocument||{}).body?Bo(e):{x:e.scrollLeft,y:e.scrollTop}};var Ro=function(e,t){var n=Eo(e),i=n.getComputedStyle(e),r=No(e),o=t||Ao(e),a=e.ownerDocument,s=o!==a.body&&o!==a.documentElement,c={top:0,left:0};if("fixed"!==i.position&&s){var l=n.getComputedStyle(o);(c=No(o)).top+=parseInt(l.borderTopWidth,10),c.left+=parseInt(l.borderLeftWidth,10)}return{top:r.top-c.top,left:r.left-c.left,height:r.height,width:r.width}},zo=function(e,t){return e?Fo(e):function(e){var t=Ao(e);return t?Fo(t):{x:0,y:0}}(t)};var Ho="fit",Lo="flip",Ko=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},Go=function(e){var t=e.offset,n=e.size,i=e.anchorSize,r=e.viewPortSize,o=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,c=2*e.margin;if(a!==o&&!(a===Oo||a===jo)&&!(o===Oo||o===jo)){var l=o===So||o===Co;t<0&&l?t+(s=n+i+c)+n>r&&(s=0):t>=0&&!l&&(t+n>r&&(s+=-(i+n+c)),t+s<0&&(s=0))}return s},Zo=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,o=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var c=i.top,l=i.left,u=i.height,d=i.width,p=a.height,h=a.width,f=s.horizontal||0,m=s.vertical||0,g=0,b=0,y=o.horizontal===Lo,v=o.vertical===Lo;o.vertical===Ho&&(b+=Ko(c,u,p)),o.horizontal===Ho&&(g+=Ko(l,d,h)),v&&(b+=Go({margin:m,offset:c,size:u,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),y&&(g+=Go({margin:f,offset:l,size:d,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var _=y&&0!==g,O=v&&0!==b;return{flipped:_||O,flip:{horizontal:_,vertical:O},offset:{left:g,top:b}}},Uo=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},Wo=function(e,t){for(var n,i,r=Vo(e),o=t;o&&(n=Uo(o),!(i=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)o=o.parentElement;return i};var qo=n(13),$o=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},Xo=function(){return"undefined"!=typeof window},Yo=/auto|scroll/,Jo=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 Qo,ea,ta,na=(Qo=function(){if(!Object(In.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},ta=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ta||(ea=Qo.apply(void 0,e),ta=!0),ea}),ia=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},ra=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],oa=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 function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.align=function(e){return ko(e)},e.prototype.boundingOffset=function(e){return Mo(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return ra.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return Xo()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?No(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,r=i.left,o=i.top,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=No(n);return n.style.left=r,n.style.top=o,n.offsetHeight,n.style.transition=a,s},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?function(e,t,n){void 0===n&&(n=1);var i=t?Ao(t):null,r=Ro(e,i),o=r.top,a=r.left,s=r.height,c=r.width,l=zo(i,e),u=l.x,d=l.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:o+d*h,left:a+u*h,height:s,width:c}}(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return Zo(e)},e.prototype.scrollPosition=function(e){return Bo(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(In.isDocumentAvailable)()||!Xo())return t;for(var n=e.parentElement;n;)(Yo.test(Jo(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?No(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||!na())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 To(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(In.isDocumentAvailable)()||!Xo())return null;var n=Wo(e,t);if(!n)return null;var i=[e].concat(Vo(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(In.isDocumentAvailable)()&&Xo()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(r.Injectable)()],e)}(),aa=new r.InjectionToken("Popup Document Scale"),sa=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,i=e.anchorAlign,r=e.elementAlign,o=e.margin,a=e.offset,s=e.positionMode,c=this.scale||1,l="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),u=ia(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:l,elementAlign:r,elementRect:u,margin:o})},e.prototype.absoluteRect=function(e,t,n,i){var r=this.elementScrollPosition(e,t),o=$o(this._dom.offset(e),n),a=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=a,s.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=a,c.top/=a),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}(ia(o,i),c),s),r)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var r=$o(this._dom.position(e,t,i),n);return ia(r,i)},e=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(1,Object(r.Inject)(aa)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[oa,Number])],e)}(),ca=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,i=e.element,r=e.anchorAlign,o=e.elementAlign,a=e.collisions,s=e.margin,c=this._dom,l=this.scale||1,u=c.offsetAtPoint(i,n),d=ia(u,l),p=ia(c.offset(t),l),h=$o(p,n),f=e.viewPort||c.windowViewPort(i);f.width=f.width/l,f.height=f.height/l;var m=c.restrictToView({anchorAlign:r,anchorRect:h,collisions:a,elementAlign:o,elementRect:d,margin:s,viewPort:f}),g=c.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:g}},e=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(1,Object(r.Inject)(aa)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[oa,Number])],e)}(),la=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(In.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(Se.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(ke.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(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[oa,r.NgZone])],e)}(),ua=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(In.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var r=i.map((function(e){return Object(Se.fromEvent)(e,"scroll").pipe(Object(ke.auditTime)(1e3/60))}));t.subscription=Se.merge.apply(void 0,r).subscribe((function(r){var o=r.target,a=i.filter((function(e){return e===o})).length>0,s=o===document,c=o===window;(a||s||c)&&e(t.isVisible(n,o))}))}))}},e.prototype.unsubscribe=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.isVisible=function(e,t){var n=this._dom.boundingOffset(e),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[oa,r.NgZone])],e)}(),da={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)"}}}},pa=function(){function e(e){this.animationBuilder=e,this.start=new r.EventEmitter,this.end=new r.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 i=t.type||"slide",o=da[i];if(o){var a=o(this.getDirection(n,t));this.playStates(e,a,t)}else if(Object(r.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var r=n.duration||100,o=this.animationBuilder.build([Object(qo.style)(t.start),Object(qo.animate)(r+"ms ease-in",Object(qo.style)(t.end))]),a=this.player=o.create(e);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.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(i.__decorate)([Object(r.Injectable)(),Object(i.__metadata)("design:paramtypes",[qo.AnimationBuilder])],e)}(),ha={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635939378,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"},fa={left:-1e4,top:0},ma=function(){function e(e,t,n,i,o,a,s,c,l){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=o,this._scrollableService=a,this.animationService=s,this._renderer=c,this._zone=l,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=fa,this.anchorViewportLeave=new r.EventEmitter,this.close=new r.EventEmitter,this.open=new r.EventEmitter,this.positionChange=new r.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(Dn.validatePackage)(ha),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=fa,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass()},e.prototype.ngOnChanges=function(e){e.copyAnchorStyles&&this.copyFontStyles(),e.positionMode&&this.updateFixedClass()},e.prototype.ngAfterViewInit=function(){var e=this;this.reposition(),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(Se.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(In.isDocumentAvailable)()){var t,n,i,r,o,a,s=this.position(),c=s.flip,l=s.offset;(!this.currentOffset||(t=this.currentOffset,n=l,i=t.left,r=t.top,o=n.left,a=n.top,Math.abs(i-o)>=1||Math.abs(r-a)>=1))&&(this.currentOffset=l,Object(In.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:l,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(In.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(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(r.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(r.ViewChild)(In.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",In.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(r.Component)({exportAs:"kendo-popup",providers:[sa,pa,oa,ca,la,ua],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(i.__metadata)("design:paramtypes",[r.ElementRef,sa,oa,ca,la,ua,pa,r.Renderer2,r.NgZone])],e)}(),ga=new r.InjectionToken("Popup Container"),ba=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}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,i=t.nodes,r=this.appendPopup(i,e.appendTo),o=r.instance;this.projectComponentInputs(r,e),r.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(r);return{close:function(){var e;n&&n.destroy(),r.destroy(),(e=a)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:r,popupAnchorViewportLeave:o.anchorViewportLeave,popupClose:o.close,popupElement:a,popupOpen:o.open,popupPositionChange:o.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(ma,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 i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var r=i.create(this.injector,t);return this.applicationRef.attachView(r.hostView),r},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof r.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof r.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(r.Injectable)(),Object(i.__param)(3,Object(r.Inject)(ga)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[r.ApplicationRef,r.ComponentFactoryResolver,r.Injector,r.ElementRef])],e)}(),ya=[ma],va=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[ya],entryComponents:[ya],exports:[ya],imports:[o.CommonModule,In.ResizeSensorModule],providers:[ba]})],e)}(),_a=function(){};var Oa=null,ja={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},Ca={get browser(){return"undefined"==typeof window||Oa?Oa:Oa=function(e){var t={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},n={};for(var i in t)if(t.hasOwnProperty(i)){var r=e.match(t[i]);if(r){n[i]=!0,n[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||r[2],10);break}}return n}(window.navigator.userAgent)}}.browser,wa=function(e){var t=Object.keys(ja);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return wa=function(e){return n.exec(e)},n.exec(e)},Sa=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){return this},t.prototype.toRGB=function(){return this},t.prototype.toHex=function(e){return this.toBytes().toHex(e)},t.prototype.toBytes=function(){return this},t.prototype.toCss=function(e){return"#"+this.toHex(e)},t.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},t.prototype.toDisplay=function(){return Ca.msie&&Ca.version<9?this.toCss():this.toCssRgba()},t.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===Ma(e).toCssRgba()},t.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))},t.prototype.clone=function(){var e=this.toBytes();return e===this&&(e=new xa(e.r,e.g,e.b,e.a)),e},t}(_a),ka=function(e){function t(t,n,i,r){e.call(this),this.r=t,this.g=n,this.b=i,this.a=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){var e,t,n=this.r,i=this.g,r=this.b,o=Math.min(n,i,r),a=Math.max(n,i,r),s=a-o,c=a;return 0===s?new Ia(0,0,c,this.a):(0!==a?(t=s/a,e=n===a?(i-r)/s:i===a?2+(r-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new Ia(e,t,c,this.a))},t.prototype.toHSL=function(){var e,t,n=this.r,i=this.g,r=this.b,o=Math.max(n,i,r),a=Math.min(n,i,r),s=(o+a)/2;if(o===a)e=t=0;else{var c=o-a;switch(t=s>.5?c/(2-o-a):c/(o+a),o){case n:e=(i-r)/c+(i<r?6:0);break;case i:e=(r-n)/c+2;break;case r:e=(n-i)/c+4}}return new Da(60*e,100*t,100*s,this.a)},t.prototype.toBytes=function(){return new xa(255*this.r,255*this.g,255*this.b,this.a)},t}(Sa),xa=function(e){function t(t,n,i,r){e.call(this,Math.round(t),Math.round(n),Math.round(i),r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){return new e(this.r/255,this.g/255,this.b/255,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toHex=function(e){var t=Ea(this.r,2)+Ea(this.g,2)+Ea(this.b,2);return e&&e.alpha&&(t+=Ea(Math.round(255*this.a),2)),t},t.prototype.toBytes=function(){return this},t}(ka);function Ea(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var Ia=function(e){function t(t,n,i,r){e.call(this),this.h=t,this.s=n,this.v=i,this.a=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h,r=this.s,o=this.v;if(0===r)e=t=n=o;else{i/=60;var a=Math.floor(i),s=i-a,c=o*(1-r),l=o*(1-r*s),u=o*(1-r*(1-s));switch(a){case 0:e=o,t=u,n=c;break;case 1:e=l,t=o,n=c;break;case 2:e=c,t=o,n=u;break;case 3:e=c,t=l,n=o;break;case 4:e=u,t=c,n=o;break;default:e=o,t=c,n=l}}return new ka(e,t,n,this.a)},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(Sa),Da=function(e){function t(t,n,i,r){e.call(this),this.h=t,this.s=n,this.l=i,this.a=r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h/360,r=this.s/100,o=this.l/100;if(0===r)e=t=n=o;else{var a=o<.5?o*(1+r):o+r-o*r,s=2*o-a;e=Pa(s,a,i+1/3),t=Pa(s,a,i),n=Pa(s,a,i-1/3)}return new ka(e,t,n,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(Sa);function Pa(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function Ta(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function Ma(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof Sa)return e;var r=e.toLowerCase();if(n=wa(r))return(r="transparent"===n[1]?new ka(1,1,1,0):Ma(ja[n[1]],t)).match=[n[1]],r;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(r))?i=new xa(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(r))?i=new xa(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(r))?i=new xa(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),Ta(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(r))?i=new xa(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),Ta(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(r))?i=new xa(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(r))?i=new xa(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(r))?i=new ka(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(r))&&(i=new ka(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+r);return i}var Aa=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var r=t.formats,o=this.resolveColor(n),a=0;a<r.length;a++){var s=r[a].re,c=r[a].process,l=s.exec(o);if(l){var u=c(l);i.r=u[0],i.g=u[1],i.b=u[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHex=function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},t.prototype.resolveColor=function(e){var n=e||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),n=t.namedColors[n]||n},t.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:e>255?255:e},t.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},t.prototype.brightness=function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},t.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},t.prototype.isDark=function(){return this.percBrightness()<180},t.fromBytes=function(e,t,n,i){return new xa(e,t,n,null!=i?i:1)},t.fromRGB=function(e,t,n,i){return new ka(e,t,n,null!=i?i:1)},t.fromHSV=function(e,t,n,i){return new Ia(e,t,n,null!=i?i:1)},t.fromHSL=function(e,t,n,i){return new Da(e,t,n,null!=i?i:1)},t}(_a);Aa.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],Aa.namedColors=ja;var Na=Aa,Va=function(e){return null!=e},Ba=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},Fa=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},Ra=function(e,t,n){return!Va(e)||isNaN(e)||e<=t?t:e>=n?n:e},za=function(e){return Math.min(e,20)},Ha=function(e){return(String(e).split(".")[1]||"").length},La=function(e,t){return Math.max(Ha(e),Ha(t))},Ka=function(e,t){var n=za(t);return parseFloat(e.toFixed(n))},Ga=function(e,t){var n=La(e,t);return Ka(e+t,n)},Za=function(e,t){return Ga(e,-t)},Ua=function(e,t){var n=Ha(e)+Ha(t);return Ka(e*t,n)},Wa=function(e,t){if(0===t)return NaN;var n=La(e,t),i=Math.pow(10,n);return i*e/(i*t)},qa=function(e,t){return Math.abs(Za(e,Ua(t,Math.floor(Wa(e,t)))))},$a=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},Xa=function(e,t,n){void 0===n&&(n=!0);var i=e-(n?2*parseFloat(t):0);return Math.floor(i)},Ya=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(Za(t,e)),r=Math.floor(Wa(i,n));return Ga(r,1)},Ja=function(e){var t=e.handleWidth,n=e.trackWidth,i=e.min,r=e.max,o=e.reverse,a=e.value,s=Math.floor(t/2),c=n/Math.abs(r-i),l=Va(a)?c*(a-i):i;return o&&(l=n-l),Math.floor(l-s)},Qa=function(e,t,n){var i=t.max,r=t.min,o=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s,c=n&&a?Ua(o,a):o,l=Za(e,r),u=qa(l,c);return s=Za(l,0===u?c:u),os(Ga(s,r),r,i)},es=function(e,t,n){var i=t.max,r=t.min,o=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s=n&&a?Ua(o,a):o,c=Za(e,r),l=qa(c,s),u=Ga(Za(c,l),s);return os(Ga(u,r),r,i)},ts=function(e){return e.id.indexOf("k-start-handle")>-1},ns=function(e,t,n){return n>e?e:n<t?t:n},is=function(e,t,n){return n?[ns(e,t,n[0]),ns(e,t,n[1])]:[t,t]},rs=function(e){return e},os=function(e,t,n){return Math.max(Math.min(e,n),t)},as=function(e,t,n){var i,r,o=n.min,a=n.max,s=n.vertical,c=n.rtl,l=(i=t.getBoundingClientRect(),r=document.documentElement,{left:i.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0),top:i.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||0)}),u=(s?e.pageY-l.top:e.pageX-l.left)*((a-o)/(s?t.clientHeight:t.clientWidth)),d=c||s?a-u:o+u,p=Ha(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,r=t.max,o=os(e,i,r);if(e!==o)return o;var a=Qa(e,t),s=es(e,t);return(e-i)%n==0?e:s-e<=(s-a)/2?s:a}(d=Ka(d,p+1),n)},ss=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},cs=function(e){return es(e.value,e)},ls=function(e){return Qa(e.value,e)},us=function(e){return es(e.value,e,!0)},ds=function(e){return Qa(e.value,e,!0)},ps=function(e){if(r.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},hs=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.trackWidth();this.track.style[e]=t+"px"},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=this.elementSize(this.wrapper),n=Xa(t,this.elementOffset(this.track)),i=$a(this.props),r=this.wrapper.parentElement;r.style[e]=n>i?t-(n-i)+"px":t+(i-n)+"px"},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?$a(this.props):Xa(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,r=Ya(t,n,i),o=this.trackWidth(),a=o/Za(n,t),s=[],c=0,l=0,u=0;u<r;u++){l=+(l+=0===u||u===r-1?i/2*a:i*a).toFixed(2)-.01;var d=Math.round(l-c);s.push(d),c+=d}return c>=o&&(s[s.length-1]-=1),s},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}(),fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,r=t.reverse,o=t.vertical?"bottom":"left",a=this.trackWidth(),s=ns(n,i,this.props.value);this.handlePosition=Ja({min:i,max:n,reverse:r,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,o,this.handlePosition+"px")},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,r=n.vertical?"height":"width",o=Math.floor(e.offsetWidth/2),a=this.handlePosition+o;i&&(a=this.trackWidth()-a),this.renderer.setStyle(t,r,a+"px")},t}(hs),ms=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function gs(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}var bs=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},ys={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1637576485,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"},vs=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[r.TemplateRef])],e)}(),_s=function(){function e(e,t,n,i,o,a){var s=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=o,this.hostElement=a,this.title=rs,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new Se.Subscription,this.ifEnabled=function(e,t){s.isDisabled||e.call(s,t)},Object(Dn.validatePackage)(ys),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Ve,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[In.Keys.ArrowLeft]=t?cs:ls,e[In.Keys.ArrowRight]=t?ls:cs,e[In.Keys.ArrowDown]=ls,e[In.Keys.ArrowUp]=cs,e[In.Keys.PageUp]=us,e[In.Keys.PageDown]=ds,e[In.Keys.Home]=function(e){return e.min},e[In.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(r.Output)("focus"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(r.Output)("blur"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(r.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(r.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(r.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(r.ViewChild)("ticks",{read:r.ElementRef,static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(r.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(r.ContentChild)(vs,{static:!1}),Object(i.__metadata)("design:type",vs)],e.prototype,"labelTemplate",void 0),e}(),Os=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,i,r,o,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=r,s.changeDetector=o,s.hostElement=a,s.focusableId="k-"+Object(In.guid)(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!ss(t)&&!ss(t.parentNode)){var n=as(e,s.track.nativeElement,s.getProps());s.changeValue(n)}gs(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,r=s.keyBinding[e.keyCode];if(!s.isDisabled&&r){var o=r(t);s.changeValue(ns(n,i,o)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(Qa(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(es(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(In.hasObservers)(s.onBlur)||Fa(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return Va(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,gs(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,gs(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;Object(In.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(ke.take)(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;Object(In.isDocumentAvailable)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(as(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;Ba(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(Object(In.isDocumentAvailable)()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,r=this.draghandle.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,r,o,this.hostElement.nativeElement]);var a=this.getProps(),s=new fs(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(r),s.positionSelection(r,i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=Object(Se.fromEvent)(e,"mousedown"),r=Object(Se.fromEvent)(e,"mouseup"),o=Object(Se.fromEvent)(e,"mouseout"),a=i.pipe(Object(ke.filter)((function(e){return 0===e.button&&!n.isDisabled})),Object(ke.concatMap)((function(){return Object(Se.interval)(150).pipe(Object(ke.startWith)(-1),Object(ke.takeUntil)(Object(Se.merge)(r,o)))}))).subscribe((function(){n.isFocused||gs(n.draghandle,"focus"),t()}));n.subscriptions.add(a)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:ns(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===In.Keys.Tab})))}))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(r.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(r.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(r.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoSlider",providers:[En.LocalizationService,{provide:En.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:xe,useExisting:Object(r.forwardRef)((function(){return n}))},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <span\n #decreaseButton\n *ngIf="showButtons"\n class="k-button k-button-decrease"\n [title]="decrementMessage"\n role="presentation"\n >\n <span class="k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical"\n >\n </span>\n </span>\n <span\n *ngIf="showButtons"\n #increaseButton\n class="k-button k-button-increase"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.aria-label]="currentValue"\n >\n <span class="k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical"\n >\n </span>\n </span>\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService,r.Injector,r.Renderer2,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],t)}(_s),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,r=t.reverse,o=t.vertical?"bottom":"left",a=this.trackWidth(),s=ts(e)?is(n,i,this.props.value)[0]:is(n,i,this.props.value)[1];ts(e)?(this.startHandlePosition=Ja({min:i,max:n,reverse:r,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,o,this.startHandlePosition+"px")):(this.endHandlePosition=Ja({min:i,max:n,reverse:r,value:s,trackWidth:a,handleWidth:e.offsetWidth}),this.renderer.setStyle(e,o,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,r=n.vertical,o=r?"height":"width",a=r?"bottom":i?"right":"left",s=Math.floor(e.offsetWidth/2),c=Math.abs(this.endHandlePosition-this.startHandlePosition),l=r?e.style.bottom:e.style.left;this.renderer.setStyle(t,o,c+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(l)-s+"px":parseFloat(l)+s+"px")},t}(hs),Cs=function(e){function t(t,n,r,o,a,s){var c=e.call(this,t,n,r,o,a,s)||this;return c.localization=t,c.injector=n,c.renderer=r,c.ngZone=o,c.changeDetector=a,c.hostElement=s,c.startHandleId="k-start-handle-"+Object(In.guid)(),c.endHandleId="k-end-handle-"+Object(In.guid)(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=as(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,r=i[0],o=i[1];t<=r?(n=[t,o],c.activeHandle="startHandle"):r<t&&t<o?t<(r+o)/2?(n=[t,o],c.activeHandle="startHandle"):(n=[r,t],c.activeHandle="endHandle"):t>=o&&(n=[r,t],c.activeHandle="endHandle"),gs("startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,r=t.min,o=c.keyBinding[e.keyCode];if(!c.isDisabled&&o){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=ts(e.target),s=o(Object(i.__assign)({},t,{value:a?c.value[0]:c.value[1]}));a?s>c.value[1]&&(c.value[1]=s):s<c.value[0]&&(c.value[0]=s);var l=ns(n,r,s),u=a?[l,c.value[1]]:[c.value[0],l];c.changeValue(u),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(Object(In.hasObservers)(c.onBlur)||Fa(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return Object(i.__extends)(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,gs(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,gs("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;Object(In.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&ps(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(ke.take)(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;Object(In.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var r=e.pageX<this.lastHandlePosition.x,o=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([as(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],as(e,t.track.nativeElement,t.getProps())])},l=function(){return t.changeValue([as(e,t.track.nativeElement,t.getProps()),as(e,t.track.nativeElement,t.getProps())])},u=ts(this.draggedHandle),d=this.vertical,p=!d,h=d&&a||(this.reverse?p&&o:p&&r);this.value[0]===this.value[1]?h?u?s():l():u?l():c():u?s():c()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){ps(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t,n,i=this;this.value&&(t=this.value,n=e,Ba(t[0],n[0])&&Ba(t[1],n[1]))||this.ngZone.run((function(){i.value=e,i.ngChange(e),i.value&&i.valueChange.emit(e),i.sizeComponent()}))},t.prototype.sizeComponent=function(){if(Object(In.isDocumentAvailable)()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,r=this.draghandleEnd.nativeElement,o=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,r,o,this.hostElement.nativeElement]);var a=this.getProps(),s=new js(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(r),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:is(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===In.Keys.Tab})))}))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(r.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(r.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoRangeSlider",providers:[En.LocalizationService,{provide:En.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:xe,useExisting:Object(r.forwardRef)((function(){return n}))},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService,r.Injector,r.Renderer2,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],t)}(_s),ws=function(){function e(e,t,n,i,o,a){var s=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=o,this.ngZone=a,this.focusableId="k-"+Object(In.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.hostClasses=!0,this.initialized=!1,this._checked=!1,this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){s.focused=!0,Object(In.hasObservers)(s.onFocus)&&s.ngZone.run((function(){s.onFocus.emit()}))},this.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(In.hasObservers)(s.onBlur)||Fa(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.onBlur.emit()}))},Object(Dn.validatePackage)(ys),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return Pn.browser&&Pn.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(ke.skip)(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(Ve,null),this.ngZone.onStable.pipe(Object(ke.take)(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()},e.prototype.focus=function(){this.wrapper&&this.wrapper.nativeElement.focus()},e.prototype.blur=function(){this.wrapper&&this.wrapper.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==In.Keys.Space&&t!==In.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.setHostClasses=function(e){e?(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-off"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-on")):(this.renderer.removeClass(this.hostElement.nativeElement,"k-switch-on"),this.renderer.addClass(this.hostElement.nativeElement,"k-switch-off"))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"checked",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(r.Output)("focus"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(r.Output)("blur"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(r.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(r.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),e=t=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoSwitch",providers:[En.LocalizationService,{provide:En.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:xe,useExisting:Object(r.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #wrapper\n class="k-switch-container"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ click: clickHandler, keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n <span class="k-switch-handle" [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef,En.LocalizationService,r.Injector,r.ChangeDetectorRef,r.NgZone])],e)}(),Ss=function(){function e(e,t,n,i,o,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=o,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new r.EventEmitter,this.autoSize=!1,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],Object(In.isDocumentAvailable)()&&e.autoSize&&(e.resizeSubscription=Object(Se.fromEvent)(window,"resize").pipe(Object(ke.debounceTime)(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=Object(Se.fromEvent)(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(Ve,null)},e.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(In.hasObservers)(this.onValueChange)||Object(In.hasObservers)(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;Object(In.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(Object(In.hasObservers)(this.onBlur)||Fa(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},Object(i.__decorate)([Object(r.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(r.Directive)({providers:[{provide:xe,useExisting:Object(r.forwardRef)((function(){return t})),multi:!0},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(r.Optional)()),Object(i.__param)(5,Object(r.Inject)(En.RTL)),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone,r.ChangeDetectorRef,r.Injector,Boolean])],e)}(),ks=function(){function e(e,t){this.component=e;var n=function(e){return e instanceof Se.Observable||e instanceof r.EventEmitter};n(e.onFocus)&&(this.onFocus=e.onFocus),n(e.autoFillStart)&&(this.autoFillStart=e.autoFillStart),n(e.autoFillEnd)&&(this.autoFillEnd=e.autoFillEnd),n(e.onBlur)&&(this.onBlur=e.onBlur),t?this.onValueChange=t.valueChanges:e.onValueChange&&(this.onValueChange=e.onValueChange)}return Object.defineProperty(e.prototype,"focusableId",{get:function(){var e=this.component;return"focusableId"in e?e.focusableId:"id"in e?e.id:""},set:function(e){var t=this.component;"focusableId"in t?t.focusableId=e:"id"in t&&(t.id=e)},enumerable:!0,configurable:!0}),e}(),xs=function(e){return"[object Function]"===Object.prototype.toString.call(e)},Es=function(){function e(e,t,n,i){this.elementRef=e,this.renderer=t,this.changeDetectorRef=n,this.focused=!1,this.empty=!0,this.invalid=!1,this._subscriptions=[],this.autoFillStarted=!1,this.direction=i?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}return Object.defineProperty(e.prototype,"hostClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textareaElementClass",{get:function(){return!!this.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalidClass",{get:function(){return this.invalid},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;if(this.formControl||this.kendoInput){var t=new ks(this.kendoInput||this.formControl.valueAccessor,this.formControl),n=function(t){return function(){e.focused=t,e.updateState()}};this.subscribe(t,"onFocus",n(!0)),this.subscribe(t,"onBlur",n(!1)),this.subscribe(t,"autoFillStart",(function(){e.autoFillStarted=!0,e.renderer.removeClass(e.elementRef.nativeElement,"k-state-empty")})),this.subscribe(t,"autoFillEnd",(function(){e.autoFillStarted&&(e.autoFillStarted=!1,e.empty&&e.renderer.addClass(e.elementRef.nativeElement,"k-state-empty"))}));var i=function(){return e.updateState()};if(i(),this.subscribe(t,"onValueChange",i),this.id&&t.focusableId)this.id=t.focusableId;else if(this.id)t.focusableId=this.id;else if(t.focusableId)this.id=t.focusableId;else{var o="_"+Object(In.guid)();t.focusableId=o,this.id=o}}else if(Object(r.isDevMode)())throw new Error("The TextBoxContainer requires a Kendo Input component or a forms-bound component to function properly.")},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions=[]},e.prototype.subscribe=function(e,t,n){if(e[t]instanceof r.EventEmitter){var i=e[t].subscribe(n);this._subscriptions.push(i)}},e.prototype.updateState=function(){var e=function(e){return 0!==e&&!1!==e&&(!(!Array.isArray(e)||e.length)||!e)},t=this.formControl;if(t){var n=t.valueAccessor;xs(n.isEmpty)?this.empty=n.isEmpty():this.empty=e(t.value),this.invalid=t.invalid&&(t.touched||t.dirty)}else this.empty=xs(this.kendoInput.isEmpty)?this.kendoInput.isEmpty():e(this.kendoInput.value);this.empty?this.renderer.addClass(this.elementRef.nativeElement,"k-state-empty"):this.renderer.removeClass(this.elementRef.nativeElement,"k-state-empty"),this.changeDetectorRef.markForCheck()},Object(i.__decorate)([Object(r.HostBinding)("class.k-textbox-container"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostClasses",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-textarea-wrapper"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"textareaElementClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-focused"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-invalid"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"invalidClass",null),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"floatingLabel",void 0),Object(i.__decorate)([Object(r.ContentChild)(In.KendoInput,{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(r.ContentChild)(Ss,{static:!1}),Object(i.__metadata)("design:type",Ss)],e.prototype,"textarea",void 0),Object(i.__decorate)([Object(r.ContentChild)(Ve,{static:!1}),Object(i.__metadata)("design:type",Ve)],e.prototype,"formControl",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"kendo-textbox-container",template:'\n <ng-content></ng-content>\n <label *ngIf="floatingLabel" [for]="id" class="k-label">{{ floatingLabel }}</label>\n '}),Object(i.__param)(3,Object(r.Optional)()),Object(i.__param)(3,Object(r.Inject)(En.RTL)),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.Renderer2,r.ChangeDetectorRef,Boolean])],e)}(),Is=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClass=!0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.onValueChange=new r.EventEmitter,this.autoFillStart=new r.EventEmitter,this.autoFillEnd=new r.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},Object(i.__decorate)([Object(r.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(r.Directive)({selector:"input[kendoTextBox]",providers:[{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,r.ElementRef,r.NgZone])],e)}(),Ds=/[eE][\-+]?([0-9]+)/,Ps=function(e){return e>=0?Math.floor(e):Math.ceil(e)},Ts=function(e){},Ms=function(e){return!isNaN(e)&&null!==e};function As(e,t){var n=t-String(e).length,i=e;if(n>0){var r=new Array(n+1).join("0");i=parseFloat(e+r)}return i}var Ns;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(Ns||(Ns={}));var Vs,Bs=["min","max","step","decimals"],Fs={decimals:null,max:null,min:null,step:1},Rs=function(){function e(e,t,n,i,o,a,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=o,this.changeDetector=a,this.hostElement=s,this.focusableId="k-"+Object(In.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.ArrowDirection=Ns,this.arrowDirection=Ns.None,this.inputValue="",this.minValidateFn=Ts,this.maxValidateFn=Ts,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=Ts,this.ngTouched=Ts,this.ngValidatorChange=Ts,this.increasePress=function(e){c.arrowPress(Ns.Up,e)},this.decreasePress=function(e){c.arrowPress(Ns.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==Ns.None&&(c.arrowDirection=Ns.None,c.changeDetector.detectChanges())},this.handlePaste=function(){c.isPasted=!0},this.handleInput=function(){var e=c.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(c.pressedKey===In.Keys.NumpadDecimal&&(i=c.replaceNumpadDotValue()),c.isPasted&&(i=c.formatInputValue(c.intl.parseNumber(i))),!c.isValid(i))return e.value=c.inputValue,void c.setSelection(t-1,n-1);var r=c.intl.parseNumber(i),o=c.restrictDecimals(r);if(c.autoCorrect){var a=c.limitInputValue(o);o=a.value,t=a.selectionStart,n=a.selectionEnd}r!==o||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(o),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(o),c.previousSelection=null,c.isPasted=!1},this.handleDragEnter=function(){c.focused||c.isDisabled||c.setInputValue(c.value,!0)},this.handleMouseDown=function(){c.mouseDown=!0},this.handleFocus=function(){if(!c.focused&&(c.focused=!0,!c.isDisabled)){var e=c.selectOnFocus||!c.mouseDown;c.ngZone.runOutsideAngular((function(){setTimeout((function(){e?c.selectAll():c.selectCaret()}),0)}))}c.mouseDown=!1,Object(In.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.inputValue!==c.elementValue&&c.handleInput(),c.setInputValue(),(Object(In.hasObservers)(c.onBlur)||Fa(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()}))},this.handleKeyDown=function(e){if(!c.isDisabled){var t;e.keyCode===In.Keys.ArrowDown?t=-1:e.keyCode===In.Keys.ArrowUp&&(t=1),t&&c.step&&(e.preventDefault(),c.addStep(t));var n=c.numericInput.nativeElement;c.previousSelection={end:n.selectionEnd,start:n.selectionStart},c.pressedKey=e.keyCode}},this.handleWheel=function(e){if(c.focused&&!c.isDisabled&&c.changeValueOnScroll){e.preventDefault();var t=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t}(e);c.addStep(t)}},Object(Dn.validatePackage)(ys),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgetClasses",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Ve,null)},e.prototype.ngOnChanges=function(e){var t,n;Object(In.anyChanged)(Bs,e,!1)&&this.parseOptions(Bs.filter((function(t){return e[t]}))),this.verifySettings(),Object(In.anyChanged)(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(n=this.min,function(e){return!Va(n)||!Va(e.value)||e.value>=n?null:{minError:{minValue:n,value:e.value}}}):Ts,this.maxValidateFn=this.rangeValidation?(t=this.max,function(e){return!Va(t)||!Va(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}):Ts,this.ngValidatorChange()),Object(In.anyChanged)(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Object(In.anyChanged)(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){gs(this.numericInput,"focus")},e.prototype.blur=function(){gs(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.numericWrap){var t=this.numericWrap.nativeElement,n=this.numericInput.nativeElement;e?(this.renderer.addClass(t,"k-state-focused"),this.isDisabled||this.renderer.removeClass(n,"k-formatted-value")):(this.renderer.removeClass(t,"k-state-focused"),this.renderer.addClass(n,"k-formatted-value")),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){var n,i,r;(t.preventDefault(),this.isDisabled||(n=t,i=n.button&&2===n.button,r=n.which&&3===n.which,i||r))||(Pn.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;Ba(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,r=this.previousSelection,o=r.start,a=r.end;t.value=e=e.substring(0,o)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,r,o,a;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,r=t.decimals,o=t.min,"."===(a=t.separator)&&(a="\\"+a),n=0===r?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(i&&null!==o&&o>=0?"":"-?")+n+"$"))),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,50)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=Ga(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&gs(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(Ms(this.max)&&e>this.max&&(t=this.max),Ms(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,r=t.value,o=e,a=!1;if(!this.isInRange(e)){var s=r.length-String(this.inputValue).length,c=this.min,l=this.max,u=Ms(l),d=Ms(c),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===r)return{selectionEnd:i,selectionStart:n,value:null};if(u&&e>l?e>0?h=!0:p=l:d&&e<c&&(e>0?p=c:h=!0),p){var m=this.tryPadValue(e,p);m&&Ps(e)!==Ps(p)&&(f=m,a=!0)}else h&&this.inputValue&&n!==r.length&&(f=parseFloat(r.substr(0,n)+r.substr(n+s)));o=this.limitValue(f),a=(a||o!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(o).length:i,selectionStart:n,value:o}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,r=As(e,i),o=As(e,i+1);return this.isInRange(r)?n=r:this.isInRange(o)&&(n=o),n},e.prototype.isInRange=function(e){return!Ms(e)||(!Ms(this.min)||this.min<=e)&&(!Ms(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,r=String(e);if(t||Ds.test(r))n=Ka(e,i);else{var o=r.split("."),a=o[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(o[0]+"."+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=Ds.exec(t);return n&&(t=e.toFixed(za(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&function(e){return void 0!==e}(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(Object(r.isDevMode)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(r.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var o=parseFloat(i),a=!isNaN(o);if(Object(r.isDevMode)()&&!a&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=a?o:Fs[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e,t,n,i=this.numericInput.nativeElement.selectionStart,r=this.elementValue,o=r.substring(0,i);if(this.setInputValue(),o.length){var a=(e=o,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(r,a);this.setSelection(s,s)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,r=n[1].length;return i===t?r-1:r}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.Output)("focus"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(r.Output)("blur"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(r.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(r.ViewChild)("numericWrap",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"numericWrap",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-widget"),Object(r.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"widgetClasses",null),e=t=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoNumericTextBox",providers:[En.LocalizationService,{provide:En.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:xe,useExisting:Object(r.forwardRef)((function(){return t})),multi:!0},{provide:Le,useExisting:Object(r.forwardRef)((function(){return t})),multi:!0},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <span\n class="k-numeric-wrap"\n [class.k-state-disabled]="disabled"\n [kendoEventsOutsideAngular]="{ mousewheel: handleWheel, DOMMouseScroll: handleWheel }"\n #numericWrap>\n <input\n role="spinbutton"\n class="k-input k-formatted-value"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span class="k-select" *ngIf="spinners" [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }">\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Up"\n class="k-link k-link-increase"\n >\n <span class="k-icon k-i-arrow-n"></span>\n </span>\n <span\n role="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-state-active]="arrowDirection === ArrowDirection.Down"\n class="k-link k-link-decrease"\n >\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[go,r.Renderer2,En.LocalizationService,r.Injector,r.NgZone,r.ChangeDetectorRef,r.ElementRef])],e)}(),zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(En.ComponentMessages),Hs=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(r.Component)({providers:[{provide:zs,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(zs);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Vs||(Vs={}));var Ls=function(){function e(e,t,n){void 0===n&&(n=Vs.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),Ks=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),Gs=function(e){return(e||"").split("")},Zs=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Ks?this.parse(e):this.parse(new Ks(Gs(e),Gs(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===Vs.Literal},e}(),Us=function(e,t){return new Zs((function(n){var i=n.next().char,r=e[i];return"\\"===i?(i=n.next().char,new Ls(t.literal(i),n)):new Ls(r?t.mask(r):t.literal(i),n)}))},Ws=function(e){var t=e.prompt,n=e.promptPlaceholder;return new Zs((function(e){var i=e.next().char;return new Ls(i===t?n:i,e)}))},qs=function(e){return new Zs((function(t){var n=t.next().char;return new Ls(e?n:"",t)}))},$s=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new Zs((function(e){return new Ls(t,e)}))));var t},Xs=function(e){return new Zs((function(t){for(var n=new Ls([],t);!t.eof();)n=n.concat(e.run(t));return n}))},Ys=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,r=void 0===i?"":i,o=e.promptPlaceholder,a=void 0===o?" ":o,s=e.rules,c=void 0===s?{}:s,l=e.includeLiterals,u=void 0!==l&&l;this.mask=n,this.prompt=r,this.promptPlaceholder=a,this.rules=c,this.includeLiterals=u,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return $s(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?($s(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?($s(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var r="",o=i,a=t.split("").slice(0,n),s=t.split("").slice(i);return $s(this.maskTokens.slice(n,i)).run(e).fold((function(e){r=a.concat(e).concat(s).join("")})),{selection:o,value:r}},e.prototype.maskRemoved=function(e,t,n){var i=this,r="",o=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return $s(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){o=i.adjustPosition(e,o),r=e.concat(a).join("")})),{selection:o,value:r}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,r="",o=n,a=e.slice(0,n);return $s(this.unmaskTokens).run(a,t).chain((function(e){o=e.join("").length;var n=t.slice(o);return $s(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:o,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new Zs((function(e){return e.peek().char===t?(e.eat(),new Ls(t,e,Vs.Literal)):new Ls(t,e,Vs.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new Zs((function(i){for(;!i.eof();){var r=i.peek(),o=r.char,a=r.control;if(o===a&&a===t)return i.eat(),new Ls(t,i,Vs.Mask);if(e.test(o))return i.eat(),new Ls(o,i,Vs.Mask);if(o===n)return i.eat(),new Ls(t,i,Vs.Mask);i.eat_input()}return i.eat(),new Ls(t,i,Vs.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new Zs((function(e){return e.eof()?new Ls("",e):(e.peek().char===t&&e.eat(),new Ls(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new Zs((function(t){for(;!t.eof();){var i=t.peek(),r=i.char,o=i.control;if(r===n&&o===n)return t.eat(),new Ls(r,t);if(e.test(r))return t.eat(),new Ls(r,t);t.eat_input()}return t.eat(),new Ls("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return qs(n)},mask:function(n){return Ws({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return qs(!1)},mask:function(t){return Ws({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;Xs(Us(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Xs(Us(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Xs(Us(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Xs(Us(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(r.Injectable)()],e)}(),Js=Promise.resolve(null),Qs=function(){function e(e,t,n,i,o,a,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=o,this.changeDetector=a,this.focusableId="k-"+Object(In.guid)(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this.handleFocus=function(){c.focused=!0,c.maskOnFocus&&c.emptyMask&&(c.updateInput(c.service.maskRaw(c.value)),c.ngZone.runOutsideAngular((function(){setTimeout((function(){c.setSelection(0,0)}),0)}))),Object(In.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleClick=function(){if(c.focused&&!c.focusClick){c.focusClick=!0;var e=c.input.nativeElement;e.selectionStart===e.selectionEnd&&c.setFocusSelection()}},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.focusClick=!1,c.maskOnFocus&&c.emptyMask&&c.updateInput(c.maskedValue),(Object(In.hasObservers)(c.onBlur)||Fa(c.control))&&c.ngZone.run((function(){c.onTouched(),c.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},Object(Dn.validatePackage)(ys),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Ve,null)},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,r=i[0],o=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-o,s=n.length-a;t=this.service.maskInRange(n.slice(r,s),this.maskedValue,r,o)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),Object(In.isChanged)("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Object(In.anyChanged)(["promptPlaceholder","includeLiterals"],e)?Js.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&gs(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=Va(e);if(t&&"string"!=typeof e){if(Object(r.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-widget"),Object(r.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(r.Output)("focus"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(r.Output)("blur"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(r.HostListener)("paste",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"pasteHandler",null),Object(i.__decorate)([Object(r.HostListener)("input",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoMaskedTextBox",providers:[Ys,{multi:!0,provide:xe,useExisting:Object(r.forwardRef)((function(){return t}))},{multi:!0,provide:Le,useExisting:Object(r.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-textbox"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(i.__param)(6,Object(r.Optional)()),Object(i.__param)(6,Object(r.Inject)(En.RTL)),Object(i.__metadata)("design:paramtypes",[Ys,r.Renderer2,r.ElementRef,r.NgZone,r.Injector,r.ChangeDetectorRef,Boolean])],e)}(),ec=function(e){this.value=e,this.classes={"k-tick":!0}},tc=function(){function e(e){this.rtl=e,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e,t,n,i,r,o,a,s,c=Ya(this.min,this.max,this.step),l=this.largeStep,u={max:this.max,min:this.min,smallStep:this.step},d=[],p=0;p<c;p++)d.push(new ec((e=p,n=void 0,i=void 0,r=void 0,o=void 0,a=void 0,s=void 0,n=(t=u).max,i=t.min,r=t.smallStep,o=t.reverse,a=t.vertical,s=Ga(i,Ua(e,r)),a||o?Math.abs(Za(s,n)):s))),l&&p%l==0&&(d[p].large=!0,d[p].classes["k-tick-large"]=!0);(this.rtl||this.vertical)&&(d=d.reverse()),d.length>0&&(Object.assign(d[0].classes,this.endTickClasses(!0)),Object.assign(d[d.length-1].classes,this.endTickClasses(!1))),this.ticks=d},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(i.__decorate)([Object(r.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",r.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(r.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",r.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false">&nbsp;</ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__param)(0,Object(r.Inject)(En.RTL)),Object(i.__metadata)("design:paramtypes",[Boolean])],e)}(),nc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[tc,vs],exports:[vs,tc,In.DraggableModule,In.EventsModule,In.ResizeSensorModule],imports:[o.CommonModule,In.DraggableModule,In.EventsModule,In.ResizeSensorModule]})],e)}(),ic=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(En.ComponentMessages),rc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(r.Directive)({providers:[{provide:ic,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(ic),oc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(r.Component)({providers:[{provide:ic,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(ic),ac=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[Os,oc,rc],exports:[Os,oc,vs,rc],imports:[o.CommonModule,nc]})],e)}(),sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(En.ComponentMessages),cc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(r.Directive)({providers:[{provide:sc,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(sc),lc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(r.Component)({providers:[{provide:sc,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(sc),uc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[Cs,lc,cc],exports:[Cs,lc,cc,vs],imports:[o.CommonModule,nc]})],e)}(),dc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(En.ComponentMessages),pc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(r.Directive)({providers:[{provide:dc,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(dc),hc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(r.Component)({providers:[{provide:dc,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(dc),fc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[ws,hc,pc],exports:[ws,hc,pc],imports:[o.CommonModule,In.EventsModule,In.ResizeSensorModule]})],e)}(),mc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(r.Directive)({providers:[{provide:zs,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(zs),gc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[mc,Rs,Hs],exports:[Rs,Hs],imports:[o.CommonModule,In.EventsModule]})],e)}(),bc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[Qs],exports:[Qs],imports:[o.CommonModule,In.EventsModule]})],e)}(),yc=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[r.TemplateRef])],e)}(),vc=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(r.Optional)()),Object(i.__metadata)("design:paramtypes",[r.TemplateRef])],e)}(),_c=function(){function e(e,t,n,i,o,a){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=a,this.focusableId="k-"+Object(In.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new r.EventEmitter,this.inputFocus=new r.EventEmitter,this.inputBlur=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=function(){s.disabled||(s.selectOnFocus&&s.value&&s.ngZone.run((function(){setTimeout((function(){s.selectAll()}))})),Object(In.hasObservers)(s.onFocus)&&(s.isFocused||s.ngZone.run((function(){s.onFocus.emit()}))),Object(In.hasObservers)(s.inputFocus)&&(!s.focusChangedProgrammatically||s.focusChangedProgrammatically&&s.clearButtonClicked)&&s.ngZone.run((function(){s.inputFocus.emit()})),s.ngZone.run((function(){s.isFocused=!0})))},this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(In.hasObservers)(s.inputBlur)||Fa(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.handleInput=function(e){var t,n,i=(n=navigator.userAgent,(Object(Pn.detectDesktopBrowser)(n).safari||Object(Pn.detectMobileOS)(n)&&"mobilesafari"===Object(Pn.detectMobileOS)(n).browser)&&(t=e.target.value,/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(t))?e.data:e.target.value);s.updateValue(i)},this.ngChange=function(e){},this.ngTouched=function(){},Object(Dn.validatePackage)(ys),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(Ve,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(bs(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===In.Keys.Tab})))}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?"k-text-success "+this.successIcon:"k-text-success k-icon k-i-check-outline"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?"k-text-error "+this.errorIcon:"k-text-error k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-close-circle"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&gs(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;Ba(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(r.Output)("focus"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(r.Output)("blur"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(r.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(r.ContentChild)(yc,{static:!1}),Object(i.__metadata)("design:type",yc)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(r.ContentChild)(vc,{static:!1}),Object(i.__metadata)("design:type",vc)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-textbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoTextBox",providers:[En.LocalizationService,{provide:En.L10N_PREFIX,useValue:"kendo.textbox"},{provide:xe,useExisting:Object(r.forwardRef)((function(){return t})),multi:!0},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input\n class="k-input"\n #input\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"/>\n <span class="k-input-suffix">\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)"\n >\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService,r.NgZone,r.ChangeDetectorRef,r.Renderer2,r.Injector,r.ElementRef])],e)}(),Oc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(En.ComponentMessages),jc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(r.Component)({providers:[{provide:Oc,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(Oc),Cc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(r.Directive)({providers:[{provide:Oc,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(Oc),wc=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(r.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),Sc=[wc,Ss],kc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[Sc],exports:[Sc]})],e)}(),xc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[Is,Es,_c,yc,vc,jc,Cc],exports:[Is,Es,_c,yc,vc,In.EventsModule,jc,Cc,Sc],imports:[o.CommonModule,In.EventsModule,kc]})],e)}(),Ec=function(){function e(e,t,n,i,o,a){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=o,this.hostElement=a,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new r.EventEmitter,this.inputBlur=new r.EventEmitter,this.subscriptions=new Se.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(In.hasObservers)(s.inputBlur)||Fa(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(r.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),Ic={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},Dc=function(e){function t(t,n,i,o,a,s){var c=e.call(this,t,n,i,o,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=o,c.injector=a,c.hostElement=s,c.focusableId="k-"+Object(In.guid)(),c.hostClass=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new r.EventEmitter,c.onBlur=new r.EventEmitter,c.valueChange=new r.EventEmitter,c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),Object(In.hasObservers)(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),Object(In.hasObservers)(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},Object(Dn.validatePackage)(ys),c.direction=t.rtl?"rtl":"ltr",c}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(bs(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===In.Keys.Tab})))}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(Ve,null),Object(In.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(Se.fromEvent)(window,"resize").pipe(Object(ke.debounceTime)(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(Va(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;Ba(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return Ic[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-state-focus"):this.renderer.removeClass(t,"k-state-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&gs(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-textarea"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(r.Output)("focus"),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(r.Output)("blur"),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoTextArea",providers:[En.LocalizationService,{provide:En.L10N_PREFIX,useValue:"kendo.textarea"},{provide:xe,useExisting:Object(r.forwardRef)((function(){return n})),multi:!0},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n '}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService,r.NgZone,r.ChangeDetectorRef,r.Renderer2,r.Injector,r.ElementRef])],t)}(Ec),Pc=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(r.HostBinding)("class.k-textarea-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(r.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),Tc=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[Dc,Pc],exports:[Dc,In.EventsModule,Pc,Sc],imports:[o.CommonModule,In.EventsModule,kc]})],e)}(),Mc=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(),Ac=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}(),Nc=function(e,t,n){void 0===n&&(n=!0);if(-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(Va(e)){if("name"===t)return function(e,t){if(e=e.toLowerCase().trim(),Va(ja[e]))return e;Ma(e,t)&&(e=Ma(e,t).toHex());var n=Object.keys(ja).find((function(t){return ja[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property shoud be set to 'hex' or 'rgba' ");return n}(e,n);var i=Ma(e.trim(),n);if(Va(i))return"hex"===t?i.toCss():i.toCssRgba()}},Vc=function(e,t){void 0===t&&(t=!0);var n=Ma(e,t);return Va(n)?n.toBytes():{}},Bc=function(e){var t=Ra(e.h,0,359.9),n=Ra(e.s,0,1),i=Ra(e.v,0,1),r=Ra(e.a,0,1);return Na.fromHSV(t,n,i,r).toCssRgba()},Fc=function(e){return Bc({h:e,s:1,v:1,a:1})};var Rc=function(e,t){var n=Ra(e.r,0,255),i=Ra(e.g,0,255),r=Ra(e.b,0,255),o=Ra(e.a,0,1),a=Ra(t.r,0,255),s=Ra(t.g,0,255),c=Ra(t.b,0,255);return{r:Math.round((1-o)*a+o*n),g:Math.round((1-o)*s+o*i),b:Math.round((1-o)*c+o*r)}},zc=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},Hc=function(e,t){return n=zc(Rc(e,t)),i=zc(Rc(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},Lc={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}},Kc=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(i.__param)(0,Object(r.Inject)(En.L10N_PREFIX)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Inject)(En.RTL)),Object(i.__metadata)("design:paramtypes",[String,En.MessageService,Boolean])],t)}(En.LocalizationService),Gc=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.colorPickerLocalization=r,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(r.Inject)(En.L10N_PREFIX)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Inject)(En.RTL)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__param)(3,Object(r.Inject)(Kc)),Object(i.__metadata)("design:paramtypes",[String,En.MessageService,Boolean,Kc])],t)}(En.LocalizationService),Zc=function(){function e(e,t,n){this.localization=e,this.host=t,this.renderer=n,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new r.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new Se.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!Object(In.isDocumentAvailable)()||!Va(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return Va(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){Va(e.value)&&!this.isFocused&&(this.hex=Nc(this.value,"hex"),this.rgba=Vc(this.value),this.rgba.a=Nc(this.value,"rgba")?this.rgba.a:1)},e.prototype.handleRgbaValueChange=function(){var e,t,n,i,r,o=(e=this.rgba,t=Ra(e.r,0,255),n=Ra(e.g,0,255),i=Ra(e.b,0,255),r=Ra(e.a,0,1),Na.fromBytes(t,n,i,r).toCssRgba());this.rgbaInputValid&&o!==this.value&&(this.value=o,this.rgba=Vc(this.value),this.hex=Nc(o,"hex"),this.valueChange.emit(o))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=Nc(e,"rgba");Va(t)&&t!==this.value&&(this.value=t,this.rgba=Vc(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=Vc(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=Nc(this.value,"hex")},e.prototype.textFor=function(e){return this.localization.get(e)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formatView",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-colorgradient-inputs"),Object(r.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),Object(i.__decorate)([Object(r.ViewChild)("opacityInput",{read:r.ElementRef,static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"opacityInput",void 0),Object(i.__decorate)([Object(r.ViewChild)("toggleFormatButton",{static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button class="k-colorgradient-toggle-mode k-button k-icon-button k-flat" #toggleFormatButton>\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <input *ngIf="formatView === \'hex\'"\n #hexInput\n class="k-textbox k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n [placeholder]="textFor(\'hexInputPlaceholder\')"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'redInputPlaceholder\')"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'greenInputPlaceholder\')"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [placeholder]="textFor(\'blueInputPlaceholder\')"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [placeholder]="textFor(\'alphaInputPlaceholder\')"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService,r.ElementRef,r.Renderer2])],e)}(),Uc=0,Wc=function(){function e(e,t,n,i,o){var a=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=o,this.hostClasses=!0,this.id="k-colorgradient-"+Uc++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.valueChange=new r.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.updateValues=new Se.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Nc(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!Object(In.isDocumentAvailable)()||!Va(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(Va(this.hsva)&&Va(this.hsva.a))return 100*this.hsva.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return"string"==typeof this.contrastTool&&""!==this.contrastTool},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){Object(In.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(In.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.host.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!Va(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(Bc(this.hsva)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,r=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":r=-5;break;case"ArrowDown":r=5}var o=parseInt(n.style.top,10)+r,a=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",o+"px"),this.renderer.setStyle(n,"left",a+"px"),this.ngZone.run((function(){return t.moveDragHandle(a,o)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=e.clientX-this.gradientRect.left,i=e.clientY-this.gradientRect.top;this.ngZone.run((function(){return t.moveDragHandle(n,i)}))}},e.prototype.handleHueSliderChange=function(e){this.handleValueChange(Bc(this.hsva)),this.backgroundColor=Fc(e),this.setAlphaSliderBackground(this.backgroundColor)},e.prototype.handleAlphaSliderChange=function(e){this.hsva.a=e/100,this.handleValueChange(Bc(this.hsva))},e.prototype.handleInputsValueChange=function(e){var t=Nc(e,this.format);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,Va(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=Nc(this.value,this.format);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=Ra(t,0,this.gradientRect.height),r=Ra(e,0,this.gradientRect.width);this.setDragHandleElementPosition(n,r),this.hsva.s=r/this.gradientRect.width,this.hsva.v=1-n/this.gradientRect.height,this.updateValues.next(Bc(this.hsva)),this.setAlphaSliderBackground(Bc(Object(i.__assign)({},this.hsva,{a:1})))},e.prototype.updateUI=function(){if(Object(In.isDocumentAvailable)()){this.hsva=this.value?function(e,t){void 0===t&&(t=!0);var n=Ma(e,t);return Va(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1};var e=(1-this.hsva.v)*this.gradientRect.height,t=this.hsva.s*this.gradientRect.width;this.setDragHandleElementPosition(e,t),this.backgroundColor=Fc(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(Va(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=Nc(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){var n,i,r;i=e.host.nativeElement,r=t.relatedTarget,(!i||!r||i!==r&&!i.contains(r))&&((n=e.host)&&n.nativeElement&&ms(n.nativeElement,"ng-untouched"))&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(Bc(e.hsva))}))})),r=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,r,o)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(ke.throttleTime)(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(i.__decorate)([Object(r.HostBinding)("class.k-colorgradient"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(r.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(r.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"contrastTool",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(r.ViewChild)("gradientDragHandle",{read:r.ElementRef,static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"gradientDragHandle",void 0),Object(i.__decorate)([Object(r.ViewChild)("inputs",{static:!1}),Object(i.__metadata)("design:type",Zc)],e.prototype,"inputs",void 0),Object(i.__decorate)([Object(r.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",Os)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(r.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=Object(i.__decorate)([Object(r.Component)({selector:"kendo-colorgradient",providers:[{multi:!0,provide:xe,useExisting:Object(r.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))},Gc,{provide:En.LocalizationService,useExisting:Gc},{provide:En.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-hexInputPlaceholder="kendo.colorgradient.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorgradient.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorgradient.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorgradient.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorgradient.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [style.background]="backgroundColor">\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-flat k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [(value)]="hsva.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity && format === \'rgba\'"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-align-self-end {\n height: 140px;\n }\n "]}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone,r.Renderer2,r.ChangeDetectorRef,En.LocalizationService])],e)}(),qc=0,$c=function(){function e(e,t,n,i){var o=this;this.popupService=e,this.cdr=t,this.localizationService=n,this.ngZone=i,this.hostClasses=!0,this.focusableId="k-colorpicker-"+qc++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new r.EventEmitter,this.open=new r.EventEmitter,this.close=new r.EventEmitter,this.onFocus=new r.EventEmitter,this.onBlur=new r.EventEmitter,this.activeColorClick=new r.EventEmitter,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1,delay:0},this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(Dn.validatePackage)(ys),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;o.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Nc(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return Va(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&Lc[t]?Lc[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Nc(this.value,this.format))},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.handleWrapperClick=function(){this.toggleWithEvents(!this.isOpen),this.focus()},e.prototype.handleActiveColorClick=function(){this.focus();var e=new Ac(this.value);this.activeColorClick.emit(e),e.isOpenPrevented()&&!this.isOpen||this.handleWrapperClick()},e.prototype.focus=function(){this.disabled||this.wrapper.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){Va(this.palette)&&this.palette.nativeElement.focus(),this.isFocused||(this.isFocused=!0,this.onFocus.emit())},e.prototype.blur=function(){this.wrapper.nativeElement.blur()},e.prototype.handleWrapperBlur=function(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())},e.prototype.reset=function(){Va(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=Va(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e,t){var n=Nc(e,this.format),i=n!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),i&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n))},e.prototype.handlePopupBlur=function(e){var t=this.popupRef.popupElement.contains(e.relatedTarget),n=e.relatedTarget===this.wrapper.nativeElement;!this.isFocused||n||t||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){e.keyCode!==In.Keys.ArrowDown&&e.keyCode!==In.Keys.Enter||(e.preventDefault(),this.toggleWithEvents(!0))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===In.Keys.Escape&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus()),e.keyCode===In.Keys.Tab){var t=this.colorGradient?this.colorGradient.gradientDragHandle.nativeElement:this.palette.nativeElement,n=this.palette?this.palette.nativeElement:this.colorGradient.inputs.opacityInput.nativeElement.childNodes[1].children[0];if(e.shiftKey){if(e.target===t)return e.preventDefault(),void n.focus()}else if(e.target===n)return e.preventDefault(),void t.focus()}},e.prototype.isEmpty=function(){return!1},e.prototype.toggleWithEvents=function(e){var t=this,n=this.isOpen===e;if(!(this.disabled||this.readonly||n)){var i=new Mc;e?this.open.emit(i):this.close.emit(i),i.isDefaultPrevented()||this.toggle(e),e&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.colorGradient&&t.colorGradient.gradientDragHandle.nativeElement.focus()}))}))}},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.wrapper.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null,this.palette=null)},Object(i.__decorate)([Object(r.HostBinding)("class.k-widget"),Object(r.HostBinding)("class.k-colorpicker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"view",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(r.Output)("focus"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(r.Output)("blur"),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(r.ViewChild)("container",{read:r.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",r.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(r.ViewChild)("wrapper",{static:!0}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(r.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",r.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(r.ViewChild)("palette",{read:r.ElementRef,static:!1}),Object(i.__metadata)("design:type",r.ElementRef)],e.prototype,"palette",void 0),Object(i.__decorate)([Object(r.ViewChild)("colorGradient",{static:!1}),Object(i.__metadata)("design:type",Wc)],e.prototype,"colorGradient",void 0),e=t=Object(i.__decorate)([Object(r.Component)({selector:"kendo-colorpicker",providers:[{multi:!0,provide:xe,useExisting:Object(r.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))},Kc,{provide:En.LocalizationService,useExisting:Kc},{provide:En.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorGradient="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradient="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-hexInputPlaceholder="kendo.colorpicker.hexInputPlaceholder|The placeholder for the HEX color input."\n hexInputPlaceholder="HEX Color"\n i18n-redInputPlaceholder="kendo.colorpicker.redInputPlaceholder|The placeholder for the red color input."\n redInputPlaceholder="Red"\n i18n-greenInputPlaceholder="kendo.colorpicker.greenInputPlaceholder|The placeholder for the green color input."\n greenInputPlaceholder="Green"\n i18n-blueInputPlaceholder="kendo.colorpicker.blueInputPlaceholder|The placeholder for the blue color input."\n blueInputPlaceholder="Blue"\n i18n-alphaInputPlaceholder="kendo.colorpicker.alphaInputPlaceholder|The placeholder for the alpha input."\n alphaInputPlaceholder="Alpha">\n </ng-container>\n <span\n #wrapper\n [ngClass]="{\n \'k-picker-wrap\': true,\n \'k-state-disabled\': this.disabled,\n \'k-state-focused\': this.isFocused\n }"\n role="listbox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-readonly]="readonly"\n [attr.aria-disabled]="disabled"\n [attr.aria-label]="value"\n [id]="focusableId"\n [attr.tabindex]="tabindex"\n (focus)="handleWrapperFocus()"\n (blur)="handleWrapperBlur()"\n (mousedown)="$event.preventDefault()"\n (keydown)="handleWrapperKeyDown($event)"\n >\n <span *ngIf="!iconStyles" class="k-selected-color" [style.background-color]="value" (click)="handleActiveColorClick()">\n <span class="k-icon k-i-line" *ngIf="!value"></span>\n </span>\n <span *ngIf="iconStyles" class="k-tool-icon" [ngClass]="iconStyles" (click)="handleActiveColorClick()">\n <span class="k-selected-color" [style.background-color]="value"></span>\n </span>\n <span class="k-select" (click)="handleWrapperClick()">\n <span class="k-icon k-i-arrow-s"></span>\n </span>\n </span>\n <ng-template #popupTemplate>\n <kendo-colorgradient #colorGradient\n *ngIf="view === \'gradient\' || view === \'combo\'"\n [value]="value"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [clearButton]="gradientSettings.clearButton"\n [delay]="gradientSettings.delay"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event, false)"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette\n #palette\n *ngIf="view === \'palette\' || view === \'combo\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="value"\n (blur)="handlePopupBlur($event)"\n (cellSelection)="handleValueChange($event, true)"\n (mousedown)="$event.preventDefault()"\n (keydown)="handlePopupKeyDown($event)"\n >\n </kendo-colorpalette>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[ba,r.ChangeDetectorRef,En.LocalizationService,r.NgZone])],e)}(),Xc=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],Va(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(Va(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(Va(e)&&Va(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(Va(e)&&Va(e.row)&&Va(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=Object(i.__decorate)([Object(r.Injectable)()],e)}(),Yc=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.colorPickerLocalization=r,o}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(r.Inject)(En.L10N_PREFIX)),Object(i.__param)(1,Object(r.Optional)()),Object(i.__param)(2,Object(r.Optional)()),Object(i.__param)(2,Object(r.Inject)(En.RTL)),Object(i.__param)(3,Object(r.Optional)()),Object(i.__param)(3,Object(r.Inject)(Kc)),Object(i.__metadata)("design:paramtypes",[String,En.MessageService,Boolean,Kc])],t)}(En.LocalizationService),Jc=0,Qc=function(){function e(e,t,n,i,o){var a=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=o,this.id="k-colorpalette-"+Jc++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new r.EventEmitter,this.valueChange=new r.EventEmitter,this.cellSelection=new r.EventEmitter,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.dynamicRTLSubscription=o.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Nc(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;Va(e)||(e="office"),"string"==typeof e&&Va(Lc[e])&&(this.columns=this.columns||Lc[e].columns,e=Lc[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return Nc(e,t.format,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case In.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case In.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case In.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case In.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case In.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=Nc(e,this.format,!1);this.cellSelection.emit(n),this.value!==n&&(this.value=n,this.valueChange.emit(n),this.notifyNgChanged(n),this.setHostElementAriaLabel()),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId=this.selectedCell.row+"-"+this.selectedCell.col)}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,Va(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.setRows=function(){Va(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=Nc(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(Va(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(r.Output)(),Object(i.__metadata)("design:type",r.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.aria-disabled"),Object(r.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(r.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(r.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleKeydown",null),Object(i.__decorate)([Object(r.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=Object(i.__decorate)([Object(r.Component)({selector:"kendo-colorpalette",providers:[{multi:!0,provide:xe,useExisting:Object(r.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(r.forwardRef)((function(){return t}))},Xc,Yc,{provide:En.LocalizationService,useExisting:Yc},{provide:En.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="rowIndex + \'-\' + colIndex"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,Xc,r.ChangeDetectorRef,r.Renderer2,En.LocalizationService])],e)}(),el=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientNoColor",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientHandle",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearButton",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hueSliderHandle",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"opacitySliderHandle",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"redInputPlaceholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"passContrast",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"failContrast",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"contrastRatio",void 0),t}(En.ComponentMessages),tl=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(r.Component)({providers:[{provide:el,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(el),nl=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(r.Directive)({providers:[{provide:el,useExisting:Object(r.forwardRef)((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],t)}(el),il=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=Object(i.__decorate)([Object(r.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[r.ElementRef,r.NgZone])],e)}(),rl=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){return this.type+": "+this.ratio.toFixed(1)},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"type",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"ratio",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"pass",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],e)}(),ol=function(){function e(e){this.localization=e,this.aaRatio=4.5,this.aaaRatio=7}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioMessage",{get:function(){return this.localization.get("contrastRatio")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=this.aaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=this.aaaRatio},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return Hc(Vc(this.value),Vc(this.ratio))},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"ratio",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioMessage}}: {{formatedRatio}}</span>\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </div>\n <div kendoContrastValidation\n type="AA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [ratio]="aaaRatio"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[En.LocalizationService])],e)}(),al=[$c,Qc,Wc,nl,tl],sl=[Zc,il,ol,rl],cl=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[al,sl],exports:[al],imports:[ac,gc,o.CommonModule,va,In.DraggableModule]})],e)}(),ll=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(r.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"input[kendoCheckBox]"})],e)}(),ul=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[ll],exports:[ll],imports:[o.CommonModule]})],e)}(),dl=function(){function e(){this.kendoClass=!0}return Object(i.__decorate)([Object(r.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),e=Object(i.__decorate)([Object(r.Directive)({selector:"input[kendoRadioButton]"})],e)}(),pl=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[dl],exports:[dl],imports:[o.CommonModule]})],e)}(),hl=0,fl=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+hl++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(r.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(r.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(r.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),ml=0,gl=function(){function e(){this.align="start",this.id="kendo-hint-"+ml++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(r.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(r.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),bl=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new Se.Subscription,this.rtl=!1,Object(Dn.validatePackage)(ys),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(Object(r.isDevMode)()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof tt},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(In.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},Object(i.__decorate)([Object(r.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(r.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(r.HostBinding)("class.k-form-field-error"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"errorClass",null),Object(i.__decorate)([Object(r.HostBinding)("class.k-form-field-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(r.ContentChildren)(Ve,{descendants:!0}),Object(i.__metadata)("design:type",r.QueryList),Object(i.__metadata)("design:paramtypes",[r.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(r.ContentChildren)(Ve,{read:r.ElementRef,descendants:!0}),Object(i.__metadata)("design:type",r.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(r.ContentChild)(In.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(r.ContentChildren)(fl,{descendants:!0}),Object(i.__metadata)("design:type",r.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(r.ContentChildren)(gl,{descendants:!0}),Object(i.__metadata)("design:type",r.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(r.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(r.Component)({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[En.LocalizationService,{provide:En.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(i.__metadata)("design:paramtypes",[r.Renderer2,En.LocalizationService,r.ElementRef])],e)}(),yl=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({declarations:[gl,fl,bl],exports:[gl,fl,bl],imports:[o.CommonModule]})],e)}(),vl=function(){function e(){}return e=Object(i.__decorate)([Object(r.NgModule)({exports:[Tc,xc,ac,uc,fc,gc,bc,cl,ul,pl,yl],imports:[o.CommonModule]})],e)}()}])}));
150
+ */function Mn(e){return"string"==typeof e}var An=/\{(\d+)}?\}/g,Nn=function(e){var t=e.name,n=e.message;if(!t||!n)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=n};Nn.prototype.formatMessage=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Bn(e),i=this.message.replace(An,(function(e,t){return n[parseInt(t,10)]}));return this.name+": "+i},Nn.prototype.error=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new Error(this.formatMessage(e))};var Vn,Bn=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},Rn=(Vn={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(Vn).reduce((function(e,t){return e[t]=new Nn({name:t,message:Vn[t]}),e}),{}));var Fn=Tn;function zn(e){return Mn(e)?Hn(e):e}function Hn(e){if(Fn[e])return Fn[e];if(Fn.supplemental.likelySubtags){var t=e.split("-"),n=t[0],i=t.slice(1),o=function(e,t){for(var n=Fn.supplemental.likelySubtags,i=0;i<t.length;i++){var o=n[e+"-"+t[i]];if(o)return o}if(n[e])return n[e]}(n,i),r=o?function(e,t){var n=e.split("-"),i=n[0],o=n[1],r=n[2];return Fn[e]||-1!==t.indexOf(r)&&Fn[i+"-"+r]||-1!==t.indexOf(o)&&Fn[i+"-"+o]||Fn[i]}(o,i):null;if(r)return r}throw Rn.NoLocale.error(e)}var Ln=/([#,0.]+)/g,Kn=/¤/g;function Gn(e){return Ln.lastIndex=0,e.replace(Kn,"$").replace(Ln,"n").split(";")}function Zn(e){return Ln.lastIndex=0,Ln.exec(e.split(";")[0])[0].split(".")[0].split(",").slice(1).map((function(e){return e.length})).reverse()}function Un(e,t){for(var n in t)n.startsWith("unitPattern")&&(e[n]=t[n].replace("{0}","n").replace("{1}","$"))}function Wn(e,t){var n=Fn[e],i=n.numbers=n.numbers||{};for(var o in i.symbols=i.symbols||{},t)if("symbols-numberSystem-latn"===o)Object.assign(i.symbols,t[o]);else if(o.includes("Formats-numberSystem-latn")){var r=o.substr(0,o.indexOf("Formats-numberSystem-latn")),a=t[o].standard;i[r]={patterns:Gn(a)},"currency"===r?(i[r].groupSize=Zn((t["decimalFormats-numberSystem-latn"]||t[o]).standard),Un(i[r],t[o]),i.accounting={patterns:Gn(t[o].accounting),groupSize:i[r].groupSize}):i[r].groupSize=Zn(a)}else"currencies"===o&&(i.currencies=t[o])}var qn={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},$n=/y+/g,Xn=[["dateFormats","short"]],Yn={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function Jn(e){for(var t=[],n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=e[n[i]];t.push(o)}return t}function Qn(e,t){var n={};for(var i in e){var o=n[i]={};for(var r in e[i]){var a=e[i][r];o[r]=t?a:Jn(a)}}return n}function ei(e,t){var n=Fn[e].calendar;n.days=Qn(t.days),n.months=Qn(t.months),n.quarters=Qn(t.quarters),n.dayPeriods=Qn(t.dayPeriods,!0),n.eras=function(e){var t={},n=t.format={},i={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(var o in e){n[i[o]]=e[o]}return t}(t.eras)}function ti(e,t){var n=Fn[e].calendar,i={};for(var o in t){var r=o.split("-"),a=r[0],s=r[1];void 0===s&&(s="wide");var c=i[a]||{},l=t[o].displayName;l&&(c[s]=l,i[a]=c)}n.dateFields=i}function ni(e,t){for(var n=[],i=0;i<e.length;i++){for(var o=e[i],r=t,a=0;a<o.length;a++)r=r[o[a]];n.push(r)}return n.join(" ")}function ii(e,t){var n=Fn[e].calendar,i=n.patterns={};for(var o in i.d=ni(Xn,t).replace($n,"y"),Yn)i[o]=ni(Yn[o],t);for(var r in qn)i[r]=qn[r];var a=t.dateTimeFormats;n.dateTimeFormats={full:a.full,long:a.long,medium:a.medium,short:a.short,availableFormats:a.availableFormats},n.timeFormats=t.timeFormats,n.dateFormats=t.dateFormats}function oi(e,t){var n=Fn[e].calendar=Fn[e].calendar||{};for(var i in t)"timeZoneNames"===i?(n.gmtFormat=t[i].gmtFormat,n.gmtZeroFormat=t[i].gmtZeroFormat):"calendars"===i&&t[i].gregorian?(ii(e,t[i].gregorian),ei(e,t[i].gregorian)):"fields"===i&&ti(e,t.fields)}function ri(e){if(e.territory)return e.territory;var t,n=e.name,i=e.identity;return t=i&&i.territory?i.territory:function(e,t){var n=Fn.supplemental.likelySubtags,i=e.split("-");if(n){var o=n[e]||n[i[0]];o&&(i=o.split("-"))}if(t)for(var r=i.length-1;r>=1;r--){var a=i[r];a!==t.variant&&a!==t.script||i.splice(r,1)}var s=i.length;if(s>1)return i[s-1].toUpperCase()}(n,i),e.territory=t,t}function ai(e,t){for(var n in t)"numbers"===n?Wn(e,t[n]):"dates"===n&&oi(e,t[n])}function si(e,t){var n,i=t.type,o=t.nameType,r=t.standAlone,a=t.lower,s=r?"stand-alone":"format",c=(a?"lower-":"")+o,l=zn(e).calendar[i][s],d=l[c];return!d&&a&&(d=l[c]=(n=l[o],Array.isArray(n)?function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toLowerCase());return t}(n):function(e){var t={};for(var n in e)t[n]=e[n].toLowerCase();return t}(n))),d}function ci(e){var t=e.split("-"),n=parseInt(t[0],10),i=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(n,i,o)}var li=Rn.NoCurrency,di=Rn.NoCurrencyDisplay,ui=Rn.NoSupplementalCurrency,pi=Rn.NoCurrencyRegion,hi=Rn.NoValidCurrency,fi={"001":"USD",150:"EUR"};function mi(e,t,n){var i=zn(e).numbers.currencies;if(i){var o=i[t];if(o)return o;if(n)throw di.error()}else if(n)throw li.error()}function bi(e,t){return t.length-e.length}function gi(e,t){if(void 0===t&&(t=!0),fi[e])return fi[e];var n=Fn.supplemental.currencyData;if(n){var i=n.region[e];if(i)return function(e){for(var t,n,i,o,r=0;r<e.length;r++){var a=e[r],s=Object.keys(a)[0],c=a[s];if("XXX"!==s&&"false"!==c._tender&&c._from)if(c._to){if(!i){var l=ci(c._from),d=ci(c._to);(!n||n.to<d||n.from<l)&&(t=s,n={from:l,to:d})}}else{var u=ci(c._from);(!o||o<u)&&(i=s,o=u)}}return i||t}(i);if(t)throw pi.error(e)}else if(t)throw ui.error()}function yi(e,t){var n=zn(e),i=n.numbers;if(!i.localeCurrency){var o=gi(ri(n),t);if(!o&&t)throw hi.error(n.name);i.localeCurrency=o}return i.localeCurrency}var vi=["sun","mon","tue","wed","thu","fri","sat"],_i=Rn.NoWeekData,Oi=Rn.NoFirstDay;function ji(e){var t=zn(e);if(!isNaN(t.firstDay))return t.firstDay;var n=Fn.supplemental.weekData;if(!n)throw _i.error();var i=n.firstDay[ri(t)]||n.firstDay["001"];if(!i)throw Oi.error();return t.firstDay=vi.indexOf(i),t.firstDay}var Ci=Rn.NoWeekData;function ki(e){return 1/e==-1/0}function wi(e,t){return void 0===t&&(t={}),t.currency||(t.currency=yi(e,!0)),function(e,t){var n=t.value,i=t.currency,o=t.currencyDisplay;if(void 0===o&&(o="symbol"),"code"===o)return i;var r=mi(e,i,!0);return"symbol"===o?r["symbol-alt-narrow"]||r.symbol:void 0===typeof n||1!==n?r["displayName-count-other"]:r["displayName-count-one"]}(e,t)}function Si(e,t,n,i,o){var r=o.numbers.symbols,a=e.indexOf(r.decimal),s=i.groupSize.slice(),c=s.shift(),l=-1!==a?a:n+1,d=e.substring(t,l),u=e,p=d.length;if(p>=c){for(var h=p,f=[];h>-1;){var m=d.substring(h-c,h);m&&f.push(m),h-=c;var b=s.shift();if(0===(c=void 0!==b?b:c)){(m=d.substring(0,h))&&f.push(m);break}}d=f.reverse().join(r.group),u=e.substring(0,t)+d+e.substring(l)}return u}function Ei(e){return"currency"===e||"accounting"===e}function xi(e,t,n){void 0===t&&(t=2),void 0===n&&(n=!1);var i=t-String(e).length,o=e;if(i>0){var r=new Array(i+1).join("0");o=n?e+r:r+e}return o}function Ii(e,t){var n=e,i=t||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+i:i)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-i:-i))).toFixed(Math.min(i,20))}var Di=/0+$/;function Pi(e){var t,n=e.minimumFractionDigits,i=e.maximumFractionDigits,o=e.style,r=Ei(o);return r&&(t=function(e){var t=2,n=2,i=((Fn.supplemental.currencyData||{}).fractions||{})[e];return i&&i._digits&&(n=t=parseInt(i._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:n}}(e.currency)),void 0===n&&(n=r?t.minimumFractionDigits:0),void 0===i&&(i="percent"===o?Math.max(n,0):r?Math.max(n,t.maximumFractionDigits):Math.max(n,3)),{minimumFractionDigits:n,maximumFractionDigits:i}}var Ti=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function Mi(e,t){var n=e.format;-1!==n.indexOf("%")&&(e.style="percent",e.symbol=t.numbers.symbols.percentSign,e.number*=100),-1!==n.indexOf("$")&&(e.style="currency",e.symbol=wi(t))}function Ai(e){var t=e.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){var n=e.literals=[];e.format=t.replace(Ti,(function(e){var t=e.charAt(0).replace("\\",""),i=e.slice(1).replace(t,"");return n.push(i),"__??__"}))}}var Ni=/(\.(?:[0-9]*[1-9])?)0+$/g,Vi=/\.$/,Bi=/\,/g;function Ri(e){var t,n,i,o=e.number,r=e.format,a=r.indexOf(".");if(-1!==a){var s=r.lastIndexOf("0")-a,c=r.lastIndexOf("#")-a,l=s>-1,d=c>-1,u=o.toString().split("e"),p=(u=(u=u[1]?Ii(o,Math.abs(u[1])):u[0]).split(".")[1]||"").length,h=-1;l||d?l&&s>c?p=s:c>s&&(d&&p>c?p=c:l&&p<s&&(p=s),h=l?s:0):(e.format=r.substring(0,a)+r.substring(a+1),a=-1,p=0),p>-1&&(o=Ii(o,p),h>-1&&(t=o,i=0===(n=h)?Ni:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),o=t.replace(i,"$1").replace(Vi,"")))}else o=Ii(o);e.negative&&-1*o>=0&&!e.negativeZero&&(e.negative=!1),e.number=o,e.decimalIndex=a}function Fi(e,t,n){return-1===e&&-1!==t?t:-1!==e&&-1===t?e:n?Math.min(e,t):Math.max(e,t)}function zi(e,t){var n=e.number;return-1!==e.start&&(n=function(e,t){var n=e;if(t)for(var i=t.length,o=0;o<i;o++)n=n.replace("__??__",t[o]);return n}(n=function(e,t,n){var i=e;if("currency"===t||"percent"===t){i="";for(var o=0,r=e.length;o<r;o++){var a=e.charAt(o);i+="$"===a||"%"===a?n:a}}return i}(n=function(e,t){var n=e.start,i=e.end,o=e.negative,r=e.negativeZero,a=e.format,s=e.decimalIndex,c=e.lastZeroIndex,l=e.hasNegativeFormat,d=e.hasGroup,u=e.number,p=u.toString().split("."),h=a.length,f=p[0],m=p[1]||"",b=f.length,g="";u=a.substring(0,n),!o&&!r||l||(u+="-");for(var y=n;y<h;y++){var v=a.charAt(y);if(-1===s){if(i-y<b){u+=f;break}}else if(-1!==c&&c<y&&(g=""),s-y<=b&&s-y>-1&&(u+=f,y=s),s===y){u+=(m?t.numbers.symbols.decimal:"")+m,y+=i-s+1;continue}"0"===v?(u+=v,g=v):"#"===v&&(u+=g)}return d&&(u=Si(u,n+(o&&!l?1:0),Math.max(i,b+n),t.numbers.decimal,t)),i>=n&&(u+=a.substring(i+1)),u}(e,t),e.style,e.symbol),e.literals)),n}function Hi(e,t,n){var i={negative:e<0,number:Math.abs(e),negativeZero:ki(e),format:t};return function(e){var t=e.number,n=e.format;if(n=n.split(";"),(e.negative||e.negativeZero)&&n[1])n=n[1],e.hasNegativeFormat=!0;else if(0===t){var i=n[2];n=i||n[0],i&&function(e){return-1===e.indexOf("#")&&-1===e.indexOf("0")}(i)&&(e.constant=i)}else n=n[0];e.format=n}(i),i.constant?i.constant:(Ai(i),Mi(i,n),function(e){e.hasGroup=e.format.indexOf(",")>-1,e.hasGroup&&(e.format=e.format.replace(Bi,""))}(i),Ri(i),function(e){var t=e.format,n=t.indexOf("#"),i=t.indexOf("0"),o=Fi(n,i,!0),r=Fi(n=t.lastIndexOf("#"),i=t.lastIndexOf("0"));o===t.length&&(r=o),e.start=o,e.end=r,e.lastZeroIndex=i}(i),zi(i,n))}var Li=/^(n|c|p|e|a)(\d*)$/i;function Ki(e){return Mn(e)?function(e){var t=Li.exec(e);if(t){var n={style:"decimal"},i=t[1].toLowerCase();return"c"===i?n.style="currency":"a"===i?n.style="accounting":"p"===i?n.style="percent":"e"===i&&(n.style="scientific"),t[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(t[2],10)),n}}(e):e}function Gi(e,t,n){if(void 0===t&&(t="n"),void 0===n&&(n="en"),null==e)return"";if(!isFinite(e))return String(e);var i,o=Hn(n),r=Ki(t);if(r){var a=r.style||"decimal";i=function(e,t,n){var i=n.numbers.symbols,o=t.style,r=Ei(o);if("scientific"===o)return(void 0!==t.minimumFractionDigits?e.toExponential(t.minimumFractionDigits):e.toExponential()).replace(".",i.decimal);var a,s=e;r&&(t.value=s,a=wi(n,t)),"percent"===o&&(s*=100,a=i.percentSign);var c=Pi(t),l=c.minimumFractionDigits,d=(s=Ii(s,c.maximumFractionDigits))<0,u=ki(e),p=s.split("."),h=p[0],f=xi(p[1]?p[1].replace(Di,""):"",l,!0);d&&(h=h.substring(1)),t.minimumIntegerDigits&&(h=xi(h,t.minimumIntegerDigits));var m,b=!1!==t.useGrouping?Si(h,0,h.length,t,n):h;if(f&&(b+=i.decimal+f),r&&"name"===t.currencyDisplay)m=function(e,t){var n=e.numbers.currency,i=1!==t?n["unitPattern-count-other"]:n["unitPattern-count-one"];return t<0&&(i=i.replace("n","-n")),i}(n,e);else{var g=t.patterns;m=d||u?g[1]||"-"+g[0]:g[0]}return"n"!==m||d?function(e,t,n){for(var i="",o=0,r=t.length;o<r;o++){var a=t.charAt(o);i+="n"===a?e:"$"===a||"%"===a?n:a}return i}(b,m,a):b}(e,Object.assign({},o.numbers[a],r),o)}else i=Hi(e,t,o);return i}function Zi(e){return"number"==typeof e}var Ui=/[eE][\-+]?[0-9]+/,Wi=/\u00A0/g;function qi(e,t){if(t.length>1){var n=(t[1]||"").replace("$","").split("n");if(e.indexOf(n[0])>-1&&e.indexOf(n[1])>-1)return e.replace(n[0],"").replace(n[1],"")}}function $i(e,t,n){var i,o=Ki(n)||{},r=Ei(o.style),a=e,s=o.currency||yi(t,r);if(s){var c=function(e,t,n){void 0===n&&(n=!0);var i=mi(e,t,n);if(i){if(!i.displays){var o=[t];for(var r in i)o.push(i[r]);o.sort(bi),i.displays=o}return i.displays}}(t,s,r);if(c)for(var l=0;l<c.length;l++){var d=c[l];if(a.includes(d)){a=a.replace(d,""),r=!0;break}}if(r){var u=qi(a,t.numbers.currency.patterns)||qi(a,t.numbers.accounting.patterns);u&&(i=!0,a=u)}}return{number:a,negative:i}}var Xi=/\{(\d+)}/g;function Yi(e){var t=arguments;return e.replace(Xi,(function(e,n){return t[parseInt(n,10)+1]}))}var Ji=[2,1,5,3,4],Qi={};Qi[(-2).toString()]=8,Qi[(-1).toString()]=6,Qi[2..toString()]=6,Qi[1..toString()]=3;var eo={numeric:1,"2-digit":2,short:3,long:4,narrow:5},to=/[hHmsSzZoOvVxX]/;var no=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(e){return e.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],io={e:"c",E:"c",M:"L",Q:"q"},oo={},ro={};function ao(e){return oo[e]||(oo[e]=new RegExp(e+"+")),oo[e]}function so(e){for(var t=[],n=e.charAt(0),i=n,o=1;o<e.length;o++){var r=e.charAt(o);r===i?n+=r:(t.push(n),n=i=r)}return t.push(n),t}function co(e,t){var n,i,o=e.length,r=-Number.MAX_VALUE;for(var a in t){for(var s=[],c=a.replace("v","z"),l=0,d=0;d<o;d++){var u=e[d],p=(ao(u[0]).exec(c)||[])[0];if(p){if(c=c.replace(p,""),p.length!==u.length){var h=Math.max(Math.min(Ji[p.length]-Ji[u.length],2),-2);l-=Qi[h]}}else l-=120;if(s.push(p),l<r)break}c.length&&(l-=20*so(c).length),l>r&&(r=l,n=s,i=t[a])}i=i.replace("v","z");for(var f=0;f<o;f++){var m=n[f];if(m&&m!==e[f]){var b=n[f][0];i=i.replace(ao(b),e[f]),io[b]&&(i=i.replace(ao(io[b]),e[f]))}}return i}function lo(e,t){var n=t.calendar.dateTimeFormats.availableFormats;if(n[e])return n[e];if(ro[t.name]&&ro[t.name][e])return ro[t.name][e];var i,o=e.search(to);if(o>0){var r=e.substr(0,o),a=e.substr(o);i=Yi(t.calendar.dateTimeFormats.short,n[a]||co(so(a),n),n[r]||co(so(r),n))}else i=co(so(e),n);return function(e,t,n){ro[n]||(ro[n]={}),ro[n][e]=t}(e,i,t.name),i}function uo(e,t){var n,i=t.calendar;if(Mn(e))n=i.patterns[e]?i.patterns[e]:e;else if(e){if(e.pattern)return e.pattern;var o=e.skeleton;o||(e.datetime?n=Yi(i.dateTimeFormats[e.datetime],i.timeFormats[e.datetime],i.dateFormats[e.datetime]):e.date?n=i.dateFormats[e.date]:e.time?n=i.timeFormats[e.time]:o=function(e){for(var t=[],n=0;n<no.length;n++){var i=no[n],o=e[i.key];if(o){var r=i.specifier||i.getSpecifier(e);t.push(r.repeat(eo[o]))}}return t.join("")}(e)),o&&(n=lo(o,t))}return n||(n=i.patterns.d),n}function po(e){var t;return e<=3?t="abbreviated":4===e?t="wide":5===e?t="narrow":6===e&&(t="short"),t}function ho(e,t,n,i,o){return si(e,{type:t,nameType:po(n),standAlone:i,lower:o})}function fo(e){return"function"==typeof e}function mo(e){return Boolean(e)&&fo(e.getTime)&&fo(e.getMonth)}var bo={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},go=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function yo(e,t,n,i){return t<=2?xi(e+1,t):ho(n,"months",t,i)[e]}function vo(e,t,n,i){var o=Math.floor(e.getMonth()/3);return t<3?o+1:ho(n,"quarters",t,i)[o]}function _o(e,t,n){var i=n.shortHours,o=n.optionalMinutes,r=n.separator,a=n.localizedName,s=n.zZeroOffset,c=e.getTimezoneOffset()/60;if(0===c&&s)return"Z";var l=c<=0?"+":"-",d=Math.abs(c).toString().split("."),u=d[1]||0,p=l+(i?d[0]:xi(d[0],2));(!u&&o||(p+=(r?":":"")+xi(u,2)),a)&&(p=Yi(0===c?t.calendar.gmtZeroFormat:t.calendar.gmtFormat,p));return p}function Oo(e,t,n,i){var o,r,a;return t<3?(r=e.getDay(),a=ji(n),o=(r<a?7-a+r:r-a)+1):o=ho(n,"days",t,i)[e.getDay()],o}var jo={};function Co(e,t,n){if(void 0===n&&(n="en"),!mo(e))return null==e?"":e;var i=Hn(n);return uo(t,i).replace(go,(function(t){var n=t.length;return t.includes("'")||t.includes('"')?t.slice(1,n-1):jo[t[0]](e,n,i)}))}function ko(e,t,n){var i=e.getTimezoneOffset(),o=new Date(e.getTime()+6e4*(t-n)),r=o.getTimezoneOffset();return new Date(o.getTime()+6e4*(r-i))}jo.d=function(e,t){return xi(e.getDate(),t)},jo.E=function(e,t,n){return ho(n,"days",t)[e.getDay()]},jo.M=function(e,t,n){return yo(e.getMonth(),t,n,!1)},jo.L=function(e,t,n){return yo(e.getMonth(),t,n,!0)},jo.y=function(e,t){var n=e.getFullYear();return 2===t&&(n%=100),xi(n,t)},jo.h=function(e,t){return xi(e.getHours()%12||12,t)},jo.H=function(e,t){return xi(e.getHours(),t)},jo.k=function(e,t){return xi(e.getHours()||24,t)},jo.K=function(e,t){return xi(e.getHours()%12,t)},jo.m=function(e,t){return xi(e.getMinutes(),t)},jo.s=function(e,t){return xi(e.getSeconds(),t)},jo.S=function(e,t){var n=e.getMilliseconds();return 0!==n?xi(String(n/1e3).split(".")[1].substr(0,t),t,!0):xi("",t)},jo.a=function(e,t,n){return ho(n,"dayPeriods",t)[e.getHours()<12?"am":"pm"]},jo.z=function(e,t,n){return _o(e,n,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})},jo.Z=function(e,t,n){return _o(e,n,{separator:t>3,localizedName:4===t,zZeroOffset:5===t})},jo.x=function(e,t,n){return _o(e,n,{optionalMinutes:1===t,separator:3===t||5===t})},jo.X=function(e,t,n){return _o(e,n,{optionalMinutes:1===t,separator:3===t||5===t,zZeroOffset:!0})},jo.G=function(e,t,n){var i=e.getFullYear()>=0?1:0;return ho(n,"eras",t)[i]},jo.e=Oo,jo.c=function(e,t,n){return Oo(e,t,n,!0)},jo.q=function(e,t,n){return vo(e,t,n,!0)},jo.Q=vo;var wo=/([+|\-]\d{1,2})(:?)(\d{2})?/,So=/^\/Date\((.*?)\)\/$/,Eo=/[+-]\d*/,xo={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Io=/\d+/,Do=/^ */,Po=/ *$/,To=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Mo=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ao(e,t,n){return!(e>=t&&e<=n)}function No(e,t){for(var n=t.format,i=t.idx,o=0;n[i]===e;)o++,i++;return o>0&&(i-=1),t.idx=i,o}function Vo(e,t){var n=e?xo[e]||new RegExp("^\\d{1,"+e+"}"):Io,i=t.value.substr(t.valueIdx,e).match(n);return i?(i=i[0],t.valueIdx+=i.length,parseInt(i,10)):null}function Bo(e,t,n){for(var i,o,r,a=0,s=e.length,c=0,l=0;a<s;a++)o=(i=e[a]).length,r=t.value.substr(t.valueIdx,o),n&&(r=r.toLowerCase()),r===i&&o>c&&(c=o,l=a);return c?(t.valueIdx+=c,l+1):null}function Ro(e){var t=!1;return e.value.charAt(e.valueIdx)===e.format[e.idx]&&(e.valueIdx++,t=!0),t}function Fo(e,t,n){var i=n.shortHours,o=n.noSeparator,r=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(e.UTC=!0,s&&"Z"===e.value.charAt(e.valueIdx))return e.valueIdx++,!1;if(a&&!Bo(function(e){var t=e.gmtFormat,n=e.gmtZeroFormat;if(!t)throw Rn.NoGMTInfo.error();return[t.replace("{0}","").toLowerCase(),n.replace("{0}","").toLowerCase()]}(t.calendar),e,!0))return!0;var c=wo.exec(e.value.substr(e.valueIdx,6));if(!c)return!a;var l=c[1],d=c[3],u=parseInt(l,10),p=c[2],h=parseInt(d,10);return!!(isNaN(u)||!i&&3!==l.length||!r&&isNaN(h)||o&&p)||(isNaN(h)&&(h=null),!!(Ao(u,-12,13)||h&&Ao(h,0,59))||(e.valueIdx+=c[0].length,e.hoursOffset=u,void(e.minutesOffset=h)))}function zo(e,t,n){var i=No(e,t),o=ho(n,"months",i,"L"===e,!0),r=i<3?Vo(2,t):Bo(o,t,!0);if(null===r||Ao(r,1,12))return!0;t.month=r-1}function Ho(e,t,n){var i=No(e,t),o=ho(n,"days",i,"c"===e,!0),r=i<3?Vo(1,t):Bo(o,t,!0);if(!r&&0!==r||Ao(r,1,7))return!0}var Lo={};function Ko(e,t){return""+Do.exec(t)[0]+e+Po.exec(t)[0]}function Go(e,t,n){for(var i=uo(t,n).split(""),o={format:i,idx:0,value:Ko(e,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},r=i.length,a=!1;o.idx<r;o.idx++){var s=i[o.idx];if(a)"'"===s&&(a=!1),Ro(o);else if(Lo[s]){if(Lo[s](o,n))return null}else if("'"===s)a=!0,Ro(o);else if(!Ro(o))return null}return o.valueIdx<e.length?null:function(e){var t,n=e.year,i=e.month,o=e.day,r=e.hours,a=e.minutes,s=e.seconds,c=e.milliseconds,l=e.pmHour,d=e.UTC,u=e.hoursOffset,p=e.minutesOffset,h=null!==r||null!==a||s||null,f=new Date;return null===n&&null===i&&null===o&&h?(n=f.getFullYear(),i=f.getMonth(),o=f.getDate()):(null===n&&(n=f.getFullYear()),null===o&&(o=1)),l&&r<12&&(r+=12),d?(u&&(r+=-u),p&&(a+=-p*(u<0?-1:1)),t=new Date(Date.UTC(n,i,o,r,a,s,c))):function(e,t){t||23!==e.getHours()||e.setHours(e.getHours()+2)}(t=new Date(n,i,o,r,a,s,c),r),n<100&&t.setFullYear(n),t.getDate()!==o&&void 0===d?null:t}(o)||null}function Zo(e){if(e&&0===e.indexOf("/D")){var t=So.exec(e);if(t){t=t[1];var n=Eo.exec(t.substring(1));return t=new Date(parseInt(t,10)),n&&(i=n[0],o="-"===i.substr(0,1)?-1:1,r=i.substring(1),n=o*(r=60*parseInt(r.substr(0,2),10)+parseInt(r.substring(2),10)),t=ko(t,t.getTimezoneOffset(),0),t=ko(t,0,-1*n)),t}}var i,o,r}Lo.d=function(e){No("d",e);var t=Vo(2,e);if(null===t||Ao(t,1,31))return!0;null===e.day&&(e.day=t)},Lo.E=function(e,t){if(null===Bo(ho(t,"days",No("E",e),!1,!0),e,!0))return!0},Lo.M=function(e,t){return zo("M",e,t)},Lo.L=function(e,t){return zo("L",e,t)},Lo.y=function(e){var t=No("y",e),n=Vo(1===t?void 0:t,e);if(null===n)return!0;if(2===t){var i=(new Date).getFullYear();(n=i-i%100+n)>2029&&(n-=100)}e.year=n},Lo.h=function(e){No("h",e);var t=Vo(2,e);if(12===t&&(t=0),null===t||Ao(t,0,11))return!0;e.hours=t},Lo.K=function(e){No("K",e);var t=Vo(2,e);if(null===t||Ao(t,0,11))return!0;e.hours=t},Lo.a=function(e,t){var n=ho(t,"dayPeriods",No("a",e),!1,!0),i=Bo([n.pm],e,!0);if(!i&&!Bo([n.am],e,!0))return!0;e.pmHour=i},Lo.H=function(e){No("H",e);var t=Vo(2,e);if(null===t||Ao(t,0,23))return!0;e.hours=t},Lo.k=function(e){No("k",e);var t=Vo(2,e);if(null===t||Ao(t,1,24))return!0;e.hours=24===t?0:t},Lo.m=function(e){No("m",e);var t=Vo(2,e);if(null===t||Ao(t,0,59))return!0;e.minutes=t},Lo.s=function(e){No("s",e);var t=Vo(2,e);if(null===t||Ao(t,0,59))return!0;e.seconds=t},Lo.S=function(e){var t=No("S",e),n=e.value.substr(e.valueIdx,t),i=null;if(isNaN(parseInt(n,10))||(i=Ii(i=parseFloat("0."+n,10),3),i*=1e3,e.valueIdx+=t),null===i||Ao(i,0,999))return!0;e.milliseconds=i},Lo.z=function(e,t){var n=No("z",e)<4,i=Fo(e,t,{shortHours:n,optionalMinutes:n,localizedName:!0});if(i)return i},Lo.Z=function(e,t){var n=No("Z",e),i=Fo(e,t,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(i)return i},Lo.x=function(e,t){var n=No("x",e),i=Fo(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(i)return i},Lo.X=function(e,t){var n=No("X",e),i=Fo(e,t,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(i)return i},Lo.G=function(e,t){var n=ho(t,"eras",No("G",e),!1,!0);if(null===Bo([n[0],n[1]],e,!0))return!0},Lo.e=function(e,t){return Ho("e",e,t)},Lo.c=function(e,t){return Ho("c",e,t)};var Uo={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}};function Wo(e,t){var n=e[e.length-1];n&&"literal"===n.type?n.pattern+=t:e.push({type:"literal",pattern:t})}function qo(e){return"h"===e||"K"===e}var $o=/\{(\d+)(:[^\}]+)?\}/g;function Xo(e,t,n){if(t){if(mo(e))return Co(e,t,n);if(Zi(e))return Gi(e,t,n)}return null!=e?e:""}var Yo={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635938345,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"},Jo="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",Qo={NoCurrency:"Solution: "+Jo+"#toc-no-currency",NoCurrencyDisplay:"Solution: "+Jo+"#toc-no-currency-display",NoCurrencyRegion:"Solution: "+Jo+"#toc-no-currency-region",NoDateFieldNames:"Solution: "+Jo+"#toc-no-date-filed-names",NoFirstDay:"Solution: "+Jo+"#toc-no-first-day",NoGMTInfo:"Solution: "+Jo+"#toc-no-gmt-info",NoLocale:"Solution: "+Jo+"#toc-no-locale",NoValidCurrency:"Solution: "+Jo+"#toc-no-valid-currency",NoWeekData:"Solution: "+Jo+"#toc-no-week-data"};function er(e){var t=e.message,n=Qo[Object.keys(Qo).filter((function(e){return 0===t.indexOf(e)}))[0]];return n?t+" "+n:t}function tr(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return e.apply(null,t)}catch(e){throw e.message=er(e),e}}}var nr=tr(si),ir=tr((function(e,t){void 0===t&&(t="en");var n=Hn(t).calendar.dateFields;if(!n)throw Rn.NoDateFieldNames.error();var i=n[e.type]||{};return i[e.nameType]||i.wide})),or=tr(ji),rr=tr((function(e,t,n){return e.replace($o,(function(e,i,o){return Xo(t[parseInt(i,10)],o?o.substring(1):"",n)}))})),ar=tr(Co),sr=tr(Gi),cr=(tr((function(){for(var e=arguments,t=arguments.length,n=0;n<t;n++){var i=e[n];if(i.main){var o=Object.keys(i.main)[0],r=i.main[o],a=Fn[o]=Fn[o]||{};a.name=a.name||o,a.identity=a.identity||r.identity,ri(a),ai(o,r)}else if(i.supplemental)if(i.supplemental.weekData)Fn.supplemental.weekData={firstDay:i.supplemental.weekData.firstDay,weekendStart:i.supplemental.weekData.weekendStart,weekendEnd:i.supplemental.weekData.weekendEnd};else if(i.supplemental.likelySubtags)Fn.supplemental.likelySubtags=Object.assign(Fn.supplemental.likelySubtags,i.supplemental.likelySubtags);else if(i.supplemental.currencyData){var s=Fn.supplemental.currencyData;s.region=Object.assign(s.region||{},i.supplemental.currencyData.region),s.fractions=Object.assign(s.fractions||{},i.supplemental.currencyData.fractions)}}})),tr((function(e){return zn(e).numbers.symbols}))),lr=tr((function(e,t,n){if(void 0===n&&(n="en"),!e)return null;if(mo(e))return e;var i=String(e).trim(),o=Zo(i);if(o)return o;for(var r=Hn(n),a=t||function(e){for(var t=[],n=e.patterns,i=Mo.length,o=0;o<i;o++)t.push(n[Mo[o]]);return t.concat(To)}(r.calendar),s=(a=Array.isArray(a)?a:[a]).length,c=0;c<s;c++)if(o=Go(i,a[c],r))return o;return o})),dr=tr((function(e,t,n){if(void 0===t&&(t="en"),void 0===n&&(n={}),!e&&0!==e)return null;if(Zi(e))return e;var i,o=Hn(t),r=o.numbers.symbols,a=e.toString(),s=n||{};if(Mn(n)&&(Ai(s={format:n}),a=function(e,t){var n=t.literals,i=e;if(n)for(var o=0;o<n.length;o++)i=i.replace(n[o],"");return i}(a,s),Mi(s,o)),("percent"===s.style||a.indexOf(r.percentSign)>-1)&&(a=a.replace(r.percentSign,""),i=!0),Ui.test(a))return a=parseFloat(a.replace(r.decimal,".")),isNaN(a)?null:a;var c=$i(a,o,s),l=c.negative,d=c.number,u=(a=String(d).trim()).indexOf("-");if(u>0)return null;var p=u>-1;return p=void 0!==l?l:p,a=a.replace("-","").replace(Wi," ").split(r.group.replace(Wi," ")).join("").replace(r.decimal,"."),a=parseFloat(a),isNaN(a)?a=null:p&&(a*=-1),a&&i&&(a/=100),a})),ur=tr((function(e,t){void 0===t&&(t="en");for(var n=uo(e,Hn(t)),i=[],o=go.lastIndex=0,r=go.exec(n);r;){var a=r[0];if(o<r.index&&Wo(i,n.substring(o,r.index)),a.startsWith('"')||a.startsWith("'"))Wo(i,a);else{var s=a[0],c=bo[s],l={type:c,pattern:a};"hour"===c&&(l.hour12=qo(a));var d=Uo[c];if(d){var u=Zi(d.minLength)?d.minLength:d.minLength[s],p=a.length;p>=u&&(l.names={type:d.type,nameType:po(p),standAlone:d.standAlone===s})}i.push(l)}o=go.lastIndex,r=go.exec(n)}return o<n.length&&Wo(i,n.substring(o)),i})),pr=tr(Xo),hr=tr((function(e){var t=zn(e);if(t.weekendRange)return t.weekendRange;var n=Fn.supplemental.weekData;if(!n)throw Ci.error();var i=ri(t),o=n.weekendStart[i]||n.weekendStart["001"],r=n.weekendEnd[i]||n.weekendEnd["001"];return t.weekendRange={start:vi.indexOf(o),end:vi.indexOf(r)},t.weekendRange})),fr=/_/g;function mr(e){return new gr(e)}var br=function(){function e(){this.changes=new o.EventEmitter,Object(Dn.validatePackage)(Yo)}return e.prototype.notify=function(){this.changes.emit()},e.ngInjectableDef=Object(o["ɵɵdefineInjectable"])({factory:function(){return mr(Object(o["ɵɵinject"])(o.LOCALE_ID))},token:e,providedIn:"root"}),e=Object(i.__decorate)([Object(o.Injectable)({providedIn:"root",useFactory:mr,deps:[o.LOCALE_ID]}),Object(i.__metadata)("design:paramtypes",[])],e)}(),gr=function(e){function t(t){var n=e.call(this)||this;return n.localeId=t,n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"localeId",{get:function(){return this.locale},set:function(e){var t=e.replace(fr,"-");t!==this.locale&&(this.locale=t,this.notify())},enumerable:!0,configurable:!0}),t.prototype.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rr(e,t,this.localeId)},t.prototype.toString=function(e,t,n){return pr(e,t,n||this.localeId)},t.prototype.formatDate=function(e,t,n){return ar(e,t,n||this.localeId)},t.prototype.parseDate=function(e,t,n){return lr(e,t,n||this.localeId)},t.prototype.parseNumber=function(e,t,n){return dr(e,n||this.localeId,t)},t.prototype.formatNumber=function(e,t,n){return sr(e,t,n||this.localeId)},t.prototype.dateFieldName=function(e,t){return ir(e,t||this.localeId)},t.prototype.dateFormatNames=function(e,t){return nr(t||this.localeId,e)},t.prototype.splitDateFormat=function(e,t){return ur(e,t||this.localeId)},t.prototype.numberSymbols=function(e){return cr(e||this.localeId)},t.prototype.firstDay=function(e){return or(e||this.localeId)},t.prototype.weekendRange=function(e){return hr(e||this.localeId)},t=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(0,Object(o.Inject)(o.LOCALE_ID)),Object(i.__metadata)("design:paramtypes",[String])],t)}(br),yr=function(e){return!isNaN(e-parseFloat(e))},vr=[function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return void 0===t&&(t=""),(e=this.normalize(e))?this.intlService.formatDate(e,t,n):e},e.prototype.normalize=function(e){return e&&"string"==typeof e?e=this.intlService.parseDate(e):e&&yr(e)&&(e=new Date(parseFloat(e))),e},e=Object(i.__decorate)([Object(o.Pipe)({name:"kendoDate"}),Object(i.__metadata)("design:paramtypes",[br])],e)}(),function(){function e(e){this.intlService=e}return e.prototype.transform=function(e,t,n){return"string"==typeof e&&(e=this.intlService.parseNumber(e)),null!=e?this.intlService.formatNumber(e,t,n):e},e=Object(i.__decorate)([Object(o.Pipe)({name:"kendoNumber"}),Object(i.__metadata)("design:paramtypes",[br])],e)}()],_r=(function(){function e(){}e=Object(i.__decorate)([Object(o.NgModule)({declarations:[vr],exports:[vr]})],e)}(),"bottom"),Or="center",jr="middle",Cr="left",kr="right",wr="top",Sr=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.margin;void 0===r&&(r={});var a=n.horizontal,s=n.vertical,c=o.horizontal,l=o.vertical,d=r.horizontal||0,u=r.vertical||0,p=t.top,h=t.left;return s===_r&&(p+=t.height),s!==Or&&s!==jr||(p+=Math.round(t.height/2)),l===_r&&(p-=i.height,u*=-1),l!==Or&&l!==jr||(p-=Math.round(i.height/2),u*=-1),a===kr&&(h+=t.width),a!==Or&&a!==jr||(h+=Math.round(t.width/2)),c===kr&&(h-=i.width,d*=-1),c!==Or&&c!==jr||(h-=Math.round(i.width/2),d*=-1),{top:p+u,left:h+d}};function Er(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function xr(e){return e.ownerDocument||e.document||e}var Ir=function(e){return xr(e).defaultView},Dr=function(e){return xr(e).documentElement},Pr=0;function Tr(){if(!Pr&&"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),Pr=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return Pr}function Mr(e){var t=Ir(e),n=Dr(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=Tr()),i}var Ar=function(e){if(!e.getBoundingClientRect){var t=Mr(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}},Nr=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||Dr(e)},Vr=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}},Br=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function Rr(e){var t=Dr(e),n=Ir(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var Fr=function(e){return e===(e.ownerDocument||{}).body?Rr(e):{x:e.scrollLeft,y:e.scrollTop}};var zr=function(e,t){var n=Ir(e),i=n.getComputedStyle(e),o=Vr(e),r=t||Nr(e),a=e.ownerDocument,s=r!==a.body&&r!==a.documentElement,c={top:0,left:0};if("fixed"!==i.position&&s){var l=n.getComputedStyle(r);(c=Vr(r)).top+=parseInt(l.borderTopWidth,10),c.left+=parseInt(l.borderLeftWidth,10)}return{top:o.top-c.top,left:o.left-c.left,height:o.height,width:o.width}},Hr=function(e,t){return e?Fr(e):function(e){var t=Nr(e);return t?Fr(t):{x:0,y:0}}(t)},Lr=function(e,t,n){void 0===n&&(n=1);var i=t?Nr(t):null,o=zr(e,i),r=o.top,a=o.left,s=o.height,c=o.width,l=Hr(i,e),d=l.x,u=l.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:r+u*h,left:a+d*h,height:s,width:c}};function Kr(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var Gr="fit",Zr="flip",Ur=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},Wr=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,a=e.elementAlignPoint,s=0,c=2*e.margin;if(a!==r&&!(a===Or||a===jr)&&!(r===Or||r===jr)){var l=r===wr||r===Cr;t<0&&l?t+(s=n+i+c)+n>o&&(s=0):t>=0&&!l&&(t+n>o&&(s+=-(i+n+c)),t+s<0&&(s=0))}return s},qr=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,a=e.viewPort,s=e.margin;void 0===s&&(s={});var c=i.top,l=i.left,d=i.height,u=i.width,p=a.height,h=a.width,f=s.horizontal||0,m=s.vertical||0,b=0,g=0,y=r.vertical===Gr,v=r.horizontal===Gr,_=r.vertical===Zr,O=r.horizontal===Zr;y&&(g+=Ur(c,d,p)),v&&(b+=Ur(l,u,h)),_&&(g+=Wr({margin:m,offset:c,size:d,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),O&&(b+=Wr({margin:f,offset:l,size:u,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var j=_&&0!==g,C=O&&0!==b,k=y&&0!==g,w=v&&0!==b;return{flipped:C||j,fitted:k||w,flip:{horizontal:C,vertical:j},fit:{horizontal:w,vertical:k},offset:{left:b,top:g}}},$r=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},Xr=function(e,t){for(var n,i,o=Br(e),r=t;r&&(n=$r(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i};Yr=function(e){if(!ea())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},Qr=!1;var Yr,Jr,Qr,ea=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},ta=n(13),na=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},ia=function(){return"undefined"!=typeof window},oa=/auto|scroll/,ra=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 aa=function(e){var t,n=!1;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return n||(t=e.apply(void 0,i),n=!0),t}}((function(){if(!Object(In.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})),sa=function(e,t){return e&&1!==t?{height:e.height/t,left:e.left/t,top:e.top/t,width:e.width/t}:e},ca=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],la=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 Er(e,t)},e.prototype.align=function(e){return Sr(e)},e.prototype.boundingOffset=function(e){return Ar(this.nativeElement(e))},e.prototype.getFontStyles=function(e){var t=this.getWindow();if(!t||!e)return[];var n=t.getComputedStyle(this.nativeElement(e));return ca.map((function(e){return{key:e,value:n[e]}}))},e.prototype.getWindow=function(){return ia()?window:null},e.prototype.hasOffsetParent=function(e){return!!e&&!!this.nativeElement(e).offsetParent},e.prototype.offset=function(e){return e?Vr(this.nativeElement(e)):null},e.prototype.offsetAtPoint=function(e,t){if(!e)return null;var n=this.nativeElement(e),i=n.style,o=i.left,r=i.top,a=i.transition;n.style.transition="none",n.style.left=t.left+"px",n.style.top=t.top+"px";var s=Vr(n);return n.style.left=o,n.style.top=r,n.offsetHeight,n.style.transition=a,s},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?Lr(this.nativeElement(e),this.nativeElement(t),n):null},e.prototype.removeScroll=function(e,t){return Kr(e,t)},e.prototype.restrictToView=function(e){return qr(e)},e.prototype.scrollPosition=function(e){return Rr(this.nativeElement(e))},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!Object(In.isDocumentAvailable)()||!ia())return t;for(var n=e.parentElement;n;)(oa.test(ra(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?Vr(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||!aa())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 Mr(this.nativeElement(e))},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!Object(In.isDocumentAvailable)()||!ia())return null;var n=Xr(e,t);if(!n)return null;var i=[e].concat(Br(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(this.nativeElement(e),this.nativeElement(t))},e.prototype.zoomLevel=function(){return Object(In.isDocumentAvailable)()&&ia()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),da=new o.InjectionToken("Popup Document Scale"),ua=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,i=e.anchorAlign,o=e.elementAlign,r=e.margin,a=e.offset,s=e.positionMode,c=this.scale||1,l="fixed"===s||!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,a,c):this.relativeRect(t,n,a,c),d=sa(this._dom.offset(n),c);return this._dom.align({anchorAlign:i,anchorRect:l,elementAlign:o,elementRect:d,margin:r})},e.prototype.absoluteRect=function(e,t,n,i){var o=this.elementScrollPosition(e,t),r=na(this._dom.offset(e),n),a=2*i,s=this._dom.stackingElementScroll(t);1!==i&&s&&(s.x/=a,s.y/=a);var c=this._dom.stackingElementOffset(t);return 1!==i&&c&&(c.left/=a,c.top/=a),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}(sa(r,i),c),s),o)},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n,i){var o=na(this._dom.position(e,t,i),n);return sa(o,i)},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(da)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[la,Number])],e)}(),pa=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,i=e.element,o=e.anchorAlign,r=e.elementAlign,a=e.collisions,s=e.margin,c=this._dom,l=this.scale||1,d=c.offsetAtPoint(i,n),u=sa(d,l),p=sa(c.offset(t),l),h=na(p,n),f=e.viewPort||c.windowViewPort(i);f.width=f.width/l,f.height=f.height/l;var m=c.restrictToView({anchorAlign:o,anchorRect:h,collisions:a,elementAlign:r,elementRect:u,margin:s,viewPort:f}),b=c.addOffset(n,m.offset);return{flip:m.flip,flipped:m.flipped,offset:b}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(1,Object(o.Inject)(da)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[la,Number])],e)}(),ha=function(){function e(e,t){this._dom=e,this._zone=t}return e.prototype.subscribe=function(e){var t=this;Object(In.isDocumentAvailable)()&&this._zone.runOutsideAngular((function(){t.subscription=Object(we.fromEvent)(t._dom.getWindow(),"resize").pipe(Object(Se.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(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[la,o.NgZone])],e)}(),fa=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(In.isDocumentAvailable)()&&this.element){var n=this._dom.nativeElement(this.element),i=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular((function(){var o=i.map((function(e){return Object(we.fromEvent)(e,"scroll").pipe(Object(Se.auditTime)(1e3/60))}));t.subscription=we.merge.apply(void 0,o).subscribe((function(o){var r=o.target,a=i.filter((function(e){return e===r})).length>0,s=r===document,c=r===window;(a||s||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),i=this._dom.boundingOffset(t);return!(1<i.top-n.bottom)&&(!(1<n.top-i.bottom)&&(!(1<n.left-i.right)&&!(1<i.left-n.right)))},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[la,o.NgZone])],e)}(),ma={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)"}}}},ba=function(){function e(e){this.animationBuilder=e,this.start=new o.EventEmitter,this.end=new o.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 i=t.type||"slide",r=ma[i];if(r){var a=r(this.getDirection(n,t));this.playStates(e,a,t)}else if(Object(o.isDevMode)())throw new Error('Unsupported animation type: "'+i+'". The supported types are slide, expand, fade and zoom.')}},e.prototype.ngOnDestroy=function(){this.stopPlayer()},e.prototype.playStates=function(e,t,n){var i=this;this.stopPlayer();var o=n.duration||100,r=this.animationBuilder.build([Object(ta.style)(t.start),Object(ta.animate)(o+"ms ease-in",Object(ta.style)(t.end))]),a=this.player=r.create(e);a.onDone((function(){i.end.emit(),i.stopPlayer()})),this.start.emit(),a.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(i.__decorate)([Object(o.Injectable)(),Object(i.__metadata)("design:paramtypes",[ta.AnimationBuilder])],e)}(),ga={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1641276691,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"},ya={left:-1e4,top:0},va=function(){function e(e,t,n,i,r,a,s,c,l){this.container=e,this._alignService=t,this.domService=n,this._positionService=i,this._resizeService=r,this._scrollableService=a,this.animationService=s,this._renderer=c,this._zone=l,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=ya,this.anchorViewportLeave=new o.EventEmitter,this.close=new o.EventEmitter,this.open=new o.EventEmitter,this.positionChange=new o.EventEmitter,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,Object(Dn.validatePackage)(ga),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=ya,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(we.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(In.isDocumentAvailable)()){var t,n,i,o,r,a,s=this.position(),c=s.flip,l=s.offset;(!this.currentOffset||(t=this.currentOffset,n=l,i=t.left,o=t.top,r=n.left,a=n.top,Math.abs(i-r)>=1||Math.abs(o-a)>=1))&&(this.currentOffset=l,Object(In.hasObservers)(this.positionChange)&&this._zone.run((function(){return e.positionChange.emit({offset:l,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(In.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(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"anchor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"anchorAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"collision",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupAlign",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"copyAnchorStyles",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"popupClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"positionMode",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"offset",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"margin",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"anchorViewportLeave",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"positionChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"contentContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)(In.ResizeSensorComponent,{static:!0}),Object(i.__metadata)("design:type",In.ResizeSensorComponent)],e.prototype,"resizeSensor",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendo-popup",providers:[ua,ba,la,pa,ha,fa],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(i.__metadata)("design:paramtypes",[o.ElementRef,ua,la,pa,ha,fa,ba,o.Renderer2,o.NgZone])],e)}(),_a=new o.InjectionToken("Popup Container"),Oa=function(){function e(e,t,n,i){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n,this.container=i}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,i=t.nodes,o=this.appendPopup(i,e.appendTo),r=o.instance;this.projectComponentInputs(o,e),o.changeDetectorRef.detectChanges(),n&&n.changeDetectorRef.detectChanges();var a=this.getComponentRootNode(o);return{close:function(){var e;n&&n.destroy(),o.destroy(),(e=a)&&e.parentNode&&e.parentNode.removeChild(e)},content:n,popup:o,popupAnchorViewportLeave:r.anchorViewportLeave,popupClose:r.close,popupElement:a,popupOpen:r.open,popupPositionChange:r.positionChange}},e.prototype.appendPopup=function(e,t){var n=this.createComponent(va,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 i=this.getComponentFactory(e);if(n)return n.createComponent(i,void 0,this.injector,t);var o=i.create(this.injector,t);return this.applicationRef.attachView(o.hostView),o},e.prototype.projectComponentInputs=function(e,t){return Object.getOwnPropertyNames(t).filter((function(e){return"content"!==e||t.content instanceof o.TemplateRef})).map((function(n){e.instance[n]=t[n]})),e},e.prototype.contentFrom=function(e){if(!e||e instanceof o.TemplateRef)return{component:null,nodes:[[]]};var t=this.createComponent(e);return{component:t,nodes:[t?[t.location.nativeElement]:[]]}},e=Object(i.__decorate)([Object(o.Injectable)(),Object(i.__param)(3,Object(o.Inject)(_a)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.ApplicationRef,o.ComponentFactoryResolver,o.Injector,o.ElementRef])],e)}(),ja=[va],Ca=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[ja],entryComponents:[ja],exports:[ja],imports:[r.CommonModule,In.ResizeSensorModule],providers:[Oa]})],e)}(),ka=function(){};var wa=null,Sa={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},Ea={get browser(){return"undefined"==typeof window||wa?wa:wa=function(e){var t={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},n={};for(var i in t)if(t.hasOwnProperty(i)){var o=e.match(t[i]);if(o){n[i]=!0,n[o[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,n.version=parseInt(document.documentMode||o[2],10);break}}return n}(window.navigator.userAgent)}}.browser,xa=function(e){var t=Object.keys(Sa);t.push("transparent");var n=new RegExp("^("+t.join("|")+")(\\W|$)","i");return xa=function(e){return n.exec(e)},n.exec(e)},Ia=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){return this},t.prototype.toRGB=function(){return this},t.prototype.toHex=function(e){return this.toBytes().toHex(e)},t.prototype.toBytes=function(){return this},t.prototype.toCss=function(e){return"#"+this.toHex(e)},t.prototype.toCssRgba=function(){var e=this.toBytes();return"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},t.prototype.toDisplay=function(){return Ea.msie&&Ea.version<9?this.toCss():this.toCssRgba()},t.prototype.equals=function(e){return e===this||null!==e&&this.toCssRgba()===Ba(e).toCssRgba()},t.prototype.diff=function(e){if(null===e)return NaN;var t=this.toBytes(),n=e.toBytes();return Math.sqrt(Math.pow(.3*(t.r-n.r),2)+Math.pow(.59*(t.g-n.g),2)+Math.pow(.11*(t.b-n.b),2))},t.prototype.clone=function(){var e=this.toBytes();return e===this&&(e=new Pa(e.r,e.g,e.b,e.a)),e},t}(ka),Da=function(e){function t(t,n,i,o){e.call(this),this.r=t,this.g=n,this.b=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHSV=function(){var e,t,n=this.r,i=this.g,o=this.b,r=Math.min(n,i,o),a=Math.max(n,i,o),s=a-r,c=a;return 0===s?new Ma(0,0,c,this.a):(0!==a?(t=s/a,e=n===a?(i-o)/s:i===a?2+(o-n)/s:4+(n-i)/s,(e*=60)<0&&(e+=360)):(t=0,e=-1),new Ma(e,t,c,this.a))},t.prototype.toHSL=function(){var e,t,n=this.r,i=this.g,o=this.b,r=Math.max(n,i,o),a=Math.min(n,i,o),s=(r+a)/2;if(r===a)e=t=0;else{var c=r-a;switch(t=s>.5?c/(2-r-a):c/(r+a),r){case n:e=(i-o)/c+(i<o?6:0);break;case i:e=(o-n)/c+2;break;case o:e=(n-i)/c+4}}return new Aa(60*e,100*t,100*s,this.a)},t.prototype.toBytes=function(){return new Pa(255*this.r,255*this.g,255*this.b,this.a)},t}(Ia),Pa=function(e){function t(t,n,i,o){e.call(this,Math.round(t),Math.round(n),Math.round(i),o)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){return new e(this.r/255,this.g/255,this.b/255,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toHex=function(e){var t=Ta(this.r,2)+Ta(this.g,2)+Ta(this.b,2);return e&&e.alpha&&(t+=Ta(Math.round(255*this.a),2)),t},t.prototype.toBytes=function(){return this},t}(Da);function Ta(e,t,n){void 0===n&&(n="0");for(var i=e.toString(16);t>i.length;)i=n+i;return i}var Ma=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.v=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h,o=this.s,r=this.v;if(0===o)e=t=n=r;else{i/=60;var a=Math.floor(i),s=i-a,c=r*(1-o),l=r*(1-o*s),d=r*(1-o*(1-s));switch(a){case 0:e=r,t=d,n=c;break;case 1:e=l,t=r,n=c;break;case 2:e=c,t=r,n=d;break;case 3:e=c,t=l,n=r;break;case 4:e=d,t=c,n=r;break;default:e=r,t=c,n=l}}return new Da(e,t,n,this.a)},t.prototype.toHSL=function(){return this.toRGB().toHSL()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(Ia),Aa=function(e){function t(t,n,i,o){e.call(this),this.h=t,this.s=n,this.l=i,this.a=o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toRGB=function(){var e,t,n,i=this.h/360,o=this.s/100,r=this.l/100;if(0===o)e=t=n=r;else{var a=r<.5?r*(1+o):r+o-r*o,s=2*r-a;e=Na(s,a,i+1/3),t=Na(s,a,i),n=Na(s,a,i-1/3)}return new Da(e,t,n,this.a)},t.prototype.toHSV=function(){return this.toRGB().toHSV()},t.prototype.toBytes=function(){return this.toRGB().toBytes()},t}(Ia);function Na(e,t,n){var i=n;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function Va(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function Ba(e,t){var n,i;if(null==e||"none"===e)return null;if(e instanceof Ia)return e;var o=e.toLowerCase();if(n=xa(o))return(o="transparent"===n[1]?new Da(1,1,1,0):Ba(Sa[n[1]],t)).match=[n[1]],o;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new Pa(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(o))?i=new Pa(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(o))?i=new Pa(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),Va(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(o))?i=new Pa(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),Va(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(o))?i=new Pa(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(o))?i=new Pa(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(o))?i=new Da(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(o))&&(i=new Da(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),i)i.match=n;else if(!t)throw new Error("Cannot parse color: "+o);return i}var Ra=function(e){function t(n){var i=this;if(e.call(this),1===arguments.length)for(var o=t.formats,r=this.resolveColor(n),a=0;a<o.length;a++){var s=o[a].re,c=o[a].process,l=s.exec(r);if(l){var d=c(l);i.r=d[0],i.g=d[1],i.b=d[2]}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toHex=function(){var e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),i=this.b.toString(16);return"#"+e(t)+e(n)+e(i)},t.prototype.resolveColor=function(e){var n=e||"black";return"#"===n.charAt(0)&&(n=n.substr(1,6)),n=(n=n.replace(/ /g,"")).toLowerCase(),n=t.namedColors[n]||n},t.prototype.normalizeByte=function(e){return e<0||isNaN(e)?0:e>255?255:e},t.prototype.padDigit=function(e){return 1===e.length?"0"+e:e},t.prototype.brightness=function(e){var t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this},t.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},t.prototype.isDark=function(){return this.percBrightness()<180},t.fromBytes=function(e,t,n,i){return new Pa(e,t,n,null!=i?i:1)},t.fromRGB=function(e,t,n,i){return new Da(e,t,n,null!=i?i:1)},t.fromHSV=function(e,t,n,i){return new Ma(e,t,n,null!=i?i:1)},t.fromHSL=function(e,t,n,i){return new Aa(e,t,n,null!=i?i:1)},t}(ka);Ra.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],Ra.namedColors=Sa;var Fa=Ra,za=function(e){return null!=e},Ha=function(e,t){return e===t||null===e&&void 0===t||void 0===e&&null===t},La=function(e){return e&&(!e.touched||e.control&&"blur"===e.control.updateOn)},Ka=function(e,t,n){return!za(e)||isNaN(e)||e<=t?t:e>=n?n:e},Ga={small:"sm",medium:"md",large:"lg"},Za={small:"sm",medium:"md",large:"lg",full:"full"},Ua=function(e,t,n,i){switch(t){case"size":return{toRemove:"k-"+e+"-"+Ga[n],toAdd:i?"k-"+e+"-"+Ga[i]:null};case"rounded":return{toRemove:"k-rounded-"+Za[n],toAdd:i?"k-rounded-"+Za[i]:null};case"fillMode":return{toRemove:"k-"+e+"-"+n,toAdd:i?"k-"+e+"-"+i:null}}},Wa=function(e){return Math.min(e,20)},qa=function(e){return(String(e).split(".")[1]||"").length},$a=function(e,t){return Math.max(qa(e),qa(t))},Xa=function(e,t){var n=Wa(t);return parseFloat(e.toFixed(n))},Ya=function(e,t){var n=$a(e,t);return Xa(e+t,n)},Ja=function(e,t){return Ya(e,-t)},Qa=function(e,t){var n=qa(e)+qa(t);return Xa(e*t,n)},es=function(e,t){if(0===t)return NaN;var n=$a(e,t),i=Math.pow(10,n);return i*e/(i*t)},ts=function(e,t){return Math.abs(Ja(e,Qa(t,Math.floor(es(e,t)))))},ns=function(e){return(e.max-e.min)/e.smallStep*e.fixedTickWidth},is=function(e,t,n){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=1),n<=0)throw new Error("Invalid argument: smallStep must be a positive number");var i=Math.abs(Ja(t,e)),o=Math.floor(es(i,n));return Ya(o,1)},os=function(e){var t=e.trackWidth,n=e.min,i=e.max,o=e.reverse,r=e.value,a=t/Math.abs(i-n),s=za(r)?a*(r-n):n;return o&&(s=t-s),Math.floor(s)},rs=function(e,t,n){var i=t.max,o=t.min,r=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s,c=n&&a?Qa(r,a):r,l=Ja(e,o),d=ts(l,c);return s=Ja(l,0===d?c:d),us(Ya(s,o),o,i)},as=function(e,t,n){var i=t.max,o=t.min,r=t.smallStep,a=t.largeStep;void 0===n&&(n=!1);var s=n&&a?Qa(r,a):r,c=Ja(e,o),l=ts(c,s),d=Ya(Ja(c,l),s);return us(Ya(d,o),o,i)},ss=function(e){return e.id.indexOf("k-start-handle")>-1},cs=function(e,t,n){return n>e?e:n<t?t:n},ls=function(e,t,n){return n?[cs(e,t,n[0]),cs(e,t,n[1])]:[t,t]},ds=function(e){return e},us=function(e,t,n){return Math.max(Math.min(e,n),t)},ps=function(e,t,n){var i,o,r=n.min,a=n.max,s=n.vertical,c=n.rtl,l=(i=t.getBoundingClientRect(),o=document.documentElement,{left:i.left+(window.pageXOffset||o.scrollLeft)-(o.clientLeft||0),top:i.top+(window.pageYOffset||o.scrollTop)-(o.clientTop||0)}),d=(s?e.pageY-l.top:e.pageX-l.left)*((a-r)/(s?t.clientHeight:t.clientWidth)),u=c||s?a-d:r+d,p=qa(n.smallStep);return function(e,t){var n=t.smallStep,i=t.min,o=t.max,r=us(e,i,o);if(e!==r)return r;var a=rs(e,t),s=as(e,t);return(e-i)%n==0?e:s-e<=(s-a)/2?s:a}(u=Xa(u,p+1),n)},hs=function(e){return e.className.indexOf("k-button-increase")>=0||e.className.indexOf("k-button-decrease")>=0},fs=function(e){return as(e.value,e)},ms=function(e){return rs(e.value,e)},bs=function(e){return as(e.value,e,!0)},gs=function(e){return rs(e.value,e,!0)},ys=function(e){if(o.isDevMode&&e&&e[0]>e[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")},vs=function(){function e(e,t,n,i){this.props=e,this.wrapper=t,this.track=n,this.renderer=i,this.props=e,this.wrapper=t,this.track=n,this.tickSizes=this.getTickSizes()}return e.prototype.resizeTrack=function(){var e=this.props.vertical?"height":"width",t=this.props.vertical?"width":"height",n=this.trackWidth();this.track.parentElement.style[e]=n+"px",this.track.parentElement.style[t]=""},e.prototype.resizeTicks=function(e,t){var n=this,i=this.props.vertical?"height":"width";t.slice().map((function(e,t){return e.style[i]=n.tickSizes[t]+"px"})),this.props.vertical&&this.adjustPadding(e)},e.prototype.resizeWrapper=function(){var e=this.props.vertical?"height":"width",t=ns(this.props),n=this.wrapper.parentElement;t&&(n.style[e]="auto")},e.prototype.trackWidth=function(){return this.props.fixedTickWidth?ns(this.props):this.elementSize(this.track.parentElement)},e.prototype.getTickSizes=function(){for(var e=this.props,t=e.min,n=e.max,i=e.smallStep,o=is(t,n,i),r=this.trackWidth(),a=r/Ja(n,t),s=[],c=0,l=0,d=0;d<o;d++){l=+(l+=0===d||d===o-1?i/2*a:i*a).toFixed(2)-.01;var u=Math.round(l-c);s.push(u),c+=u}return c>=r&&(s[s.length-1]-=1),s},e.prototype.adjustPadding=function(e){var t=this.tickSizes.reduce((function(e,t){return e+t}),0),n=this.trackWidth()-t;if(0!==n){var i=n+this.elementOffset(this.track);e.style.paddingTop=i+"px"}},e.prototype.elementOffset=function(e){var t=this.props.vertical,n=getComputedStyle(e);return parseInt(t?n.bottom:n.left,10)},e.prototype.elementSize=function(e){return this.props.vertical?e.clientHeight:e.clientWidth},e}(),_s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){var t=this.props,n=t.max,i=t.min,o=t.reverse,r=t.vertical?"bottom":"left",a=this.trackWidth(),s=cs(n,i,this.props.value);this.handlePosition=os({min:i,max:n,reverse:o,value:s,trackWidth:a}),this.renderer.setStyle(e,r,this.handlePosition+"px")},t.prototype.positionSelection=function(e){var t=this.props,n=t.reverse,i=t.vertical?"height":"width",o=this.handlePosition;n&&(o=this.trackWidth()-o),this.renderer.setStyle(e,i,o+"px")},t}(vs),Os=function(e,t){return Boolean((n=e.className,String(n).trim().split(" ")).find((function(e){return e===t})));var n};function js(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e&&e.nativeElement)return e.nativeElement[t].apply(e.nativeElement,n)}var Cs=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},ks={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642572427,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"},ws=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoSliderLabelTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Ss=function(){function e(e,t,n,i,r,a){var s=this;this.localizationService=e,this.injector=t,this.renderer=n,this.ngZone=i,this.changeDetector=r,this.hostElement=a,this.title=ds,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new we.Subscription,this.ifEnabled=function(e,t){s.isDisabled||e.call(s,t)},Object(Dn.validatePackage)(ks),this.direction=e.rtl?"rtl":"ltr"}return Object.defineProperty(e.prototype,"horizontalClass",{get:function(){return!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalClass",{get:function(){return this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.ngOnInit=function(){var e=this;this.subscriptions.add(this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr",e.sizeComponent()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Ve,null)},Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},Object.defineProperty(e.prototype,"reverse",{get:function(){return this.localizationService.rtl&&!this.vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e,t=this.reverse;return(e={})[In.Keys.ArrowLeft]=t?fs:ms,e[In.Keys.ArrowRight]=t?ms:fs,e[In.Keys.ArrowDown]=ms,e[In.Keys.ArrowUp]=fs,e[In.Keys.PageUp]=bs,e[In.Keys.PageDown]=gs,e[In.Keys.Home]=function(e){return e.min},e[In.Keys.End]=function(e){return e.max},e},enumerable:!0,configurable:!0}),e.prototype.resetStyles=function(e){var t=this;e.forEach((function(e){e&&(t.vertical?(t.renderer.removeStyle(e,"width"),t.renderer.removeStyle(e,"left"),t.renderer.removeStyle(e,"right")):(t.renderer.removeStyle(e,"height"),t.renderer.removeStyle(e,"bottom")),t.renderer.removeStyle(e,"padding-top"))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"tickPlacement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"smallStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"fixedTickWidth",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-horizontal"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"horizontalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider-vertical"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"verticalClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-slider"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"sliderClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-widget"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"widgetClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ViewChild)("wrap",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"track",void 0),Object(i.__decorate)([Object(o.ViewChild)("sliderSelection",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"sliderSelection",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"ticksContainer",void 0),Object(i.__decorate)([Object(o.ViewChild)("ticks",{static:!1}),Object(i.__metadata)("design:type",Object)],e.prototype,"ticks",void 0),Object(i.__decorate)([Object(o.ContentChild)(ws,{static:!1}),Object(i.__metadata)("design:type",ws)],e.prototype,"labelTemplate",void 0),e}(),Es=function(e){function t(t,n,i,o,r,a){var s=e.call(this,t,n,i,o,r,a)||this;return s.localization=t,s.injector=n,s.renderer=i,s.ngZone=o,s.changeDetector=r,s.hostElement=a,s.focusableId="k-"+Object(In.guid)(),s.animate=!0,s.showButtons=!0,s.value=s.min,s.focusChangedProgrammatically=!1,s.onWrapClick=function(e){var t=e.target;if(!s.isDisabled&&!hs(t)&&!hs(t.parentNode)){var n=ps(e,s.track.nativeElement,s.getProps());s.changeValue(n)}js(s.draghandle,"focus")},s.onKeyDown=function(e){var t=s.getProps(),n=t.max,i=t.min,o=s.keyBinding[e.keyCode];if(!s.isDisabled&&o){var r=o(t);s.changeValue(cs(n,i,r)),e.preventDefault()}},s.ngChange=function(e){},s.ngTouched=function(){},s.decreaseValue=function(){s.changeValue(rs(s.value,s.getProps()))},s.increaseValue=function(){s.changeValue(as(s.value,s.getProps()))},s.handleBlur=function(){s.changeDetector.markForCheck(),s.focused=!1,(Object(In.hasObservers)(s.onBlur)||La(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.focusChangedProgrammatically||s.onBlur.emit()}))},s}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return za(this.value)?this.value.toString():""},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.disabled||(this.focusChangedProgrammatically=!0,js(this.draghandle,"focus"),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,js(this.draghandle,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnChanges=function(e){var t=this;Object(In.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&this.ngZone.onStable.asObservable().pipe(Object(Se.take)(1)).subscribe((function(){t.sizeComponent(!1)}))},t.prototype.ngAfterViewInit=function(){var e=this;Object(In.isDocumentAvailable)()&&(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,(function(){return e.increaseValue()})),this.setValueChangeInterval(this.decreaseButton.nativeElement,(function(){return e.decreaseValue()}))),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent(!1)})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},Object.defineProperty(t.prototype,"incrementMessage",{get:function(){return this.incrementTitle||this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementMessage",{get:function(){return this.decrementTitle||this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragHandleMessage",{get:function(){return this.dragHandleTitle||this.localizationService.get("dragHandle")},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.onHandleDrag=function(e){this.dragging=!0,this.changeValue(ps(e,this.track.nativeElement,this.getProps()))},t.prototype.onHandleRelease=function(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")},t.prototype.writeValue=function(e){this.changeDetector.markForCheck(),this.value=e,this.sizeComponent(this.animate)},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t=this;Ha(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.sizeComponent(t.animate),t.changeDetector.markForCheck()}))},t.prototype.sizeComponent=function(e){if(Object(In.isDocumentAvailable)()){var t=this.wrapper.nativeElement,n=this.track.nativeElement,i=this.sliderSelection.nativeElement,o=this.draghandle.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;e||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new _s(a,t,n,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(o),s.positionSelection(i),e||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e&&this.sliderSelection&&this.draghandle){var t=this.sliderSelection.nativeElement,n=this.draghandle.nativeElement;e?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e}},enumerable:!0,configurable:!0}),t.prototype.setValueChangeInterval=function(e,t){var n=this;this.ngZone.runOutsideAngular((function(){var i=Object(we.fromEvent)(e,"mousedown"),o=Object(we.fromEvent)(e,"mouseup"),r=Object(we.fromEvent)(e,"mouseout"),a=i.pipe(Object(Se.filter)((function(e){return 0===e.button&&!n.isDisabled})),Object(Se.concatMap)((function(){return Object(we.interval)(150).pipe(Object(Se.startWith)(-1),Object(Se.takeUntil)(Object(we.merge)(o,r)))}))).subscribe((function(){n.isFocused||js(n.draghandle,"focus"),t()}));n.subscriptions.add(a)}))},t.prototype.getProps=function(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:cs(this.max,this.min,this.value),vertical:this.vertical}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandle.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===In.Keys.Tab})))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"incrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"animate",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrementTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],t.prototype,"showButtons",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.ViewChild)("draghandle",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("decreaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"decreaseButton",void 0),Object(i.__decorate)([Object(o.ViewChild)("increaseButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"increaseButton",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSlider",providers:[xn.LocalizationService,{provide:xn.L10N_PREFIX,useValue:"kendo.slider"},{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-increment="kendo.slider.increment|The title of the **Increase** button of the Slider."\n increment="increment"\n i18n-decrement="kendo.slider.decrement|The title of the **Decrease** button of the Slider."\n decrement="decrement"\n i18n-dragHandle="kendo.slider.dragHandle|The title of the drag handle of the Slider."\n dragHandle="Drag"\n >\n <div class="k-slider-wrap" #wrap\n [class.k-slider-buttons]="showButtons"\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <button *ngIf="showButtons" type="button" #decreaseButton\n class="k-button-decrease k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="decrementMessage"\n [attr.tabindex]="-1"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-w]="!vertical"\n [class.k-i-arrow-s]="vertical">\n </span>\n </button>\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandle\n role="slider"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="currentValue"\n [attr.aria-valuetext]="currentValue"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="dragHandleMessage"\n [attr.tabindex]="disabled ? \'-1\' : tabIndex"\n [id]="focusableId"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress, $event)"\n (kendoDrag)="ifEnabled(onHandleDrag, $event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <button *ngIf="showButtons" type="button" #increaseButton\n class="k-button-increase k-button k-button-md k-rounded-full k-button-rectangle k-button-solid k-button-solid-base k-icon-button"\n [title]="incrementMessage"\n (click)="$event.preventDefault()"\n [attr.tabindex]="-1"\n [attr.aria-label]="currentValue"\n role="presentation">\n <span class="k-button-icon k-icon"\n [class.k-i-arrow-e]="!vertical"\n [class.k-i-arrow-n]="vertical">\n </span>\n </button>\n <kendo-resize-sensor (resize)="sizeComponent(false)"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(Ss),xs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.positionHandle=function(e){if(e.id){var t=this.props,n=t.max,i=t.min,o=t.reverse,r=t.vertical?"bottom":"left",a=this.trackWidth(),s=ss(e)?ls(n,i,this.props.value)[0]:ls(n,i,this.props.value)[1];ss(e)?(this.startHandlePosition=os({min:i,max:n,reverse:o,value:s,trackWidth:a}),this.renderer.setStyle(e,r,this.startHandlePosition+"px")):(this.endHandlePosition=os({min:i,max:n,reverse:o,value:s,trackWidth:a}),this.renderer.setStyle(e,r,this.endHandlePosition+"px"))}},t.prototype.positionSelection=function(e,t){var n=this.props,i=n.reverse,o=n.vertical,r=o?"height":"width",a=o?"bottom":i?"right":"left",s=Math.abs(this.endHandlePosition-this.startHandlePosition),c=o?e.style.bottom:e.style.left;this.renderer.setStyle(t,r,s+"px"),this.renderer.setStyle(t,a,i?this.trackWidth()-parseFloat(c)+"px":parseFloat(c)+"px")},t}(vs),Is=function(e){function t(t,n,o,r,a,s){var c=e.call(this,t,n,o,r,a,s)||this;return c.localization=t,c.injector=n,c.renderer=o,c.ngZone=r,c.changeDetector=a,c.hostElement=s,c.startHandleId="k-start-handle-"+Object(In.guid)(),c.endHandleId="k-end-handle-"+Object(In.guid)(),c.focusableId=c.startHandleId,c.handleZIndex=0,c.activeHandle="startHandle",c.focusChangedProgrammatically=!1,c.onWrapClick=function(e){if(!c.isDisabled){c.value=c.value||[c.min,c.min];var t=ps(e,c.track.nativeElement,c.getProps()),n=void 0,i=n=c.value,o=i[0],r=i[1];t<=o?(n=[t,r],c.activeHandle="startHandle"):o<t&&t<r?t<(o+r)/2?(n=[t,r],c.activeHandle="startHandle"):(n=[o,t],c.activeHandle="endHandle"):t>=r&&(n=[o,t],c.activeHandle="endHandle"),js("startHandle"===c.activeHandle?c.draghandleStart:c.draghandleEnd,"focus"),c.changeValue(n)}},c.onKeyDown=function(e){c.value=c.value||[c.min,c.min];var t=c.getProps(),n=t.max,o=t.min,r=c.keyBinding[e.keyCode];if(!c.isDisabled&&r){c.renderer.setStyle(e.target,"zIndex",++c.handleZIndex);var a=ss(e.target),s=r(Object(i.__assign)({},t,{value:a?c.value[0]:c.value[1]}));a?s>c.value[1]&&(c.value[1]=s):s<c.value[0]&&(c.value[0]=s);var l=cs(n,o,s),d=a?[l,c.value[1]]:[c.value[0],l];c.changeValue(d),e.preventDefault()}},c.ngChange=function(e){},c.ngTouched=function(){},c.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,(Object(In.hasObservers)(c.onBlur)||La(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.focusChangedProgrammatically||c.onBlur.emit()}))},c}var n;return Object(i.__extends)(t,e),n=t,t.prototype.focus=function(){this.focusChangedProgrammatically=!0,js(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1},t.prototype.blur=function(){this.focusChangedProgrammatically=!0,js("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1},t.prototype.ngOnInit=function(){this.value||(this.value=[this.min,this.max]),e.prototype.ngOnInit.call(this)},t.prototype.ngOnChanges=function(e){var t=this;Object(In.anyChanged)(["value","fixedTickWidth","tickPlacement"],e,!0)&&(e.value&&e.value.currentValue&&ys(e.value.currentValue),this.ngZone.onStable.asObservable().pipe(Object(Se.take)(1)).subscribe((function(){t.sizeComponent()})))},t.prototype.ngAfterViewInit=function(){var e=this;Object(In.isDocumentAvailable)()&&(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe((function(){return e.sizeComponent()})),this.attachElementEventHandlers())},t.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},t.prototype.textFor=function(e){return this.localization.get(e)},Object.defineProperty(t.prototype,"valueText",{get:function(){return this.value?this.value[0]+" - "+this.value[1]:""},enumerable:!0,configurable:!0}),t.prototype.handleDragPress=function(e){e.originalEvent&&e.originalEvent.preventDefault();var t=e.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)},t.prototype.onHandleDrag=function(e){var t=this;this.value=this.value||[this.min,this.min];var n=e.originalEvent.target,i=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:i.left,y:i.top},this.dragging={value:!0,target:n};var o=e.pageX<this.lastHandlePosition.x,r=e.pageX>this.lastHandlePosition.x,a=e.pageY>this.lastHandlePosition.y,s=function(){return t.changeValue([ps(e,t.track.nativeElement,t.getProps()),t.value[1]])},c=function(){return t.changeValue([t.value[0],ps(e,t.track.nativeElement,t.getProps())])},l=function(){return t.changeValue([ps(e,t.track.nativeElement,t.getProps()),ps(e,t.track.nativeElement,t.getProps())])},d=ss(this.draggedHandle),u=this.vertical,p=!u,h=u&&a||(this.reverse?p&&r:p&&o);this.value[0]===this.value[1]?h?d?s():l():d?l():c():d?s():c()},t.prototype.onHandleRelease=function(e){this.dragging={value:!1,target:e.originalEvent.target},this.draggedHandle=void 0},t.prototype.writeValue=function(e){ys(e),this.value=e,this.sizeComponent()},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.changeValue=function(e){var t,n,i=this;this.value&&(t=this.value,n=e,Ha(t[0],n[0])&&Ha(t[1],n[1]))||this.ngZone.run((function(){i.value=e,i.ngChange(e),i.value&&i.valueChange.emit(e),i.sizeComponent()}))},t.prototype.sizeComponent=function(){if(Object(In.isDocumentAvailable)()){var e=this.wrapper.nativeElement,t=this.track.nativeElement,n=this.sliderSelection.nativeElement,i=this.draghandleStart.nativeElement,o=this.draghandleEnd.nativeElement,r=this.ticks?this.ticksContainer.nativeElement:null;this.resetStyles([t,n,i,o,r,this.hostElement.nativeElement]);var a=this.getProps(),s=new xs(a,e,t,this.renderer);s.resizeTrack(),this.ticks&&s.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map((function(e){return e.nativeElement}))),s.positionHandle(i),s.positionHandle(o),s.positionSelection(i,n),this.fixedTickWidth&&s.resizeWrapper()}},Object.defineProperty(t.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return!1},Object.defineProperty(t.prototype,"focused",{set:function(e){this.isFocused!==e&&this.hostElement&&(this.isFocused=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dragging",{set:function(e){if(this.isDragged!==e.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){var t=this.sliderSelection.nativeElement,n=e.target;e.value?(this.renderer.addClass(t,"k-pressed"),this.renderer.addClass(n,"k-pressed")):(this.renderer.removeClass(t,"k-pressed"),this.renderer.removeClass(n,"k-pressed")),this.isDragged=e.value}},enumerable:!0,configurable:!0}),t.prototype.getProps=function(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:ls(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}},t.prototype.attachElementEventHandlers=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.focusChangedProgrammatically||e.onFocus.emit(),e.focused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(n?(t.relatedTarget!==e.draghandleStart.nativeElement&&t.relatedTarget!==e.draghandleEnd.nativeElement&&e.handleBlur(),n=!1):i||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){i=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){i=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){n=e.keyCode===In.Keys.Tab})))}))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],t.prototype,"value",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleStart",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleStart",void 0),Object(i.__decorate)([Object(o.ViewChild)("draghandleEnd",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],t.prototype,"draghandleEnd",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoRangeSlider",providers:[xn.LocalizationService,{provide:xn.L10N_PREFIX,useValue:"kendo.rangeslider"},{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return n}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider",template:'\n <ng-container kendoSliderLocalizedMessages\n i18n-dragHandleStart="kendo.rangeslider.dragHandleStart|The title of the **Start** drag handle of the Slider."\n dragHandleStart="Drag"\n i18n-dragHandleEnd="kendo.rangeslider.dragHandleEnd|The title of the **End** drag handle of the Slider."\n dragHandleEnd="Drag"\n >\n\n <div class="k-slider-wrap" #wrap\n [class.k-slider-topleft]="tickPlacement === \'before\'"\n [class.k-slider-bottomright]="tickPlacement === \'after\'"\n [kendoEventsOutsideAngular]="{ click: onWrapClick, keydown: onKeyDown }"\n >\n <div class="k-slider-track-wrap">\n <ul kendoSliderTicks\n #ticks\n *ngIf="tickPlacement !== \'none\'"\n [tickTitle]="title"\n [vertical]="vertical"\n [step]="smallStep"\n [largeStep]="largeStep"\n [min]="min"\n [max]="max"\n [labelTemplate]="labelTemplate?.templateRef"\n [attr.aria-hidden]="true"\n >\n </ul>\n <div #track class="k-slider-track">\n <div #sliderSelection class="k-slider-selection">\n </div>\n <a #draghandleStart\n role="slider"\n [id]="startHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[0] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleStart\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n <a #draghandleEnd\n role="slider"\n [id]="endHandleId"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value ? value[1] : null"\n [attr.aria-valuetext]="valueText"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n [attr.aria-orientation]="vertical ? \'vertical\' : \'horizontal\'"\n [style.touch-action]="isDisabled ? \'\' : \'none\'"\n class="k-draghandle"\n [title]="textFor(\'dragHandleEnd\')"\n kendoDraggable\n (kendoPress)="ifEnabled(handleDragPress ,$event)"\n (kendoDrag)="ifEnabled(onHandleDrag ,$event)"\n (kendoRelease)="ifEnabled(onHandleRelease, $event)"\n ></a>\n </div>\n </div>\n <kendo-resize-sensor (resize)="sizeComponent()"></kendo-resize-sensor>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService,o.Injector,o.Renderer2,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],t)}(Ss),Ds=function(){function e(e,t,n,i,r,a){var s=this;this.renderer=e,this.hostElement=t,this.localizationService=n,this.injector=i,this.changeDetector=r,this.ngZone=a,this.focusableId="k-"+Object(In.guid)(),this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.hostClasses=!0,this.initialized=!1,this.hostClickSubscription=new we.Subscription,this._checked=!1,this._size="medium",this._trackRounded="full",this._thumbRounded="full",this.ngChange=function(e){},this.ngTouched=function(){},this.handleFocus=function(){s.isFocused||(s.focused=!0,Object(In.hasObservers)(s.onFocus)&&s.ngZone.run((function(){s.onFocus.emit()})))},this.handleBlur=function(e){var t=e&&e.relatedTarget;s.hostElement.nativeElement.contains(t)||(s.changeDetector.markForCheck(),s.focused=!1,(Object(In.hasObservers)(s.onBlur)||La(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.onBlur.emit()})))},Object(Dn.validatePackage)(ks),this.direction=n.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}var t;return t=e,Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this.setHostClasses(e),this._checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"thumbRounded",{get:function(){return this._thumbRounded},set:function(e){this.handleThumbClasses(e),this._thumbRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackRounded",{get:function(){return this._trackRounded},set:function(e){this.handleTrackClasses(e),this._trackRounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ieClass",{get:function(){return Pn.browser&&Pn.browser.msie},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaDisabled",{get:function(){return!!this.disabled||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onLabelMessage",{get:function(){return this.onLabel||this.localizationService.get("on")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offLabelMessage",{get:function(){return this.offLabel||this.localizationService.get("off")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return!this.disabled&&!this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;if(this.hostElement){var t=this.hostElement.nativeElement;this.renderer.removeAttribute(t,"tabindex")}this.localizationChangeSubscription=this.localizationService.changes.pipe(Object(Se.skip)(1)).subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.control=this.injector.get(Ve,null),this.ngZone.onStable.pipe(Object(Se.take)(1)).subscribe((function(){return e.initialized=!0}))},e.prototype.ngAfterViewInit=function(){var e=this.hostElement.nativeElement;this.attachHostClickHandler(),this.checked||e.classList.contains("k-switch-off")||this.renderer.addClass(e,"k-switch-off"),this.handleClasses(this.size,"size"),this.handleTrackClasses(this.trackRounded),this.handleThumbClasses(this.thumbRounded)},e.prototype.ngOnDestroy=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.hostClickSubscription&&this.hostClickSubscription.unsubscribe()},e.prototype.focus=function(){this.track&&this.track.nativeElement.focus()},e.prototype.blur=function(){this.track&&this.track.nativeElement.blur()},e.prototype.setDisabledState=function(e){this.disabled=e,this.changeDetector.markForCheck()},e.prototype.writeValue=function(e){this.checked=null!==e&&e,this.changeDetector.markForCheck()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.keyDownHandler=function(e){var t=e.keyCode;!this.isEnabled||t!==In.Keys.Space&&t!==In.Keys.Enter||(this.changeValue(!this.checked),e.preventDefault())},e.prototype.clickHandler=function(){this.isEnabled&&this.changeValue(!this.checked)},e.prototype.isEmpty=function(){return!1},e.prototype.changeValue=function(e){var t=this;this.checked!==e&&this.ngZone.run((function(){t.checked=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"focused",{set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.attachHostClickHandler=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.hostClickSubscription.add(e.renderer.listen(e.hostElement.nativeElement,"click",e.clickHandler))}))},e.prototype.setHostClasses=function(e){var t=this.hostElement.nativeElement;e?(this.renderer.removeClass(t,"k-switch-off"),this.renderer.addClass(t,"k-switch-on")):(this.renderer.removeClass(t,"k-switch-on"),this.renderer.addClass(t,"k-switch-off"))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=Ua("switch",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.handleTrackClasses=function(e){var t=this.hostElement.nativeElement,n=this.track.nativeElement,i=Ua("switch","rounded",this.trackRounded,e);i.toRemove&&(this.renderer.removeClass(t,i.toRemove),this.renderer.removeClass(n,i.toRemove)),i.toAdd&&(this.renderer.addClass(t,i.toAdd),this.renderer.addClass(n,i.toAdd))},e.prototype.handleThumbClasses=function(e){var t=this.thumb.nativeElement,n=Ua("switch","rounded",this.thumbRounded,e);n.toRemove&&this.renderer.removeClass(t,n.toRemove),n.toAdd&&this.renderer.addClass(t,n.toAdd)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"onLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"offLabel",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[Boolean])],e.prototype,"checked",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"thumbRounded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"trackRounded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-ie"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ieClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaDisabled",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-switch"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ViewChild)("track",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"track",void 0),Object(i.__decorate)([Object(o.ViewChild)("thumb",{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"thumb",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoSwitch",providers:[xn.LocalizationService,{provide:xn.L10N_PREFIX,useValue:"kendo.switch"},{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-switch",template:'\n <ng-container kendoSwitchLocalizedMessages\n i18n-on="kendo.switch.on|The **On** label of the Switch."\n on="ON"\n i18n-off="kendo.switch.off|The **Off** label of the Switch."\n off="OFF"\n >\n\n <span\n #track\n class="k-switch-track"\n [id]="focusableId"\n role="switch"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'"\n [attr.aria-checked]="checked"\n [attr.tabindex]="(disabled ? undefined : tabIndex)"\n [kendoEventsOutsideAngular]="{ keydown: keyDownHandler, focus: handleFocus, blur: handleBlur }"\n >\n <span class="k-switch-label-on" [attr.aria-hidden]="true" >{{onLabelMessage}}</span>\n <span class="k-switch-label-off" [attr.aria-hidden]="true">{{offLabelMessage}}</span>\n </span>\n <span\n class="k-switch-thumb-wrap"\n tabindex="-1"\n [style.transitionDuration]="initialized ? \'200ms\' : \'0ms\'" [kendoEventsOutsideAngular]="{\n keydown: keyDownHandler,\n focus: handleFocus,\n blur: handleBlur\n }">\n <span #thumb class="k-switch-thumb"></span>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,xn.LocalizationService,o.Injector,o.ChangeDetectorRef,o.NgZone])],e)}(),Ps=function(){function e(e,t,n){this.renderer=e,this.inputElement=t,this.ngZone=n,this.hostClasses=!0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[]}var t;return t=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.nativeElement.value},set:function(e){this.inputElement&&(this.inputElement.nativeElement.value=null==e?"":e,this.onValueChange.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.inputElement.nativeElement.id},set:function(e){this.renderer.setAttribute(this.inputElement.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this,t=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(t,"focus",(function(){return e.onFocus.emit()})),this.renderer.listen(t,"blur",(function(){return e.onBlur.emit()}))],this.ngZone.runOutsideAngular((function(){e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))}))},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(o.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),e=t=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoTextBox]",providers:[{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone])],e)}(),Ts=function(){function e(e,t,n,i,r,a){this.renderer=e,this.element=t,this.zone=n,this.changeDetector=i,this.injector=r,this.elementClasses=!0,this.autofillClass=!0,this.valueChange=new o.EventEmitter,this.autoSize=!1,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.onValueChange=new o.EventEmitter,this.autoFillStart=new o.EventEmitter,this.autoFillEnd=new o.EventEmitter,this.listeners=[],this.ngChange=function(e){},this.ngTouched=function(){},this.direction=a?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"id",{get:function(){return this.element.nativeElement.id},set:function(e){this.renderer.setAttribute(this.element.nativeElement,"id",e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.elementValue=e,this.resize()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.setElementProperty("disabled",e)},e.prototype.ngOnInit=function(){var e=this,t=this.element.nativeElement;this.zone.runOutsideAngular((function(){e.listeners=[e.renderer.listen(t,"focus",e.handleFocus.bind(e)),e.renderer.listen(t,"blur",e.handleBlur.bind(e)),e.renderer.listen(t,"animationstart",(function(t){"autoFillStart"===t.animationName?e.autoFillStart.emit():"autoFillEnd"===t.animationName&&e.autoFillEnd.emit()}))],Object(In.isDocumentAvailable)()&&e.autoSize&&(e.resizeSubscription=Object(we.fromEvent)(window,"resize").pipe(Object(Se.debounceTime)(50)).subscribe((function(){return e.resize()}))),e.inputSubscription=Object(we.fromEvent)(t,"input").subscribe(e.handleInput.bind(e))})),this.control=this.injector.get(Ve,null)},e.prototype.ngOnChanges=function(e){var t=this.element.nativeElement;e.value&&(this.elementValue=this.value),e.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=this.initialHeight+"px")),this.resize()},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.element?this.element.nativeElement.value:""},set:function(e){this.setElementProperty("value",null==e?"":e)},enumerable:!0,configurable:!0}),e.prototype.setElementProperty=function(e,t){this.element&&this.renderer.setProperty(this.element.nativeElement,e,t)},e.prototype.resize=function(){if(this.autoSize){var e=this.element.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),e.style.height=this.initialHeight+"px";var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},e.prototype.handleInput=function(){var e=this,t=this.elementValue;this.value=t,(this.control||Object(In.hasObservers)(this.onValueChange)||Object(In.hasObservers)(this.valueChange))&&this.zone.run((function(){e.ngChange(t),e.onValueChange.emit(t),e.valueChange.emit(t),e.changeDetector.markForCheck()})),this.resize()},e.prototype.handleFocus=function(){var e=this;Object(In.hasObservers)(this.onFocus)&&this.zone.run((function(){e.onFocus.emit()}))},e.prototype.handleBlur=function(){var e=this;(Object(In.hasObservers)(this.onBlur)||La(this.control))&&this.zone.run((function(){e.ngTouched(),e.onBlur.emit(),e.changeDetector.markForCheck()}))},Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(o.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"elementClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-autofill"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autofillClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoSize",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=t=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Ee,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"textarea[kendoTextArea]"}),Object(i.__param)(5,Object(o.Optional)()),Object(i.__param)(5,Object(o.Inject)(xn.RTL)),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef,o.NgZone,o.ChangeDetectorRef,o.Injector,Boolean])],e)}(),Ms=/[eE][\-+]?([0-9]+)/,As=function(e){return e>=0?Math.floor(e):Math.ceil(e)},Ns=function(e){},Vs=function(e){return!isNaN(e)&&null!==e};function Bs(e,t){var n=t-String(e).length,i=e;if(n>0){var o=new Array(n+1).join("0");i=parseFloat(e+o)}return i}var Rs;!function(e){e[e.Down=-1]="Down",e[e.None=0]="None",e[e.Up=1]="Up"}(Rs||(Rs={}));var Fs,zs=["min","max","step","decimals"],Hs={decimals:null,max:null,min:null,step:1},Ls=function(){function e(e,t,n,i,r,a,s){var c=this;this.intl=e,this.renderer=t,this.localizationService=n,this.injector=i,this.ngZone=r,this.changeDetector=a,this.hostElement=s,this.focusableId="k-"+Object(In.guid)(),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.ArrowDirection=Rs,this.arrowDirection=Rs.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=Ns,this.maxValidateFn=Ns,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Ns,this.ngTouched=Ns,this.ngValidatorChange=Ns,this.domEvents=[],this.increasePress=function(e){c.arrowPress(Rs.Up,e)},this.decreasePress=function(e){c.arrowPress(Rs.Down,e)},this.releaseArrow=function(){clearTimeout(c.spinTimeout),c.arrowDirection!==Rs.None&&(c.arrowDirection=Rs.None,c.changeDetector.detectChanges())},this.handlePaste=function(){c.isPasted=!0},this.handleInput=function(){var e=c.numericInput.nativeElement,t=e.selectionStart,n=e.selectionEnd,i=e.value;if(c.pressedKey===In.Keys.NumpadDecimal&&(i=c.replaceNumpadDotValue()),c.isPasted&&(i=c.formatInputValue(c.intl.parseNumber(i))),!c.isValid(i))return e.value=c.inputValue,void c.setSelection(t-1,n-1);var o=c.intl.parseNumber(i),r=c.restrictDecimals(o);if(c.autoCorrect){var a=c.limitInputValue(r);r=a.value,t=a.selectionStart,n=a.selectionEnd}o!==r||c.hasTrailingZeros(i)||!c.focused?(c.setInputValue(r),c.setSelection(t,n)):c.inputValue=i,c.isPasted&&(e.value=c.inputValue),c.updateValue(r),c.previousSelection=null,c.isPasted=!1},this.handleDragEnter=function(){c.focused||c.isDisabled||c.setInputValue(c.value,!0)},this.handleMouseDown=function(){c.mouseDown=!0},this.handleFocus=function(){if(!c.focused&&(c.focused=!0,!c.isDisabled)){var e=c.selectOnFocus||!c.mouseDown;c.ngZone.runOutsideAngular((function(){setTimeout((function(){e?c.selectAll():c.selectCaret()}),0)}))}c.mouseDown=!1,Object(In.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.inputValue!==c.elementValue&&c.handleInput(),c.setInputValue(),(Object(In.hasObservers)(c.onBlur)||La(c.control))&&c.ngZone.run((function(){c.ngTouched(),c.onBlur.emit()}))},this.handleKeyDown=function(e){if(!c.isDisabled){var t;e.keyCode===In.Keys.ArrowDown?t=-1:e.keyCode===In.Keys.ArrowUp&&(t=1),t&&c.step&&(e.preventDefault(),c.addStep(t));var n=c.numericInput.nativeElement;c.previousSelection={end:n.selectionEnd,start:n.selectionStart},c.pressedKey=e.keyCode}},this.handleWheel=function(e){if(c.focused&&!c.isDisabled&&c.changeValueOnScroll){e.preventDefault();var t=function(e){var t=0;return e.wheelDelta?t=(t=e.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):e.detail&&(t=Math.round(-e.detail/3)),t}(e);c.addStep(t)}},Object(Dn.validatePackage)(ks),this.direction=n.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"format",{get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"})),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Ve,null),this.ngZone.runOutsideAngular((function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))}))},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){var t,n;Object(In.anyChanged)(zs,e,!1)&&this.parseOptions(zs.filter((function(t){return e[t]}))),this.verifySettings(),Object(In.anyChanged)(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?(n=this.min,function(e){return!za(n)||!za(e.value)||e.value>=n?null:{minError:{minValue:n,value:e.value}}}):Ns,this.maxValidateFn=this.rangeValidation?(t=this.max,function(e){return!za(t)||!za(e.value)||e.value<=t?null:{maxError:{maxValue:t,value:e.value}}}):Ns,this.ngValidatorChange()),Object(In.anyChanged)(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Object(In.anyChanged)(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),this.focused&&this.intl.parseNumber(this.elementValue)===this.value||this.setInputValue())},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach((function(e){return e()}))},e.prototype.validate=function(e){return this.minValidateFn(e)||this.maxValidateFn(e)},e.prototype.registerOnValidatorChange=function(e){this.ngValidatorChange=e},e.prototype.writeValue=function(e){this.verifyValue(e);var t=this.restrictModelValue(e);this.value=t,this.setInputValue()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.focus=function(){js(this.numericInput,"focus")},e.prototype.blur=function(){js(this.numericInput,"blur")},e.prototype.notifyValueChange=function(){this.setInputValue()},Object.defineProperty(e.prototype,"incrementTitle",{get:function(){return this.localizationService.get("increment")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decrementTitle",{get:function(){return this.localizationService.get("decrement")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"decimalSeparator",{get:function(){return this.intl.numberSymbols().decimal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementValue",{get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDecimals",{get:function(){return null!==this.decimals&&this.decimals>=0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this.disabled||this.readonly},enumerable:!0,configurable:!0}),e.prototype.arrowPress=function(e,t){var n,i,o;(t.preventDefault(),this.isDisabled||(n=t,i=n.button&&2===n.button,o=n.which&&3===n.which,i||o))||(Pn.mobileOS||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())},e.prototype.updateValue=function(e){var t=this;Ha(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},e.prototype.replaceNumpadDotValue=function(){var e=this.inputValue||"";if(this.previousSelection){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=this.previousSelection,r=o.start,a=o.end;t.value=e=e.substring(0,r)+this.decimalSeparator+e.substring(a),this.setSelection(n,i)}return e},e.prototype.isValid=function(e){var t,n,i,o,r,a;return this.numericRegex||(this.numericRegex=(t={autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator},i=t.autoCorrect,o=t.decimals,r=t.min,"."===(a=t.separator)&&(a="\\"+a),n=0===o?"\\d*":"(?:(?:\\d+("+a+"\\d*)?)|(?:"+a+"\\d*))?",new RegExp("^"+(i&&null!==r&&r>=0?"":"-?")+n+"$"))),this.numericRegex.test(e)},e.prototype.spin=function(e,t){var n=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout((function(){n.spin(e,50)}),t),this.addStep(e)},e.prototype.addStep=function(e){var t=Ya(this.value||0,this.step*e);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)},e.prototype.setSelection=function(e,t){this.focused&&js(this.numericInput,"setSelectionRange",e,t)},e.prototype.limitValue=function(e){var t=e;return this.isInRange(e)||(Vs(this.max)&&e>this.max&&(t=this.max),Vs(this.min)&&e<this.min&&(t=this.min)),t},e.prototype.limitInputValue=function(e){var t=this.numericInput.nativeElement,n=t.selectionStart,i=t.selectionEnd,o=t.value,r=e,a=!1;if(!this.isInRange(e)){var s=o.length-String(this.inputValue).length,c=this.min,l=this.max,d=Vs(l),u=Vs(c),p=void 0,h=void 0,f=e;if(0===n&&this.inputValue.substr(1)===o)return{selectionEnd:i,selectionStart:n,value:null};if(d&&e>l?e>0?h=!0:p=l:u&&e<c&&(e>0?p=c:h=!0),p){var m=this.tryPadValue(e,p);m&&As(e)!==As(p)&&(f=m,a=!0)}else h&&this.inputValue&&n!==o.length&&(f=parseFloat(o.substr(0,n)+o.substr(n+s)));r=this.limitValue(f),a=(a||r!==f)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+s>0}return{selectionEnd:a?String(r).length:i,selectionStart:n,value:r}},e.prototype.tryPadValue=function(e,t){var n,i=String(Math.floor(t)).length,o=Bs(e,i),r=Bs(e,i+1);return this.isInRange(o)?n=o:this.isInRange(r)&&(n=r),n},e.prototype.isInRange=function(e){return!Vs(e)||(!Vs(this.min)||this.min<=e)&&(!Vs(this.max)||e<=this.max)},e.prototype.restrictModelValue=function(e){var t=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t},e.prototype.restrictDecimals=function(e,t){var n=e;if(e&&this.hasDecimals){var i=this.decimals,o=String(e);if(t||Ms.test(o))n=Xa(e,i);else{var r=o.split("."),a=r[1];a&&a.length>i&&(a=a.substr(0,i),n=parseFloat(r[0]+"."+a))}}return n},e.prototype.formatInputValue=function(e){var t=String(e),n=Ms.exec(t);return n&&(t=e.toFixed(Wa(parseInt(n[1],10)))),t.replace(".",this.decimalSeparator)},e.prototype.formatValue=function(e,t){return null!==e&&function(e){return void 0!==e}(e)&&""!==e?t&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):""},e.prototype.setInputValue=function(e,t){void 0===e&&(e=this.value),void 0===t&&(t=this.focused);var n=this.formatValue(e,t);this.elementValue=n,this.inputValue=n},e.prototype.verifySettings=function(){if(Object(o.isDevMode)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")},e.prototype.verifyValue=function(e){if(Object(o.isDevMode)()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and "+JSON.stringify(e)+" was set.")},e.prototype.parseOptions=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=this[n];if("string"==typeof i){var r=parseFloat(i),a=!isNaN(r);if(Object(o.isDevMode)()&&!a&&""!==i)throw new Error("The NumericTextBox component requires value of type Number or a String representing a number for the "+n+" property and "+JSON.stringify(i)+" was set.");this[n]=a?r:Hs[n]}}},e.prototype.intlChange=function(){delete this.numericRegex,!this.numericInput||this.focused&&this.isValid(this.elementValue)||this.setInputValue()},e.prototype.hasTrailingZeros=function(e){if(this.hasDecimals&&this.focused){var t=e.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}},e.prototype.selectAll=function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)},e.prototype.selectCaret=function(){var e,t,n,i=this.numericInput.nativeElement.selectionStart,o=this.elementValue,r=o.substring(0,i);if(this.setInputValue(),r.length){var a=(e=r,t=this.decimalSeparator,n=t+"0123456789-",e.split("").reduce((function(e,t){return n.includes(t)?++e:e}),0)),s=this.adjustSignificantChars(o,a);this.setSelection(s,s)}else this.setSelection(0,0)},e.prototype.numberOfLeadingZeroes=function(e){var t=e.indexOf(this.decimalSeparator),n=e.match(/^[^1-9]*?(0+)/);if(n){var i=n[0].length,o=n[1].length;return i===t?o-1:o}return 0},e.prototype.adjustSignificantChars=function(e,t){var n=this.numberOfLeadingZeroes(e);return n>0?Math.max(0,t-n):t},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=Ua("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"autoCorrect",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"format",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"decimals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"spinners",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"rangeValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"changeValueOnScroll",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("numericInput",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"numericInput",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disableClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-input"),Object(o.HostBinding)("class.k-numerictextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoNumericTextBox",providers:[xn.LocalizationService,{provide:xn.L10N_PREFIX,useValue:"kendo.numerictextbox"},{provide:Ee,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:Le,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-numerictextbox",template:'\n <ng-container kendoNumericTextBoxLocalizedMessages\n i18n-increment="kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox"\n increment="Increase value"\n i18n-decrement="kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox"\n decrement="Decrease value"\n >\n </ng-container>\n <input\n role="spinbutton"\n class="k-input-inner"\n autocomplete="off"\n autocorrect="off"\n [id]="focusableId"\n [attr.aria-valuemin]="min"\n [attr.aria-valuemax]="max"\n [attr.aria-valuenow]="value"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.maxLength]="maxlength"\n [tabindex]="tabIndex"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n mousedown: handleMouseDown,\n dragenter: handleDragEnter,\n keydown: handleKeyDown,\n input: handleInput,\n focus: handleFocus,\n blur: handleBlur,\n paste: handlePaste\n }"\n #numericInput />\n <span\n class="k-input-spinner k-spin-button" *ngIf="spinners"\n [kendoEventsOutsideAngular]="{ mouseup: releaseArrow, mouseleave: releaseArrow }"\n >\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: increasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="incrementTitle"\n [title]="incrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Up"\n class="k-spinner-increase k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-n"></span>\n </button>\n <button\n type="button"\n [kendoEventsOutsideAngular]="{ mousedown: decreasePress }"\n [attr.aria-hidden]="true"\n [attr.aria-label]="decrementTitle"\n [title]="decrementTitle"\n [class.k-active]="arrowDirection === ArrowDirection.Down"\n class="k-spinner-decrease k-button k-icon-button k-button-solid k-button-solid-base"\n tabindex="-1"\n >\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[br,o.Renderer2,xn.LocalizationService,o.Injector,o.NgZone,o.ChangeDetectorRef,o.ElementRef])],e)}(),Ks=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),t}(xn.ComponentMessages),Gs=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:Ks,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-numerictextbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(Ks);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(Fs||(Fs={}));var Zs=function(){function e(e,t,n){void 0===n&&(n=Fs.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),Us=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),Ws=function(e){return(e||"").split("")},qs=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof Us?this.parse(e):this.parse(new Us(Ws(e),Ws(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===Fs.Literal},e}(),$s=function(e,t){return new qs((function(n){var i=n.next().char,o=e[i];return"\\"===i?(i=n.next().char,new Zs(t.literal(i),n)):new Zs(o?t.mask(o):t.literal(i),n)}))},Xs=function(e){var t=e.prompt,n=e.promptPlaceholder;return new qs((function(e){var i=e.next().char;return new Zs(i===t?n:i,e)}))},Ys=function(e){return new qs((function(t){var n=t.next().char;return new Zs(e?n:"",t)}))},Js=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new qs((function(e){return new Zs(t,e)}))));var t},Qs=function(e){return new qs((function(t){for(var n=new Zs([],t);!t.eof();)n=n.concat(e.run(t));return n}))},ec=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,o=void 0===i?"":i,r=e.promptPlaceholder,a=void 0===r?" ":r,s=e.rules,c=void 0===s?{}:s,l=e.includeLiterals,d=void 0!==l&&l;this.mask=n,this.prompt=o,this.promptPlaceholder=a,this.rules=c,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return Js(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(Js(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(Js(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var o="",r=i,a=t.split("").slice(0,n),s=t.split("").slice(i);return Js(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=a.concat(e).concat(s).join("")})),{selection:r,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",r=n,a=e.split("").slice(n),s=e.split("").slice(0,n).join(""),c=this.maskTokens.length-(e.length-n);return Js(this.maskTokens.slice(0,c)).run(s,t).fold((function(e){r=i.adjustPosition(e,r),o=e.concat(a).join("")})),{selection:r,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,o="",r=n,a=e.slice(0,n);return Js(this.unmaskTokens).run(a,t).chain((function(e){r=e.join("").length;var n=t.slice(r);return Js(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:r,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new qs((function(e){return e.peek().char===t?(e.eat(),new Zs(t,e,Fs.Literal)):new Zs(t,e,Fs.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new qs((function(i){for(;!i.eof();){var o=i.peek(),r=o.char,a=o.control;if(r===a&&a===t)return i.eat(),new Zs(t,i,Fs.Mask);if(e.test(r))return i.eat(),new Zs(r,i,Fs.Mask);if(r===n)return i.eat(),new Zs(t,i,Fs.Mask);i.eat_input()}return i.eat(),new Zs(t,i,Fs.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new qs((function(e){return e.eof()?new Zs("",e):(e.peek().char===t&&e.eat(),new Zs(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new qs((function(t){for(;!t.eof();){var i=t.peek(),o=i.char,r=i.control;if(o===n&&r===n)return t.eat(),new Zs(o,t);if(e.test(o))return t.eat(),new Zs(o,t);t.eat_input()}return t.eat(),new Zs("",t)}))})(t);var n}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return Ys(n)},mask:function(n){return Xs({prompt:e,promptPlaceholder:t})}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return Ys(!1)},mask:function(t){return Xs({prompt:e,promptPlaceholder:""})}}},enumerable:!0,configurable:!0}),e.prototype.tokenize=function(){var e=this;Qs($s(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),Qs($s(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),Qs($s(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),Qs($s(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),tc=Promise.resolve(null),nc=function(){function e(e,t,n,i,r,a,s){var c=this;this.service=e,this.renderer=t,this.hostElement=n,this.ngZone=i,this.injector=r,this.changeDetector=a,this.focusableId="k-"+Object(In.guid)(),this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleFocus=function(){c.focused=!0,c.maskOnFocus&&c.emptyMask&&(c.updateInput(c.service.maskRaw(c.value)),c.ngZone.runOutsideAngular((function(){setTimeout((function(){c.setSelection(0,0)}),0)}))),Object(In.hasObservers)(c.onFocus)&&c.ngZone.run((function(){c.onFocus.emit()}))},this.handleClick=function(){if(c.focused&&!c.focusClick){c.focusClick=!0;var e=c.input.nativeElement;e.selectionStart===e.selectionEnd&&c.setFocusSelection()}},this.handleBlur=function(){c.changeDetector.markForCheck(),c.focused=!1,c.focusClick=!1,c.maskOnFocus&&c.emptyMask&&c.updateInput(c.maskedValue),(Object(In.hasObservers)(c.onBlur)||La(c.control))&&c.ngZone.run((function(){c.onTouched(),c.onBlur.emit()}))},this.onChange=function(e){},this.onTouched=function(){},Object(Dn.validatePackage)(ks),this.direction=s?"rtl":"ltr",this.updateService()}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rules",{get:function(){return this._rules||this.defaultRules},set:function(e){this._rules=Object.assign({},this.defaultRules,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(Ve,null)},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.isEmpty=function(){if(this.input)return!Boolean(this.input.nativeElement.value)},e.prototype.handleDragDrop=function(){return!1},e.prototype.focus=function(){this.input&&(this.input.nativeElement.focus(),this.setFocusSelection())},e.prototype.blur=function(){this.input&&this.input.nativeElement.blur()},e.prototype.pasteHandler=function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.selection=[n,i])},e.prototype.inputHandler=function(e){var t,n=e.target.value,i=this.selection,o=i[0],r=i[1];if(!this.mask)return this.updateValue(n),void(this.isPasted=!1);if(this.isPasted){this.isPasted=!1;var a=this.maskedValue.length-r,s=n.length-a;t=this.service.maskInRange(n.slice(o,s),this.maskedValue,o,r)}else t=this.service.maskInput(n,this.maskedValue,e.target.selectionStart);this.updateInput(t.value,t.selection),this.updateValue(t.value)},e.prototype.ngOnChanges=function(e){var t=this;if(e.value&&(this.value=this.normalizeValue()),this.mask){var n=this.extractChanges(e);if(this.updateService(n),Object(In.isChanged)("value",e)){var i=this.service.maskRaw(this.value);i!==this.maskedValue&&this.updateInput(i)}else Object(In.anyChanged)(["promptPlaceholder","includeLiterals"],e)?tc.then((function(){t.updateValue(t.maskedValue)})):this.updateInput(this.service.maskRaw(this.value))}else this.updateInput(this.value)},e.prototype.writeValue=function(e){this.value=this.normalizeValue(e),this.updateInput(this.service.maskRaw(this.value))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.validate=function(e){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null},e.prototype.updateValue=function(e){this.mask&&!this.service.validationValue(e)?this.value="":this.value=this.service.rawValue(e),this.onChange(this.value),this.valueChange.emit(this.value)},e.prototype.updateInput=function(e,t){void 0===e&&(e=""),this.maskedValue=e;var n=this.maskOnFocus&&!this.focused&&this.emptyMask?"":e;this.renderer.setProperty(this.input.nativeElement,"value",n),void 0!==t&&this.setSelection(t,t)},e.prototype.extractChanges=function(e){return Object.keys(e).filter((function(e){return"rules"!==e})).reduce((function(t,n){return t[n]=e[n].currentValue,t}),{})},e.prototype.updateService=function(e){var t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},e);this.service.update(t)},e.prototype.setSelection=function(e,t){void 0===e&&(e=this.selection[0]),void 0===t&&(t=this.selection[1]),this.focused&&js(this.input,"setSelectionRange",e,t)},Object.defineProperty(e.prototype,"emptyMask",{get:function(){return this.service.maskRaw()===this.maskedValue},enumerable:!0,configurable:!0}),e.prototype.setFocusSelection=function(){var e=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<e&&(this.selection=[t,t],this.setSelection())},Object.defineProperty(e.prototype,"focused",{get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this.isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.normalizeValue=function(e){void 0===e&&(e=this.value);var t=za(e);if(t&&"string"!=typeof e){if(Object(o.isDevMode)())throw new Error("The MaskedTextBox component supports only string values.");return String(e)}return t?e:""},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=Ua("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-input"),Object(o.HostBinding)("class.k-maskedtextbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostDisabledClass",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"mask",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"rules",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"prompt",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"promptPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"includeLiterals",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"maskValidation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostListener)("paste",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"pasteHandler",null),Object(i.__decorate)([Object(o.HostListener)("input",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"inputHandler",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoMaskedTextBox",providers:[ec,{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return t}))},{multi:!0,provide:Le,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-maskedtextbox",template:'\n <input type="text"\n #input\n autocomplete="off"\n autocorrect="off"\n autocapitalize="off"\n spellcheck="false"\n class="k-input-inner"\n [id]="focusableId"\n [tabindex]="tabIndex"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="readonly"\n [kendoEventsOutsideAngular]="{\n focus: handleFocus,\n blur: handleBlur,\n click: handleClick,\n dragstart: handleDragDrop,\n drop: handleDragDrop\n }"\n />\n '}),Object(i.__param)(6,Object(o.Optional)()),Object(i.__param)(6,Object(o.Inject)(xn.RTL)),Object(i.__metadata)("design:paramtypes",[ec,o.Renderer2,o.ElementRef,o.NgZone,o.Injector,o.ChangeDetectorRef,Boolean])],e)}(),ic=function(e){this.value=e,this.classes={"k-tick":!0}},oc=function(){function e(){this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}return e.prototype.ngOnChanges=function(e){this.createTicks()},e.prototype.createTicks=function(){for(var e,t,n,i,o,r,a,s,c=is(this.min,this.max,this.step),l=this.largeStep,d={max:this.max,min:this.min,smallStep:this.step},u=[],p=0;p<c;p++)u.push(new ic((e=p,n=void 0,i=void 0,o=void 0,r=void 0,a=void 0,s=void 0,n=(t=d).max,i=t.min,o=t.smallStep,r=t.reverse,a=t.vertical,s=Ya(i,Qa(e,o)),a||r?Math.abs(Ja(s,n)):s))),l&&p%l==0&&(u[p].large=!0,u[p].classes["k-tick-large"]=!0);u.length>0&&(Object.assign(u[0].classes,this.endTickClasses(!0)),Object.assign(u[u.length-1].classes,this.endTickClasses(!1))),this.ticks=u},e.prototype.endTickClasses=function(e){return{"k-first":e&&!this.vertical||!e&&this.vertical,"k-last":!e&&!this.vertical||e&&this.vertical}},Object(i.__decorate)([Object(o.HostBinding)("class"),Object(i.__metadata)("design:type",String)],e.prototype,"wrapperClasses",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Function)],e.prototype,"tickTitle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"vertical",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"step",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"largeStep",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"min",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"max",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"labelTemplate",void 0),Object(i.__decorate)([Object(o.ViewChildren)("tickElement"),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"tickElements",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoSliderTicks]",template:'\n <li #tickElement *ngFor="let tick of ticks;"\n [ngClass]="tick.classes"\n title="{{ tickTitle(tick.value) }}"\n role="presentation"\n >\n <ng-container [ngSwitch]="tick.large">\n <span class="k-label" *ngSwitchCase="true">\n <ng-container [ngTemplateOutlet]="labelTemplate || defaultLabel" [ngTemplateOutletContext]="tick">\n </ng-container>\n </span>\n <ng-container *ngSwitchCase="false">&nbsp;</ng-container>\n </ng-container>\n </li>\n\n <ng-template #defaultLabel let-value="value">\n {{ tickTitle(value) }}\n </ng-template>\n '})],e)}(),rc=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[oc,ws],exports:[ws,oc,In.DraggableModule,In.EventsModule,In.ResizeSensorModule],imports:[r.CommonModule,In.DraggableModule,In.EventsModule,In.ResizeSensorModule]})],e)}(),ac=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"decrement",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"increment",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandle",void 0),t}(xn.ComponentMessages),sc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:ac,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(ac),cc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:ac,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-slider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(ac),lc=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Es,cc,sc],exports:[Es,cc,ws,sc],imports:[r.CommonModule,rc]})],e)}(),dc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleStart",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"dragHandleEnd",void 0),t}(xn.ComponentMessages),uc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:dc,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSliderLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(dc),pc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:dc,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-rangeslider-messages",template:""}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(dc),hc=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Is,pc,uc],exports:[Is,pc,uc,ws],imports:[r.CommonModule,rc]})],e)}(),fc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"on",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"off",void 0),t}(xn.ComponentMessages),mc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:fc,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoSwitchLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(fc),bc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:fc,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-switch-messages",template:""}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(fc),gc=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ds,bc,mc],exports:[Ds,bc,mc],imports:[r.CommonModule,In.EventsModule,In.ResizeSensorModule]})],e)}(),yc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:Ks,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoNumericTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(Ks),vc=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[yc,Ls,Gs],exports:[Ls,Gs],imports:[r.CommonModule,In.EventsModule]})],e)}(),_c=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[nc],exports:[nc],imports:[r.CommonModule,In.EventsModule]})],e)}(),Oc=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxSuffixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),jc=function(){function e(e){this.templateRef=e}return e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoTextBoxPrefixTemplate]"}),Object(i.__param)(0,Object(o.Optional)()),Object(i.__metadata)("design:paramtypes",[o.TemplateRef])],e)}(),Cc=function(){function e(e,t,n,i,r,a){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=a,this.focusableId="k-"+Object(In.guid)(),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new o.EventEmitter,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){s.disabled||(s.selectOnFocus&&s.value&&s.ngZone.run((function(){setTimeout((function(){s.selectAll()}))})),Object(In.hasObservers)(s.onFocus)&&(s.isFocused||s.ngZone.run((function(){s.onFocus.emit()}))),Object(In.hasObservers)(s.inputFocus)&&(!s.focusChangedProgrammatically||s.focusChangedProgrammatically&&s.clearButtonClicked)&&s.ngZone.run((function(){s.inputFocus.emit()})),s.ngZone.run((function(){s.isFocused=!0})))},this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(In.hasObservers)(s.inputBlur)||La(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.handleInput=function(e){var t,n,i=(n=navigator.userAgent,(Object(Pn.detectDesktopBrowser)(n).safari||Object(Pn.detectMobileOS)(n)&&"mobilesafari"===Object(Pn.detectMobileOS)(n).browser)&&(t=e.target.value,/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(t))?e.data:e.target.value);s.updateValue(i)},this.ngChange=function(e){},this.ngTouched=function(){},Object(Dn.validatePackage)(ks),this.direction=e.rtl?"rtl":"ltr"}var t;return t=e,Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(Ve,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},e.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(Cs(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.clearButtonClicked||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===In.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.ngOnChanges=function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},e.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},e.prototype.clearTitle=function(){return this.localizationService.get("clear")},e.prototype.checkClearButton=function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value},e.prototype.clearValue=function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1},e.prototype.writeValue=function(e){this.value=e,this.checkClearButton()},e.prototype.registerOnChange=function(e){this.ngChange=e},e.prototype.registerOnTouched=function(e){this.ngTouched=e},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.showSuccessInitial=function(){if(!this.control)return!1;var e=this.control,t=e.valid,n=e.dirty,i=e.touched;return t&&(n||i)},Object.defineProperty(e.prototype,"successIconClasses",{get:function(){return this.successIcon?""+this.successIcon:"k-validation-icon k-icon k-i-check"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorIconClasses",{get:function(){return this.errorIcon?""+this.errorIcon:"k-validation-icon k-icon k-i-warning"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonClasses",{get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSuccessful",{get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon},enumerable:!0,configurable:!0}),e.prototype.setSelection=function(e,t){this.isFocused&&js(this.input,"setSelectionRange",e,t)},e.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},e.prototype.updateValue=function(e){var t=this;Ha(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.checkClearButton(),t.changeDetector.markForCheck()}))},Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),e.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=Ua("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showSuccessIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"showErrorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"successIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"errorIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"clearButtonIcon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.ContentChild)(Oc,{static:!1}),Object(i.__metadata)("design:type",Oc)],e.prototype,"suffixTemplate",void 0),Object(i.__decorate)([Object(o.ContentChild)(jc,{static:!1}),Object(i.__metadata)("design:type",jc)],e.prototype,"prefixTemplate",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-textbox"),Object(o.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextBox",providers:[xn.LocalizationService,{provide:xn.L10N_PREFIX,useValue:"kendo.textbox"},{provide:Ee,useExisting:Object(o.forwardRef)((function(){return t})),multi:!0},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))}],selector:"kendo-textbox",template:'\n <ng-container kendoTextBoxLocalizedMessages\n i18n-clear="kendo.textbox.clear|The title for the **Clear** button in the TextBox."\n clear="Clear">\n </ng-container>\n <span class="k-input-prefix">\n <ng-template\n *ngIf="prefixTemplate"\n [ngTemplateOutlet]="prefixTemplate?.templateRef">\n </ng-template>\n </span>\n <input #input\n class="k-input-inner"\n [id]="focusableId"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.tabindex]="disabled ? undefined : tabindex"\n [value]="value"\n [attr.placeholder]="placeholder"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}"\n />\n <span\n role="button"\n class="k-clear-value"\n *ngIf="showClearButton"\n (click)="clearValue()"\n (mousedown)="$event.preventDefault()"\n [tabindex]="tabIndex"\n [attr.aria-label]="clearTitle()"\n [title]="clearTitle()"\n (keydown.enter)="clearValue($event)"\n (keydown.space)="clearValue($event)">\n <span [ngClass]="clearButtonClasses"></span>\n </span>\n <span *ngIf="hasErrors" [ngClass]="errorIconClasses"></span>\n <span *ngIf="isSuccessful" [ngClass]="successIconClasses"></span>\n <span class="k-input-suffix">\n <ng-template\n *ngIf="suffixTemplate"\n [ngTemplateOutlet]="suffixTemplate?.templateRef">\n </ng-template>\n </span>\n '}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],e)}(),kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clear",void 0),t}(xn.ComponentMessages),wc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:kc,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textbox-messages",template:""}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(kc),Sc=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:kc,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoTextBoxLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(kc),Ec=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-input-separator"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-input-separator, kendo-textbox-separator",template:""})],e)}(),xc=[Ec,Ts],Ic=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[xc],exports:[xc]})],e)}(),Dc=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Ps,Cc,Oc,jc,wc,Sc],exports:[Ps,Cc,Oc,jc,In.EventsModule,wc,Sc,xc],imports:[r.CommonModule,In.EventsModule,Ic]})],e)}(),Pc=function(){function e(e,t,n,i,r,a){var s=this;this.localizationService=e,this.ngZone=t,this.changeDetector=n,this.renderer=i,this.injector=r,this.hostElement=a,this.title="",this.disabled=!1,this.readonly=!1,this.value=null,this.selectOnFocus=!1,this.inputFocus=new o.EventEmitter,this.inputBlur=new o.EventEmitter,this.subscriptions=new we.Subscription,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputBlur=function(){s.changeDetector.markForCheck(),(Object(In.hasObservers)(s.inputBlur)||La(s.control))&&s.ngZone.run((function(){s.ngTouched(),s.inputBlur.emit()}))},this.ngChange=function(e){},this.ngTouched=function(){}}return Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.setDisabledState=function(e){this.changeDetector.markForCheck(),this.disabled=e},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"title",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"selectOnFocus",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"placeholder",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputFocus",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"inputBlur",void 0),Object(i.__decorate)([Object(o.ViewChild)("input",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"input",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),e}(),Tc={vertical:"k-resize-vertical",horizontal:"k-resize-horizontal",both:"k-resize-both",none:"k-resize-none",auto:"k-resize-none"},Mc=function(e){function t(t,n,i,r,a,s){var c=e.call(this,t,n,i,r,a,s)||this;return c.localizationService=t,c.ngZone=n,c.changeDetector=i,c.renderer=r,c.injector=a,c.hostElement=s,c.focusableId="k-"+Object(In.guid)(),c.hostClasses=!0,c.flow="vertical",c.tabindex=0,c.resizable="vertical",c.onFocus=new o.EventEmitter,c.onBlur=new o.EventEmitter,c.valueChange=new o.EventEmitter,c._size="medium",c._rounded="medium",c._fillMode="solid",c.handleInput=function(e){var t=e.target.value;c.updateValue(t),c.resize()},c.handleInputFocus=function(){c.disabled||(c.selectOnFocus&&c.value&&c.ngZone.run((function(){setTimeout((function(){c.selectAll()}))})),Object(In.hasObservers)(c.onFocus)&&(c.isFocused||c.ngZone.run((function(){c.onFocus.emit()}))),Object(In.hasObservers)(c.inputFocus)&&(c.focusChangedProgrammatically||c.ngZone.run((function(){c.inputFocus.emit()}))),c.ngZone.run((function(){c.isFocused=!0})))},Object(Dn.validatePackage)(ks),c.direction=t.rtl?"rtl":"ltr",c}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"flowCol",{get:function(){return"vertical"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flowRow",{get:function(){return"horizontal"===this.flow},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabIndex",{get:function(){return this.tabindex},set:function(e){this.tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var e=this,t=this.hostElement.nativeElement,n=!1,i=!1;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.isFocused||e.ngZone.run((function(){e.onFocus.emit(),e.isFocused=!0}))}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){e.isFocused&&(i?(Cs(t.relatedTarget,(function(t){return t===e.hostElement.nativeElement}))||e.handleBlur(),i=!1):n||e.handleBlur())}))),e.subscriptions.add(e.renderer.listen(t,"mouseenter",(function(){n=!0}))),e.subscriptions.add(e.renderer.listen(t,"mouseleave",(function(){n=!1}))),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(e){i=e.keyCode===In.Keys.Tab})))}));["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)}))},t.prototype.ngOnInit=function(){var e=this;this.control=this.injector.get(Ve,null),Object(In.isDocumentAvailable)()&&"auto"===this.resizable&&(this.resizeSubscription=Object(we.fromEvent)(window,"resize").pipe(Object(Se.debounceTime)(50)).subscribe((function(){return e.resize()}))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.subscriptions=this.localizationService.changes.subscribe((function(t){var n=t.rtl;e.direction=n?"rtl":"ltr"}))},t.prototype.ngOnChanges=function(e){var t=this.hostElement.nativeElement,n=this.input.nativeElement;e.resizable&&("auto"===this.resizable?this.initialHeight=n.offsetHeight:(this.renderer.setStyle(n,"overflow-y","auto"),this.renderer.setStyle(n,"resize","both"),n.style.height=this.initialHeight+"px")),e.cols&&(za(e.cols.currentValue)?this.renderer.setStyle(t,"width","auto"):this.renderer.removeStyle(t,"width"))},t.prototype.ngAfterViewChecked=function(){this.resize()},t.prototype.writeValue=function(e){this.value=e},t.prototype.registerOnChange=function(e){this.ngChange=e},t.prototype.registerOnTouched=function(e){this.ngTouched=e},t.prototype.updateValue=function(e){var t=this;Ha(this.value,e)||this.ngZone.run((function(){t.value=e,t.ngChange(e),t.valueChange.emit(e),t.changeDetector.markForCheck()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.resizeSubscription&&this.resizeSubscription.unsubscribe()},Object.defineProperty(t.prototype,"resizableClass",{get:function(){return Tc[this.resizable]},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input&&(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)},t.prototype.blur=function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1},t.prototype.resize=function(){if("auto"===this.resizable){var e=this.input.nativeElement;this.renderer.setStyle(e,"overflow-y","hidden"),this.renderer.setStyle(e,"height",this.initialHeight+"px");var t=e.scrollHeight;t>this.initialHeight&&(e.style.height=t+"px")}},Object.defineProperty(t.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var t=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(t,"k-focus"):this.renderer.removeClass(t,"k-focus"),this._isFocused=e}},enumerable:!0,configurable:!0}),t.prototype.handleBlur=function(){var e=this;this.ngZone.run((function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1}))},t.prototype.setSelection=function(e,t){this.isFocused&&js(this.input,"setSelectionRange",e,t)},t.prototype.selectAll=function(){this.value&&this.setSelection(0,this.value.length)},t.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=Ua("input",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea"),Object(o.HostBinding)("class.k-input"),Object(i.__metadata)("design:type",Boolean)],t.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-col"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowCol",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-flex-row"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],t.prototype,"flowRow",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flow",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"rows",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"cols",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"maxlength",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],t.prototype,"tabindex",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],t.prototype,"tabIndex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"resizable",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"size",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"rounded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],t.prototype,"fillMode",null),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],t.prototype,"valueChange",void 0),t=n=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextArea",providers:[xn.LocalizationService,{provide:xn.L10N_PREFIX,useValue:"kendo.textarea"},{provide:Ee,useExisting:Object(o.forwardRef)((function(){return n})),multi:!0},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-textarea",template:'\n <textarea\n #input\n [attr.aria-multiline]="true"\n [attr.aria-disabled]="disabled ? true : undefined"\n [attr.aria-readonly]="readonly ? true : undefined"\n class="k-input-inner"\n [ngClass]="resizableClass"\n [id]="focusableId"\n [value]="value"\n [attr.placeholder]="placeholder"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [attr.tabindex]="tabIndex"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [kendoEventsOutsideAngular]="{\n focus: handleInputFocus,\n blur: handleInputBlur,\n input: handleInput}">\n </textarea>\n <ng-content select="kendo-textarea-suffix"></ng-content>\n ',styles:["\n :host(.k-flex-col) {\n flex-direction: column !important;\n }\n :host(.k-flex-row) {\n flex-direction: row !important;\n }\n "]}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService,o.NgZone,o.ChangeDetectorRef,o.Renderer2,o.Injector,o.ElementRef])],t)}(Pc),Ac=function(){function e(){this.hostClass=!0}return Object(i.__decorate)([Object(o.HostBinding)("class.k-textarea-suffix"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),e=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoTextAreaSuffix",selector:"kendo-textarea-suffix",template:"<ng-content></ng-content>"})],e)}(),Nc=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Mc,Ac],exports:[Mc,In.EventsModule,Ac,xc],imports:[r.CommonModule,In.EventsModule,Ic]})],e)}(),Vc=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(i.__extends)(t,e),t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(xn.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(xn.RTL)),Object(i.__metadata)("design:paramtypes",[String,xn.MessageService,Boolean])],t)}(xn.LocalizationService),Bc=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.colorPickerLocalization=o,r}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.colorPickerLocalization?this.colorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(xn.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(xn.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Vc)),Object(i.__metadata)("design:paramtypes",[String,xn.MessageService,Boolean,Vc])],t)}(xn.LocalizationService),Rc={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}},Fc=function(){function e(){}return e.prototype.getPaletteSettings=function(e,t){var n="name"!==t?"office":"accessible",i=e.palette,o="string"==typeof i&&Rc[i]?Rc[i].columns:void 0;return{palette:i||n,tileSize:e.tileSize||24,columns:e.columns||o||10}},e.prototype.paletteTileLayout=function(e){return"number"==typeof e?{width:e,height:e}:{width:e.width?e.width:e.height,height:e.height?e.height:e.width}},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),zc=function(e){function t(t){var n=e.call(this)||this;return n.originalEvent=t,n}return Object(i.__extends)(t,e),t}(In.PreventableEvent),Hc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(In.PreventableEvent),Lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(In.PreventableEvent),Kc=function(){function e(e){this.color=e,this.openPrevented=!1}return e.prototype.preventOpen=function(){this.openPrevented=!0},e.prototype.isOpenPrevented=function(){return this.openPrevented},e}(),Gc=function(e,t,n,i){void 0===n&&(n=!1),void 0===i&&(i=!0);if(-1===["hex","rgba","name"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex', 'rgba' or 'name'.");if(za(e)){if("name"===t)return function(e,t){if(e=e.toLowerCase().trim(),za(Sa[e]))return e;Ba(e,t)&&(e=Ba(e,t).toHex());var n=Object.keys(Sa).find((function(t){return Sa[t]===e}));if(!n&&!t)throw new Error("The provided color "+e+" is not supported for 'format=\"name\"' property.To display "+e+" color, the component 'format' property should be set to 'hex' or 'rgba' ");return n}(e,i);var o=Ba(e.trim(),i);if(za(o))return"hex"===t?Wc(o,n):o.toCssRgba()}},Zc=function(e,t){void 0===t&&(t=!0);var n=Ba(e,t);return za(n)?n.toBytes():{}},Uc=function(e,t,n){void 0===t&&(t="rgba"),void 0===n&&(n=!1);var i=Ka(e.h,0,359.9),o=Ka(e.s,0,1),r=Ka(e.v,0,1),a=Ka(e.a,0,1),s=Fa.fromHSV(i,o,r,a);return"hex"===t?Wc(s,n):s.toCssRgba()},Wc=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},qc=function(e){return Uc({h:e,s:1,v:1,a:1})};var $c=function(e,t){var n=Ka(e.r,0,255),i=Ka(e.g,0,255),o=Ka(e.b,0,255),r=Ka(e.a,0,1),a=Ka(t.r,0,255),s=Ka(t.g,0,255),c=Ka(t.b,0,255);return{r:Math.round((1-r)*a+r*n),g:Math.round((1-r)*s+r*i),b:Math.round((1-r)*c+r*o)}},Xc=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},Yc=function(e,t){return n=Xc($c(e,t)),i=Xc($c(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},Jc=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},Qc=function(e,t){return 0===e.length?"":e.reduce((function(e,n,i,o){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,o)}),"")},el=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.flatColorPickerLocalization=o,r}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(xn.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(xn.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Bc)),Object(i.__metadata)("design:paramtypes",[String,xn.MessageService,Boolean,Bc])],t)}(xn.LocalizationService),tl=function(){function e(e,t,n){this.host=e,this.renderer=t,this.localizationService=n,this.focusableId="k-"+Object(In.guid)(),this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new o.EventEmitter,this.colorInputClass=!0,this.rgba={},this.subscriptions=new we.Subscription}return Object.defineProperty(e.prototype,"isFocused",{get:function(){if(!Object(In.isDocumentAvailable)()||!za(this.host))return!1;var e=document.activeElement;return this.host.nativeElement.contains(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgbaInputValid",{get:function(){var e=this;return Object.keys(this.rgba).every((function(t){return za(e.rgba[t])}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.initDomEvents()},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.ngOnChanges=function(e){za(e.value)&&!this.isFocused&&(this.hex=Gc(this.value,"hex",this.opacity),this.rgba=Zc(this.value),this.rgba.a=Gc(this.value,"rgba",this.opacity)?this.rgba.a:1)},Object.defineProperty(e.prototype,"formatButtonTitle",{get:function(){return this.localizationService.get("formatButton")},enumerable:!0,configurable:!0}),e.prototype.handleRgbaValueChange=function(){var e,t,n,i,o,r=(e=this.rgba,t=Ka(e.r,0,255),n=Ka(e.g,0,255),i=Ka(e.b,0,255),o=Ka(e.a,0,1),Fa.fromBytes(t,n,i,o).toCssRgba());this.rgbaInputValid&&r!==this.value&&(this.value=r,this.rgba=Zc(this.value),this.hex=Gc(r,"hex",this.opacity),this.valueChange.emit(r))},e.prototype.handleHexValueChange=function(e){this.hex=e;var t=Gc(e,"rgba",this.opacity);za(t)&&t!==this.value&&(this.value=t,this.rgba=Zc(t),this.valueChange.emit(t))},e.prototype.handleRgbaInputBlur=function(){this.rgbaInputValid||(this.rgba=Zc(this.value))},e.prototype.handleHexInputBlur=function(){this.hex=Gc(this.value,"hex",this.opacity)},e.prototype.toggleFormatView=function(){this.formatView="hex"===this.formatView?"rgba":"hex"},e.prototype.initDomEvents=function(){var e=this;this.host&&this.subscriptions.add(this.renderer.listen(this.toggleFormatButton.nativeElement,"click",(function(){return e.toggleFormatView()})))},Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"focusableId",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"formatView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorgradient-inputs"),Object(o.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"colorInputClass",void 0),Object(i.__decorate)([Object(o.ViewChild)("opacityInput",{static:!1}),Object(i.__metadata)("design:type",Ls)],e.prototype,"opacityInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("hexInput",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"hexInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("blueInput",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"blueInput",void 0),Object(i.__decorate)([Object(o.ViewChild)("toggleFormatButton",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"toggleFormatButton",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-colorinput",template:'\n <div class="k-vstack">\n <button #toggleFormatButton\n class="k-colorgradient-toggle-mode k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.aria-label]="formatButtonTitle"\n [attr.title]="formatButtonTitle"\n >\n <span class="k-button-icon k-icon k-i-arrows-kpi"></span>\n </button>\n </div>\n <div *ngIf="formatView === \'hex\'" class="k-vstack">\n <input\n #hexInput\n [id]="focusableId"\n class="k-input k-textbox k-input-solid k-input-md k-rounded-md k-hex-value"\n [disabled]="disabled"\n [readonly]="readonly"\n [value]="hex || \'\'"\n (blur)="handleHexInputBlur()"\n (input)="handleHexValueChange(hexInput.value)"\n />\n <label [for]="focusableId" class="k-colorgradient-input-label">HEX</label>\n </div>\n <ng-container *ngIf="formatView === \'rgba\'">\n <div class="k-vstack">\n <kendo-numerictextbox\n #red\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.r"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="red.focusableId" class="k-colorgradient-input-label">R</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #green\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.g"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="green.focusableId" class="k-colorgradient-input-label">G</label>\n </div>\n <div class="k-vstack">\n <kendo-numerictextbox\n #blue\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="255"\n [(value)]="rgba.b"\n [autoCorrect]="true"\n [spinners]="false"\n [format]="\'n\'"\n [decimals]="0"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="blue.focusableId" class="k-colorgradient-input-label">B</label>\n </div>\n <div class="k-vstack" *ngIf="opacity">\n <kendo-numerictextbox #opacityInput\n #alpha\n [disabled]="disabled"\n [readonly]="readonly"\n [min]="0"\n [max]="1"\n [(value)]="rgba.a"\n [autoCorrect]="true"\n [spinners]="false"\n [step]="0.01"\n [format]="\'n2\'"\n [decimals]="2"\n (blur)="handleRgbaInputBlur()"\n (valueChange)="handleRgbaValueChange()">\n </kendo-numerictextbox>\n <label [for]="alpha.focusableId" class="k-colorgradient-input-label">A</label>\n </div>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.Renderer2,xn.LocalizationService])],e)}(),nl=0,il=function(){function e(e,t,n,i,r){var a=this;this.host=e,this.ngZone=t,this.renderer=n,this.cdr=i,this.localizationService=r,this.hostClasses=!0,this.id="k-colorgradient-"+nl++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.delay=0,this.format="rgba",this.valueChange=new o.EventEmitter,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva=new we.BehaviorSubject({}),this._tabindex=0,this.listeners=[],this.updateValues=new we.Subject,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(Dn.validatePackage)(ks),this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Gc(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastTool",{get:function(){return this._contrastTool},set:function(e){this._contrastTool=Gc(e,this.format,this.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){if(za(e)){var t=Number(e);this._tabindex=isNaN(t)?0:t}else this._tabindex=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!(!Object(In.isDocumentAvailable)()||!za(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alphaSliderValue",{get:function(){if(za(this.hsva.value)&&za(this.hsva.value.a))return 100*this.hsva.value.a},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientRect",{get:function(){return this.gradientWrapper.nativeElement.getBoundingClientRect()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastToolVisible",{get:function(){return this.contrastTool&&this.contrastTool.length>0},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners(),this.subscribeChanges()},e.prototype.ngOnChanges=function(e){Object(In.isChanged)("value",e)&&!this.isFocused&&this.updateUI(),Object(In.isChanged)("delay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())},e.prototype.ngOnDestroy=function(){this.listeners.forEach((function(e){return e()})),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.unsubscribeChanges()},e.prototype.focus=function(){this.disabled||this.gradientDragHandle.nativeElement.focus()},e.prototype.reset=function(){this.handleValueChange(void 0),this.updateUI(),this.host.nativeElement.focus()},e.prototype.handleDragPress=function(e){this.disabled||this.readonly||!za(e.originalEvent)||(this.focus(),e.originalEvent.preventDefault())},e.prototype.onHandleDrag=function(e){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(e))},e.prototype.onHandleRelease=function(){this.disabled||this.readonly||(this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging"),this.handleValueChange(Uc(this.hsva.value,this.format,this.opacity)))},e.prototype.onKeyboardAction=function(e){var t=this;if(!this.disabled&&!this.readonly&&e.key&&-1!==e.key.indexOf("Arrow")){e.preventDefault();var n=this.gradientDragHandle.nativeElement;this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging");var i=0,o=0;switch(e.key){case"ArrowRight":i=5;break;case"ArrowLeft":i=-5;break;case"ArrowUp":o=-5;break;case"ArrowDown":o=5}var r=parseInt(n.style.top,10)+o,a=parseInt(n.style.left,10)+i;this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",a+"px"),this.ngZone.run((function(){return t.moveDragHandle(a,r)}))}},e.prototype.changePosition=function(e){var t=this;if(!this.disabled&&!this.readonly){this.gradientDragHandle.nativeElement.focus();var n=this.gradientRect,i=e.clientX-n.left,o=e.clientY-n.top;this.ngZone.run((function(){return t.moveDragHandle(i,o)}))}},e.prototype.handleHueSliderChange=function(e){var t=this.hsva.value;t.h=e,this.hsva.next(t),this.handleValueChange(Uc(this.hsva.value,this.format,this.opacity)),this.backgroundColor=qc(e),this.setAlphaSliderBackground(this.backgroundColor)},e.prototype.handleAlphaSliderChange=function(e){var t=this.hsva.value;t.a=e/100,this.hsva.next(t),this.handleValueChange(Uc(this.hsva.value,this.format,this.opacity))},e.prototype.handleInputsValueChange=function(e){var t=Gc(e,this.format,this.opacity);this.value!==t&&(this.handleValueChange(t),this.updateUI())},e.prototype.writeValue=function(e){this.value=e,za(this.gradientWrapper)&&this.updateUI()},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},Object.defineProperty(e.prototype,"colorGradientHandleTitle",{get:function(){return this.localizationService.get("colorGradientHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorGradientHandleAriaLabel",{get:function(){var e=Gc(this.value,this.format,this.opacity);return""+(this.value?e:this.localizationService.get("colorGradientHandle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hueSliderTitle",{get:function(){return this.localizationService.get("hueSliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacitySliderTitle",{get:function(){return this.localizationService.get("opacitySliderHandle")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearButtonTitle",{get:function(){return this.localizationService.get("clearButton")},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.moveDragHandle=function(e,t){var n=this.gradientRect,o=n.width,r=n.height,a=Ka(t,0,r),s=Ka(e,0,o);this.setDragHandleElementPosition(a,s);var c=this.hsva.value;c.s=s/o,c.v=1-a/r,this.hsva.next(c),this.updateValues.next(Uc(this.hsva.value,this.format,this.opacity)),this.setAlphaSliderBackground(Uc(Object(i.__assign)({},this.hsva.value,{a:1}),this.format,this.opacity))},e.prototype.updateUI=function(){if(Object(In.isDocumentAvailable)()){this.hsva.next(this.value?function(e,t){void 0===t&&(t=!0);var n=Ba(e,t);return za(n)?n.toHSV():{}}(this.value):{h:0,s:0,v:1,a:1});var e=this.gradientRect,t=(1-this.hsva.value.v)*e.height,n=this.hsva.value.s*e.width;this.setDragHandleElementPosition(t,n),this.backgroundColor=qc(this.hsva.value.h),this.setAlphaSliderBackground(this.backgroundColor),this.setHostElementAriaLabel()}},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setDragHandleElementPosition=function(e,t){var n=this.gradientDragHandle.nativeElement;this.renderer.setStyle(n,"top",e+"px"),this.renderer.setStyle(n,"left",t+"px")},e.prototype.setAlphaSliderBackground=function(e){if(za(this.alphaSlider)){var t=this.alphaSlider.track.nativeElement;this.renderer.setStyle(t,"background","linear-gradient(to top, transparent, "+e+")")}},e.prototype.setHostElementAriaLabel=function(){var e=Gc(this.value,this.format,this.opacity);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorGradientNoColor")))},e.prototype.addEventListeners=function(){var e=this;this.ngZone.runOutsideAngular((function(){var t=e.renderer.listen(e.host.nativeElement,"focusout",(function(t){var n,i,o;i=e.host.nativeElement,o=t.relatedTarget,(!i||!o||i!==o&&!i.contains(o))&&((n=e.host)&&n.nativeElement&&Os(n.nativeElement,"ng-untouched"))&&e.ngZone.run((function(){return e.notifyNgTouched()}))})),n=e.renderer.listen(e.gradientDragHandle.nativeElement,"keydown",(function(t){e.onKeyboardAction(t)})),i=e.renderer.listen(e.gradientDragHandle.nativeElement,"keyup",(function(){e.renderer.removeClass(e.gradientWrapper.nativeElement,"k-dragging"),e.readonly||e.disabled||e.ngZone.run((function(){return e.handleValueChange(Uc(e.hsva.value,e.format,e.opacity))}))})),o=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusin",(function(){e.renderer.addClass(e.gradientDragHandle.nativeElement,"k-state-focus")})),r=e.renderer.listen(e.gradientDragHandle.nativeElement,"focusout",(function(){e.renderer.removeClass(e.gradientDragHandle.nativeElement,"k-state-focus")}));e.listeners.push(t,n,i,o,r)}))},e.prototype.subscribeChanges=function(){var e=this;this.changeRequestsSubscription=this.updateValues.pipe(Object(Se.throttleTime)(this.delay)).subscribe((function(t){e.handleValueChange(t)}))},e.prototype.unsubscribeChanges=function(){this.changeRequestsSubscription&&this.changeRequestsSubscription.unsubscribe()},Object(i.__decorate)([Object(o.HostBinding)("class.k-colorgradient"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"gradientId",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"opacity",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number)],e.prototype,"delay",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"contrastTool",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientDragHandle",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientDragHandle",void 0),Object(i.__decorate)([Object(o.ViewChild)("inputs",{static:!1}),Object(i.__metadata)("design:type",tl)],e.prototype,"inputs",void 0),Object(i.__decorate)([Object(o.ViewChild)("alphaSlider",{static:!1}),Object(i.__metadata)("design:type",Es)],e.prototype,"alphaSlider",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradientWrapper",{static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"gradientWrapper",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoColorGradient",selector:"kendo-colorgradient",providers:[{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},el,{provide:xn.LocalizationService,useExisting:el},{provide:xn.L10N_PREFIX,useValue:"kendo.colorgradient"}],template:'\n <ng-container kendoColorGradientLocalizedMessages\n i18n-colorGradientNoColor="kendo.colorgradient.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorGradientHandle="kendo.colorgradient.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorgradient.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorgradient.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorgradient.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-passContrast="kendo.colorgradient.passContrast|The pass message for the contrast tool."\n passContrast="Pass"\n i18n-failContrast="kendo.colorgradient.failContrast|The fail message for the contrast tool."\n failContrast="Fail"\n i18n-contrastRatio="kendo.colorgradient.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-formatButton="kendo.colorgradient.formatButton|The message for the input format toggle button."\n formatButton="Change color format">\n </ng-container>\n <div class="k-colorgradient-canvas k-hstack">\n <div class="k-hsv-rectangle" [style.background]="backgroundColor">\n <div\n #gradientWrapper\n kendoDraggable\n class="k-hsv-gradient"\n (click)="changePosition($event)"\n (kendoPress)="handleDragPress($event)"\n (kendoDrag)="onHandleDrag($event)"\n (kendoRelease)="onHandleRelease()">\n <div\n #gradientDragHandle\n class="k-hsv-draghandle k-draghandle"\n tabindex="0"\n [attr.title]="colorGradientHandleTitle"\n [attr.aria-label]="colorGradientHandleAriaLabel"\n >\n </div>\n </div>\n <svg kendoColorContrastSvg\n *ngIf="contrastToolVisible && gradientWrapper"\n class="k-color-contrast-svg"\n xmlns="http://www.w3.org/2000/svg"\n [wrapper]="gradientWrapper ? gradientWrapper : undefined"\n [hsva]="hsva"\n [backgroundColor]="contrastTool">\n </svg>\n </div>\n <div class="k-hsv-controls k-hstack {{ clearButton ? \'k-sliders-wrap-clearable\' : \'\' }}">\n <span class="k-clear-color k-button k-button-md k-button-flat k-button-flat-base k-button-icon"\n *ngIf="clearButton"\n (click)="reset()"\n (keydown.enter)="reset()"\n (keydown.space)="reset()"\n [attr.aria-label]="clearButtonTitle"\n [attr.title]="clearButtonTitle"\n tabindex="0">\n <span class="k-icon k-i-reset-color"></span>\n </span>\n <kendo-slider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-hue-slider k-colorgradient-slider"\n [dragHandleTitle]="hueSliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="360"\n [smallStep]="5"\n [largeStep]="10"\n [value]="hsva.value.h"\n (valueChange)="handleHueSliderChange($event)"\n >\n </kendo-slider>\n <kendo-slider\n *ngIf="opacity"\n #alphaSlider\n [ngClass]="{\'k-align-self-end\': clearButton}"\n class="k-alpha-slider k-colorgradient-slider"\n [dragHandleTitle]="opacitySliderTitle"\n [disabled]="disabled"\n [readonly]="readonly"\n [showButtons]="false"\n [tickPlacement]="\'none\'"\n [vertical]="true"\n [min]="0"\n [max]="100"\n [smallStep]="1"\n [largeStep]="10"\n [value]="alphaSliderValue"\n (valueChange)="handleAlphaSliderChange($event)"\n >\n </kendo-slider>\n </div>\n </div>\n <kendo-colorinput #inputs\n [opacity]="opacity"\n [formatView]="format"\n [value]="value"\n [disabled]="disabled"\n [readonly]="readonly"\n (valueChange)="handleInputsValueChange($event)"\n >\n </kendo-colorinput>\n <div class="k-colorgradient-color-contrast k-vbox" *ngIf="contrastToolVisible"\n kendoContrastTool\n [value]="value"\n [ratio]="contrastTool">\n </div>\n ',styles:["\n .k-clear-color {\n position: absolute;\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n .k-colorgradient-slider.k-align-self-end {\n height: 140px;\n }\n\n .k-color-contrast-svg {\n position: absolute;\n overflow: visible;\n pointer-events: none;\n left: 0px;\n top: 0px;\n }\n "]}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone,o.Renderer2,o.ChangeDetectorRef,xn.LocalizationService])],e)}(),ol=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i)||this;return r.flatColorPickerLocalization=o,r}return Object(i.__extends)(t,e),t.prototype.get=function(t){return this.flatColorPickerLocalization?this.flatColorPickerLocalization.get(t):e.prototype.get.call(this,t)},t=Object(i.__decorate)([Object(i.__param)(0,Object(o.Inject)(xn.L10N_PREFIX)),Object(i.__param)(1,Object(o.Optional)()),Object(i.__param)(2,Object(o.Optional)()),Object(i.__param)(2,Object(o.Inject)(xn.RTL)),Object(i.__param)(3,Object(o.Optional)()),Object(i.__param)(3,Object(o.Inject)(Bc)),Object(i.__metadata)("design:paramtypes",[String,xn.MessageService,Boolean,Bc])],t)}(xn.LocalizationService),rl=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],za(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.getCellCoordsFor=function(e){if(za(e))for(var t=0;t<this.colorRows.length;t++)for(var n=0;n<this.colorRows[t].length;n++)if(this.colorRows[t][n]===e)return{row:t,col:n}},e.prototype.getColorAt=function(e){if(za(e)&&za(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(za(e)&&za(e.row)&&za(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e=Object(i.__decorate)([Object(o.Injectable)()],e)}(),al=0,sl=function(){function e(e,t,n,i,r){var a=this;this.host=e,this.service=t,this.cdr=n,this.renderer=i,this.localizationService=r,this.id="k-colorpalette-"+al++,this.format="hex",this.disabled=!1,this.readonly=!1,this.tileSize={width:24,height:24},this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.cellSelection=new o.EventEmitter,this.hostClasses=!0,this.uniqueId=Object(In.guid)(),this._tabindex=0,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},Object(Dn.validatePackage)(ks),this.dynamicRTLSubscription=r.changes.subscribe((function(e){var t=e.rtl;a.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"paletteId",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Gc(e,this.format)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e>1?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"palette",{get:function(){return this._palette},set:function(e){var t=this;za(e)||(e="office"),"string"==typeof e&&za(Rc[e])&&(this.columns=this.columns||Rc[e].columns,e=Rc[e].colors);var n="string"==typeof e?e.split(","):e;this._palette=n.map((function(e){return Gc(e,t.format,!1,!1)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tileLayout",{get:function(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorRows",{get:function(){return this.service.colorRows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonlyAttribute",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){if(0===this.colorRows.length){var e="name"!==this.format?"office":"accessible";this.palette=this.palette||e,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()},e.prototype.ngOnChanges=function(e){(e.palette||e.columns)&&this.setRows(),(e.palette||e.value||e.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value),this.setHostElementAriaLabel())},e.prototype.handleKeydown=function(e){var t="rtl"===this.direction;switch(e.keyCode){case In.Keys.ArrowDown:this.handleCellNavigation(0,1);break;case In.Keys.ArrowUp:this.handleCellNavigation(0,-1);break;case In.Keys.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case In.Keys.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case In.Keys.Enter:this.handleEnter();break;default:return}e.preventDefault()},e.prototype.handleHostBlur=function(){this.notifyNgTouched(),this.handleCellFocusOnBlur()},e.prototype.handleCellSelection=function(e,t){if(!this.readonly){this.selectedCell=t,this.focusedCell=this.selectedCell,this.focusInComponent=!0;var n=Gc(e,this.format,!1,!1);this.cellSelection.emit(n),this.handleValueChange(n),this.selection!==n&&(this.selection=n,this.selectionChange.emit(n)),t&&(this.activeCellId="k-"+this.selectedCell.row+"-"+this.selectedCell.col+"-"+this.uniqueId)}},e.prototype.writeValue=function(e){this.value=e,this.focusedCell=this.service.getCellCoordsFor(this.value)},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.isEmpty=function(){return!1},e.prototype.reset=function(){this.focusedCell=null,za(this.value)&&this.handleValueChange(void 0),this.selectedCell=void 0},e.prototype.handleValueChange=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.handleCellFocusOnBlur=function(){this.focusInComponent=!1,this.focusedCell=this.selectedCell},e.prototype.setRows=function(){za(this.palette)&&(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))},e.prototype.handleCellNavigation=function(e,t){this.readonly||(this.focusedCell=this.service.getNextCell(this.focusedCell,e,t),this.focusInComponent=!0)},e.prototype.setHostElementAriaLabel=function(){var e=Gc(this.value,this.format);this.renderer.setAttribute(this.host.nativeElement,"aria-label",""+(this.value?e:this.localizationService.get("colorPaletteNoColor")))},e.prototype.handleEnter=function(){if(za(this.focusedCell)){var e=this.service.getColorAt(this.focusedCell);this.handleCellSelection(e,this.focusedCell)}},Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"paletteId",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"id",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"columns",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"palette",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"tileSize",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"selectionChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"cellSelection",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-colorpalette"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-state-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"readonlyAttribute",null),Object(i.__decorate)([Object(o.HostListener)("keydown",["$event"]),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[Object]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleKeydown",null),Object(i.__decorate)([Object(o.HostListener)("blur"),Object(i.__metadata)("design:type",Function),Object(i.__metadata)("design:paramtypes",[]),Object(i.__metadata)("design:returntype",void 0)],e.prototype,"handleHostBlur",null),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoColorPalette",selector:"kendo-colorpalette",providers:[{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},rl,ol,{provide:xn.LocalizationService,useExisting:ol},{provide:xn.L10N_PREFIX,useValue:"kendo.colorpalette"}],template:'\n <ng-container kendoColorPaletteLocalizedMessages\n i18n-colorPaletteNoColor="kendo.colorpalette.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen">\n </ng-container>\n <div role="listbox" class="k-colorpalette-table-wrap"\n [attr.aria-activedescendant]="activeCellId">\n <table class="k-colorpalette-table k-palette">\n <tbody>\n <tr *ngFor="let row of colorRows; let rowIndex = index">\n <td *ngFor="let color of row; let colIndex = index"\n role="option"\n [class.k-state-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [class.k-state-focus]="focusInComponent && focusedCell?.row === rowIndex && focusedCell?.col === colIndex"\n [attr.aria-selected]="selectedCell?.row === rowIndex && selectedCell?.col === colIndex"\n [attr.aria-label]="color"\n class="k-colorpalette-tile"\n [id]="\'k-\' + rowIndex + \'-\' + colIndex + \'-\' + uniqueId"\n [attr.value]="color"\n (click)="handleCellSelection(color, { row: rowIndex, col: colIndex })"\n [ngStyle]="{\n backgroundColor: color,\n width: tileLayout.width + \'px\',\n height: tileLayout.height + \'px\',\n minWidth: tileLayout.width + \'px\'\n }">\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,rl,o.ChangeDetectorRef,o.Renderer2,xn.LocalizationService])],e)}(),cl=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.viewChange=new o.EventEmitter,this.valuePaneClick=new o.EventEmitter,this.clearButtonClick=new o.EventEmitter}return e.prototype.onViewButtonClick=function(e){this.activeView=e,this.viewChange.emit(e)},Object.defineProperty(e.prototype,"viewButtons",{get:function(){return this.views&&this.views.indexOf("gradient")>=0&&this.views.indexOf("palette")>=0},enumerable:!0,configurable:!0}),e.prototype.getViewButtonIcon=function(e){return"gradient"===e?"k-i-color-canvas":"k-i-palette"},e.prototype.getText=function(e){return this.localizationService.get(e)},Object(i.__decorate)([Object(o.HostBinding)("class.k-coloreditor-header"),Object(o.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"selection",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"viewChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valuePaneClick",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"clearButtonClick",void 0),Object(i.__decorate)([Object(o.ViewChildren)("viewButtons",{read:o.ElementRef}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"viewButtonsCollection",void 0),Object(i.__decorate)([Object(o.ViewChild)("clearButton",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"clearButtonElement",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoFlatColorPickerHeader]",template:'\n <div class="k-coloreditor-header-actions k-hstack">\n <div *ngIf="viewButtons" class="k-button-group k-button-group-flat">\n <button *ngFor="let view of views"\n #viewButtons\n (click)="onViewButtonClick(view)"\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button"\n [attr.title]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-label]="getText(view === \'gradient\' ? \'gradientView\' : \'paletteView\')"\n [attr.aria-pressed]="activeView === view"\n [ngClass]="activeView === view ? \'k-state-selected\' : \'\'"\n >\n <span\n class="k-button-icon k-icon"\n [ngClass]="getViewButtonIcon(view)">\n </span>\n </button>\n </div>\n </div>\n <div class="k-spacer"></div>\n <div class="k-coloreditor-header-actions k-hstack">\n <button *ngIf="clearButton"\n #clearButton\n class="k-button k-button-md k-button-flat k-button-flat-base k-icon-button k-coloreditor-reset"\n [attr.aria-label]="getText(\'clearButton\')"\n [attr.title]="getText(\'clearButton\')"\n (click)="clearButtonClick.emit()">\n <span class="k-button-icon k-icon k-i-reset-color"></span>\n </button>\n <div class="k-coloreditor-preview k-vstack" *ngIf="preview">\n <span\n class="k-coloreditor-preview-color k-color-preview"\n [attr.title]="getText(\'previewColor\')"\n [style.background-color]="selection">\n </span>\n <span class="k-coloreditor-current-color k-color-preview"\n [style.background-color]="value"\n [attr.title]="getText(\'revertSelection\')"\n (click)="valuePaneClick.emit($event)">\n </span>\n </div>\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],e)}(),ll=function(){function e(e){this.localizationService=e,this.hostClasses=!0,this.actionButtonClick=new o.EventEmitter}return e.prototype.getText=function(e){return this.localizationService.get(e)},e.prototype.onActionButtonClick=function(e,t){var n={target:e,originalEvent:t};this.actionButtonClick.emit(n)},Object(i.__decorate)([Object(o.HostBinding)("class.k-coloreditor-footer"),Object(o.HostBinding)("class.k-actions"),Object(o.HostBinding)("class.k-hstack"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"actionButtonClick",void 0),Object(i.__decorate)([Object(o.ViewChild)("last",{read:o.ElementRef,static:!1}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"lastButton",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoFlatColorPickerActionButtons]",template:"\n <button\n class=\"k-coloreditor-cancel k-button k-button-md k-button-solid k-button-solid-base\"\n [attr.title]=\"getText('cancelButton')\"\n (click)=\"onActionButtonClick('cancel', $event)\"\n >{{getText('cancelButton')}}</button>\n <button #last\n class=\"k-coloreditor-apply k-button k-button-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"getText('applyButton')\"\n (click)=\"onActionButtonClick('apply', $event)\"\n >{{getText('applyButton')}}</button>\n "}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],e)}(),dl=function(){function e(e,t,n,i,r,a){var s=this;this.host=e,this.service=t,this.localizationService=n,this.cdr=i,this.renderer=r,this.ngZone=a,this.hostClasses=!0,this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!0,this.actionsLayout="end",this.views=["gradient","palette"],this.valueChange=new o.EventEmitter,this.cancel=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.actionButtonClick=new o.EventEmitter,this._tabindex=0,this._gradientSettings={opacity:!0,delay:0},this._paletteSettings={},this.subscriptions=new we.Subscription,this.notifyNgChanged=function(){},this.notifyNgTouched=function(){},Object(Dn.validatePackage)(ks),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Gc(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.selection=this.value,this._paletteSettings=this.service.getPaletteSettings(this._paletteSettings,this.format),this.setActiveView()},e.prototype.ngAfterViewInit=function(){this.setHostElementAriaLabel(),this.initDomEvents(),this.setSizingVariables()},e.prototype.ngOnChanges=function(e){Object(In.isChanged)("value",e)&&this.setHostElementAriaLabel(),Object(In.isChanged)("paletteSettings",e)&&this.setSizingVariables()},e.prototype.ngOnDestroy=function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe()},Object.defineProperty(e.prototype,"headerHasContent",{get:function(){return this.preview||this.views.length>1||this.clearButton},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return!1},e.prototype.focus=function(){this.disabled&&this.focused||(this.host.nativeElement.focus(),this.focused=!0)},e.prototype.blur=function(){this.focused&&(this.notifyNgTouched(),this.host.nativeElement.blur(),this.focused=!1)},e.prototype.reset=function(){za(this.value)&&(this.value=void 0,this.notifyNgChanged(void 0),this.setHostElementAriaLabel())},e.prototype.onViewChange=function(e){var t=this;this.activeView!==e&&(this.activeView=e,this.activeViewChange.emit(e),"gradient"===this.activeView&&this.ngZone.runOutsideAngular((function(){setTimeout((function(){t.gradient.gradientDragHandle.nativeElement.focus()}))})))},e.prototype.onClearButtonClick=function(){this.resetInnerComponentValue(),this.host.nativeElement.focus()},e.prototype.handleValueChange=function(e){this.value!==e&&(this.preview?this.changeCurrentValue(e):this.setFlatColorPickerValue(e))},e.prototype.onAction=function(e){"apply"===e.target?this.setFlatColorPickerValue(this.selection):this.resetSelection(e.originalEvent),this.actionButtonClick.emit()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.resetSelection=function(e){var t=new zc(e);this.cancel.emit(t),t.isDefaultPrevented()||(this.selection=this.value),this.notifyNgTouched()},e.prototype.setHostElementAriaLabel=function(){var e=Gc(this.value,this.format,this.gradientSettings.opacity),t=""+(this.value?e:this.localizationService.get("flatColorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",t)},e.prototype.setSizingVariables=function(){var e=this.service.paletteTileLayout(this.paletteSettings.tileSize),t="--kendo-color-preview-columns: "+this.paletteSettings.columns+";\n --kendo-color-preview-width: "+e.width+"px;\n --kendo-color-preview-height: "+e.height+"px;";this.host.nativeElement.querySelector(".k-coloreditor-views.k-vstack").setAttribute("style",t)},e.prototype.changeCurrentValue=function(e){this.selection=e,this.notifyNgTouched()},e.prototype.resetInnerComponentValue=function(){this.selection=null,this.gradient?this.gradient.reset():this.palette.reset()},e.prototype.setFlatColorPickerValue=function(e){this.value!==e&&(this.value=e,this.valueChange.emit(e),this.notifyNgChanged(e),this.setHostElementAriaLabel())},e.prototype.setActiveView=function(){if(za(this.activeView)){if(Object(o.isDevMode)()&&-1===this.views.indexOf(this.activeView))throw new Error("Invalid configuration: The current activeView is not present in the views collection")}else this.activeView=this.views[0]},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focus",(function(){e.focused=!0}))),e.subscriptions.add(e.renderer.listen(t,"blur",(function(){e.focused=!1,e.notifyNgTouched()})))}))}},Object(i.__decorate)([Object(o.HostBinding)("class.k-flatcolorpicker"),Object(o.HostBinding)("class.k-coloreditor"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-state-disabled"),Object(o.HostBinding)("attr.aria-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"actionsLayout",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"actionButtonClick",void 0),Object(i.__decorate)([Object(o.ViewChild)("header",{static:!1}),Object(i.__metadata)("design:type",cl)],e.prototype,"header",void 0),Object(i.__decorate)([Object(o.ViewChild)("gradient",{static:!1}),Object(i.__metadata)("design:type",il)],e.prototype,"gradient",void 0),Object(i.__decorate)([Object(o.ViewChild)("palette",{static:!1}),Object(i.__metadata)("design:type",sl)],e.prototype,"palette",void 0),Object(i.__decorate)([Object(o.ViewChild)("footer",{static:!1}),Object(i.__metadata)("design:type",ll)],e.prototype,"footer",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoFlatColorPicker",selector:"kendo-flatcolorpicker",providers:[{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Fc,Bc,{provide:xn.LocalizationService,useExisting:Bc},{provide:xn.L10N_PREFIX,useValue:"kendo.flatcolorpicker"}],template:'\n <ng-container kendoFlatColorPickerLocalizedMessages\n i18n-flatColorPickerNoColor="kendo.flatcolorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.flatcolorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.flatcolorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.flatcolorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.flatcolorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.flatcolorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.flatcolorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.flatcolorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.flatcolorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.flatcolorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.flatcolorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.flatcolorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.flatcolorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.flatcolorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.flatcolorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <div kendoFlatColorPickerHeader\n *ngIf="headerHasContent"\n #header\n [clearButton]="clearButton"\n [activeView]="activeView"\n [views]="views"\n [value]="value"\n [selection]="selection"\n [preview]="preview"\n (clearButtonClick)="onClearButtonClick()"\n (viewChange)="onViewChange($event)"\n (valuePaneClick)="resetSelection($event)">\n </div>\n <div class="k-coloreditor-views k-vstack">\n <kendo-colorgradient #gradient\n *ngIf="activeView === \'gradient\'"\n [tabindex]="null"\n [value]="selection"\n [format]="format"\n [opacity]="gradientSettings.opacity"\n [delay]="gradientSettings.delay"\n [contrastTool]="gradientSettings.contrastTool"\n [readonly]="readonly"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorgradient>\n <kendo-colorpalette #palette\n *ngIf="activeView === \'palette\'"\n kendoFocusOnDomReady\n [palette]="paletteSettings.palette"\n [columns]="paletteSettings.columns"\n [tileSize]="paletteSettings.tileSize"\n [format]="format"\n [value]="selection"\n (valueChange)="handleValueChange($event)"\n >\n </kendo-colorpalette>\n </div>\n <div kendoFlatColorPickerActionButtons *ngIf="preview"\n #footer\n [ngClass]="\'k-justify-content-\' + actionsLayout"\n (actionButtonClick)="onAction($event)">\n </div>\n'}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,Fc,xn.LocalizationService,o.ChangeDetectorRef,o.Renderer2,o.NgZone])],e)}(),ul=["focus","blur"],pl=function(){function e(e,t,n,i,r,a){var s=this;this.host=e,this.popupService=t,this.cdr=n,this.localizationService=i,this.ngZone=r,this.renderer=a,this.hostClasses=!0,this.role="listbox",this.views=["gradient","palette"],this.readonly=!1,this.disabled=!1,this.format="rgba",this.clearButton=!0,this.preview=!1,this.actionsLayout="end",this.valueChange=new o.EventEmitter,this.open=new o.EventEmitter,this.close=new o.EventEmitter,this.onFocus=new o.EventEmitter,this.onBlur=new o.EventEmitter,this.cancel=new o.EventEmitter,this.activeColorClick=new o.EventEmitter,this.activeViewChange=new o.EventEmitter,this.isFocused=!1,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,delay:0},this._size="medium",this._rounded="medium",this._fillMode="solid",this.subscriptions=new we.Subscription,this.notifyNgTouched=function(){},this.notifyNgChanged=function(){},this.domFocusListener=function(e){return e.stopImmediatePropagation()},Object(Dn.validatePackage)(ks),this.dynamicRTLSubscription=this.localizationService.changes.subscribe((function(e){var t=e.rtl;s.direction=t?"rtl":"ltr"}))}var t;return t=e,Object.defineProperty(e.prototype,"focusedClass",{get:function(){return this.isFocused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaReadonly",{get:function(){return this.readonly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaExpanded",{get:function(){return this.isOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostTabindex",{get:function(){return this.tabindex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"view",{get:function(){return this.views&&this.views.length>0?this.views[0]:null},set:function(e){this.views=[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=Gc(e,this.format,this.gradientSettings.opacity)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popupSettings",{get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign(this._popupSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paletteSettings",{get:function(){return this._paletteSettings},set:function(e){this._paletteSettings=Object.assign(this._paletteSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gradientSettings",{get:function(){return this._gradientSettings},set:function(e){this._gradientSettings=Object.assign(this._gradientSettings,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return this.disabled?void 0:this._tabindex},set:function(e){var t=Number(e);this._tabindex=isNaN(t)?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillMode",{get:function(){return this._fillMode},set:function(e){this.handleClasses(e,"fillMode"),this._fillMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isOpen",{get:function(){return za(this.popupRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconStyles",{get:function(){return this.iconClass?this.iconClass:this.icon?"k-icon k-i-"+this.icon:void 0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e="name"!==this.format?"office":"accessible",t=this._paletteSettings.palette,n="string"==typeof t&&Rc[t]?Rc[t].columns:void 0;this._paletteSettings={palette:t||e,tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||n||10}},e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded","fillMode"].forEach((function(t){e.handleClasses(e[t],t)})),this.setHostElementAriaLabel(),this.handleHostId(),this.initDomEvents()},e.prototype.ngOnChanges=function(e){e.format&&"name"===e.format.currentValue&&(this.activeView="palette"),"gradient"===this.activeView&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Gc(this.value,this.format,this.gradientSettings.opacity)),Object(In.isChanged)("value",e)&&this.setHostElementAriaLabel()},e.prototype.ngOnDestroy=function(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe(),this.subscriptions.unsubscribe(),this.handleDomEvents("remove",ul)},e.prototype.handleCancelEvent=function(e){this.cancel.emit(e)},e.prototype.togglePopup=function(){this.focus(),this.toggleWithEvents(!this.isOpen)},e.prototype.handleWrapperClick=function(e){var t=this;if(!this.disabled){if(this.focus(),Object(In.closest)(e.target,(function(e){return e===t.activeColor.nativeElement}))){var n=new Kc(this.value);return this.activeColorClick.emit(n),void(n.isOpenPrevented()&&!this.isOpen||this.toggleWithEvents(!this.isOpen))}this.toggleWithEvents(!this.isOpen)}},e.prototype.focus=function(){this.isFocused=!0,this.host.nativeElement.focus()},e.prototype.handleWrapperFocus=function(){var e=this;this.isFocused||this.ngZone.run((function(){e.focus(),e.onFocus.emit()}))},e.prototype.blur=function(){this.isFocused=!1,this.host.nativeElement.blur(),this.notifyNgTouched()},e.prototype.handleWrapperBlur=function(){var e=this;this.isOpen||this.ngZone.run((function(){e.onBlur.emit(),e.isFocused=!1}))},e.prototype.arrowButtonMouseDown=function(e){e.preventDefault()},e.prototype.reset=function(){za(this.value)&&(this._value=void 0,this.setHostElementAriaLabel(),this.notifyNgChanged(void 0))},e.prototype.toggle=function(e){this.disabled||this.readonly||(this.closePopup(),(e=za(e)?e:!this.isOpen)&&this.openPopup())},e.prototype.handleValueChange=function(e){var t=Gc(e,this.format,this.gradientSettings.opacity);t!==this.value&&(this.value=t,this.valueChange.emit(t),this.setHostElementAriaLabel(),this.notifyNgChanged(t))},e.prototype.handlePopupBlur=function(e){this.popupBlurInvalid(e)||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.notifyNgChanged=e},e.prototype.registerOnTouched=function(e){this.notifyNgTouched=e},e.prototype.setDisabledState=function(e){this.cdr.markForCheck(),this.disabled=e},e.prototype.handleWrapperKeyDown=function(e){var t=this;e.keyCode!==In.Keys.ArrowDown&&e.keyCode!==In.Keys.Enter||(e.preventDefault(),this.ngZone.run((function(){t.toggleWithEvents(!0)})))},e.prototype.handlePopupKeyDown=function(e){if(e.keyCode===In.Keys.Escape&&(this.toggleWithEvents(!1),this.host.nativeElement.focus()),e.keyCode===In.Keys.Tab){var t=e.shiftKey?this.firstFocusableElement.nativeElement:this.lastFocusableElement.nativeElement,n=e.shiftKey?this.lastFocusableElement.nativeElement:this.firstFocusableElement.nativeElement;e.target===t&&(e.preventDefault(),n.focus())}},e.prototype.isEmpty=function(){return!1},e.prototype.setHostElementAriaLabel=function(){var e=""+(this.value?this.value:this.localizationService.get("colorPickerNoColor"));this.renderer.setAttribute(this.host.nativeElement,"aria-label",e)},e.prototype.handleClasses=function(e,t){var n=this.host.nativeElement,i=Ua("picker",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},e.prototype.popupBlurInvalid=function(e){var t=this,n=this.popupRef.popupElement.contains(e.relatedTarget);return Object(In.closest)(e.relatedTarget,(function(e){return e===t.host.nativeElement}))||n},e.prototype.toggleWithEvents=function(e){var t,n=this.isOpen===e;this.disabled||this.readonly||n||(e?(t=new Lc,this.open.emit(t)):(t=new Hc,this.close.emit(t)),t.isDefaultPrevented()||this.toggle(e),e&&this.focusFirstElement())},e.prototype.focusFirstElement=function(){var e=this;this.ngZone.onStable.pipe(Object(Se.take)(1)).subscribe((function(){e.flatColorPicker&&(e.flatColorPicker.gradient?e.flatColorPicker.gradient.gradientDragHandle:e.flatColorPicker.palette.host).nativeElement.focus()}))},e.prototype.openPopup=function(){var e=this,t="rtl"===this.direction?"right":"left",n={horizontal:t,vertical:"bottom"},i={horizontal:t,vertical:"top"};this.popupRef=this.popupService.open({anchor:this.activeColor,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:i,anchorAlign:n,popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe((function(){e.toggleWithEvents(!1),e.isOpen||e.host.nativeElement.focus({preventScroll:!0})}))},e.prototype.closePopup=function(){this.isOpen&&(this.popupRef.close(),this.popupRef=null)},Object.defineProperty(e.prototype,"firstFocusableElement",{get:function(){return!this.flatColorPicker.header||this.views.length<=1&&!this.flatColorPicker.clearButton?this.flatColorPicker.gradient?this.flatColorPicker.gradient.gradientDragHandle:this.flatColorPicker.palette.host:this.views.length>1?this.flatColorPicker.header.viewButtonsCollection.toArray()[0]:this.flatColorPicker.header.clearButtonElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastFocusableElement",{get:function(){return this.preview?this.flatColorPicker.footer.lastButton:this.flatColorPicker.palette?this.flatColorPicker.palette.host:this.gradientSettings.opacity?this.flatColorPicker.gradient.inputs.opacityInput.numericInput:this.flatColorPicker.gradient.inputs.blueInput},enumerable:!0,configurable:!0}),e.prototype.handleDomEvents=function(e,t){var n=this,i=this.host.nativeElement;t.forEach((function(t){return i[e+"EventListener"](t,n.domFocusListener,!0)}))},e.prototype.initDomEvents=function(){var e=this;if(this.host){var t=this.host.nativeElement;this.ngZone.runOutsideAngular((function(){e.subscriptions.add(e.renderer.listen(t,"focusin",(function(){e.handleWrapperFocus()}))),e.subscriptions.add(e.renderer.listen(t,"focusout",(function(t){var n=!!e.popupRef&&Object(In.closest)(t.relatedTarget,(function(t){return t===e.flatColorPicker.host.nativeElement})),i=Object(In.closest)(t.relatedTarget,(function(t){return t===e.host.nativeElement}));n||i||e.handleWrapperBlur()}))),e.handleDomEvents("add",ul),e.subscriptions.add(e.renderer.listen(t,"keydown",(function(t){e.handleWrapperKeyDown(t)}))),e.subscriptions.add(e.renderer.listen(t,"click",(function(t){e.ngZone.run((function(){e.handleWrapperClick(t)}))})))}))}},e.prototype.handleHostId=function(){var e=this.host.nativeElement,t=e.getAttribute("id");if(t)this.focusableId=t;else{var n="k-"+Object(In.guid)();e.setAttribute("id",n),this.focusableId=n}},Object(i.__decorate)([Object(o.HostBinding)("class.k-colorpicker"),Object(o.HostBinding)("class.k-icon-picker"),Object(o.HostBinding)("class.k-picker"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClasses",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-focus"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"focusedClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-disabled"),Object(o.HostBinding)("class.k-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-readonly"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaReadonly",null),Object(i.__decorate)([Object(o.HostBinding)("attr.aria-expanded"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"ariaExpanded",null),Object(i.__decorate)([Object(o.HostBinding)("attr.tabindex"),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"hostTabindex",null),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"role",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Array)],e.prototype,"views",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"view",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"activeView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"readonly",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"disabled",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"format",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"value",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"popupSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"paletteSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object),Object(i.__metadata)("design:paramtypes",[Object])],e.prototype,"gradientSettings",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"icon",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"iconClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Number),Object(i.__metadata)("design:paramtypes",[Number])],e.prototype,"tabindex",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"preview",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"actionsLayout",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"fillMode",null),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"valueChange",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"open",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"close",void 0),Object(i.__decorate)([Object(o.Output)("focus"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onFocus",void 0),Object(i.__decorate)([Object(o.Output)("blur"),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"onBlur",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"cancel",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeColorClick",void 0),Object(i.__decorate)([Object(o.Output)(),Object(i.__metadata)("design:type",o.EventEmitter)],e.prototype,"activeViewChange",void 0),Object(i.__decorate)([Object(o.ViewChild)("container",{read:o.ViewContainerRef,static:!0}),Object(i.__metadata)("design:type",o.ViewContainerRef)],e.prototype,"container",void 0),Object(i.__decorate)([Object(o.ViewChild)("activeColor",{static:!0}),Object(i.__metadata)("design:type",o.ElementRef)],e.prototype,"activeColor",void 0),Object(i.__decorate)([Object(o.ViewChild)("popupTemplate",{static:!0}),Object(i.__metadata)("design:type",o.TemplateRef)],e.prototype,"popupTemplate",void 0),Object(i.__decorate)([Object(o.ViewChild)("flatColorPicker",{static:!1}),Object(i.__metadata)("design:type",dl)],e.prototype,"flatColorPicker",void 0),e=t=Object(i.__decorate)([Object(o.Component)({exportAs:"kendoColorPicker",selector:"kendo-colorpicker",providers:[{multi:!0,provide:Ee,useExisting:Object(o.forwardRef)((function(){return t}))},{provide:In.KendoInput,useExisting:Object(o.forwardRef)((function(){return t}))},Vc,{provide:xn.LocalizationService,useExisting:Vc},{provide:xn.L10N_PREFIX,useValue:"kendo.colorpicker"}],template:'\n <ng-container kendoColorPickerLocalizedMessages\n i18n-colorPickerNoColor="kendo.colorpicker.colorPickerNoColor|The aria-label applied to the ColorPicker component when the value is empty."\n colorPickerNoColor="Colorpicker no color chosen"\n i18n-flatColorPickerNoColor="kendo.colorpicker.flatColorPickerNoColor|The aria-label applied to the FlatColorPicker component when the value is empty."\n flatColorPickerNoColor="Flatcolorpicker no color chosen"\n i18n-colorGradientNoColor="kendo.colorpicker.colorGradientNoColor|The aria-label applied to the ColorGradient component when the value is empty."\n colorGradientNoColor="Colorgradient no color chosen"\n i18n-colorPaletteNoColor="kendo.colorpicker.colorPaletteNoColor|The aria-label applied to the ColorPalette component when the value is empty."\n colorPaletteNoColor="Colorpalette no color chosen"\n i18n-colorGradientHandle="kendo.colorpicker.colorGradientHandle|The title for the gradient color drag handle chooser."\n colorGradientHandle="Choose color"\n i18n-clearButton="kendo.colorpicker.clearButton|The title for the clear button."\n clearButton="Clear value"\n i18n-hueSliderHandle="kendo.colorpicker.hueSliderHandle|The title for the hue slider handle."\n hueSliderHandle="Set hue"\n i18n-opacitySliderHandle="kendo.colorpicker.opacitySliderHandle|The title for the opacity slider handle."\n opacitySliderHandle="Set opacity"\n i18n-contrastRatio="kendo.colorpicker.contrastRatio|The contrast ratio message for the contrast tool."\n contrastRatio="Contrast ratio"\n i18n-previewColor="kendo.colorpicker.previewColor|The message for the color preview pane."\n previewColor="Color preview"\n i18n-revertSelection="kendo.colorpicker.revertSelection|The message for the selected color pane."\n revertSelection="Revert selection"\n i18n-gradientView="kendo.colorpicker.gradientView|The message for the gradient view button."\n gradientView="Gradient view"\n i18n-paletteView="kendo.colorpicker.paletteView|The message for the palette view button."\n paletteView="Palette view"\n i18n-formatButton="kendo.colorpicker.formatButton|The message for the input format toggle button."\n formatButton="Change color format"\n i18n-applyButton="kendo.colorpicker.applyButton|The message for the Apply action button."\n applyButton="Apply"\n i18n-cancelButton="kendo.colorpicker.cancelButton|The message for the Cancel action button."\n cancelButton="Cancel">\n </ng-container>\n <span #activeColor class="k-input-inner">\n <span\n class="k-value-icon k-color-preview"\n [ngClass]="{\'k-icon-color-preview\': iconStyles, \'k-no-color\': !value}">\n <span *ngIf="iconClass || icon" class="k-color-preview-icon k-icon" [ngClass]="iconStyles"></span>\n <span class="k-color-preview-mask" [style.background-color]="value"></span>\n </span>\n </span>\n <button\n #arrowButton\n tabindex="-1"\n role="button"\n class="k-input-button k-button k-button-md k-button-solid k-button-solid-base k-icon-button">\n <span class="k-button-icon k-icon k-i-arrow-s"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-flatcolorpicker\n #flatColorPicker\n [value]="value"\n [format]="format"\n [views]="views"\n [activeView]="activeView"\n [actionsLayout]="actionsLayout"\n [preview]="preview"\n [gradientSettings]="gradientSettings"\n [paletteSettings]="paletteSettings"\n [clearButton]="clearButton"\n (cancel)="handleCancelEvent($event)"\n (focusout)="handlePopupBlur($event)"\n (valueChange)="handleValueChange($event)"\n (keydown)="handlePopupKeyDown($event)"\n (activeViewChange)="activeViewChange.emit($event)"\n (actionButtonClick)="togglePopup()">\n </kendo-flatcolorpicker>\n </ng-template>\n <ng-container #container></ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,Oa,o.ChangeDetectorRef,xn.LocalizationService,o.NgZone,o.Renderer2])],e)}(),hl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPaletteNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"flatColorPickerNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorPickerNoColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"colorGradientHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"clearButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hueSliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"opacitySliderHandle",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"hexInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"redInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"greenInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"blueInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"alphaInputPlaceholder",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"passContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"failContrast",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"contrastRatio",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"previewColor",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"revertSelection",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"gradientView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"paletteView",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"formatButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"applyButton",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],t.prototype,"cancelButton",void 0),t}(xn.ComponentMessages),fl=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,Object.defineProperty(t.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),t=n=Object(i.__decorate)([Object(o.Component)({providers:[{provide:hl,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"kendo-colorpicker-messages, kendo-flatcolorpicker-messages, kendo-colorgradient-messages, kendo-colorpalette-messages",template:""}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(hl),ml=function(e){function t(t){var n=e.call(this)||this;return n.service=t,n}var n;return Object(i.__extends)(t,e),n=t,t=n=Object(i.__decorate)([Object(o.Directive)({providers:[{provide:hl,useExisting:Object(o.forwardRef)((function(){return n}))}],selector:"[kendoColorPickerLocalizedMessages], [kendoFlatColorPickerLocalizedMessages], [kendoColorGradientLocalizedMessages], [kendoColorPaletteLocalizedMessages]"}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],t)}(hl),bl=function(){function e(e,t){this.host=e,this.ngZone=t}return e.prototype.ngAfterContentInit=function(){this.focusOnNextTick()},e.prototype.focusOnNextTick=function(){var e=this;this.ngZone.runOutsideAngular((function(){return setTimeout((function(){return e.host.nativeElement.focus()}))}))},e=Object(i.__decorate)([Object(o.Directive)({selector:"[kendoFocusOnDomReady]"}),Object(i.__metadata)("design:paramtypes",[o.ElementRef,o.NgZone])],e)}(),gl=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"passMessage",{get:function(){return this.localization.get("passContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failMessage",{get:function(){return this.localization.get("failContrast")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastText",{get:function(){var e="AA"===this.type?4.5:7;return this.type+": "+e.toFixed(1)},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"type",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Boolean)],e.prototype,"pass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastValidation]",template:'\n <span>{{contrastText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="pass">\n {{passMessage}}\n <span class="k-icon k-i-check"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!pass">\n {{failMessage}}\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n '}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],e)}(),yl=function(){function e(e){this.localization=e}return Object.defineProperty(e.prototype,"formatedRatio",{get:function(){return this.contrastRatio.toFixed(2)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatioText",{get:function(){return this.localization.get("contrastRatio")+": "+(this.value?this.formatedRatio:"n/a")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAACondition",{get:function(){return this.contrastRatio>=4.5},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satisfiesAAACondition",{get:function(){return this.contrastRatio>=7},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contrastRatio",{get:function(){return Yc(Zc(this.value),Zc(this.ratio))},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"value",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"ratio",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoContrastTool]",template:'\n <div class="k-contrast-ratio">\n <span class="k-contrast-ratio-text">{{contrastRatioText}}</span>\n <ng-container *ngIf="value">\n <span class="k-contrast-validation k-text-success" *ngIf="satisfiesAACondition">\n <span class="k-icon k-i-check"></span>\n <span class="k-icon k-i-check" *ngIf="satisfiesAAACondition"></span>\n </span>\n <span class="k-contrast-validation k-text-error" *ngIf="!satisfiesAACondition">\n <span class="k-icon k-i-close"></span>\n </span>\n </ng-container>\n </div>\n <div kendoContrastValidation\n type="AA"\n [value]="value"\n [pass]="satisfiesAACondition">\n </div>\n <div kendoContrastValidation\n type="AAA"\n [value]="value"\n [pass]="satisfiesAAACondition">\n </div>\n '}),Object(i.__metadata)("design:paramtypes",[xn.LocalizationService])],e)}(),vl=function(){function e(){this.hostClass=!0}return e.prototype.ngAfterViewInit=function(){var e=this;this.metrics=this.wrapper.getBoundingClientRect(),this.oldA=this.hsva.value.a,this.oldH=this.hsva.value.h,this.hsva.subscribe((function(t){t.h===e.oldH&&t.a===e.oldA||(e.oldH=t.h,e.oldA=t.a,e.setPaths())}))},e.prototype.ngOnChanges=function(e){za(e.backgroundColor)&&this.metrics&&this.setPaths()},e.prototype.setPaths=function(){var e,t,n=(t=Jc,e=function(e,n,i,o){var r=t(n||e,i||e),a=r.angle+(o?Math.PI:0),s=.1*r.length;return[e[0]+Math.cos(a)*s,e[1]+Math.sin(a)*s]},function(t,n,i){var o=e(i[n-1],i[n-2],t),r=o[0],a=o[1],s=e(t,i[n-1],i[n+1],!0);return"C "+r+","+a+" "+s[0]+","+s[1]+" "+t[0]+","+t[1]});this.paths=[Qc(this.getPaths(4.5,16),n),Qc(this.getPaths(4.5,16,!0),n),Qc(this.getPaths(7,16),n),Qc(this.getPaths(7,16,!0),n)]},e.prototype.findValue=function(e,t,n,i,o){var r=(n+i)/2,a=Object.assign({},this.hsva.value,{s:t/this.metrics.width,v:1-r/this.metrics.height}),s=Yc(Zc(Uc(a)),Zc(this.backgroundColor||""));return n+.5>i?s<e+1&&s>e-1?r:null:o(s,e)?this.findValue(e,t,n,i-(i-n)/2,o):this.findValue(e,t,n+(i-n)/2,i,o)},e.prototype.getPaths=function(e,t,n){void 0===n&&(n=!1);for(var i=[],o=0;o<=this.metrics.width;o+=this.metrics.width/t){var r=this.findValue(e,o,0,this.metrics.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==r&&i.push([o,r])}return i},Object(i.__decorate)([Object(o.HostBinding)("class.k-color-contrast-svg"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",Object)],e.prototype,"wrapper",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",we.BehaviorSubject)],e.prototype,"hsva",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"backgroundColor",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"[kendoColorContrastSvg]",template:'\n <svg:path *ngFor="let path of paths" [attr.d]="path" fill="none" stroke="white" stroke-width="1"></svg:path>\n '})],e)}(),_l=[pl,sl,il,dl,ml,fl],Ol=[tl,bl,yl,gl,cl,ll,vl],jl=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[_l,Ol],exports:[_l],imports:[lc,vc,r.CommonModule,Ca,In.DraggableModule]})],e)}(),Cl=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",this._rounded="medium"}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rounded",{get:function(){return this._rounded},set:function(e){this.handleClasses(e,"rounded"),this._rounded=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size","rounded"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=Ua("checkbox",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(o.HostBinding)("class.k-checkbox"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"rounded",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoCheckBox]"}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),kl=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Cl],exports:[Cl],imports:[r.CommonModule]})],e)}(),wl=function(){function e(e,t){this.renderer=e,this.hostElement=t,this.kendoClass=!0,this._size="medium",Object(Dn.validatePackage)(ks)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this.handleClasses(e,"size"),this._size=e},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;["size"].forEach((function(t){e.handleClasses(e[t],t)}))},e.prototype.handleClasses=function(e,t){var n=this.hostElement.nativeElement,i=Ua("radio",t,this[t],e);i.toRemove&&this.renderer.removeClass(n,i.toRemove),i.toAdd&&this.renderer.addClass(n,i.toAdd)},Object(i.__decorate)([Object(o.HostBinding)("class.k-radio"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"kendoClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[String])],e.prototype,"size",null),e=Object(i.__decorate)([Object(o.Directive)({selector:"input[kendoRadioButton]"}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,o.ElementRef])],e)}(),Sl=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[wl],exports:[wl],imports:[r.CommonModule]})],e)}(),El=0,xl=function(){function e(){this.hostClass=!0,this.align="start",this.id="kendo-error-"+El++,this.roleAttribute="alert"}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-error"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.role"),Object(i.__metadata)("design:type",String)],e.prototype,"roleAttribute",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formerror",template:"\n <ng-content></ng-content>\n "})],e)}(),Il=0,Dl=function(){function e(){this.align="start",this.id="kendo-hint-"+Il++,this.hostClass=!0}return Object.defineProperty(e.prototype,"startClass",{get:function(){return"start"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endClass",{get:function(){return"end"===this.align},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"idAttribute",{get:function(){return this.id},enumerable:!0,configurable:!0}),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"align",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-hint"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-start"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"startClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-text-end"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"endClass",null),Object(i.__decorate)([Object(o.HostBinding)("attr.id"),Object(i.__metadata)("design:type",String),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"idAttribute",null),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formhint",template:"\n <ng-content></ng-content>\n "})],e)}(),Pl=function(){function e(e,t,n){var i=this;this.renderer=e,this.localizationService=t,this.hostElement=n,this.hostClass=!0,this.showHints="initial",this.orientation="vertical",this.showErrors="initial",this.subscriptions=new we.Subscription,this.rtl=!1,Object(Dn.validatePackage)(ks),this.subscriptions.add(this.localizationService.changes.subscribe((function(e){var t=e.rtl;i.rtl=t,i.direction=i.rtl?"rtl":"ltr"})))}return Object.defineProperty(e.prototype,"errorClass",{get:function(){return!!this.control&&(this.control.invalid&&(this.control.touched||this.control.dirty))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabledClass",{get:function(){return!!this.control&&(!this.isRadioControl(this.control)&&(this.disabledControl()||this.disabledElement()||this.disabledKendoInput()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formControls",{set:function(e){this.validateFormControl(e),this.control=e.first},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontal",{get:function(){return"horizontal"===this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHints",{get:function(){return"always"===this.showHints||this.showHintsInitial()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return"always"===this.showErrors||this.showErrorsInitial()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.setDescription()},e.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},e.prototype.disabledKendoInput=function(){return this.kendoInput&&this.kendoInput.disabled},e.prototype.disabledControl=function(){return this.control.disabled},e.prototype.disabledElement=function(){return this.controlElementRefs.toArray().every((function(e){return e.nativeElement.hasAttribute("disabled")}))},e.prototype.validateFormControl=function(e){if(Object(o.isDevMode)()&&1!==e.length&&!this.isControlGroup(e))throw new Error("The `kendo-formfield` component should contain only one control of type NgControl with a formControlName(https://angular.io/api/forms/FormControlName)or an ngModel(https://angular.io/api/forms/NgModel) binding.")},e.prototype.isControlGroup=function(e){var t=this;if(!e.length)return!1;var n=e.first.name;return e.toArray().every((function(e){return e.name===n&&t.isRadioControl(e)}))},e.prototype.isRadioControl=function(e){return e.valueAccessor instanceof tt},e.prototype.updateDescription=function(){var e=this,t=this.findControlElements();t&&t.forEach((function(t){if(e.errorChildren.length>0||e.hintChildren.length>0){var n=e.generateDescriptionIds(t);e.renderer.setAttribute(t,"aria-describedby",n)}}))},e.prototype.findControlElements=function(){if(this.controlElementRefs)return this.kendoInput&&this.kendoInput.focusableId&&Object(In.isDocumentAvailable)()?[this.hostElement.nativeElement.querySelector("#"+this.kendoInput.focusableId)]:this.controlElementRefs.map((function(e){return e.nativeElement}))},e.prototype.generateDescriptionIds=function(e){var t=new Set;e.hasAttribute("aria-describedby")&&e.getAttribute("aria-describedby").split(" ").forEach((function(e){e.includes("kendo-hint-")||e.includes("kendo-error-")||t.add(e)}));return this.hintChildren.forEach((function(e){t.add(e.id)})),this.errorChildren.forEach((function(e){t.add(e.id)})),Array.from(t).join(" ")},e.prototype.showHintsInitial=function(){if(!this.control)return!0;var e=this.control,t=e.valid,n=e.untouched,i=e.pristine;return t||n&&i},e.prototype.showErrorsInitial=function(){if(!this.control)return!1;var e=this.control,t=e.invalid,n=e.dirty,i=e.touched;return t&&(n||i)},e.prototype.setDescription=function(){var e=this;this.updateDescription(),this.subscriptions.add(this.errorChildren.changes.subscribe((function(){return e.updateDescription()}))),this.subscriptions.add(this.hintChildren.changes.subscribe((function(){return e.updateDescription()})))},Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field"),Object(i.__metadata)("design:type",Boolean)],e.prototype,"hostClass",void 0),Object(i.__decorate)([Object(o.HostBinding)("attr.dir"),Object(i.__metadata)("design:type",String)],e.prototype,"direction",void 0),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-error"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"errorClass",null),Object(i.__decorate)([Object(o.HostBinding)("class.k-form-field-disabled"),Object(i.__metadata)("design:type",Boolean),Object(i.__metadata)("design:paramtypes",[])],e.prototype,"disabledClass",null),Object(i.__decorate)([Object(o.ContentChildren)(Ve,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList),Object(i.__metadata)("design:paramtypes",[o.QueryList])],e.prototype,"formControls",null),Object(i.__decorate)([Object(o.ContentChildren)(Ve,{read:o.ElementRef,descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"controlElementRefs",void 0),Object(i.__decorate)([Object(o.ContentChild)(In.KendoInput,{static:!0}),Object(i.__metadata)("design:type",Object)],e.prototype,"kendoInput",void 0),Object(i.__decorate)([Object(o.ContentChildren)(xl,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"errorChildren",void 0),Object(i.__decorate)([Object(o.ContentChildren)(Dl,{descendants:!0}),Object(i.__metadata)("design:type",o.QueryList)],e.prototype,"hintChildren",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showHints",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"orientation",void 0),Object(i.__decorate)([Object(o.Input)(),Object(i.__metadata)("design:type",String)],e.prototype,"showErrors",void 0),e=Object(i.__decorate)([Object(o.Component)({selector:"kendo-formfield",template:'\n <ng-content select="label, kendo-label"></ng-content>\n <div [class.k-form-field-wrap]="horizontal">\n <ng-content></ng-content>\n <ng-content select="kendo-formhint" *ngIf="hasHints"></ng-content>\n <ng-content select="kendo-formerror" *ngIf="hasErrors"></ng-content>\n </div>\n ',providers:[xn.LocalizationService,{provide:xn.L10N_PREFIX,useValue:"kendo.formfield"}]}),Object(i.__metadata)("design:paramtypes",[o.Renderer2,xn.LocalizationService,o.ElementRef])],e)}(),Tl=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({declarations:[Dl,xl,Pl],exports:[Dl,xl,Pl],imports:[r.CommonModule]})],e)}(),Ml=function(){function e(){}return e=Object(i.__decorate)([Object(o.NgModule)({exports:[Nc,Dc,lc,hc,gc,vc,_c,jl,kl,Sl,Tl],imports:[r.CommonModule]})],e)}()}])}));