ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
25 lines • 46.6 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/animations"),require("@angular/cdk/coercion"),require("@angular/cdk/overlay"),require("@angular/common"),require("@angular/platform-browser/animations"),require("@angular/cdk/platform"),require("rxjs"),require("@angular/core")):"function"==typeof define&&define.amd?define("ng-zorro-antd/core",["exports","@angular/animations","@angular/cdk/coercion","@angular/cdk/overlay","@angular/common","@angular/platform-browser/animations","@angular/cdk/platform","rxjs","@angular/core"],t):t((e["ng-zorro-antd"]=e["ng-zorro-antd"]||{},e["ng-zorro-antd"].core={}),e.ng.animations,e.ng.cdk.coercion,e.ng.cdk.overlay,e.ng.common,e.ng.platformBrowser.animations,e.ng.cdk.platform,e.rxjs,e.ng.core)}(this,function(e,t,i,n,o,r,a,s,l){"use strict";var c=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.classList=[]}return Object.defineProperty(e.prototype,"nzClassListAdd",{set:function(e){var t=this;this.classList.forEach(function(e){t.renderer.removeClass(t.elementRef.nativeElement,e)}),e.forEach(function(e){t.renderer.addClass(t.elementRef.nativeElement,e)}),this.classList=e},enumerable:!0,configurable:!0}),e.decorators=[{type:l.Directive,args:[{selector:"[nzClassListAdd]",exportAs:"nzClassListAdd"}]}],e.ctorParameters=function(){return[{type:l.ElementRef},{type:l.Renderer2}]},e.propDecorators={nzClassListAdd:[{type:l.Input}]},e}(),d=function(){function e(e,t){this.viewContainer=e,this.defaultTemplate=t,this.inputTemplate=null,this.inputViewRef=null,this.defaultViewRef=null}return Object.defineProperty(e.prototype,"nzStringTemplateOutlet",{set:function(e){e instanceof l.TemplateRef?(this.isTemplate=!0,this.inputTemplate=e):this.isTemplate=!1,this.updateView()},enumerable:!0,configurable:!0}),e.prototype.updateView=function(){this.isTemplate?this.inputViewRef||(this.viewContainer.clear(),this.defaultViewRef=null,this.inputTemplate&&(this.inputViewRef=this.viewContainer.createEmbeddedView(this.inputTemplate))):this.defaultViewRef||(this.viewContainer.clear(),this.inputViewRef=null,this.defaultTemplate&&(this.defaultViewRef=this.viewContainer.createEmbeddedView(this.defaultTemplate)))},e.decorators=[{type:l.Directive,args:[{selector:"[nzStringTemplateOutlet]",exportAs:"nzStringTemplateOutlet"}]}],e.ctorParameters=function(){return[{type:l.ViewContainerRef},{type:l.TemplateRef}]},e.propDecorators={nzStringTemplateOutlet:[{type:l.Input}]},e}(),u=function(){function e(){}return e.decorators=[{type:l.NgModule,args:[{imports:[o.CommonModule],exports:[d,c],declarations:[d,c]}]}],e}(),h=function(){function e(){}return e.SLOW="0.3s",e.BASE="0.2s",e.FAST="0.1s",e}(),f=function(){function e(){}return e.EASE_BASE_OUT="cubic-bezier(0.7, 0.3, 0.1, 1)",e.EASE_BASE_IN="cubic-bezier(0.9, 0, 0.3, 0.7)",e.EASE_OUT="cubic-bezier(0.215, 0.61, 0.355, 1)",e.EASE_IN="cubic-bezier(0.55, 0.055, 0.675, 0.19)",e.EASE_IN_OUT="cubic-bezier(0.645, 0.045, 0.355, 1)",e.EASE_OUT_BACK="cubic-bezier(0.12, 0.4, 0.29, 1.46)",e.EASE_IN_BACK="cubic-bezier(0.71, -0.46, 0.88, 0.6)",e.EASE_IN_OUT_BACK="cubic-bezier(0.71, -0.46, 0.29, 1.46)",e.EASE_OUT_CIRC="cubic-bezier(0.08, 0.82, 0.17, 1)",e.EASE_IN_CIRC="cubic-bezier(0.6, 0.04, 0.98, 0.34)",e.EASE_IN_OUT_CIRC="cubic-bezier(0.78, 0.14, 0.15, 0.86)",e.EASE_OUT_QUINT="cubic-bezier(0.23, 1, 0.32, 1)",e.EASE_IN_QUINT="cubic-bezier(0.755, 0.05, 0.855, 0.06)",e.EASE_IN_OUT_QUINT="cubic-bezier(0.86, 0, 0.07, 1)",e}(),p=t.trigger("collapseMotion",[t.state("expanded",t.style({height:"*"})),t.state("collapsed",t.style({height:0,overflow:"hidden"})),t.state("hidden",t.style({height:0,display:"none"})),t.transition("expanded => collapsed",t.animate("150ms "+f.EASE_IN_OUT)),t.transition("expanded => hidden",t.animate("150ms "+f.EASE_IN_OUT)),t.transition("collapsed => expanded",t.animate("150ms "+f.EASE_IN_OUT)),t.transition("hidden => expanded",t.animate("150ms "+f.EASE_IN_OUT))]),y=t.trigger("fadeMotion",[t.transition(":enter",[t.style({opacity:0}),t.animate(""+h.BASE,t.style({opacity:1}))]),t.transition(":leave",[t.style({opacity:1}),t.animate(""+h.BASE,t.style({opacity:0}))])]),g=t.trigger("helpMotion",[t.transition(":enter",[t.style({opacity:0,transform:"translateY(-5px)"}),t.animate(h.SLOW+" "+f.EASE_IN_OUT,t.style({opacity:1,transform:"translateY(0)"}))]),t.transition(":leave",[t.style({opacity:1,transform:"translateY(0)"}),t.animate(h.SLOW+" "+f.EASE_IN_OUT,t.style({opacity:0,transform:"translateY(-5px)"}))])]),m=t.trigger("moveUpMotion",[t.transition("* => enter",[t.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),t.animate(""+h.BASE,t.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),t.transition("* => leave",[t.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),t.animate(""+h.BASE,t.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),v=t.trigger("notificationMotion",[t.state("enterRight",t.style({opacity:1,transform:"translateX(0)"})),t.transition("* => enterRight",[t.style({opacity:0,transform:"translateX(5%)"}),t.animate("100ms linear")]),t.state("enterLeft",t.style({opacity:1,transform:"translateX(0)"})),t.transition("* => enterLeft",[t.style({opacity:0,transform:"translateX(-5%)"}),t.animate("100ms linear")]),t.state("leave",t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),t.transition("* => leave",[t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),t.animate("100ms linear")])]),b=h.BASE+" "+f.EASE_OUT_QUINT,N=h.BASE+" "+f.EASE_IN_QUINT,C=t.trigger("slideMotion",[t.state("bottom",t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"})),t.state("top",t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 100%"})),t.transition("void => bottom",[t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}),t.animate(b)]),t.transition("bottom => void",[t.animate(N,t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}))]),t.transition("void => top",[t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}),t.animate(b)]),t.transition("top => void",[t.animate(N,t.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}))])]),E=t.trigger("slideAlertMotion",[t.transition(":leave",[t.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),t.animate(h.SLOW+" "+f.EASE_IN_OUT_CIRC,t.style({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),k=t.trigger("zoomMotion",[t.transition(":enter",[t.style({opacity:0,transform:"scale(0.2)"}),t.animate(h.BASE+" "+f.EASE_OUT_CIRC,t.style({opacity:1,transform:"scale(1)"}))]),t.transition(":leave",[t.style({opacity:1,transform:"scale(1)"}),t.animate(h.BASE+" "+f.EASE_IN_OUT_CIRC,t.style({opacity:0,transform:"scale(0.2)"}))])]),S=t.trigger("zoomBigMotion",[t.transition("void => active",[t.style({opacity:0,transform:"scale(0.8)"}),t.animate(h.BASE+" "+f.EASE_OUT_CIRC,t.style({opacity:1,transform:"scale(1)"}))]),t.transition("active => void",[t.style({opacity:1,transform:"scale(1)"}),t.animate(h.BASE+" "+f.EASE_IN_OUT_CIRC,t.style({opacity:0,transform:"scale(0.8)"}))])]),w=t.trigger("zoomBadgeMotion",[t.transition(":enter",[t.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}),t.animate(h.SLOW+" "+f.EASE_OUT_BACK,t.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),t.transition(":leave",[t.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}),t.animate(h.SLOW+" "+f.EASE_IN_BACK,t.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]),O=function(e,t){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var _=function(){return(_=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(o)throw o.error}}return a}function L(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}function T(e){return i.coerceBooleanProperty(e)}function I(e,t){return void 0===t&&(t=0),i._isNumberValue(e)?Number(e):t}function P(e){return i.coerceCssPixelValue(e)}function x(i,o){return function r(e,t){var n="$$__"+t;Object.prototype.hasOwnProperty.call(e,n)&&console.warn('The prop "'+n+'" is already exist, it will be overrided by '+i+" decorator."),Object.defineProperty(e,n,{configurable:!0,writable:!0}),Object.defineProperty(e,t,{get:function(){return this[n]},set:function(e){this[n]=o(e)}})}}function R(){return x("InputBoolean",T)}var D="nz-animate-disabled",j=function(){function e(e,t,n){this.element=e,this.renderer=t,this.animationType=n,this.nzNoAnimation=!1}return e.prototype.ngOnChanges=function(){this.updateClass()},e.prototype.ngAfterViewInit=function(){this.updateClass()},e.prototype.updateClass=function(){var e=i.coerceElement(this.element);e&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(e,D):this.renderer.removeClass(e,D))},e.decorators=[{type:l.Directive,args:[{selector:"[nzNoAnimation]",exportAs:"nzNoAnimation",host:{"[@.disabled]":"nzNoAnimation"}}]}],e.ctorParameters=function(){return[{type:l.ElementRef},{type:l.Renderer2},{type:String,decorators:[{type:l.Optional},{type:l.Inject,args:[r.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={nzNoAnimation:[{type:l.Input}]},function c(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;0<=s;s--)(o=e[s])&&(a=(r<3?o(a):3<r?o(t,n,a):o(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}([R(),function n(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Boolean)],e.prototype,"nzNoAnimation",void 0),e}(),M=function(){function e(){}return e.decorators=[{type:l.NgModule,args:[{declarations:[j],exports:[j],imports:[o.CommonModule]}]}],e}(),z=function(){function e(e){this.cdkConnectedOverlay=e,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop"}return e.decorators=[{type:l.Directive,args:[{selector:"[cdkConnectedOverlay][nzConnectedOverlay]",exportAs:"nzConnectedOverlay"}]}],e.ctorParameters=function(){return[{type:n.CdkConnectedOverlay}]},e}(),Y=function(){function e(){}return e.decorators=[{type:l.NgModule,args:[{declarations:[z],exports:[z]}]}],e}(),B={top:new n.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new n.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new n.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new n.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new n.ConnectionPositionPair({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new n.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new n.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new n.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new n.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new n.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new n.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new n.ConnectionPositionPair({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new n.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new n.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},U=[B.top,B.right,B.bottom,B.left],V=[B.bottomLeft,B.bottomRight,B.topLeft,B.topRight],F=[B.rightTop,B.leftTop],X=[B.bottomLeft,B.bottomRight,B.topLeft,B.topRight],W=[B.bottomLeft,new n.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"})];var H=["moz","ms","webkit"];function G(e){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(e);var t=H.filter(function(e){return e+"CancelAnimationFrame"in window||e+"CancelRequestAnimationFrame"in window})[0];return t?(window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]).call(this,e):clearTimeout(e)}var $=function je(){if("undefined"==typeof window)return function(){return 0};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var e=H.filter(function(e){return e+"RequestAnimationFrame"in window})[0];return e?window[e+"RequestAnimationFrame"]:function t(){var o=0;return function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-o)),i=setTimeout(function(){e(t+n)},n);return o=t+n,i}}()}();var q=function(){function e(e){this.doc=e}return e.prototype.setScrollTop=function(e,t){void 0===t&&(t=0),e===window?(this.doc.body.scrollTop=t,this.doc.documentElement.scrollTop=t):e.scrollTop=t},e.prototype.getOffset=function(e){var t={top:0,left:0};if(!e||!e.getClientRects().length)return t;var n=e.getBoundingClientRect();if(n.width||n.height){var i=e.ownerDocument.documentElement;t.top=n.top-i.clientTop,t.left=n.left-i.clientLeft}else t.top=n.top,t.left=n.left;return t},e.prototype.getScroll=function(e,t){void 0===t&&(t=!0);var n=e||window,i=t?"scrollTop":"scrollLeft",o=n===window,r=o?n[t?"pageYOffset":"pageXOffset"]:n[i];return o&&"number"!=typeof r&&(r=this.doc.documentElement[i]),r},e.prototype.scrollTo=function(e,t,n,i){var o=this;void 0===t&&(t=0);var r=e||window,s=this.getScroll(r),c=Date.now(),l=function(){var e=Date.now()-c;o.setScrollTop(r,(n||function a(e,t,n,i){var o=n-t,r=e/(i/2);return r<1?o/2*r*r*r+t:o/2*((r-=2)*r*r+2)+t})(e,s,t,450)),e<450?$(l):i&&i()};$(l)},e.decorators=[{type:l.Injectable}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:l.Inject,args:[o.DOCUMENT]}]}]},e}();function K(e,t){return t||new q(e)}var Z={provide:q,useFactory:K,deps:[o.DOCUMENT,[new l.Optional,new l.SkipSelf,q]]};function Q(e){return null!=e}function J(e){return e?1===e.nodeType&&0!==e.outerHTML.toString().trim().length?e:3===e.nodeType&&0!==e.textContent.toString().trim().length?e:null:null}var ee=function(){function e(e){this.document=e,this.scrollbarMeasure={position:"absolute",top:"-9999px",width:"50px",height:"50px",overflow:"scroll"},this.initScrollBarWidth()}return Object.defineProperty(e.prototype,"scrollBarWidth",{get:function(){return Q(this._scrollbarWidth)||this.initScrollBarWidth(),this._scrollbarWidth},enumerable:!0,configurable:!0}),e.prototype.initScrollBarWidth=function(){var e=this.document.createElement("div");for(var t in this.scrollbarMeasure)this.scrollbarMeasure.hasOwnProperty(t)&&(e.style[t]=this.scrollbarMeasure[t]);this.document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;this.document.body.removeChild(e),this._scrollbarWidth=n},e.decorators=[{type:l.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:l.Inject,args:[o.DOCUMENT]}]}]},e.ngInjectableDef=l.defineInjectable({factory:function(){return new e(l.inject(o.DOCUMENT))},token:e,providedIn:"root"}),e}(),te=function(){function e(e){this.classMap={},this.renderer=e.createRenderer(null,null)}return e.prototype.updateHostClass=function(e,t){this.removeClass(e,this.classMap,this.renderer),this.classMap=_({},t),this.addClass(e,this.classMap,this.renderer)},e.prototype.removeClass=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&n.removeClass(e,i)},e.prototype.addClass=function(e,t,n){for(var i in t)t.hasOwnProperty(i)&&t[i]&&n.addClass(e,i)},e.decorators=[{type:l.Injectable}],e.ctorParameters=function(){return[{type:l.RendererFactory2}]},e}();
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function ne(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i=document.createEvent("MouseEvent");return i.initMouseEvent(e,!1,!1,window,0,t,n,t,n,!1,!1,!1,!1,0,null),i}function ie(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i=document.createEvent("UIEvent"),o={pageX:t,pageY:n};return i.initUIEvent(e,!0,!0,window,0),Object.defineProperties(i,{touches:{value:[o]}}),i}function oe(e,t,n,i){var o=document.createEvent("KeyboardEvent"),r=(o.initKeyEvent||o.initKeyboardEvent).bind(o),a=o.preventDefault;return r(e,!0,!0,window,0,0,0,0,0,t),Object.defineProperties(o,{keyCode:{get:function(){return t}},key:{get:function(){return i}},target:{get:function(){return n}}}),o.preventDefault=function(){return Object.defineProperty(o,"defaultPrevented",{get:function(){return!0}}),a.apply(this,arguments)},o}function re(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!0);var i=document.createEvent("Event");return i.initEvent(e,t,n),i}function ae(e,t){return e.dispatchEvent(t),t}function se(e,t,n){return ae(e,re(t,n))}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ce=function(){function e(){}return e.prototype.getViewportRect=function(){return{left:0,top:0,width:1014,height:686,bottom:686,right:1014}},e.prototype.getViewportSize=function(){return{width:1014,height:686}},e.prototype.getViewportScrollPosition=function(){return{top:0,left:0}},e}(),le=function(t){function e(){var e=t.call(this,{enableLongStackTrace:!1})||this;return e.onStable=new l.EventEmitter(!1),e}return function i(e,t){function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(e,t),e.prototype.run=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.simulateZoneExit=function(){this.onStable.emit(null)},e.decorators=[{type:l.Injectable}],e.ctorParameters=function(){return[]},e}(l.NgZone),de=function(){function a(n,e,t){void 0===e&&(e=null),void 0===t&&(t=null);var i=this;if(this.level=0,n instanceof a)return n;this.service=t||null,this.origin=n,this.key=n.key,this.parentNode=e,this._title=n.title||"---",this._icon=n.icon||"",this._isLeaf=n.isLeaf||!1,this._children=[],this._isChecked=n.checked||!1,this._isSelectable=n.disabled||!1!==n.selectable,this._isDisabled=n.disabled||!1,this._isDisableCheckbox=n.disableCheckbox||!1,this._isExpanded=!n.isLeaf&&(n.expanded||!1),this._isHalfChecked=!1,this._isSelected=!n.disabled&&n.selected||!1,this._isLoading=!1,this.isMatched=!1,this.level=e?e.level+1:0,"undefined"!=typeof n.children&&null!==n.children&&n.children.forEach(function(e){var t=i.treeService;!t||t.isCheckStrictly||!n.checked||n.disabled||e.disabled||e.disableCheckbox||(e.checked=n.checked),i._children.push(new a(e,i))})}return Object.defineProperty(a.prototype,"treeService",{get:function(){return this.service||this.parentNode&&this.parentNode.treeService},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"children",{get:function(){return this._children},set:function(e){this._children=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isLeaf",{get:function(){return this._isLeaf},set:function(e){this._isLeaf=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isChecked",{get:function(){return this._isChecked},set:function(e){this._isChecked=e,this._isAllChecked=e,this.origin.checked=e,this.afterValueChange("isChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isAllChecked",{get:function(){return this._isAllChecked},set:function(e){this._isAllChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isHalfChecked",{get:function(){return this._isHalfChecked},set:function(e){this._isHalfChecked=e,this.afterValueChange("isHalfChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isSelectable",{get:function(){return this._isSelectable},set:function(e){this._isSelectable=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(e){this._isDisabled=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isDisableCheckbox",{get:function(){return this._isDisableCheckbox},set:function(e){this._isDisableCheckbox=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isExpanded",{get:function(){return this._isExpanded},set:function(e){this._isExpanded=e,this.origin.expanded=e,this.afterValueChange("isExpanded")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.origin.selected=e,this.afterValueChange("isSelected")},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isLoading",{get:function(){return this._isLoading},set:function(e){this._isLoading=e,this.update()},enumerable:!0,configurable:!0}),a.prototype.setSyncChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.setChecked(e,t),this.treeService&&!this.treeService.isCheckStrictly&&this.treeService.conduct(this)},a.prototype.setChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.origin.checked=e,this.isChecked=e,this.isAllChecked=e,this.isHalfChecked=t},a.prototype.setExpanded=function(e){this.isExpanded=e},a.prototype.setSelected=function(e){this.isDisabled||(this.isSelected=e)},a.prototype.getParentNode=function(){return this.parentNode},a.prototype.getChildren=function(){return this.children},a.prototype.addChildren=function(e,o){var r=this;void 0===o&&(o=-1),this.isLeaf||(e.forEach(function(e){var t=function(e){e.getChildren().forEach(function(e){e.level=e.getParentNode().level+1,e.origin.level=e.level,t(e)})},n=e;n instanceof a?n.parentNode=r:n=new a(e,r),n.level=r.level+1,n.origin.level=n.level,t(n);try{-1===o?r.children.push(n):r.children.splice(o,0,n)}catch(i){}}),this.origin.children=this.getChildren().map(function(e){return e.origin}),this.isLoading=!1)},a.prototype.clearChildren=function(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[]},a.prototype.remove=function(){var t=this,e=this.getParentNode();e&&(e.children=e.getChildren().filter(function(e){return e.key!==t.key}),e.origin.children=e.origin.children.filter(function(e){return e.key!==t.key}),this.afterValueChange("remove"))},a.prototype.afterValueChange=function(e){if(this.treeService)switch(e){case"isChecked":this.treeService.setCheckedNodeList(this);break;case"isHalfChecked":this.treeService.setHalfCheckedNodeList(this);break;case"isExpanded":this.treeService.setExpandedNodeList(this);break;case"isSelected":this.treeService.setNodeActive(this);break;case"clearChildren":this.treeService.afterRemove(this.getChildren());break;case"remove":this.treeService.afterRemove([this])}this.update()},a.prototype.update=function(){this.component&&(this.component.setClassMap(),this.component.markForCheck())},a}();function ue(e){var t=Array.isArray(e)?e:[e],n=t.join("").replace(/(\$|\^)/g,"\\$1");return 1<t.length&&(n="["+n+"]"),new RegExp("(\\s|^)("+n+")[^\\s]*","g")}function he(e,t){return Array(e).fill(t).join("")}var fe=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],pe="undefined"!=typeof window,ye=pe&&null!=window.mozInnerScreenX,ge=function(e){return parseInt(e,10)};function me(e,t){var n=getComputedStyle(e).getPropertyValue("font-size"),i=document.querySelector("#DEBUG")||document.createElement("div");document.body.appendChild(i),i.id="DEBUG",i.style.position="absolute",i.style.backgroundColor="red",i.style.height=n,i.style.width="1px",i.style.top=e.getBoundingClientRect().top-e.scrollTop+window.pageYOffset+t.top+"px",i.style.left=e.getBoundingClientRect().left-e.scrollLeft+window.pageXOffset+t.left+"px",console.log(i.style.top),console.log(i.style.left)}function ve(i){var o,e=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];null==o&&(o=$((e=t,function(){o=null,i.apply(void 0,L(e))})))};return e.cancel=function(){return G(o)},e}function be(e){var t=e.isDisabled,n=e.isDisableCheckbox;return!(!t&&!n)}function Ne(e,t){return 0<t.length&&-1<t.indexOf(e)}var Ce=function(){function e(){this.DRAG_SIDE_RANGE=.25,this.DRAG_MIN_GAP=2,this.isCheckStrictly=!1,this.isMultiple=!1,this.rootNodes=[],this.selectedNodeList=[],this.expandedNodeList=[],this.checkedNodeList=[],this.halfCheckedNodeList=[],this.matchedNodeList=[],this.triggerEventChange$=new s.Subject}return e.prototype.eventTriggerChanged=function(){return this.triggerEventChange$.asObservable()},e.prototype.initTree=function(e){var t=this;this.rootNodes=e,this.expandedNodeList=[],this.selectedNodeList=[],this.halfCheckedNodeList=[],this.checkedNodeList=[],this.matchedNodeList=[],setTimeout(function(){t.refreshCheckState(t.isCheckStrictly)})},e.prototype.getSelectedNode=function(){return this.selectedNode},e.prototype.getSelectedNodeList=function(){return this.conductNodeState("select")},e.prototype.getCheckedNodeList=function(){return this.conductNodeState("check")},e.prototype.getHalfCheckedNodeList=function(){return this.conductNodeState("halfCheck")},e.prototype.getExpandedNodeList=function(){return this.conductNodeState("expand")},e.prototype.getMatchedNodeList=function(){return this.conductNodeState("match")},e.prototype.isArrayOfNzTreeNode=function(e){return e.every(function(e){return e instanceof de})},e.prototype.calcSelectedKeys=function(t,e,n){void 0===n&&(n=!1);var i=function(e){return e.every(function(e){if(Ne(e.key,t)){if(e.isSelected=!0,!n)return!1}else e.isSelected=!1;return!(0<e.children.length)||i(e.children)})};i(e)},e.prototype.calcExpandedKeys=function(t,e){this.expandedNodeList=[];var n=function(e){e.forEach(function(e){e.isExpanded=Ne(e.key,t),0<e.children.length&&n(e.children)})};n(e)},e.prototype.calcCheckedKeys=function(t,e,n){void 0===n&&(n=!1),this.checkedNodeList=[],this.halfCheckedNodeList=[];var i=function(e){e.forEach(function(e){Ne(e.key,t)?e.isChecked=!0:e.isChecked=!1,e.isHalfChecked=!1,0<e.children.length&&i(e.children)})};i(e),this.refreshCheckState(n)},e.prototype.setSelectedNode=function(e){this.selectedNode=e},e.prototype.setNodeActive=function(t){!this.isMultiple&&t.isSelected&&(this.selectedNodeList.forEach(function(e){t.key!==e.key&&(e.isSelected=!1)}),this.selectedNodeList=[]),this.setSelectedNodeList(t,this.isMultiple)},e.prototype.setSelectedNodeList=function(t,e){void 0===e&&(e=!1);var n=this.selectedNodeList.findIndex(function(e){return t.key===e.key});e?t.isSelected&&-1===n&&this.selectedNodeList.push(t):t.isSelected&&-1===n&&(this.selectedNodeList=[t]),t.isSelected||(this.selectedNodeList=this.selectedNodeList.filter(function(e){return e.key!==t.key}))},e.prototype.setHalfCheckedNodeList=function(t){var e=this.halfCheckedNodeList.findIndex(function(e){return t.key===e.key});t.isHalfChecked&&-1===e?this.halfCheckedNodeList.push(t):!t.isHalfChecked&&-1<e&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter(function(e){return t.key!==e.key}))},e.prototype.setCheckedNodeList=function(t){var e=this.checkedNodeList.findIndex(function(e){return t.key===e.key});t.isChecked&&-1===e?this.checkedNodeList.push(t):!t.isChecked&&-1<e&&(this.checkedNodeList=this.checkedNodeList.filter(function(e){return t.key!==e.key}))},e.prototype.conductNodeState=function(e){var n=this;void 0===e&&(e="check");var t=[];switch(e){case"select":t=this.selectedNodeList;break;case"expand":t=this.expandedNodeList;break;case"match":t=this.matchedNodeList;break;case"check":t=this.checkedNodeList;var i=function(e){var t=e.getParentNode();return!!t&&(-1<n.checkedNodeList.findIndex(function(e){return e.key===t.key})||i(t))};this.isCheckStrictly||(t=this.checkedNodeList.filter(function(e){return!i(e)}));break;case"halfCheck":this.isCheckStrictly||(t=this.halfCheckedNodeList)}return t},e.prototype.setExpandedNodeList=function(t){if(!t.isLeaf){var e=this.expandedNodeList.findIndex(function(e){return t.key===e.key});t.isExpanded&&-1===e?this.expandedNodeList.push(t):!t.isExpanded&&-1<e&&(this.expandedNodeList=this.expandedNodeList.filter(function(e){return t.key!==e.key}))}},e.prototype.refreshCheckState=function(e){var t=this;void 0===e&&(e=!1),e||this.checkedNodeList.forEach(function(e){t.conduct(e)})},e.prototype.conduct=function(e){var t=e.isChecked;e&&(this.conductUp(e),this.conductDown(e,t))},e.prototype.conductUp=function(e){var t=e.getParentNode();t&&(be(t)||(t.children.every(function(e){return be(e)||!e.isHalfChecked&&e.isChecked})?(t.isChecked=!0,t.isHalfChecked=!1):t.children.some(function(e){return e.isHalfChecked||e.isChecked})?(t.isChecked=!1,t.isHalfChecked=!0):(t.isChecked=!1,t.isHalfChecked=!1)),this.setCheckedNodeList(t),this.setHalfCheckedNodeList(t),this.conductUp(t))},e.prototype.conductDown=function(e,t){var n=this;be(e)||(e.isChecked=t,e.isHalfChecked=!1,this.setCheckedNodeList(e),this.setHalfCheckedNodeList(e),e.children.forEach(function(e){n.conductDown(e,t)}))},e.prototype.searchExpand=function(t){var n=this;this.matchedNodeList=[];var i=[];if(Q(t)){var o=function(e){var t=e.getParentNode();t&&(i.push(t.key),o(t))},r=function(e){t&&e.title.includes(t)?(e.isMatched=!0,n.matchedNodeList.push(e),o(e)):e.isMatched=!1,e.children.forEach(function(e){r(e)})};this.rootNodes.forEach(function(e){r(e)}),this.calcExpandedKeys(i,this.rootNodes)}},e.prototype.afterRemove=function(e){var n=this,i=function(t){n.selectedNodeList=n.selectedNodeList.filter(function(e){return e.key!==t.key}),n.expandedNodeList=n.expandedNodeList.filter(function(e){return e.key!==t.key}),n.checkedNodeList=n.checkedNodeList.filter(function(e){return e.key!==t.key}),t.children&&t.children.forEach(function(e){i(e)})};e.forEach(function(e){i(e)}),this.refreshCheckState(this.isCheckStrictly)},e.prototype.refreshDragNode=function(e){var t=this;0===e.children.length?this.conductUp(e):e.children.forEach(function(e){t.refreshDragNode(e)})},e.prototype.resetNodeLevel=function(e){var t,n,i=e.getParentNode();e.level=i?i.level+1:0;try{for(var o=function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(e.children),r=o.next();!r.done;r=o.next()){var a=r.value;this.resetNodeLevel(a)}}catch(c){t={error:c}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(t)throw t.error}}},e.prototype.calcDropPosition=function(e){var t=e.clientY,n=e.srcElement?e.srcElement.getBoundingClientRect():e.target.getBoundingClientRect(),i=n.top,o=n.bottom,r=n.height,a=Math.max(r*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return t<=i+a?-1:o-a<=t?1:0},e.prototype.dropAndApply=function(e,t){var n=this;if(void 0===t&&(t=-1),e&&!(1<t)){var i=e.treeService,o=e.getParentNode(),r=this.selectedNode.getParentNode();switch(r?r.children=r.children.filter(function(e){return e.key!==n.selectedNode.key}):this.rootNodes=this.rootNodes.filter(function(e){return e.key!==n.selectedNode.key}),t){case 0:e.addChildren([this.selectedNode]),this.resetNodeLevel(e);break;case-1:case 1:var a=1===t?1:0;if(o){o.addChildren([this.selectedNode],o.children.indexOf(e)+a);var s=this.selectedNode.getParentNode();s&&this.resetNodeLevel(s)}else{var c=this.rootNodes.indexOf(e)+a;this.rootNodes.splice(c,0,this.selectedNode),this.rootNodes[c].parentNode=null,this.rootNodes[c].level=0}}this.rootNodes.forEach(function(e){e.treeService||(e.service=i),n.refreshDragNode(e)})}},e.prototype.formatEvent=function(e,t,n){var i={eventName:e,node:t,event:n};switch(e){case"dragstart":case"dragenter":case"dragover":case"dragleave":case"drop":case"dragend":Object.assign(i,{dragNode:this.getSelectedNode()});break;case"click":case"dblclick":Object.assign(i,{selectedKeys:this.selectedNodeList}),Object.assign(i,{nodes:this.selectedNodeList}),Object.assign(i,{keys:this.selectedNodeList.map(function(e){return e.key})});break;case"check":var o=this.getCheckedNodeList();Object.assign(i,{checkedKeys:o}),Object.assign(i,{nodes:o}),Object.assign(i,{keys:o.map(function(e){return e.key})});break;case"search":Object.assign(i,{matchedKeys:this.getMatchedNodeList()}),Object.assign(i,{nodes:this.getMatchedNodeList()}),Object.assign(i,{keys:this.getMatchedNodeList().map(function(e){return e.key})});break;case"expand":Object.assign(i,{nodes:this.expandedNodeList}),Object.assign(i,{keys:this.expandedNodeList.map(function(e){return e.key})})}return i},e.prototype.ngOnDestroy=function(){this.triggerEventChange$.complete()},e.decorators=[{type:l.Injectable}],e}(),Ee=new l.InjectionToken("NzTreeHigherOrder"),ke=function(){function e(e,t,n){var i=this;this.triggerElement=e,this.ngZone=t,this.insertExtraNode=n,this.waveTransitionDuration=400,this.lastTime=0,this.onClick=function(e){!i.triggerElement||!i.triggerElement.getAttribute||i.triggerElement.getAttribute("disabled")||"INPUT"===e.target.tagName||0<=i.triggerElement.className.indexOf("disabled")||i.fadeOutWave()},(new a.Platform).isBrowser&&this.bindTriggerEvent()}return Object.defineProperty(e.prototype,"waveAttributeName",{get:function(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"},enumerable:!0,configurable:!0}),e.prototype.bindTriggerEvent=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.triggerElement&&e.triggerElement.addEventListener("click",e.onClick,!0)})},e.prototype.removeTriggerEvent=function(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.onClick,!0)},e.prototype.removeStyleAndExtraNode=function(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)},e.prototype.destroy=function(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()},e.prototype.fadeOutWave=function(){var e=this,t=this.triggerElement,n=this.getWaveColor(t);t.setAttribute(this.waveAttributeName,"true"),Date.now()<this.lastTime+this.waveTransitionDuration||(this.isValidColor(n)&&(this.styleForPseudo||(this.styleForPseudo=document.createElement("style")),this.styleForPseudo.innerHTML="[ant-click-animating-without-extra-node]:after { border-color: "+n+"; }",document.body.appendChild(this.styleForPseudo)),this.insertExtraNode&&(this.extraNode||(this.extraNode=document.createElement("div")),this.extraNode.className="ant-click-animating-node",t.appendChild(this.extraNode)),this.lastTime=Date.now(),this.runTimeoutOutsideZone(function(){t.removeAttribute(e.waveAttributeName),e.removeStyleAndExtraNode()},this.waveTransitionDuration))},e.prototype.isValidColor=function(e){return!!e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&this.isNotGrey(e)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(e)&&"transparent"!==e},e.prototype.isNotGrey=function(e){var t=e.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])},e.prototype.getWaveColor=function(e){var t=getComputedStyle(e);return t.getPropertyValue("border-top-color")||t.getPropertyValue("border-color")||t.getPropertyValue("background-color")},e.prototype.runTimeoutOutsideZone=function(e,t){this.ngZone.runOutsideAngular(function(){return setTimeout(e,t)})},e}(),Se={disabled:!1},we=new l.InjectionToken("nz-wave-global-options",{providedIn:"root",factory:Oe});function Oe(){return Se}var _e=function(){function e(e,t,n,i){this.ngZone=e,this.elementRef=t,this.animationType=i,this.nzWaveExtraNode=!1,this.waveDisabled=!1,n&&"boolean"==typeof n.disabled&&(this.waveDisabled=n.disabled),"NoopAnimations"===this.animationType&&(this.waveDisabled=!0)}return e.prototype.ngOnDestroy=function(){this.waveRenderer&&this.waveRenderer.destroy()},e.prototype.ngOnInit=function(){this.renderWaveIfEnabled()},e.prototype.renderWaveIfEnabled=function(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new ke(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode))},e.decorators=[{type:l.Directive,args:[{selector:"[nz-wave]",exportAs:"nzWave"}]}],e.ctorParameters=function(){return[{type:l.NgZone},{type:l.ElementRef},{type:undefined,decorators:[{type:l.Optional},{type:l.Inject,args:[we]}]},{type:String,decorators:[{type:l.Optional},{type:l.Inject,args:[r.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={nzWaveExtraNode:[{type:l.Input}]},e}(),Ae=function(){function e(){}return e.decorators=[{type:l.NgModule,args:[{imports:[a.PlatformModule],exports:[_e],declarations:[_e]}]}],e}(),Le=function(){function e(){this.menuItemClick$=new s.Subject,this.theme$=new s.Subject,this.mode$=new s.BehaviorSubject("vertical"),this.inlineIndent$=new s.BehaviorSubject(24),this.check$=s.merge(this.theme$,this.mode$,this.inlineIndent$),this.theme="light",this.mode="vertical",this.inlineIndent=24,this.menuOpen$=new s.BehaviorSubject(!1)}return e.prototype.onMenuItemClick=function(e){this.menuItemClick$.next(e)},e.prototype.setMode=function(e){this.mode=e,this.mode$.next(e)},e.prototype.setTheme=function(e){this.theme=e,this.theme$.next(e)},e.prototype.setInlineIndent=function(e){this.inlineIndent=e,this.inlineIndent$.next(e)},e.decorators=[{type:l.Injectable}],e}(),Te=new l.InjectionToken("NzTreeHigherOrder"),Ie=new l.InjectionToken("nz-logger-state"),Pe=function(){function e(e){this._loggerState=e}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,L(e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.warn.apply(console,L(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.error.apply(console,L(e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,L(e))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggerState&&console.log.apply(console,L(["[NG-ZORRO-DEBUG]"],e))},e.decorators=[{type:l.Injectable}],e.ctorParameters=function(){return[{type:Boolean,decorators:[{type:l.Inject,args:[Ie]}]}]},e}();function xe(e,t){return e||new Pe(t)}var Re={provide:Pe,useFactory:xe,deps:[[new l.Optional,new l.SkipSelf,Pe],Ie]},De=function(){function e(){}return e.decorators=[{type:l.NgModule,args:[{providers:[{provide:Ie,useValue:!1},Re]}]}],e}();e.NzAddOnModule=u,e.NzClassListAddDirective=c,e.NzStringTemplateOutletDirective=d,e.AnimationDuration=h,e.AnimationCurves=f,e.collapseMotion=p,e.fadeMotion=y,e.helpMotion=g,e.moveUpMotion=m,e.notificationMotion=v,e.slideMotion=C,e.slideAlertMotion=E,e.zoomMotion=k,e.zoomBigMotion=S,e.zoomBadgeMotion=w,e.NzNoAnimationModule=M,e.NzNoAnimationDirective=j,e.NzConnectedOverlayDirective=z,e.NzOverlayModule=Y,e.getPlacementName=function Me(n){var e=["originX","originY","overlayX","overlayY"],t=function(t){if(e.every(function(e){return n.connectionPair[e]===B[t][e]}))return{value:t}};for(var i in B){var o=t(i);if("object"==typeof o)return o.value}},e.POSITION_MAP=B,e.DEFAULT_TOOLTIP_POSITIONS=U,e.DEFAULT_DROPDOWN_POSITIONS=V,e.DEFAULT_SUBMENU_POSITIONS=F,e.DEFAULT_CASCADER_POSITIONS=X,e.DEFAULT_MENTION_POSITIONS=W,e.cancelRequestAnimationFrame=G,e.reqAnimFrame=$,e.SCROLL_SERVICE_PROVIDER_FACTORY=K,e.NzScrollService=q,e.SCROLL_SERVICE_PROVIDER=Z,e.NzMeasureScrollbarService=ee,e.NzUpdateHostClassService=te,e.dispatchEvent=ae,e.dispatchFakeEvent=se,e.dispatchKeyboardEvent=function ze(e,t,n,i){return ae(e,oe(t,n,i))},e.dispatchMouseEvent=function Ye(e,t,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=ne(t,n,i)),ae(e,o)},e.dispatchTouchEvent=function Be(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),ae(e,ie(t,n,i))},e.createMouseEvent=ne,e.createTouchEvent=ie,e.createKeyboardEvent=oe,e.createFakeEvent=re,e.typeInElement=function Ue(e,t){t.focus(),t.value=e,se(t,"input")}
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/,e.wrappedErrorMessage=function Ve(e){var t=e.message.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");return new RegExp(t)},e.FakeViewportRuler=ce,e.MockNgZone=le,e.NzTreeNode=de,e.NzTreeBaseService=Ce,e.NzTreeHigherOrderServiceToken=Ee,e.toArray=function Fe(e){return null==e?[]:Array.isArray(e)?e:[e]},e.arraysEqual=function Xe(e,t){if(!e||!t||e.length!==t.length)return!1;for(var n=e.length,i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0},e.shallowCopyArray=function We(e){return e.slice()},e.isNotNil=Q,e.isNil=function He(e){return null==e},e.shallowEqual=function Ge(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),r=0;r<n.length;r++){var a=n[r];if(!o(a))return!1;if(e[a]!==t[a])return!1}return!0},e.isInteger=function $e(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isEmpty=function qe(e){for(var t=e.childNodes,n=0;n<t.length;n++)if(J(t.item(n)))return!1;return!0},e.filterNotEmptyNode=J,e.isNonEmptyString=function Ke(e){return"string"==typeof e&&""!==e},e.isTemplateRef=function Ze(e){return e instanceof l.TemplateRef},e.isComponent=function Qe(e){return e instanceof l.Type},e.toBoolean=T,e.toNumber=I,e.toCssPixel=P,e.valueFunctionProp=function Je(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,L(t)):e},e.InputBoolean=R,e.InputCssPixel=function et(){return x("InputCssPixel",P)},e.InputNumber=function tt(){return x("InputNumber",I)},e.silentEvent=function nt(e){e.stopPropagation(),e.preventDefault()},e.getElementOffset=function it(e){if(!e.getClientRects().length)return{top:0,left:0};var t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView;return{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}},e.findFirstNotEmptyNode=function ot(e){for(var t=e.childNodes,n=0;n<t.length;n++){var i=t.item(n);if(J(i))return i}return null},e.findLastNotEmptyNode=function rt(e){for(var t=e.childNodes,n=t.length-1;0<=n;n--){var i=t.item(n);if(J(i))return i}return null},e.reverseChildNodes=function at(e){var t=e.childNodes,n=t.length;if(n){var i=[];for(t.forEach(function(e,t){return i[t]=e});n--;)e.appendChild(i[n])}},e.isTouchEvent=function st(e){return e.type.startsWith("touch")},e.getRegExp=ue,e.getMentions=function ct(e,t){if(void 0===t&&(t="@"),"string"!=typeof e)return[];var n=ue(t),i=e.match(n);return null!==i?i.map(function(e){return e.trim()}):[]},e.padStart=function lt(e,t,n){if(e.length>t)return e;var i=""+he(t,n)+e;return i.slice(i.length-t,i.length)},e.padEnd=function dt(e,t,n){return(""+e+he(t,n)).slice(0,t)},e.getRepeatedElement=he,e.isPromise=function ut(e){return!!e&&"function"==typeof e.then&&"function"==typeof e["catch"]},e.getPercent=function ht(e,t,n){return(n-e)/(t-e)*100},e.getPrecision=function ft(e){var t=e.toString(),n=t.indexOf(".");return 0<=n?t.length-n-1:0},e.ensureNumberInRange=function pt(e,t,n){return isNaN(e)||e<t?t:n<e?n:e},e.scrollIntoView=function yt(e){var t=e;t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):e.scrollIntoView&&e.scrollIntoView(!1)},e.getCaretCoordinates=function gt(e,t,n){if(!pe)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var i=n&&n.debug||!1;if(i){var o=document.querySelector("#input-textarea-caret-position-mirror-div");o&&o.parentNode.removeChild(o)}var r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);var a=r.style,s=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,c="INPUT"===e.nodeName;a.whiteSpace="pre-wrap",c||(a.wordWrap="break-word"),a.position="absolute",i||(a.visibility="hidden"),fe.forEach(function(e){c&&"lineHeight"===e?a.lineHeight=s.height:a[e]=s[e]}),ye?e.scrollHeight>ge(s.height)&&(a.overflowY="scroll"):a.overflow="hidden",r.textContent=e.value.substring(0,t),c&&(r.textContent=r.textContent.replace(/\s/g," "));var l=document.createElement("span");l.textContent=e.value.substring(t)||".",r.appendChild(l);var d={top:l.offsetTop+ge(s.borderTopWidth),left:l.offsetLeft+ge(s.borderLeftWidth),height:ge(s.lineHeight)};return i?(l.style.backgroundColor="#eee",me(e,d)):document.body.removeChild(r),d},e.createDebugEle=me,e.properties=fe,e.throttleByAnimationFrameDecorator=function mt(){return function(t,n,e){var i=e.value,o=!1;return{configurable:!0,get:function(){if(o||this===t.prototype||this.hasOwnProperty(n))return i;var e=ve(i.bind(this));return o=!0,Object.defineProperty(this,n,{value:e,configurable:!0,writable:!0}),o=!1,e}}}},e.timeUnits=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],e.NzWaveRenderer=ke,e.NZ_WAVE_GLOBAL_CONFIG_FACTORY=Oe,e.NZ_WAVE_GLOBAL_DEFAULT_CONFIG=Se,e.NZ_WAVE_GLOBAL_CONFIG=we,e.NzWaveDirective=_e,e.NzWaveModule=Ae,e.NzMenuBaseService=Le,e.NzDropdownHigherOrderServiceToken=Te,e.LoggerModule=De,e.LoggerService=Pe,e.NZ_LOGGER_STATE=Ie,e.LOGGER_SERVICE_PROVIDER=Re,e.LOGGER_SERVICE_PROVIDER_FACTORY=xe,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ng-zorro-antd-core.umd.min.js.map