ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
101 lines • 52.6 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("@angular/core"),require("@angular/animations"),require("@angular/cdk/coercion"),require("@angular/platform-browser/animations"),require("@angular/cdk/overlay"),require("rxjs"),require("@angular/cdk/platform")):"function"==typeof define&&define.amd?define("ng-zorro-antd/core",["exports","@angular/common","@angular/core","@angular/animations","@angular/cdk/coercion","@angular/platform-browser/animations","@angular/cdk/overlay","rxjs","@angular/cdk/platform"],t):t(((e=e||self)["ng-zorro-antd"]=e["ng-zorro-antd"]||{},e["ng-zorro-antd"].core={}),e.ng.common,e.ng.core,e.ng.animations,e.ng.cdk.coercion,e.ng.platformBrowser.animations,e.ng.cdk.overlay,e.rxjs,e.ng.cdk.platform)}(this,function(e,t,n,i,r,o,a,s,c){"use strict";var l=function(e,t){return(l=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 d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(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}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return a}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}var y=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:n.Directive,args:[{selector:"[nzClassListAdd]",exportAs:"nzClassListAdd"}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.Renderer2}]},e.propDecorators={nzClassListAdd:[{type:n.Input}]},e}(),g=function(){function e(e,t){this.viewContainer=e,this.defaultTemplate=t,this.inputTemplate=null,this.inputViewRef=null,this.defaultViewRef=null,this.nzStringTemplateOutletContext=null}return Object.defineProperty(e.prototype,"nzStringTemplateOutlet",{set:function(e){e instanceof n.TemplateRef?(this.isTemplate=!0,this.inputTemplate=e):this.isTemplate=!1},enumerable:!0,configurable:!0}),e.prototype.recreateView=function(){this.isTemplate?this.inputViewRef||this.inputTemplate&&(this.inputViewRef=this.viewContainer.createEmbeddedView(this.inputTemplate,this.nzStringTemplateOutletContext)):this.defaultViewRef||this.defaultTemplate&&(this.defaultViewRef=this.viewContainer.createEmbeddedView(this.defaultTemplate,this.nzStringTemplateOutletContext))},e.prototype.getType=function(e){return e instanceof n.TemplateRef?"template":"string"},e.prototype.shouldRecreateView=function(e){var t=e.nzStringTemplateOutletContext,n=e.nzStringTemplateOutlet,i=!1;if(n)if(n.firstChange)i=!0;else{var r=this.getType(n.previousValue),o=this.getType(n.currentValue);i=!("string"===r&&"string"===o)}return t&&this.hasContextShapeChanged(t)||i},e.prototype.hasContextShapeChanged=function(e){var t,n,i=Object.keys(e.previousValue||{}),r=Object.keys(e.currentValue||{});if(i.length===r.length){try{for(var o=h(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(-1===i.indexOf(s))return!0}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=o["return"])&&n.call(o)}finally{if(t)throw t.error}}return!1}return!0},e.prototype.updateExistingContext=function(e){var t,n;try{for(var i=h(Object.keys(e)),r=i.next();!r.done;r=i.next()){var o=r.value;this.inputViewRef.context[o]=this.nzStringTemplateOutletContext[o]}}catch(a){t={error:a}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.ngOnChanges=function(e){this.shouldRecreateView(e)?(this.viewContainer&&(this.viewContainer.clear(),this.defaultViewRef=null,this.inputViewRef=null),this.recreateView()):this.inputViewRef&&this.nzStringTemplateOutletContext&&this.updateExistingContext(this.nzStringTemplateOutletContext)},e.decorators=[{type:n.Directive,args:[{selector:"[nzStringTemplateOutlet]",exportAs:"nzStringTemplateOutlet"}]}],e.ctorParameters=function(){return[{type:n.ViewContainerRef},{type:n.TemplateRef}]},e.propDecorators={nzStringTemplateOutletContext:[{type:n.Input}],nzStringTemplateOutlet:[{type:n.Input}]},e}(),v=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[t.CommonModule],exports:[g,y],declarations:[g,y]}]}],e}(),m=function(){function e(){}return e.SLOW="0.3s",e.BASE="0.2s",e.FAST="0.1s",e}(),b=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}(),N=i.trigger("collapseMotion",[i.state("expanded",i.style({height:"*"})),i.state("collapsed",i.style({height:0,overflow:"hidden"})),i.state("hidden",i.style({height:0,display:"none"})),i.transition("expanded => collapsed",i.animate("150ms "+b.EASE_IN_OUT)),i.transition("expanded => hidden",i.animate("150ms "+b.EASE_IN_OUT)),i.transition("collapsed => expanded",i.animate("150ms "+b.EASE_IN_OUT)),i.transition("hidden => expanded",i.animate("150ms "+b.EASE_IN_OUT))]),C=i.trigger("fadeMotion",[i.transition(":enter",[i.style({opacity:0}),i.animate(""+m.BASE,i.style({opacity:1}))]),i.transition(":leave",[i.style({opacity:1}),i.animate(""+m.BASE,i.style({opacity:0}))])]),E=i.trigger("helpMotion",[i.transition(":enter",[i.style({opacity:0,transform:"translateY(-5px)"}),i.animate(m.SLOW+" "+b.EASE_IN_OUT,i.style({opacity:1,transform:"translateY(0)"}))]),i.transition(":leave",[i.style({opacity:1,transform:"translateY(0)"}),i.animate(m.SLOW+" "+b.EASE_IN_OUT,i.style({opacity:0,transform:"translateY(-5px)"}))])]),k=i.trigger("moveUpMotion",[i.transition("* => enter",[i.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}),i.animate(""+m.BASE,i.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}))]),i.transition("* => leave",[i.style({transformOrigin:"0 0",transform:"translateY(0%)",opacity:1}),i.animate(""+m.BASE,i.style({transformOrigin:"0 0",transform:"translateY(-100%)",opacity:0}))])]),S=i.trigger("notificationMotion",[i.state("enterRight",i.style({opacity:1,transform:"translateX(0)"})),i.transition("* => enterRight",[i.style({opacity:0,transform:"translateX(5%)"}),i.animate("100ms linear")]),i.state("enterLeft",i.style({opacity:1,transform:"translateX(0)"})),i.transition("* => enterLeft",[i.style({opacity:0,transform:"translateX(-5%)"}),i.animate("100ms linear")]),i.state("leave",i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"})),i.transition("* => leave",[i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),i.animate("100ms linear")])]),w=m.BASE+" "+b.EASE_OUT_QUINT,O=m.BASE+" "+b.EASE_IN_QUINT,x=i.trigger("slideMotion",[i.state("bottom",i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"})),i.state("top",i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 100%"})),i.transition("void => bottom",[i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}),i.animate(w)]),i.transition("bottom => void",[i.animate(O,i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 0%"}))]),i.transition("void => top",[i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}),i.animate(w)]),i.transition("top => void",[i.animate(O,i.style({opacity:0,transform:"scaleY(0.8)",transformOrigin:"0% 100%"}))])]),T=i.trigger("slideAlertMotion",[i.transition(":leave",[i.style({opacity:1,transform:"scaleY(1)",transformOrigin:"0% 0%"}),i.animate(m.SLOW+" "+b.EASE_IN_OUT_CIRC,i.style({opacity:0,transform:"scaleY(0)",transformOrigin:"0% 0%"}))])]),_=i.trigger("zoomMotion",[i.transition(":enter",[i.style({opacity:0,transform:"scale(0.2)"}),i.animate(m.BASE+" "+b.EASE_OUT_CIRC,i.style({opacity:1,transform:"scale(1)"}))]),i.transition(":leave",[i.style({opacity:1,transform:"scale(1)"}),i.animate(m.BASE+" "+b.EASE_IN_OUT_CIRC,i.style({opacity:0,transform:"scale(0.2)"}))])]),L=i.trigger("zoomBigMotion",[i.transition("void => active",[i.style({opacity:0,transform:"scale(0.8)"}),i.animate(m.BASE+" "+b.EASE_OUT_CIRC,i.style({opacity:1,transform:"scale(1)"}))]),i.transition("active => void",[i.style({opacity:1,transform:"scale(1)"}),i.animate(m.BASE+" "+b.EASE_IN_OUT_CIRC,i.style({opacity:0,transform:"scale(0.8)"}))])]),A=i.trigger("zoomBadgeMotion",[i.transition(":enter",[i.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}),i.animate(m.SLOW+" "+b.EASE_OUT_BACK,i.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}))]),i.transition(":leave",[i.style({opacity:1,transform:"scale(1) translate(50%, -50%)"}),i.animate(m.SLOW+" "+b.EASE_IN_BACK,i.style({opacity:0,transform:"scale(0) translate(50%, -50%)"}))])]),P={},I="[NG-ZORRO]:";function R(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];n.isDevMode()&&function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.reduce(function(e,t){return e+t.toString()},"");return!P[n]&&(P[n]=!0,!0)}.apply(void 0,p(t))&&e.apply(void 0,p(t))}var z=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return R.apply(void 0,p([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.warn.apply(console,p([I],e))}],e))},D=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return R.apply(void 0,p([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return console.error.apply(console,p([I,"deprecated:"],e))}],e))};function j(e){return r.coerceBooleanProperty(e)}function M(e,t){return void 0===t&&(t=0),r._isNumberValue(e)?Number(e):t}function Y(e){return r.coerceCssPixelValue(e)}function B(e,t){return function(n,i){var r="$$__"+i;Object.prototype.hasOwnProperty.call(n,r)&&z('The prop "'+r+'" is already exist, it will be overrided by '+e+" decorator."),Object.defineProperty(n,r,{configurable:!0,writable:!0}),Object.defineProperty(n,i,{get:function(){return this[r]},set:function(e){this[r]=t(e)}})}}function U(){return B("InputBoolean",j)}var V=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=r.coerceElement(this.element);e&&(this.nzNoAnimation||"NoopAnimations"===this.animationType?this.renderer.addClass(e,"nz-animate-disabled"):this.renderer.removeClass(e,"nz-animate-disabled"))},e.decorators=[{type:n.Directive,args:[{selector:"[nzNoAnimation]",exportAs:"nzNoAnimation",host:{"[@.disabled]":"nzNoAnimation"}}]}],e.ctorParameters=function(){return[{type:n.ElementRef},{type:n.Renderer2},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[o.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={nzNoAnimation:[{type:n.Input}]},function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);o>3&&a&&Object.defineProperty(t,n,a)}([U(),u("design:type",Boolean)],e.prototype,"nzNoAnimation",void 0),e}(),F=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{declarations:[V],exports:[V],imports:[t.CommonModule]}]}],e}(),X=function(){function e(e){this.cdkConnectedOverlay=e,this.cdkConnectedOverlay.backdropClass="nz-overlay-transparent-backdrop"}return e.decorators=[{type:n.Directive,args:[{selector:"[cdkConnectedOverlay][nzConnectedOverlay]",exportAs:"nzConnectedOverlay"}]}],e.ctorParameters=function(){return[{type:a.CdkConnectedOverlay}]},e}(),W=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{declarations:[X],exports:[X]}]}],e}(),H={top:new a.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topCenter:new a.ConnectionPositionPair({originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}),topLeft:new a.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),topRight:new a.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}),right:new a.ConnectionPositionPair({originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}),rightTop:new a.ConnectionPositionPair({originX:"end",originY:"top"},{overlayX:"start",overlayY:"top"}),rightBottom:new a.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"start",overlayY:"bottom"}),bottom:new a.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomCenter:new a.ConnectionPositionPair({originX:"center",originY:"bottom"},{overlayX:"center",overlayY:"top"}),bottomLeft:new a.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),bottomRight:new a.ConnectionPositionPair({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}),left:new a.ConnectionPositionPair({originX:"start",originY:"center"},{overlayX:"end",overlayY:"center"}),leftTop:new a.ConnectionPositionPair({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"}),leftBottom:new a.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"end",overlayY:"bottom"})},q=[H.top,H.right,H.bottom,H.left],G=[H.bottomLeft,H.bottomRight,H.topRight,H.topLeft],K=[H.rightTop,H.leftTop],$=[H.bottomLeft,H.bottomRight,H.topLeft,H.topRight],Z=[H.bottomLeft,new a.ConnectionPositionPair({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"bottom"})];
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var Q=["moz","ms","webkit"];function J(e){if("undefined"==typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(e);var t=Q.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 ee=function(){if("undefined"==typeof window)return function(){return 0};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var e,t=Q.filter(function(e){return e+"RequestAnimationFrame"in window})[0];return t?window[t+"RequestAnimationFrame"]:(e=0,function(t){var n=(new Date).getTime(),i=Math.max(0,16-(n-e)),r=setTimeout(function(){t(n+i)},i);return e=n+i,r})}();var te=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",r=n===window,o=r?n[t?"pageYOffset":"pageXOffset"]:n[i];return r&&"number"!=typeof o&&(o=this.doc.documentElement[i]),o},e.prototype.scrollTo=function(e,t,n,i){var r=this;void 0===t&&(t=0);var o=e||window,a=this.getScroll(o),s=Date.now(),c=function(){var e=Date.now()-s;r.setScrollTop(o,(n||function(e,t,n,i){var r=n-t,o=e/(i/2);return o<1?r/2*o*o*o+t:r/2*((o-=2)*o*o+2)+t})(e,a,t,450)),e<450?ee(c):i&&i()};ee(c)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},e}();function ne(e,t){return t||new te(e)}var ie={provide:te,useFactory:ne,deps:[t.DOCUMENT,[new n.Optional,new n.SkipSelf,te]]};function re(e){return null!=e}function oe(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 ae=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 re(this._scrollbarWidth)?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:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:undefined,decorators:[{type:n.Inject,args:[t.DOCUMENT]}]}]},e.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new e(n.ɵɵinject(t.DOCUMENT))},token:e,providedIn:"root"}),e}(),se=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=d({},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:n.Injectable}],e.ctorParameters=function(){return[{type:n.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 ce(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0);var r=document.createEvent("MouseEvent");return r.initMouseEvent(e,!0,!1,window,0,t,n,t,n,!1,!1,!1,!1,i,null),Object.defineProperty(r,"buttons",{get:function(){return 1}}),r}function le(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i=document.createEvent("UIEvent"),r={pageX:t,pageY:n};return i.initUIEvent(e,!0,!0,window,0),Object.defineProperties(i,{touches:{value:[r]},targetTouches:{value:[r]},changedTouches:{value:[r]}}),i}function de(e,t,n,i){var r=document.createEvent("KeyboardEvent"),o=r.preventDefault;return r.initKeyEvent?r.initKeyEvent(e,!0,!0,window,0,0,0,0,0,t):r.initKeyboardEvent(e,!0,!0,window,0,i,0,"",!1),Object.defineProperties(r,{keyCode:{get:function(){return t}},key:{get:function(){return i}},target:{get:function(){return n}}}),r.preventDefault=function(){return Object.defineProperty(r,"defaultPrevented",{get:function(){return!0}}),o.apply(this,arguments)},r}function ue(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 he(e,t){return e.dispatchEvent(t),t}function fe(e,t,n){return he(e,ue(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 pe=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}(),ye=function(e){function t(){var t=e.call(this,{enableLongStackTrace:!1})||this;return t.onStable=new n.EventEmitter(!1),t}return function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.run=function(e){return e()},t.prototype.runOutsideAngular=function(e){return e()},t.prototype.simulateZoneExit=function(){this.onStable.emit(null)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(n.NgZone),ge=function(){function e(t,n,i){var r=this;if(void 0===n&&(n=null),void 0===i&&(i=null),this.level=0,t instanceof e)return t;this.service=i||null,this.origin=t,this.key=t.key,this.parentNode=n,this._title=t.title||"---",this._icon=t.icon||"",this._isLeaf=t.isLeaf||!1,this._children=[],this._isChecked=t.checked||!1,this._isSelectable=t.disabled||!1!==t.selectable,this._isDisabled=t.disabled||!1,this._isDisableCheckbox=t.disableCheckbox||!1,this._isExpanded=!t.isLeaf&&(t.expanded||!1),this._isHalfChecked=!1,this._isSelected=!t.disabled&&t.selected||!1,this._isLoading=!1,this.isMatched=!1,this.level=n?n.level+1:0,"undefined"!=typeof t.children&&null!==t.children&&t.children.forEach(function(n){var i=r.treeService;!i||i.isCheckStrictly||!t.checked||t.disabled||n.disabled||n.disableCheckbox||(n.checked=t.checked),r._children.push(new e(n,r))})}return Object.defineProperty(e.prototype,"treeService",{get:function(){return this.service||this.parentNode&&this.parentNode.treeService},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(e){this._icon=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},set:function(e){this._children=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLeaf",{get:function(){return this._isLeaf},set:function(e){this._isLeaf=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.prototype,"isAllChecked",{get:function(){return this._isAllChecked},set:function(e){D("'isAllChecked' is going to be removed in 9.0.0. Please use 'isChecked' instead."),this._isAllChecked=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHalfChecked",{get:function(){return this._isHalfChecked},set:function(e){this._isHalfChecked=e,this.afterValueChange("isHalfChecked")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelectable",{get:function(){return this._isSelectable},set:function(e){this._isSelectable=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabled",{get:function(){return this._isDisabled},set:function(e){this._isDisabled=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisableCheckbox",{get:function(){return this._isDisableCheckbox},set:function(e){this._isDisableCheckbox=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.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(e.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(e.prototype,"isLoading",{get:function(){return this._isLoading},set:function(e){this._isLoading=e,this.update()},enumerable:!0,configurable:!0}),e.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)},e.prototype.setChecked=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),D("'setChecked' is going to be removed in 9.0.0. Please use 'isChecked' instead."),this.origin.checked=e,this.isChecked=e,this.isAllChecked=e,this.isHalfChecked=t},e.prototype.setExpanded=function(e){D("'setExpanded' is going to be removed in 9.0.0. Please use 'isExpanded' instead."),this.isExpanded=e},e.prototype.setSelected=function(e){D("'setSelected' is going to be removed in 9.0.0. Please use 'isExpanded' isSelected."),this.isDisabled||(this.isSelected=e)},e.prototype.getParentNode=function(){return this.parentNode},e.prototype.getChildren=function(){return this.children},e.prototype.addChildren=function(t,n){var i=this;void 0===n&&(n=-1),this.isLeaf||(t.forEach(function(t){var r=function(e){e.getChildren().forEach(function(e){e.level=e.getParentNode().level+1,e.origin.level=e.level,r(e)})},o=t;o instanceof e?o.parentNode=i:o=new e(t,i),o.level=i.level+1,o.origin.level=o.level,r(o);try{-1===n?i.children.push(o):i.children.splice(n,0,o)}catch(a){}}),this.origin.children=this.getChildren().map(function(e){return e.origin}),this.isLoading=!1)},e.prototype.clearChildren=function(){this.afterValueChange("clearChildren"),this.children=[],this.origin.children=[]},e.prototype.remove=function(){var e=this,t=this.getParentNode();t&&(t.children=t.getChildren().filter(function(t){return t.key!==e.key}),t.origin.children=t.origin.children.filter(function(t){return t.key!==e.key}),this.afterValueChange("remove"))},e.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()},e.prototype.update=function(){this.component&&(this.component.setClassMap(),this.component.markForCheck())},e}();
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function ve(e){var t=Array.isArray(e)?e:[e],n=t.join("").replace(/(\$|\^)/g,"\\$1");return t.length>1&&(n="["+n+"]"),new RegExp("(\\s|^)("+n+")[^\\s]*","g")}function me(e,t){return Array(e).fill(t).join("")}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
var be=["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"],Ne="undefined"!=typeof window,Ce=Ne&&null!=window.mozInnerScreenX,Ee=function(e){return parseInt(e,10)};function ke(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"}function Se(e){var t,n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];null==t&&(t=ee(function(n){return function(){t=null,e.apply(void 0,p(n))}}(n)))};return n.cancel=function(){return J(t)},n}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function we(e){var t=e.isDisabled,n=e.isDisableCheckbox;return!(!t&&!n)}function Oe(e,t){return t.length>0&&t.indexOf(e)>-1}var xe=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 ge})},e.prototype.calcSelectedKeys=function(e,t,n){void 0===n&&(n=!1);var i=function(t){return t.every(function(t){if(Oe(t.key,e)){if(t.isSelected=!0,!n)return!1}else t.isSelected=!1;return!(t.children.length>0)||i(t.children)})};i(t)},e.prototype.calcExpandedKeys=function(e,t){this.expandedNodeList=[];var n=function(t){t.forEach(function(t){t.isExpanded=Oe(t.key,e),t.children.length>0&&n(t.children)})};n(t)},e.prototype.calcCheckedKeys=function(e,t,n){void 0===n&&(n=!1),this.checkedNodeList=[],this.halfCheckedNodeList=[];var i=function(t){t.forEach(function(t){Oe(t.key,e)?(t.isChecked=!0,t.isHalfChecked=!1):(t.isChecked=!1,t.isHalfChecked=!1),t.children.length>0&&i(t.children)})};i(t),this.refreshCheckState(n)},e.prototype.setSelectedNode=function(e){this.selectedNode=e},e.prototype.setNodeActive=function(e){!this.isMultiple&&e.isSelected&&(this.selectedNodeList.forEach(function(t){e.key!==t.key&&(t.isSelected=!1)}),this.selectedNodeList=[]),this.setSelectedNodeList(e,this.isMultiple)},e.prototype.setSelectedNodeList=function(e,t){void 0===t&&(t=!1);var n=this.selectedNodeList.findIndex(function(t){return e.key===t.key});t?e.isSelected&&-1===n&&this.selectedNodeList.push(e):e.isSelected&&-1===n&&(this.selectedNodeList=[e]),e.isSelected||(this.selectedNodeList=this.selectedNodeList.filter(function(t){return t.key!==e.key}))},e.prototype.setHalfCheckedNodeList=function(e){var t=this.halfCheckedNodeList.findIndex(function(t){return e.key===t.key});e.isHalfChecked&&-1===t?this.halfCheckedNodeList.push(e):!e.isHalfChecked&&t>-1&&(this.halfCheckedNodeList=this.halfCheckedNodeList.filter(function(t){return e.key!==t.key}))},e.prototype.setCheckedNodeList=function(e){var t=this.checkedNodeList.findIndex(function(t){return e.key===t.key});e.isChecked&&-1===t?this.checkedNodeList.push(e):!e.isChecked&&t>-1&&(this.checkedNodeList=this.checkedNodeList.filter(function(t){return e.key!==t.key}))},e.prototype.conductNodeState=function(e){var t=this;void 0===e&&(e="check");var n=[];switch(e){case"select":n=this.selectedNodeList;break;case"expand":n=this.expandedNodeList;break;case"match":n=this.matchedNodeList;break;case"check":n=this.checkedNodeList;var i=function(e){var n=e.getParentNode();return!!n&&(t.checkedNodeList.findIndex(function(e){return e.key===n.key})>-1||i(n))};this.isCheckStrictly||(n=this.checkedNodeList.filter(function(e){return!i(e)}));break;case"halfCheck":this.isCheckStrictly||(n=this.halfCheckedNodeList)}return n},e.prototype.setExpandedNodeList=function(e){if(!e.isLeaf){var t=this.expandedNodeList.findIndex(function(t){return e.key===t.key});e.isExpanded&&-1===t?this.expandedNodeList.push(e):!e.isExpanded&&t>-1&&(this.expandedNodeList=this.expandedNodeList.filter(function(t){return e.key!==t.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&&(we(t)||(t.children.every(function(e){return we(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;we(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(e){var t=this;this.matchedNodeList=[];var n=[];if(re(e)){var i=function(e){var t=e.getParentNode();t&&(n.push(t.key),i(t))},r=function(n){e&&n.title.includes(e)?(n.isMatched=!0,t.matchedNodeList.push(n),i(n)):n.isMatched=!1,n.children.forEach(function(e){r(e)})};this.rootNodes.forEach(function(e){r(e)}),this.calcExpandedKeys(n,this.rootNodes)}},e.prototype.afterRemove=function(e){var t=this,n=function(e){t.selectedNodeList=t.selectedNodeList.filter(function(t){return t.key!==e.key}),t.expandedNodeList=t.expandedNodeList.filter(function(t){return t.key!==e.key}),t.checkedNodeList=t.checkedNodeList.filter(function(t){return t.key!==e.key}),e.children&&e.children.forEach(function(e){n(e)})};e.forEach(function(e){n(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 r=h(e.children),o=r.next();!o.done;o=r.next()){var a=o.value;this.resetNodeLevel(a)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}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,r=n.bottom,o=n.height,a=Math.max(o*this.DRAG_SIDE_RANGE,this.DRAG_MIN_GAP);return t<=i+a?-1:t>=r-a?1:0},e.prototype.dropAndApply=function(e,t){var n=this;if(void 0===t&&(t=-1),e&&!(t>1)){var i=e.treeService,r=e.getParentNode(),o=this.selectedNode.getParentNode();switch(o?o.children=o.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(r){r.addChildren([this.selectedNode],r.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 r=this.getCheckedNodeList();Object.assign(i,{checkedKeys:r}),Object.assign(i,{nodes:r}),Object.assign(i,{keys:r.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:n.Injectable}],e}(),Te=new n.InjectionToken("NzTreeHigherOrder"),_e=function(){function e(e){this.nzTreeService=e}return e.prototype.coerceTreeNodes=function(e){var t=this;return this.nzTreeService.isArrayOfNzTreeNode(e)?e.map(function(e){return e.service=t.nzTreeService,e}):e.map(function(e){return new ge(e,null,t.nzTreeService)})},e.prototype.getTreeNodes=function(){return this.nzTreeService.rootNodes},e.prototype.getTreeNodeByKey=function(e){var t=[],n=function(e){t.push(e),e.getChildren().forEach(function(e){n(e)})};return this.getTreeNodes().forEach(function(e){n(e)}),t.find(function(t){return t.key===e})||null},e.prototype.getCheckedNodeList=function(){return this.nzTreeService.getCheckedNodeList()},e.prototype.getSelectedNodeList=function(){return this.nzTreeService.getSelectedNodeList()},e.prototype.getHalfCheckedNodeList=function(){return this.nzTreeService.getHalfCheckedNodeList()},e.prototype.getExpandedNodeList=function(){return this.nzTreeService.getExpandedNodeList()},e.prototype.getMatchedNodeList=function(){return this.nzTreeService.getMatchedNodeList()},e}(),Le=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.platform=new c.Platform,this.onClick=function(e){!i.triggerElement||!i.triggerElement.getAttribute||i.triggerElement.getAttribute("disabled")||"INPUT"===e.target.tagName||i.triggerElement.className.indexOf("disabled")>=0||i.fadeOutWave()},this.clickHandler=this.onClick.bind(this),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.platform.isBrowser&&this.ngZone.runOutsideAngular(function(){e.removeTriggerEvent(),e.triggerElement&&e.triggerElement.addEventListener("click",e.clickHandler,!0)})},e.prototype.removeTriggerEvent=function(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!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}(),Ae={disabled:!1},Pe=new n.InjectionToken("nz-wave-global-options",{providedIn:"root",factory:Ie});function Ie(){return Ae}var Re=function(){function e(e,t,n,i){this.ngZone=e,this.elementRef=t,this.config=n,this.animationType=i,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this.waveDisabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rendererRef",{get:function(){return this.waveRenderer},enumerable:!0,configurable:!0}),e.prototype.isConfigDisabled=function(){var e=!1;return this.config&&"boolean"==typeof this.config.disabled&&(e=this.config.disabled),"NoopAnimations"===this.animationType&&(e=!0),e},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 Le(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode))},e.prototype.disable=function(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())},e.prototype.enable=function(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()},e.decorators=[{type:n.Directive,args:[{selector:"[nz-wave]",exportAs:"nzWave"}]}],e.ctorParameters=function(){return[{type:n.NgZone},{type:n.ElementRef},{type:undefined,decorators:[{type:n.Optional},{type:n.Inject,args:[Pe]}]},{type:String,decorators:[{type:n.Optional},{type:n.Inject,args:[o.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={nzWaveExtraNode:[{type:n.Input}]},e}(),ze=function(){function e(){}return e.decorators=[{type:n.NgModule,args:[{imports:[c.PlatformModule],exports:[Re],declarations:[Re]}]}],e}(),De=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.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:n.Injectable}],e}(),je=new n.InjectionToken("NzMenuHigherOrder");e.AnimationCurves=b,e.AnimationDuration=m,e.Breakpoint={xxl:"xxl",xl:"xl",lg:"lg",md:"md",sm:"sm",xs:"xs"},e.DEFAULT_CASCADER_POSITIONS=$,e.DEFAULT_DROPDOWN_POSITIONS=G,e.DEFAULT_MENTION_POSITIONS=Z,e.DEFAULT_SUBMENU_POSITIONS=K,e.DEFAULT_TOOLTIP_POSITIONS=q,e.FakeViewportRuler=pe,e.InputBoolean=U,e.InputCssPixel=function(){return B("InputCssPixel",Y)},e.InputNumber=function(){return B("InputNumber",M)},e.MockNgZone=ye,e.NZ_WAVE_GLOBAL_CONFIG=Pe,e.NZ_WAVE_GLOBAL_CONFIG_FACTORY=Ie,e.NZ_WAVE_GLOBAL_DEFAULT_CONFIG=Ae,e.NzAddOnModule=v,e.NzClassListAddDirective=y,e.NzConnectedOverlayDirective=X,e.NzDropdownHigherOrderServiceToken=je,e.NzMeasureScrollbarService=ae,e.NzMenuBaseService=De,e.NzNoAnimationDirective=V,e.NzNoAnimationModule=F,e.NzOverlayModule=W,e.NzScrollService=te,e.NzStringTemplateOutletDirective=g,e.NzTreeBase=_e,e.NzTreeBaseService=xe,e.NzTreeHigherOrderServiceToken=Te,e.NzTreeNode=ge,e.NzUpdateHostClassService=se,e.NzWaveDirective=Re,e.NzWaveModule=ze,e.NzWaveRenderer=Le,e.POSITION_MAP=H,e.PREFIX=I,e.SCROLL_SERVICE_PROVIDER=ie,e.SCROLL_SERVICE_PROVIDER_FACTORY=ne,e.arraysEqual=function(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.cancelRequestAnimationFrame=J,e.collapseMotion=N,e.createDebugEle=ke,e.createFakeEvent=ue,e.createKeyboardEvent=de,e.createMouseEvent=ce,e.createTouchEvent=le,e.dispatchEvent=he,e.dispatchFakeEvent=fe,e.dispatchKeyboardEvent=function(e,t,n,i){return he(e,de(t,n,i))},e.dispatchMouseEvent=function(e,t,n,i,r){return void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=ce(t,n,i)),he(e,r)},e.dispatchTouchEvent=function(e,t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),he(e,le(t,n,i))},e.ensureNumberInRange=function(e,t,n){return isNaN(e)||e<t?t:e>n?n:e}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.fadeMotion=C,e.filterNotEmptyNode=oe,e.findFirstNotEmptyNode=function(e){for(var t=e.childNodes,n=0;n<t.length;n++){var i=t.item(n);if(oe(i))return i}return null},e.findLastNotEmptyNode=function(e){for(var t=e.childNodes,n=t.length-1;n>=0;n--){var i=t.item(n);if(oe(i))return i}return null},e.getCaretCoordinates=function(e,t,n){if(!Ne)throw new Error("textarea-caret-position#getCaretCoordinates should only be called in a browser");var i=n&&n.debug||!1;if(i){var r=document.querySelector("#input-textarea-caret-position-mirror-div");r&&r.parentNode.removeChild(r)}var o=document.createElement("div");o.id="input-textarea-caret-position-mirror-div",document.body.appendChild(o);var a=o.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"),be.forEach(function(e){c&&"lineHeight"===e?a.lineHeight=s.height:a[e]=s[e]}),Ce?e.scrollHeight>Ee(s.height)&&(a.overflowY="scroll"):a.overflow="hidden",o.textContent=e.value.substring(0,t),c&&(o.textContent=o.textContent.replace(/\s/g," "));var l=document.createElement("span");l.textContent=e.value.substring(t)||".",o.appendChild(l);var d={top:l.offsetTop+Ee(s.borderTopWidth),left:l.offsetLeft+Ee(s.borderLeftWidth),height:Ee(s.lineHeight)};return i?(l.style.backgroundColor="#eee",ke(e,d)):document.body.removeChild(o),d},e.getElementOffset=function(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.getMentions=function(e,t){if(void 0===t&&(t="@"),"string"!=typeof e)return[];var n=ve(t),i=e.match(n);return null!==i?i.map(function(e){return e.trim()}):[]}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.getPercent=
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function(e,t,n){return(n-e)/(t-e)*100},e.getPlacementName=function(e){var t=["originX","originY","overlayX","overlayY"],n=function(n){if(t.every(function(t){return e.connectionPair[t]===H[n][t]}))return{value:n}};for(var i in H){var r=n(i);if("object"==typeof r)return r.value}},e.getPrecision=function(e){var t=e.toString(),n=t.indexOf(".");return n>=0?t.length-n-1:0},e.getRegExp=ve,e.getRepeatedElement=me,e.helpMotion=E,e.isComponent=function(e){return e instanceof n.Type},e.isEmpty=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if(oe(t.item(n)))return!1;return!0},e.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isNil=function(e){return null==e},e.isNonEmptyString=function(e){return"string"==typeof e&&""!==e},e.isNotNil=re,e.isPromise=function(e){return!!e&&"function"==typeof e.then&&"function"==typeof e["catch"]},e.isTemplateRef=function(e){return e instanceof n.TemplateRef},e.isTouchEvent=function(e){return e.type.startsWith("touch")},e.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.isDevMode()&&console.log.apply(console,p([I],e))},e.moveUpMotion=k,e.notificationMotion=S,e.padEnd=function(e,t,n){return(""+e+me(t,n)).slice(0,t)},e.padStart=function(e,t,n){if(e.length>t)return e;var i=""+me(t,n)+e;return i.slice(i.length-t,i.length)},e.properties=be,e.reqAnimFrame=ee,e.responsiveMap={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},e.reverseChildNodes=function(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.scrollIntoView=function(e){var t=e;t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):e.scrollIntoView&&e.scrollIntoView(!1)},e.shallowCopyArray=function(e){return e.slice()},e.shallowEqual=function(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 r=Object.prototype.hasOwnProperty.bind(t),o=0;o<n.length;o++){var a=n[o];if(!r(a))return!1;if(e[a]!==t[a])return!1}return!0},e.silentEvent=function(e){e.stopPropagation(),e.preventDefault()},e.slideAlertMotion=T,e.slideMotion=x,e.throttleByAnimationFrameDecorator=function(){return function(e,t,n){var i=n.value,r=!1;return{configurable:!0,get:function(){if(r||this===e.prototype||this.hasOwnProperty(t))return i;var n=Se(i.bind(this));return r=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),r=!1,n}}}}
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/,e.timeUnits=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],e.toArray=
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
function(e){return null==e?[]:Array.isArray(e)?e:[e]},e.toBoolean=j,e.toCssPixel=Y,e.toNumber=M,e.typeInElement=function(e,t){t.focus(),t.value=e,fe(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.valueFunctionProp=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,p(t)):e},e.warn=z,e.warnDeprecation=D,e.wrappedErrorMessage=function(e){var t=e.message.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");return new RegExp(t)},e.zoomBadgeMotion=A,e.zoomBigMotion=L,e.zoomMotion=_,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ng-zorro-antd-core.umd.min.js.map