igniteui-angular
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
1 lines • 1.03 MB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jszip/dist/jszip"),require("@angular/common/http"),require("rxjs/internal/Subject"),require("@angular/platform-browser"),require("rxjs/operators"),require("@angular/animations"),require("@angular/common"),require("@angular/forms"),require("@angular/core"),require("rxjs")):"function"==typeof define&&define.amd?define("igniteui-angular",["exports","jszip/dist/jszip","@angular/common/http","rxjs/internal/Subject","@angular/platform-browser","rxjs/operators","@angular/animations","@angular/common","@angular/forms","@angular/core","rxjs"],t):t(e["igniteui-angular"]={},e.JSZip,e.ng.common.http,e.rxjs["internal/Subject"],e.ng.platformBrowser,e.rxjs.operators,e.ng.animations,e.ng.common,e.ng.forms,e.ng.core,e.rxjs)}(this,function(e,s,t,n,i,c,p,r,o,b,x){"use strict";var a={quad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",cubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",quart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",quint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",sine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",expo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",circ:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",back:"cubic-bezier(0.600, -0.280, 0.735, 0.045)"},l={quad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",cubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",quart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",quint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",sine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",expo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",circ:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",back:"cubic-bezier(0.175, 0.885, 0.320, 1.275)"},u=[p.style({opacity:"{{startOpacity}}"}),p.animate("{{duration}} {{delay}} {{easing}}",p.style({opacity:"{{endOpacity}}"}))],d={delay:"0s",duration:"350ms",easing:l.sine,endOpacity:1,startOpacity:0},h=p.animation(u,{params:d}),g=p.animation(u,{params:{delay:"0s",duration:"350ms",easing:l.sine,endOpacity:0,startOpacity:1}}),f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};function m(e,t){function i(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var y=function(){return(y=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function C(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(r=e[a])&&(s=(o<3?r(s):3<o?r(t,i,s):r(t,i))||s);return 3<o&&s&&Object.defineProperty(t,i,s),s}function _(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function I(e){var t="function"==typeof Symbol&&e[Symbol.iterator],i=0;return t?t.call(e):{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}}function w(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(a){r={error:a}}finally{try{n&&!n.done&&(i=o["return"])&&i.call(o)}finally{if(r)throw r.error}}return s}function S(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}var v=[p.style({backfaceVisibility:"hidden",transformStyle:"preserve-3d"}),p.animate("{{duration}} {{delay}} {{easing}}",p.keyframes([p.style({offset:0,transform:"translateZ({{startDistance}})\n rotate3d({{rotateX}}, {{rotateY}}, {{rotateZ}}, {{startAngle}}deg)"}),p.style({offset:1,transform:"translateZ({{endDistance}})\n rotate3d({{rotateX}}, {{rotateY}}, {{rotateZ}}, {{endAngle}}deg)"})]))],D={delay:"0s",duration:"600ms",easing:l.quad,endAngle:180,endDistance:"0px",rotateX:1,rotateY:0,rotateZ:0,startAngle:0,startDistance:"0px"},E=p.animation(v,{params:y({},D)}),O=p.animation(v,{params:y({},D,{endAngle:-180})}),P=p.animation(v,{params:y({},D,{rotateX:0,rotateY:1})}),T=p.animation(v,{params:y({},D,{endAngle:-180,rotateX:0,rotateY:1})}),R=p.animation(v,{params:y({},D,{endDistance:"170px"})}),k=p.animation(v,{params:y({},D,{endDistance:"-170px"})}),A=p.animation(v,{params:y({},D,{endDistance:"170px",rotateX:0,rotateY:1})}),L=p.animation(v,{params:y({},D,{endDistance:"-170px",rotateX:0,rotateY:1})}),F=[p.style({opacity:"{{startOpacity}}",transform:"rotate3d({{rotateX}},{{rotateY}},{{rotateZ}},{{startAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}),p.animate("{{duration}} {{delay}} {{easing}}",p.style({offset:0,opacity:"{{endOpacity}}",transform:"rotate3d({{rotateX}},{{rotateY}},{{rotateZ}},{{endAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}))],M={delay:"0s",duration:"600ms",easing:l.quad,endAngle:0,endOpacity:1,rotateX:0,rotateY:0,rotateZ:1,startAngle:-360,startOpacity:0,xPos:"center",yPos:"center"},V=y({},M,{easing:a.quad,endOpacity:0,startOpacity:1}),H=p.animation(F,{params:y({},M)}),B=p.animation(F,{params:y({},V)}),j=p.animation(F,{params:y({},M,{xPos:"top"})}),N=p.animation(F,{params:y({},V,{xPos:"top"})}),G=p.animation(F,{params:y({},M,{xPos:"right"})}),z=p.animation(F,{params:y({},V,{xPos:"right"})}),W=p.animation(F,{params:y({},M,{xPos:"bottom"})}),K=p.animation(F,{params:y({},V,{xPos:"bottom"})}),U=p.animation(F,{params:y({},M,{xPos:"left"})}),$=p.animation(F,{params:y({},V,{xPos:"left"})}),Y=p.animation(F,{params:y({},M,{xPos:"right",yPos:"top"})}),X=p.animation(F,{params:y({},V,{xPos:"right",yPos:"top"})}),q=p.animation(F,{params:y({},M,{xPos:"right",yPos:"bottom"})}),Z=p.animation(F,{params:y({},V,{xPos:"right",yPos:"bottom"})}),J=p.animation(F,{params:y({},M,{xPos:"left",yPos:"bottom"})}),Q=p.animation(F,{params:y({},V,{xPos:"left",yPos:"bottom"})}),ee=p.animation(F,{params:y({},M,{xPos:"left",yPos:"top"})}),te=p.animation(F,{params:y({},V,{xPos:"left",yPos:"top"})}),ie=p.animation(F,{params:y({},M,{rotateX:1,rotateY:1,rotateZ:0})}),ne=p.animation(F,{params:y({},V,{rotateX:1,rotateY:1,rotateZ:0})}),re=p.animation(F,{params:y({},M,{rotateX:-1,rotateY:1,rotateZ:0})}),oe=p.animation(F,{params:y({},V,{rotateX:-1,rotateY:1,rotateZ:0})}),se=p.animation(F,{params:y({},M,{rotateX:0,rotateY:1,rotateZ:0})}),ae=p.animation(F,{params:y({},V,{rotateX:0,rotateY:1,rotateZ:0})}),le=p.animation(F,{params:y({},M,{rotateX:1,rotateY:0,rotateZ:0})}),ce=p.animation(F,{params:y({},V,{rotateX:1,rotateY:0,rotateZ:0})}),pe=[p.animate("{{duration}} {{delay}} {{easing}}",p.keyframes([p.style({offset:0,transform:"rotate(0deg) translate{{direction}}(0)",transformOrigin:"{{xPos}} {{yPos}}"}),p.style({offset:.1,transform:"rotate({{endAngle}}deg) translate{{direction}}(-{{startDistance}})"}),p.style({offset:.2,transform:"rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"}),p.style({offset:.3,transform:"rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"}),p.style({offset:.4,transform:"rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"}),p.style({offset:.5,transform:"rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"}),p.style({offset:.6,transform:"rotate(-{{startAngle}}deg) translate{{direction}}({{startDistance}})"}),p.style({offset:.7,transform:"rotate({{startAngle}}deg) translate{{direction}}(-{{startDistance}})"}),p.style({offset:.8,transform:"rotate(-{{endAngle}}deg) translate{{direction}}({{endDistance}})"}),p.style({offset:.9,transform:"rotate({{endAngle}}deg) translate{{direction}}(-{{endDistance}})"}),p.style({offset:1,transform:"rotate(0deg) translate{{direction}}(0)",transformOrigin:"{{xPos}} {{yPos}}"})]))],ue={delay:"0s",direction:"X",duration:"800ms",easing:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",endAngle:0,endDistance:"8px",startAngle:0,startDistance:"10px",xPos:"center",yPos:"center"},de=p.animation(pe,{params:y({},ue,{direction:"X"})}),he=p.animation(pe,{params:y({},ue,{direction:"Y"})}),ge=p.animation(pe,{params:y({},ue,{endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",yPos:"top"})}),fe=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",yPos:"bottom"})}),me=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"right",yPos:"center"})}),ye=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"left",yPos:"center"})}),ve=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:8,endDistance:"0",startAngle:10,startDistance:"0",xPos:"center",yPos:"center"})}),xe=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"right",yPos:"top"})}),be=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"right",yPos:"bottom"})}),Ce=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"left",yPos:"bottom"})}),_e=p.animation(pe,{params:y({},ue,{direction:"Y",endAngle:2,endDistance:"0",startAngle:4,startDistance:"0",xPos:"left",yPos:"top"})}),we=[p.style({animationTimingFunction:"ease-out",transform:"scale(1)",transformOrigin:"center center"}),p.animate("{{duration}} {{delay}} {{easing}}",p.keyframes([p.style({animationTimingFunction:"ease-in",offset:.1,transform:"scale(0.91)"}),p.style({animationTimingFunction:"ease-out",offset:.17,transform:"scale(0.98)"}),p.style({animationTimingFunction:"ease-in",offset:.33,transform:"scale(0.87)"}),p.style({animationTimingFunction:"ease-out",offset:.45,transform:"scale(1)"})]))],Ie=[p.animate("{{duration}} {{delay}} {{easing}}",p.keyframes([p.style({offset:0,transform:"scale({{fromScale}})"}),p.style({offset:.5,transform:"scale({{toScale}})"}),p.style({offset:1,transform:"scale({{fromScale}})"})]))],Se={delay:"0s",duration:".5s",easing:"ease-in-out",fromScale:1,toScale:1.1},De=[p.animate("{{duration}} {{delay}} {{easing}}",p.keyframes([p.style({offset:0,opacity:.8,transform:"scale({{fromScale}})"}),p.style({offset:.8,opacity:0,transform:"scale({{midScale}})"}),p.style({offset:1,opacity:0,transform:"scale({{toScale}})"})]))],Ee=p.animation(Ie,{params:y({},Se)}),Oe=p.animation(Ie,{params:y({},Se,{toScale:.9})}),Pe=p.animation(we,{params:y({},{delay:"0s",duration:"1.5s",easing:"ease-in-out"})}),Te=p.animation(De,{params:y({},{delay:"0s",duration:".8s",easing:"ease-in-out",fromScale:.2,midScale:1.2,toScale:2.2})}),Re=[p.style({opacity:"{{startOpacity}}",transform:"scale{{direction}}({{fromScale}})",transformOrigin:"{{xPos}} {{yPos}}"}),p.animate("{{duration}} {{delay}} {{easing}}",p.style({opacity:"{{endOpacity}}",transform:"scale{{direction}}({{toScale}})",transformOrigin:"{{xPos}} {{yPos}}"}))],ke={delay:"0s",direction:"",duration:"350ms",easing:l.quad,endOpacity:1,fromScale:.5,startOpacity:0,toScale:1,xPos:"50%",yPos:"50%"},Ae=y({},ke,{easing:l.sine,endOpacity:0,fromScale:1,startOpacity:1,toScale:.5}),Le=p.animation(Re,{params:ke}),Fe=p.animation(Re,{params:y({},ke,{xPos:"0",yPos:"100%"})}),Me=p.animation(Re,{params:y({},ke,{direction:"Y",fromScale:.4})}),Ve=p.animation(Re,{params:y({},ke,{xPos:"50%",yPos:"0"})}),He=p.animation(Re,{params:y({},ke,{xPos:"0",yPos:"50%"})}),Be=p.animation(Re,{params:y({},ke,{direction:"Y",fromScale:.4,xPos:"100%",yPos:"0"})}),je=p.animation(Re,{params:y({},ke,{xPos:"100%",yPos:"0"})}),Ne=p.animation(Re,{params:y({},ke,{xPos:"0",yPos:"0"})}),Ge=p.animation(Re,{params:y({},ke,{direction:"Y",fromScale:.4,xPos:"0",yPos:"100%"})}),ze=p.animation(Re,{params:y({},ke,{xPos:"100%",yPos:"50%"})}),We=p.animation(Re,{params:y({},ke,{direction:"X",fromScale:.4})}),Ke=p.animation(Re,{params:y({},ke,{xPos:"100%",yPos:"100%"})}),Ue=p.animation(Re,{params:y({},ke,{direction:"X",fromScale:.4,xPos:"0",yPos:"0"})}),$e=p.animation(Re,{params:y({},ke,{xPos:"50%",yPos:"100%"})}),Ye=p.animation(Re,{params:y({},ke,{direction:"X",fromScale:.4,xPos:"100%",yPos:"100%"})}),Xe=p.animation(Re,{params:Ae}),qe=p.animation(Re,{params:y({},Ae,{xPos:"0",yPos:"100%"})}),Ze=p.animation(Re,{params:y({},Ae,{xPos:"100%",yPos:"100%"})}),Je=p.animation(Re,{params:y({},Ae,{direction:"Y",toScale:.3})}),Qe=p.animation(Re,{params:y({},Ae,{direction:"Y",toScale:.3,xPos:"100%",yPos:"0"})}),et=p.animation(Re,{params:y({},Ae,{direction:"Y",toScale:.3,xPos:"0",yPos:"100%"})}),tt=p.animation(Re,{params:y({},Ae,{xPos:"50%",yPos:"0"})}),it=p.animation(Re,{params:y({},Ae,{xPos:"0",yPos:"50%"})}),nt=p.animation(Re,{params:y({},Ae,{xPos:"100%",yPos:"0"})}),rt=p.animation(Re,{params:y({},Ae,{xPos:"0",yPos:"0"})}),ot=p.animation(Re,{params:y({},Ae,{xPos:"100%",yPos:"50%"})}),st=p.animation(Re,{params:y({},Ae,{xPos:"50%",yPos:"100%"})}),at=p.animation(Re,{params:y({},Ae,{direction:"X",toScale:.3})}),lt=p.animation(Re,{params:y({},Ae,{direction:"X",toScale:.3,xPos:"0",yPos:"0"})}),ct=p.animation(Re,{params:y({},Ae,{direction:"X",toScale:.3,xPos:"100%",yPos:"100%"})}),pt=[p.style({opacity:"{{startOpacity}}",transform:"{{fromPosition}}"}),p.animate("{{duration}} {{delay}} {{easing}}",p.style({opacity:"{{endOpacity}}",transform:"{{toPosition}}"}))],ut={delay:"0s",duration:"350ms",easing:l.quad,endOpacity:1,fromPosition:"translateY(-500px)",startOpacity:0,toPosition:"translateY(0)"},dt={delay:"0s",duration:"350ms",easing:a.quad,endOpacity:0,fromPosition:"translateY(0)",startOpacity:1,toPosition:"translateY(-500px)"},ht=p.animation(pt,{params:ut}),gt=p.animation(pt,{params:{delay:"0s",duration:"350ms",easing:l.quad,endOpacity:1,fromPosition:"translateX(-500px)",startOpacity:0,toPosition:"translateY(0)"}}),ft=p.animation(pt,{params:{delay:"0s",duration:"350ms",easing:l.quad,endOpacity:1,fromPosition:"translateX(500px)",startOpacity:0,toPosition:"translateY(0)"}}),mt=p.animation(pt,{params:{delay:"0s",duration:"350ms",easing:l.quad,endOpacity:1,fromPosition:"translateY(500px)",startOpacity:0,toPosition:"translateY(0)"}}),yt=p.animation(pt,{params:y({},ut,{fromPosition:"translateY(-500px) translateX(500px)",toPosition:"translateY(0) translateX(0)"})}),vt=p.animation(pt,{params:y({},ut,{fromPosition:"translateY(-500px) translateX(-500px)",toPosition:"translateY(0) translateX(0)"})}),xt=p.animation(pt,{params:y({},ut,{fromPosition:"translateY(500px) translateX(500px)",toPosition:"translateY(0) translateX(0)"})}),bt=p.animation(pt,{params:y({},ut,{fromPosition:"translateY(500px) translateX(-500px)",toPosition:"translateY(0) translateX(0)"})}),Ct=p.animation(pt,{params:dt}),_t=p.animation(pt,{params:y({},dt,{toPosition:"translateX(500px)"})}),wt=p.animation(pt,{params:{delay:"0s",duration:"350ms",easing:a.quad,endOpacity:0,fromPosition:"translateY(0)",startOpacity:1,toPosition:"translateY(500px)"}}),It=p.animation(pt,{params:y({},dt,{toPosition:"translateX(-500px)"})}),St=p.animation(pt,{params:y({},dt,{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(-500px) translateX(500px)"})}),Dt=p.animation(pt,{params:y({},dt,{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(500px) translateX(500px)"})}),Et=p.animation(pt,{params:y({},dt,{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(500px) translateX(-500px)"})}),Ot=p.animation(pt,{params:y({},dt,{fromPosition:"translateY(0) translateX(0)",toPosition:"translateY(-500px) translateX(-500px)"})}),Pt=[p.style({opacity:"{{startOpacity}}",transform:"rotate{{direction}}({{startAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}),p.animate("{{duration}} {{delay}} {{easing}}",p.style({opacity:"{{endOpacity}}",transform:"rotate{{direction}}({{endAngle}}deg)",transformOrigin:"{{xPos}} {{yPos}}"}))],Tt={delay:"0s",direction:"X",duration:".5s",easing:l.back,endAngle:0,endOpacity:1,startAngle:-100,startOpacity:0,xPos:"top",yPos:"center"},Rt=y({},Tt,{duration:".55s",easing:a.back,endAngle:70,endOpacity:0,startAngle:0,startOpacity:1}),kt=p.animation(Pt,{params:y({},Tt)}),At=p.animation(Pt,{params:y({},Tt,{direction:"Y",xPos:"center",yPos:"right"})}),Lt=p.animation(Pt,{params:y({},Tt,{startAngle:100,xPos:"bottom"})}),Ft=p.animation(Pt,{params:y({},Tt,{direction:"Y",startAngle:100,xPos:"center",yPos:"left"})}),Mt=p.animation(Pt,{params:y({},Tt,{duration:".6s",startAngle:70})}),Vt=p.animation(Pt,{params:y({},Tt,{direction:"Y",duration:".6s",startAngle:70,xPos:"center",yPos:"right"})}),Ht=p.animation(Pt,{params:y({},Tt,{duration:".6s",startAngle:-70,xPos:"bottom"})}),Bt=p.animation(Pt,{params:y({},Tt,{direction:"Y",duration:".6s",startAngle:-70,xPos:"center",yPos:"left"})}),jt=p.animation(Pt,{params:y({},Rt)}),Nt=p.animation(Pt,{params:y({},Rt,{direction:"Y",xPos:"center",yPos:"right"})}),Gt=p.animation(Pt,{params:y({},Rt,{endAngle:-70,xPos:"bottom"})}),zt=p.animation(Pt,{params:y({},Rt,{direction:"Y",endAngle:-70,xPos:"center",yPos:"left"})}),Wt=p.animation(Pt,{params:y({},Rt,{duration:".45s",endAngle:-100})}),Kt=p.animation(Pt,{params:y({},Rt,{direction:"Y",duration:".45s",endAngle:-100,xPos:"center",yPos:"right"})}),Ut=p.animation(Pt,{params:y({},Rt,{duration:".45s",endAngle:100,xPos:"bottom"})}),$t=p.animation(Pt,{params:y({},Rt,{direction:"Y",duration:".45s",endAngle:100,xPos:"center",yPos:"left"})}),Yt=[p.style({opacity:"{{ startOpacity }}",height:"{{ startHeight }}"}),p.animate("{{duration}} {{delay}} {{easing}}",p.style({opacity:"{{ endOpacity }}",height:"{{ endHeight }}"}))],Xt={delay:"0s",duration:"350ms",easing:a.quad,startOpacity:0,endOpacity:1,startHeight:"",endHeight:""},qt=p.animation(Yt,{params:y({},Xt,{easing:l.quad,startOpacity:0,endOpacity:1,startHeight:"0px",endHeight:"*"})}),Zt=p.animation(Yt,{params:y({},Xt,{easing:l.quad,startOpacity:1,endOpacity:0,startHeight:"*",endHeight:"0px"})}),Jt=function(){function e(){this.navs={}}return e.prototype.add=function(e,t){this.navs[e]=t},e.prototype.remove=function(e){delete this.navs[e]},e.prototype.get=function(e){if(e)return this.navs[e]},e.prototype.toggle=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.navs[e])return(t=this.navs[e]).toggle.apply(t,S(i))},e.prototype.open=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.navs[e])return(t=this.navs[e]).open.apply(t,S(i))},e.prototype.close=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];if(this.navs[e])return(t=this.navs[e]).close.apply(t,S(i))},e}(),Qt=function(){function e(e){this.state=e}return e.prototype.toggleNavigationDrawer=function(){this.state.toggle(this.target,!0)},e.decorators=[{type:b.Directive,args:[{selector:"[igxNavToggle]"}]}],e.ctorParameters=function(){return[{type:Jt}]},e.propDecorators={target:[{type:b.Input,args:["igxNavToggle"]}],toggleNavigationDrawer:[{type:b.HostListener,args:["click"]}]},e}(),ei=function(){function e(e){this.state=e}return e.prototype.closeNavigationDrawer=function(){this.state.close(this.target,!0)},e.decorators=[{type:b.Directive,args:[{selector:"[igxNavClose]"}]}],e.ctorParameters=function(){return[{type:Jt}]},e.propDecorators={target:[{type:b.Input,args:["igxNavClose"]}],closeNavigationDrawer:[{type:b.HostListener,args:["click"]}]},e}(),ti=function(){function e(){}return e.decorators=[{type:b.NgModule,args:[{declarations:[ei,Qt],exports:[ei,Qt],providers:[Jt]}]}],e}();function ii(e,t){var i=[];if(!e)return i;for(var n=e.length;n--;)i[n]=t?ri(e[n]):e[n];return i}function ni(e,t){var i,n;if(!oi(e))throw new Error("Cannot merge into "+e+". First param must be an object.");if(!oi(t))return e;try{for(var r=I(Object.keys(t)),o=r.next();!o.done;o=r.next()){var s=o.value;e[s]=ri(t[s])}}catch(a){i={error:a}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}finally{if(i)throw i.error}}return e}function ri(e){var t,i;if(si(e))return new Date(e.getTime());if(Array.isArray(e))return S(e);if(e instanceof Map||e instanceof Set)return e;if(oi(e)){var n={};try{for(var r=I(Object.keys(e)),o=r.next();!o.done;o=r.next()){var s=o.value;n[s]=ri(e[s])}}catch(a){t={error:a}}finally{try{o&&!o.done&&(i=r["return"])&&i.call(r)}finally{if(t)throw t.error}}return n}return e}function oi(e){return e&&"[object Object]"===e.toString()}function si(e){return"[object Date]"===Object.prototype.toString.call(e)}function ai(e,t){var i=null;(li()||ci())&&(i=t.style.overflow,t.style.overflow="visible"),e.selectNodeContents(t);var n=e.getBoundingClientRect().width;return(li()||ci())&&(t.style.overflow=i),n}function li(){return 0<navigator.appVersion.indexOf("Trident/")}function ci(){return/Edge[\/\s](\d+\.\d+)/.test(navigator.userAgent)}function pi(e){var i=[];return e.forEach(function(e){if(i.push(e),e.children){var t=Array.isArray(e.children)?e.children:e.children.toArray();i=i.concat(pi(t))}}),i}var ui=new Set(["down","up","left","right","arrowdown","arrowup","arrowleft","arrowright","home","end","space","spacebar"," "]),di=new Set("right down arrowright arrowdown".split(" ")),hi=new Set("left up arrowleft arrowup".split(" ")),gi=new Set(S(Array.from(ui),["tab","enter","f2","escape","esc"])),fi={None:0,Asc:1,Desc:2};fi[fi.None]="None",fi[fi.Asc]="Asc",fi[fi.Desc]="Desc";var mi=function(){function e(){}return e.instance=function(){return this._instance||(this._instance=new this)},e.prototype.sort=function(e,t,i,n,r){var o=this,s=t,a=i===fi.Desc?-1:1;return this.arraySort(e,function(e,t){return o.compareObjects(e,t,s,a,n,r)})},e.prototype.compareValues=function(e,t){var i=null===e||e===undefined,n=null===t||t===undefined;return i?n?0:-1:n?1:t<e?1:e<t?-1:0},e.prototype.compareObjects=function(e,t,i,n,r,o){var s=o(e,i),a=o(t,i);return r&&(s=s&&s.toLowerCase?s.toLowerCase():s,a=a&&a.toLowerCase?a.toLowerCase():a),n*this.compareValues(s,a)},e.prototype.arraySort=function(e,t){return e.sort(t)},e._instance=null,e}(),yi=function(){function e(){}return e.prototype.sort=function(e,t){return this.sortDataRecursive(e,t)},e.prototype.groupedRecordsByExpression=function(e,t,i){var n,r,o=[],s=i.fieldName,a=e.length;o.push(e[t]),r=this.getFieldValue(e[t],s),t++;var l=i.groupingComparer||mi.instance().compareValues;for(n=t;n<a&&0===l(this.getFieldValue(e[n],s),r);n++)o.push(e[n]);return o},e.prototype.sortDataRecursive=function(e,t,i){var n,r,o,s,a;void 0===i&&(i=0);var l=t.length,c=e.length;if(l<=(i=i||0)||c<=1)return e;if((o=t[i]).strategy||(o.strategy=mi.instance()),e=o.strategy.sort(e,o.fieldName,o.dir,o.ignoreCase,this.getFieldValue),i===l-1)return e;for(n=0;n<c;n++){for(1<(a=(s=this.groupedRecordsByExpression(e,n,o)).length)&&(s=this.sortDataRecursive(s,t,i+1)),r=0;r<a;r++)e[n+r]=s[r];n+=a-1}return e},e.prototype.groupDataRecursive=function(e,t,i,n,r,o){var s,a;void 0===o&&(o=[]);for(var l=0,c=[];l<e.length;){var p=this.groupedRecordsByExpression(e,l,t[i]),u={expression:t[i],level:i,records:ii(p),value:p[0][t[i].fieldName],groupParent:n,groups:[]};if(n?n.groups.push(u):o.push(u),i<t.length-1)c=c.concat(this.groupDataRecursive(p,t,i+1,u,r,o));else try{for(var d=I(p),h=d.next();!h.done;h=d.next()){var g=h.value;r.push(u),c.push(g)}}catch(f){s={error:f}}finally{try{h&&!h.done&&(a=d["return"])&&a.call(d)}finally{if(s)throw s.error}}l+=p.length}return c},e.prototype.getFieldValue=function(e,t){return e[t]},e}(),vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.getFieldValue=function(e,t){return e.data[t]},t}(yi),xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.groupBy=function(e,t,i){var n=[];return{data:this.groupDataRecursive(e,t,0,null,n,i),metadata:n}},t}(yi),bi={None:0,IncorrectPageIndex:1,IncorrectRecordsPerPage:2};bi[bi.None]="None",bi[bi.IncorrectPageIndex]="IncorrectPageIndex",bi[bi.IncorrectRecordsPerPage]="IncorrectRecordsPerPage";var Ci=function(){function r(e,t){this.filteringOperands=[],this.operator=e,this.fieldName=t}return r.prototype.find=function(e){var t=this.findIndex(e);return-1<t?this.filteringOperands[t]:null},r.prototype.findIndex=function(e){for(var t,i=0;i<this.filteringOperands.length;i++)if((t=this.filteringOperands[i])instanceof r){if(this.isFilteringExpressionsTreeForColumn(t,e))return i}else if(t.fieldName===e)return i;return-1},r.prototype.isFilteringExpressionsTreeForColumn=function(e,t){if(e.fieldName===t)return!0;for(var i,n=0;n<e.filteringOperands.length;n++)return(i=e.filteringOperands[n])instanceof r?this.isFilteringExpressionsTreeForColumn(i,t):i.fieldName===t;return!1},r}(),_i={ADD:"add",DELETE:"delete",UPDATE:"update"},wi=function(){function e(){this.editCellState=new Map,this.editRowState=new Map,this.destroyMap=new Map}return e.prototype.get_column_by_name=function(t){return this.grid.columnList.find(function(e){return e.field===t})},e.prototype.get_summary_data=function(){var i=this.grid,n=i.filteredData;n||(i.transactions.enabled?(n=Ti.mergeTransactions(ii(i.data),i.transactions.getAggregatedChanges(!0),i.primaryKey),i.transactions.getTransactionLog().filter(function(e){return e.type===_i.DELETE}).map(function(e){return e.id}).forEach(function(e){var t=(i.primaryKey?n.map(function(e){return e[i.primaryKey]}):n).indexOf(e);-1!==t&&n.splice(t,1)})):n=i.data);return n},e.prototype.getRowData=function(e){return this.get_all_data(this.grid.transactions.enabled)[this.get_row_index_in_data(e)]},e.prototype.escape_editMode=function(){this.grid.crudService.end(),this.grid.refreshSearch()},e.prototype.get_cell_inEditMode=function(){return this.grid.crudService.cell},e.prototype.get_row_index_in_data=function(t){var i=this.grid;if(!i)return-1;var e=this.get_all_data(i.transactions.enabled);return i.primaryKey?e.findIndex(function(e){return e[i.primaryKey]===t}):e.indexOf(t)},e.prototype.get_row_by_key=function(t){var i=this.grid.primaryKey;return i!==undefined&&null!==i?this.grid.dataRowList.find(function(e){return e.rowData[i]===t}):this.grid.dataRowList.find(function(e){return e.rowData===t})},e.prototype.get_row_by_index=function(t){return this.grid.rowList.find(function(e){return e.index===t})},e.prototype.get_cell_by_key=function(e,t){var i=this.get_row_by_key(e);if(i&&i.cells)return i.cells.find(function(e){return e.column.field===t})},e.prototype.get_cell_by_index=function(e,t){var i=this.get_row_by_index(e);if(i&&i.cells)return i.cells.find(function(e){return e.columnIndex===t})},e.prototype.get_cell_by_visible_index=function(e,t){var i=this.get_row_by_index(e);if(i&&i.cells)return i.cells.find(function(e){return e.visibleColumnIndex===t})},e.prototype.submit_value=function(){var e=this.grid.crudService.cell;if(e){if(this.update_cell(e,e.editValue).cancel)return;this.escape_editMode()}},e.prototype.update_cell=function(e,t){var i,n=this.get_all_data(this.grid.transactions.enabled),r=this.get_row_index_in_data(e.id.rowID);e.editValue=t;var o=this.grid.transactions.getAggregatedValue(e.id.rowID,!0);o&&(e.value=o[e.column.field],e.rowData=o);var s=e.createEditEventArgs();return this.grid.onCellEdit.emit(s),s.cancel?s:(s.newValue=e.castToNumber(s.newValue),function a(e,t){return si(e)&&si(t)?e.getTime()===t.getTime():e===t}(s.oldValue,s.newValue)||(this.grid.summaryService.clearSummaryCache(s),this.updateData(this.grid,e.id.rowID,n[r],e.rowData,((i={})[e.column.field]=s.newValue,i)),this.grid.primaryKey===e.column.field&&(this.grid.selection.is_item_selected(this.grid.id,e.id.rowID)&&(this.grid.selection.deselect_item(this.grid.id,e.id.rowID),this.grid.selection.select_item(this.grid.id,s.newValue)),this.grid.hasSummarizedColumns&&this.grid.summaryService.removeSummaries(e.id.rowID)),this.grid.rowEditable&&this.grid.crudService.row&&this.grid.crudService.row.id===e.id.rowID&&this.grid.transactions.enabled||(this.grid.summaryService.clearSummaryCache(s),this.grid._pipeTrigger++)),s)},e.prototype.updateData=function(e,t,i,n,r){if(e.transactions.enabled){var o={id:t,type:_i.UPDATE,newValue:r};e.transactions.add(o,n)}else ni(i,r)},e.prototype._update_row=function(e,t){var i=this.grid,n=i.crudService.row;if(e.newData=t||i.transactions.getAggregatedValue(e.id,!0),n&&e.id===n.id)e.data=y({},e.data,n.transactionState);else if(this.grid.transactions.enabled){var r=i.transactions.getState(e.id)?i.transactions.getState(e.id).value:null;e.data=r?Object.assign(e.data,r):e.data}},e.prototype.update_row=function(e,t){var i=this.grid,n=i.selection.is_item_selected(i.id,e.id),r=i.crudService.row,o=this.get_all_data(i.transactions.enabled),s=this.get_row_index_in_data(e.id),a=i.hasSummarizedColumns;this._update_row(e,t);var l=e.createEditEventArgs();if(-1===s)return l;if(i.onRowEdit.emit(l),l.cancel)return l;if(r&&i.transactions.endPending(!1),!l.newValue)return l;a&&i.summaryService.removeSummaries(l.rowID),this.updateData(i,e.id,o[s],l.oldValue,l.newValue);var c=i.primaryKey?l.newValue[i.primaryKey]:l.newValue;return n&&(i.selection.deselect_item(i.id,e.id),i.selection.select_item(i.id,c)),a&&i.summaryService.removeSummaries(c),i._pipeTrigger++,l},e.prototype.update_row_in_array=function(e,t,i){this.grid.data[i]=e},e.prototype.sort=function(e){e.dir===fi.None&&this.remove_grouping_expression(e.fieldName);var t=ii(this.grid.sortingExpressions);this.prepare_sorting_expression([t],e),this.grid.sortingExpressions=t},e.prototype.sort_multiple=function(e){var t,i,n=ii(this.grid.sortingExpressions);try{for(var r=I(e),o=r.next();!o.done;o=r.next()){var s=o.value;s.dir===fi.None&&this.remove_grouping_expression(s.fieldName),this.prepare_sorting_expression([n],s)}}catch(a){t={error:a}}finally{try{o&&!o.done&&(i=r["return"])&&i.call(r)}finally{if(t)throw t.error}}this.grid.sortingExpressions=n},e.prototype.filter=function(e,t,i,n){var r=this.grid,o=r.filteringExpressionsTree;r.endEdit(!1),r.paging&&(r.page=0);var s=o.findIndex(e);-1<s&&o.filteringOperands.splice(s,1),this.prepare_filtering_expression(o,e,t,i,n,s),r.filteringExpressionsTree=o},e.prototype.filter_global=function(e,t,i){var n,r;if(t){var o=this.grid,s=o.filteringExpressionsTree;o.endEdit(!1),o.paging&&(o.page=0),s.filteringOperands=[];try{for(var a=I(o.columns),l=a.next();!l.done;l=a.next()){var c=l.value;this.prepare_filtering_expression(s,c.field,e,t,i||c.filteringIgnoreCase)}}catch(p){n={error:p}}finally{try{l&&!l.done&&(r=a["return"])&&r.call(a)}finally{if(n)throw n.error}}o.filteringExpressionsTree=s}},e.prototype.clear_filter=function(e){if(e&&!this.get_column_by_name(e))return;var t=this.grid;t.endEdit(!1);var i=t.filteringExpressionsTree,n=i.findIndex(e);-1<n?i.filteringOperands.splice(n,1):e||(i.filteringOperands=[]),t.filteringExpressionsTree=i},e.prototype.clear_sort=function(t){var e=this.grid.sortingExpressions,i=e.findIndex(function(e){return e.fieldName===t});-1<i&&(e.splice(i,1),this.grid.sortingExpressions=e)},e.prototype.prepare_filtering_expression=function(e,t,i,n,r,o){var s;void 0===o&&(o=-1);var a=e.findIndex(t),l=n instanceof Ci?n:null,c=n instanceof Ci?null:n,p={fieldName:t,searchVal:i,condition:c,ignoreCase:r};-1===a&&(l?-1<o?e.filteringOperands.splice(o,0,l):e.filteringOperands.push(l):c&&((s=new Ci(e.operator,t)).filteringOperands.push(p),e.filteringOperands.push(s)))},e.prototype.prepare_sorting_expression=function(e,i){if(i.dir!==fi.None){for(var t=e[0],n=1;n<e.length;n++)t.length<e[n].length&&(t=e[n]);var r=t.find(function(e){return e.fieldName===i.fieldName});e.forEach(function(e){var t=e.find(function(e){return e.fieldName===i.fieldName});t||r?!t&&r?(e.push(r),Object.assign(r,i)):Object.assign(t,i):e.push(i)})}else e.forEach(function(e){e.splice(e.findIndex(function(e){return e.fieldName===i.fieldName}),1)})},e.prototype.remove_grouping_expression=function(e){},e.prototype.should_apply_number_style=function(e){return e.dataType===Pi.Number},e.prototype.get_data=function(){var e=this.grid;return e.data?e.data:[]},e.prototype.get_all_data=function(e){void 0===e&&(e=!1);var t=this.grid,i=t.data?t.data:[];return i=e?t.dataWithAddedInTransactionRows:i},e.prototype.get_filtered_data=function(){return this.grid.filteredData},e.prototype.getSortStrategyPerColumn=function(e){return this.get_column_by_name(e)?this.get_column_by_name(e).sortStrategy:undefined},e.prototype.addRowToData=function(e){var t=this.grid;if(t.transactions.enabled){var i={id:t.primaryKey?e[t.primaryKey]:e,type:_i.ADD,newValue:e};t.transactions.add(i)}else t.data.push(e)},e.prototype.deleteRowFromData=function(e,t){var i=this.grid;if(-1!==t)if(i.transactions.enabled){var n={id:e,type:_i.DELETE,newValue:null};i.transactions.add(n,i.data[t])}else i.data.splice(t,1);else{var r=i.transactions.getState(e);i.transactions.add({id:e,type:_i.DELETE,newValue:null},r&&r.recordRef)}},e.prototype.deleteRowById=function(e){var t,i=this.grid,n=this.get_all_data();t=i.primaryKey?n.map(function(e){return e[i.primaryKey]}).indexOf(e):n.indexOf(e);var r=i.transactions.getState(e),o=r&&r.type!==_i.DELETE;if(-1!==t||o){i.endEdit(!0),i.onRowDeleted.emit({data:n[t]}),i.rowSelectable&&i.selection.is_item_selected(i.id,e)?i.deselectRows([e]):i.checkHeaderCheckboxStatus(),this.deleteRowFromData(e,t),i._pipeTrigger++,i.cdr.markForCheck();var s=i.transactions.enabled?i.dataWithAddedInTransactionRows:n;i.refreshSearch(),s.length%i.perPage==0&&s.length/i.perPage-1<i.page&&0!==i.page&&i.page--}},e.prototype.get_row_id=function(e){var t=this.grid;return t.primaryKey?e[t.primaryKey]:e},e.prototype.row_deleted_transaction=function(e){var t=this.grid;if(!t)return!1;if(!t.transactions.enabled)return!1;var i=t.transactions.getState(e);return!!i&&i.type===_i.DELETE},e.prototype.atInexistingPage=function(){var e=this.grid;return e.data.length%e.perPage==0&&e.isLastPage&&0!==e.page},e.decorators=[{type:b.Injectable}],e}(),Ii={And:0,Or:1};Ii[Ii.And]="And",Ii[Ii.Or]="Or";var Si=function(){function e(){}return e.prototype.findMatchByExpression=function(e,t){var i=t.condition,n=this.getFieldValue(e,t.fieldName);return i.logic(n,t.searchVal,t.ignoreCase)},e.prototype.matchRecord=function(e,t){if(t){if(t instanceof Ci){var i=t,n=i.operator,r=void 0,o=void 0;if(i.filteringOperands&&i.filteringOperands.length){for(var s=0;s<i.filteringOperands.length;s++){if(o=i.filteringOperands[s],!(r=this.matchRecord(e,o))&&n===Ii.And)return!1;if(r&&n===Ii.Or)return!0}return r}return!0}var a=t;return this.findMatchByExpression(e,a)}return!0},e}(),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.filter=function(e,t){var i,n,r=e.length,o=[];if(!t||!t.filteringOperands||0===t.filteringOperands.length||!r)return e;for(i=0;i<r;i++)n=e[i],this.matchRecord(n,t)&&o.push(n);return o},t.prototype.getFieldValue=function(e,t){return e[t]},t}(Si),Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.filter=function(e,t){return this.filterImpl(e,t,undefined)},t.prototype.filterImpl=function(e,t,i){var n,r,o=e.length,s=[];if(!t||!t.filteringOperands||0===t.filteringOperands.length||!o)return e;for(n=0;n<o;n++){if((r=Ti.cloneTreeGridRecord(e[n])).parent=i,r.children){var a=this.filterImpl(r.children,t,r);r.children=0<a.length?a:null}this.matchRecord(r,t)?s.push(r):r.children&&0<r.children.length&&(r.isFilteredOutParent=!0,s.push(r))}return s},t.prototype.getFieldValue=function(e,t){return e.data[t]},t}(Si),Oi=function(){function e(e){this.gridAPI=e}return e.prototype.transform=function(e,t,i,n){var r=this.gridAPI.grid,o={expressionsTree:t,strategy:new Ei};if(this.resetFilteredOutProperty(r.records),!o.expressionsTree||!o.expressionsTree.filteringOperands||0===o.expressionsTree.filteringOperands.length)return r.filteredData=null,e;var s=this.filter(e,o),a=[];return this.expandAllRecursive(r,s,r.expansionStates,a),r.filteredData=a,s},e.prototype.resetFilteredOutProperty=function(e){for(var t=Array.from(e.keys()),i=0;i<t.length;i++)e.get(t[i]).isFilteredOutParent=undefined},e.prototype.expandAllRecursive=function(e,t,i,n){for(var r=0;r<t.length;r++){var o=t[r];n.push(o.data),this.updateNonProcessedRecord(e,o),o.children&&0<o.children.length&&(i.set(o.rowID,!0),this.expandAllRecursive(e,o.children,i,n))}},e.prototype.updateNonProcessedRecord=function(e,t){e.records.get(t.rowID).isFilteredOutParent=t.isFilteredOutParent},e.prototype.filter=function(e,t){return t.strategy.filter(e,t.expressionsTree)},e.decorators=[{type:b.Pipe,args:[{name:"treeGridFiltering",pure:!0}]}],e.ctorParameters=function(){return[{type:wi}]},e}(),Pi={String:"string",Number:"number",Boolean:"boolean",Date:"date"},Ti=function(){function o(){}return o.sort=function(e,t,i){return void 0===i&&(i=new yi),i.sort(e,t)},o.treeGridSort=function(e,i,n){var r=[];return e.forEach(function(e){var t=o.cloneTreeGridRecord(e);t.parent=n,t.children&&(t.children=o.treeGridSort(t.children,i,t)),r.push(t)}),r=o.sort(r,i,new vi)},o.cloneTreeGridRecord=function(e){return{rowID:e.rowID,data:e.data,children:e.children,isFilteredOutParent:e.isFilteredOutParent,level:e.level,expanded:e.expanded}},o.group=function(e,t,i){void 0===i&&(i=[]);var n=new xi;return i.splice(0,i.length),n.groupBy(e,t.expressions,i)},o.restoreGroups=function(e,t){return 0===t.expressions.length?e.data:this.restoreGroupsIterative(e,t)},o.restoreGroupsIterative=function(t,i){var n,r,e,o,s=this,a=t.metadata,l=[],c=[],p=0;for(p=0;p<a.length;){for(n=[a[p]],e=a[p].groupParent;e&&c[0]!==e;)n.push(e),c[0]&&c[0].level===e.level&&c.shift(),e=e.groupParent;var u=function(){l.push(n[r]),c.unshift(n[r]);var t=d.getHierarchy(n[r]),e=i.expansion.find(function(e){return s.isHierarchyMatch(e.hierarchy||[{fieldName:n[r].expression.fieldName,value:n[r].value}],t)});if(!(o=e?e.expanded:i.defaultExpanded))return"break"},d=this;for(r=n.length-1;0<=r;r--){if("break"===u())break}c.shift(),r=Math.max(r,0);var h=n[r].records.findIndex(function(e){return e===t.data[p]}),g=Math.min(a.length-p+h,n[r].records.length);o&&l.push.apply(l,S(n[r].records.slice(h,g))),p+=g-h}return l},o.page=function(e,t){if(!t)return e;var i=e.length,n=t.index,r=[],o=t.recordsPerPage;return t.metadata={countPages:0,countRecords:e.length,error:bi.None},n<0||isNaN(n)?(t.metadata.error=bi.IncorrectPageIndex,r):o<=0||isNaN(o)?(t.metadata.error=bi.IncorrectRecordsPerPage,r):(t.metadata.countPages=Math.ceil(i/o),i?n>=t.metadata.countPages?(t.metadata.error=bi.IncorrectPageIndex,r):e.slice(n*o,(n+1)*o):e)},o.filter=function(e,t){return t.strategy||(t.strategy=new Di),t.strategy.filter(e,t.expressionsTree)},o.treeGridFilter=function(e,t){return t.strategy||(t.strategy=new Ei),t.strategy.filter(e,t.expressionsTree)},o.getHierarchy=function(e){var t=[];if(e!==undefined&&e.expression)for(t.push({fieldName:e.expression.fieldName,value:e.value});e.groupParent;)e=e.groupParent,t.unshift({fieldName:e.expression.fieldName,value:e.value});return t},o.isHierarchyMatch=function(e,i){return e.length===i.length&&e.every(function(e,t){return e.fieldName===i[t].fieldName&&e.value===i[t].value})},o.mergeTransactions=function(r,o,s,e){return void 0===e&&(e=!1),r.forEach(function(e,t){var i=s?e[s]:e,n=o.find(function(e){return e.id===i});n&&n.type===_i.UPDATE&&(r[t]=n.newValue)}),e&&o.filter(function(e){return e.type===_i.DELETE}).forEach(function(t){var e=s?r.findIndex(function(e){return e[s]===t.id}):r.findIndex(function(e){return e===t.id});0<=e&&e<r.length&&r.splice(e,1)}),r.push.apply(r,S(o.filter(function(e){return e.type===_i.ADD}).map(function(e){return e.newValue}))),r},o.mergeHierarchicalTransactions=function(o,e,s,a,l){var t,i;void 0===l&&(l=!1);var n=function(t){if(t.path){var e=c.findParentFromPath(o,a,s,t.path),i=e?e[s]:o;switch(t.type){case _i.ADD:e&&!e[s]&&(e[s]=i=[]),i.push(t.newValue);break;case _i.UPDATE:var n=i.findIndex(function(e){return e[a]===t.id});-1!==n&&(i[n]=ni(ri(i[n]),t.newValue));break;case _i.DELETE:if(l){var r=i.findIndex(function(e){return e[a]===t.id});-1!==r&&i.splice(r,1)}}}else o.push(t.newValue)},c=this;try{for(var r=I(e),p=r.next();!p.done;p=r.next()){n(p.value)}}catch(u){t={error:u}}finally{try{p&&!p.done&&(i=r["return"])&&i.call(r)}finally{if(t)throw t.error}}return o},o.findParentFromPath=function(e,i,n,t){var r,o,s,a=e,l=function(t){if(!(s=a&&a.find(function(e){return e[i]===t})))return"break";a=s[n]};try{for(var c=I(t),p=c.next();!p.done;p=c.next()){if("break"===l(p.value))break}}catch(u){r={error:u}}finally{try{p&&!p.done&&(o=c["return"])&&o.call(c)}finally{if(r)throw r.error}}return s},o}(),Ri=function(){function c(){}return c.getKeysFromData=function(e){var t=e.length;if(0===t)return[];var i=e[0],n=e[Math.floor(t/2)],r=e[t-1],o=Object.keys(i),s=Object.keys(n),a=Object.keys(r),l=new Set(o.concat(s).concat(a));return c.isSpecialData(e)?["Column 1"]:Array.from(l)},c.saveBlobToFile=function(e,t){var i=document.createElement("a");if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(e,t);else{var n=window.URL.createObjectURL(e);i.download=t,i.href=n,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}},c.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=0;n!==e.length;++n)i[n]=255&e.charCodeAt(n);return t},c.isSpecialData=function(e){var t=e[0];return"string"==typeof t||"number"==typeof t||t instanceof Date},c.hasValue=function(e){return e!==undefined&&null!==e},c.isNullOrWhitespaces=function(e){return e===undefined||null===e||!e.trim()},c}(),ki=function(){function e(){this.flatRecords=[],this._isTreeGrid=!1,this._indexOfLastPinnedColumn=-1,this._sort=null,this.onRowExport=new b.EventEmitter,this.onColumnExport=new b.EventEmitter}return e.prototype["export"]=function(e,o){var s=this;if(o===undefined||null===o)throw Error("No options provided!");var t=e.columnList.toArray();this._columnList=new Array(t.length);var a=[],l=-1;t.forEach(function(e){var t=""!==e.header?e.header:e.field,i=!e.hidden||o.ignoreColumnsVisibility,n=o.ignoreColumnsOrder?e.index:e.visibleIndex,r={header:t,field:e.field,skip:!i,formatter:e.formatter,skipFormatter:!1};-1!==n?(s._columnList[n]=r,l=Math.max(l,n)):a.push(r),e.pinned&&i&&(s._indexOfLastPinnedColumn=n)}),a.forEach(function(e){s._columnList[++l]=e});var i=this.prepareData(e,o);this.exportData(i,o)},e.prototype.exportData=function(e,t){var n=this;if(t===undefined||null===t)throw Error("No options provided!");if(!this._columnList||0===this._columnList.length){var i=Ri.getKeysFromData(e);this._columnList=i.map(function(e){return{header:e,field:e,skip:!1}})}var r=0,o=1;this._columnList.forEach(function(e,t){if(!e.skip){var i={header:Ri.isNullOrWhitespaces(e.header)?"Column"+o++:e.header,field:e.field,columnIndex:t,cancel:!1,skipFormatter:!1};n.onColumnExport.emit(i),e.header=i.header,e.skip=i.cancel,e.skipFormatter=i.skipFormatter,e.skip&&t<=n._indexOfLastPinnedColumn&&r++,n._sort&&n._sort.fieldName===e.field&&(e.skip?n._sort=null:n._sort.fieldName=e.header)}}),this._indexOfLastPinnedColumn-=r;var s=new Array,a=Ri.isSpecialData(e);e.forEach(function(e,t){n.exportRow(s,e,t,a)}),this.exportDataImplementation(s,t),this.resetDefaults()},e.prototype.exportRow=function(e,n,t,i){var r=this,o={rowData:i?this._isTreeGrid?n.data:n:this._columnList.reduce(function(e,t){if(!t.skip){var i=r._isTreeGrid?n.data[t.field]:n[t.field];e[t.header]=t.formatter&&!t.skipFormatter?t.formatter(i):i}return e},{}),rowIndex:t,cancel:!1};this.onRowExport.emit(o),o.cancel||e.push({rowData:o.rowData,originalRowData:n})},e.prototype.prepareData=function(e,t){this.flatRecords=[];var i=e.rootRecords;this._isTreeGrid=i!==undefined,this._isTreeGrid&&this.prepareHierarchicalData(i);var n=this._isTreeGrid?this.flatRecords:e.data;if(e.filteringExpressionsTree&&0<e.filteringExpressionsTree.filteringOperands.length&&!t.ignoreFiltering){var r={expressionsTree:e.filteringExpressionsTree,logic:e.filteringLogic};n=this._isTreeGrid?(this.flatRecords=[],i=Ti.treeGridFilter(i,r),this.prepareHierarchicalData(i),this.flatRecords):Ti.filter(n,r)}return e.sortingExpressions&&0<e.sortingExpressions.length&&!t.ignoreSorting&&(this._sort=ri(e.sortingExpressions[0]),n=this._isTreeGrid?(this.flatRecords=[],i=Ti.treeGridSort(i,e.sortingExpressions),this.prepareHierarchicalData(i),this.flatRecords):Ti.sort(n,e.sortingExpressions)),n},e.prototype.prepareHierarchicalData=function(e){if(e)for(var t=0;t<e.length;t++){var i=e[t];this.flatRecords.push(i),this.prepareHierarchicalData(i.children)}},e.prototype.resetDefaults=function(){this._columnList=[],this._indexOfLastPinnedColumn=-1,this._sort=null,this.flatRecords=[]},e.propDecorators={onRowExport:[{type:b.Output}],onColumnExport:[{type:b.Output}]},e}(),Ai=function(){function e(e,t,i){void 0===i&&(i=!1),this._data=e,this._isTreeGridData=i,this._headerRecord="",this._dataRecords="",this._eor="\r\n",this._escapeCharacters=["\r","\n","\r\n"],this._delimiterLength=1,this._isSpecialData=!1,this.setDelimiter(t)}return e.prototype.prepareData=function(){if(!this._data||0===this._data.length)return"";this._data=this._data.map(function(e){return e.rowData});var e=Ri.getKeysFromData(this._data);return 0===e.length?"":(this._isSpecialData=Ri.isSpecialData(this._data),this._escapeCharacters.push(this._delimiter),this._headerRecord=this.processHeaderRecord(e,this._escapeCharacters),this._dataRecords=this.processDataRecords(this._data,e,this._escapeCharacters),this._headerRecord+this._dataRecords)},e.prototype.processField=function(e,t){var i=Ri.hasValue(e)?String(e):"";return t.some(function(e){return i.includes(e)})&&(i='"'+i+'"'),i+this._delimiter},e.prototype.processHeaderRecord=function(e,t){var i,n,r="";try{for(var o=I(e),s=o.next();!s.done;s=o.next()){var a=s.value;r+=this.processField(a,this._escapeCharacters)}}catch(l){i={error:l}}finally{try{s&&!s.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return r.slice(0,-this._delimiterLength)+this._eor},e.prototype.processRecord=function(e,t,i){var n,r,o="";try{for(var s=I(t),a=s.next();!a.done;a=s.next()){var l=a.value,c=e[l]!==undefined?e[l]:this._isSpecialData?e:"";o+=this.processField(c,this._escapeCharacters)}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=s["return"])&&r.call(s)}finally{if(n)throw n.error}}return o.slice(0,-this._delimiterLength)+this._eor},e.prototype.processDataRecords=function(e,t,i){var n,r,o="";try{for(var s=I(e),a=s.next();!a.done;a=s.next()){var l=a.value;o+=this.processRecord(l,t,i)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=s["return"])&&r.call(s)}finally{if(n)throw n.error}}return o},e.prototype.setDelimiter=function(e){this._delimiter=e,this._delimiterLength=e.length},e}(),Li=function(){function e(e,t){this._fileExtension=t,this.ignoreColumnsVisibility=!1,this.ignoreFiltering=!1,this.ignoreColumnsOrder=!1,this.ignoreSorting=!1,this.setFileName(e)}return e.prototype.setFileName=function(e){this._fileName=e+(!1===e.endsWith(this._fileExtension)?this._fileExtension:"")},Object.defineProperty(e.prototype,"fileName",{get:function(){return this._fileName},set:function(e){this.setFileName(e)},enumerable:!0,configurable:!0}),e}(),Fi=function(n){function r(e,t){var i=n.call(this,e,r.getExtensionFromFileType(t))||this;return i.setFileType(t),i.setDelimiter(),i}return m(r,n),r.getExtensionFromFileType=function(e){var t="";switch(e){case Mi.CSV:t=".csv";break;case Mi.TSV:t=".tsv";break;case Mi.TAB:t=".tab";break;default:throw Error("Unsupported CSV file type!")}return t},Object.defineProperty(r.prototype,"valueDelimiter",{get:function(){return this._valueDelimiter},set:function(e){this.setDelimiter(e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fileType",{get:function(){return this._fileType},set:function(e){this.setFileType(e)},enumerable:!0,configurable:!0}),r.prototype.setFileType=function(e){if(e!==undefined&&null!==e&&e!==this._fileType){this._fileType=e;var t=r.getExtensionFromFileType(e);if(!this.fileName.endsWith(t)){var i="."+this.fileName.split(".").pop(),n=this.fileName.replace(i,t);this._fileExtension=t,this.fileName=n}}},r.prototype.setDelimiter=function(e){if(e!==undefined&&""!==e&&null!==e)this._valueDelimiter=e;else switch(this.fileType){case Mi.CSV:this._valueDelimiter=",";break;case Mi.TSV:case Mi.TAB:this._valueDelimiter="\t"}},r}(Li),Mi={CSV:0,TSV:1,TAB:2};Mi[Mi.CSV]="CSV",Mi[Mi.TSV]="TSV",Mi[Mi.TAB]="TAB";var Vi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onExportEnded=new b.EventEmitter,e}return m(e,t),e.prototype.exportDataImplementation=function(e,t){var i=new Ai(e,t.valueDelimiter);this._stringData=i.prepareData(),this.saveFile(t),this.onExportEnded.emit({csvData:this._stringData})},e.prototype.saveFile=function(e){switch(e.fileType){case Mi.CSV:this.exportFile(this._stringData,e.fileName,"text/csv;charset=utf-8;");break;case Mi.TSV:case Mi.TAB:this.exportFile(this._stringData,e.fileName,"text/tab-separated-values;charset=utf-8;")}},e.prototype.exportFile=function(e,t,i){var n=new Blob(["\ufeff",e],{type:i});Ri.saveBlobToFile(n,t)},e.decorators=[{type:b.Injectable}],e.propDecorators={onExportEnded:[{type:b.Output}]},e}(ki),Hi={RootExcelFolder:0,RootRelsExcelFolder:1,DocPropsExcelFolder:2,XLExcelFolder:3,XLRelsExcelFolder:4,ThemeExcelFolder:5,WorksheetsExcelFolder:6,WorksheetsRelsExcelFolder:7,TablesExcelFolder:8};Hi[Hi.RootExcelFolder]="RootExcelFolder",Hi[Hi.RootRelsExcelFolder]="RootRelsExcelFolder",Hi[Hi.DocPropsExcelFolder]="DocPropsExcelFolder",Hi[Hi.XLExcelFolder]="XLExcelFolder",Hi[Hi.XLRelsExcelFolder]="XLRelsExcelFolder",Hi[Hi.ThemeExcelFolder]="ThemeExcelFolder",Hi[Hi.WorksheetsExcelFolder]="WorksheetsExcelFolder",Hi[Hi.WorksheetsRelsExcelFolder]="WorksheetsRelsExcelFolder",Hi[Hi.TablesExcelFolder]="TablesExcelFolder";var Bi={RootRelsFile:0,AppFile:1,CoreFile:2,WorkbookRelsFile:3,ThemeFile:4,WorksheetFile:5,StyleFile:6,WorkbookFile:7,ContentTypesFile:8,SharedStringsFile:9,WorksheetRelsFile:10,TablesFile:11};Bi[Bi.RootRelsFile]="RootRelsFile",Bi[Bi.AppFile]="AppFile",Bi[Bi.CoreFile]="CoreFile",Bi[Bi.WorkbookRelsFile]="WorkbookRelsFile",Bi[Bi.ThemeFile]="ThemeFile",Bi[Bi.WorksheetFile]="WorksheetFile",Bi[Bi.StyleFile]="StyleFile",Bi[Bi.WorkbookFile]="WorkbookFile",Bi[Bi.ContentTypesFile]="ContentTypesFile",Bi[Bi.SharedStringsFile]="SharedStringsFile",Bi[Bi.WorksheetRelsFile]="WorksheetRelsFile",Bi[Bi.TablesFile]="TablesFile";var ji=function(){function a(){}return a.getRels