@progress/kendo-angular-treeview 6.0.2 → 7.0.0-next.202203241311
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-treeview.umd.js +5 -0
- package/{dist/es2015/check-mode.d.ts → check-mode.d.ts} +0 -0
- package/{dist/es2015/check.directive.d.ts → check.directive.d.ts} +5 -2
- package/{dist/es2015/checkable-settings.d.ts → checkable-settings.d.ts} +0 -0
- package/{dist/es2015/checkbox → checkbox}/checkbox.component.d.ts +7 -4
- package/{dist/es2015/checkbox → checkbox}/checkbox.module.d.ts +5 -0
- package/{dist/es2015/checkbox → checkbox}/checked-state.d.ts +0 -0
- package/{dist/es2015/data-bound-component.d.ts → data-bound-component.d.ts} +3 -0
- package/{dist/es2015/data-change-notification.service.d.ts → data-change-notification.service.d.ts} +0 -0
- package/{dist/es2015/default-callbacks.d.ts → default-callbacks.d.ts} +0 -0
- package/{dist/es2015/disable.directive.d.ts → disable.directive.d.ts} +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop-editing.directive.d.ts +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop-utils.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-and-drop.directive.d.ts +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue-template.directive.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue.component.d.ts +4 -1
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drag-clue/drag-clue.service.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint-template.directive.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint.component.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/drop-hint/drop-hint.service.d.ts +3 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/drag-and-drop-asset.service.d.ts +6 -2
- package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/flat-editing.service.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/editing-services/hierarchy-editing.service.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/drop-action.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/drop-position.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/editing-service.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/preventable-event.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/scroll-direction.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/scroll-settings.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/tree-item-filter-state.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-add-remove-args.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drag-event.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drag-start-event.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models/treeitem-drop-event.d.ts +0 -0
- package/{dist/es2015/drag-and-drop → drag-and-drop}/models.d.ts +0 -0
- package/{dist/es2015 → esm2015}/check-mode.js +1 -0
- package/{dist/es2015 → esm2015}/check.directive.js +23 -35
- package/{dist/es → esm2015}/checkable-settings.js +1 -0
- package/{dist/es2015 → esm2015}/checkbox/checkbox.component.js +47 -51
- package/esm2015/checkbox/checkbox.module.js +27 -0
- package/{dist/es2015 → esm2015}/checkbox/checked-state.js +1 -0
- package/esm2015/data-bound-component.js +19 -0
- package/{dist/es2015 → esm2015}/data-change-notification.service.js +0 -0
- package/{dist/es2015 → esm2015}/default-callbacks.js +0 -0
- package/{dist/es2015 → esm2015}/disable.directive.js +18 -24
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop-editing.directive.js +14 -16
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop-utils.js +6 -10
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-and-drop.directive.js +47 -50
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-clue/drag-clue-template.directive.js +14 -12
- package/esm2015/drag-and-drop/drag-clue/drag-clue.component.js +85 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/drag-clue/drag-clue.service.js +9 -9
- package/{dist/es2015 → esm2015}/drag-and-drop/drop-hint/drop-hint-template.directive.js +14 -12
- package/esm2015/drag-and-drop/drop-hint/drop-hint.component.js +79 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/drop-hint/drop-hint.service.js +9 -9
- package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/drag-and-drop-asset.service.js +7 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/flat-editing.service.js +0 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/drop-action.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/drop-position.js +0 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/editing-service.js +1 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/preventable-event.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/scroll-direction.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models/scroll-settings.js +1 -0
- package/{dist/es → esm2015}/drag-and-drop/models/tree-item-filter-state.js +1 -0
- package/{dist/es → esm2015}/drag-and-drop/models/treeitem-add-remove-args.js +1 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drag-event.js +0 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drag-start-event.js +0 -0
- package/{dist/es2015 → esm2015}/drag-and-drop/models/treeitem-drop-event.js +0 -0
- package/{dist/es → esm2015}/drag-and-drop/models.js +3 -0
- package/{dist/es2015 → esm2015}/expand-state.service.js +8 -10
- package/{dist/es2015 → esm2015}/expand.directive.js +22 -31
- package/esm2015/expandable-component.js +19 -0
- package/{dist/es → esm2015}/filter-expand-settings.interface.js +1 -0
- package/{dist/es → esm2015}/filter-state.interface.js +1 -0
- package/{dist/es2015 → esm2015}/filtering-base.js +13 -13
- package/{dist/es2015 → esm2015}/flat-binding.directive.js +20 -34
- package/{dist/es2015 → esm2015}/funcs.js +0 -0
- package/{dist/es2015 → esm2015}/hierarchy-binding.directive.js +23 -33
- package/{dist/es2015 → esm2015}/index-builder.service.js +8 -10
- package/{dist/es2015/shared.module.d.ts → esm2015/kendo-angular-treeview.js} +2 -3
- package/esm2015/load-more/load-more-button-template.directive.js +31 -0
- package/{dist/es → esm2015}/load-more/load-more-request-args.js +1 -0
- package/{dist/es2015 → esm2015}/load-more/load-more-utils.js +0 -0
- package/{dist/es2015 → esm2015}/load-more/load-more.directive.js +21 -28
- package/{dist/es → esm2015}/load-more/load-more.service.js +1 -0
- package/{dist/es2015 → esm2015}/loading-indicator.directive.js +18 -22
- package/esm2015/loading-notification.service.js +23 -0
- package/{dist/es → esm2015}/main.js +0 -0
- package/{dist/es → esm2015}/navigation/navigation-item.interface.js +1 -0
- package/{dist/es2015 → esm2015}/navigation/navigation-model.js +0 -4
- package/{dist/es → esm2015}/navigation/navigation-state.interface.js +1 -0
- package/{dist/es2015 → esm2015}/navigation/navigation.service.js +9 -9
- package/{dist/es2015 → esm2015}/node-children.service.js +8 -10
- package/{dist/es → esm2015}/node-click-event.interface.js +1 -0
- package/{dist/es2015 → esm2015}/node-template.directive.js +14 -12
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es2015 → esm2015}/selection/select.directive.js +25 -35
- package/{dist/es → esm2015}/selection/selectable-settings.js +1 -0
- package/{dist/es → esm2015}/selection/selection-mode.js +1 -0
- package/{dist/es2015 → esm2015}/selection/selection.service.js +8 -10
- package/{dist/es2015 → esm2015}/shared.module.js +63 -16
- package/{dist/es → esm2015}/size.js +1 -0
- package/{dist/es → esm2015}/treeitem-lookup.interface.js +1 -0
- package/{dist/es → esm2015}/treeitem.interface.js +1 -0
- package/{dist/es2015 → esm2015}/treeview-filter-settings.js +0 -0
- package/{dist/es2015 → esm2015}/treeview-group.component.js +242 -134
- package/{dist/es2015 → esm2015}/treeview-item-content.directive.js +20 -30
- package/{dist/es2015 → esm2015}/treeview-item.directive.js +43 -81
- package/{dist/es2015 → esm2015}/treeview-lookup.service.js +8 -10
- package/{dist/es2015 → esm2015}/treeview.component.js +165 -205
- package/{dist/es2015 → esm2015}/treeview.module.js +26 -10
- package/{dist/es2015 → esm2015}/utils.js +6 -12
- package/{dist/es2015/expand-state.service.d.ts → expand-state.service.d.ts} +3 -0
- package/{dist/es2015/expand.directive.d.ts → expand.directive.d.ts} +5 -2
- package/{dist/es2015/expandable-component.d.ts → expandable-component.d.ts} +3 -0
- package/{dist/fesm2015/index.js → fesm2015/kendo-angular-treeview.js} +3401 -3322
- package/{dist/es2015/filter-expand-settings.interface.d.ts → filter-expand-settings.interface.d.ts} +0 -0
- package/{dist/es2015/filter-state.interface.d.ts → filter-state.interface.d.ts} +0 -0
- package/{dist/es2015/filtering-base.d.ts → filtering-base.d.ts} +6 -2
- package/{dist/es2015/flat-binding.directive.d.ts → flat-binding.directive.d.ts} +5 -2
- package/{dist/es2015/funcs.d.ts → funcs.d.ts} +0 -0
- package/{dist/es2015/hierarchy-binding.directive.d.ts → hierarchy-binding.directive.d.ts} +10 -6
- package/{dist/es2015/index-builder.service.d.ts → index-builder.service.d.ts} +3 -0
- package/{dist/es/treeview-filter-settings.js → kendo-angular-treeview.d.ts} +3 -6
- package/{dist/es2015/load-more → load-more}/load-more-button-template.directive.d.ts +3 -0
- package/{dist/es2015/load-more → load-more}/load-more-request-args.d.ts +0 -0
- package/{dist/es2015/load-more → load-more}/load-more-utils.d.ts +0 -0
- package/{dist/es2015/load-more → load-more}/load-more.directive.d.ts +4 -1
- package/{dist/es2015/load-more → load-more}/load-more.service.d.ts +0 -0
- package/{dist/es2015/loading-indicator.directive.d.ts → loading-indicator.directive.d.ts} +5 -1
- package/{dist/es2015/loading-notification.service.d.ts → loading-notification.service.d.ts} +3 -0
- package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-item.interface.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-model.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation-state.interface.d.ts +0 -0
- package/{dist/es2015/navigation → navigation}/navigation.service.d.ts +9 -5
- package/{dist/es2015/node-children.service.d.ts → node-children.service.d.ts} +3 -0
- package/{dist/es2015/node-click-event.interface.d.ts → node-click-event.interface.d.ts} +0 -0
- package/{dist/es2015/node-template.directive.d.ts → node-template.directive.d.ts} +3 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +35 -103
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/selection → selection}/select.directive.d.ts +6 -3
- package/{dist/es2015/selection → selection}/selectable-settings.d.ts +0 -0
- package/{dist/es2015/selection → selection}/selection-mode.d.ts +0 -0
- package/{dist/es2015/selection → selection}/selection.service.d.ts +3 -0
- package/shared.module.d.ts +36 -0
- package/{dist/es2015/size.d.ts → size.d.ts} +0 -0
- package/{dist/es2015/treeitem-lookup.interface.d.ts → treeitem-lookup.interface.d.ts} +0 -0
- package/{dist/es2015/treeitem.interface.d.ts → treeitem.interface.d.ts} +0 -0
- package/{dist/es2015/treeview-filter-settings.d.ts → treeview-filter-settings.d.ts} +0 -0
- package/{dist/es2015/treeview-group.component.d.ts → treeview-group.component.d.ts} +12 -7
- package/{dist/es2015/treeview-item-content.directive.d.ts → treeview-item-content.directive.d.ts} +3 -0
- package/{dist/es2015/treeview-item.directive.d.ts → treeview-item.directive.d.ts} +11 -6
- package/{dist/es2015/treeview-lookup.service.d.ts → treeview-lookup.service.d.ts} +3 -0
- package/{dist/es2015/treeview.component.d.ts → treeview.component.d.ts} +22 -10
- package/treeview.module.d.ts +28 -0
- package/{dist/es2015/utils.d.ts → utils.d.ts} +1 -1
- package/dist/cdn/js/kendo-angular-treeview.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/check-mode.js +0 -4
- package/dist/es/check.directive.js +0 -282
- package/dist/es/checkbox/checkbox.component.js +0 -127
- package/dist/es/checkbox/checkbox.module.js +0 -27
- package/dist/es/checkbox/checked-state.js +0 -4
- package/dist/es/data-bound-component.js +0 -21
- package/dist/es/data-change-notification.service.js +0 -18
- package/dist/es/default-callbacks.js +0 -32
- package/dist/es/disable.directive.js +0 -71
- package/dist/es/drag-and-drop/drag-and-drop-editing.directive.js +0 -65
- package/dist/es/drag-and-drop/drag-and-drop-utils.js +0 -274
- package/dist/es/drag-and-drop/drag-and-drop.directive.js +0 -334
- package/dist/es/drag-and-drop/drag-clue/drag-clue-template.directive.js +0 -34
- package/dist/es/drag-and-drop/drag-clue/drag-clue.component.js +0 -54
- package/dist/es/drag-and-drop/drag-clue/drag-clue.service.js +0 -132
- package/dist/es/drag-and-drop/drop-hint/drop-hint-template.directive.js +0 -31
- package/dist/es/drag-and-drop/drop-hint/drop-hint.component.js +0 -43
- package/dist/es/drag-and-drop/drop-hint/drop-hint.service.js +0 -46
- package/dist/es/drag-and-drop/editing-services/drag-and-drop-asset.service.js +0 -53
- package/dist/es/drag-and-drop/editing-services/flat-editing.service.js +0 -145
- package/dist/es/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -90
- package/dist/es/drag-and-drop/models/editing-service.js +0 -4
- package/dist/es/drag-and-drop/models/preventable-event.js +0 -29
- package/dist/es/drag-and-drop/models/treeitem-drag-event.js +0 -14
- package/dist/es/drag-and-drop/models/treeitem-drag-start-event.js +0 -22
- package/dist/es/drag-and-drop/models/treeitem-drop-event.js +0 -36
- package/dist/es/expand-state.service.js +0 -26
- package/dist/es/expand.directive.js +0 -219
- package/dist/es/expandable-component.js +0 -21
- package/dist/es/filtering-base.js +0 -95
- package/dist/es/flat-binding.directive.js +0 -151
- package/dist/es/funcs.js +0 -15
- package/dist/es/hierarchy-binding.directive.js +0 -152
- package/dist/es/index-builder.service.js +0 -38
- package/dist/es/index.js +0 -30
- package/dist/es/load-more/load-more-button-template.directive.js +0 -30
- package/dist/es/load-more/load-more-utils.js +0 -35
- package/dist/es/load-more/load-more.directive.js +0 -114
- package/dist/es/loading-indicator.directive.js +0 -76
- package/dist/es/loading-notification.service.js +0 -23
- package/dist/es/navigation/navigation-model.js +0 -162
- package/dist/es/navigation/navigation.service.js +0 -243
- package/dist/es/node-children.service.js +0 -23
- package/dist/es/node-template.directive.js +0 -74
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/selection/select.directive.js +0 -152
- package/dist/es/selection/selection.service.js +0 -34
- package/dist/es/shared.module.js +0 -75
- package/dist/es/treeview-group.component.js +0 -393
- package/dist/es/treeview-item-content.directive.js +0 -85
- package/dist/es/treeview-item.directive.js +0 -306
- package/dist/es/treeview-lookup.service.js +0 -93
- package/dist/es/treeview.component.js +0 -853
- package/dist/es/treeview.module.js +0 -52
- package/dist/es/utils.js +0 -311
- package/dist/es2015/checkable-settings.js +0 -4
- package/dist/es2015/checkbox/checkbox.module.js +0 -24
- package/dist/es2015/data-bound-component.js +0 -18
- package/dist/es2015/drag-and-drop/drag-clue/drag-clue.component.js +0 -66
- package/dist/es2015/drag-and-drop/drop-hint/drop-hint.component.js +0 -61
- package/dist/es2015/drag-and-drop/models/drop-action.js +0 -17
- package/dist/es2015/drag-and-drop/models/drop-position.js +0 -13
- package/dist/es2015/drag-and-drop/models/scroll-direction.js +0 -12
- package/dist/es2015/drag-and-drop/models/scroll-settings.js +0 -4
- package/dist/es2015/drag-and-drop/models/tree-item-filter-state.js +0 -4
- package/dist/es2015/drag-and-drop/models/treeitem-add-remove-args.js +0 -4
- package/dist/es2015/drag-and-drop/models.js +0 -11
- package/dist/es2015/expandable-component.js +0 -18
- package/dist/es2015/filter-expand-settings.interface.js +0 -4
- package/dist/es2015/filter-state.interface.js +0 -4
- package/dist/es2015/index.d.ts +0 -30
- package/dist/es2015/index.js +0 -30
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/load-more/load-more-button-template.directive.js +0 -29
- package/dist/es2015/load-more/load-more-request-args.js +0 -4
- package/dist/es2015/load-more/load-more.service.js +0 -4
- package/dist/es2015/loading-notification.service.js +0 -25
- package/dist/es2015/main.js +0 -26
- package/dist/es2015/navigation/navigation-item.interface.js +0 -4
- package/dist/es2015/navigation/navigation-state.interface.js +0 -4
- package/dist/es2015/node-click-event.interface.js +0 -4
- package/dist/es2015/selection/selectable-settings.js +0 -4
- package/dist/es2015/selection/selection-mode.js +0 -4
- package/dist/es2015/size.js +0 -4
- package/dist/es2015/treeitem-lookup.interface.js +0 -4
- package/dist/es2015/treeitem.interface.js +0 -4
- package/dist/es2015/treeview.module.d.ts +0 -9
- package/dist/fesm5/index.js +0 -5426
- package/dist/npm/check-mode.js +0 -6
- package/dist/npm/check.directive.js +0 -285
- package/dist/npm/checkable-settings.js +0 -6
- package/dist/npm/checkbox/checkbox.component.js +0 -129
- package/dist/npm/checkbox/checkbox.module.js +0 -29
- package/dist/npm/checkbox/checked-state.js +0 -6
- package/dist/npm/data-bound-component.js +0 -23
- package/dist/npm/data-change-notification.service.js +0 -20
- package/dist/npm/default-callbacks.js +0 -34
- package/dist/npm/disable.directive.js +0 -73
- package/dist/npm/drag-and-drop/drag-and-drop-editing.directive.js +0 -67
- package/dist/npm/drag-and-drop/drag-and-drop-utils.js +0 -278
- package/dist/npm/drag-and-drop/drag-and-drop.directive.js +0 -336
- package/dist/npm/drag-and-drop/drag-clue/drag-clue-template.directive.js +0 -36
- package/dist/npm/drag-and-drop/drag-clue/drag-clue.component.js +0 -56
- package/dist/npm/drag-and-drop/drag-clue/drag-clue.service.js +0 -134
- package/dist/npm/drag-and-drop/drop-hint/drop-hint-template.directive.js +0 -33
- package/dist/npm/drag-and-drop/drop-hint/drop-hint.component.js +0 -45
- package/dist/npm/drag-and-drop/drop-hint/drop-hint.service.js +0 -48
- package/dist/npm/drag-and-drop/editing-services/drag-and-drop-asset.service.js +0 -55
- package/dist/npm/drag-and-drop/editing-services/flat-editing.service.js +0 -147
- package/dist/npm/drag-and-drop/editing-services/hierarchy-editing.service.js +0 -92
- package/dist/npm/drag-and-drop/models/drop-action.js +0 -19
- package/dist/npm/drag-and-drop/models/drop-position.js +0 -15
- package/dist/npm/drag-and-drop/models/editing-service.js +0 -6
- package/dist/npm/drag-and-drop/models/preventable-event.js +0 -31
- package/dist/npm/drag-and-drop/models/scroll-direction.js +0 -14
- package/dist/npm/drag-and-drop/models/scroll-settings.js +0 -6
- package/dist/npm/drag-and-drop/models/tree-item-filter-state.js +0 -6
- package/dist/npm/drag-and-drop/models/treeitem-add-remove-args.js +0 -6
- package/dist/npm/drag-and-drop/models/treeitem-drag-event.js +0 -16
- package/dist/npm/drag-and-drop/models/treeitem-drag-start-event.js +0 -24
- package/dist/npm/drag-and-drop/models/treeitem-drop-event.js +0 -38
- package/dist/npm/drag-and-drop/models.js +0 -14
- package/dist/npm/expand-state.service.js +0 -28
- package/dist/npm/expand.directive.js +0 -221
- package/dist/npm/expandable-component.js +0 -23
- package/dist/npm/filter-expand-settings.interface.js +0 -6
- package/dist/npm/filter-state.interface.js +0 -6
- package/dist/npm/filtering-base.js +0 -97
- package/dist/npm/flat-binding.directive.js +0 -154
- package/dist/npm/funcs.js +0 -17
- package/dist/npm/hierarchy-binding.directive.js +0 -154
- package/dist/npm/index-builder.service.js +0 -40
- package/dist/npm/index.js +0 -55
- package/dist/npm/load-more/load-more-button-template.directive.js +0 -32
- package/dist/npm/load-more/load-more-request-args.js +0 -6
- package/dist/npm/load-more/load-more-utils.js +0 -37
- package/dist/npm/load-more/load-more.directive.js +0 -116
- package/dist/npm/load-more/load-more.service.js +0 -6
- package/dist/npm/loading-indicator.directive.js +0 -78
- package/dist/npm/loading-notification.service.js +0 -25
- package/dist/npm/main.js +0 -50
- package/dist/npm/navigation/navigation-item.interface.js +0 -6
- package/dist/npm/navigation/navigation-model.js +0 -166
- package/dist/npm/navigation/navigation-state.interface.js +0 -6
- package/dist/npm/navigation/navigation.service.js +0 -245
- package/dist/npm/node-children.service.js +0 -25
- package/dist/npm/node-click-event.interface.js +0 -6
- package/dist/npm/node-template.directive.js +0 -76
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/selection/select.directive.js +0 -154
- package/dist/npm/selection/selectable-settings.js +0 -6
- package/dist/npm/selection/selection-mode.js +0 -6
- package/dist/npm/selection/selection.service.js +0 -36
- package/dist/npm/shared.module.js +0 -77
- package/dist/npm/size.js +0 -6
- package/dist/npm/treeitem-lookup.interface.js +0 -6
- package/dist/npm/treeitem.interface.js +0 -6
- package/dist/npm/treeview-filter-settings.js +0 -14
- package/dist/npm/treeview-group.component.js +0 -395
- package/dist/npm/treeview-item-content.directive.js +0 -87
- package/dist/npm/treeview-item.directive.js +0 -308
- package/dist/npm/treeview-lookup.service.js +0 -95
- package/dist/npm/treeview.component.js +0 -855
- package/dist/npm/treeview.module.js +0 -54
- package/dist/npm/utils.js +0 -322
- package/dist/systemjs/kendo-angular-treeview.js +0 -5
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common"),require("@progress/kendo-angular-inputs")):"function"==typeof define&&define.amd?define([,,,,,,,],e):"object"==typeof exports?exports.KendoAngularTreeview=e(require("@angular/core"),require("rxjs"),require("@progress/kendo-angular-common"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/animations"),require("@angular/common"),require("@progress/kendo-angular-inputs")):t.KendoAngularTreeview=e(t.ng.core,t.rxjs,t.KendoAngularCommon,t.KendoAngularL10N,t.KendoLicensing,t.ng.animations,t.ng.common,t.KendoAngularInputs)}(window,(function(t,e,n,i,r,o,s,a){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=46)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return d})),n.d(e,"__generator",(function(){return l})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return f})),n.d(e,"__read",(function(){return v})),n.d(e,"__spread",(function(){return y})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return g})),n.d(e,"__asyncValues",(function(){return x})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return S})),n.d(e,"__importDefault",(function(){return I})),n.d(e,"__classPrivateFieldGet",(function(){return C})),n.d(e,"__classPrivateFieldSet",(function(){return D}));
|
|
6
|
-
/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */
|
|
20
|
-
var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function a(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(t){o(t)}}function a(t){try{c(i.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function l(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function f(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=r[t](e)).value instanceof b?Promise.resolve(n.value.v).then(c,u):d(o[0][2],n)}catch(t){d(o[0][3],t)}var n}function c(t){a("next",t)}function u(t){a("throw",t)}function d(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function g(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,r,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function I(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function D(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(9),o=/^(?:a|input|select|option|textarea|button|object)$/i;e.match=function(t,e){var n=t.matches||t.msMatchesSelector||t.webkitMatchesSelector;return!!n&&n.call(t,e)},e.closestWithMatch=function(t,n){if(!document.documentElement.contains(t))return null;for(var i=t;null!==i&&1===i.nodeType;){if(e.match(i,n))return i;i=i.parentElement||i.parentNode}return null},e.noop=function(){},e.isPresent=function(t){return null!=t},e.isBlank=function(t){return null==t},e.isArray=function(t){return Array.isArray(t)},e.isNullOrEmptyString=function(t){return e.isBlank(t)||0===t.trim().length},e.isBoolean=function(t){return"boolean"==typeof t},e.closestNode=function(t){return i.isDocumentAvailable()?t.closest?t.closest("li.k-treeview-item"):e.closestWithMatch(t,"li.k-treeview-item"):null},e.isFocusable=function(t){if(t.tagName){var e=t.tagName.toLowerCase(),n=t.getAttribute("tabIndex"),i="-1"===n,r=null!==n&&!i;return o.test(e)&&(r=!t.disabled&&!i),r}return!1},e.isContent=function(t){if(!i.isDocumentAvailable())return null;for(var n=t;n&&!e.match(n,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)n=n.parentNode;return n?e.match(n,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0},e.getContentElement=function(t){if(!e.isPresent(t))return null;var n=".k-treeview-leaf:not(.k-treeview-load-more-button)";return e.match(t,n)?t:t.querySelector(n)},e.isLoadMoreButton=function(t){return e.isPresent(e.closestWithMatch(t,".k-treeview-leaf.k-treeview-load-more-button"))},e.closest=function(t,e){for(;t&&!e(t);)t=t.parentNode;return t},e.hasParent=function(t,n){return Boolean(e.closest(t,(function(t){return t===n})))},e.focusableNode=function(t){return t.nativeElement.querySelector('li[tabindex="0"]')},e.hasActiveNode=function(t,n){var i=n||e.closestNode(t);return i&&(i===t||t.tabIndex<0)},e.nodeId=function(t){return t?t.getAttribute("data-treeindex"):""},e.nodeIndex=function(t){return(t||{}).index},e.dataItemsEqual=function(t,n){return!e.isPresent(t)&&!e.isPresent(n)||e.isPresent(t)&&e.isPresent(n)&&t.item.dataItem===n.item.dataItem},e.getDataItem=function(t){return e.isPresent(t)?t.item.dataItem:t},e.isArrayWithAtLeastOneItem=function(t){return t&&Array.isArray(t)&&0!==t.length},e.filterTree=function(t,n,i,r,o){var c=i.operator,d=i.ignoreCase,l=i.mode;void 0===o&&(o=0);var h="string"==typeof r?r:r[o];t.forEach((function(t){var i=("string"==typeof c?u(h,c,d):c)(t.dataItem,n);t.isMatch=i,t.visible=i,t.containsMatches=!1,i&&s(t.parent),t.children&&t.children.length>0&&("strict"!==l&&i?a(t.children):e.filterTree(t.children,n,{operator:c,ignoreCase:d,mode:l},r,o+1))}))};var s=function(t){e.isPresent(t)&&(t.containsMatches=!0,t.visible=!0,e.isPresent(t.parent)&&!t.parent.containsMatches&&s(t.parent))},a=function(t){t.forEach((function(t){t.visible=!0,t.children&&a(t.children)}))},c={contains:function(t,e){return t.indexOf(e)>=0},doesnotcontain:function(t,e){return-1===t.indexOf(e)},startswith:function(t,e){return 0===t.lastIndexOf(e,0)},doesnotstartwith:function(t,e){return-1===t.lastIndexOf(e,0)},endswith:function(t,e){return t.indexOf(e,t.length-e.length)>=0},doesnotendwith:function(t,e){return t.indexOf(e,t.length-e.length)<0}},u=function(t,e,n){return function(i,o){return function(t,e){return function(n,i){return e?t(n.toLowerCase(),i.toLowerCase()):t(n,i)}}(c[e],n)(r.getter(t)(i),o)}};e.buildTreeIndex=function(t,n){return[t,n].filter((function(t){return e.isPresent(t)})).join("_")},e.buildTreeItem=function(t,n,i){return e.isPresent(t)?{dataItem:t,index:e.buildTreeIndex(i,n)}:null},e.fetchLoadedDescendants=function(t,n){if(!e.isPresent(t)||0===t.children.length)return[];var i=t.children;return e.isPresent(n)&&(i=i.filter(n)),i.forEach((function(t){return i=i.concat(e.fetchLoadedDescendants(t,n))})),i},e.sameValues=function(t,e){return t.size===e.size&&Array.from(t).every((function(t){return e.has(t)}))},e.getSizeClass=function(t,e){return{small:"k-"+t+"-sm",medium:"k-"+t+"-md",large:"k-"+t+"-lg"}[e]}},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(33),a=n(3),c=n(47),u=n(48),d=n(34),l=n(19),h=n(10),p=n(7),f=n(20),v=n(11),y=n(35),m=n(12),b=n(13),_=n(14),g=n(21),x=n(22),w=n(23),S=n(2),I=[h.ExpandStateService,p.IndexBuilderService,w.TreeViewLookupService,f.LoadingNotificationService,y.NodeChildrenService,v.NavigationService,x.SelectionService,d.DataChangeNotificationService,s.LocalizationService,{provide:s.L10N_PREFIX,useValue:"kendo.treeview"},{provide:_.DataBoundComponent,useExisting:r.forwardRef((function(){return C}))},{provide:g.ExpandableComponent,useExisting:r.forwardRef((function(){return C}))}],C=function(){function t(t,e,n,i,o,s,d,h,p,f,v){var y=this;this.element=t,this.changeDetectorRef=e,this.expandService=n,this.navigationService=i,this.nodeChildrenService=o,this.selectionService=s,this.treeViewLookupService=d,this.ngZone=h,this.renderer=p,this.dataChangeNotification=f,this.localization=v,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return y.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=l.trackBy,this.isDisabled=l.isDisabled,this.isVisible=l.isVisible,this.navigable=!0,this.children=function(){return a.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 a.BehaviorSubject([]),this._animate=!0,this._size="medium",this.subscriptions=new a.Subscription,this.domSubscriptions=[],c.validatePackage(u.packageMetadata)}return Object.defineProperty(t.prototype,"direction",{get:function(){return this.localization.rtl?"rtl":"ltr"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"animate",{get:function(){return!this._animate},set:function(t){this._animate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodeTemplateRef",{get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(t){this._nodeTemplateRef=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadMoreButtonTemplateRef",{get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(t){this._loadMoreButtonTemplateRef=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this.data.value},set:function(t){this.data.next(t||[]),this.dataChangeNotification.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasChildren",{get:function(){return this._hasChildren||l.hasChildren},set:function(t){this._hasChildren=t,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this._isChecked||l.isChecked},set:function(t){this._isChecked=t,this.checkboxes=Boolean(this._isChecked)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this._isExpanded||l.isExpanded},set:function(t){this._isExpanded=t,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected||l.isSelected},set:function(t){this._isSelected=t,this.selectable=Boolean(this._isSelected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this.renderer.removeClass(this.element.nativeElement,S.getSizeClass("treeview",this.size)),t&&this.renderer.addClass(this.element.nativeElement,S.getSizeClass("treeview",t)),this._size=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.navigationService.navigable=Boolean(this.navigable),o.anyChanged(["nodes","children","hasChildren","loadOnDemand"],t,!1)&&!this.loadOnDemand&&this.preloadChildNodes()},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach((function(t){return t()}))},t.prototype.ngOnInit=function(){var t=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe((function(e){return t.childrenLoaded.emit(e)}))),this.subscriptions.add(this.expandService.changes.subscribe((function(e){var n=e.index,i=e.dataItem;return e.expand?t.expand.emit({index:n,dataItem:i}):t.collapse.emit({index:n,dataItem:i})}))),this.subscriptions.add(this.navigationService.checks.subscribe((function(e){return t.checkedChange.emit(t.treeViewLookupService.itemLookup(e))}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(e){o.hasObservers(t.selectionChange)&&t.ngZone.run((function(){t.selectionChange.emit(e)}))}))),this.element&&this.ngZone.runOutsideAngular((function(){t.attachDomHandlers()})),this.size&&this.renderer.addClass(this.element.nativeElement,S.getSizeClass("treeview",this.size))},t.prototype.blur=function(){if(o.isDocumentAvailable()){var t=S.focusableNode(this.element);document.activeElement===t&&t.blur()}},t.prototype.focus=function(t){var e=t||S.nodeIndex(this.navigationService.focusableItem);this.navigationService.activateIndex(e);var n=S.focusableNode(this.element);n&&n.focus()},t.prototype.itemLookup=function(t){return this.treeViewLookupService.itemLookup(t)},t.prototype.rebindChildren=function(){this.dataChangeNotification.notify()},t.prototype.expandNode=function(t,e){this.expandService.expand(e,t)},t.prototype.collapseNode=function(t,e){this.expandService.collapse(e,t)},t.prototype.getNodePageSize=function(t){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(t)},t.prototype.setNodePageSize=function(t,e){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(t,e)},t.prototype.preloadChildNodes=function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)},t.prototype.attachDomHandlers=function(){var t=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(t,"contextmenu",this.clickHandler),this.renderer.listen(t,"click",this.clickHandler),this.renderer.listen(t,"dblclick",this.clickHandler),this.renderer.listen(t,"focusin",this.focusHandler.bind(this)),this.renderer.listen(t,"focusout",this.blurHandler.bind(this)),this.renderer.listen(t,"keydown",this.keydownHandler.bind(this)))},t.prototype.focusHandler=function(t){var e,n=this;S.match(t.target,".k-treeview-item")?e=t.target:S.isFocusable(t.target)||(e=S.closestNode(t.target)),e&&(this.navigationService.activateIndex(S.nodeId(t.target)),!this.isActive&&o.hasObservers(this.onFocus)&&this.ngZone.run((function(){n.onFocus.emit()})),this.isActive=!0)},t.prototype.blurHandler=function(t){var e=this;!this.isActive||!S.match(t.target,".k-treeview-item")||t.relatedTarget&&S.match(t.relatedTarget,".k-treeview-item")&&S.hasParent(t.relatedTarget,this.element.nativeElement)||(this.navigationService.deactivate(),this.isActive=!1,o.hasObservers(this.onBlur)&&this.ngZone.run((function(){e.onBlur.emit()})))},t.prototype.clickHandler=function(t){var e=this,n=t.target;if(("contextmenu"!==t.type||o.hasObservers(this.nodeClick))&&("click"!==t.type||o.hasObservers(this.nodeClick)||o.hasObservers(this.selectionChange)||S.isLoadMoreButton(n))&&("dblclick"!==t.type||o.hasObservers(this.nodeDblClick))&&!S.isFocusable(n)&&(S.isContent(n)||S.isLoadMoreButton(n))&&S.hasParent(n,this.element.nativeElement)){var i=S.nodeId(S.closestNode(n));i&&!this.navigationService.isDisabled(i)&&this.ngZone.run((function(){var n=e.treeViewLookupService.itemLookup(i);if("click"===t.type){if(e.navigationService.model.findNode(i).loadMoreButton)return void e.navigationService.notifyLoadMore(i);e.navigationService.selectIndex(i)}("dblclick"===t.type?e.nodeDblClick:e.nodeClick).emit({item:n.item,originalEvent:t,type:t.type})}))}},t.prototype.keydownHandler=function(t){var e=this;this.isActive&&this.navigable&&this.ngZone.run((function(){e.navigationService.move(t)}))},t.prototype.verifyLoadMoreService=function(){if(r.isDevMode()&&!S.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/.")},t.prototype.registerLookupItems=function(t,e){var n=this;if(void 0===e&&(e=null),S.isPresent(t)&&0!==t.length){var i=S.nodeIndex(e),r=t.map((function(t,e){return S.buildTreeItem(t,e,i)}));S.isPresent(e)&&this.treeViewLookupService.registerChildren(i,r),r.forEach((function(t){n.treeViewLookupService.registerItem(t,e),n.hasChildren(t.dataItem)&&n.children(t.dataItem).subscribe((function(e){return n.registerLookupItems(e,t)}))}))}},i.__decorate([r.HostBinding("class.k-treeview"),i.__metadata("design:type",Boolean)],t.prototype,"classNames",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],t.prototype,"role",void 0),i.__decorate([r.HostBinding("attr.dir"),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[])],t.prototype,"direction",null),i.__decorate([r.ViewChild("assetsContainer",{read:r.ViewContainerRef,static:!0}),i.__metadata("design:type",r.ViewContainerRef)],t.prototype,"assetsContainer",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"filterInputPlaceholder",void 0),i.__decorate([r.Input(),r.HostBinding("@.disabled"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"animate",null),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"childrenLoaded",void 0),i.__decorate([r.Output("blur"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onBlur",void 0),i.__decorate([r.Output("focus"),i.__metadata("design:type",r.EventEmitter)],t.prototype,"onFocus",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"expand",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"collapse",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"nodeDragStart",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"nodeDrag",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"filterStateChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"nodeDrop",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"nodeDragEnd",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"addItem",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"removeItem",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"checkedChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"selectionChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"filterChange",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"nodeClick",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"nodeDblClick",void 0),i.__decorate([r.ContentChild(m.NodeTemplateDirective,{static:!1}),i.__metadata("design:type",m.NodeTemplateDirective)],t.prototype,"nodeTemplateQuery",void 0),i.__decorate([r.Input("nodeTemplate"),i.__metadata("design:type",m.NodeTemplateDirective),i.__metadata("design:paramtypes",[m.NodeTemplateDirective])],t.prototype,"nodeTemplateRef",null),i.__decorate([r.ContentChild(b.LoadMoreButtonTemplateDirective,{static:!1}),i.__metadata("design:type",b.LoadMoreButtonTemplateDirective)],t.prototype,"loadMoreButtonTemplateQuery",void 0),i.__decorate([r.Input("loadMoreButtonTemplate"),i.__metadata("design:type",b.LoadMoreButtonTemplateDirective),i.__metadata("design:paramtypes",[b.LoadMoreButtonTemplateDirective])],t.prototype,"loadMoreButtonTemplateRef",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"trackBy",void 0),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",Object)],t.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"hasChildren",null),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isChecked",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isExpanded",null),i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isSelected",null),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"navigable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"children",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"filterable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"filter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"size",null),t=i.__decorate([r.Component({changeDetection:r.ChangeDetectionStrategy.Default,exportAs:"kendoTreeView",providers:I,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",[r.ElementRef,r.ChangeDetectorRef,h.ExpandStateService,v.NavigationService,y.NodeChildrenService,x.SelectionService,w.TreeViewLookupService,r.NgZone,r.Renderer2,d.DataChangeNotificationService,s.LocalizationService])],t)}();e.TreeViewComponent=C},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return j})),n.d(e,"auditTime",(function(){return q})),n.d(e,"buffer",(function(){return U})),n.d(e,"bufferCount",(function(){return Z})),n.d(e,"bufferTime",(function(){return tt})),n.d(e,"bufferToggle",(function(){return at})),n.d(e,"bufferWhen",(function(){return dt})),n.d(e,"catchError",(function(){return pt})),n.d(e,"combineAll",(function(){return gt})),n.d(e,"combineLatest",(function(){return wt})),n.d(e,"concat",(function(){return Bt})),n.d(e,"concatAll",(function(){return At})),n.d(e,"concatMap",(function(){return Ft})),n.d(e,"concatMapTo",(function(){return Rt})),n.d(e,"count",(function(){return zt})),n.d(e,"debounce",(function(){return Kt})),n.d(e,"debounceTime",(function(){return qt})),n.d(e,"defaultIfEmpty",(function(){return Zt})),n.d(e,"delay",(function(){return re})),n.d(e,"delayWhen",(function(){return ce})),n.d(e,"dematerialize",(function(){return pe})),n.d(e,"distinct",(function(){return ye})),n.d(e,"distinctUntilChanged",(function(){return _e})),n.d(e,"distinctUntilKeyChanged",(function(){return we})),n.d(e,"elementAt",(function(){return Fe})),n.d(e,"endWith",(function(){return Re})),n.d(e,"every",(function(){return ze})),n.d(e,"exhaust",(function(){return Ke})),n.d(e,"exhaustMap",(function(){return qe})),n.d(e,"expand",(function(){return Xe})),n.d(e,"filter",(function(){return Ce})),n.d(e,"finalize",(function(){return Qe})),n.d(e,"find",(function(){return en})),n.d(e,"findIndex",(function(){return on})),n.d(e,"first",(function(){return sn})),n.d(e,"groupBy",(function(){return pn})),n.d(e,"ignoreElements",(function(){return _n})),n.d(e,"isEmpty",(function(){return wn})),n.d(e,"last",(function(){return Tn})),n.d(e,"map",(function(){return Et})),n.d(e,"mapTo",(function(){return kn})),n.d(e,"materialize",(function(){return Nn})),n.d(e,"max",(function(){return Rn})),n.d(e,"merge",(function(){return Ln})),n.d(e,"mergeAll",(function(){return Mt})),n.d(e,"mergeMap",(function(){return Ot})),n.d(e,"flatMap",(function(){return Ot})),n.d(e,"mergeMapTo",(function(){return Hn})),n.d(e,"mergeScan",(function(){return Kn})),n.d(e,"min",(function(){return qn})),n.d(e,"multicast",(function(){return Jn})),n.d(e,"observeOn",(function(){return ei})),n.d(e,"onErrorResumeNext",(function(){return oi})),n.d(e,"pairwise",(function(){return ci})),n.d(e,"partition",(function(){return hi})),n.d(e,"pluck",(function(){return pi})),n.d(e,"publish",(function(){return vi})),n.d(e,"publishBehavior",(function(){return mi})),n.d(e,"publishLast",(function(){return _i})),n.d(e,"publishReplay",(function(){return Ii})),n.d(e,"race",(function(){return Ti})),n.d(e,"reduce",(function(){return Fn})),n.d(e,"repeat",(function(){return ki})),n.d(e,"repeatWhen",(function(){return Ni})),n.d(e,"retry",(function(){return Ai})),n.d(e,"retryWhen",(function(){return Fi})),n.d(e,"refCount",(function(){return Un})),n.d(e,"sample",(function(){return Li})),n.d(e,"sampleTime",(function(){return Wi})),n.d(e,"scan",(function(){return An})),n.d(e,"sequenceEqual",(function(){return Gi})),n.d(e,"share",(function(){return Ji})),n.d(e,"shareReplay",(function(){return tr})),n.d(e,"single",(function(){return er})),n.d(e,"skip",(function(){return rr})),n.d(e,"skipLast",(function(){return ar})),n.d(e,"skipUntil",(function(){return dr})),n.d(e,"skipWhile",(function(){return pr})),n.d(e,"startWith",(function(){return yr})),n.d(e,"subscribeOn",(function(){return Ir})),n.d(e,"switchAll",(function(){return kr})),n.d(e,"switchMap",(function(){return Dr})),n.d(e,"switchMapTo",(function(){return Or})),n.d(e,"take",(function(){return Ae})),n.d(e,"takeLast",(function(){return Cn})),n.d(e,"takeUntil",(function(){return Pr})),n.d(e,"takeWhile",(function(){return Mr})),n.d(e,"tap",(function(){return Te})),n.d(e,"throttle",(function(){return Fr})),n.d(e,"throttleTime",(function(){return Lr})),n.d(e,"throwIfEmpty",(function(){return Ve})),n.d(e,"timeInterval",(function(){return Yr})),n.d(e,"timeout",(function(){return Qr})),n.d(e,"timeoutWith",(function(){return Xr})),n.d(e,"timestamp",(function(){return Jr})),n.d(e,"toArray",(function(){return no})),n.d(e,"window",(function(){return io})),n.d(e,"windowCount",(function(){return so})),n.d(e,"windowTime",(function(){return uo})),n.d(e,"windowToggle",(function(){return mo})),n.d(e,"windowWhen",(function(){return go})),n.d(e,"withLatestFrom",(function(){return So})),n.d(e,"zip",(function(){return No})),n.d(e,"zipAll",(function(){return Vo}));var i=n(0);function r(t){return"function"==typeof t}var o=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function a(t){setTimeout((function(){throw t}))}var c={closed:!0,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete:function(){}},u=Array.isArray||function(t){return t&&"number"==typeof t.length};function d(t){return null!==t&&"object"==typeof t}function l(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}l.prototype=Object.create(Error.prototype);var h=l,p=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,i=this._parents,o=this._unsubscribe,s=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,c=i?i.length:0;n;)n.remove(this),n=++a<c&&i[a]||null;if(r(o))try{o.call(this)}catch(n){e=!0,t=n instanceof h?f(n.errors):[n]}if(u(s))for(a=-1,c=s.length;++a<c;){var l=s[a];if(d(l))try{l.unsubscribe()}catch(n){e=!0,t=t||[],n instanceof h?t=t.concat(f(n.errors)):t.push(n)}}if(e)throw new h(t)}},t.prototype.add=function(e){var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var i=n;(n=new t)._subscriptions=[i]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){var r=this._subscriptions;r?r.push(n):this._subscriptions=[n]}return n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function f(t){return t.reduce((function(t,e){return t.concat(e instanceof h?e.errors:e)}),[])}var v="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),y=function(t){function e(n,i,r){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=c;break;case 1:if(!n){o.destination=c;break}if("object"==typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new m(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new m(o,n,i,r)}return o}return i.__extends(e,t),e.prototype[v]=function(){return this},e.create=function(t,n,i){var r=new e(t,n,i);return r.syncErrorThrowable=!1,r},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(p),m=function(t){function e(e,n,i,o){var s,a=t.call(this)||this;a._parentSubscriber=e;var u=a;return r(n)?s=n:n&&(s=n.next,i=n.error,o=n.complete,n!==c&&(r((u=Object.create(n)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(a))),a._context=u,a._next=s,a._error=i,a._complete=o,a}return i.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):a(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;a(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw t;a(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(a(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(y),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(y),_=function(t){function e(e,n,i){var r=t.call(this)||this;return r.parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(y);var g="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(){}function w(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S(t)}function S(t){return t?1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}:x}var I=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var i=this.operator,r=function(t,e,n){if(t){if(t instanceof y)return t;if(t[v])return t[v]()}return t||e||n?new y(t,e,n):new y(c)}(t,e,n);if(i?r.add(i.call(r,this.source)):r.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,n=e.closed,i=e.destination,r=e.isStopped;if(n||r)return!1;t=i&&i instanceof y?i:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=C(e))((function(e,i){var r;r=n.subscribe((function(e){try{t(e)}catch(t){i(t),r&&r.unsubscribe()}}),i,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[g]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:S(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=C(t))((function(t,n){var i;e.subscribe((function(t){return i=t}),(function(t){return n(t)}),(function(){return t(i)}))}))},t.create=function(e){return new t(e)},t}();function C(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var D=function(t){return function(e){for(var n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}},E=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,a),e}};function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var k=T(),O=function(t){return function(e){for(var n=t[k]();;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}},P=function(t){return function(e){var n=t[g]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},N=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function V(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var M=function(t){if(t instanceof I)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(t&&"function"==typeof t[g])return P(t);if(N(t))return D(t);if(V(t))return E(t);if(t&&"function"==typeof t[k])return O(t);var e=d(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function A(t,e,n,i,r){if(void 0===r&&(r=new _(t,n,i)),!r.closed)return M(e)(r)}function j(t){return function(e){return e.lift(new B(t))}}var B=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new F(t,this.durationSelector))},t}(),F=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=A(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(b),R=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return i.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(t){n=!0,i=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return i.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(p)),z=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),L=function(t){function e(n,i){void 0===i&&(i=z.now);var r=t.call(this,n,(function(){return e.delegate&&e.delegate!==r?e.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return i.__extends(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(z),H=new L(R);function K(t){return!u(t)&&t-parseFloat(t)+1>=0}function W(t){return t&&"function"==typeof t.schedule}function Y(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function q(t,e){return void 0===e&&(e=H),j((function(){return function(t,e,n){void 0===t&&(t=0);var i=-1;return K(e)?i=Number(e)<1?1:Number(e):W(e)&&(n=e),W(n)||(n=H),new I((function(e){var r=K(t)?t:+t-n.now();return n.schedule(Y,r,{index:0,period:i,subscriber:e})}))}(t,e)}))}function U(t){return function(e){return e.lift(new G(t))}}var G=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.closingNotifier))},t}(),X=function(t){function e(e,n){var i=t.call(this,e)||this;return i.buffer=[],i.add(A(i,n)),i}return i.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(b);function Z(t,e){return void 0===e&&(e=null),function(n){return n.lift(new $(t,e))}}var $=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?J:Q}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),Q=function(t){function e(e,n){var i=t.call(this,e)||this;return i.bufferSize=n,i.buffer=[],i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(y),J=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.bufferSize=n,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i.__extends(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var s=i[o];s.push(t),s.length===e&&(i.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var i=e.shift();i.length>0&&n.next(i)}t.prototype._complete.call(this)},e}(y);function tt(t){var e=arguments.length,n=H;W(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var r=Number.POSITIVE_INFINITY;return e>=3&&(r=arguments[2]),function(e){return e.lift(new et(t,i,r,n))}}var et=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),nt=function(){return function(){this.buffer=[]}}(),it=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=i,s.maxBufferSize=r,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==i||i<0,s.timespanOnly){var c={subscriber:s,context:a,bufferTimeSpan:n};s.add(a.closeAction=o.schedule(rt,n,c))}else{var u={subscriber:s,context:a},d={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(st,n,u)),s.add(o.schedule(ot,i,d))}return s}return i.__extends(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var i=e.shift();n.next(i.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(rt,n,i))}},e.prototype.openContext=function(){var t=new nt;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(y);function rt(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function ot(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(st,n,{subscriber:i,context:o})),this.schedule(t,e))}function st(t){var e=t.subscriber,n=t.context;e.closeContext(n)}function at(t,e){return function(n){return n.lift(new ct(t,e))}}var ct=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new ut(t,this.openings,this.closingSelector))},t}(),ut=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(A(r,n)),r}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,i=0;i<n;i++)e[i].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,i=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new p,i={buffer:[],subscription:n};e.push(i);var r=A(this,t,i);!r||r.closed?this.closeBuffer(i):(r.context=i,this.add(r),n.add(r))},e}(b);function dt(t){return function(e){return e.lift(new lt(t))}}var lt=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ht(t,this.closingSelector))},t}(),ht=function(t){function e(e,n){var i=t.call(this,e)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,i,r){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new p,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(A(this,e)),this.subscribing=!1},e}(b);function pt(t){return function(e){var n=new ft(t),i=e.lift(n);return n.caught=i}}var ft=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.selector,this.caught))},t}(),vt=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var i=new _(this,void 0,void 0);this.add(i),A(this,n,void 0,void 0,i)}},e}(b);function yt(t,e){return new I(e?function(n){var i=new p,r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:D(t))}var mt={};var bt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new _t(t,this.resultSelector))},t}(),_t=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(e,t),e.prototype._next=function(t){this.values.push(mt),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(A(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.values,s=o[n],a=this.toRespond?s===mt?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(b);function gt(t){return function(e){return e.lift(new bt(t))}}function xt(t,e){if(!e)return t instanceof I?t:new I(M(t));if(null!=t){if(function(t){return t&&"function"==typeof t[g]}(t))return function(t,e){return new I(e?function(n){var i=new p;return i.add(e.schedule((function(){var r=t[g]();i.add(r.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}:P(t))}(t,e);if(V(t))return function(t,e){return new I(e?function(n){var i=new p;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}:E(t))}(t,e);if(N(t))return yt(t,e);if(function(t){return t&&"function"==typeof t[k]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new I(e?function(n){var i,r=new p;return r.add((function(){i&&"function"==typeof i.return&&i.return()})),r.add(e.schedule((function(){i=t[k](),r.add(e.schedule((function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),r}:O(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function wt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&u(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(xt([e].concat(t)),new bt(n))}}var St=new I((function(t){return t.complete()}));function It(t){return t?function(t){return new I((function(e){return t.schedule((function(){return e.complete()}))}))}(t):St}function Ct(t){var e=new I((function(e){e.next(t),e.complete()}));return e._isScalar=!0,e.value=t,e}function Dt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(W(n)?t.pop():n=void 0,t.length){case 0:return It(n);case 1:return n?yt(t,n):Ct(t[0]);default:return yt(t,n)}}function Et(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Tt(t,e))}}var Tt=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.project,this.thisArg))},t}(),kt=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(y);function Ot(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(Ot((function(n,i){return xt(t(n,i)).pipe(Et((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new Pt(t,n))})}var Pt=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Nt(t,this.project,this.concurrent))},t}(),Nt=function(t){function e(e,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=t.call(this,e)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.__extends(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=new _(this,void 0,void 0);this.destination.add(i),A(this,t,e,n,i)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(b);function Vt(t){return t}function Mt(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Ot(Vt,t)}function At(){return Mt(1)}function jt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return At()(Dt.apply(void 0,t))}function Bt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(jt.apply(void 0,[e].concat(t)))}}function Ft(t,e){return Ot(t,e,1)}function Rt(t,e){return Ft((function(){return t}),e)}function zt(t){return function(e){return e.lift(new Lt(t,e))}}var Lt=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Ht(t,this.predicate,this.source))},t}(),Ht=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.source=i,r.count=0,r.index=0,r}return i.__extends(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(y);function Kt(t){return function(e){return e.lift(new Wt(t))}}var Wt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Yt(t,this.durationSelector))},t}(),Yt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i.durationSubscription=null,i}return i.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=A(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(b);function qt(t,e){return void 0===e&&(e=H),function(n){return n.lift(new Ut(t,e))}}var Ut=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Gt(t,this.dueTime,this.scheduler))},t}(),Gt=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Xt,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(y);function Xt(t){t.debouncedNext()}function Zt(t){return void 0===t&&(t=null),function(e){return e.lift(new Qt(t))}}var $t,Qt=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.defaultValue))},t}(),Jt=function(t){function e(e,n){var i=t.call(this,e)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__extends(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(y);function te(t){return t instanceof Date&&!isNaN(+t)}function ee(t,e){return new I(e?function(n){return e.schedule(ne,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function ne(t){var e=t.error;t.subscriber.error(e)}$t||($t={});var ie=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Dt(this.value);case"E":return ee(this.error);case"C":return It()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function re(t,e){void 0===e&&(e=H);var n=te(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new oe(n,e))}}var oe=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new se(t,this.delay,this.scheduler))},t}(),se=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i.__extends(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new ae(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ie.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ie.createComplete()),this.unsubscribe()},e}(y),ae=function(){return function(t,e){this.time=t,this.notification=e}}();function ce(t,e){return e?function(n){return new le(n,e).lift(new ue(t))}:function(e){return e.lift(new ue(t))}}var ue=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new de(t,this.delayDurationSelector))},t}(),de=function(t){function e(e,n){var i=t.call(this,e)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(t),this.removeSubscription(r),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=A(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(b),le=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subscriptionDelay=n,i}return i.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new he(t,this.source))},e}(I),he=function(t){function e(e,n){var i=t.call(this)||this;return i.parent=e,i.source=n,i.sourceSubscribed=!1,i}return i.__extends(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(y);function pe(){return function(t){return t.lift(new fe)}}var fe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ve(t))},t}(),ve=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(y);function ye(t,e){return function(n){return n.lift(new me(t,e))}}var me=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new be(t,this.keySelector,this.flushes))},t}(),be=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=n,r.values=new Set,i&&r.add(A(r,i)),r}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(b);function _e(t,e){return function(n){return n.lift(new ge(t,e))}}var ge=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.compare,this.keySelector))},t}(),xe=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))},e}(y);function we(t,e){return _e((function(n,i){return e?e(n[t],i[t]):n[t]===i[t]}))}function Se(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Se.prototype=Object.create(Error.prototype);var Ie=Se;function Ce(t,e){return function(n){return n.lift(new De(t,e))}}var De=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.predicate,this.thisArg))},t}(),Ee=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(y);function Te(t,e,n){return function(i){return i.lift(new ke(t,e,n))}}var ke=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new Oe(t,this.nextOrObserver,this.error,this.complete))},t}(),Oe=function(t){function e(e,n,i,o){var s=t.call(this,e)||this;return s._tapNext=x,s._tapError=x,s._tapComplete=x,s._tapError=i||x,s._tapComplete=o||x,r(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||x,s._tapError=n.error||x,s._tapComplete=n.complete||x),s}return i.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(y);function Pe(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Pe.prototype=Object.create(Error.prototype);var Ne=Pe,Ve=function(t){return void 0===t&&(t=Me),Te({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function Me(){return new Ne}function Ae(t){return function(e){return 0===t?It():e.lift(new je(t))}}var je=function(){function t(t){if(this.total=t,this.total<0)throw new Ie}return t.prototype.call=function(t,e){return e.subscribe(new Be(t,this.total))},t}(),Be=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(y);function Fe(t,e){if(t<0)throw new Ie;var n=arguments.length>=2;return function(i){return i.pipe(Ce((function(e,n){return n===t})),Ae(1),n?Zt(e):Ve((function(){return new Ie})))}}function Re(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];W(n)?t.pop():n=null;var i=t.length;return jt(e,1!==i||n?i>0?yt(t,n):It(n):Ct(t[0]))}}function ze(t,e){return function(n){return n.lift(new Le(t,e,n))}}var Le=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new He(t,this.predicate,this.thisArg,this.source))},t}(),He=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(y);function Ke(){return function(t){return t.lift(new We)}}var We=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ye(t))},t}(),Ye=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(A(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(b);function qe(t,e){return e?function(n){return n.pipe(qe((function(n,i){return xt(t(n,i)).pipe(Et((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Ue(t))}}var Ue=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ge(t,this.project))},t}(),Ge=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=new _(this,void 0,void 0);this.destination.add(i),A(this,t,e,n,i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(b);function Xe(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(i){return i.lift(new Ze(t,e,n))}}var Ze=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new $e(t,this.project,this.concurrent,this.scheduler))},t}(),$e=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.project=n,o.concurrent=i,o.scheduler=r,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i.__extends(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,i=t.value,r=t.index;e.subscribeToProjection(n,i,r)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(t);try{var r=(0,this.project)(t,i);if(this.scheduler){var o={subscriber:this,result:r,value:t,index:i};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(r,t,i)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(A(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(b);function Qe(t){return function(e){return e.lift(new Je(t))}}var Je=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new tn(t,this.callback))},t}(),tn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new p(n)),i}return i.__extends(e,t),e}(y);function en(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new nn(t,n,!1,e))}}var nn=function(){function t(t,e,n,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}return t.prototype.call=function(t,e){return e.subscribe(new rn(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),rn=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=i,s.yieldIndex=r,s.thisArg=o,s.index=0,s}return i.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,i=this.index++;try{e.call(n||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(y);function on(t,e){return function(n){return n.lift(new nn(t,n,!0,e))}}function sn(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ce((function(e,n){return t(e,n,i)})):Vt,Ae(1),n?Zt(e):Ve((function(){return new Ne})))}}function an(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}an.prototype=Object.create(Error.prototype);var cn=an,un=function(t){function e(e,n){var i=t.call(this)||this;return i.subject=e,i.subscriber=n,i.closed=!1,i}return i.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(p),dn=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i.__extends(e,t),e}(y),ln=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.__extends(e,t),e.prototype[v]=function(){return new dn(this)},e.prototype.lift=function(t){var e=new hn(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new cn;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].next(t)},e.prototype.error=function(t){if(this.closed)throw new cn;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new cn;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new cn;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new cn;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new un(this,t))},e.prototype.asObservable=function(){var t=new I;return t.source=this,t},e.create=function(t,e){return new hn(t,e)},e}(I),hn=function(t){function e(e,n){var i=t.call(this)||this;return i.destination=e,i.source=n,i}return i.__extends(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):p.EMPTY},e}(ln);function pn(t,e,n,i){return function(r){return r.lift(new fn(t,e,n,i))}}var fn=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new vn(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),vn=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=i,s.durationSelector=r,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return i.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(t){this.error(t)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new ln,n.set(e,r);var o=new mn(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new mn(e,r))}catch(t){return void this.error(t)}this.add(s.subscribe(new yn(e,r,this)))}}r.closed||r.next(i)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(y),yn=function(t){function e(e,n,i){var r=t.call(this,n)||this;return r.key=e,r.group=n,r.parent=i,r}return i.__extends(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(y),mn=function(t){function e(e,n,i){var r=t.call(this)||this;return r.key=e,r.groupSubject=n,r.refCountSubscription=i,r}return i.__extends(e,t),e.prototype._subscribe=function(t){var e=new p,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new bn(n)),e.add(i.subscribe(t)),e},e}(I),bn=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return i.__extends(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(p);function _n(){return function(t){return t.lift(new gn)}}var gn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new xn(t))},t}(),xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype._next=function(t){},e}(y);function wn(){return function(t){return t.lift(new Sn)}}var Sn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new In(t))},t}(),In=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(y);function Cn(t){return function(e){return 0===t?It():e.lift(new Dn(t))}}var Dn=function(){function t(t){if(this.total=t,this.total<0)throw new Ie}return t.prototype.call=function(t,e){return e.subscribe(new En(t,this.total))},t}(),En=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=e++%n;t.next(i[o])}t.complete()},e}(y);function Tn(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ce((function(e,n){return t(e,n,i)})):Vt,Cn(1),n?Zt(e):Ve((function(){return new Ne})))}}function kn(t){return function(e){return e.lift(new On(t))}}var On=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Pn(t,this.value))},t}(),Pn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.value=n,i}return i.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(y);function Nn(){return function(t){return t.lift(new Vn)}}var Vn=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Mn(t))},t}(),Mn=function(t){function e(e){return t.call(this,e)||this}return i.__extends(e,t),e.prototype._next=function(t){this.destination.next(ie.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ie.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ie.createComplete()),t.complete()},e}(y);function An(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new jn(t,e,n))}}var jn=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Bn(t,this.accumulator,this.seed,this.hasSeed))},t}(),Bn=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(y);function Fn(t,e){return arguments.length>=2?function(n){return w(An(t,e),Cn(1),Zt(e))(n)}:function(e){return w(An((function(e,n,i){return t(e,n,i+1)})),Cn(1))(e)}}function Rn(t){return Fn("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}function zn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,i=null,r=t[t.length-1];return W(r)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof r&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof I?t[0]:Mt(n)(yt(t,i))}function Ln(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(zn.apply(void 0,[e].concat(t)))}}function Hn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Ot((function(){return t}),e,n):("number"==typeof e&&(n=e),Ot((function(){return t}),n))}function Kn(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new Wn(t,e,n))}}var Wn=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Yn(t,this.accumulator,this.seed,this.concurrent))},t}(),Yn=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=i,o.concurrent=r,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(i,t,e)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){var i=new _(this,void 0,void 0);this.destination.add(i),A(this,t,e,n,i)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.destination.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(b);function qn(t){return Fn("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}function Un(){return function(t){return t.lift(new Gn(t))}}var Gn=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new Xn(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),Xn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(y),Zn=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new p).add(this.source.subscribe(new Qn(this.getSubject(),this))),t.closed?(this._connection=null,t=p.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return Un()(this)},e}(I).prototype,$n={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Zn._subscribe},_isComplete:{value:Zn._isComplete,writable:!0},getSubject:{value:Zn.getSubject},connect:{value:Zn.connect},refCount:{value:Zn.refCount}},Qn=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(dn);function Jn(t,e){return function(n){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new ti(i,e));var r=Object.create(n,$n);return r.source=n,r.subjectFactory=i,r}}var ti=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r},t}();function ei(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ni(t,e))}}var ni=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new ii(t,this.scheduler,this.delay))},t}(),ii=function(t){function e(e,n,i){void 0===i&&(i=0);var r=t.call(this,e)||this;return r.scheduler=n,r.delay=i,r}return i.__extends(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new ri(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(ie.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(ie.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(ie.createComplete()),this.unsubscribe()},e}(y),ri=function(){return function(t,e){this.notification=t,this.destination=e}}();function oi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&u(t[0])&&(t=t[0]),function(e){return e.lift(new si(t))}}var si=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new ai(t,this.nextSources))},t}(),ai=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.nextSources=n,i}return i.__extends(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new _(this,void 0,void 0);this.destination.add(e),A(this,t,void 0,void 0,e)}else this.destination.complete()},e}(b);function ci(){return function(t){return t.lift(new ui)}}var ui=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new di(t))},t}(),di=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return i.__extends(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(y);function li(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function hi(t,e){return function(n){return[Ce(t,e)(n),Ce(li(t,e))(n)]}}function pi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Et(fi(t,n))(e)}}function fi(t,e){return function(n){for(var i=n,r=0;r<e;r++){var o=i[t[r]];if(void 0===o)return;i=o}return i}}function vi(t){return t?Jn((function(){return new ln}),t):Jn(new ln)}var yi=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new cn;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(ln);function mi(t){return function(e){return Jn(new yi(t))(e)}}var bi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),p.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(ln);function _i(){return function(t){return Jn(new bi)(t)}}var gi=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(R),xi=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(L))(gi),wi=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=e<1?1:e,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Si(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new cn;if(this.isStopped||this.hasError?e=p.EMPTY:(this.observers.push(t),e=new un(this,t)),r&&t.add(t=new ii(t,r)),n)for(var s=0;s<o&&!t.closed;s++)t.next(i[s]);else for(s=0;s<o&&!t.closed;s++)t.next(i[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||xi).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(ln),Si=function(){return function(t,e){this.time=t,this.value=e}}();function Ii(t,e,n,i){n&&"function"!=typeof n&&(i=n);var r="function"==typeof n?n:void 0,o=new wi(t,e,i);return function(t){return Jn((function(){return o}),r)(t)}}function Ci(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!u(t[0]))return t[0];t=t[0]}return yt(t,void 0).lift(new Di)}var Di=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ei(t))},t}(),Ei=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__extends(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var i=t[n],r=A(this,i,i,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,i,r){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(b);function Ti(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&u(t[0])&&(t=t[0]),e.lift.call(Ci.apply(void 0,[e].concat(t)))}}function ki(t){return void 0===t&&(t=-1),function(e){return 0===t?It():t<0?e.lift(new Oi(-1,e)):e.lift(new Oi(t-1,e))}}var Oi=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Pi(t,this.count,this.source))},t}(),Pi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.count=n,r.source=i,r}return i.__extends(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(y);function Ni(t){return function(e){return e.lift(new Vi(t))}}var Vi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Mi(t,this.notifier,e))},t}(),Mi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.notifier=n,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new ln;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=A(this,e)},e}(b);function Ai(t){return void 0===t&&(t=-1),function(e){return e.lift(new ji(t,e))}}var ji=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Bi(t,this.count,this.source))},t}(),Bi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.count=n,r.source=i,r}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(y);function Fi(t){return function(e){return e.lift(new Ri(t,e))}}var Ri=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new zi(t,this.notifier,this.source))},t}(),zi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.notifier=n,r.source=i,r}return i.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,i=this.retries,r=this.retriesSubscription;if(i)this.errors=null,this.retriesSubscription=null;else{n=new ln;try{i=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}r=A(this,i)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=r,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,i,r){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},e}(b);function Li(t){return function(e){return e.lift(new Hi(t))}}var Hi=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Ki(t),i=e.subscribe(n);return i.add(A(n,this.notifier)),i},t}(),Ki=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return i.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,i,r){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(b);function Wi(t,e){return void 0===e&&(e=H),function(n){return n.lift(new Yi(t,e))}}var Yi=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qi(t,this.period,this.scheduler))},t}(),qi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.period=n,r.scheduler=i,r.hasValue=!1,r.add(i.schedule(Ui,n,{subscriber:r,period:n})),r}return i.__extends(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(y);function Ui(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Gi(t,e){return function(n){return n.lift(new Xi(t,e))}}var Xi=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Zi(t,this.compareTo,this.comparator))},t}(),Zi=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.compareTo=n,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(n.subscribe(new $i(e,r))),r}return i.__extends(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var i=t.shift(),r=e.shift(),o=!1;try{o=n?n(i,r):i===r}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(y),$i=function(t){function e(e,n){var i=t.call(this,e)||this;return i.parent=n,i}return i.__extends(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(y);function Qi(){return new ln}function Ji(){return function(t){return Un()(Jn(Qi)(t))}}function tr(t,e,n){var i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,a=t.refCount,c=t.scheduler,u=0,d=!1,l=!1;return function(t){u++,e&&!d||(d=!1,e=new wi(r,s,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){d=!0,e.error(t)},complete:function(){l=!0,e.complete()}}));var i=e.subscribe(this);this.add((function(){u--,i.unsubscribe(),n&&!l&&a&&0===u&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(i))}}function er(t){return function(e){return e.lift(new nr(t,e))}}var nr=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new ir(t,this.predicate,this.source))},t}(),ir=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.source=i,r.seenValue=!1,r.index=0,r}return i.__extends(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Ne)},e}(y);function rr(t){return function(e){return e.lift(new or(t))}}var or=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new sr(t,this.total))},t}(),sr=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(y);function ar(t){return function(e){return e.lift(new cr(t))}}var cr=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ie}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new y(t)):e.subscribe(new ur(t,this._skipCount))},t}(),ur=function(t){function e(e,n){var i=t.call(this,e)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var i=n%e,r=this._ring,o=r[i];r[i]=t,this.destination.next(o)}},e}(y);function dr(t){return function(e){return e.lift(new lr(t))}}var lr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new hr(t,this.notifier))},t}(),hr=function(t){function e(e,n){var i=t.call(this,e)||this;i.hasValue=!1;var r=new _(i,void 0,void 0);return i.add(r),i.innerSubscription=r,A(i,n,void 0,void 0,r),i}return i.__extends(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,i,r){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(b);function pr(t){return function(e){return e.lift(new fr(t))}}var fr=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new vr(t,this.predicate))},t}(),vr=function(t){function e(e,n){var i=t.call(this,e)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(y);function yr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];W(n)?t.pop():n=null;var i=t.length;return jt(1!==i||n?i>0?yt(t,n):It(n):Ct(t[0]),e)}}var mr=1,br={};var _r=function(t){var e=mr++;return br[e]=t,Promise.resolve().then((function(){return function(t){var e=br[t];e&&e()}(e)})),e},gr=function(t){delete br[t]},xr=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i.__extends(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=_r(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(gr(n),e.scheduled=void 0)},e}(R),wr=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}(L))(xr),Sr=function(t){function e(e,n,i){void 0===n&&(n=0),void 0===i&&(i=wr);var r=t.call(this)||this;return r.source=e,r.delayTime=n,r.scheduler=i,(!K(n)||n<0)&&(r.delayTime=0),i&&"function"==typeof i.schedule||(r.scheduler=wr),r}return i.__extends(e,t),e.create=function(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=wr),new e(t,n,i)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,i=this.source;return this.scheduler.schedule(e.dispatch,n,{source:i,subscriber:t})},e}(I);function Ir(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Cr(t,e))}}var Cr=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Sr(e,this.delay,this.scheduler).subscribe(t)},t}();function Dr(t,e){return"function"==typeof e?function(n){return n.pipe(Dr((function(n,i){return xt(t(n,i)).pipe(Et((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new Er(t))}}var Er=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Tr(t,this.project))},t}(),Tr=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return i.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new _(this,void 0,void 0);this.destination.add(r),this.innerSubscription=A(this,t,e,n,r)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e}(b);function kr(){return Dr(Vt)}function Or(t,e){return e?Dr((function(){return t}),e):Dr((function(){return t}))}function Pr(t){return function(e){return e.lift(new Nr(t))}}var Nr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Vr(t),i=A(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),Vr=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(b);function Mr(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new Ar(t,e))}}var Ar=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new jr(t,this.predicate,this.inclusive))},t}(),jr=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.inclusive=i,r.index=0,r}return i.__extends(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(y),Br={leading:!0,trailing:!1};function Fr(t,e){return void 0===e&&(e=Br),function(n){return n.lift(new Rr(t,e.leading,e.trailing))}}var Rr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new zr(t,this.durationSelector,this.leading,this.trailing))},t}(),zr=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=i,o._trailing=r,o._hasValue=!1,o}return i.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=A(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,i,r){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(b);function Lr(t,e,n){return void 0===e&&(e=H),void 0===n&&(n=Br),function(i){return i.lift(new Hr(t,e,n.leading,n.trailing))}}var Hr=function(){function t(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new Kr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Kr=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=i,s.leading=r,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return i.__extends(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Wr,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(y);function Wr(t){t.subscriber.clearThrottle()}function Yr(t){return void 0===t&&(t=H),function(e){return n=function(){return e.pipe(An((function(e,n){var i=e.current;return{value:n,current:t.now(),last:i}}),{current:t.now(),value:void 0,last:void 0}),Et((function(t){var e=t.current,n=t.last,i=t.value;return new qr(i,e-n)})))},new I((function(t){var e;try{e=n()}catch(e){return void t.error(e)}return(e?xt(e):It()).subscribe(t)}));var n}}var qr=function(){return function(t,e){this.value=t,this.interval=e}}();function Ur(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}Ur.prototype=Object.create(Error.prototype);var Gr=Ur;function Xr(t,e,n){return void 0===n&&(n=H),function(i){var r=te(t),o=r?+t-n.now():Math.abs(t);return i.lift(new Zr(o,r,e,n))}}var Zr=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new $r(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),$r=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=i,s.withObservable=r,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}return i.__extends(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(A(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(b);function Qr(t,e){return void 0===e&&(e=H),Xr(t,ee(new Gr),e)}function Jr(t){return void 0===t&&(t=H),Et((function(e){return new to(e,t.now())}))}var to=function(){return function(t,e){this.value=t,this.timestamp=e}}();function eo(t,e,n){return 0===n?[e]:(t.push(e),t)}function no(){return Fn(eo,[])}function io(t){return function(e){return e.lift(new ro(t))}}var ro=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new oo(t),i=e.subscribe(n);return i.closed||n.add(A(n,this.windowBoundaries)),i},t}(),oo=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new ln,e.next(n.window),n}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new ln;e.next(n)},e}(b);function so(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ao(t,e))}}var ao=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new co(t,this.windowSize,this.startWindowEvery))},t}(),co=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.destination=e,r.windowSize=n,r.startWindowEvery=i,r.windows=[new ln],r.count=0,e.next(r.windows[0]),r}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,o=r.length,s=0;s<o&&!this.closed;s++)r[s].next(t);var a=this.count-i+1;if(a>=0&&a%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var c=new ln;r.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(y);function uo(t){var e=H,n=null,i=Number.POSITIVE_INFINITY;return W(arguments[3])&&(e=arguments[3]),W(arguments[2])?e=arguments[2]:K(arguments[2])&&(i=arguments[2]),W(arguments[1])?e=arguments[1]:K(arguments[1])&&(n=arguments[1]),function(r){return r.lift(new lo(t,n,i,e))}}var lo=function(){function t(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new po(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ho=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return i.__extends(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(ln),po=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=i,s.maxWindowSize=r,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==i&&i>=0){var c={subscriber:s,window:a,context:null},u={windowTimeSpan:n,windowCreationInterval:i,subscriber:s,scheduler:o};s.add(o.schedule(yo,n,c)),s.add(o.schedule(vo,i,u))}else{var d={subscriber:s,window:a,windowTimeSpan:n};s.add(o.schedule(fo,n,d))}return s}return i.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,i=0;i<n;i++){var r=e[i];r.closed||(r.next(t),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new ho;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(y);function fo(t){var e=t.subscriber,n=t.windowTimeSpan,i=t.window;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function vo(t){var e=t.windowTimeSpan,n=t.subscriber,i=t.scheduler,r=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null},a={subscriber:n,window:o,context:s};s.subscription=i.schedule(yo,e,a),this.add(s.subscription),this.schedule(t,r)}function yo(t){var e=t.subscriber,n=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}function mo(t,e){return function(n){return n.lift(new bo(t,e))}}var bo=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new _o(t,this.openings,this.closingSelector))},t}(),_o=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=A(r,n,n)),r}return i.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,i=0;i<n;i++)e[i].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,i=-1;++i<n;){var r=e[i];r.window.complete(),r.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var i=t[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,i,r){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var s=new ln,a=new p,c={window:s,subscription:a};this.contexts.push(c);var u=A(this,o,c);u.closed?this.closeWindow(this.contexts.length-1):(u.context=c,a.add(u)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],i=n.window,r=n.subscription;e.splice(t,1),i.complete(),r.unsubscribe()}},e}(b);function go(t){return function(e){return e.lift(new xo(t))}}var xo=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new wo(t,this.closingSelector))},t}(),wo=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.closingSelector=n,i.openWindow(),i}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow(r)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,i=this.window=new ln;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=A(this,n))},e}(b);function So(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var i=t;return e.lift(new Io(i,n))}}var Io=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new Co(t,this.observables,this.project))},t}(),Co=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.observables=n,r.project=i,r.toRespond=[];var o=n.length;r.values=new Array(o);for(var s=0;s<o;s++)r.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];r.add(A(r,a,a,s))}return r}return i.__extends(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(b);function Do(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),yt(t,void 0).lift(new Eo(n))}var Eo=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new To(t,this.resultSelector))},t}(),To=function(t){function e(e,n,i){void 0===i&&(i=Object.create(null));var r=t.call(this,e)||this;return r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:null,r.values=i,r}return i.__extends(e,t),e.prototype._next=function(t){var e=this.iterators;u(t)?e.push(new Oo(t)):"function"==typeof t[k]?e.push(new ko(t[k]())):e.push(new Po(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var i=t[n];if(i.stillUnsubscribed)this.destination.add(i.subscribe(i,n));else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,i=0;i<e;i++){if("function"==typeof(s=t[i]).hasValue&&!s.hasValue())return}var r=!1,o=[];for(i=0;i<e;i++){var s,a=(s=t[i]).next();if(s.hasCompleted()&&(r=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(y),ko=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),Oo=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[k]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Po=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return i.__extends(e,t),e.prototype[k]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return A(this,this.observable,this,e)},e}(b);function No(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Do.apply(void 0,[e].concat(t)))}}function Vo(t){return function(e){return e.lift(new Eo(t))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(){this.INDEX_SEPARATOR="_"}return t.prototype.nodeIndex=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),""+e+(e?this.INDEX_SEPARATOR:"")+t},t.prototype.indexForLevel=function(t,e){return t.split(this.INDEX_SEPARATOR).slice(0,e).join(this.INDEX_SEPARATOR)},t.prototype.lastLevelIndex=function(t){void 0===t&&(t="");var e=t.split(this.INDEX_SEPARATOR);return e.length?parseInt(e[e.length-1],10):NaN},t.prototype.level=function(t){return t.split(this.INDEX_SEPARATOR).length},t=i.__decorate([r.Injectable()],t)}();e.IndexBuilderService=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);i.__exportStar(n(36),e),i.__exportStar(n(37),e),i.__exportStar(n(56),e),i.__exportStar(n(29),e),i.__exportStar(n(38),e),i.__exportStar(n(39),e),i.__exportStar(n(40),e)},function(t,e,n){"use strict";n.r(e),n.d(e,"detectMobileOS",(function(){return u})),n.d(e,"detectDesktopBrowser",(function(){return d})),n.d(e,"browser",(function(){return h})),n.d(e,"mobileOS",(function(){return p})),n.d(e,"touch",(function(){return f})),n.d(e,"msPointers",(function(){return v})),n.d(e,"pointers",(function(){return y})),n.d(e,"touchEnabled",(function(){return m})),n.d(e,"getter",(function(){return x})),n.d(e,"setter",(function(){return I}));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/},s={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},a={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(t,e,n){for(var i in e)if(e.hasOwnProperty(i)&&e[i].test(t))return i;return void 0!==n?n:t},u=function(t){var e,n=[];for(var i in r)if(r.hasOwnProperty(i)){if(!(n=t.match(r[i])))continue;if("windows"===i&&"plugins"in window.navigator)return null;var s={};return s.device=i,s.browser=c(t,a,"default"),s.name=c(i,o),s[s.name]=!0,s.majorVersion=n[2],s.minorVersion=n[3]?n[3].replace("_","."):".0",e=s.minorVersion.replace(".","").substr(0,2),s.flatVersion=s.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0"),s.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,s.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||s.cordova,s}return null},d=function(t){var e=null,n=[];for(var i in s)if(s.hasOwnProperty(i)&&(n=t.match(s[i]))){(e={})[i]=!0,e[n[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||n[2],10);break}return e},l=i()&&window.navigator?window.navigator.userAgent:null,h=l?d(l):null,p=l?u(l):null,f=i()&&"ontouchstart"in window,v=h&&!h.chrome&&window.MSPointerEvent,y=h&&!h.chrome&&window.PointerEvent,m=p&&(f||v||y),b=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function _(t){var e=[];return t.replace(b,(function(t,n,i,r){e.push(void 0!==n?n:i||r)})),e}var g={};function x(t){if(g[t])return g[t];var e=_(t);return g[t]=function(t){for(var n=t,i=0;i<e.length&&n;i++)n=n[e[i]];return n},g[t]}g[void 0]=function(t){return t};var w={undefined:function(t){return t}},S=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function I(t){if(w[t])return w[t];var e=_(t);return w[t]=function(t,n,i){for(var r=t,o=e.length-1,s=0;s<o&&r;s++)r=r[e[s]]=r[e[s]]||S(e[s+1],i);r[e[o]]=n},w[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=function(){function t(){this.changes=new o.Subject}return t.prototype.expand=function(t,e){this.changes.next({dataItem:e,index:t,expand:!0})},t.prototype.collapse=function(t,e){this.changes.next({dataItem:e,index:t,expand:!1})},t=i.__decorate([r.Injectable()],t)}();e.ExpandStateService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(33),a=n(3),c=n(49),u=n(2),d=function(){function t(t){var e,n=this;this.localization=t,this.expands=new a.Subject,this.moves=new a.Subject,this.checks=new a.Subject,this.selects=new a.Subject,this.loadMore=new a.Subject,this.navigable=!0,this.actions=((e={})[o.Keys.ArrowUp]=function(){return n.activate(n.model.findVisiblePrev(n.focusableItem),!0)},e[o.Keys.ArrowDown]=function(){return n.activate(n.model.findVisibleNext(n.focusableItem),!0)},e[o.Keys.ArrowLeft]=function(){return!n.isLoadMoreButton&&n.expand({expand:n.localization.rtl,intercept:n.localization.rtl?n.moveToFirstVisibleChild:n.moveToParent})},e[o.Keys.ArrowRight]=function(){return!n.isLoadMoreButton&&n.expand({expand:!n.localization.rtl,intercept:n.localization.rtl?n.moveToParent:n.moveToFirstVisibleChild})},e[o.Keys.Home]=function(){return n.activate(n.model.firstVisibleNode(),!0)},e[o.Keys.End]=function(){return n.activate(n.model.lastVisibleNode(),!0)},e[o.Keys.Enter]=function(){return n.handleEnter()},e[o.Keys.Space]=function(){return n.handleSpace()},e),this.isFocused=!1,this.shouldScroll=!1,this._model=new c.NavigationModel,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(t){this._model=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeIndex",{get:function(){return u.nodeIndex(this.activeItem)||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActiveExpanded",{get:function(){return this.activeItem&&this.activeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoadMoreButton",{get:function(){return this.activeItem&&this.activeItem.loadMoreButton},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusableItem",{get:function(){return this.activeItem||this.model.firstFocusableNode()},enumerable:!0,configurable:!0}),t.prototype.activate=function(t,e){void 0===e&&(e=!1),this.navigable&&t&&!this.isActive(u.nodeIndex(t))&&(this.isFocused=!0,this.activeItem=t||this.activeItem,this.shouldScroll=e,this.notifyMove())},t.prototype.activateParent=function(t){this.activate(this.model.findParent(t))},t.prototype.activateIndex=function(t){t&&this.activate(this.model.findNode(t))},t.prototype.activateClosest=function(t){t&&u.nodeIndex(this.focusableItem)===t&&(this.activeItem=this.model.closestNode(t),this.notifyMove())},t.prototype.activateFocusable=function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())},t.prototype.deactivate=function(){this.navigable&&this.isFocused&&(this.isFocused=!1,this.notifyMove())},t.prototype.checkIndex=function(t){this.isDisabled(t)||this.checks.next(t)},t.prototype.selectIndex=function(t){this.isDisabled(t)||this.selects.next(t)},t.prototype.notifyLoadMore=function(t){u.isPresent(t)&&this.loadMore.next(t)},t.prototype.isActive=function(t){return!!t&&(this.isFocused&&this.activeIndex===t)},t.prototype.isFocusable=function(t){return u.nodeIndex(this.focusableItem)===t},t.prototype.isDisabled=function(t){return this.model.findNode(t).disabled},t.prototype.registerItem=function(t,e,n,i,r){void 0===i&&(i=!1),void 0===r&&(r=!0);var o=this.model.findNode(e);u.isPresent(o)&&(this.model.unregisterItem(o.id,o.index),this.isActive(e)&&this.deactivate()),this.model.registerItem(t,e,n,i,r)},t.prototype.unregisterItem=function(t,e){this.isActive(e)&&this.activateParent(e),this.model.unregisterItem(t,e)},t.prototype.move=function(t){if(this.navigable){var e=this.actions[t.keyCode];e&&(e(),t.preventDefault())}},t.prototype.expand=function(t){var e=t.expand,n=t.intercept,i=u.nodeIndex(this.activeItem);i&&!n(i)&&this.notifyExpand(e)},t.prototype.moveToParent=function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(u.nodeIndex(this.activeItem))),!0)},t.prototype.moveToFirstVisibleChild=function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(u.nodeIndex(this.activeItem))),!0)},t.prototype.notifyExpand=function(t){this.expands.next(this.navigationState(t))},t.prototype.notifyMove=function(){this.moves.next(this.navigationState())},t.prototype.navigationState=function(t){return void 0===t&&(t=!1),{expand:t,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}},t.prototype.handleEnter=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))},t.prototype.handleSpace=function(){this.navigable&&(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))},t=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[s.LocalizationService])],t)}();e.NavigationService=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoTreeViewNodeTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.NodeTemplateDirective=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoTreeViewLoadMoreButtonTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.LoadMoreButtonTemplateDirective=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(){}return t=i.__decorate([r.Injectable()],t)}();e.DataBoundComponent=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r,o,s=n(4),a=n(2),c=n(8),u=(i=function(){if(!s.isDocumentAvailable()||!a.isPresent(document.body))return!1;var t=document.createElement("div");t.style.transform="matrix(10, 0, 0, 10, 0, 0)",t.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(t);var e=10!==t.children[0].getBoundingClientRect().top;return document.body.removeChild(t),e},o=!1,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o||(r=i.apply(void 0,t),o=!0),r});e.getContainerOffset=function(t){if(!t||!u())return{left:0,top:0};for(var e=t.parentElement;e&&"none"===window.getComputedStyle(e).transform;)e=e.parentElement;if(e){var n=e.getBoundingClientRect();return{left:n.left-e.scrollLeft,top:n.top-e.scrollTop}}return{left:0,top:0}},e.getDropAction=function(t,e){if(!a.isPresent(t)||!a.isPresent(e))return c.DropAction.Invalid;switch(t){case c.DropPosition.Over:return c.DropAction.Add;case c.DropPosition.Before:return a.isPresent(a.closestNode(e).previousElementSibling)?c.DropAction.InsertMiddle:c.DropAction.InsertTop;case c.DropPosition.After:return a.isPresent(a.closestNode(e).nextElementSibling)?c.DropAction.InsertMiddle:c.DropAction.InsertBottom;default:return c.DropAction.Invalid}},e.getDropPosition=function(t,e,n,i,r){if(a.isPresent(t)&&a.isPresent(e)&&a.isPresent(i)&&a.isPresent(r)){var o=a.closestWithMatch(e,".k-treeview-mid");if(a.isPresent(o)){var s=a.getContentElement(o),u=a.hasParent(o,a.closestNode(t));if(a.isPresent(s)&&s!==t&&!u){var d=s.getBoundingClientRect(),l=d.height/(a.isContent(e)?4:2),h=n-r.top,p=d.top-r.top;return h<p+l?c.DropPosition.Before:h>=p+d.height-l?c.DropPosition.After:c.DropPosition.Over}}}},e.treeItemFromEventTarget=function(t,e){if(!a.isPresent(t)||!a.isPresent(e))return null;var n=a.closestNode(e),i=a.nodeId(n),r=t.itemLookup(i);return a.isPresent(r)&&a.isPresent(r.item.dataItem)?r:null},e.collapseEmptyParent=function(t,e,n){a.isPresent(t)&&0===e.length&&n.isExpanded(t.item.dataItem,t.item.index)&&n.collapseNode(t.item.dataItem,t.item.index)},e.expandDropTarget=function(t,e){e.isExpanded(t.item.dataItem,t.item.index)||e.expandNode(t.item.dataItem,t.item.index)},e.getDropTarget=function(t){return s.isDocumentAvailable()&&a.isPresent(document.elementFromPoint)?document.elementFromPoint(t.clientX,t.clientY):t.target},e.updateMovedItemIndex=function(t,e){var n=t.split("_"),i=e.split("_");if(n.length<i.length)return t;var r=i.length-1,o=i.slice(0,r).join("_"),s=n.slice(0,r).join("_"),a=i.length-1,c=Number(i[a]),u=Number(n[a]);return o===s&&u>c?(n[a]=String(u-1),n.join("_")):t};var d=new RegExp("(auto|scroll)");e.getScrollableContainer=function(t){for(;a.isPresent(t)&&"HTML"!==t.nodeName;){var e=t.scrollHeight>t.clientHeight,n=d.test(getComputedStyle(t).overflowY);if(e&&n)return t;t=t.parentNode}return t};var l=function(t){return Math.floor(t.scrollTop)<=0},h=function(t){return Math.ceil(t.scrollTop)>=t.scrollHeight-t.clientHeight};e.scrollElementBy=function(t,e,n){if(a.isPresent(t)&&s.isDocumentAvailable())for(var i=t.scrollTop,r=e,o=0;i===t.scrollTop&&(n!==c.ScrollDirection.Up||!l(t))&&(n!==c.ScrollDirection.Down||!h(t))&&o<20;)t.scrollTop+=r*n,r+=1,o+=1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(57),a=n(58),c=n(59),u=n(17),d=n(18),l=n(15),h=n(2),p=n(5),f=n(8),v={enabled:!0,step:1,interval:1},y=function(){function t(t,e,n,i,r){this.element=t,this.zone=e,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(t.prototype,"scrollSettings",{get:function(){var t="boolean"==typeof this.autoScroll?{enabled:this.autoScroll}:this.autoScroll;return Object.assign({},v,t)},enumerable:!0,configurable:!0}),t.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)},t.prototype.ngOnDestroy=function(){this.draggable.destroy()},t.prototype.handlePress=function(t){var e=t.originalEvent;h.isContent(e.target)&&(this.draggedItem=h.closestWithMatch(e.target,".k-treeview-leaf"),this.pendingDragStartEvent=e)},t.prototype.handleDrag=function(t){var e=this,n=t.originalEvent,i=t.clientX,r=t.clientY;if(this.shouldInitiateDragStart({clientX:i,clientY:r})&&this.initiateDragStart(),h.isPresent(this.draggedItem)&&!h.isPresent(this.pendingDragStartEvent)){var s=l.getDropTarget(n);o.hasObservers(this.treeview.nodeDrag)&&this.zone.run((function(){return e.notifyDrag(n,s)}));var a=this.getTargetTreeView(s),c=l.getDropPosition(this.draggedItem,s,r,a,this.containerOffset),u=h.closestWithMatch(s,".k-treeview-mid"),d=l.getDropAction(c,s),p=l.treeItemFromEventTarget(this.treeview,this.draggedItem),f=l.treeItemFromEventTarget(a,s);this.updateDropHintState(c,u,d,p,f),this.updateDragClueState(d,i,r,p,f),this.scrollSettings.enabled&&this.dragClueService.scrollIntoView(this.scrollSettings)}},t.prototype.handleRelease=function(t){var e=this,n=t.originalEvent,i=t.clientY;if(this.scrollSettings.enabled&&this.dragClueService.cancelScroll(),!h.isPresent(this.draggedItem)||h.isPresent(this.pendingDragStartEvent))return this.pendingDragStartEvent=null,void(this.draggedItem=null);var r=l.getDropTarget(n),s=this.treeview,a=this.getTargetTreeView(r),c=l.getDropPosition(this.draggedItem,r,i,this.getTargetTreeView(r),this.containerOffset),u=l.treeItemFromEventTarget(s,this.draggedItem),d=l.treeItemFromEventTarget(a,r);h.isPresent(d)&&h.isPresent(c)?this.zone.run((function(){return e.notifyDrop({sourceItem:u,destinationItem:d,dropPosition:c,sourceTree:s,destinationTree:a},n)})):this.dragClueService.animateDragClueToElementPosition(this.draggedItem),o.hasObservers(this.treeview.nodeDragEnd)&&this.zone.run((function(){return e.notifyDragEnd({sourceItem:u,destinationItem:d,originalEvent:n})})),this.dropHintService.hide(),this.draggedItem=null},t.prototype.updateDropHintState=function(t,e,n,i,r){if(h.isPresent(e)&&t!==f.DropPosition.Over&&h.isPresent(t)){var o=e.getBoundingClientRect(),s=t===f.DropPosition.Before?o.top:o.top+o.height;this.dropHintService.updateDropHintData(n,i,r),this.dropHintService.move(o.left-this.containerOffset.left,s-this.containerOffset.top),this.dropHintService.show()}else this.dropHintService.hide()},t.prototype.updateDragClueState=function(t,e,n,i,r){this.dragClueService.move(e-this.containerOffset.left,n-this.containerOffset.top),this.dragClueService.updateDragClueData(t,i,r),this.dragClueService.show()},t.prototype.initalizeDraggable=function(){var t=this;this.draggable=new s.default({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular((function(){return t.draggable.bindTo(t.element.nativeElement)}))},t.prototype.notifyDragStart=function(t,e){var n=l.treeItemFromEventTarget(this.treeview,e),i=new f.TreeItemDragStartEvent({sourceItem:n,originalEvent:t});return this.treeview.nodeDragStart.emit(i),i},t.prototype.notifyDrag=function(t,e){var n={sourceItem:l.treeItemFromEventTarget(this.treeview,this.draggedItem),destinationItem:l.treeItemFromEventTarget(this.getTargetTreeView(e),e),originalEvent:t};this.treeview.nodeDrag.emit(n)},t.prototype.notifyDrop=function(t,e){var n=new f.TreeItemDropEvent(t,e);t.destinationTree.nodeDrop.emit(n),this.disableAnimationsForNextTick(t.destinationTree),t.sourceTree!==t.destinationTree&&this.disableAnimationsForNextTick(t.sourceTree),!n.isDefaultPrevented()&&n.isValid?(this.dragClueService.hide(),t.destinationTree.addItem.emit(t),e.ctrlKey&&this.allowCopy||t.sourceTree.removeItem.emit(t)):n.isDefaultPrevented()?this.dragClueService.hide():n.isValid||this.dragClueService.animateDragClueToElementPosition(this.draggedItem)},t.prototype.notifyDragEnd=function(t){this.treeview.nodeDragEnd.emit(t)},t.prototype.getTargetTreeView=function(t){var e=this.treeview.element.nativeElement.tagName,n=h.closestWithMatch(t,e);return[this.treeview].concat(this.dropZoneTreeViews).find((function(t){return h.isPresent(t)&&t.element.nativeElement===n}))},t.prototype.disableAnimationsForNextTick=function(t){t.animate||(t.animate=!1,this.zone.runOutsideAngular((function(){return setTimeout((function(){return t.animate=!0}))})))},t.prototype.shouldInitiateDragStart=function(t){return!!h.isPresent(this.pendingDragStartEvent)&&Math.sqrt(Math.pow(this.pendingDragStartEvent.clientX-t.clientX,2)+Math.pow(this.pendingDragStartEvent.clientY-t.clientY,2))>=this.startDragAfter},t.prototype.initiateDragStart=function(){var t=this;if(o.hasObservers(this.treeview.nodeDragStart)&&this.zone.run((function(){return t.notifyDragStart(t.pendingDragStartEvent,l.getDropTarget(t.pendingDragStartEvent))})).isDefaultPrevented())return this.pendingDragStartEvent=null,void(this.draggedItem=null);this.dragClueService.cancelReturnAnimation(),this.dragClueService.updateText(this.draggedItem.innerText),this.containerOffset=l.getContainerOffset(this.draggedItem),this.pendingDragStartEvent=null},i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"allowCopy",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"dropZoneTreeViews",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"startDragAfter",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"autoScroll",void 0),i.__decorate([r.ContentChild(u.DragClueTemplateDirective,{static:!1}),i.__metadata("design:type",u.DragClueTemplateDirective)],t.prototype,"dragClueTemplate",void 0),i.__decorate([r.ContentChild(d.DropHintTemplateDirective,{static:!1}),i.__metadata("design:type",d.DropHintTemplateDirective)],t.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)],t.prototype,"userSelectStyle",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewDragAndDrop]",providers:[a.DragClueService,c.DropHintService]}),i.__metadata("design:paramtypes",[r.ElementRef,r.NgZone,p.TreeViewComponent,a.DragClueService,c.DropHintService])],t)}();e.DragAndDropDirective=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoTreeViewDragClueTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.DragClueTemplateDirective=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.templateRef=t}return t=i.__decorate([r.Directive({selector:"[kendoTreeViewDropHintTemplate]"}),i.__param(0,r.Optional()),i.__metadata("design:paramtypes",[r.TemplateRef])],t)}();e.DropHintTemplateDirective=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=function(){return!1},e.isChecked=function(){return"none"},e.isDisabled=function(){return!1},e.isExpanded=function(){return!0},e.isSelected=function(){return!1},e.isVisible=function(){return!0},e.trackBy=function(t,e){return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=function(){function t(){this.changes=new o.Subject}return t.prototype.notifyLoaded=function(t){this.changes.next(t)},t=i.__decorate([r.Injectable()],t)}();e.LoadingNotificationService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(){}return t=i.__decorate([r.Injectable()],t)}();e.ExpandableComponent=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=function(){function t(){this.changes=new o.Subject}return t.prototype.isFirstSelected=function(t){return this.firstIndex===t},t.prototype.setFirstSelected=function(t,e){this.firstIndex===t&&!1===e?this.firstIndex=null:!this.firstIndex&&e&&(this.firstIndex=t)},t.prototype.select=function(t,e){this.changes.next({dataItem:e,index:t})},t=i.__decorate([r.Injectable()],t)}();e.SelectionService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=/\d+$/,a=function(){function t(){this.map=new Map}return t.prototype.reset=function(){this.map.clear()},t.prototype.registerItem=function(t,e){var n={children:[],item:t,parent:this.item(o.nodeIndex(e))};this.map.set(t.index,n)},t.prototype.registerChildren=function(t,e){var n=this.item(t);n&&(n.children=e)},t.prototype.unregisterItem=function(t,e){var n=this.item(t);n&&n.item.dataItem===e&&(this.map.delete(t),n.parent&&n.parent.children&&(n.parent.children=n.parent.children.filter((function(t){return t.dataItem!==e}))))},t.prototype.replaceItem=function(t,e,n){e&&(this.unregisterItem(t,e.dataItem),this.registerItem(e,n),this.addToParent(e,n))},t.prototype.itemLookup=function(t){var e=this.item(t);return e?{children:this.mapChildren(e.children),item:e.item,parent:e.parent}:null},t.prototype.hasItem=function(t){return this.map.has(t)},t.prototype.item=function(t){return this.map.get(t)||null},t.prototype.addToParent=function(t,e){if(e){var n=this.item(e.index),i=parseInt(s.exec(t.index)[0],10);n.children=n.children||[],n.children.splice(i,0,t)}},t.prototype.mapChildren=function(t){var e=this;return void 0===t&&(t=[]),t.map((function(t){var n=e.item(t.index),i=n.item,r=n.parent,o=n.children;return{children:e.mapChildren(o),item:i,parent:r}}))},t=i.__decorate([r.Injectable()],t)}();e.TreeViewLookupService=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(2),a=n(3),c=n(6),u=n(4),d=function(){function t(t,e){var n=this;this.treeView=t,this.zone=e,this.checkedKeysChange=new r.EventEmitter,this.subscriptions=new a.Subscription,this.checkActions={multiple:function(t){return n.checkMultiple(t)},single:function(t){return n.checkSingle(t)}},this.state=new Set,this.subscriptions.add(this.treeView.checkedChange.subscribe((function(t){return n.check(t)})));var i=[];this.subscriptions.add(this.treeView.childrenLoaded.pipe(c.filter((function(){return n.options.checkChildren&&n.treeView.loadOnDemand})),c.tap((function(t){return i.push(t)})),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(t.prototype,"isChecked",{set:function(t){this.treeView.isChecked=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){var t={checkChildren:!0,checkParents:!0,enabled:!0,mode:"multiple"};if(!s.isPresent(this.checkable)||"string"==typeof this.checkable)return t;var e=s.isBoolean(this.checkable)?{enabled:this.checkable}:this.checkable;return Object.assign(t,e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.checkable&&(this.treeView.checkboxes=this.options.enabled,this.toggleCheckOnClick()),u.isChanged("checkedKeys",t,!1)&&t.checkedKeys.currentValue!==this.lastChange&&(this.state=new Set(t.checkedKeys.currentValue))},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe(),this.unsubscribeClick()},t.prototype.isItemChecked=function(t,e){return this.checkKey?this.state.has(this.itemKey({dataItem:t,index:e}))?"checked":"none":this.isIndexChecked(e)},t.prototype.isIndexChecked=function(t){var e=Array.from(this.state).filter(function(t){return function(e){return t===e||!!e.split&&e.split("_").reduce((function(e,n){var i=e.key,r=e.result;return t===(i+=n)||r?{result:!0}:{key:i+="_",result:!1}}),{key:"",result:!1}).result}}(t));if(function(t,e){return t.filter((function(t){return t===e})).length>0}(e,t))return"checked";var n=this.options,i=n.mode,r=n.checkParents;return"multiple"===i&&r&&e.length?"indeterminate":"none"},t.prototype.itemKey=function(t){return s.isPresent(this.checkKey)?"string"==typeof this.checkKey&&s.isPresent(t.dataItem)?t.dataItem[this.checkKey]:"function"==typeof this.checkKey?this.checkKey(t):void 0:t.index},t.prototype.check=function(t){var e=this.options,n=e.enabled,i=e.mode,r=this.checkActions[i]||s.noop;n&&r(t)},t.prototype.checkSingle=function(t){var e=this.itemKey(t.item),n=this.state.has(e);this.state.clear(),n||this.state.add(e),this.notify()},t.prototype.checkMultiple=function(t){this.checkNode(t),this.options.checkParents&&this.checkParents(t.parent),this.notify()},t.prototype.toggleCheckOnClick=function(){var t=this;this.unsubscribeClick(),this.options.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.subscribe((function(e){if("click"===e.type){var n=t.treeView.itemLookup(e.item.index);t.check(n)}})))},t.prototype.unsubscribeClick=function(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)},t.prototype.checkNode=function(t){var e=this;if(s.isPresent(t.item.dataItem)&&!this.treeView.isDisabled(t.item.dataItem,t.item.index)){var n=this.itemKey(t.item);if(s.isPresent(n)){var i=[n];if(this.options.checkChildren){var r=s.fetchLoadedDescendants(t,(function(t){var n=t.item;return e.treeView.isVisible(n.dataItem,n.index)&&!e.treeView.isDisabled(n.dataItem,n.index)})).map((function(t){var n=t.item;return e.itemKey(n)}));i.push.apply(i,r)}var o=!this.state.has(n);i.forEach((function(t){o?e.state.add(t):e.state.delete(t)}))}}},t.prototype.checkParents=function(t){var e=this;if(s.isPresent(t))for(var n=t;n;){var i=this.itemKey(n.item);n.children.every((function(t){return e.state.has(e.itemKey(t))}))?this.state.add(i):this.state.delete(i),n=n.parent}},t.prototype.notify=function(){this.lastChange=Array.from(this.state),this.checkedKeysChange.emit(this.lastChange)},t.prototype.addCheckedItemsChildren=function(t){var e=this;if(s.isPresent(t)&&0!==t.length){var n=this.state.size;t.forEach((function(t){var n=e.itemKey(t.item);e.state.has(n)&&t.children.forEach((function(n){e.treeView.isDisabled(t.item.dataItem,t.item.index)||e.treeView.isDisabled(n.dataItem,n.index)||e.state.add(e.itemKey(n))}))})),n!==this.state.size&&this.zone.run((function(){return e.notify()}))}},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isChecked",null),i.__decorate([r.Input("checkBy"),i.__metadata("design:type",Object)],t.prototype,"checkKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"checkedKeys",void 0),i.__decorate([r.Input("kendoTreeViewCheckable"),i.__metadata("design:type",Object)],t.prototype,"checkable",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"checkedKeysChange",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewCheckable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.NgZone])],t)}();e.CheckDirective=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=function(){function t(t,e){var n=this;this.treeView=t,this.cdr=e,this.disabledKeys=[],this.treeView.isDisabled=function(t,e){return n.disabledKeys.indexOf(n.itemKey({dataItem:t,index:e}))>-1}}return Object.defineProperty(t.prototype,"isDisabled",{set:function(t){this.treeView.isDisabled=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){void 0===t&&(t={});var e=t.disabledKeys;e&&!e.firstChange&&this.cdr.markForCheck()},t.prototype.itemKey=function(t){return this.disableKey?"string"==typeof this.disableKey?t.dataItem[this.disableKey]:"function"==typeof this.disableKey?this.disableKey(t):void 0:t.index},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isDisabled",null),i.__decorate([r.Input("kendoTreeViewDisable"),i.__metadata("design:type",Object)],t.prototype,"disableKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"disabledKeys",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewDisable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent,r.ChangeDetectorRef])],t)}();e.DisableDirective=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(21),s=n(3),a=n(6),c=n(2),u=n(4),d={maxAutoExpandResults:-1,expandMatches:!1,expandedOnClear:"none"},l=function(){function t(t){var e=this;this.component=t,this.expandOnFilter=!1,this.expandedKeysChange=new r.EventEmitter,this.subscriptions=new s.Subscription,this.state=new Set,this.originalExpandedKeys=new Set,this.isFiltered=!1,this.updateExpandedNodes=function(t,n,i){(n.containsMatches||n.isMatch&&i&&c.isArrayWithAtLeastOneItem(n.children))&&t.push(e.itemKey({dataItem:n.dataItem,index:n.index})),c.isArrayWithAtLeastOneItem(n.children)&&n.children.forEach((function(n){e.updateExpandedNodes(t,n,i)}))},this.getEveryExpandKey=function(t,n){c.isArrayWithAtLeastOneItem(n.children)&&t.push(e.itemKey({dataItem:n.dataItem,index:n.index})),c.isArrayWithAtLeastOneItem(n.children)&&n.children.forEach((function(n){e.getEveryExpandKey(t,n)}))},this.subscriptions.add(s.merge(this.component.expand.pipe(a.map((function(t){return i.__assign({expand:!0},t)}))),this.component.collapse.pipe(a.map((function(t){return i.__assign({expand:!1},t)})))).subscribe(this.toggleExpand.bind(this))),this.component.filterStateChange&&this.subscriptions.add(this.component.filterStateChange.subscribe(this.handleAutoExpand.bind(this))),this.component.isExpanded=function(t,n){return e.state.has(e.itemKey({dataItem:t,index:n}))}}return Object.defineProperty(t.prototype,"isExpanded",{set:function(t){this.component.isExpanded=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filterExpandSettings",{get:function(){var t=c.isBoolean(this.expandOnFilter)?{enabled:this.expandOnFilter}:i.__assign({},this.expandOnFilter,{enabled:!0});return Object.assign({},d,t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){u.isChanged("expandedKeys",t,!1)&&t.expandedKeys.currentValue!==this.lastChange&&(this.state=new Set(t.expandedKeys.currentValue))},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},t.prototype.itemKey=function(t){if(this.expandKey){if("string"==typeof this.expandKey)return t.dataItem[this.expandKey];if("function"==typeof this.expandKey)return this.expandKey(t)}return t.index},t.prototype.toggleExpand=function(t){var e=t.index,n=t.dataItem,i=t.expand,r=this.itemKey({index:e,dataItem:n}),o=this.state.has(r),s=!1;o&&!i?(this.state.delete(r),s=!0):!o&&i&&(this.state.add(r),s=!0),s&&this.notify()},t.prototype.handleAutoExpand=function(t){var e=this,n=t.nodes,i=t.matchCount,r=t.term;if(this.filterExpandSettings.enabled){var o=this.filterExpandSettings,s=o.maxAutoExpandResults,a=o.expandMatches,u=o.expandedOnClear;if(this.isFiltered||(this.originalExpandedKeys=new Set(this.state)),this.isFiltered&&!r||-1!==s&&i>s){switch(u){case"initial":c.sameValues(this.state,this.originalExpandedKeys)||(this.state=this.originalExpandedKeys,this.notify());break;case"all":this.state=new Set(n.reduce((function(t,n){return e.getEveryExpandKey(t,n),t}),[])),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(t,n){return e.updateExpandedNodes(t,n,a),t}),[]));c.sameValues(this.state,d)||(this.state=d,this.notify()),this.isFiltered=!0}}},t.prototype.notify=function(){this.lastChange=Array.from(this.state),this.expandedKeysChange.emit(this.lastChange)},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isExpanded",null),i.__decorate([r.Input("expandBy"),i.__metadata("design:type",Object)],t.prototype,"expandKey",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"expandOnFilter",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"expandedKeysChange",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"expandedKeys",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewExpandable]"}),i.__metadata("design:paramtypes",[o.ExpandableComponent])],t)}();e.ExpandDirective=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(2),a=n(3),c=n(4),u=function(){function t(t){var e=this;this.treeView=t,this.selectedKeysChange=new r.EventEmitter,this.subscriptions=new a.Subscription,this.selectActions={multiple:function(t){return e.selectMultiple(t)},single:function(t){return e.selectSingle(t)}},this.state=new Set,this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=function(t,n){return e.state.has(e.itemKey({dataItem:t,index:n}))}}return Object.defineProperty(t.prototype,"isSelected",{set:function(t){this.treeView.isSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getAriaMultiselectable",{get:function(){return"multiple"===this.options.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){var t={enabled:!0,mode:"single"};if(!s.isPresent(this.selection)||"string"==typeof this.selection)return t;var e=s.isBoolean(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(t,e)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){c.isChanged("selectedKeys",t,!1)&&t.selectedKeys.currentValue!==this.lastChange&&(this.state=new Set(t.selectedKeys.currentValue))},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},t.prototype.itemKey=function(t){return this.selectKey?"string"==typeof this.selectKey?t.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(t):void 0:t.index},t.prototype.select=function(t){var e=this.options,n=e.enabled,i=e.mode,r=this.selectActions[i]||s.noop;n&&r(t)},t.prototype.selectSingle=function(t){var e=this.itemKey(t);this.state.has(e)||(this.state.clear(),this.state.add(e),this.notify())},t.prototype.selectMultiple=function(t){var e=this.itemKey(t),n=this.state.has(e);s.isPresent(e)&&(n?this.state.delete(e):this.state.add(e),this.notify())},t.prototype.notify=function(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)},i.__decorate([r.Input(),i.__metadata("design:type",Function),i.__metadata("design:paramtypes",[Function])],t.prototype,"isSelected",null),i.__decorate([r.Input("selectBy"),i.__metadata("design:type",Object)],t.prototype,"selectKey",void 0),i.__decorate([r.Input("kendoTreeViewSelectable"),i.__metadata("design:type",Object)],t.prototype,"selection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Array)],t.prototype,"selectedKeys",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"selectedKeysChange",void 0),i.__decorate([r.HostBinding("attr.aria-multiselectable"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"getAriaMultiselectable",null),t=i.__decorate([r.Directive({selector:"[kendoTreeViewSelectable]"}),i.__metadata("design:paramtypes",[o.TreeViewComponent])],t)}();e.SelectDirective=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(9),s=n(4),a=n(14),c=n(2),u=n(3),d=n(55),l=n(16),h=n(19),p=n(7),f=n(45),v=new p.IndexBuilderService,y=function(t,e,n,i){return void 0===n&&(n=null),void 0===i&&(i=""),c.isArrayWithAtLeastOneItem(t)?t.map((function(t,r){var s=v.nodeIndex(r.toString(),i),a={dataItem:t,index:s,parent:n,visible:!0};return a.children=y(o.getter(e)(t),e,a,s),a})):[]},m=function(t){function e(e,n){var i=t.call(this,e)||this;i.component=e,i.dragAndDropDirective=n,i.loadOnDemand=!0,i.originalData=[];var r=!c.isPresent(i.dragAndDropDirective);return i.component.isVisible=r?function(t){return i.visibleNodes.has(t)}:h.isVisible,i}return i.__extends(e,t),Object.defineProperty(e.prototype,"childrenField",{get:function(){return this._childrenField},set:function(t){if(!t)throw new Error("'childrenField' cannot be empty");this._childrenField=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{set:function(t){this.originalData=t||[],this.filterData=y(t,this.childrenField)||[],this.updateVisibleNodes(this.filterData)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{set:function(t){this.component.isVisible=t},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;c.isPresent(this.childrenField)&&(this.component.children=function(e){return u.of(o.getter(t.childrenField)(e))},this.component.hasChildren=function(e){var n=o.getter(t.childrenField)(e);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())},e.prototype.ngOnChanges=function(t){s.isChanged("childrenField",t,!1)&&(this.nodes=this.originalData),s.anyChanged(["nodes","loadOnDemand"],t)&&!this.loadOnDemand&&c.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],e.prototype,"childrenField",null),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",Function),i.__metadata("design:paramtypes",[Function])],e.prototype,"isVisible",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],e.prototype,"loadOnDemand",void 0),e=i.__decorate([r.Directive({selector:"[kendoTreeViewHierarchyBinding]"}),i.__param(1,r.Optional()),i.__param(1,r.Host()),i.__metadata("design:paramtypes",[a.DataBoundComponent,l.DragAndDropDirective])],e)}(f.FilteringBase);e.HierarchyBindingDirective=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.prevented=!1}return t.prototype.preventDefault=function(){this.prevented=!0},t.prototype.isDefaultPrevented=function(){return this.prevented},t}();e.PreventableEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(4),o=n(1),s=n(9),a=n(3),c=n(62),u=n(14),d=n(2),l=n(63),h=n(7),p=n(45),f=function(t,e,n){return e.filter((function(e){return t(e)===n}))},v=new h.IndexBuilderService,y=function(t,e,n,i,r,o){return void 0===r&&(r=null),void 0===o&&(o=""),d.isArrayWithAtLeastOneItem(t)?t.map((function(t,a){var c=v.nodeIndex(a.toString(),o),u={dataItem:t,index:c,parent:r,visible:!0};return u.children=y(f(s.getter(n),e||[],s.getter(i)(t)),e,n,i,u,c),u})):[]},m=function(t){function e(e){var n=t.call(this,e)||this;return n.component=e,n.loadOnDemand=!0,n.originalData=[],n.component.isVisible=function(t){return n.visibleNodes.has(t)},n}return i.__extends(e,t),Object.defineProperty(e.prototype,"nodes",{set:function(t){if(this.originalData=t||[],d.isNullOrEmptyString(this.parentIdField))this.component.nodes=this.originalData.slice(0);else{var e=s.getter(this.parentIdField);this.component.nodes=this.originalData.filter(c.compose(d.isBlank,e)),this.filterData=y(this.component.nodes,this.originalData,this.parentIdField,this.idField),this.updateVisibleNodes(this.filterData)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{set:function(t){this.component.isVisible=t},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;if(d.isPresent(this.parentIdField)&&d.isPresent(this.idField)){var e=function(e){return f(s.getter(t.parentIdField),t.originalData||[],s.getter(t.idField)(e))};this.component.hasChildren=function(t){return e(t).length>0},this.component.children=function(t){return a.of(e(t))},this.component.editService=new l.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()}},e.prototype.ngOnChanges=function(t){r.isChanged("parentIdField",t,!1)&&(this.nodes=this.originalData),r.anyChanged(["nodes","loadOnDemand"],t)&&!this.loadOnDemand&&d.isPresent(this.component.preloadChildNodes)&&this.component.preloadChildNodes()},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",String)],e.prototype,"parentIdField",void 0),i.__decorate([o.Input(),i.__metadata("design:type",String)],e.prototype,"idField",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),i.__metadata("design:paramtypes",[Function])],e.prototype,"isVisible",null),e=i.__decorate([o.Directive({selector:"[kendoTreeViewFlatDataBinding]"}),i.__metadata("design:paramtypes",[u.DataBoundComponent])],e)}(p.FilteringBase);e.FlatDataBindingDirective=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(5),a=n(2),c=function(){function t(t){this.treeview=t,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(t.prototype,"editService",{set:function(t){this.treeview.editService=t},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},t.prototype.handleAdd=function(t){if(!a.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(t)},t.prototype.handleRemove=function(t){if(!a.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(t)},i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"editService",null),t=i.__decorate([r.Directive({selector:"[kendoTreeViewDragAndDropEditing]"}),i.__metadata("design:paramtypes",[s.TreeViewComponent])],t)}();e.DragAndDropEditingDirective=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(5),a=n(2),c="http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/",u=function(){function t(t){this.treeview=t,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(t.prototype,"loadMoreNodes",{set:function(t){"string"!=typeof t&&(this.treeview.loadMoreService.loadMoreNodes=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.verifySettings()},t.prototype.verifySettings=function(){if(r.isDevMode()){if(!a.isPresent(this.pageSize))throw new Error("To use the TreeView `kendoTreeViewLoadMore` directive, you need to assign a `pageSize` value. See "+c+".");var t=this.treeview.loadMoreService.loadMoreNodes;if(a.isPresent(t)&&"function"!=typeof t)throw new Error("The passed value to the `kendoTreeViewLoadMore` directive must be a function that retrieves additional nodes. See "+c+".");if(a.isPresent(t)&&!a.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+".")}},t.prototype.getGroupSize=function(t){var e=t||this.rootLevelId;return this.pageSizes.has(e)?this.pageSizes.get(e):this.pageSize},t.prototype.setGroupSize=function(t,e){var n=t||this.rootLevelId,i=e>0?e:0;this.pageSizes.set(n,i)},t.prototype.getTotalNodesCount=function(t,e){return a.isPresent(t)&&a.isPresent(this.totalField)?t[this.totalField]:!a.isPresent(t)&&a.isPresent(this.totalRootNodes)?this.totalRootNodes:e},t.prototype.getInitalPageSize=function(){return this.pageSize},i.__decorate([r.Input("kendoTreeViewLoadMore"),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"loadMoreNodes",null),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"pageSize",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"totalRootNodes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"totalField",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewLoadMore]"}),i.__metadata("design:paramtypes",[s.TreeViewComponent])],t)}();e.LoadMoreDirective=u},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=function(){function t(){this.changes=new i.EventEmitter}return t.prototype.notify=function(){this.changes.emit()},t}();e.DataChangeNotificationService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=function(){function t(){this.changes=new o.Subject}return t.prototype.childrenLoaded=function(t,e){this.changes.next({item:t,children:e})},t=i.__decorate([r.Injectable()],t)}();e.NodeChildrenService=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Add=0]="Add",t[t.InsertTop=1]="InsertTop",t[t.InsertBottom=2]="InsertBottom",t[t.InsertMiddle=3]="InsertMiddle",t[t.Invalid=4]="Invalid"}(e.DropAction||(e.DropAction={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Over=0]="Over",t[t.Before=1]="Before",t[t.After=2]="After"}(e.DropPosition||(e.DropPosition={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t){function e(e,n){var i=t.call(this)||this;return i.isValid=!0,Object.assign(i,e),i.originalEvent=n,i}return i.__extends(e,t),e.prototype.setValid=function(t){this.isValid=t},e}(n(29).PreventableEvent);e.TreeItemDropEvent=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(t){function e(e){var n=t.call(this)||this;return Object.assign(n,e),n}return i.__extends(e,t),e}(n(29).PreventableEvent);e.TreeItemDragStartEvent=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){};e.TreeItemDragEvent=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);e.copyPageSize=function(t,e,n){if(i.isPresent(t.loadMoreService)){var r=t.getNodePageSize(e);t.setNodePageSize(n,r)}},e.incrementPageSize=function(t,e){if(i.isPresent(t.loadMoreService)){var n=t.getNodePageSize(e);t.setNodePageSize(e,n+1)}},e.decrementPageSize=function(t,e){if(i.isPresent(t.loadMoreService)){var n=t.getNodePageSize(e);t.setNodePageSize(e,n-1)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(8),s=function(){function t(t){this.cdr=t,this.hostClasses=!0,this.posistionStyle="fixed"}return Object.defineProperty(t.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}),t.prototype.detectChanges=function(){this.cdr.detectChanges()},i.__decorate([r.HostBinding("class.k-header"),r.HostBinding("class.k-drag-clue"),i.__metadata("design:type",Boolean)],t.prototype,"hostClasses",void 0),i.__decorate([r.HostBinding("style.position"),i.__metadata("design:type",String)],t.prototype,"posistionStyle",void 0),t=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])],t)}();e.DragClueComponent=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=function(){function t(){}return Object.defineProperty(t.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(t){this._componentRef=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){i.isPresent(this._componentRef)&&(this.element.parentElement.removeChild(this.element),this.componentRef.destroy(),this.componentRef=null)},t.prototype.show=function(){this.element.style.display=""},t.prototype.hide=function(){this.element.style.display="none"},t.prototype.move=function(t,e,n){void 0===n&&(n=0),this.element.style.left=t+n+"px",this.element.style.top=e+n+"px"},t}();e.DragAndDropAssetService=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=function(){function t(t){this.changeDetectorRef=t,this.hostClass=!0,this.position="fixed",this.pointerEvents="none"}return t.prototype.detectChanges=function(){this.changeDetectorRef.detectChanges()},i.__decorate([r.HostBinding("class.k-drop-hint-container"),i.__metadata("design:type",Boolean)],t.prototype,"hostClass",void 0),i.__decorate([r.HostBinding("style.position"),i.__metadata("design:type",String)],t.prototype,"position",void 0),i.__decorate([r.HostBinding("style.pointer-events"),i.__metadata("design:type",String)],t.prototype,"pointerEvents",void 0),t=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])],t)}();e.DropHintComponent=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(60),s=n(2),a=function(){function t(t){this.component=t,this.visibleNodes=new Set,this._filterSettings=o.DEFAULT_FILTER_SETTINGS}return Object.defineProperty(t.prototype,"filterSettings",{get:function(){return this._filterSettings},set:function(t){this._filterSettings=i.__assign({},o.DEFAULT_FILTER_SETTINGS,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filter",{set:function(t){this.handleFilterChange(t)},enumerable:!0,configurable:!0}),t.prototype.handleFilterChange=function(t){this.filterData&&(this.resetNodesVisibility(this.filterData),t&&s.filterTree(this.filterData,t,this.filterSettings,this.component.textField),this.updateVisibleNodes(this.filterData),s.isPresent(this.component.filterStateChange)&&this.component.filterStateChange.emit({nodes:this.filterData,matchCount:this.visibleNodes.size,term:t,filterSettings:this.filterSettings}))},t.prototype.updateVisibleNodes=function(t){var e=this;t.forEach((function(t){t.visible&&e.visibleNodes.add(t.dataItem),t.children&&e.updateVisibleNodes(t.children)}))},t.prototype.resetNodesVisibility=function(t){var e=this;this.visibleNodes.clear(),t.forEach((function(t){t.visible=!0,t.children&&e.resetNodesVisibility(t.children)}))},i.__decorate([r.Input(),i.__metadata("design:type",Object),i.__metadata("design:paramtypes",[Object])],t.prototype,"filterSettings",null),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"filter",null),t}();e.FilteringBase=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5);e.TreeViewComponent=i.TreeViewComponent;var r=n(50);e.TreeViewModule=r.TreeViewModule;var o=n(12);e.NodeTemplateDirective=o.NodeTemplateDirective;var s=n(24);e.CheckDirective=s.CheckDirective;var a=n(25);e.DisableDirective=a.DisableDirective;var c=n(26);e.ExpandDirective=c.ExpandDirective;var u=n(27);e.SelectDirective=u.SelectDirective;var d=n(14);e.DataBoundComponent=d.DataBoundComponent;var l=n(21);e.ExpandableComponent=l.ExpandableComponent;var h=n(28);e.HierarchyBindingDirective=h.HierarchyBindingDirective;var p=n(30);e.FlatDataBindingDirective=p.FlatDataBindingDirective;var f=n(16);e.DragAndDropDirective=f.DragAndDropDirective;var v=n(31);e.DragAndDropEditingDirective=v.DragAndDropEditingDirective;var y=n(18);e.DropHintTemplateDirective=y.DropHintTemplateDirective;var m=n(17);e.DragClueTemplateDirective=m.DragClueTemplateDirective;var b=n(36);e.DropAction=b.DropAction;var _=n(37);e.DropPosition=_.DropPosition;var g=n(38);e.TreeItemDropEvent=g.TreeItemDropEvent;var x=n(39);e.TreeItemDragStartEvent=x.TreeItemDragStartEvent;var w=n(40);e.TreeItemDragEvent=w.TreeItemDragEvent;var S=n(32);e.LoadMoreDirective=S.LoadMoreDirective;var I=n(13);e.LoadMoreButtonTemplateDirective=I.LoadMoreButtonTemplateDirective},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219256,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(7),r=n(2),o=function(t){return t||{}},s=function(t){return o(t).children||[]},a=function(t){if(!Array.isArray(t)||0===t.length)return null;for(var e=t.length-1;e>=0;e-=1){var n=t[e];if(n.visible)return n}return null},c=function(){function t(){this.ib=new i.IndexBuilderService,this.nodes=[]}return t.prototype.firstVisibleNode=function(){return(this.nodes||[]).find((function(t){return t.visible}))},t.prototype.lastVisibleNode=function(){for(var t=a(this.nodes);r.isPresent(t)&&s(t).length>0;){var e=s(t),n=a(e);if(!r.isPresent(n))return t;t=n}return t},t.prototype.closestNode=function(t){var e=o(this.findNode(t)).prev||this.firstVisibleNode();return o(e).index===t?this.visibleSibling(e,1):e},t.prototype.firstFocusableNode=function(){return this.nodes.find((function(t){return!t.disabled&&t.visible}))},t.prototype.findNode=function(t){return this.find(t,this.nodes)},t.prototype.findParent=function(t){var e=this.ib.level(t)-1;return this.findNode(this.ib.indexForLevel(t,e))},t.prototype.findVisibleChild=function(t){var e=this.findNode(t);return s(e).find((function(t){return t.visible}))},t.prototype.findVisiblePrev=function(t){var e=t.index,n=this.findParent(e),i=this.ib.lastLevelIndex(e),r=this.container(n).slice(0,i).every((function(t){return!t.visible}));if(0===i||r)return n;var o=this.findNode(e),s=this.visibleSibling(o,-1);if(s)for(var c=this.container(s);c.length>0&&c.some((function(t){return t.visible}));)s=a(c),c=this.container(s);return s},t.prototype.findVisibleNext=function(t){var e=this.container(t),n=e.some((function(t){return t.visible}));return 0!==e.length&&n?e.find((function(t){return t.visible})):this.visibleSibling(t,1)},t.prototype.registerItem=function(t,e,n,i,r){void 0===i&&(i=!1),void 0===r&&(r=!0);var o=this.ib.level(e),s=this.findParent(e);if(s||1===o){var a={id:t,children:[],index:e,parent:s,disabled:n,loadMoreButton:i,visible:r};this.insert(a,s)}},t.prototype.unregisterItem=function(t,e){var n=this.find(e,this.nodes);if(n&&n.id===t){var i=this.container(n.parent);i.splice(i.indexOf(n),1)}},t.prototype.childLevel=function(t){var e=t.filter((function(t){return r.isPresent(t)}));return e&&e.length?this.ib.level(e[0].index):1},t.prototype.container=function(t){return t?t.children:this.nodes},t.prototype.find=function(t,e){var n=this.childLevel(e),i=this.ib.indexForLevel(t,n),r=n===this.ib.level(t),o=e.find((function(t){return t&&t.index===i}));return o?r?o:this.find(t,o.children):null},t.prototype.insert=function(t,e){this.container(e).splice(this.ib.lastLevelIndex(t.index),0,t)},t.prototype.visibleSibling=function(t,e){if(!t)return null;for(var n=this.findParent(t.index),i=this.container(n),o=i.indexOf(t)+e,s=i[o];r.isPresent(s);){if(s.visible)return s;s=i[o+=e]}return this.visibleSibling(n,e)},t}();e.NavigationModel=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(51),a=n(12),c=n(24),u=n(25),d=n(26),l=n(27),h=n(28),p=n(30),f=n(16),v=n(17),y=n(18),m=n(31),b=n(32),_=n(13),g=[o.TreeViewComponent,a.NodeTemplateDirective,c.CheckDirective,u.DisableDirective,d.ExpandDirective,l.SelectDirective,h.HierarchyBindingDirective,p.FlatDataBindingDirective,f.DragAndDropDirective,v.DragClueTemplateDirective,y.DropHintTemplateDirective,m.DragAndDropEditingDirective,b.LoadMoreDirective,_.LoadMoreButtonTemplateDirective],x=function(){function t(){}return t=i.__decorate([r.NgModule({exports:[g],imports:[s.SharedModule]})],t)}();e.TreeViewModule=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(5),s=n(52),a=n(54),c=n(12),u=n(24),d=n(25),l=n(26),h=n(27),p=n(28),f=n(61),v=n(30),y=n(64),m=n(65),b=n(66),_=n(16),g=n(17),x=n(18),w=n(42),S=n(44),I=n(31),C=n(32),D=n(13),E=n(68),T=[o.TreeViewComponent,s.TreeViewGroupComponent,y.TreeViewItemDirective,m.TreeViewItemContentDirective,c.NodeTemplateDirective,u.CheckDirective,d.DisableDirective,l.ExpandDirective,h.SelectDirective,p.HierarchyBindingDirective,f.LoadingIndicatorDirective,v.FlatDataBindingDirective,_.DragAndDropDirective,g.DragClueTemplateDirective,w.DragClueComponent,x.DropHintTemplateDirective,S.DropHintComponent,I.DragAndDropEditingDirective,C.LoadMoreDirective,D.LoadMoreButtonTemplateDirective],k=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[T],exports:[T],imports:[a.CommonModule,b.CheckBoxModule,E.InputsModule],entryComponents:[w.DragClueComponent,S.DropHintComponent]})],t)}();e.SharedModule=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(53),s=n(9),a=n(10),c=n(7),u=n(23),d=n(11),l=n(35),h=n(2),p=n(20),f=n(3),v=n(6),y=n(34),m=function(){function t(t,e,n,i,r,o,s,a){this.expandService=t,this.loadingService=e,this.indexBuilder=n,this.treeViewLookupService=i,this.navigationService=r,this.nodeChildrenService=o,this.dataChangeNotification=s,this.changeDetectorRef=a,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(t.prototype,"moreNodesAvailable",{get:function(){return!(!h.isPresent(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSize",{get:function(){return h.isPresent(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null},set:function(t){this.loadMoreService.setGroupSize(this.parentDataItem,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){if(h.isPresent(this.pageSize)){var t=this.pageSize>0?this.pageSize:0;return this._data.slice(0,t)}return this._data},set:function(t){this._data=t,this.registerLoadedNodes(this.data)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadMoreButtonIndex",{get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalNodesCount",{get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTemplate",{get:function(){return h.isPresent(this.nodeTemplateRef)},enumerable:!0,configurable:!0}),t.prototype.expandNode=function(t,e,n){n?this.expandService.expand(t,e):this.expandService.collapse(t,e)},t.prototype.checkNode=function(t){this.navigationService.checkIndex(t),this.navigationService.activateIndex(t)},t.prototype.nodeIndex=function(t){return this.indexBuilder.nodeIndex(t.toString(),this.parentIndex)},t.prototype.nodeText=function(t){var e=h.isArray(this.textField)?this.textField[0]:this.textField;return s.getter(e)(t)},t.prototype.ngOnDestroy=function(){h.isPresent(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),h.isPresent(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()},t.prototype.ngOnInit=function(){var t=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(v.filter((function(e){return e===t.loadMoreButtonIndex}))).subscribe(this.loadMoreNodes.bind(this)))},t.prototype.ngOnChanges=function(t){t.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))},t.prototype.fetchChildren=function(t,e){var n=this;return this.children(t).pipe(v.catchError((function(){return n.loadingService.notifyLoaded(e),f.EMPTY})),v.tap((function(){return n.loadingService.notifyLoaded(e)})))},Object.defineProperty(t.prototype,"nextFields",{get:function(){return h.isArray(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]},enumerable:!0,configurable:!0}),t.prototype.loadMoreNodes=function(){h.isPresent(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()},t.prototype.loadMoreLocalNodes=function(){var t=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(t)},t.prototype.fetchMoreNodes=function(){var t=this;this.loadingMoreNodes||(this.loadingMoreNodes=!0,h.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(v.finalize((function(){return t.loadingMoreNodes=!1}))).subscribe((function(e){if(Array.isArray(e)&&e.length>0){var n=t.loadMoreButtonIndex;t.pageSize+=e.length,t.data=t.data.concat(e),t.navigationService.isActive(n)&&(t.changeDetectorRef.detectChanges(),t.reselectItemAt(n))}})))},t.prototype.setNodeChildren=function(t){this.treeViewLookupService.registerChildren(this.parentIndex,t)},t.prototype.mapToTreeItem=function(t){var e=this;return this.parentIndex?t.map((function(t,n){return{dataItem:t,index:e.nodeIndex(n)}})):[]},t.prototype.emitChildrenLoaded=function(t){if(this.parentIndex){var e=t.filter((function(t){return t.dataItem}));this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},e)}},t.prototype.subscribeToNodesChange=function(){var t=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe((function(e){t.data=e,t.initialNodesLoaded=!0}))},t.prototype.reselectItemAt=function(t){h.isPresent(t)&&(this.navigationService.deactivate(),this.navigationService.activateIndex(t))},t.prototype.registerLoadedNodes=function(t){void 0===t&&(t=[]);var e=this.mapToTreeItem(t);this.loadOnDemand&&this.setNodeChildren(e),this.emitChildrenLoaded(e)},i.__decorate([r.HostBinding("class.k-treeview-group"),i.__metadata("design:type",Boolean)],t.prototype,"kGroupClass",void 0),i.__decorate([r.HostBinding("attr.role"),i.__metadata("design:type",String)],t.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"checkboxes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"expandIcons",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"disabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"selectable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"touchActions",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)],t.prototype,"trackBy",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"nodes",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"textField",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],t.prototype,"nodeTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",r.TemplateRef)],t.prototype,"loadMoreButtonTemplateRef",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"loadMoreService",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"size",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isChecked",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isExpanded",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isSelected",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"children",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"hasChildren",void 0),t=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-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",[a.ExpandStateService,p.LoadingNotificationService,c.IndexBuilderService,u.TreeViewLookupService,d.NavigationService,l.NodeChildrenService,y.DataChangeNotificationService,r.ChangeDetectorRef])],t)}();e.TreeViewGroupComponent=m},function(t,e){t.exports=o},function(t,e){t.exports=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),r=n(8),o=n(15),s=n(41),a=n(2),c=function(){function t(t){this.hierarchyBinding=t}return t.prototype.add=function(t){var e=t.sourceItem,n=t.destinationItem,c=t.dropPosition,u=t.sourceTree,d=t.destinationTree,l=Object.assign({},a.getDataItem(e));if(c===r.DropPosition.Over){o.expandDropTarget(n,d);var h=this.childrenFor(a.getDataItem(n)),p=a.isPresent(d.loadMoreService)?Math.min(d.loadMoreService.getGroupSize(a.getDataItem(n)),h.length):h.length;h.splice(p,0,l),i.setter(this.hierarchyBinding.childrenField)(a.getDataItem(n),h),this.movedItemNewIndex=a.buildTreeIndex(n.item.index,p)}else{var f=this.getParentNodes(n,d),v=c===r.DropPosition.After?1:0;p=f.indexOf(a.getDataItem(n))+v;f.splice(p,0,l);var y=n.parent?n.parent.item.index:null;this.movedItemNewIndex=a.buildTreeIndex(y,p)}var m=c===r.DropPosition.Over?a.getDataItem(n):a.getDataItem(n.parent);s.incrementPageSize(d,m),s.copyPageSize(d,a.getDataItem(e),l),u===d||d.loadOnDemand||d.preloadChildNodes(),u!==d&&(d.changeDetectorRef.detectChanges(),d.focus(this.movedItemNewIndex))},t.prototype.remove=function(t){var e=t.sourceItem,n=t.sourceTree,i=t.destinationTree,r=this.getParentNodes(e,n),c=r.indexOf(a.getDataItem(e));if(r.splice(c,1),o.collapseEmptyParent(e.parent,r,n),s.decrementPageSize(n,a.getDataItem(e.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var u=o.updateMovedItemIndex(this.movedItemNewIndex,e.item.index);i.focus(u)}},t.prototype.getParentNodes=function(t,e){return a.isPresent(t.parent)?this.childrenFor(a.getDataItem(t.parent)):e.nodes},t.prototype.childrenFor=function(t){return i.getter(this.hierarchyBinding.childrenField)(t)||[]},t}();e.HierarchyEditingService=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Up=-1]="Up",t[t.Down=1]="Down"}(e.ScrollDirection||(e.ScrollDirection={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Draggable",(function(){return d}));var i=function(t,e){return function(n){return e(t(n))}},r=function(t,e,n){return t.addEventListener&&t.addEventListener(e,n)},o=function(t,e,n){return t&&t.removeEventListener&&t.removeEventListener(e,n)},s=function(){},a=function(t){return t.preventDefault()},c=/touch/;function u(t){return t.type.match(c)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var d=function(t){var e=this,n=t.press;void 0===n&&(n=s);var c=t.drag;void 0===c&&(c=s);var d=t.release;void 0===d&&(d=s);var l=t.mouseOnly;void 0===l&&(l=!1),this._pressHandler=i(u,n),this._dragHandler=i(u,c),this._releaseHandler=i(u,d),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var n=t.which;n&&n>1||e._ignoreMouse||(r(e.document,"mousemove",e._mousemove),r(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){o(e.document,"mousemove",e._mousemove),o(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(r(e.document,"pointermove",e._pointermove),r(e.document,"pointerup",e._pointerup),r(e.document,"pointercancel",e._pointerup),r(e.document,"contextmenu",a),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(o(e.document,"pointermove",e._pointermove),o(e.document,"pointerup",e._pointerup),o(e.document,"pointercancel",e._pointerup),o(e.document,"contextmenu",a),e._releaseHandler(t))}},l={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},l.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?r(t,"pointerdown",this._pointerdown):(r(t,"mousedown",this._mousedown),this._mouseOnly||(r(t,"touchstart",this._touchstart),r(t,"touchmove",this._touchmove),r(t,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return o(t,"pointerdown",this._pointerdown),o(this.document,"pointermove",this._pointermove),o(this.document,"pointerup",this._pointerup),o(this.document,"contextmenu",a),void o(this.document,"pointercancel",this._pointerup);o(t,"mousedown",this._mousedown),this._mouseOnly||(o(t,"touchstart",this._touchstart),o(t,"touchmove",this._touchmove),o(t,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(t){var e=t.press;void 0===e&&(e=s);var n=t.drag;void 0===n&&(n=s);var r=t.release;void 0===r&&(r=s);var o=t.mouseOnly;void 0===o&&(o=!1),this._pressHandler=i(u,e),this._dragHandler=i(u,n),this._releaseHandler=i(u,r),this._mouseOnly=o},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,l),d.default=d,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(42),s=n(8),a=n(2),c=n(43),u=n(15);e.CLUE_OFFSET=10,e.RETURN_ANIMATION_DURATION=200;var d=function(t){function n(e){var n=t.call(this)||this;return n.componentFactoryResolver=e,n}return i.__extends(n,t),n.prototype.initialize=function(t,e){a.isPresent(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(o.DragClueComponent);this.componentRef=t.createComponent(n),this.hide(),this.componentRef.instance.template=e,this.componentRef.changeDetectorRef.detectChanges()},n.prototype.ngOnDestroy=function(){this.cancelReturnAnimation(),this.cancelScroll(),t.prototype.ngOnDestroy.call(this)},n.prototype.move=function(n,i){t.prototype.move.call(this,n,i,e.CLUE_OFFSET)},n.prototype.animateDragClueToElementPosition=function(t){var n=this;if(a.isPresent(t)&&a.isPresent(this.element.animate)){var i=t.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)"}],e.RETURN_ANIMATION_DURATION),this.returnAnimation.onfinish=function(){return n.hide()}}else this.hide()},n.prototype.cancelReturnAnimation=function(){a.isPresent(this.returnAnimation)&&(this.returnAnimation.cancel(),this.returnAnimation=null)},n.prototype.updateDragClueData=function(t,e,n){var i=this.componentRef.instance;t===i.action&&a.dataItemsEqual(e,i.sourceItem)&&a.dataItemsEqual(n,i.destinationItem)||(i.action=t,i.sourceItem=e,i.destinationItem=n,i.detectChanges())},n.prototype.updateText=function(t){t!==this.componentRef.instance.text&&(this.componentRef.instance.text=t,this.componentRef.instance.detectChanges())},n.prototype.scrollIntoView=function(t){var e=t.step,n=t.interval;this.cancelScroll();var i=u.getScrollableContainer(this.element);if(a.isPresent(i)){var r=i.getBoundingClientRect(),o=this.element.getBoundingClientRect(),c=Math.max(r.top,0),d=c+o.height,l=c+Math.min(r.bottom,i.clientHeight);o.top<d?this.scrollInterval=setInterval((function(){return u.scrollElementBy(i,e,s.ScrollDirection.Up)}),n):o.bottom>l&&(this.scrollInterval=setInterval((function(){return u.scrollElementBy(i,e,s.ScrollDirection.Down)}),n))}},n.prototype.cancelScroll=function(){a.isPresent(this.scrollInterval)&&(clearInterval(this.scrollInterval),this.scrollInterval=null)},n=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.ComponentFactoryResolver])],n)}(c.DragAndDropAssetService);e.DragClueService=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(2),s=n(44),a=function(t){function e(e){var n=t.call(this)||this;return n.componentFactoryResolver=e,n}return i.__extends(e,t),e.prototype.initialize=function(t,e){o.isPresent(this._componentRef)&&this.ngOnDestroy();var n=this.componentFactoryResolver.resolveComponentFactory(s.DropHintComponent);this.componentRef=t.createComponent(n),this.hide(),this.componentRef.instance.template=e,this.componentRef.changeDetectorRef.detectChanges()},e.prototype.updateDropHintData=function(t,e,n){var i=this.componentRef.instance;t===i.action&&o.dataItemsEqual(e,i.sourceItem)&&o.dataItemsEqual(n,i.destinationItem)||(i.action=t,i.sourceItem=e,i.destinationItem=n,i.detectChanges())},e=i.__decorate([r.Injectable(),i.__metadata("design:paramtypes",[r.ComponentFactoryResolver])],e)}(n(43).DragAndDropAssetService);e.DropHintService=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILTER_SETTINGS={operator:"contains",ignoreCase:!0,mode:"lenient"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(10),s=n(20),a=n(3),c=n(6),u=function(){function t(t,e,n){this.expandService=t,this.loadingService=e,this.cd=n,this._loading=!1}return Object.defineProperty(t.prototype,"loading",{get:function(){return this._loading},set:function(t){this._loading=t,this.cd.markForCheck()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e=this.loadingService.changes.pipe(c.filter((function(e){return e===t.index})));this.subscription=this.expandService.changes.pipe(c.filter((function(e){return e.index===t.index})),c.tap((function(e){!e.expand&&t.loading&&(t.loading=!1)})),c.filter((function(t){return t.expand})),c.switchMap((function(t){return a.of(t).pipe(c.delay(100),c.takeUntil(e))}))).subscribe((function(){return t.loading=!0})),this.subscription.add(e.subscribe((function(){return t.loading=!1})))},t.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])],t.prototype,"loading",null),i.__decorate([r.Input("kendoTreeViewLoading"),i.__metadata("design:type",String)],t.prototype,"index",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewLoading]"}),i.__metadata("design:paramtypes",[o.ExpandStateService,s.LoadingNotificationService,r.ChangeDetectorRef])],t)}();e.LoadingIndicatorDirective=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compose=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduceRight((function(t,e){return e(t)}),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(9),r=n(6),o=n(8),s=n(15),a=n(41),c=n(2),u=function(){function t(t){this.flatBinding=t}return t.prototype.add=function(t){var e=t.sourceItem,n=t.destinationItem,r=t.dropPosition,u=t.sourceTree,d=t.destinationTree,l=Object.assign({},c.getDataItem(e));if(r===o.DropPosition.Over){s.expandDropTarget(n,d);var h=i.getter(this.flatBinding.idField)(c.getDataItem(n));i.setter(this.flatBinding.parentIdField)(l,h);var p=this.getLastVisibleChildNodeIndex(d,this.flatBinding.originalData,c.getDataItem(n))+1;this.flatBinding.originalData.splice(p,0,l),this.rebindData();var f=this.fetchChildNodes(c.getDataItem(n),d).indexOf(l);this.movedItemNewIndex=c.buildTreeIndex(n.item.index,f)}else{var v=r===o.DropPosition.After?1:0;p=this.flatBinding.originalData.indexOf(c.getDataItem(n))+v;this.flatBinding.originalData.splice(p,0,l);var y=i.getter(this.flatBinding.parentIdField)(c.getDataItem(n));i.setter(this.flatBinding.parentIdField)(l,y),this.rebindData();var m=n.parent?n.parent.item.index:null;f=(n.parent?this.fetchChildNodes(c.getDataItem(n.parent),d):d.nodes).indexOf(l);this.movedItemNewIndex=c.buildTreeIndex(m,f)}u!==d&&this.addChildNodes(l,u);var b=r===o.DropPosition.Over?c.getDataItem(n):c.getDataItem(n.parent);a.incrementPageSize(d,b),a.copyPageSize(d,c.getDataItem(e),l),u===d||d.loadOnDemand||d.preloadChildNodes(),u!==d&&(d.changeDetectorRef.detectChanges(),d.focus(this.movedItemNewIndex))},t.prototype.remove=function(t){var e=t.sourceItem,n=t.sourceTree,i=t.destinationTree,r=c.getDataItem(e),o=this.flatBinding.originalData.indexOf(r);this.flatBinding.originalData.splice(o,1),n!==i&&this.removeChildNodes(r,n),this.rebindData();var u=e.parent?e.parent.children:[];if(s.collapseEmptyParent(e.parent,u,n),a.decrementPageSize(n,c.getDataItem(e.parent)),n.loadOnDemand||n.preloadChildNodes(),n===i){i.changeDetectorRef.detectChanges();var d=s.updateMovedItemIndex(this.movedItemNewIndex,e.item.index);i.focus(d)}},t.prototype.addChildNodes=function(t,e){var n,i=this.fetchAllDescendantNodes(t,e);(n=this.flatBinding.originalData).push.apply(n,i)},t.prototype.removeChildNodes=function(t,e){var n=this;this.fetchAllDescendantNodes(t,e).forEach((function(t){var e=n.flatBinding.originalData.indexOf(t);n.flatBinding.originalData.splice(e,1)}))},t.prototype.fetchAllDescendantNodes=function(t,e){var n=this,i=this.fetchChildNodes(t,e);return i.forEach((function(t){return i=i.concat(n.fetchAllDescendantNodes(t,e)||[])})),i},t.prototype.fetchChildNodes=function(t,e){if(!t)return[];var n=[];return e.children(t).pipe(r.take(1)).subscribe((function(t){return n=n.concat(t||[])})),n},t.prototype.getLastVisibleChildNodeIndex=function(t,e,n){if(!c.isPresent(t.loadMoreService)||!t.hasChildren(n))return e.length;var i=t.loadMoreService.getGroupSize(n),r=this.fetchChildNodes(n,t).slice(0,i),o=r[r.length-1];return e.indexOf(o)},t.prototype.rebindData=function(){this.flatBinding.nodes=this.flatBinding.originalData},t}();e.FlatEditingService=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(11),a=n(22),c=n(10),u=n(7),d=n(23),l=n(2),h=n(6),p=function(t,e){return{dataItem:e,index:t}},f=0,v=function(){function t(t,e,n,i,r,o,s){this.element=t,this.expandService=e,this.navigationService=n,this.selectionService=i,this.lookupService=r,this.renderer=o,this.ib=s,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(t.prototype,"isChecked",{set:function(t){this.ariaChecked="checked"===t?"true":"indeterminate"===t?"mixed":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this._isExpanded||!1},set:function(t){this._isExpanded=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSelected",{get:function(){return this._isSelected||!1},set:function(t){this._isSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isButton",{get:function(){return"button"===this.role},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"treeItem",{get:function(){return p(this.index,this.dataItem)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentTreeItem",{get:function(){return this.parentDataItem?p(this.parentIndex,this.parentDataItem):null},enumerable:!0,configurable:!0}),t.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()},t.prototype.ngOnChanges=function(t){var e=t.index,n=t.isDisabled;o.anyChanged(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],t)&&this.setAriaAttributes(),n&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(t),this.moveNavigationItem(e),o.anyChanged(["isDisabled","isVisible"],t)&&this.updateNodeAvailability()},t.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(t,e){return e.unsubscribe(),t}),[])},t.prototype.subscribe=function(){var t=this;this.subscriptions=[this.navigationService.moves.subscribe((function(e){t.updateTabIndex(),t.focusItem(e.shouldScroll)})),this.navigationService.expands.pipe(h.filter((function(e){return e.index===t.index&&!t.isDisabled}))).subscribe((function(e){var n=e.expand;return t.expand(n)}))]},t.prototype.registerNavigationItem=function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()},t.prototype.activateItem=function(){if(!this.isDisabled){var t=this.navigationService,e=this.selectionService,n=this.index;e.setFirstSelected(n,this.isSelected),!t.isActive(n)&&e.isFirstSelected(n)&&t.activateIndex(n)}},t.prototype.expand=function(t){this.expandService[t?"expand":"collapse"](this.index,this.dataItem)},t.prototype.isFocusable=function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)},t.prototype.focusItem=function(t){void 0===t&&(t=!1),this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!t})},t.prototype.moveLookupItem=function(t){void 0===t&&(t={});var e=t.dataItem,n=t.index,i=t.parentDataItem,r=t.parentIndex;if((!n||!n.firstChange)&&(e||n||i||r)){var o=(n||{}).previousValue||this.index;this.lookupService.replaceItem(o,this.treeItem,this.parentTreeItem)}},t.prototype.moveNavigationItem=function(t){void 0===t&&(t={});var e=t.currentValue,n=t.firstChange,i=t.previousValue;!n&&l.isPresent(e)&&l.isPresent(i)&&(this.navigationService.unregisterItem(this.id,i),this.navigationService.registerItem(this.id,e,this.isDisabled,this.isButton))},t.prototype.updateNodeAvailability=function(){var t=this.navigationService;this.isDisabled||!this.isVisible?t.activateClosest(this.index):t.activateFocusable(),t.unregisterItem(this.id,this.index),t.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)},t.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)},t.prototype.setDisabledClass=function(){this.setClass("k-disabled",this.isDisabled)},t.prototype.setClass=function(t,e){var n=e?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,t)},t.prototype.updateTabIndex=function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")},t.prototype.setAttribute=function(t,e){l.isPresent(e)?this.renderer.setAttribute(this.element.nativeElement,t,e):this.renderer.removeAttribute(this.element.nativeElement,t)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"parentDataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"parentIndex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"role",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"loadOnDemand",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"checkable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"selectable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"expandable",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String),i.__metadata("design:paramtypes",[String])],t.prototype,"isChecked",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"isDisabled",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"isVisible",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"isExpanded",null),i.__decorate([r.Input(),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[Boolean])],t.prototype,"isSelected",null),t=i.__decorate([r.Directive({selector:"[kendoTreeViewItem]"}),i.__metadata("design:paramtypes",[r.ElementRef,c.ExpandStateService,s.NavigationService,a.SelectionService,d.TreeViewLookupService,r.Renderer2,u.IndexBuilderService])],t)}();e.TreeViewItemDirective=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(11),s=n(22),a=n(19),c=n(3),u=n(6),d=function(){function t(t,e,n,i){var r=this;this.element=t,this.navigationService=e,this.selectionService=n,this.renderer=i,this.initialSelection=!1,this.isSelected=a.isSelected,this.subscriptions=new c.Subscription,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(u.filter((function(t){return t===r.index}))).subscribe((function(t){return r.selectionService.select(t,r.dataItem)}))),this.subscriptions.add(this.selectionService.changes.subscribe((function(){r.updateSelectionClass(r.isSelected(r.dataItem,r.index))})))}return t.prototype.ngOnChanges=function(t){t.initialSelection&&this.updateSelectionClass(this.initialSelection),t.index&&this.updateFocusClass()},t.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()},t.prototype.updateFocusClass=function(){this.render(this.navigationService.isActive(this.index),"k-focus")},t.prototype.updateSelectionClass=function(t){this.render(t,"k-selected")},t.prototype.render=function(t,e){var n=t?"addClass":"removeClass";this.renderer[n](this.element.nativeElement,e)},i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"dataItem",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Boolean)],t.prototype,"initialSelection",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Function)],t.prototype,"isSelected",void 0),t=i.__decorate([r.Directive({selector:"[kendoTreeViewItemContent]"}),i.__metadata("design:paramtypes",[r.ElementRef,o.NavigationService,s.SelectionService,r.Renderer2])],t)}();e.TreeViewItemContentDirective=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=[n(67).CheckBoxComponent],s=function(){function t(){}return t=i.__decorate([r.NgModule({declarations:[o],exports:[o]})],t)}();e.CheckBoxModule=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(4),s=n(2),a=function(){function t(t,e,n){this.element=t,this.renderer=e,this.changeDetector=n,this.id="_"+o.guid(),this.tabindex=0,this.size="medium",this.checkStateChange=new r.EventEmitter,this.checkState="none"}return Object.defineProperty(t.prototype,"classWrapper",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return"indeterminate"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return"checked"===this.checkState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxClasses",{get:function(){return"k-checkbox "+(this.size?s.getSizeClass("checkbox",this.size):"")+" k-rounded-md"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")},t.prototype.ngDoCheck=function(){this.checkState=this.isChecked(this.node,this.index)},t.prototype.handleChange=function(t){var e=t.target.checked?"checked":"none";this.checkState=e,this.changeDetector.detectChanges(),this.checkStateChange.emit(e)},i.__decorate([r.HostBinding("class.k-checkbox-wrapper"),i.__metadata("design:type",Boolean),i.__metadata("design:paramtypes",[])],t.prototype,"classWrapper",null),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"id",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"isChecked",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Object)],t.prototype,"node",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"index",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"labelText",void 0),i.__decorate([r.Input(),i.__metadata("design:type",Number)],t.prototype,"tabindex",void 0),i.__decorate([r.Input(),i.__metadata("design:type",String)],t.prototype,"size",void 0),i.__decorate([r.Output(),i.__metadata("design:type",r.EventEmitter)],t.prototype,"checkStateChange",void 0),t=i.__decorate([r.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",[r.ElementRef,r.Renderer2,r.ChangeDetectorRef])],t)}();e.CheckBoxComponent=a},function(t,e){t.exports=a}])}));
|