@angular/cdk 9.1.1 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/a11y/focus-monitor/focus-monitor.d.ts +36 -2
  2. package/a11y/index.metadata.json +1 -1
  3. package/bundles/cdk-a11y.umd.js +241 -19
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-a11y.umd.min.js +25 -10
  6. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  7. package/bundles/cdk-clipboard.umd.js +1 -1
  8. package/bundles/cdk-clipboard.umd.js.map +1 -1
  9. package/bundles/cdk-clipboard.umd.min.js +1 -1
  10. package/bundles/cdk-clipboard.umd.min.js.map +1 -1
  11. package/bundles/cdk-coercion.umd.js +0 -1
  12. package/bundles/cdk-coercion.umd.js.map +1 -1
  13. package/bundles/cdk-coercion.umd.min.js.map +1 -1
  14. package/bundles/cdk-collections.umd.js +203 -6
  15. package/bundles/cdk-collections.umd.js.map +1 -1
  16. package/bundles/cdk-collections.umd.min.js +17 -10
  17. package/bundles/cdk-collections.umd.min.js.map +1 -1
  18. package/bundles/cdk-drag-drop.umd.js +217 -23
  19. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  20. package/bundles/cdk-drag-drop.umd.min.js +25 -10
  21. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  22. package/bundles/cdk-overlay.umd.js +210 -12
  23. package/bundles/cdk-overlay.umd.js.map +1 -1
  24. package/bundles/cdk-overlay.umd.min.js +27 -12
  25. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  26. package/bundles/cdk-platform.umd.js +11 -0
  27. package/bundles/cdk-platform.umd.js.map +1 -1
  28. package/bundles/cdk-platform.umd.min.js +6 -6
  29. package/bundles/cdk-platform.umd.min.js.map +1 -1
  30. package/bundles/cdk-portal.umd.js +211 -14
  31. package/bundles/cdk-portal.umd.js.map +1 -1
  32. package/bundles/cdk-portal.umd.min.js +19 -4
  33. package/bundles/cdk-portal.umd.min.js.map +1 -1
  34. package/bundles/cdk-scrolling.umd.js +242 -14
  35. package/bundles/cdk-scrolling.umd.js.map +1 -1
  36. package/bundles/cdk-scrolling.umd.min.js +14 -6
  37. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  38. package/bundles/cdk-table.umd.js +278 -50
  39. package/bundles/cdk-table.umd.js.map +1 -1
  40. package/bundles/cdk-table.umd.min.js +29 -7
  41. package/bundles/cdk-table.umd.min.js.map +1 -1
  42. package/bundles/cdk-testing-protractor.umd.js +254 -49
  43. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  44. package/bundles/cdk-testing-protractor.umd.min.js +16 -9
  45. package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
  46. package/bundles/cdk-testing-testbed.umd.js +257 -54
  47. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  48. package/bundles/cdk-testing-testbed.umd.min.js +23 -8
  49. package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
  50. package/bundles/cdk-testing.umd.js +243 -46
  51. package/bundles/cdk-testing.umd.js.map +1 -1
  52. package/bundles/cdk-testing.umd.min.js +20 -5
  53. package/bundles/cdk-testing.umd.min.js.map +1 -1
  54. package/bundles/cdk-text-field.umd.js +21 -6
  55. package/bundles/cdk-text-field.umd.js.map +1 -1
  56. package/bundles/cdk-text-field.umd.min.js +3 -3
  57. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  58. package/bundles/cdk-tree.umd.js +212 -15
  59. package/bundles/cdk-tree.umd.js.map +1 -1
  60. package/bundles/cdk-tree.umd.min.js +17 -3
  61. package/bundles/cdk-tree.umd.min.js.map +1 -1
  62. package/bundles/cdk.umd.js +1 -1
  63. package/bundles/cdk.umd.js.map +1 -1
  64. package/bundles/cdk.umd.min.js +1 -1
  65. package/bundles/cdk.umd.min.js.map +1 -1
  66. package/coercion/array.d.ts +1 -0
  67. package/esm2015/a11y/focus-monitor/focus-monitor.js +93 -12
  68. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  69. package/esm2015/a11y/focus-trap/focus-trap.js +1 -1
  70. package/esm2015/a11y/live-announcer/live-announcer.js +1 -1
  71. package/esm2015/a11y/public-api.js +2 -2
  72. package/esm2015/bidi/directionality.js +1 -1
  73. package/esm2015/clipboard/pending-copy.js +3 -3
  74. package/esm2015/coercion/array.js +1 -2
  75. package/esm2015/drag-drop/drag-drop.js +1 -1
  76. package/esm2015/drag-drop/drag-ref.js +7 -5
  77. package/esm2015/drag-drop/drop-list-ref.js +11 -19
  78. package/esm2015/layout/breakpoints-observer.js +1 -1
  79. package/esm2015/overlay/position/flexible-connected-position-strategy.js +3 -2
  80. package/esm2015/overlay/position/overlay-position-builder.js +1 -1
  81. package/esm2015/platform/features/shadow-dom.js +16 -1
  82. package/esm2015/platform/public-api.js +2 -2
  83. package/esm2015/scrolling/scroll-dispatcher.js +38 -5
  84. package/esm2015/scrolling/viewport-ruler.js +44 -5
  85. package/esm2015/table/cell.js +18 -8
  86. package/esm2015/table/public-api.js +3 -2
  87. package/esm2015/table/row.js +24 -8
  88. package/esm2015/table/table.js +26 -12
  89. package/esm2015/table/text-column.js +3 -26
  90. package/esm2015/table/tokens.js +44 -0
  91. package/esm2015/testing/protractor/protractor-element.js +4 -2
  92. package/esm2015/testing/protractor/protractor-harness-environment.js +13 -8
  93. package/esm2015/testing/testbed/testbed-harness-environment.js +16 -10
  94. package/esm2015/text-field/autosize.js +38 -4
  95. package/esm2015/version.js +1 -1
  96. package/esm5/a11y/focus-monitor/focus-monitor.js +39 -13
  97. package/esm5/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  98. package/esm5/a11y/focus-trap/focus-trap.js +1 -1
  99. package/esm5/a11y/live-announcer/live-announcer.js +1 -1
  100. package/esm5/bidi/directionality.js +1 -1
  101. package/esm5/clipboard/pending-copy.js +2 -2
  102. package/esm5/coercion/array.js +1 -2
  103. package/esm5/drag-drop/drag-drop.js +1 -1
  104. package/esm5/drag-drop/drag-ref.js +7 -5
  105. package/esm5/drag-drop/drop-list-ref.js +9 -14
  106. package/esm5/layout/breakpoints-observer.js +1 -1
  107. package/esm5/overlay/position/flexible-connected-position-strategy.js +3 -2
  108. package/esm5/overlay/position/overlay-position-builder.js +1 -1
  109. package/esm5/platform/features/shadow-dom.js +11 -1
  110. package/esm5/scrolling/scroll-dispatcher.js +21 -5
  111. package/esm5/scrolling/viewport-ruler.js +24 -5
  112. package/esm5/table/cell.js +13 -8
  113. package/esm5/table/public-api.js +2 -1
  114. package/esm5/table/row.js +21 -11
  115. package/esm5/table/table.js +16 -11
  116. package/esm5/table/text-column.js +3 -4
  117. package/esm5/table/tokens.js +16 -0
  118. package/esm5/testing/protractor/protractor-element.js +4 -2
  119. package/esm5/testing/protractor/protractor-harness-environment.js +17 -11
  120. package/esm5/testing/testbed/testbed-harness-environment.js +17 -11
  121. package/esm5/text-field/autosize.js +20 -4
  122. package/esm5/version.js +1 -1
  123. package/fesm2015/a11y.js +89 -11
  124. package/fesm2015/a11y.js.map +1 -1
  125. package/fesm2015/cdk.js +1 -1
  126. package/fesm2015/cdk.js.map +1 -1
  127. package/fesm2015/clipboard.js +2 -2
  128. package/fesm2015/clipboard.js.map +1 -1
  129. package/fesm2015/coercion.js +0 -1
  130. package/fesm2015/coercion.js.map +1 -1
  131. package/fesm2015/drag-drop.js +16 -22
  132. package/fesm2015/drag-drop.js.map +1 -1
  133. package/fesm2015/overlay.js +2 -1
  134. package/fesm2015/overlay.js.map +1 -1
  135. package/fesm2015/platform.js +16 -1
  136. package/fesm2015/platform.js.map +1 -1
  137. package/fesm2015/scrolling.js +76 -7
  138. package/fesm2015/scrolling.js.map +1 -1
  139. package/fesm2015/table.js +98 -49
  140. package/fesm2015/table.js.map +1 -1
  141. package/fesm2015/testing/protractor.js +16 -9
  142. package/fesm2015/testing/protractor.js.map +1 -1
  143. package/fesm2015/testing/testbed.js +15 -9
  144. package/fesm2015/testing/testbed.js.map +1 -1
  145. package/fesm2015/text-field.js +37 -3
  146. package/fesm2015/text-field.js.map +1 -1
  147. package/fesm5/a11y.js +36 -12
  148. package/fesm5/a11y.js.map +1 -1
  149. package/fesm5/cdk.js +1 -1
  150. package/fesm5/cdk.js.map +1 -1
  151. package/fesm5/clipboard.js +1 -1
  152. package/fesm5/clipboard.js.map +1 -1
  153. package/fesm5/coercion.js +0 -1
  154. package/fesm5/coercion.js.map +1 -1
  155. package/fesm5/drag-drop.js +14 -17
  156. package/fesm5/drag-drop.js.map +1 -1
  157. package/fesm5/overlay.js +2 -1
  158. package/fesm5/overlay.js.map +1 -1
  159. package/fesm5/platform.js +11 -1
  160. package/fesm5/platform.js.map +1 -1
  161. package/fesm5/scrolling.js +39 -7
  162. package/fesm5/scrolling.js.map +1 -1
  163. package/fesm5/table.js +59 -29
  164. package/fesm5/table.js.map +1 -1
  165. package/fesm5/testing/protractor.js +20 -12
  166. package/fesm5/testing/protractor.js.map +1 -1
  167. package/fesm5/testing/testbed.js +16 -10
  168. package/fesm5/testing/testbed.js.map +1 -1
  169. package/fesm5/text-field.js +19 -3
  170. package/fesm5/text-field.js.map +1 -1
  171. package/package.json +1 -1
  172. package/platform/features/shadow-dom.d.ts +2 -0
  173. package/platform/index.metadata.json +1 -1
  174. package/schematics/ng-add/index.js +1 -1
  175. package/schematics/ng-update/upgrade-rules/class-names-rule.js +3 -1
  176. package/schematics/utils/ast/ng-module-imports.js +3 -2
  177. package/scrolling/index.metadata.json +1 -1
  178. package/scrolling/scroll-dispatcher.d.ts +9 -1
  179. package/scrolling/viewport-ruler.d.ts +9 -1
  180. package/table/cell.d.ts +2 -0
  181. package/table/index.metadata.json +1 -1
  182. package/table/public-api.d.ts +1 -0
  183. package/table/row.d.ts +6 -3
  184. package/table/table.d.ts +2 -0
  185. package/table/text-column.d.ts +2 -13
  186. package/table/tokens.d.ts +25 -0
  187. package/testing/protractor/protractor-harness-environment.d.ts +10 -3
  188. package/testing/testbed/testbed-harness-environment.d.ts +12 -4
  189. package/text-field/autosize.d.ts +9 -1
  190. package/text-field/index.metadata.json +1 -1
@@ -1,53 +1,68 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/scrolling"),require("@angular/cdk/platform"),require("@angular/cdk/coercion"),require("rxjs"),require("rxjs/operators"),require("tslib"),require("@angular/cdk/bidi")):"function"==typeof define&&define.amd?define("@angular/cdk/drag-drop",["exports","@angular/core","@angular/common","@angular/cdk/scrolling","@angular/cdk/platform","@angular/cdk/coercion","rxjs","rxjs/operators","tslib","@angular/cdk/bidi"],e):e(((t=t||self).ng=t.ng||{},t.ng.cdk=t.ng.cdk||{},t.ng.cdk.dragDrop={}),t.ng.core,t.ng.common,t.ng.cdk.scrolling,t.ng.cdk.platform,t.ng.cdk.coercion,t.rxjs,t.rxjs.operators,t.tslib,t.ng.cdk.bidi)}(this,(function(t,e,i,r,n,o,s,a,c,l){"use strict";
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/cdk/scrolling"),require("@angular/cdk/platform"),require("@angular/cdk/coercion"),require("rxjs"),require("rxjs/operators"),require("@angular/cdk/bidi")):"function"==typeof define&&define.amd?define("@angular/cdk/drag-drop",["exports","@angular/core","@angular/common","@angular/cdk/scrolling","@angular/cdk/platform","@angular/cdk/coercion","rxjs","rxjs/operators","@angular/cdk/bidi"],e):e(((t=t||self).ng=t.ng||{},t.ng.cdk=t.ng.cdk||{},t.ng.cdk.dragDrop={}),t.ng.core,t.ng.common,t.ng.cdk.scrolling,t.ng.cdk.platform,t.ng.cdk.coercion,t.rxjs,t.rxjs.operators,t.ng.cdk.bidi)}(this,(function(t,e,i,r,n,o,s,a,c){"use strict";
2
2
  /**
3
3
  * @license
4
4
  * Copyright Google LLC All Rights Reserved.
5
5
  *
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://angular.io/license
8
- */function p(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function h(t,e){var i=e?"":"none";p(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}
8
+ */function l(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function p(t,e){var i=e?"":"none";l(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}
9
9
  /**
10
10
  * @license
11
11
  * Copyright Google LLC All Rights Reserved.
12
12
  *
13
13
  * Use of this source code is governed by an MIT-style license that can be
14
14
  * found in the LICENSE file at https://angular.io/license
15
- */function d(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function u(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}
15
+ */function h(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function d(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}
16
16
  /**
17
17
  * @license
18
18
  * Copyright Google LLC All Rights Reserved.
19
19
  *
20
20
  * Use of this source code is governed by an MIT-style license that can be
21
21
  * found in the LICENSE file at https://angular.io/license
22
- */var g=n.normalizePassiveListenerOptions({passive:!0}),_=n.normalizePassiveListenerOptions({passive:!1}),f=function(){function t(t,e,i,r,n,o){var a=this;this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=n,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new s.Subject,this._pointerMoveSubscription=s.Subscription.EMPTY,this._pointerUpSubscription=s.Subscription.EMPTY,this._scrollSubscription=s.Subscription.EMPTY,this._resizeSubscription=s.Subscription.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new s.Subject,this.started=new s.Subject,this.released=new s.Subject,this.ended=new s.Subject,this.entered=new s.Subject,this.exited=new s.Subject,this.dropped=new s.Subject,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(a.beforeStarted.next(),a._handles.length){var e=a._handles.find((function(e){var i=t.target;return!!i&&(i===e||e.contains(i))}));!e||a._disabledHandles.has(e)||a.disabled||a._initializeDragSequence(e,t)}else a.disabled||a._initializeDragSequence(a._rootElement,t)},this._pointerMove=function(t){if(t.preventDefault(),a._hasStartedDragging){a._boundaryElement&&(a._previewRect&&(a._previewRect.width||a._previewRect.height)||(a._previewRect=(a._preview||a._rootElement).getBoundingClientRect()));var e=a._getConstrainedPointerPosition(t);if(a._hasMoved=!0,a._updatePointerDirectionDelta(e),a._dropContainer)a._updateActiveDropContainer(e);else{var i=a._activeTransform;i.x=e.x-a._pickupPositionOnPage.x+a._passiveTransform.x,i.y=e.y-a._pickupPositionOnPage.y+a._passiveTransform.y,a._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&a._rootElement instanceof SVGElement&&a._rootElement.setAttribute("transform","translate("+i.x+" "+i.y+")")}a._moveEvents.observers.length&&a._ngZone.run((function(){a._moveEvents.next({source:a,pointerPosition:e,event:t,distance:a._getDragDistance(e),delta:a._pointerDirectionDelta})}))}else{var r=a._getPointerPositionOnPage(t);if(Math.abs(r.x-a._pickupPositionOnPage.x)+Math.abs(r.y-a._pickupPositionOnPage.y)>=a._config.dragStartThreshold){if(!(Date.now()>=a._dragStartTime+a._getDragStartDelay(t)))return void a._endDragSequence(t);a._dropContainer&&a._dropContainer.isDragging()||(a._hasStartedDragging=!0,a._ngZone.run((function(){return a._startDragSequence(t)})))}}},this._pointerUp=function(t){a._endDragSequence(t)},this.withRootElement(t),o.registerDragItem(this)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=o.coerceBooleanProperty(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())},enumerable:!0,configurable:!0}),t.prototype.getPlaceholderElement=function(){return this._placeholder},t.prototype.getRootElement=function(){return this._rootElement},t.prototype.getVisibleElement=function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()},t.prototype.withHandles=function(t){return this._handles=t.map((function(t){return o.coerceElement(t)})),this._handles.forEach((function(t){return h(t,!1)})),this._toggleNativeDragInteractions(),this},t.prototype.withPreviewTemplate=function(t){return this._previewTemplate=t,this},t.prototype.withPlaceholderTemplate=function(t){return this._placeholderTemplate=t,this},t.prototype.withRootElement=function(t){var e=o.coerceElement(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,_),e.addEventListener("touchstart",this._pointerDown,g),this._initialTransform=void 0,this._rootElement=e),this},t.prototype.withBoundaryElement=function(t){var e=this;return this._boundaryElement=t?o.coerceElement(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this},t.prototype.dispose=function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&D(this._rootElement),D(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null},t.prototype.isDragging=function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)},t.prototype.reset=function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}},t.prototype.disableHandle=function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)},t.prototype.enableHandle=function(t){this._disabledHandles.delete(t)},t.prototype.withDirection=function(t){return this._direction=t,this},t.prototype._withDropContainer=function(t){this._dropContainer=t},t.prototype.getFreeDragPosition=function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}},t.prototype.setFreeDragPosition=function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this},t.prototype._sortFromLastPointerPosition=function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)},t.prototype._removeSubscriptions=function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()},t.prototype._destroyPreview=function(){this._preview&&D(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null},t.prototype._destroyPlaceholder=function(){this._placeholder&&D(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null},t.prototype._endDragSequence=function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))},t.prototype._startDragSequence=function(t){if(this.started.next({source:this}),b(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var e=this._rootElement,i=e.parentNode,r=this._preview=this._createPreviewElement(),n=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(o,e),e.style.display="none",this._document.body.appendChild(i.replaceChild(n,e)),function s(t){return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}(this._document).appendChild(r),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0},t.prototype._initializeDragSequence=function(t,e){var i=this;e.stopPropagation();var r=this.isDragging(),n=b(e),o=!n&&0!==e.button,s=this._rootElement,c=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(r||o||c)){this._handles.length&&(this._rootElementTapHighlight=s.style.webkitTapHighlightColor,s.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(a.startWith(null)).subscribe((function(){i._scrollPosition=i._viewportRuler.getViewportScrollPosition()})),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var p=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:p.x,y:p.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}},t.prototype._cleanupDragArtifacts=function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=e._dropContainer,r=i.getItemIndex(e),n=e._getPointerPositionOnPage(t),o=e._getDragDistance(e._getPointerPositionOnPage(t)),s=i._isOverContainer(n.x,n.y);e.ended.next({source:e,distance:o}),e.dropped.next({item:e,currentIndex:r,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:s,distance:o}),i.drop(e,r,e._initialContainer,s,o,e._initialIndex),e._dropContainer=e._initialContainer}))},t.prototype._updateActiveDropContainer=function(t){var e=this,i=t.x,r=t.y,n=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=n,e._dropContainer.enter(e,i,r,n===e._initialContainer?e._initialIndex:void 0),e.entered.next({item:e,container:n,currentIndex:n.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=m(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)},t.prototype._createPreviewElement=function(){var t,e=this._previewTemplate,i=this.previewClass,r=e?e.template:null;if(r){var n=e.viewContainer.createEmbeddedView(r,e.context);t=S(n,this._document),this._previewRef=n,e.matchSize?P(t,this._rootElement):t.style.transform=m(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var o=this._rootElement;P(t=v(o),o)}return p(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),h(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(e){return t.classList.add(e)})):t.classList.add(i)),t},t.prototype._animatePreviewToPlaceholder=function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=m(e.left,e.top);var i=function r(t){var e=getComputedStyle(t),i=u(e,"transition-property"),r=i.find((function(t){return"transform"===t||"all"===t}));if(!r)return 0;var n=i.indexOf(r),o=u(e,"transition-duration"),s=u(e,"transition-delay");return d(o[n])+d(s[n])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var r=function(i){(!i||i.target===t._preview&&"transform"===i.propertyName)&&(t._preview.removeEventListener("transitionend",r),e(),clearTimeout(n))},n=setTimeout(r,1.5*i);t._preview.addEventListener("transitionend",r)}))}))},t.prototype._createPlaceholderElement=function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),t=S(this._placeholderRef,this._document)):t=v(this._rootElement),t.classList.add("cdk-drag-placeholder"),t},t.prototype._getPointerPositionInElement=function(t,e){var i=this._rootElement.getBoundingClientRect(),r=t===this._rootElement?null:t,n=r?r.getBoundingClientRect():i,o=b(e)?e.targetTouches[0]:e;return{x:n.left-i.left+(o.pageX-n.left-this._scrollPosition.left),y:n.top-i.top+(o.pageY-n.top-this._scrollPosition.top)}},t.prototype._getPointerPositionOnPage=function(t){var e=b(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}},t.prototype._getConstrainedPointerPosition=function(t){var e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,r=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===r?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==r||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){var n=this._pickupPositionInElement,o=n.x,s=n.y,a=this._boundaryRect,c=this._previewRect,l=a.top+s,p=a.bottom-(c.height-s);i.x=y(i.x,a.left+o,a.right-(c.width-o)),i.y=y(i.y,l,p)}return i},t.prototype._updatePointerDirectionDelta=function(t){var e=t.x,i=t.y,r=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-n.x),s=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=e>n.x?1:-1,n.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=i>n.y?1:-1,n.y=i),r},t.prototype._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,h(this._rootElement,t))}},t.prototype._removeRootElementListeners=function(t){t.removeEventListener("mousedown",this._pointerDown,_),t.removeEventListener("touchstart",this._pointerDown,g)},t.prototype._applyRootElementTransform=function(t,e){var i=m(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i},t.prototype._getDragDistance=function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}},t.prototype._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0},t.prototype._containInsideBoundaryOnResize=function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var r=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(!(0===r.width&&0===r.height||0===n.width&&0===n.height)){var o=r.left-n.left,s=n.right-r.right,a=r.top-n.top,c=n.bottom-r.bottom;r.width>n.width?(o>0&&(e+=o),s>0&&(e-=s)):e=0,r.height>n.height?(a>0&&(i+=a),c>0&&(i-=c)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}},t.prototype._getDragStartDelay=function(t){var e=this.dragStartDelay;return"number"==typeof e?e:b(t)?e.touch:e?e.mouse:0},t}();function m(t,e){return"translate3d("+Math.round(t)+"px, "+Math.round(e)+"px, 0)"}function v(t){var e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),r=t.querySelectorAll("canvas");e.removeAttribute("id");for(var n=0;n<i.length;n++)i[n].removeAttribute("id");if(r.length){var o=e.querySelectorAll("canvas");for(n=0;n<r.length;n++){var s=o[n].getContext("2d");s&&s.drawImage(r[n],0,0)}}return e}function y(t,e,i){return Math.max(e,Math.min(i,t))}function D(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function b(t){return"t"===t.type[0]}function S(t,e){var i=t.rootNodes[0];if(i.nodeType!==e.ELEMENT_NODE){var r=e.createElement("div");return r.appendChild(i),r}return i}function P(t,e){var i=e.getBoundingClientRect();t.style.width=i.width+"px",t.style.height=i.height+"px",t.style.transform=m(i.left,i.top)}
22
+ */var u=n.normalizePassiveListenerOptions({passive:!0}),g=n.normalizePassiveListenerOptions({passive:!1}),_=function(){function t(t,e,i,r,n,o){var a=this;this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=n,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new s.Subject,this._pointerMoveSubscription=s.Subscription.EMPTY,this._pointerUpSubscription=s.Subscription.EMPTY,this._scrollSubscription=s.Subscription.EMPTY,this._resizeSubscription=s.Subscription.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new s.Subject,this.started=new s.Subject,this.released=new s.Subject,this.ended=new s.Subject,this.entered=new s.Subject,this.exited=new s.Subject,this.dropped=new s.Subject,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(a.beforeStarted.next(),a._handles.length){var e=a._handles.find((function(e){var i=t.target;return!!i&&(i===e||e.contains(i))}));!e||a._disabledHandles.has(e)||a.disabled||a._initializeDragSequence(e,t)}else a.disabled||a._initializeDragSequence(a._rootElement,t)},this._pointerMove=function(t){if(t.preventDefault(),a._hasStartedDragging){a._boundaryElement&&(a._previewRect&&(a._previewRect.width||a._previewRect.height)||(a._previewRect=(a._preview||a._rootElement).getBoundingClientRect()));var e=a._getConstrainedPointerPosition(t);if(a._hasMoved=!0,a._updatePointerDirectionDelta(e),a._dropContainer)a._updateActiveDropContainer(e);else{var i=a._activeTransform;i.x=e.x-a._pickupPositionOnPage.x+a._passiveTransform.x,i.y=e.y-a._pickupPositionOnPage.y+a._passiveTransform.y,a._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&a._rootElement instanceof SVGElement&&a._rootElement.setAttribute("transform","translate("+i.x+" "+i.y+")")}a._moveEvents.observers.length&&a._ngZone.run((function(){a._moveEvents.next({source:a,pointerPosition:e,event:t,distance:a._getDragDistance(e),delta:a._pointerDirectionDelta})}))}else{var r=a._getPointerPositionOnPage(t);if(Math.abs(r.x-a._pickupPositionOnPage.x)+Math.abs(r.y-a._pickupPositionOnPage.y)>=a._config.dragStartThreshold){if(!(Date.now()>=a._dragStartTime+a._getDragStartDelay(t)))return void a._endDragSequence(t);a._dropContainer&&a._dropContainer.isDragging()||(a._hasStartedDragging=!0,a._ngZone.run((function(){return a._startDragSequence(t)})))}}},this._pointerUp=function(t){a._endDragSequence(t)},this.withRootElement(t),o.registerDragItem(this)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=o.coerceBooleanProperty(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())},enumerable:!0,configurable:!0}),t.prototype.getPlaceholderElement=function(){return this._placeholder},t.prototype.getRootElement=function(){return this._rootElement},t.prototype.getVisibleElement=function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()},t.prototype.withHandles=function(t){return this._handles=t.map((function(t){return o.coerceElement(t)})),this._handles.forEach((function(t){return p(t,!1)})),this._toggleNativeDragInteractions(),this},t.prototype.withPreviewTemplate=function(t){return this._previewTemplate=t,this},t.prototype.withPlaceholderTemplate=function(t){return this._placeholderTemplate=t,this},t.prototype.withRootElement=function(t){var e=o.coerceElement(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,g),e.addEventListener("touchstart",this._pointerDown,u),this._initialTransform=void 0,this._rootElement=e),this},t.prototype.withBoundaryElement=function(t){var e=this;return this._boundaryElement=t?o.coerceElement(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this},t.prototype.dispose=function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&y(this._rootElement),y(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null},t.prototype.isDragging=function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)},t.prototype.reset=function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}},t.prototype.disableHandle=function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)},t.prototype.enableHandle=function(t){this._disabledHandles.delete(t)},t.prototype.withDirection=function(t){return this._direction=t,this},t.prototype._withDropContainer=function(t){this._dropContainer=t},t.prototype.getFreeDragPosition=function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}},t.prototype.setFreeDragPosition=function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this},t.prototype._sortFromLastPointerPosition=function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)},t.prototype._removeSubscriptions=function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()},t.prototype._destroyPreview=function(){this._preview&&y(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null},t.prototype._destroyPlaceholder=function(){this._placeholder&&y(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null},t.prototype._endDragSequence=function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))},t.prototype._startDragSequence=function(t){if(this.started.next({source:this}),D(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var e=this._rootElement,i=e.parentNode,r=this._preview=this._createPreviewElement(),n=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(o,e),e.style.display="none",this._document.body.appendChild(i.replaceChild(n,e)),function s(t){return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}(this._document).appendChild(r),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0},t.prototype._initializeDragSequence=function(t,e){var i=this;e.stopPropagation();var r=this.isDragging(),n=D(e),o=!n&&0!==e.button,s=this._rootElement,c=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(r||o||c)){this._handles.length&&(this._rootElementTapHighlight=s.style.webkitTapHighlightColor,s.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(a.startWith(null)).subscribe((function(){i._scrollPosition=i._viewportRuler.getViewportScrollPosition()})),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var p=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:p.x,y:p.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}},t.prototype._cleanupDragArtifacts=function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var i=e._dropContainer,r=i.getItemIndex(e),n=e._getPointerPositionOnPage(t),o=e._getDragDistance(e._getPointerPositionOnPage(t)),s=i._isOverContainer(n.x,n.y);e.ended.next({source:e,distance:o}),e.dropped.next({item:e,currentIndex:r,previousIndex:e._initialIndex,container:i,previousContainer:e._initialContainer,isPointerOverContainer:s,distance:o}),i.drop(e,r,e._initialContainer,s,o,e._initialIndex),e._dropContainer=e._initialContainer}))},t.prototype._updateActiveDropContainer=function(t){var e=this,i=t.x,r=t.y,n=this._initialContainer._getSiblingContainerFromPosition(this,i,r);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,r)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=n,e._dropContainer.enter(e,i,r,n===e._initialContainer&&n.sortingDisabled?e._initialIndex:void 0),e.entered.next({item:e,container:n,currentIndex:n.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,i,r,this._pointerDirectionDelta),this._preview.style.transform=f(i-this._pickupPositionInElement.x,r-this._pickupPositionInElement.y)},t.prototype._createPreviewElement=function(){var t,e=this._previewTemplate,i=this.previewClass,r=e?e.template:null;if(r){var n=e.viewContainer.createEmbeddedView(r,e.context);n.detectChanges(),t=b(n,this._document),this._previewRef=n,e.matchSize?S(t,this._rootElement):t.style.transform=f(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var o=this._rootElement;S(t=m(o),o)}return l(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),p(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach((function(e){return t.classList.add(e)})):t.classList.add(i)),t},t.prototype._animatePreviewToPlaceholder=function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=f(e.left,e.top);var i=function r(t){var e=getComputedStyle(t),i=d(e,"transition-property"),r=i.find((function(t){return"transform"===t||"all"===t}));if(!r)return 0;var n=i.indexOf(r),o=d(e,"transition-duration"),s=d(e,"transition-delay");return h(o[n])+h(s[n])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var r=function(i){(!i||i.target===t._preview&&"transform"===i.propertyName)&&(t._preview.removeEventListener("transitionend",r),e(),clearTimeout(n))},n=setTimeout(r,1.5*i);t._preview.addEventListener("transitionend",r)}))}))},t.prototype._createPlaceholderElement=function(){var t,e=this._placeholderTemplate,i=e?e.template:null;return i?(this._placeholderRef=e.viewContainer.createEmbeddedView(i,e.context),this._placeholderRef.detectChanges(),t=b(this._placeholderRef,this._document)):t=m(this._rootElement),t.classList.add("cdk-drag-placeholder"),t},t.prototype._getPointerPositionInElement=function(t,e){var i=this._rootElement.getBoundingClientRect(),r=t===this._rootElement?null:t,n=r?r.getBoundingClientRect():i,o=D(e)?e.targetTouches[0]:e;return{x:n.left-i.left+(o.pageX-n.left-this._scrollPosition.left),y:n.top-i.top+(o.pageY-n.top-this._scrollPosition.top)}},t.prototype._getPointerPositionOnPage=function(t){var e=D(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}},t.prototype._getConstrainedPointerPosition=function(t){var e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,r=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===r?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==r||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){var n=this._pickupPositionInElement,o=n.x,s=n.y,a=this._boundaryRect,c=this._previewRect,l=a.top+s,p=a.bottom-(c.height-s);i.x=v(i.x,a.left+o,a.right-(c.width-o)),i.y=v(i.y,l,p)}return i},t.prototype._updatePointerDirectionDelta=function(t){var e=t.x,i=t.y,r=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-n.x),s=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(r.x=e>n.x?1:-1,n.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=i>n.y?1:-1,n.y=i),r},t.prototype._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,p(this._rootElement,t))}},t.prototype._removeRootElementListeners=function(t){t.removeEventListener("mousedown",this._pointerDown,g),t.removeEventListener("touchstart",this._pointerDown,u)},t.prototype._applyRootElementTransform=function(t,e){var i=f(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i},t.prototype._getDragDistance=function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}},t.prototype._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0},t.prototype._containInsideBoundaryOnResize=function(){var t=this._passiveTransform,e=t.x,i=t.y;if(!(0===e&&0===i||this.isDragging())&&this._boundaryElement){var r=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(!(0===r.width&&0===r.height||0===n.width&&0===n.height)){var o=r.left-n.left,s=n.right-r.right,a=r.top-n.top,c=n.bottom-r.bottom;r.width>n.width?(o>0&&(e+=o),s>0&&(e-=s)):e=0,r.height>n.height?(a>0&&(i+=a),c>0&&(i-=c)):i=0,e===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:e})}}},t.prototype._getDragStartDelay=function(t){var e=this.dragStartDelay;return"number"==typeof e?e:D(t)?e.touch:e?e.mouse:0},t}();function f(t,e){return"translate3d("+Math.round(t)+"px, "+Math.round(e)+"px, 0)"}function m(t){var e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),r=t.querySelectorAll("canvas");e.removeAttribute("id");for(var n=0;n<i.length;n++)i[n].removeAttribute("id");if(r.length){var o=e.querySelectorAll("canvas");for(n=0;n<r.length;n++){var s=o[n].getContext("2d");s&&s.drawImage(r[n],0,0)}}return e}function v(t,e,i){return Math.max(e,Math.min(i,t))}function y(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function D(t){return"t"===t.type[0]}function b(t,e){var i=t.rootNodes[0];if(i.nodeType!==e.ELEMENT_NODE){var r=e.createElement("div");return r.appendChild(i),r}return i}function S(t,e){var i=e.getBoundingClientRect();t.style.width=i.width+"px",t.style.height=i.height+"px",t.style.transform=f(i.left,i.top)}
23
+ /*! *****************************************************************************
24
+ Copyright (c) Microsoft Corporation. All rights reserved.
25
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
26
+ this file except in compliance with the License. You may obtain a copy of the
27
+ License at http://www.apache.org/licenses/LICENSE-2.0
28
+
29
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
30
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
31
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
32
+ MERCHANTABLITY OR NON-INFRINGEMENT.
33
+
34
+ See the Apache Version 2.0 License for specific language governing permissions
35
+ and limitations under the License.
36
+ ***************************************************************************** */function P(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s}function E(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(P(arguments[e]));return t}
23
37
  /**
24
38
  * @license
25
39
  * Copyright Google LLC All Rights Reserved.
26
40
  *
27
41
  * Use of this source code is governed by an MIT-style license that can be
28
42
  * found in the LICENSE file at https://angular.io/license
29
- */function E(t,e,i){var r=w(e,t.length-1),n=w(i,t.length-1);if(r!==n){for(var o=t[r],s=n<r?-1:1,a=r;a!==n;a+=s)t[a]=t[a+s];t[n]=o}}function w(t,e){return Math.max(0,Math.min(e,t))}
43
+ */
44
+ function w(t,e,i){var r=R(e,t.length-1),n=R(i,t.length-1);if(r!==n){for(var o=t[r],s=n<r?-1:1,a=r;a!==n;a+=s)t[a]=t[a+s];t[n]=o}}function R(t,e){return Math.max(0,Math.min(e,t))}
30
45
  /**
31
46
  * @license
32
47
  * Copyright Google LLC All Rights Reserved.
33
48
  *
34
49
  * Use of this source code is governed by an MIT-style license that can be
35
50
  * found in the LICENSE file at https://angular.io/license
36
- */var R=.05,x=.05,I=2,C=function(){function t(t,e,i,r,n){var c=this;this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=n,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new s.Subject,this.entered=new s.Subject,this.exited=new s.Subject,this.dropped=new s.Subject,this.sorted=new s.Subject,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=s.Subscription.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new s.Subject,this._cachedShadowRoot=null,this._startScrollInterval=function(){c._stopScrolling(),s.interval(0,s.animationFrameScheduler).pipe(a.takeUntil(c._stopScrollTimers)).subscribe((function(){var t=c._scrollNode;1===c._verticalScrollDirection?j(t,-I):2===c._verticalScrollDirection&&j(t,I),1===c._horizontalScrollDirection?M(t,-I):2===c._horizontalScrollDirection&&M(t,I)}))},this.element=o.coerceElement(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this)}return t.prototype.dispose=function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)},t.prototype.isDragging=function(){return this._isDragging},t.prototype.start=function(){var t=this,e=o.coerceElement(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(e){return e._startReceiving(t)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()},t.prototype.enter=function(t,e,i,r){var n;this.start(),null==r?-1===(n=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(n=this._getItemIndexFromPointerPosition(t,e,i)):n=r;var s=this._activeDraggables,a=s.indexOf(t),c=t.getPlaceholderElement(),l=s[n];if(l===t&&(l=s[n+1]),a>-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){var p=l.getRootElement();p.parentElement.insertBefore(c,p),s.splice(n,0,t)}else o.coerceElement(this.element).appendChild(c),s.push(t);c.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})},t.prototype.exit=function(t){this._reset(),this.exited.next({item:t,container:this})},t.prototype.drop=function(t,e,i,r,n,o){this._reset(),null==o&&(o=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:o,container:this,previousContainer:i,isPointerOverContainer:r,distance:n})},t.prototype.withItems=function(t){var e=this;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&this._cacheItems(),this},t.prototype.withDirection=function(t){return this._direction=t,this},t.prototype.connectedTo=function(t){return this._siblings=t.slice(),this},t.prototype.withOrientation=function(t){return this._orientation=t,this},t.prototype.withScrollableParents=function(t){var e=o.coerceElement(this.element);return this._scrollableElements=-1===t.indexOf(e)?c.__spread([e],t):t.slice(),this},t.prototype.getItemIndex=function(t){return this._isDragging?O("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)},t.prototype.isReceiving=function(){return this._activeSiblings.size>0},t.prototype._sortItem=function(t,e,i,r){if(!this.sortingDisabled&&T(this._clientRect,e,i)){var n=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,r);if(!(-1===o&&n.length>0)){var s="horizontal"===this._orientation,a=O(n,(function(e){return e.drag===t})),c=n[o],l=n[a].clientRect,p=c.clientRect,h=a>o?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y;var d=this._getItemOffsetPx(l,p,h),u=this._getSiblingOffsetPx(a,n,h),g=n.slice();E(n,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),n.forEach((function(e,i){if(g[i]!==e){var r=e.drag===t,n=r?d:u,o=r?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=n,s?(o.style.transform="translate3d("+Math.round(e.offset)+"px, 0, 0)",k(e.clientRect,0,n)):(o.style.transform="translate3d(0, "+Math.round(e.offset)+"px, 0)",k(e.clientRect,n,0))}}))}}},t.prototype._startScrollingIfNecessary=function(t,e){var i=this;if(!this.autoScrollDisabled){var r,n=0,o=0;if(this._parentPositions.forEach((function(s,a){var l;a!==i._document&&s.clientRect&&!r&&T(s.clientRect,t,e)&&(l=c.__read(function p(t,e,i,r){var n=N(e,r),o=z(e,i),s=0,a=0;if(n){var c=t.scrollTop;1===n?c>0&&(s=1):t.scrollHeight-c>t.clientHeight&&(s=2)}if(o){var l=t.scrollLeft;1===o?l>0&&(a=1):t.scrollWidth-l>t.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),2),o=l[1],((n=l[0])||o)&&(r=a))})),!n&&!o){var s=this._viewportRuler.getViewportSize(),a=s.width,l=s.height,p={width:a,height:l,top:0,right:a,bottom:l,left:0};n=N(p,e),o=z(p,t),r=window}!r||n===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&r===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=r,(n||o)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}},t.prototype._stopScrolling=function(){this._stopScrollTimers.next()},t.prototype._cacheParentPositions=function(){var t=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(e){var i=A(e);e===t.element&&(t._clientRect=i),t._parentPositions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:i})}))},t.prototype._cacheItemPositions=function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:A(e)}})).sort((function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top}))},t.prototype._reset=function(){var t=this;this._isDragging=!1;var e=o.coerceElement(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){return t.getRootElement().style.transform=""})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()},t.prototype._getSiblingOffsetPx=function(t,e,i){var r="horizontal"===this._orientation,n=e[t].clientRect,o=e[t+-1*i],s=n[r?"width":"height"]*i;if(o){var a=r?"left":"top",c=r?"right":"bottom";-1===i?s-=o.clientRect[a]-n[c]:s+=n[a]-o.clientRect[c]}return s},t.prototype._getItemOffsetPx=function(t,e,i){var r="horizontal"===this._orientation,n=r?e.left-t.left:e.top-t.top;return-1===i&&(n+=r?e.width-t.width:e.height-t.height),n},t.prototype._getItemIndexFromPointerPosition=function(t,e,i,r){var n=this,o="horizontal"===this._orientation;return O(this._itemPositions,(function(s,a,c){var l=s.drag,p=s.clientRect;return l===t?c.length<2:(!r||l!==n._previousSwap.drag||(o?r.x:r.y)!==n._previousSwap.delta)&&(o?e>=Math.floor(p.left)&&e<=Math.floor(p.right):i>=Math.floor(p.top)&&i<=Math.floor(p.bottom))}))},t.prototype._cacheItems=function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()},t.prototype._updateAfterScroll=function(t,e,i){var r=this,n=this._parentPositions.get(t).scrollPosition,o=n.top-e,s=n.left-i;this._parentPositions.forEach((function(e,i){e.clientRect&&t!==i&&t.contains(i)&&k(e.clientRect,o,s)})),this._itemPositions.forEach((function(t){k(t.clientRect,o,s)})),this._itemPositions.forEach((function(t){var e=t.drag;r._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})),n.top=e,n.left=i},t.prototype._isOverContainer=function(t,e){return L(this._clientRect,t,e)},t.prototype._getSiblingContainerFromPosition=function(t,e,i){return this._siblings.find((function(r){return r._canReceive(t,e,i)}))},t.prototype._canReceive=function(t,e,i){if(!L(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;var r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;var n=o.coerceElement(this.element);return r===n||n.contains(r)},t.prototype._startReceiving=function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())},t.prototype._stopReceiving=function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()},t.prototype._listenToScrollEvents=function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){if(t.isDragging()){var i=e.target;if(t._parentPositions.get(i)){var r=void 0,n=void 0;if(i===t._document){var o=t._viewportRuler.getViewportScrollPosition();r=o.top,n=o.left}else r=i.scrollTop,n=i.scrollLeft;t._updateAfterScroll(i,r,n)}}else t.isReceiving()&&t._cacheParentPositions()}))},t.prototype._getShadowRoot=function(){return this._cachedShadowRoot||(this._cachedShadowRoot=function t(e){if(n._supportsShadowDom()){var i=e.getRootNode?e.getRootNode():null;if(i instanceof ShadowRoot)return i}return null}
51
+ */var x=.05,I=.05,C=2,k=function(){function t(t,e,i,r,n){var c=this;this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=n,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new s.Subject,this.entered=new s.Subject,this.exited=new s.Subject,this.dropped=new s.Subject,this.sorted=new s.Subject,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=s.Subscription.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new s.Subject,this._cachedShadowRoot=null,this._startScrollInterval=function(){c._stopScrolling(),s.interval(0,s.animationFrameScheduler).pipe(a.takeUntil(c._stopScrollTimers)).subscribe((function(){var t=c._scrollNode;1===c._verticalScrollDirection?M(t,-C):2===c._verticalScrollDirection&&M(t,C),1===c._horizontalScrollDirection?N(t,-C):2===c._horizontalScrollDirection&&N(t,C)}))},this.element=o.coerceElement(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this)}return t.prototype.dispose=function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)},t.prototype.isDragging=function(){return this._isDragging},t.prototype.start=function(){var t=this,e=o.coerceElement(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(e){return e._startReceiving(t)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()},t.prototype.enter=function(t,e,i,r){var n;this.start(),null==r?-1===(n=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(n=this._getItemIndexFromPointerPosition(t,e,i)):n=r;var s=this._activeDraggables,a=s.indexOf(t),c=t.getPlaceholderElement(),l=s[n];if(l===t&&(l=s[n+1]),a>-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){var p=l.getRootElement();p.parentElement.insertBefore(c,p),s.splice(n,0,t)}else o.coerceElement(this.element).appendChild(c),s.push(t);c.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})},t.prototype.exit=function(t){this._reset(),this.exited.next({item:t,container:this})},t.prototype.drop=function(t,e,i,r,n,o){this._reset(),null==o&&(o=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:o,container:this,previousContainer:i,isPointerOverContainer:r,distance:n})},t.prototype.withItems=function(t){var e=this;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&this._cacheItems(),this},t.prototype.withDirection=function(t){return this._direction=t,this},t.prototype.connectedTo=function(t){return this._siblings=t.slice(),this},t.prototype.withOrientation=function(t){return this._orientation=t,this},t.prototype.withScrollableParents=function(t){var e=o.coerceElement(this.element);return this._scrollableElements=-1===t.indexOf(e)?E([e],t):t.slice(),this},t.prototype.getItemIndex=function(t){return this._isDragging?L("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)},t.prototype.isReceiving=function(){return this._activeSiblings.size>0},t.prototype._sortItem=function(t,e,i,r){if(!this.sortingDisabled&&O(this._clientRect,e,i)){var n=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,r);if(!(-1===o&&n.length>0)){var s="horizontal"===this._orientation,a=L(n,(function(e){return e.drag===t})),c=n[o],l=n[a].clientRect,p=c.clientRect,h=a>o?1:-1;this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y;var d=this._getItemOffsetPx(l,p,h),u=this._getSiblingOffsetPx(a,n,h),g=n.slice();w(n,a,o),this.sorted.next({previousIndex:a,currentIndex:o,container:this,item:t}),n.forEach((function(e,i){if(g[i]!==e){var r=e.drag===t,n=r?d:u,o=r?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=n,s?(o.style.transform="translate3d("+Math.round(e.offset)+"px, 0, 0)",T(e.clientRect,0,n)):(o.style.transform="translate3d(0, "+Math.round(e.offset)+"px, 0)",T(e.clientRect,n,0))}}))}}},t.prototype._startScrollingIfNecessary=function(t,e){var i=this;if(!this.autoScrollDisabled){var r,n=0,o=0;if(this._parentPositions.forEach((function(s,a){var c;a!==i._document&&s.clientRect&&!r&&O(s.clientRect,t,e)&&(c=P(function l(t,e,i,r){var n=z(e,r),o=F(e,i),s=0,a=0;if(n){var c=t.scrollTop;1===n?c>0&&(s=1):t.scrollHeight-c>t.clientHeight&&(s=2)}if(o){var l=t.scrollLeft;1===o?l>0&&(a=1):t.scrollWidth-l>t.clientWidth&&(a=2)}return[s,a]}
37
52
  /**
38
53
  * @license
39
54
  * Copyright Google LLC All Rights Reserved.
40
55
  *
41
56
  * Use of this source code is governed by an MIT-style license that can be
42
57
  * found in the LICENSE file at https://angular.io/license
43
- */(o.coerceElement(this.element))||this._document),this._cachedShadowRoot},t}();function k(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function T(t,e,i){var r=t.width*R,n=t.height*R;return i>t.top-n&&i<t.bottom+n&&e>t.left-r&&e<t.right+r}function O(t,e){for(var i=0;i<t.length;i++)if(e(t[i],i,t))return i;return-1}function L(t,e,i){return i>=t.top&&i<=t.bottom&&e>=t.left&&e<=t.right}function A(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function j(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function M(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function N(t,e){var i=t.top,r=t.bottom,n=t.height*x;return e>=i-n&&e<=i+n?1:e>=r-n&&e<=r+n?2:0}function z(t,e){var i=t.left,r=t.right,n=t.width*x;return e>=i-n&&e<=i+n?1:e>=r-n&&e<=r+n?2:0}var F=n.normalizePassiveListenerOptions({passive:!1,capture:!0}),B=function(){function t(t,e){var i=this;this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new s.Subject,this.pointerUp=new s.Subject,this.scroll=new s.Subject,this._preventDefaultWhileDragging=function(t){i._activeDragInstances.size&&t.preventDefault()},this._document=e}return t.prototype.registerDropContainer=function(t){this._dropInstances.has(t)||this._dropInstances.add(t)},t.prototype.registerDragItem=function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,F)}))},t.prototype.removeDropContainer=function(t){this._dropInstances.delete(t)},t.prototype.removeDragItem=function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,F)},t.prototype.startDragging=function(t,e){var i=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var r=e.type.startsWith("touch"),n=r?"touchend":"mouseup";this._globalListeners.set(r?"touchmove":"mousemove",{handler:function(t){return i.pointerMove.next(t)},options:F}).set(n,{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:F}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(t,e){i._document.addEventListener(e,t.handler,t.options)}))}))}},t.prototype.stopDragging=function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()},t.prototype.isDragging=function(t){return this._activeDragInstances.has(t)},t.prototype.ngOnDestroy=function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()},t.prototype._clearGlobalListeners=function(){var t=this;this._globalListeners.forEach((function(e,i){t._document.removeEventListener(i,e.handler,e.options)})),this._globalListeners.clear()},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[i.DOCUMENT]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function r(){return new t(e.ɵɵinject(e.NgZone),e.ɵɵinject(i.DOCUMENT))},token:t,providedIn:"root"}),t}(),U={dragStartThreshold:5,pointerDirectionChangeThreshold:5},H=function(){function t(t,e,i,r){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=r}return t.prototype.createDrag=function(t,e){return void 0===e&&(e=U),new f(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)},t.prototype.createDropList=function(t){return new C(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[i.DOCUMENT]}]},{type:e.NgZone},{type:r.ViewportRuler},{type:B}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function n(){return new t(e.ɵɵinject(i.DOCUMENT),e.ɵɵinject(e.NgZone),e.ɵɵinject(r.ViewportRuler),e.ɵɵinject(B))},token:t,providedIn:"root"}),t}(),Z=new e.InjectionToken("CDK_DRAG_PARENT"),q=function(){function t(t,e){this.element=t,this._stateChanges=new s.Subject,this._disabled=!1,this._parentDrag=e,h(t.nativeElement,!1)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t),this._stateChanges.next(this)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkDragHandle]",host:{class:"cdk-drag-handle"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[Z]},{type:e.Optional}]}]},t.propDecorators={disabled:[{type:e.Input,args:["cdkDragHandleDisabled"]}]},t}(),V=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[cdkDragPlaceholder]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t.propDecorators={data:[{type:e.Input}]},t}(),G=function(){function t(t){this.templateRef=t,this._matchSize=!1}return Object.defineProperty(t.prototype,"matchSize",{get:function(){return this._matchSize},set:function(t){this._matchSize=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"ng-template[cdkDragPreview]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t.propDecorators={data:[{type:e.Input}],matchSize:[{type:e.Input}]},t}(),W=new e.InjectionToken("CDK_DRAG_CONFIG"),Y=new e.InjectionToken("CDK_DROP_LIST"),K=function(){function t(t,i,r,n,o,c,l,p,h){var d=this;this.element=t,this.dropContainer=i,this._document=r,this._ngZone=n,this._viewContainerRef=o,this._dir=l,this._changeDetectorRef=h,this._destroyed=new s.Subject,this.started=new e.EventEmitter,this.released=new e.EventEmitter,this.ended=new e.EventEmitter,this.entered=new e.EventEmitter,this.exited=new e.EventEmitter,this.dropped=new e.EventEmitter,this.moved=new s.Observable((function(t){var e=d._dragRef.moved.pipe(a.map((function(t){return{source:d,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=p.createDrag(t,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,c&&this._assignDefaults(c),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t),this._dragRef.disabled=this._disabled},enumerable:!0,configurable:!0}),t.prototype.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()},t.prototype.getRootElement=function(){return this._dragRef.getRootElement()},t.prototype.reset=function(){this._dragRef.reset()},t.prototype.getFreeDragPosition=function(){return this._dragRef.getFreeDragPosition()},t.prototype.ngAfterViewInit=function(){var t=this;this._ngZone.onStable.asObservable().pipe(a.take(1),a.takeUntil(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(a.startWith(t._handles),a.tap((function(e){var i=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(i)})),a.switchMap((function(t){return s.merge.apply(void 0,c.__spread(t.map((function(t){return t._stateChanges.pipe(a.startWith(t))}))))})),a.takeUntil(t._destroyed)).subscribe((function(e){var i=t._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))},t.prototype.ngOnChanges=function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},t.prototype.ngOnDestroy=function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()},t.prototype._updateRootElement=function(){var t=this.element.nativeElement,e=this.rootElementSelector?X(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error('cdkDrag must be attached to an element node. Currently attached to "'+e.nodeName+'".');this._dragRef.withRootElement(e||t)},t.prototype._getBoundaryElement=function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return X(this.element.nativeElement,t);var i=o.coerceElement(t);if(e.isDevMode()&&!i.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return i},t.prototype._syncInputs=function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var i=e._dir,r=e.dragStartDelay,n=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,s=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof r&&r?r:o.coerceNumberProperty(r),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),i&&t.withDirection(i.value)}}))},t.prototype._handleEvents=function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))},t.prototype._assignDefaults=function(t){var e=t.lockAxis,i=t.dragStartDelay,r=t.constrainPosition,n=t.previewClass,o=t.boundaryElement,s=t.draggingDisabled,a=t.rootElementSelector;this.disabled=null!=s&&s,this.dragStartDelay=i||0,e&&(this.lockAxis=e),r&&(this.constrainPosition=r),n&&(this.previewClass=n),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a)},t.decorators=[{type:e.Directive,args:[{selector:"[cdkDrag]",exportAs:"cdkDrag",host:{class:"cdk-drag","[class.cdk-drag-disabled]":"disabled","[class.cdk-drag-dragging]":"_dragRef.isDragging()"},providers:[{provide:Z,useExisting:t}]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[Y]},{type:e.Optional},{type:e.SkipSelf}]},{type:void 0,decorators:[{type:e.Inject,args:[i.DOCUMENT]}]},{type:e.NgZone},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[W]}]},{type:l.Directionality,decorators:[{type:e.Optional}]},{type:H},{type:e.ChangeDetectorRef}]},t.propDecorators={_handles:[{type:e.ContentChildren,args:[q,{descendants:!0}]}],_previewTemplate:[{type:e.ContentChild,args:[G]}],_placeholderTemplate:[{type:e.ContentChild,args:[V]}],data:[{type:e.Input,args:["cdkDragData"]}],lockAxis:[{type:e.Input,args:["cdkDragLockAxis"]}],rootElementSelector:[{type:e.Input,args:["cdkDragRootElement"]}],boundaryElement:[{type:e.Input,args:["cdkDragBoundary"]}],dragStartDelay:[{type:e.Input,args:["cdkDragStartDelay"]}],freeDragPosition:[{type:e.Input,args:["cdkDragFreeDragPosition"]}],disabled:[{type:e.Input,args:["cdkDragDisabled"]}],constrainPosition:[{type:e.Input,args:["cdkDragConstrainPosition"]}],previewClass:[{type:e.Input,args:["cdkDragPreviewClass"]}],started:[{type:e.Output,args:["cdkDragStarted"]}],released:[{type:e.Output,args:["cdkDragReleased"]}],ended:[{type:e.Output,args:["cdkDragEnded"]}],entered:[{type:e.Output,args:["cdkDragEntered"]}],exited:[{type:e.Output,args:["cdkDragExited"]}],dropped:[{type:e.Output,args:["cdkDragDropped"]}],moved:[{type:e.Output,args:["cdkDragMoved"]}]},t}();function X(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}
58
+ */(a,s.clientRect,t,e),2),o=c[1],((n=c[0])||o)&&(r=a))})),!n&&!o){var s=this._viewportRuler.getViewportSize(),a=s.width,c=s.height,l={width:a,height:c,top:0,right:a,bottom:c,left:0};n=z(l,e),o=F(l,t),r=window}!r||n===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&r===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=r,(n||o)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}},t.prototype._stopScrolling=function(){this._stopScrollTimers.next()},t.prototype._cacheParentPositions=function(){var t=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(e){var i=j(e);e===t.element&&(t._clientRect=i),t._parentPositions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:i})}))},t.prototype._cacheItemPositions=function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:j(e)}})).sort((function(e,i){return t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top}))},t.prototype._reset=function(){var t=this;this._isDragging=!1;var e=o.coerceElement(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){return t.getRootElement().style.transform=""})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()},t.prototype._getSiblingOffsetPx=function(t,e,i){var r="horizontal"===this._orientation,n=e[t].clientRect,o=e[t+-1*i],s=n[r?"width":"height"]*i;if(o){var a=r?"left":"top",c=r?"right":"bottom";-1===i?s-=o.clientRect[a]-n[c]:s+=n[a]-o.clientRect[c]}return s},t.prototype._getItemOffsetPx=function(t,e,i){var r="horizontal"===this._orientation,n=r?e.left-t.left:e.top-t.top;return-1===i&&(n+=r?e.width-t.width:e.height-t.height),n},t.prototype._getItemIndexFromPointerPosition=function(t,e,i,r){var n=this,o="horizontal"===this._orientation;return L(this._itemPositions,(function(s,a,c){var l=s.drag,p=s.clientRect;return l===t?c.length<2:(!r||l!==n._previousSwap.drag||(o?r.x:r.y)!==n._previousSwap.delta)&&(o?e>=Math.floor(p.left)&&e<=Math.floor(p.right):i>=Math.floor(p.top)&&i<=Math.floor(p.bottom))}))},t.prototype._cacheItems=function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()},t.prototype._updateAfterScroll=function(t,e,i){var r=this,n=t===this._document?t.documentElement:t,o=this._parentPositions.get(t).scrollPosition,s=o.top-e,a=o.left-i;this._parentPositions.forEach((function(e,i){e.clientRect&&t!==i&&n.contains(i)&&T(e.clientRect,s,a)})),this._itemPositions.forEach((function(t){T(t.clientRect,s,a)})),this._itemPositions.forEach((function(t){var e=t.drag;r._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})),o.top=e,o.left=i},t.prototype._isOverContainer=function(t,e){return A(this._clientRect,t,e)},t.prototype._getSiblingContainerFromPosition=function(t,e,i){return this._siblings.find((function(r){return r._canReceive(t,e,i)}))},t.prototype._canReceive=function(t,e,i){if(!A(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;var r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;var n=o.coerceElement(this.element);return r===n||n.contains(r)},t.prototype._startReceiving=function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())},t.prototype._stopReceiving=function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()},t.prototype._listenToScrollEvents=function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){if(t.isDragging()){var i=e.target;if(t._parentPositions.get(i)){var r=void 0,n=void 0;if(i===t._document){var o=t._viewportRuler.getViewportScrollPosition();r=o.top,n=o.left}else r=i.scrollTop,n=i.scrollLeft;t._updateAfterScroll(i,r,n)}}else t.isReceiving()&&t._cacheParentPositions()}))},t.prototype._getShadowRoot=function(){if(!this._cachedShadowRoot){var t=n._getShadowRoot(o.coerceElement(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot},t}();function T(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function O(t,e,i){var r=t.width*x,n=t.height*x;return i>t.top-n&&i<t.bottom+n&&e>t.left-r&&e<t.right+r}function L(t,e){for(var i=0;i<t.length;i++)if(e(t[i],i,t))return i;return-1}function A(t,e,i){return i>=t.top&&i<=t.bottom&&e>=t.left&&e<=t.right}function j(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function M(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function N(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function z(t,e){var i=t.top,r=t.bottom,n=t.height*I;return e>=i-n&&e<=i+n?1:e>=r-n&&e<=r+n?2:0}function F(t,e){var i=t.left,r=t.right,n=t.width*I;return e>=i-n&&e<=i+n?1:e>=r-n&&e<=r+n?2:0}var B=n.normalizePassiveListenerOptions({passive:!1,capture:!0}),U=function(){function t(t,e){var i=this;this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new s.Subject,this.pointerUp=new s.Subject,this.scroll=new s.Subject,this._preventDefaultWhileDragging=function(t){i._activeDragInstances.size&&t.preventDefault()},this._document=e}return t.prototype.registerDropContainer=function(t){this._dropInstances.has(t)||this._dropInstances.add(t)},t.prototype.registerDragItem=function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,B)}))},t.prototype.removeDropContainer=function(t){this._dropInstances.delete(t)},t.prototype.removeDragItem=function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,B)},t.prototype.startDragging=function(t,e){var i=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var r=e.type.startsWith("touch"),n=r?"touchend":"mouseup";this._globalListeners.set(r?"touchmove":"mousemove",{handler:function(t){return i.pointerMove.next(t)},options:B}).set(n,{handler:function(t){return i.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return i.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:B}),this._ngZone.runOutsideAngular((function(){i._globalListeners.forEach((function(t,e){i._document.addEventListener(e,t.handler,t.options)}))}))}},t.prototype.stopDragging=function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()},t.prototype.isDragging=function(t){return this._activeDragInstances.has(t)},t.prototype.ngOnDestroy=function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()},t.prototype._clearGlobalListeners=function(){var t=this;this._globalListeners.forEach((function(e,i){t._document.removeEventListener(i,e.handler,e.options)})),this._globalListeners.clear()},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:e.NgZone},{type:void 0,decorators:[{type:e.Inject,args:[i.DOCUMENT]}]}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function r(){return new t(e.ɵɵinject(e.NgZone),e.ɵɵinject(i.DOCUMENT))},token:t,providedIn:"root"}),t}(),H={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Z=function(){function t(t,e,i,r){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=r}return t.prototype.createDrag=function(t,e){return void 0===e&&(e=H),new _(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)},t.prototype.createDropList=function(t){return new k(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[i.DOCUMENT]}]},{type:e.NgZone},{type:r.ViewportRuler},{type:U}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function n(){return new t(e.ɵɵinject(i.DOCUMENT),e.ɵɵinject(e.NgZone),e.ɵɵinject(r.ViewportRuler),e.ɵɵinject(U))},token:t,providedIn:"root"}),t}(),q=new e.InjectionToken("CDK_DRAG_PARENT"),V=function(){function t(t,e){this.element=t,this._stateChanges=new s.Subject,this._disabled=!1,this._parentDrag=e,p(t.nativeElement,!1)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t),this._stateChanges.next(this)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkDragHandle]",host:{class:"cdk-drag-handle"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[q]},{type:e.Optional}]}]},t.propDecorators={disabled:[{type:e.Input,args:["cdkDragHandleDisabled"]}]},t}(),G=function(){function t(t){this.templateRef=t}return t.decorators=[{type:e.Directive,args:[{selector:"ng-template[cdkDragPlaceholder]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t.propDecorators={data:[{type:e.Input}]},t}(),W=function(){function t(t){this.templateRef=t,this._matchSize=!1}return Object.defineProperty(t.prototype,"matchSize",{get:function(){return this._matchSize},set:function(t){this._matchSize=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"ng-template[cdkDragPreview]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t.propDecorators={data:[{type:e.Input}],matchSize:[{type:e.Input}]},t}(),Y=new e.InjectionToken("CDK_DRAG_CONFIG"),K=new e.InjectionToken("CDK_DROP_LIST"),X=function(){function t(t,i,r,n,o,c,l,p,h){var d=this;this.element=t,this.dropContainer=i,this._document=r,this._ngZone=n,this._viewContainerRef=o,this._dir=l,this._changeDetectorRef=h,this._destroyed=new s.Subject,this.started=new e.EventEmitter,this.released=new e.EventEmitter,this.ended=new e.EventEmitter,this.entered=new e.EventEmitter,this.exited=new e.EventEmitter,this.dropped=new e.EventEmitter,this.moved=new s.Observable((function(t){var e=d._dragRef.moved.pipe(a.map((function(t){return{source:d,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=p.createDrag(t,{dragStartThreshold:c&&null!=c.dragStartThreshold?c.dragStartThreshold:5,pointerDirectionChangeThreshold:c&&null!=c.pointerDirectionChangeThreshold?c.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,c&&this._assignDefaults(c),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t),this._dragRef.disabled=this._disabled},enumerable:!0,configurable:!0}),t.prototype.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()},t.prototype.getRootElement=function(){return this._dragRef.getRootElement()},t.prototype.reset=function(){this._dragRef.reset()},t.prototype.getFreeDragPosition=function(){return this._dragRef.getFreeDragPosition()},t.prototype.ngAfterViewInit=function(){var t=this;this._ngZone.onStable.asObservable().pipe(a.take(1),a.takeUntil(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(a.startWith(t._handles),a.tap((function(e){var i=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(i)})),a.switchMap((function(t){return s.merge.apply(void 0,E(t.map((function(t){return t._stateChanges.pipe(a.startWith(t))}))))})),a.takeUntil(t._destroyed)).subscribe((function(e){var i=t._dragRef,r=e.element.nativeElement;e.disabled?i.disableHandle(r):i.enableHandle(r)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))},t.prototype.ngOnChanges=function(t){var e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},t.prototype.ngOnDestroy=function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()},t.prototype._updateRootElement=function(){var t=this.element.nativeElement,e=this.rootElementSelector?J(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error('cdkDrag must be attached to an element node. Currently attached to "'+e.nodeName+'".');this._dragRef.withRootElement(e||t)},t.prototype._getBoundaryElement=function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return J(this.element.nativeElement,t);var i=o.coerceElement(t);if(e.isDevMode()&&!i.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return i},t.prototype._syncInputs=function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var i=e._dir,r=e.dragStartDelay,n=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,s=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof r&&r?r:o.coerceNumberProperty(r),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),i&&t.withDirection(i.value)}}))},t.prototype._handleEvents=function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))},t.prototype._assignDefaults=function(t){var e=t.lockAxis,i=t.dragStartDelay,r=t.constrainPosition,n=t.previewClass,o=t.boundaryElement,s=t.draggingDisabled,a=t.rootElementSelector;this.disabled=null!=s&&s,this.dragStartDelay=i||0,e&&(this.lockAxis=e),r&&(this.constrainPosition=r),n&&(this.previewClass=n),o&&(this.boundaryElement=o),a&&(this.rootElementSelector=a)},t.decorators=[{type:e.Directive,args:[{selector:"[cdkDrag]",exportAs:"cdkDrag",host:{class:"cdk-drag","[class.cdk-drag-disabled]":"disabled","[class.cdk-drag-dragging]":"_dragRef.isDragging()"},providers:[{provide:q,useExisting:t}]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:void 0,decorators:[{type:e.Inject,args:[K]},{type:e.Optional},{type:e.SkipSelf}]},{type:void 0,decorators:[{type:e.Inject,args:[i.DOCUMENT]}]},{type:e.NgZone},{type:e.ViewContainerRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Y]}]},{type:c.Directionality,decorators:[{type:e.Optional}]},{type:Z},{type:e.ChangeDetectorRef}]},t.propDecorators={_handles:[{type:e.ContentChildren,args:[V,{descendants:!0}]}],_previewTemplate:[{type:e.ContentChild,args:[W]}],_placeholderTemplate:[{type:e.ContentChild,args:[G]}],data:[{type:e.Input,args:["cdkDragData"]}],lockAxis:[{type:e.Input,args:["cdkDragLockAxis"]}],rootElementSelector:[{type:e.Input,args:["cdkDragRootElement"]}],boundaryElement:[{type:e.Input,args:["cdkDragBoundary"]}],dragStartDelay:[{type:e.Input,args:["cdkDragStartDelay"]}],freeDragPosition:[{type:e.Input,args:["cdkDragFreeDragPosition"]}],disabled:[{type:e.Input,args:["cdkDragDisabled"]}],constrainPosition:[{type:e.Input,args:["cdkDragConstrainPosition"]}],previewClass:[{type:e.Input,args:["cdkDragPreviewClass"]}],started:[{type:e.Output,args:["cdkDragStarted"]}],released:[{type:e.Output,args:["cdkDragReleased"]}],ended:[{type:e.Output,args:["cdkDragEnded"]}],entered:[{type:e.Output,args:["cdkDragEntered"]}],exited:[{type:e.Output,args:["cdkDragExited"]}],dropped:[{type:e.Output,args:["cdkDragDropped"]}],moved:[{type:e.Output,args:["cdkDragMoved"]}]},t}();function J(t,e){for(var i=t.parentElement;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}
44
59
  /**
45
60
  * @license
46
61
  * Copyright Google LLC All Rights Reserved.
47
62
  *
48
63
  * Use of this source code is governed by an MIT-style license that can be
49
64
  * found in the LICENSE file at https://angular.io/license
50
- */var J=function(){function t(){this._items=new Set,this._disabled=!1}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._items.clear()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkDropListGroup]",exportAs:"cdkDropListGroup"}]}],t.propDecorators={disabled:[{type:e.Input,args:["cdkDropListGroupDisabled"]}]},t}(),Q=0,$=function(){function t(i,r,n,o,a,c,l){var p=this;this.element=i,this._changeDetectorRef=n,this._dir=o,this._group=a,this._scrollDispatcher=c,this._destroyed=new s.Subject,this.connectedTo=[],this.id="cdk-drop-list-"+Q++,this.enterPredicate=function(){return!0},this.dropped=new e.EventEmitter,this.entered=new e.EventEmitter,this.exited=new e.EventEmitter,this.sorted=new e.EventEmitter,this._unsortedItems=new Set,this._dropListRef=r.createDropList(i),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(t,e){return p.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){if(this._scrollDispatcher){var t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map((function(t){return t.getElementRef().nativeElement}));this._dropListRef.withScrollableParents(t)}},t.prototype.addItem=function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()},t.prototype.removeItem=function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()},t.prototype.getSortedItems=function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))},t.prototype.ngOnDestroy=function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()},t.prototype.start=function(){this._dropListRef.start()},t.prototype.drop=function(t,e,i,r){this._dropListRef.drop(t._dragRef,e,i._dropListRef,r,{x:0,y:0})},t.prototype.enter=function(t,e,i){this._dropListRef.enter(t._dragRef,e,i)},t.prototype.exit=function(t){this._dropListRef.exit(t._dragRef)},t.prototype.getItemIndex=function(t){return this._dropListRef.getItemIndex(t._dragRef)},t.prototype._setupInputSyncSubscription=function(e){var i=this;this._dir&&this._dir.change.pipe(a.startWith(this._dir.value),a.takeUntil(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var r=o.coerceArray(i.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));i._group&&i._group._items.forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=o.coerceBooleanProperty(i.sortingDisabled),e.autoScrollDisabled=o.coerceBooleanProperty(i.autoScrollDisabled),e.connectedTo(r.filter((function(t){return t&&t!==i})).map((function(t){return t._dropListRef}))).withOrientation(i.orientation)}))},t.prototype._handleEvents=function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()}))},t.prototype._assignDefaults=function(t){var e=t.lockAxis,i=t.draggingDisabled,r=t.sortingDisabled,n=t.listAutoScrollDisabled,o=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=r&&r,this.autoScrollDisabled=null!=n&&n,this.orientation=o||"vertical",e&&(this.lockAxis=e)},t.prototype._syncItemsWithRef=function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))},t._dropLists=[],t.decorators=[{type:e.Directive,args:[{selector:"[cdkDropList], cdk-drop-list",exportAs:"cdkDropList",providers:[{provide:J,useValue:void 0},{provide:Y,useExisting:t}],host:{class:"cdk-drop-list","[id]":"id","[class.cdk-drop-list-disabled]":"disabled","[class.cdk-drop-list-dragging]":"_dropListRef.isDragging()","[class.cdk-drop-list-receiving]":"_dropListRef.isReceiving()"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:H},{type:e.ChangeDetectorRef},{type:l.Directionality,decorators:[{type:e.Optional}]},{type:J,decorators:[{type:e.Optional},{type:e.SkipSelf}]},{type:r.ScrollDispatcher},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[W]}]}]},t.propDecorators={connectedTo:[{type:e.Input,args:["cdkDropListConnectedTo"]}],data:[{type:e.Input,args:["cdkDropListData"]}],orientation:[{type:e.Input,args:["cdkDropListOrientation"]}],id:[{type:e.Input}],lockAxis:[{type:e.Input,args:["cdkDropListLockAxis"]}],disabled:[{type:e.Input,args:["cdkDropListDisabled"]}],sortingDisabled:[{type:e.Input,args:["cdkDropListSortingDisabled"]}],enterPredicate:[{type:e.Input,args:["cdkDropListEnterPredicate"]}],autoScrollDisabled:[{type:e.Input,args:["cdkDropListAutoScrollDisabled"]}],dropped:[{type:e.Output,args:["cdkDropListDropped"]}],entered:[{type:e.Output,args:["cdkDropListEntered"]}],exited:[{type:e.Output,args:["cdkDropListExited"]}],sorted:[{type:e.Output,args:["cdkDropListSorted"]}]},t}(),tt=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[$,J,K,q,G,V],exports:[$,J,K,q,G,V],providers:[H]}]}],t}();
65
+ */var Q=function(){function t(){this._items=new Set,this._disabled=!1}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._items.clear()},t.decorators=[{type:e.Directive,args:[{selector:"[cdkDropListGroup]",exportAs:"cdkDropListGroup"}]}],t.propDecorators={disabled:[{type:e.Input,args:["cdkDropListGroupDisabled"]}]},t}(),$=0,tt=function(){function t(i,r,n,o,a,c,l){var p=this;this.element=i,this._changeDetectorRef=n,this._dir=o,this._group=a,this._scrollDispatcher=c,this._destroyed=new s.Subject,this.connectedTo=[],this.id="cdk-drop-list-"+$++,this.enterPredicate=function(){return!0},this.dropped=new e.EventEmitter,this.entered=new e.EventEmitter,this.exited=new e.EventEmitter,this.sorted=new e.EventEmitter,this._unsortedItems=new Set,this._dropListRef=r.createDropList(i),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(t,e){return p.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),a&&a._items.add(this)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){if(this._scrollDispatcher){var t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map((function(t){return t.getElementRef().nativeElement}));this._dropListRef.withScrollableParents(t)}},t.prototype.addItem=function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()},t.prototype.removeItem=function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()},t.prototype.getSortedItems=function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))},t.prototype.ngOnDestroy=function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()},t.prototype.start=function(){this._dropListRef.start()},t.prototype.drop=function(t,e,i,r){this._dropListRef.drop(t._dragRef,e,i._dropListRef,r,{x:0,y:0})},t.prototype.enter=function(t,e,i){this._dropListRef.enter(t._dragRef,e,i)},t.prototype.exit=function(t){this._dropListRef.exit(t._dragRef)},t.prototype.getItemIndex=function(t){return this._dropListRef.getItemIndex(t._dragRef)},t.prototype._setupInputSyncSubscription=function(e){var i=this;this._dir&&this._dir.change.pipe(a.startWith(this._dir.value),a.takeUntil(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var r=o.coerceArray(i.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));i._group&&i._group._items.forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),e.disabled=i.disabled,e.lockAxis=i.lockAxis,e.sortingDisabled=o.coerceBooleanProperty(i.sortingDisabled),e.autoScrollDisabled=o.coerceBooleanProperty(i.autoScrollDisabled),e.connectedTo(r.filter((function(t){return t&&t!==i})).map((function(t){return t._dropListRef}))).withOrientation(i.orientation)}))},t.prototype._handleEvents=function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()}))},t.prototype._assignDefaults=function(t){var e=t.lockAxis,i=t.draggingDisabled,r=t.sortingDisabled,n=t.listAutoScrollDisabled,o=t.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=r&&r,this.autoScrollDisabled=null!=n&&n,this.orientation=o||"vertical",e&&(this.lockAxis=e)},t.prototype._syncItemsWithRef=function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))},t._dropLists=[],t.decorators=[{type:e.Directive,args:[{selector:"[cdkDropList], cdk-drop-list",exportAs:"cdkDropList",providers:[{provide:Q,useValue:void 0},{provide:K,useExisting:t}],host:{class:"cdk-drop-list","[id]":"id","[class.cdk-drop-list-disabled]":"disabled","[class.cdk-drop-list-dragging]":"_dropListRef.isDragging()","[class.cdk-drop-list-receiving]":"_dropListRef.isReceiving()"}}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:Z},{type:e.ChangeDetectorRef},{type:c.Directionality,decorators:[{type:e.Optional}]},{type:Q,decorators:[{type:e.Optional},{type:e.SkipSelf}]},{type:r.ScrollDispatcher},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Y]}]}]},t.propDecorators={connectedTo:[{type:e.Input,args:["cdkDropListConnectedTo"]}],data:[{type:e.Input,args:["cdkDropListData"]}],orientation:[{type:e.Input,args:["cdkDropListOrientation"]}],id:[{type:e.Input}],lockAxis:[{type:e.Input,args:["cdkDropListLockAxis"]}],disabled:[{type:e.Input,args:["cdkDropListDisabled"]}],sortingDisabled:[{type:e.Input,args:["cdkDropListSortingDisabled"]}],enterPredicate:[{type:e.Input,args:["cdkDropListEnterPredicate"]}],autoScrollDisabled:[{type:e.Input,args:["cdkDropListAutoScrollDisabled"]}],dropped:[{type:e.Output,args:["cdkDropListDropped"]}],entered:[{type:e.Output,args:["cdkDropListEntered"]}],exited:[{type:e.Output,args:["cdkDropListExited"]}],sorted:[{type:e.Output,args:["cdkDropListSorted"]}]},t}(),et=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[tt,Q,X,V,W,G],exports:[tt,Q,X,V,W,G],providers:[Z]}]}],t}();
51
66
  /**
52
67
  * @license
53
68
  * Copyright Google LLC All Rights Reserved.
@@ -62,11 +77,11 @@
62
77
  * Use of this source code is governed by an MIT-style license that can be
63
78
  * found in the LICENSE file at https://angular.io/license
64
79
  */
65
- t.CDK_DRAG_CONFIG=W,t.CDK_DRAG_CONFIG_FACTORY=function et(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}
80
+ t.CDK_DRAG_CONFIG=Y,t.CDK_DRAG_CONFIG_FACTORY=function it(){return{dragStartThreshold:5,pointerDirectionChangeThreshold:5}}
66
81
  /**
67
82
  * @license
68
83
  * Copyright Google LLC All Rights Reserved.
69
84
  *
70
85
  * Use of this source code is governed by an MIT-style license that can be
71
86
  * found in the LICENSE file at https://angular.io/license
72
- */,t.CDK_DROP_LIST=Y,t.CdkDrag=K,t.CdkDragHandle=q,t.CdkDragPlaceholder=V,t.CdkDragPreview=G,t.CdkDropList=$,t.CdkDropListGroup=J,t.DragDrop=H,t.DragDropModule=tt,t.DragDropRegistry=B,t.DragRef=f,t.DropListRef=C,t.copyArrayItem=function it(t,e,i,r){var n=w(r,e.length);t.length&&e.splice(n,0,t[i])},t.moveItemInArray=E,t.transferArrayItem=function rt(t,e,i,r){var n=w(i,t.length-1),o=w(r,e.length);t.length&&e.splice(o,0,t.splice(n,1)[0])},t.ɵangular_material_src_cdk_drag_drop_drag_drop_b=Z,Object.defineProperty(t,"__esModule",{value:!0})}));
87
+ */,t.CDK_DROP_LIST=K,t.CdkDrag=X,t.CdkDragHandle=V,t.CdkDragPlaceholder=G,t.CdkDragPreview=W,t.CdkDropList=tt,t.CdkDropListGroup=Q,t.DragDrop=Z,t.DragDropModule=et,t.DragDropRegistry=U,t.DragRef=_,t.DropListRef=k,t.copyArrayItem=function rt(t,e,i,r){var n=R(r,e.length);t.length&&e.splice(n,0,t[i])},t.moveItemInArray=w,t.transferArrayItem=function nt(t,e,i,r){var n=R(i,t.length-1),o=R(r,e.length);t.length&&e.splice(o,0,t.splice(n,1)[0])},t.ɵangular_material_src_cdk_drag_drop_drag_drop_b=q,Object.defineProperty(t,"__esModule",{value:!0})}));