-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path14-es5.769317312b9e9466acaa.js
1 lines (1 loc) · 107 KB
/
14-es5.769317312b9e9466acaa.js
1
!function(){function e(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function t(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(c){r=!0,o=c}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,i=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"+0xr":function(e,t,i){"use strict";i.d(t,"a",function(){return Y}),i.d(t,"b",function(){return D}),i.d(t,"c",function(){return T}),i.d(t,"d",function(){return W}),i.d(t,"e",function(){return A}),i.d(t,"f",function(){return q}),i.d(t,"g",function(){return B}),i.d(t,"h",function(){return P}),i.d(t,"i",function(){return E}),i.d(t,"j",function(){return J}),i.d(t,"k",function(){return V}),i.d(t,"l",function(){return ee}),i.d(t,"m",function(){return $}),i.d(t,"n",function(){return Z}),i.d(t,"o",function(){return j}),i.d(t,"p",function(){return oe}),i.d(t,"q",function(){return re}),i.d(t,"r",function(){return ne});var r=i("f6nW"),o=i("0EQZ"),u=i("FKr1"),f=i("8LU1"),d=i("2Vo4"),b=i("XNiG"),v=i("quSY"),y=i("VRyK"),p=i("LRne"),g=i("itXk"),_=i("lJxs"),w=i("fXoL"),R=[[["caption"]],[["colgroup"],["col"]]],O=["caption","colgroup, col"];function k(e,t){if(1&e&&(w.ec(0,"th",3),w.Sc(1),w.dc()),2&e){var n=w.pc();w.Nc("text-align",n.justify),w.Mb(1),w.Uc(" ",n.headerText," ")}}function C(e,t){if(1&e&&(w.ec(0,"td",4),w.Sc(1),w.dc()),2&e){var n=t.$implicit,i=w.pc();w.Nc("text-align",i.justify),w.Mb(1),w.Uc(" ",i.dataAccessor(n,i.name)," ")}}var j=function(){var e=function(e){l(n,e);var t=h(n);function n(){var e;return c(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return n}(r.q);return e.\u0275fac=function(t){return S(t||e)},e.\u0275cmp=w.Sb({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&w.Qb("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[w.Lb([{provide:o.g,useClass:o.e},{provide:r.q,useExisting:e},{provide:r.a,useExisting:e},{provide:r.x,useClass:r.y}]),w.Jb],ngContentSelectors:O,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(w.uc(R),w.tc(0),w.tc(1,1),w.ac(2,0),w.ac(3,1),w.ac(4,2),w.ac(5,3))},directives:[r.v,r.t,r.w,r.u],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),e}(),S=w.gc(j),D=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.c);return e.\u0275fac=function(t){return x(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["","matCellDef",""]],features:[w.Lb([{provide:r.c,useExisting:e}]),w.Jb]}),e}(),x=w.gc(D),E=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.k);return e.\u0275fac=function(t){return z(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["","matHeaderCellDef",""]],features:[w.Lb([{provide:r.k,useExisting:e}]),w.Jb]}),e}(),z=w.gc(E),A=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.g);return e.\u0275fac=function(t){return H(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["","matFooterCellDef",""]],features:[w.Lb([{provide:r.g,useExisting:e}]),w.Jb]}),e}(),H=w.gc(A),T=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return a(n,[{key:"_updateColumnCssClassName",value:function(){s(m(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}},{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}}]),n}(r.e);return e.\u0275fac=function(t){return N(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[w.Lb([{provide:r.e,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),w.Jb]}),e}(),N=w.gc(T),P=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.j);return e.\u0275fac=function(t){return F(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[w.Jb]}),e}(),F=w.gc(P),W=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.f);return e.\u0275fac=function(t){return M(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[w.Jb]}),e}(),M=w.gc(W),Y=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.b);return e.\u0275fac=function(t){return I(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[w.Jb]}),e}(),I=w.gc(Y),V=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.m);return e.\u0275fac=function(t){return L(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[w.Lb([{provide:r.m,useExisting:e}]),w.Jb]}),e}(),L=w.gc(V),B=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.i);return e.\u0275fac=function(t){return U(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[w.Lb([{provide:r.i,useExisting:e}]),w.Jb]}),e}(),U=w.gc(B),Z=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.p);return e.\u0275fac=function(t){return Q(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[w.Lb([{provide:r.p,useExisting:e}]),w.Jb]}),e}(),Q=w.gc(Z),J=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.l);return e.\u0275fac=function(t){return X(t||e)},e.\u0275cmp=w.Sb({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[w.Lb([{provide:r.l,useExisting:e}]),w.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&w.ac(0,0)},directives:[r.d],encapsulation:2}),e}(),X=w.gc(J),q=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.h);return e.\u0275fac=function(t){return K(t||e)},e.\u0275cmp=w.Sb({type:e,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[w.Lb([{provide:r.h,useExisting:e}]),w.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&w.ac(0,0)},directives:[r.d],encapsulation:2}),e}(),K=w.gc(q),$=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.o);return e.\u0275fac=function(t){return G(t||e)},e.\u0275cmp=w.Sb({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[w.Lb([{provide:r.o,useExisting:e}]),w.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&w.ac(0,0)},directives:[r.d],encapsulation:2}),e}(),G=w.gc($),ee=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.n);return e.\u0275fac=function(t){return te(t||e)},e.\u0275dir=w.Tb({type:e,selectors:[["ng-template","matNoDataRow",""]],features:[w.Lb([{provide:r.n,useExisting:e}]),w.Jb]}),e}(),te=w.gc(ee),ne=function(){var e=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(r.s);return e.\u0275fac=function(t){return ie(t||e)},e.\u0275cmp=w.Sb({type:e,selectors:[["mat-text-column"]],features:[w.Jb],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(e,t){1&e&&(w.cc(0,0),w.Qc(1,k,2,3,"th",1),w.Qc(2,C,2,3,"td",2),w.bc())},directives:[T,E,D,P,Y],encapsulation:2}),e}(),ie=w.gc(ne),re=function(){var e=function e(){c(this,e)};return e.\u0275mod=w.Wb({type:e}),e.\u0275inj=w.Vb({factory:function(t){return new(t||e)},imports:[[r.r,u.j],u.j]}),e}(),oe=function(e){l(i,e);var t=h(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return c(this,i),(e=t.call(this))._renderData=new d.a([]),e._filter=new d.a(""),e._internalPageChanges=new b.a,e._renderChangesSubscription=v.a.EMPTY,e.sortingDataAccessor=function(e,t){var n=e[t];if(Object(f.a)(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,r=n.direction;return i&&""!=r?t.sort(function(t,n){var o=e.sortingDataAccessor(t,i),a=e.sortingDataAccessor(n,i),s=typeof o,c=typeof a;s!==c&&("number"===s&&(o+=""),"number"===c&&(a+=""));var l=0;return null!=o&&null!=a?o>a?l=1:o<a&&(l=-1):null!=o?l=1:null!=a&&(l=-1),l*("asc"==r?1:-1)}):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce(function(t,n){return t+e[n]+"\u25ec"},"").toLowerCase(),i=t.trim().toLowerCase();return-1!=n.indexOf(i)},e._data=new d.a(n),e._updateChangeSubscription(),e}return a(i,[{key:"_updateChangeSubscription",value:function(){var e=this,t=this._sort?Object(y.a)(this._sort.sortChange,this._sort.initialized):Object(p.a)(null),i=this._paginator?Object(y.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(p.a)(null),r=this._data,o=Object(g.b)([r,this._filter]).pipe(Object(_.a)(function(t){var i=n(t,1)[0];return e._filterData(i)})),a=Object(g.b)([o,t]).pipe(Object(_.a)(function(t){var i=n(t,1)[0];return e._orderData(i)})),s=Object(g.b)([a,i]).pipe(Object(_.a)(function(t){var i=n(t,1)[0];return e._pageData(i)}));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(function(t){return e._renderData.next(t)})}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=null==this.filter||""===this.filter?e:e.filter(function(e){return t.filterPredicate(e,t.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(e){return this.sort?this.sortData(e.slice(),this.sort):e}},{key:"_pageData",value:function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(e){var t=this;Promise.resolve().then(function(){var n=t.paginator;if(n&&(n.length=e,n.pageIndex>0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}}]),i}(o.b)},CqXF:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(t){c(this,e),this.value=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.value))}}]),e}(),s=function(e){l(n,e);var t=h(n);function n(e,i){var r;return c(this,n),(r=t.call(this,e)).value=i,r}return a(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(i.a)},EePR:function(e,i,r){"use strict";r.d(i,"a",function(){return Se}),r.d(i,"b",function(){return Ce}),r.d(i,"c",function(){return Fe}),r.d(i,"d",function(){return je}),r.d(i,"e",function(){return He}),r.d(i,"f",function(){return Te}),r.d(i,"g",function(){return We}),r.d(i,"h",function(){return Ne}),r.d(i,"i",function(){return Pe}),r.d(i,"j",function(){return Re}),r.d(i,"k",function(){return ke}),r.d(i,"l",function(){return K}),r.d(i,"m",function(){return te}),r.d(i,"n",function(){return ee});var o=r("fXoL"),s=r("XNiG"),u=r("mCNh"),f=r("itXk"),m=r("HDdC"),b=r("xgIS"),v=r("DH7j"),y=r("n6bG"),p=r("lJxs");function g(e,n,i){return i?g(e,n).pipe(Object(p.a)(function(e){return Object(v.a)(e)?i.apply(void 0,t(e)):i(e)})):new m.a(function(t){var i,r=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.next(1===n.length?n[0]:n)};try{i=e(r)}catch(o){return void t.error(o)}if(Object(y.a)(n))return function(){return n(r,i)}})}var _=r("VRyK"),w=r("/uUt"),R=r("JX91"),O=r("UXun"),k=r("pLZG"),C=r("3UWI"),j=r("tnsW"),S=r("Kj3r"),D=r("zP0r"),x=r("IzEk"),E=r("1G5W"),z=r("CqXF"),A=r("7o/Q"),H=r("D0XW");r("zx2A");var T={leading:!0,trailing:!1},N=function(){function e(t,n,i,r){c(this,e),this.duration=t,this.scheduler=n,this.leading=i,this.trailing=r}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new P(e,this.duration,this.scheduler,this.leading,this.trailing))}}]),e}(),P=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a){var s;return c(this,n),(s=t.call(this,e)).duration=i,s.scheduler=r,s.leading=o,s.trailing=a,s._hasTrailingValue=!1,s._trailingValue=null,s}return a(n,[{key:"_next",value:function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(F,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}},{key:"_complete",value:function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}},{key:"clearThrottle",value:function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}]),n}(A.a);function F(e){e.subscriber.clearThrottle()}var W=r("w1tV"),M=r("l7GE"),Y=r("ZUHj"),I=function(){function e(t,n){c(this,e),this.observables=t,this.project=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new V(e,this.observables,this.project))}}]),e}(),V=function(e){l(i,e);var n=h(i);function i(e,t,r){var o;c(this,i),(o=n.call(this,e)).observables=t,o.project=r,o.toRespond=[];var a=t.length;o.values=new Array(a);for(var s=0;s<a;s++)o.toRespond.push(s);for(var l=0;l<a;l++){var u=t[l];o.add(Object(Y.a)(d(o),u,void 0,l))}return o}return a(i,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var n=[e].concat(t(this.values));this.project?this._tryProject(n):this.destination.next(n)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),i}(M.a),L=r("cH1L"),B=r("FtGj"),U=r("rDax"),Z=r("+rOU"),Q=r("u47x"),J=r("ofXK"),X=r("3Pt+"),q=r("vxfF"),K=".cdk-cell, .mat-cell, td",$=".cdk-popover-edit-cell, .mat-popover-edit-cell",G=".cdk-row, .mat-row, tr";function ee(e,t){return e.matches?e.matches(t):e.msMatchesSelector(t)}function te(e,t){if(!(e instanceof Node))return null;for(var n=e;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(ie?n.closest(t):function(e,t){for(var n=e;null!=n&&!(n instanceof Element&&ee(n,t));)n=n.parentNode;return n||null}(n,t))}var ne,ie=!!Element.prototype.closest,re=((ne=function(){function e(t){var i=this;c(this,e),this._ngZone=t,this.editing=new s.a,this.hovering=new s.a,this.focused=new s.a,this.allRows=new s.a,this.mouseMove=new s.a,this.disabledCells=new WeakMap,this._editRef=null,this._distinctUntilChanged=Object(w.a)(),this._startWithNull=Object(R.a)(null),this._distinctShare=Object(u.a)(this._distinctUntilChanged,Object(O.a)(1)),this._startWithNullDistinct=Object(u.a)(this._startWithNull,this._distinctUntilChanged),this.editingAndEnabled=this.editing.pipe(Object(k.a)(function(e){return null==e||!i.disabledCells.has(e)}),Object(O.a)(1)),this.editingOrFocused=Object(f.b)([this.editingAndEnabled.pipe(Object(p.a)(function(e){return te(e,G)}),this._startWithNull),this.focused.pipe(this._startWithNull)]).pipe(Object(p.a)(function(e){var t=n(e,2),i=t[0];return t[1]||i}),this._distinctUntilChanged,Object(C.a)(0),this._distinctUntilChanged,Object(O.a)(1)),this._rowsWithHoverContent=new WeakMap,this._currentlyEditing=null,this._hoveredContentStateDistinct=Object(f.b)([this._getFirstRowWithHoverContent(),this._getLastRowWithHoverContent(),this.editingOrFocused,this.hovering.pipe(Object(w.a)(),Object(j.a)(function(e){return i.mouseMove.pipe(Object(k.a)(function(t){return e===t}),i._startWithNull,Object(S.a)(40))}),this._startWithNullDistinct)]).pipe(Object(D.a)(1),Object(p.a)(oe),Object(w.a)(ae),this._enterZone(),Object(O.a)(1)),this._editingAndEnabledDistinct=this.editingAndEnabled.pipe(Object(w.a)(),this._enterZone(),Object(O.a)(1)),this._lastSeenRow=null,this._lastSeenRowHoverOrFocus=null,this._editingAndEnabledDistinct.subscribe(function(e){i._currentlyEditing=e})}return a(e,[{key:"editingCell",value:function(e){var t=null;return this._editingAndEnabledDistinct.pipe(Object(p.a)(function(n){return n===(t||(t=te(e,K)))}),this._distinctUntilChanged)}},{key:"doneEditingCell",value:function(e){var t=te(e,K);this._currentlyEditing===t&&this.editing.next(null)}},{key:"setActiveEditRef",value:function(e){this._editRef=e}},{key:"unsetActiveEditRef",value:function(e){this._editRef===e&&(this._editRef=null)}},{key:"registerRowWithHoverContent",value:function(e){this._rowsWithHoverContent.set(e,(this._rowsWithHoverContent.get(e)||0)+1)}},{key:"deregisterRowWithHoverContent",value:function(e){var t=this._rowsWithHoverContent.get(e)||0;t<=1?this._rowsWithHoverContent.delete(e):this._rowsWithHoverContent.set(e,t-1)}},{key:"hoverOrFocusOnRow",value:function(e){return e!==this._lastSeenRow&&(this._lastSeenRow=e,this._lastSeenRowHoverOrFocus=this._hoveredContentStateDistinct.pipe(Object(p.a)(function(t){return t.get(e)||0}),this._distinctShare)),this._lastSeenRowHoverOrFocus}},{key:"_enterZone",value:function(){var e=this;return function(t){return new m.a(function(n){return t.subscribe({next:function(t){return e._ngZone.run(function(){return n.next(t)})},error:function(e){return n.error(e)},complete:function(){return n.complete()}})})}}},{key:"_getFirstRowWithHoverContent",value:function(){var e=this;return this._mapAllRowsToSingleRow(function(t){for(var n,i=0;n=t[i];i++)if(e._rowsWithHoverContent.has(n))return n;return null})}},{key:"_getLastRowWithHoverContent",value:function(){var e=this;return this._mapAllRowsToSingleRow(function(t){for(var n,i=t.length-1;n=t[i];i--)if(e._rowsWithHoverContent.has(n))return n;return null})}},{key:"_mapAllRowsToSingleRow",value:function(e){return this.allRows.pipe(Object(p.a)(e),this._startWithNullDistinct)}},{key:"editRef",get:function(){return this._editRef}}]),e}()).\u0275fac=function(e){return new(e||ne)(o.ic(o.I))},ne.\u0275prov=o.Ub({token:ne,factory:ne.\u0275fac}),ne);function oe(e){for(var t=n(e,4),i=t[0],r=t[1],o=t[2],a=t[3],s=new Map,c=0,l=[i,r,o&&o.previousElementSibling,o&&o.nextElementSibling];c<l.length;c++){var u=l[c];u&&s.set(u,1)}for(var h=0,f=[o,a];h<f.length;h++){var d=f[h];d&&s.set(d,2)}return s}function ae(e,t){if(e.size!==t.size)return!1;for(var n=0,i=Array.from(e.keys());n<i.length;n++){var r=i[n];if(t.get(r)!==e.get(r))return!1}return!0}var se,ce,le,ue,he,fe,de,me,be,ve,ye,pe,ge,_e,we,Re=((ce=function(){function e(t,n,i){c(this,e),this._form=t,this._editEventDispatcher=n,this._ngZone=i,this._finalValueSubject=new s.a,this.finalValue=this._finalValueSubject,this._blurredSubject=new s.a,this.blurred=this._blurredSubject,this._editEventDispatcher.setActiveEditRef(this)}return a(e,[{key:"init",value:function(e){var t=this;this._ngZone.onStable.pipe(Object(x.a)(1)).subscribe(function(){t.updateRevertValue(),e&&t.reset(e)})}},{key:"ngOnDestroy",value:function(){this._editEventDispatcher.unsetActiveEditRef(this),this._finalValueSubject.next(this._form.value),this._finalValueSubject.complete()}},{key:"isValid",value:function(){return this._form.valid}},{key:"updateRevertValue",value:function(){this._revertFormValue=this._form.value}},{key:"close",value:function(){this._editEventDispatcher.editing.next(null)}},{key:"blur",value:function(){this._blurredSubject.next()}},{key:"reset",value:function(e){this._form.reset(e||this._revertFormValue)}}]),e}()).\u0275fac=function(e){return new(e||ce)(o.ic(X.b,2),o.ic(re),o.ic(o.I))},ce.\u0275prov=o.Ub({token:ce,factory:ce.\u0275fac}),ce),Oe=((se=function(){function e(t){var n=this;c(this,e),this.directionality=t,this.keyObserver={next:function(e){return n.handleKeyboardEvent(e)}}}return a(e,[{key:"moveFocusHorizontally",value:function(e,t){var n=Array.from(te(e,"table, cdk-table, mat-table").querySelectorAll($)),i=n.indexOf(e)+t;n[i]&&n[i].focus()}},{key:"moveFocusVertically",value:function(e,t){var n=te(e,G),i=Array.from(te(n,"table, cdk-table, mat-table").querySelectorAll(G)),r=i.indexOf(n),o=Array.from(n.querySelectorAll($)).indexOf(e),a=r+t;if(i[a]){var s=Array.from(i[a].querySelectorAll($));s[o]&&s[o].focus()}}},{key:"handleKeyboardEvent",value:function(e){var t=te(e.target,$);if(t){switch(e.keyCode){case B.q:this.moveFocusVertically(t,-1);break;case B.e:this.moveFocusVertically(t,1);break;case B.j:this.moveFocusHorizontally(t,"ltr"===this.directionality.value?-1:1);break;case B.n:this.moveFocusHorizontally(t,"ltr"===this.directionality.value?1:-1);break;default:return}e.preventDefault()}}}]),e}()).\u0275fac=function(e){return new(e||se)(o.ic(L.c))},se.\u0275prov=Object(o.Ub)({factory:function(){return new se(Object(o.ic)(L.c))},token:se,providedIn:"root"}),se),ke=function(){function e(){c(this,e),this._formValues=new WeakMap}return a(e,[{key:"for",value:function(e){var t=this._formValues,n=t.get(e);return n||(n={},t.set(e,n)),n}}]),e}(),Ce=((me=function(){function e(t,n){c(this,e),this.elementRef=t,this.editRef=n,this.destroyed=new s.a,this.clickOutBehavior="close",this.preservedFormValueChange=new o.s,this.ignoreSubmitUnlessValid=!0}return a(e,[{key:"ngOnInit",value:function(){var e=this;this.editRef.init(this.preservedFormValue),this.editRef.finalValue.subscribe(this.preservedFormValueChange),this.editRef.blurred.subscribe(function(){return e._handleBlur()})}},{key:"ngOnDestroy",value:function(){this.destroyed.next(),this.destroyed.complete()}},{key:"handleFormSubmit",value:function(){this.ignoreSubmitUnlessValid&&!this.editRef.isValid()||(this.editRef.updateRevertValue(),this.editRef.close())}},{key:"close",value:function(){this.editRef.close()}},{key:"handlePossibleClickOut",value:function(e){if(!te(e.target,".cdk-edit-pane, .mat-edit-pane"))switch(this.clickOutBehavior){case"submit":this._triggerFormSubmit(),this.editRef.close();break;case"close":this.editRef.close()}}},{key:"_handleKeydown",value:function(e){"Escape"!==e.key||Object(B.t)(e)||(this.close(),e.preventDefault())}},{key:"_handleBlur",value:function(){"submit"===this.clickOutBehavior&&this._triggerFormSubmit()}},{key:"_triggerFormSubmit",value:function(){this.elementRef.nativeElement.dispatchEvent(new Event("submit"))}}]),e}()).\u0275fac=function(e){return new(e||me)(o.Yb(o.p),o.Yb(Re))},me.\u0275dir=o.Tb({type:me,selectors:[["form","cdkEditControl",""]],hostBindings:function(e,t){1&e&&o.lc("ngSubmit",function(){return t.handleFormSubmit()})("click",function(e){return t.handlePossibleClickOut(e)},!1,o.Ec)("keydown",function(e){return t._handleKeydown(e)})},inputs:{clickOutBehavior:["cdkEditControlClickOutBehavior","clickOutBehavior"],preservedFormValue:["cdkEditControlPreservedFormValue","preservedFormValue"],ignoreSubmitUnlessValid:["cdkEditControlIgnoreSubmitUnlessValid","ignoreSubmitUnlessValid"]},outputs:{preservedFormValueChange:"cdkEditControlPreservedFormValueChange"},features:[o.Lb([Re])]}),me),je=((de=function(){function e(t){c(this,e),this.editRef=t,this.type="button"}return a(e,[{key:"revertEdit",value:function(){this.editRef.reset()}}]),e}()).\u0275fac=function(e){return new(e||de)(o.Yb(Re))},de.\u0275dir=o.Tb({type:de,selectors:[["button","cdkEditRevert",""]],hostAttrs:["type","button"],hostBindings:function(e,t){1&e&&o.lc("click",function(){return t.revertEdit()})},inputs:{type:"type"}}),de),Se=((fe=function(){function e(t,n){c(this,e),this.elementRef=t,this.editRef=n;var i=t.nativeElement;"BUTTON"!==i.nodeName||i.getAttribute("type")||i.setAttribute("type","button")}return a(e,[{key:"closeEdit",value:function(){this.editRef.close()}}]),e}()).\u0275fac=function(e){return new(e||fe)(o.Yb(o.p),o.Yb(Re))},fe.\u0275dir=o.Tb({type:fe,selectors:[["","cdkEditClose",""]],hostBindings:function(e,t){1&e&&o.lc("click",function(){return t.closeEdit()})("keydown.enter",function(){return t.closeEdit()})("keydown.space",function(){return t.closeEdit()})}}),fe),De=((he=function e(){c(this,e)}).\u0275fac=function(e){return new(e||he)},he.\u0275prov=o.Ub({token:he,factory:he.\u0275fac}),he),xe=((ue=function(e){l(n,e);var t=h(n);function n(e,i){var r;return c(this,n),(r=t.call(this)).direction=e,r.overlay=i,r}return a(n,[{key:"positionStrategyForCells",value:function(e){return this.overlay.position().flexibleConnectedTo(e[0]).withGrowAfterOpen().withPush().withViewportMargin(16).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top"}])}},{key:"sizeConfigForCells",value:function(e){return 0===e.length?{}:1===e.length?{width:e[0].getBoundingClientRect().width}:("ltr"===this.direction.value?(t=e[0],n=e[e.length-1]):(n=e[0],t=e[e.length-1]),{width:n.getBoundingClientRect().right-t.getBoundingClientRect().left});var t,n}}]),n}(De)).\u0275fac=function(e){return new(e||ue)(o.ic(L.c),o.ic(U.c))},ue.\u0275prov=o.Ub({token:ue,factory:ue.\u0275fac}),ue),Ee=((le=function e(t,n,i,r,o,a,s,l,u){c(this,e),this.directionality=t,this.editEventDispatcher=n,this.focusDispatcher=i,this.focusTrapFactory=r,this.ngZone=o,this.overlay=a,this.positionFactory=s,this.scrollDispatcher=l,this.viewportRuler=u}).\u0275fac=function(e){return new(e||le)(o.ic(L.c),o.ic(re),o.ic(Oe),o.ic(Q.j),o.ic(o.I),o.ic(U.c),o.ic(De),o.ic(q.g),o.ic(q.j))},le.\u0275prov=o.Ub({token:le,factory:le.\u0275fac}),le),ze=function(e){l(n,e);var t=h(n);function n(e,i,r,o){var a;return c(this,n),(a=t.call(this,e,i,r,o,!0))._escapeSubject=new s.a,a.startAnchorListener=function(){return a._escapeSubject.next(0),!0},a.endAnchorListener=function(){return a._escapeSubject.next(1),!0},a.attachAnchors(),a}return a(n,[{key:"escapes",value:function(){return this._escapeSubject}}]),n}(Q.i),Ae=((we=function(){function e(t,n,i){c(this,e),this._checker=t,this._ngZone=n,this._document=i}return a(e,[{key:"create",value:function(e){return new ze(e,this._checker,this._ngZone,this._document)}}]),e}()).\u0275fac=function(e){return new(e||we)(o.ic(Q.l),o.ic(o.I),o.ic(J.e))},we.\u0275prov=Object(o.Ub)({factory:function(){return new we(Object(o.ic)(Q.l),Object(o.ic)(o.I),Object(o.ic)(J.e))},token:we,providedIn:"root"}),we),He=((_e=function(){function e(t,n,i,r){c(this,e),this.elementRef=t,this.editEventDispatcher=n,this.focusDispatcher=i,this.ngZone=r,this.destroyed=new s.a}return a(e,[{key:"ngAfterViewInit",value:function(){this._listenForTableEvents()}},{key:"ngOnDestroy",value:function(){this.destroyed.next(),this.destroyed.complete()}},{key:"_listenForTableEvents",value:function(){var e=this,t=this.elementRef.nativeElement,i=function(e){return Object(p.a)(function(t){return te(t.target,e)})};this.ngZone.runOutsideAngular(function(){Object(b.a)(t,"mouseover").pipe(i(G),Object(E.a)(e.destroyed)).subscribe(e.editEventDispatcher.hovering),Object(b.a)(t,"mouseleave").pipe(Object(z.a)(null),Object(E.a)(e.destroyed)).subscribe(e.editEventDispatcher.hovering),Object(b.a)(t,"mousemove").pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H.a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;return function(i){return i.lift(new N(e,t,n.leading,n.trailing))}}(10),i(G),Object(E.a)(e.destroyed)).subscribe(e.editEventDispatcher.mouseMove),g(function(e){return t.addEventListener("focus",e,!0)},function(e){return t.removeEventListener("focus",e,!0)}).pipe(i(G),Object(W.a)(),Object(E.a)(e.destroyed)).subscribe(e.editEventDispatcher.focused),Object(_.a)(g(function(e){return t.addEventListener("blur",e,!0)},function(e){return t.removeEventListener("blur",e,!0)}),Object(b.a)(t,"keydown").pipe(Object(k.a)(function(e){return"Escape"===e.key}))).pipe(Object(z.a)(null),Object(W.a)(),Object(E.a)(e.destroyed)).subscribe(e.editEventDispatcher.focused),e.ngZone.onStable.pipe(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new I(t,n))}}(e.editEventDispatcher.editingOrFocused),Object(k.a)(function(e){var t=n(e,2);return t[0],null==t[1]}),Object(p.a)(function(){return t.querySelectorAll(G)}),Object(W.a)(),Object(E.a)(e.destroyed)).subscribe(e.editEventDispatcher.allRows),Object(b.a)(t,"keydown").pipe(Object(k.a)(function(e){return"Enter"===e.key}),i(K),Object(E.a)(e.destroyed)).subscribe(e.editEventDispatcher.editing),Object(b.a)(t,"keydown").pipe(Object(E.a)(e.destroyed)).subscribe(e.focusDispatcher.keyObserver)})}}]),e}()).\u0275fac=function(e){return new(e||_e)(o.Yb(o.p),o.Yb(re),o.Yb(Oe),o.Yb(o.I))},_e.\u0275dir=o.Tb({type:_e,selectors:[["table","editable",""],["cdk-table","editable",""],["mat-table","editable",""]],features:[o.Lb([re,Ee])]}),_e),Te=((ge=function(){function e(t,n,i){c(this,e),this.services=t,this.elementRef=n,this.viewContainerRef=i,this.template=null,this._colspan={},this._disabled=!1,this.destroyed=new s.a}return a(e,[{key:"ngAfterViewInit",value:function(){this._startListeningToEditEvents()}},{key:"ngOnDestroy",value:function(){this.destroyed.next(),this.destroyed.complete(),this.focusTrap&&(this.focusTrap.destroy(),this.focusTrap=void 0),this.overlayRef&&this.overlayRef.dispose()}},{key:"initFocusTrap",value:function(){this.focusTrap=this.services.focusTrapFactory.create(this.overlayRef.overlayElement)}},{key:"closeEditOverlay",value:function(){this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement)}},{key:"panelClass",value:function(){return"cdk-edit-pane"}},{key:"_startListeningToEditEvents",value:function(){var e=this;this.services.editEventDispatcher.editingCell(this.elementRef.nativeElement).pipe(Object(E.a)(this.destroyed)).subscribe(function(t){t&&e.template?(e.overlayRef||e._createEditOverlay(),e._showEditOverlay()):e.overlayRef&&(e._maybeReturnFocusToCell(),e.overlayRef.detach())})}},{key:"_createEditOverlay",value:function(){var e=this;this.overlayRef=this.services.overlay.create({disposeOnNavigation:!0,panelClass:this.panelClass(),positionStrategy:this._getPositionStrategy(),scrollStrategy:this.services.overlay.scrollStrategies.reposition(),direction:this.services.directionality}),this.initFocusTrap(),this.overlayRef.overlayElement.setAttribute("aria-role","dialog"),this.overlayRef.detachments().subscribe(function(){return e.closeEditOverlay()})}},{key:"_showEditOverlay",value:function(){var e=this;this.overlayRef.attach(new Z.i(this.template,this.viewContainerRef,{$implicit:this.context})),this.services.ngZone.runOutsideAngular(function(){setTimeout(function(){e.focusTrap.focusInitialElement()})}),Object(_.a)(this.services.scrollDispatcher.scrolled(),this.services.viewportRuler.change()).pipe(Object(R.a)(null),Object(E.a)(Object(_.a)(this.overlayRef.detachments(),this.destroyed))).subscribe(function(){e._updateOverlaySize()})}},{key:"_getOverlayCells",value:function(){var e=te(this.elementRef.nativeElement,K);if(!this._colspan.before&&!this._colspan.after)return[e];var t=te(this.elementRef.nativeElement,G),n=Array.from(t.querySelectorAll(K)),i=n.indexOf(e);return n.slice(i-(this._colspan.before||0),i+(this._colspan.after||0)+1)}},{key:"_getPositionStrategy",value:function(){return this.services.positionFactory.positionStrategyForCells(this._getOverlayCells())}},{key:"_updateOverlaySize",value:function(){this.overlayRef.updateSize(this.services.positionFactory.sizeConfigForCells(this._getOverlayCells()))}},{key:"_maybeReturnFocusToCell",value:function(){te(document.activeElement,".cdk-edit-pane, .mat-edit-pane")===this.overlayRef.overlayElement&&this.elementRef.nativeElement.focus()}},{key:"colspan",get:function(){return this._colspan},set:function(e){this._colspan=e,this.overlayRef&&(this.overlayRef.updatePositionStrategy(this._getPositionStrategy()),this.overlayRef.hasAttached()&&this._updateOverlaySize())}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?(this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement),this.services.editEventDispatcher.disabledCells.set(this.elementRef.nativeElement,!0)):this.services.editEventDispatcher.disabledCells.delete(this.elementRef.nativeElement)}}]),e}()).\u0275fac=function(e){return new(e||ge)(o.Yb(Ee),o.Yb(o.p),o.Yb(o.ab))},ge.\u0275dir=o.Tb({type:ge,selectors:[["","cdkPopoverEdit","",3,"cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(e,t){2&e&&o.Nb("tabindex",t.disabled?null:0)("aria-haspopup",!t.disabled)},inputs:{template:["cdkPopoverEdit","template"],context:["cdkPopoverEditContext","context"],colspan:["cdkPopoverEditColspan","colspan"],disabled:["cdkPopoverEditDisabled","disabled"]}}),ge),Ne=((pe=function(e){l(n,e);var t=h(n);function n(e,i,r,o){var a;return c(this,n),(a=t.call(this,r,e,i)).focusEscapeNotifierFactory=o,a}return a(n,[{key:"initFocusTrap",value:function(){var e=this;this.focusTrap=this.focusEscapeNotifierFactory.create(this.overlayRef.overlayElement),this.focusTrap.escapes().pipe(Object(E.a)(this.destroyed)).subscribe(function(t){e.services.editEventDispatcher.editRef&&e.services.editEventDispatcher.editRef.blur(),e.services.focusDispatcher.moveFocusHorizontally(te(e.elementRef.nativeElement,K),0===t?-1:1),e.closeEditOverlay()})}}]),n}(Te)).\u0275fac=function(e){return new(e||pe)(o.Yb(o.p),o.Yb(o.ab),o.Yb(Ee),o.Yb(Ae))},pe.\u0275dir=o.Tb({type:pe,selectors:[["","cdkPopoverEdit","","cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(e,t){2&e&&o.Nb("tabindex",t.disabled?null:0)("aria-haspopup",!t.disabled)},inputs:{template:["cdkPopoverEdit","template"],context:["cdkPopoverEditContext","context"],colspan:["cdkPopoverEditColspan","colspan"],disabled:["cdkPopoverEditDisabled","disabled"]},features:[o.Jb]}),pe),Pe=((ye=function(){function e(t,n,i,r){c(this,e),this.services=t,this.elementRef=n,this.templateRef=i,this.viewContainerRef=r,this.destroyed=new s.a,this.viewRef=null}return a(e,[{key:"ngAfterViewInit",value:function(){this._row=te(this.elementRef.nativeElement,G),this.services.editEventDispatcher.registerRowWithHoverContent(this._row),this._listenForHoverAndFocusEvents()}},{key:"ngOnDestroy",value:function(){this.destroyed.next(),this.destroyed.complete(),this.viewRef&&this.viewRef.destroy(),this._row&&this.services.editEventDispatcher.deregisterRowWithHoverContent(this._row)}},{key:"initElement",value:function(e){}},{key:"makeElementHiddenButFocusable",value:function(e){e.style.opacity="0"}},{key:"makeElementVisible",value:function(e){e.style.opacity=""}},{key:"_listenForHoverAndFocusEvents",value:function(){var e=this;this.services.editEventDispatcher.hoverOrFocusOnRow(this._row).pipe(Object(E.a)(this.destroyed)).subscribe(function(t){2===t||1===t?(e.viewRef?-1===e.viewContainerRef.indexOf(e.viewRef)&&(e.viewContainerRef.insert(e.viewRef),e.viewRef.markForCheck()):(e.viewRef=e.viewContainerRef.createEmbeddedView(e.templateRef,{}),e.initElement(e.viewRef.rootNodes[0]),e.viewRef.markForCheck()),2===t?e.makeElementVisible(e.viewRef.rootNodes[0]):e.makeElementHiddenButFocusable(e.viewRef.rootNodes[0])):e.viewRef&&e.viewContainerRef.detach(e.viewContainerRef.indexOf(e.viewRef))})}}]),e}()).\u0275fac=function(e){return new(e||ye)(o.Yb(Ee),o.Yb(o.p),o.Yb(o.V),o.Yb(o.ab))},ye.\u0275dir=o.Tb({type:ye,selectors:[["","cdkRowHoverContent",""]]}),ye),Fe=((ve=function(){function e(t,n){c(this,e),this.elementRef=t,this.editEventDispatcher=n;var i=t.nativeElement;"BUTTON"!==i.nodeName||i.getAttribute("type")||i.setAttribute("type","button")}return a(e,[{key:"openEdit",value:function(e){this.editEventDispatcher.editing.next(te(this.elementRef.nativeElement,K)),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||ve)(o.Yb(o.p),o.Yb(re))},ve.\u0275dir=o.Tb({type:ve,selectors:[["","cdkEditOpen",""]],hostBindings:function(e,t){1&e&&o.lc("click",function(e){return t.openEdit(e)})}}),ve),We=((be=function e(){c(this,e)}).\u0275mod=o.Wb({type:be}),be.\u0275inj=o.Vb({factory:function(e){return new(e||be)},providers:[{provide:De,useClass:xe}],imports:[[U.f]]}),be)},Elvg:function(e,i,r){"use strict";r.r(i),r.d(i,"ColumnResizeExamplesModule",function(){return Rt}),r.d(i,"DefaultEnabledColumnResizeExample",function(){return rt}),r.d(i,"DefaultEnabledColumnResizeExampleModule",function(){return ot}),r.d(i,"DefaultEnabledColumnResizeFlexExample",function(){return Le}),r.d(i,"DefaultEnabledColumnResizeFlexExampleModule",function(){return Be}),r.d(i,"OptInColumnResizeExample",function(){return _t}),r.d(i,"OptInColumnResizeExampleModule",function(){return wt});var o,u,f,d,b,v,y,p=r("fXoL"),g=r("+0xr"),_=r("XNiG"),w=r("xgIS"),R=r("VRyK"),O=r("itXk"),k=r("HDdC"),C=r("lJxs"),j=r("1G5W"),S=r("pLZG"),D=r("CqXF"),x=r("IzEk"),E=r("JX91"),z=r("Zy1z"),A=r("/uUt"),H=r("w1tV"),T=r("zP0r"),N=r("EePR"),P=r("f6nW"),F=r("ofXK"),W=r("8LU1"),M=r("+rOU"),Y=r("FtGj"),I=0,V=((y=function(){function e(){c(this,e),this.destroyed=new _.a,this.selectorId=""+ ++I}return a(e,[{key:"ngAfterViewInit",value:function(){this.elementRef.nativeElement.classList.add(this.getUniqueCssClass()),this._listenForRowHoverEvents(),this._listenForResizeActivity(),this._listenForHoverActivity()}},{key:"ngOnDestroy",value:function(){this.destroyed.next(),this.destroyed.complete()}},{key:"getUniqueCssClass",value:function(){return"cdk-column-resize-"+this.selectorId}},{key:"setResized",value:function(){this.elementRef.nativeElement.classList.add("cdk-column-resize-with-resized-column")}},{key:"_listenForRowHoverEvents",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){var t=e.elementRef.nativeElement;Object(w.a)(t,"mouseover").pipe(Object(C.a)(function(e){return Object(N.m)(e.target,".cdk-header-cell, .mat-header-cell")}),Object(j.a)(e.destroyed)).subscribe(e.eventDispatcher.headerCellHovered),Object(w.a)(t,"mouseleave").pipe(Object(S.a)(function(e){return!!e.relatedTarget&&!Object(N.n)(e.relatedTarget,".mat-column-resize-overlay-thumb")}),Object(D.a)(null),Object(j.a)(e.destroyed)).subscribe(e.eventDispatcher.headerCellHovered)})}},{key:"_listenForResizeActivity",value:function(){var e=this;Object(R.a)(this.eventDispatcher.overlayHandleActiveForCell.pipe(Object(D.a)(void 0)),this.notifier.triggerResize.pipe(Object(D.a)(void 0)),this.notifier.resizeCompleted.pipe(Object(D.a)(void 0))).pipe(Object(x.a)(1),Object(j.a)(this.destroyed)).subscribe(function(){e.setResized()})}},{key:"_listenForHoverActivity",value:function(){this.eventDispatcher.headerRowHoveredOrActiveDistinct.pipe(Object(E.a)(null),Object(z.a)(),Object(j.a)(this.destroyed)).subscribe(function(e){var t=n(e,2),i=t[0],r=t[1];r&&r.classList.add("cdk-column-resize-hover-or-active"),i&&i.classList.remove("cdk-column-resize-hover-or-active")})}}]),e}()).\u0275fac=function(e){return new(e||y)},y.\u0275dir=p.Tb({type:y}),y),L=((v=function e(){c(this,e),this.resizeCanceled=new _.a,this.resizeCompleted=new _.a,this.triggerResize=new _.a}).\u0275fac=function(e){return new(e||v)},v.\u0275prov=p.Ub({token:v,factory:v.\u0275fac}),v),B=((b=function(){function e(t){c(this,e),this._source=t,this.resizeCompleted=this._source.resizeCompleted}return a(e,[{key:"resize",value:function(e,t){this._source.triggerResize.next({columnId:e,size:t,completeImmediately:!0,isStickyColumn:!0})}}]),e}()).\u0275fac=function(e){return new(e||b)(p.ic(L))},b.\u0275prov=p.Ub({token:b,factory:b.\u0275fac}),b),U=((d=function(){function e(t){c(this,e),this._ngZone=t,this.headerCellHovered=new _.a,this.overlayHandleActiveForCell=new _.a,this.headerCellHoveredDistinct=this.headerCellHovered.pipe(Object(A.a)(),Object(H.a)()),this.headerRowHoveredOrActiveDistinct=Object(O.b)(this.headerCellHoveredDistinct.pipe(Object(C.a)(function(e){return Object(N.m)(e,".cdk-header-row, .mat-header-row")}),Object(E.a)(null),Object(A.a)()),this.overlayHandleActiveForCell.pipe(Object(C.a)(function(e){return Object(N.m)(e,".cdk-header-row, .mat-header-row")}),Object(E.a)(null),Object(A.a)())).pipe(Object(T.a)(1),Object(C.a)(function(e){var t=n(e,2),i=t[0];return t[1]||i}),Object(A.a)(),Object(H.a)()),this._headerRowHoveredOrActiveDistinctReenterZone=this.headerRowHoveredOrActiveDistinct.pipe(this._enterZone(),Object(H.a)()),this._lastSeenRow=null,this._lastSeenRowHover=null}return a(e,[{key:"resizeOverlayVisibleForHeaderRow",value:function(e){return e!==this._lastSeenRow&&(this._lastSeenRow=e,this._lastSeenRowHover=this._headerRowHoveredOrActiveDistinctReenterZone.pipe(Object(C.a)(function(t){return t===e}),Object(A.a)(),Object(H.a)())),this._lastSeenRowHover}},{key:"_enterZone",value:function(){var e=this;return function(t){return new k.a(function(n){return t.subscribe({next:function(t){return e._ngZone.run(function(){return n.next(t)})},error:function(e){return n.error(e)},complete:function(){return n.complete()}})})}}}]),e}()).\u0275fac=function(e){return new(e||d)(p.ic(p.I))},d.\u0275prov=p.Ub({token:d,factory:d.\u0275fac}),d),Z=((f=function(){function e(){c(this,e),this._pendingResizeDelta=null}return a(e,[{key:"updateTableWidthAndStickyColumns",value:function(e){var t,n=this;if(null===this._pendingResizeDelta){var i=this.columnResize.elementRef.nativeElement,r=X(i);this.styleScheduler.schedule(function(){i.style.width=Object(W.d)(r+n._pendingResizeDelta),n._pendingResizeDelta=null}),this.styleScheduler.scheduleEnd(function(){n.table.updateStickyColumnStyles()})}this._pendingResizeDelta=(null!==(t=this._pendingResizeDelta)&&void 0!==t?t:0)+e}}]),e}()).\u0275fac=function(e){return new(e||f)},f.\u0275prov=p.Ub({token:f,factory:f.\u0275fac}),f),Q=((u=function(e){l(n,e);var t=h(n);function n(e,i,r){var o;return c(this,n),(o=t.call(this)).columnResize=e,o.styleScheduler=i,o.table=r,o}return a(n,[{key:"applyColumnSize",value:function(e,t,n,i){var r=n-(null!=i?i:X(t));0!==r&&(this.styleScheduler.schedule(function(){t.style.width=Object(W.d)(n)}),this.updateTableWidthAndStickyColumns(r))}},{key:"applyMinColumnSize",value:function(e,t,n){var i=X(t),r=Math.max(i,n);this.applyColumnSize(e,t,r,i)}},{key:"applyMaxColumnSize",value:function(e,t,n){var i=X(t),r=Math.min(i,n);this.applyColumnSize(e,t,r,i)}}]),n}(Z)).\u0275fac=function(e){return new(e||u)(p.ic(V),p.ic(P.x),p.ic(P.q))},u.\u0275prov=p.Ub({token:u,factory:u.\u0275fac}),u),J=((o=function(e){l(n,e);var t=h(n);function n(e,i,r,o){var a;return c(this,n),(a=t.call(this)).columnResize=e,a.styleScheduler=i,a.table=r,a._columnIndexes=new Map,a._columnProperties=new Map,a._indexSequence=0,a.defaultMinSize=0,a.defaultMaxSize=Number.MAX_SAFE_INTEGER,a._document=o,a}return a(n,[{key:"applyColumnSize",value:function(e,t,n,i){var r=n-(null!=i?i:this._getAppliedWidth(e)||t.offsetWidth);if(0!==r){var o=Object(W.d)(n);this._applyProperty(e,"flex","0 0.01 "+o),this.updateTableWidthAndStickyColumns(r)}}},{key:"applyMinColumnSize",value:function(e,t,n){var i=Object(W.d)(n);this._applyProperty(e,"min-width",i,n!==this.defaultMinSize),this.updateTableWidthAndStickyColumns(0)}},{key:"applyMaxColumnSize",value:function(e,t,n){var i=Object(W.d)(n);this._applyProperty(e,"max-width",i,n!==this.defaultMaxSize),this.updateTableWidthAndStickyColumns(0)}},{key:"getColumnCssClass",value:function(e){return"cdk-column-"+e}},{key:"ngOnDestroy",value:function(){this._styleElement&&this._styleElement.parentNode&&(this._styleElement.parentNode.removeChild(this._styleElement),this._styleElement=void 0)}},{key:"_getPropertyValue",value:function(e,t){return this._getColumnPropertiesMap(e).get(t)}},{key:"_getAppliedWidth",value:function(e){return t=this._getPropertyValue(e,"flex"),Number(null===(n=null==t?void 0:t.match(/0 0\.01 (\d+)px/))||void 0===n?void 0:n[1]);var t,n}},{key:"_applyProperty",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getColumnPropertiesMap(e);this.styleScheduler.schedule(function(){r?o.set(t,n):o.delete(t),i._applySizeCss(e)})}},{key:"_getStyleSheet",value:function(){return this._styleElement||(this._styleElement=this._document.createElement("style"),this._styleElement.appendChild(this._document.createTextNode("")),this._document.head.appendChild(this._styleElement)),this._styleElement.sheet}},{key:"_getColumnPropertiesMap",value:function(e){var t=this._columnProperties.get(e);return void 0===t&&(t=new Map,this._columnProperties.set(e,t)),t}},{key:"_applySizeCss",value:function(e){var t=this._getColumnPropertiesMap(e),n=Array.from(t.keys()),i=this._columnIndexes.get(e);if(void 0===i){if(!n.length)return;i=this._indexSequence++,this._columnIndexes.set(e,i)}else this._getStyleSheet().deleteRule(i);var r=this.getColumnCssClass(e),o=".".concat(this.columnResize.getUniqueCssClass()," .").concat(r),a=n.map(function(e){return"".concat(e,":").concat(t.get(e))}).join(";");this._getStyleSheet().insertRule("".concat(o," {").concat(a,"}"),i)}}]),n}(Z)).\u0275fac=function(e){return new(e||o)(p.ic(V),p.ic(P.x),p.ic(P.q),p.ic(F.e))},o.\u0275prov=p.Ub({token:o,factory:o.\u0275fac}),o);function X(e){return Number(null===(t=e.style.width.match(/(\d+)px/))||void 0===t?void 0:t[1])||e.offsetWidth;var t}var q,K,$,G,ee,te,ne,ie,re,oe,ae,se,ce={provide:Z,useClass:Q},le=function e(t,n,i,r){c(this,e),this.origin=t,this.overlayRef=n,this.minWidthPx=i,this.maxWidthPx=r},ue=((K=function(){function e(){c(this,e),this.minWidthPxInternal=0,this.maxWidthPxInternal=Number.MAX_SAFE_INTEGER,this.destroyed=new _.a,this._viewInitialized=!1}return a(e,[{key:"ngAfterViewInit",value:function(){var e=this;this._listenForRowHoverEvents(),this._listenForResizeEvents(),this._appendInlineHandle(),this.styleScheduler.scheduleEnd(function(){e._viewInitialized=!0,e._applyMinWidthPx(),e._applyMaxWidthPx()})}},{key:"ngOnDestroy",value:function(){this.destroyed.next(),this.destroyed.complete(),this.inlineHandle&&this.elementRef.nativeElement.removeChild(this.inlineHandle),this.overlayRef&&this.overlayRef.dispose()}},{key:"_createOverlayForHandle",value:function(){var e="rtl"===this.directionality.value,t=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withFlexibleDimensions(!1).withGrowAfterOpen(!1).withPush(!1).withDefaultOffsetX(e?1:0).withPositions([{originX:e?"start":"end",originY:"top",overlayX:"center",overlayY:"top"}]);return this.overlay.create({direction:"ltr",disposeOnNavigation:!0,positionStrategy:t,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:"16px"})}},{key:"_listenForRowHoverEvents",value:function(){var e=this,t=this.elementRef.nativeElement,n=Object(j.a)(this.destroyed);this.eventDispatcher.resizeOverlayVisibleForHeaderRow(Object(N.m)(t,".cdk-header-row, .mat-header-row")).pipe(n).subscribe(function(t){t?(e.overlayRef||(e.overlayRef=e._createOverlayForHandle()),e._showHandleOverlay()):e.overlayRef&&e.overlayRef.detach()})}},{key:"_listenForResizeEvents",value:function(){var e=this,t=Object(j.a)(this.destroyed);Object(R.a)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.triggerResize).pipe(t,Object(S.a)(function(t){return t.columnId===e.columnDef.name})).subscribe(function(t){var n=t.size,i=t.previousSize,r=t.completeImmediately;e.elementRef.nativeElement.classList.add("cdk-resizable-overlay-thumb-active"),e._applySize(n,i),r&&e._completeResizeOperation()}),Object(R.a)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.resizeCompleted).pipe(t).subscribe(function(t){e._cleanUpAfterResize(t)})}},{key:"_completeResizeOperation",value:function(){var e=this;this.ngZone.run(function(){e.resizeNotifier.resizeCompleted.next({columnId:e.columnDef.name,size:e.elementRef.nativeElement.offsetWidth})})}},{key:"_cleanUpAfterResize",value:function(e){this.elementRef.nativeElement.classList.remove("cdk-resizable-overlay-thumb-active"),this.overlayRef&&this.overlayRef.hasAttached()&&(this._updateOverlayHandleHeight(),this.overlayRef.updatePosition(),e.columnId===this.columnDef.name&&this.inlineHandle.focus())}},{key:"_createHandlePortal",value:function(){var e=p.y.create({parent:this.injector,providers:[{provide:le,useValue:new le(this.elementRef,this.overlayRef,this.minWidthPx,this.maxWidthPx)}]});return new M.d(this.getOverlayHandleComponentType(),this.viewContainerRef,e)}},{key:"_showHandleOverlay",value:function(){this._updateOverlayHandleHeight(),this.overlayRef.attach(this._createHandlePortal()),this.changeDetectorRef.markForCheck()}},{key:"_updateOverlayHandleHeight",value:function(){this.overlayRef.updateSize({height:this.elementRef.nativeElement.offsetHeight})}},{key:"_applySize",value:function(e,t){var n=Math.min(Math.max(e,this.minWidthPx,0),this.maxWidthPx);this.resizeStrategy.applyColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,n,t)}},{key:"_applyMinWidthPx",value:function(){this.resizeStrategy.applyMinColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.minWidthPx)}},{key:"_applyMaxWidthPx",value:function(){this.resizeStrategy.applyMaxColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.maxWidthPx)}},{key:"_appendInlineHandle",value:function(){var e=this;this.styleScheduler.schedule(function(){e.inlineHandle=e.document.createElement("div"),e.inlineHandle.tabIndex=0,e.inlineHandle.className=e.getInlineHandleCssClassName(),e.elementRef.nativeElement.appendChild(e.inlineHandle)})}},{key:"minWidthPx",get:function(){return this.minWidthPxInternal},set:function(e){this.minWidthPxInternal=e,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMinWidthPx()}},{key:"maxWidthPx",get:function(){return this.maxWidthPxInternal},set:function(e){this.maxWidthPxInternal=e,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMaxWidthPx()}}]),e}()).\u0275fac=function(e){return new(e||K)},K.\u0275dir=p.Tb({type:K}),K),he=((q=function(){function e(){c(this,e),this.destroyed=new _.a}return a(e,[{key:"ngAfterViewInit",value:function(){this._listenForMouseEvents()}},{key:"ngOnDestroy",value:function(){this.destroyed.next(),this.destroyed.complete()}},{key:"_listenForMouseEvents",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){Object(w.a)(e.elementRef.nativeElement,"mouseenter").pipe(Object(D.a)(e.resizeRef.origin.nativeElement),Object(j.a)(e.destroyed)).subscribe(function(t){return e.eventDispatcher.headerCellHovered.next(t)}),Object(w.a)(e.elementRef.nativeElement,"mouseleave").pipe(Object(C.a)(function(e){return e.relatedTarget&&Object(N.m)(e.relatedTarget,".cdk-header-cell, .mat-header-cell")}),Object(j.a)(e.destroyed)).subscribe(function(t){return e.eventDispatcher.headerCellHovered.next(t)}),Object(w.a)(e.elementRef.nativeElement,"mousedown").pipe(Object(j.a)(e.destroyed)).subscribe(function(t){e._dragStarted(t)})})}},{key:"_dragStarted",value:function(e){var t=this;if(0===e.button){var i=Object(w.a)(this.document,"mouseup"),r=Object(w.a)(this.document,"mousemove"),o=Object(w.a)(this.document,"keyup").pipe(Object(S.a)(function(e){return e.keyCode===Y.h})),a=e.screenX,s=this._getOriginWidth(),c=0,l=this._getOriginOffset(),u=s,h=0;this.updateResizeActive(!0),i.pipe(Object(j.a)(Object(R.a)(o,this.destroyed))).subscribe(function(e){var n=e.screenX;t.styleScheduler.scheduleEnd(function(){t._notifyResizeEnded(u,n!==a)})}),o.pipe(Object(j.a)(Object(R.a)(i,this.destroyed))).subscribe(function(){t._notifyResizeEnded(s)}),r.pipe(Object(C.a)(function(e){return e.screenX}),Object(E.a)(a),Object(A.a)(),Object(z.a)(),Object(j.a)(Object(R.a)(i,o,this.destroyed))).subscribe(function(e){var i=n(e,2),r=i[0],o=i[1]-r;if(0!==h){if(h<0&&o<0||h>0&&o>0)return void(h+=o);var a=h+o;if(h=h>0?Math.max(a,0):Math.min(a,0),0==(o=a-h))return}var s=u+(t._isLtr()?o:-o);s=Math.min(Math.max(s,t.resizeRef.minWidthPx,0),t.resizeRef.maxWidthPx),t.resizeNotifier.triggerResize.next({columnId:t.columnDef.name,size:s,previousSize:u,isStickyColumn:t.columnDef.sticky||t.columnDef.stickyEnd}),t.styleScheduler.scheduleEnd(function(){var e=t._getOriginWidth(),n=t._getOriginOffset(),i=n-l,r=e-u;u=e,l=n,h+=o+(t._isLtr()?-r:r),c+=i+(t._isLtr()?r:0),t._updateOverlayOffset(c)})})}}},{key:"updateResizeActive",value:function(e){this.eventDispatcher.overlayHandleActiveForCell.next(e?this.resizeRef.origin.nativeElement:null)}},{key:"_getOriginWidth",value:function(){return this.resizeRef.origin.nativeElement.offsetWidth}},{key:"_getOriginOffset",value:function(){return this.resizeRef.origin.nativeElement.offsetLeft}},{key:"_updateOverlayOffset",value:function(e){this.resizeRef.overlayRef.overlayElement.style.transform="translateX(".concat(Object(W.d)(e),")")}},{key:"_isLtr",value:function(){return"ltr"===this.directionality.value}},{key:"_notifyResizeEnded",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.updateResizeActive(!1),this.ngZone.run(function(){var i={columnId:t.columnDef.name,size:e};n?t.resizeNotifier.resizeCompleted.next(i):t.resizeNotifier.resizeCanceled.next(i)})}}]),e}()).\u0275fac=function(e){return new(e||q)},q.\u0275dir=p.Tb({type:q}),q),fe=r("cH1L"),de=r("rDax"),me=r("FKr1"),be={provide:Z,useClass:($=function(e){l(n,e);var t=h(n);function n(e,i,r,o){return c(this,n),t.call(this,e,i,r,o)}return a(n,[{key:"getColumnCssClass",value:function(e){return"mat-column-"+e}}]),n}(J),$.\u0275fac=function(e){return new(e||$)(p.ic(V),p.ic(P.x),p.ic(P.q),p.ic(F.e))},$.\u0275prov=p.Ub({token:$,factory:$.\u0275fac}),$)},ve=[B,U,L],ye=[].concat(ve,[ce]),pe=[].concat(ve,[be]),ge=function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return a(n,[{key:"getTableHeight",value:function(){return this.elementRef.nativeElement.offsetHeight}}]),n}(V),_e=((ne=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a){var s;return c(this,n),(s=t.call(this)).columnResizeNotifier=e,s.elementRef=i,s.eventDispatcher=r,s.ngZone=o,s.notifier=a,s}return n}(ge)).\u0275fac=function(e){return new(e||ne)(p.Yb(B),p.Yb(p.p),p.Yb(U),p.Yb(p.I),p.Yb(L))},ne.\u0275dir=p.Tb({type:ne,selectors:[["table","mat-table","","columnResize",""]],hostAttrs:[1,"mat-column-resize-table"],features:[p.Lb([].concat(t(ye),[{provide:V,useExisting:ne}])),p.Jb]}),ne),we=((te=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a){var s;return c(this,n),(s=t.call(this)).columnResizeNotifier=e,s.elementRef=i,s.eventDispatcher=r,s.ngZone=o,s.notifier=a,s}return n}(ge)).\u0275fac=function(e){return new(e||te)(p.Yb(B),p.Yb(p.p),p.Yb(U),p.Yb(p.I),p.Yb(L))},te.\u0275dir=p.Tb({type:te,selectors:[["table","mat-table",""]],hostAttrs:[1,"mat-column-resize-table"],features:[p.Lb([].concat(t(ye),[{provide:V,useExisting:te}])),p.Jb]}),te),Re=((ee=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a){var s;return c(this,n),(s=t.call(this)).columnResizeNotifier=e,s.elementRef=i,s.eventDispatcher=r,s.ngZone=o,s.notifier=a,s}return n}(ge)).\u0275fac=function(e){return new(e||ee)(p.Yb(B),p.Yb(p.p),p.Yb(U),p.Yb(p.I),p.Yb(L))},ee.\u0275dir=p.Tb({type:ee,selectors:[["mat-table"]],hostAttrs:[1,"mat-column-resize-flex"],features:[p.Lb([].concat(t(pe),[{provide:V,useExisting:ee}])),p.Jb]}),ee),Oe=((G=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a,s,l,u,h,f){var d;return c(this,n),(d=t.call(this)).columnDef=e,d.columnResize=i,d.directionality=r,d.elementRef=o,d.eventDispatcher=a,d.ngZone=s,d.resizeNotifier=l,d.resizeRef=u,d.styleScheduler=h,d.document=f,d}return a(n,[{key:"updateResizeActive",value:function(e){s(m(n.prototype),"updateResizeActive",this).call(this,e),this.resizeRef.overlayRef.updateSize({height:e?this.columnResize.getTableHeight():this.resizeRef.origin.nativeElement.offsetHeight})}}]),n}(he)).\u0275fac=function(e){return new(e||G)(p.Yb(P.e),p.Yb(V),p.Yb(fe.c),p.Yb(p.p),p.Yb(U),p.Yb(p.I),p.Yb(L),p.Yb(le),p.Yb(P.x),p.Yb(F.e))},G.\u0275cmp=p.Sb({type:G,selectors:[["ng-component"]],hostAttrs:[1,"mat-column-resize-overlay-thumb"],features:[p.Jb],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),G),ke=function(e){l(n,e);var t=h(n);function n(){var e;return c(this,n),(e=t.apply(this,arguments)).minWidthPxInternal=32,e}return a(n,[{key:"getInlineHandleCssClassName",value:function(){return"mat-resizable-handle"}},{key:"getOverlayHandleComponentType",value:function(){return Oe}}]),n}(ue),Ce=((re=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a,s,l,u,h,f,d,m,b,v){var y;return c(this,n),(y=t.call(this)).columnDef=e,y.columnResize=i,y.directionality=r,y.elementRef=a,y.eventDispatcher=s,y.injector=l,y.ngZone=u,y.overlay=h,y.resizeNotifier=f,y.resizeStrategy=d,y.styleScheduler=m,y.viewContainerRef=b,y.changeDetectorRef=v,y.document=o,y}return n}(ke)).\u0275fac=function(e){return new(e||re)(p.Yb(P.e),p.Yb(V),p.Yb(fe.c),p.Yb(F.e),p.Yb(p.p),p.Yb(U),p.Yb(p.y),p.Yb(p.I),p.Yb(de.c),p.Yb(L),p.Yb(Z),p.Yb(P.x),p.Yb(p.ab),p.Yb(p.i))},re.\u0275dir=p.Tb({type:re,selectors:[["mat-header-cell",3,"disableResize",""],["th","mat-header-cell","",3,"disableResize",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:["matResizableMinWidthPx","minWidthPx"],maxWidthPx:["matResizableMaxWidthPx","maxWidthPx"]},features:[p.Jb]}),re),je=((ie=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a,s,l,u,h,f,d,m,b,v){var y;return c(this,n),(y=t.call(this)).columnDef=e,y.columnResize=i,y.directionality=r,y.elementRef=a,y.eventDispatcher=s,y.injector=l,y.ngZone=u,y.overlay=h,y.resizeNotifier=f,y.resizeStrategy=d,y.styleScheduler=m,y.viewContainerRef=b,y.changeDetectorRef=v,y.document=o,y}return n}(ke)).\u0275fac=function(e){return new(e||ie)(p.Yb(P.e),p.Yb(V),p.Yb(fe.c),p.Yb(F.e),p.Yb(p.p),p.Yb(U),p.Yb(p.y),p.Yb(p.I),p.Yb(de.c),p.Yb(L),p.Yb(Z),p.Yb(P.x),p.Yb(p.ab),p.Yb(p.i))},ie.\u0275dir=p.Tb({type:ie,selectors:[["mat-header-cell","resizable",""],["th","mat-header-cell","","resizable",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:["matResizableMinWidthPx","minWidthPx"],maxWidthPx:["matResizableMaxWidthPx","maxWidthPx"]},features:[p.Jb]}),ie),Se=[me.j,de.f,(oe=function e(){c(this,e)},oe.\u0275mod=p.Wb({type:oe}),oe.\u0275inj=p.Vb({factory:function(e){return new(e||oe)}}),oe)],De=((se=function e(){c(this,e)}).\u0275mod=p.Wb({type:se}),se.\u0275inj=p.Vb({factory:function(e){return new(e||se)},imports:[Se]}),se),xe=((ae=function e(){c(this,e)}).\u0275mod=p.Wb({type:ae}),ae.\u0275inj=p.Vb({factory:function(e){return new(e||ae)},imports:[Se]}),ae);function Ee(e,t){1&e&&(Object(p.ec)(0,"mat-header-cell",12),Object(p.Sc)(1," No. "),Object(p.dc)()),2&e&&Object(p.vc)("matResizableMaxWidthPx",100)}function ze(e,t){if(1&e&&(Object(p.ec)(0,"mat-cell"),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.position," ")}}function Ae(e,t){1&e&&(Object(p.ec)(0,"mat-header-cell",13),Object(p.Sc)(1," Name "),Object(p.dc)()),2&e&&Object(p.vc)("matResizableMinWidthPx",150)}function He(e,t){if(1&e&&(Object(p.ec)(0,"mat-cell"),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.name," ")}}function Te(e,t){1&e&&(Object(p.ec)(0,"mat-header-cell",14),Object(p.Sc)(1," Weight (Not resizable) "),Object(p.dc)())}function Ne(e,t){if(1&e&&(Object(p.ec)(0,"mat-cell"),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.weight," ")}}function Pe(e,t){1&e&&(Object(p.ec)(0,"mat-header-cell"),Object(p.Sc)(1," Symbol "),Object(p.dc)())}function Fe(e,t){if(1&e&&(Object(p.ec)(0,"mat-cell"),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.symbol," ")}}function We(e,t){1&e&&Object(p.Zb)(0,"mat-header-row")}function Me(e,t){1&e&&Object(p.Zb)(0,"mat-row")}var Ye,Ie,Ve=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}],Le=((Ie=function e(){c(this,e),this.displayedColumns=["position","name","weight","symbol"],this.dataSource=Ve}).\u0275fac=function(e){return new(e||Ie)},Ie.\u0275cmp=Object(p.Sb)({type:Ie,selectors:[["default-enabled-column-resize-flex-example"]],decls:15,vars:3,consts:[[1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],[3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name","sticky",""],[3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["disableResize","",4,"matHeaderCellDef"],["matColumnDef","symbol"],[4,"matHeaderCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"matResizableMaxWidthPx"],[3,"matResizableMinWidthPx"],["disableResize",""]],template:function(e,t){1&e&&(Object(p.ec)(0,"mat-table",0),Object(p.cc)(1,1),Object(p.Qc)(2,Ee,2,1,"mat-header-cell",2),Object(p.Qc)(3,ze,2,1,"mat-cell",3),Object(p.bc)(),Object(p.cc)(4,4),Object(p.Qc)(5,Ae,2,1,"mat-header-cell",5),Object(p.Qc)(6,He,2,1,"mat-cell",3),Object(p.bc)(),Object(p.cc)(7,6),Object(p.Qc)(8,Te,2,0,"mat-header-cell",7),Object(p.Qc)(9,Ne,2,1,"mat-cell",3),Object(p.bc)(),Object(p.cc)(10,8),Object(p.Qc)(11,Pe,2,0,"mat-header-cell",9),Object(p.Qc)(12,Fe,2,1,"mat-cell",3),Object(p.bc)(),Object(p.Qc)(13,We,1,0,"mat-header-row",10),Object(p.Qc)(14,Me,1,0,"mat-row",11),Object(p.dc)()),2&e&&(Object(p.vc)("dataSource",t.dataSource),Object(p.Mb)(13),Object(p.vc)("matHeaderRowDef",t.displayedColumns),Object(p.Mb)(1),Object(p.vc)("matRowDefColumns",t.displayedColumns))},directives:[Re,g.o,g.c,g.i,g.b,g.k,g.n,Ce,g.h,g.a,g.j,g.m],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]}),Ie),Be=((Ye=function e(){c(this,e)}).\u0275mod=Object(p.Wb)({type:Ye}),Ye.\u0275inj=Object(p.Vb)({factory:function(e){return new(e||Ye)},imports:[[De,g.q]]}),Ye);function Ue(e,t){1&e&&(Object(p.ec)(0,"th",12),Object(p.Sc)(1," No. "),Object(p.dc)()),2&e&&Object(p.vc)("matResizableMaxWidthPx",100)}function Ze(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.position," ")}}function Qe(e,t){1&e&&(Object(p.ec)(0,"th",14),Object(p.Sc)(1," Name "),Object(p.dc)()),2&e&&Object(p.vc)("matResizableMinWidthPx",150)}function Je(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.name," ")}}function Xe(e,t){1&e&&(Object(p.ec)(0,"th",15),Object(p.Sc)(1," Weight (Not resizable) "),Object(p.dc)())}function qe(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.weight," ")}}function Ke(e,t){1&e&&(Object(p.ec)(0,"th",16),Object(p.Sc)(1," Symbol "),Object(p.dc)())}function $e(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.symbol," ")}}function Ge(e,t){1&e&&Object(p.Zb)(0,"tr",17)}function et(e,t){1&e&&Object(p.Zb)(0,"tr",18)}var tt,nt,it=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}],rt=((nt=function e(){c(this,e),this.displayedColumns=["position","name","weight","symbol"],this.dataSource=it}).\u0275fac=function(e){return new(e||nt)},nt.\u0275cmp=Object(p.Sb)({type:nt,selectors:[["default-enabled-column-resize-example"]],decls:15,vars:3,consts:[["mat-table","",1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],["mat-header-cell","",3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name","sticky",""],["mat-header-cell","",3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["mat-header-cell","","disableResize","",4,"matHeaderCellDef"],["matColumnDef","symbol"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",3,"matResizableMaxWidthPx"],["mat-cell",""],["mat-header-cell","",3,"matResizableMinWidthPx"],["mat-header-cell","","disableResize",""],["mat-header-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Object(p.ec)(0,"table",0),Object(p.cc)(1,1),Object(p.Qc)(2,Ue,2,1,"th",2),Object(p.Qc)(3,Ze,2,1,"td",3),Object(p.bc)(),Object(p.cc)(4,4),Object(p.Qc)(5,Qe,2,1,"th",5),Object(p.Qc)(6,Je,2,1,"td",3),Object(p.bc)(),Object(p.cc)(7,6),Object(p.Qc)(8,Xe,2,0,"th",7),Object(p.Qc)(9,qe,2,1,"td",3),Object(p.bc)(),Object(p.cc)(10,8),Object(p.Qc)(11,Ke,2,0,"th",9),Object(p.Qc)(12,$e,2,1,"td",3),Object(p.bc)(),Object(p.Qc)(13,Ge,1,0,"tr",10),Object(p.Qc)(14,et,1,0,"tr",11),Object(p.dc)()),2&e&&(Object(p.vc)("dataSource",t.dataSource),Object(p.Mb)(13),Object(p.vc)("matHeaderRowDef",t.displayedColumns),Object(p.Mb)(1),Object(p.vc)("matRowDefColumns",t.displayedColumns))},directives:[we,g.o,g.c,g.i,g.b,g.k,g.n,Ce,g.h,g.a,g.j,g.m],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]}),nt),ot=((tt=function e(){c(this,e)}).\u0275mod=Object(p.Wb)({type:tt}),tt.\u0275inj=Object(p.Vb)({factory:function(e){return new(e||tt)},imports:[[De,g.q]]}),tt);function at(e,t){1&e&&(Object(p.ec)(0,"th",12),Object(p.Sc)(1," No. "),Object(p.dc)()),2&e&&Object(p.vc)("matResizableMaxWidthPx",100)}function st(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.position," ")}}function ct(e,t){1&e&&(Object(p.ec)(0,"th",14),Object(p.Sc)(1," Name "),Object(p.dc)()),2&e&&Object(p.vc)("matResizableMinWidthPx",150)}function lt(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.name," ")}}function ut(e,t){1&e&&(Object(p.ec)(0,"th",15),Object(p.Sc)(1," Weight (Not resizable) "),Object(p.dc)())}function ht(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.weight," ")}}function ft(e,t){1&e&&(Object(p.ec)(0,"th",16),Object(p.Sc)(1," Symbol "),Object(p.dc)())}function dt(e,t){if(1&e&&(Object(p.ec)(0,"td",13),Object(p.Sc)(1),Object(p.dc)()),2&e){var n=t.$implicit;Object(p.Mb)(1),Object(p.Uc)(" ",n.symbol," ")}}function mt(e,t){1&e&&Object(p.Zb)(0,"tr",17)}function bt(e,t){1&e&&Object(p.Zb)(0,"tr",18)}var vt,yt,pt,gt=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}],_t=((pt=function e(){c(this,e),this.displayedColumns=["position","name","weight","symbol"],this.dataSource=gt}).\u0275fac=function(e){return new(e||pt)},pt.\u0275cmp=Object(p.Sb)({type:pt,selectors:[["opt-in-column-resize-example"]],decls:15,vars:3,consts:[["mat-table","","columnResize","",1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],["mat-header-cell","","resizable","",3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name","sticky",""],["mat-header-cell","","resizable","",3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","symbol"],["mat-header-cell","","resizable","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","resizable","",3,"matResizableMaxWidthPx"],["mat-cell",""],["mat-header-cell","","resizable","",3,"matResizableMinWidthPx"],["mat-header-cell",""],["mat-header-cell","","resizable",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Object(p.ec)(0,"table",0),Object(p.cc)(1,1),Object(p.Qc)(2,at,2,1,"th",2),Object(p.Qc)(3,st,2,1,"td",3),Object(p.bc)(),Object(p.cc)(4,4),Object(p.Qc)(5,ct,2,1,"th",5),Object(p.Qc)(6,lt,2,1,"td",3),Object(p.bc)(),Object(p.cc)(7,6),Object(p.Qc)(8,ut,2,0,"th",7),Object(p.Qc)(9,ht,2,1,"td",3),Object(p.bc)(),Object(p.cc)(10,8),Object(p.Qc)(11,ft,2,0,"th",9),Object(p.Qc)(12,dt,2,1,"td",3),Object(p.bc)(),Object(p.Qc)(13,mt,1,0,"tr",10),Object(p.Qc)(14,bt,1,0,"tr",11),Object(p.dc)()),2&e&&(Object(p.vc)("dataSource",t.dataSource),Object(p.Mb)(13),Object(p.vc)("matHeaderRowDef",t.displayedColumns),Object(p.Mb)(1),Object(p.vc)("matRowDefColumns",t.displayedColumns))},directives:[g.o,_e,g.c,g.i,g.b,g.k,g.n,g.h,je,g.a,g.j,g.m],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]}),pt),wt=((yt=function e(){c(this,e)}).\u0275mod=Object(p.Wb)({type:yt}),yt.\u0275inj=Object(p.Vb)({factory:function(e){return new(e||yt)},imports:[[xe,g.q]]}),yt),Rt=((vt=function e(){c(this,e)}).\u0275mod=Object(p.Wb)({type:vt}),vt.\u0275inj=Object(p.Vb)({factory:function(e){return new(e||vt)},imports:[ot,Be,wt]}),vt)},f6nW:function(n,i,r){"use strict";r.d(i,"a",function(){return E}),r.d(i,"b",function(){return Y}),r.d(i,"c",function(){return A}),r.d(i,"d",function(){return q}),r.d(i,"e",function(){return P}),r.d(i,"f",function(){return M}),r.d(i,"g",function(){return T}),r.d(i,"h",function(){return $}),r.d(i,"i",function(){return J}),r.d(i,"j",function(){return W}),r.d(i,"k",function(){return H}),r.d(i,"l",function(){return K}),r.d(i,"m",function(){return Z}),r.d(i,"n",function(){return ee}),r.d(i,"o",function(){return G}),r.d(i,"p",function(){return X}),r.d(i,"q",function(){return se}),r.d(i,"r",function(){return ue}),r.d(i,"s",function(){return le}),r.d(i,"t",function(){return ie}),r.d(i,"u",function(){return oe}),r.d(i,"v",function(){return re}),r.d(i,"w",function(){return ae}),r.d(i,"x",function(){return V}),r.d(i,"y",function(){return L});var o=r("8LU1"),u=r("0EQZ"),f=r("fXoL"),d=r("cH1L"),b=r("nLfN"),v=r("vxfF"),y=r("ofXK"),p=r("XNiG"),g=r("Cfvw"),_=r("2Vo4"),w=r("7+OI"),R=r("LRne"),O=r("1G5W"),k=r("IzEk"),C=[[["caption"]],[["colgroup"],["col"]]],j=["caption","colgroup, col"];function S(e,t){if(1&e&&(f.ec(0,"th",3),f.Sc(1),f.dc()),2&e){var n=f.pc();f.Nc("text-align",n.justify),f.Mb(1),f.Uc(" ",n.headerText," ")}}function D(e,t){if(1&e&&(f.ec(0,"td",4),f.Sc(1),f.dc()),2&e){var n=t.$implicit,i=f.pc();f.Nc("text-align",i.justify),f.Mb(1),f.Uc(" ",i.dataAccessor(n,i.name)," ")}}function x(e){return function(e){l(n,e);var t=h(n);function n(){var e;c(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._sticky=!1,e._hasStickyChanged=!1,e}return a(n,[{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}},{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=Object(o.c)(e),this._hasStickyChanged=t!==this._sticky}}]),n}(e)}var E=new f.x("CDK_TABLE"),z=new f.x("text-column-options"),A=function(){var e=function e(t){c(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkCellDef",""]]}),e}(),H=function(){var e=function e(t){c(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e}(),T=function(){var e=function e(t){c(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkFooterCellDef",""]]}),e}(),N=x(function e(){c(this,e)}),P=function(){var e=function(e){l(n,e);var t=h(n);function n(e){var i;return c(this,n),(i=t.call(this))._table=e,i._stickyEnd=!1,i}return a(n,[{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}},{key:"_setNameInput",value:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}},{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=Object(o.c)(e),this._hasStickyChanged=t!==this._stickyEnd}}]),n}(N);return e.\u0275fac=function(t){return new(t||e)(f.Yb(E,8))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var i;(1&e&&(f.Rb(n,A,!0),f.Rb(n,H,!0),f.Rb(n,T,!0)),2&e)&&(f.Bc(i=f.mc())&&(t.cell=i.first),f.Bc(i=f.mc())&&(t.headerCell=i.first),f.Bc(i=f.mc())&&(t.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[f.Lb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),f.Jb]}),e}(),F=function t(n,i){c(this,t);var r,o=i.nativeElement.classList,a=e(n._columnCssClassName);try{for(a.s();!(r=a.n()).done;){var s=r.value;o.add(s)}}catch(l){a.e(l)}finally{a.f()}},W=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i){return c(this,n),t.call(this,e,i)}return n}(F);return e.\u0275fac=function(t){return new(t||e)(f.Yb(P),f.Yb(f.p))},e.\u0275dir=f.Tb({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[f.Jb]}),e}(),M=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i){return c(this,n),t.call(this,e,i)}return n}(F);return e.\u0275fac=function(t){return new(t||e)(f.Yb(P),f.Yb(f.p))},e.\u0275dir=f.Tb({type:e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[f.Jb]}),e}(),Y=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i){return c(this,n),t.call(this,e,i)}return n}(F);return e.\u0275fac=function(t){return new(t||e)(f.Yb(P),f.Yb(f.p))},e.\u0275dir=f.Tb({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[f.Jb]}),e}(),I=function e(){c(this,e),this.tasks=[],this.endTasks=[]},V=new f.x("_COALESCED_STYLE_SCHEDULER"),L=function(){var t=function(){function t(e){c(this,t),this._ngZone=e,this._currentSchedule=null,this._destroyed=new p.a}return a(t,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var t=this;this._currentSchedule||(this._currentSchedule=new I,this._getScheduleObservable().pipe(Object(O.a)(this._destroyed)).subscribe(function(){for(;t._currentSchedule.tasks.length||t._currentSchedule.endTasks.length;){var n=t._currentSchedule;t._currentSchedule=new I;var i,r=e(n.tasks);try{for(r.s();!(i=r.n()).done;){(0,i.value)()}}catch(s){r.e(s)}finally{r.f()}var o,a=e(n.endTasks);try{for(a.s();!(o=a.n()).done;){(0,o.value)()}}catch(s){a.e(s)}finally{a.f()}}t._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?Object(g.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(k.a)(1))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(f.ic(f.I))},t.\u0275prov=f.Ub({token:t,factory:t.\u0275fac}),t}(),B=function(){var e=function(){function e(t,n){c(this,e),this.template=t,this._differs=n}return a(e,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof Z?e.headerCell.template:this instanceof J?e.footerCell.template:e.cell.template}}]),e}();return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V),f.Yb(f.A))},e.\u0275dir=f.Tb({type:e,features:[f.Kb]}),e}(),U=x(function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(B)),Z=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i,r){var o;return c(this,n),(o=t.call(this,e,i))._table=r,o}return a(n,[{key:"ngOnChanges",value:function(e){s(m(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(U);return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V),f.Yb(f.A),f.Yb(E,8))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[f.Jb,f.Kb]}),e}(),Q=x(function(e){l(n,e);var t=h(n);function n(){return c(this,n),t.apply(this,arguments)}return n}(B)),J=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i,r){var o;return c(this,n),(o=t.call(this,e,i))._table=r,o}return a(n,[{key:"ngOnChanges",value:function(e){s(m(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(Q);return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V),f.Yb(f.A),f.Yb(E,8))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[f.Jb,f.Kb]}),e}(),X=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i,r){var o;return c(this,n),(o=t.call(this,e,i))._table=r,o}return n}(B);return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V),f.Yb(f.A),f.Yb(E,8))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[f.Jb]}),e}(),q=function(){var e=function(){function e(t){c(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return a(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.ab))},e.\u0275dir=f.Tb({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e}(),K=function(){var e=function e(){c(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=f.Sb({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&f.ac(0,0)},directives:[q],encapsulation:2}),e}(),$=function(){var e=function e(){c(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=f.Sb({type:e,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&f.ac(0,0)},directives:[q],encapsulation:2}),e}(),G=function(){var e=function e(){c(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=f.Sb({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&f.ac(0,0)},directives:[q],encapsulation:2}),e}(),ee=function(){var e=function e(t){c(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.V))},e.\u0275dir=f.Tb({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e}(),te=["top","bottom","left","right"],ne=function(){function t(e,n,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];c(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._cachedCellWidths=[]}return a(t,[{key:"clearStickyPositioning",value:function(t,n){var i,r=this,o=[],a=e(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(s.nodeType===s.ELEMENT_NODE){o.push(s);for(var c=0;c<s.children.length;c++)o.push(s.children[c])}}}catch(l){a.e(l)}finally{a.f()}this._scheduleStyleChanges(function(){var t,i=e(o);try{for(i.s();!(t=i.n()).done;){var a=t.value;r._removeStickyStyle(a,n)}}catch(l){i.e(l)}finally{i.f()}})}},{key:"updateStickyColumns",value:function(t,n,i){var r=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(n.some(function(e){return e})||i.some(function(e){return e}))){var a=t[0],s=a.children.length,c=this._getCellWidths(a,o),l=this._getStickyStartColumnPositions(c,n),u=this._getStickyEndColumnPositions(c,i);this._scheduleStyleChanges(function(){var o,a="rtl"===r.direction,c=a?"right":"left",h=a?"left":"right",f=e(t);try{for(f.s();!(o=f.n()).done;)for(var d=o.value,m=0;m<s;m++){var b=d.children[m];n[m]&&r._addStickyStyle(b,c,l[m]),i[m]&&r._addStickyStyle(b,h,u[m])}}catch(v){f.e(v)}finally{f.f()}})}}},{key:"stickRows",value:function(t,n,i){var r=this;if(this._isBrowser){for(var o="bottom"===i?t.slice().reverse():t,a="bottom"===i?n.slice().reverse():n,s=[],c=[],l=0,u=0;l<o.length;l++)if(s[l]=u,a[l]){var h=o[l];c[l]=this._isNativeHtmlTable?Array.from(h.children):[h],l!==o.length-1&&(u+=h.getBoundingClientRect().height)}this._scheduleStyleChanges(function(){for(var t=0;t<o.length;t++)if(a[t]){var n,l=s[t],u=e(c[t]);try{for(u.s();!(n=u.n()).done;){var h=n.value;r._addStickyStyle(h,i,l)}}catch(f){u.e(f)}finally{u.f()}}})}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var i=e.querySelector("tfoot");this._scheduleStyleChanges(function(){t.some(function(e){return!e})?n._removeStickyStyle(i,["bottom"]):n._addStickyStyle(i,"bottom",0)})}}},{key:"_removeStickyStyle",value:function(t,n){var i,r=e(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.style[o]=""}}catch(a){r.e(a)}finally{r.f()}te.some(function(e){return-1===n.indexOf(e)&&t.style[e]})?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,t,n){e.classList.add(this._stickCellCss),e.style[t]=n+"px",e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(t){var n,i={top:100,bottom:10,left:1,right:1},r=0,o=e(te);try{for(o.s();!(n=o.n()).done;){var a=n.value;t.style[a]&&(r+=i[a])}}catch(s){o.e(s)}finally{o.f()}return r?""+r:""}},{key:"_getCellWidths",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=e.children,r=0;r<i.length;r++)n.push(i[r].getBoundingClientRect().width);return this._cachedCellWidths=n,n}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],i=0,r=0;r<e.length;r++)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],i=0,r=e.length;r>0;r--)t[r]&&(n[r]=i,i+=e[r]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),t}(),ie=function(){var e=function e(t,n){c(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.ab),f.Yb(f.p))},e.\u0275dir=f.Tb({type:e,selectors:[["","rowOutlet",""]]}),e}(),re=function(){var e=function e(t,n){c(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.ab),f.Yb(f.p))},e.\u0275dir=f.Tb({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),oe=function(){var e=function e(t,n){c(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.ab),f.Yb(f.p))},e.\u0275dir=f.Tb({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),ae=function(){var e=function e(t,n){c(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(f.Yb(f.ab),f.Yb(f.p))},e.\u0275dir=f.Tb({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),se=function(){var n=function(){function n(e,t,i,r,o,a,s,l,u,h){c(this,n),this._differs=e,this._changeDetectorRef=t,this._elementRef=i,this._dir=o,this._platform=s,this._viewRepeater=l,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._onDestroy=new p.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new _.a({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return a(n,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(Object(O.a)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(u.h)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,i){return e._getEmbeddedViewArgs(t.item,i)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=t.item;e._renderRow(e._rowOutlet,o.rowDef,r,{$implicit:o.data})}else if(null==r)n.remove(i);else{var a=n.get(i);n.move(a,r)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var e=this,n=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(t(n),t(i),t(r)),["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach(function(t,n){e._addStickyColumnStyles([t],e._headerRowDefs[n])}),this._rowDefs.forEach(function(t){for(var n=[],r=0;r<i.length;r++)e._renderRows[r].rowDef===t&&n.push(i[r]);e._addStickyColumnStyles(n,t)}),r.forEach(function(t,n){e._addStickyColumnStyles([t],e._footerRowDefs[n])}),Array.from(this._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var i=this._data[n],r=this._getRenderRowsForData(i,n,t.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var o=0;o<r.length;o++){var a=r[o],s=this._cachedRenderRowsMap.get(a.data);s.has(a.rowDef)?s.get(a.rowDef).push(a):s.set(a.rowDef,[a]),e.push(a)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map(function(i){var r=n&&n.has(i)?n.get(i):[];if(r.length){var o=r.shift();return o.dataIndex=t,o}return{data:e,rowDef:i,dataIndex:t}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),ce(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(t){e._columnDefsByName.has(t.name),e._columnDefsByName.set(t.name,t)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=ce(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ce(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ce(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(e){return!e.when});this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(e,!1);n&&this._forceRenderHeaderRows();var i=this._footerRowDefs.reduce(e,!1);return i&&this._forceRenderFooterRows(),t||n||i}},{key:"_switchDataSource",value:function(e){this._data=[],Object(u.h)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e,t=this;this.dataSource&&(Object(u.h)(this.dataSource)?e=this.dataSource.connect(this):Object(w.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(R.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(O.a)(this._onDestroy)).subscribe(function(e){t._data=e||[],t.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),r=i.map(function(e){return e.sticky}),o=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var i=e.viewContainer.get(n);t.push(i.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(function(n){return!n.when||n.when(t,e)});else{var i=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;i&&n.push(i)}return n}},{key:"_getEmbeddedViewArgs",value:function(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}},{key:"_renderRow",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),r}},{key:"_renderCellTemplateForItem",value:function(t,n){var i,r=e(this._getCellTemplates(t));try{for(r.s();!(i=r.n()).done;){var o=i.value;q.mostRecentCellOutlet&&q.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n)}}catch(a){r.e(a)}finally{r.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var i=e.get(t).context;i.count=n,i.first=0===t,i.last=t===n-1,i.even=t%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[t].dataIndex,i.renderIndex=t):i.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var i=t._columnDefsByName.get(n);return e.extractCellTemplate(i)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var t=this._document.createDocumentFragment(),n=0,i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];n<i.length;n++){var r=i[n],o=this._document.createElement(r.tag);o.setAttribute("role","rowgroup");var a,s=e(r.outlets);try{for(s.s();!(a=s.n()).done;){var c=a.value;o.appendChild(c.elementRef.nativeElement)}}catch(l){s.e(l)}finally{s.f()}t.appendChild(o)}this._elementRef.nativeElement.appendChild(t)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return e||t.hasStickyChanged()};this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new ne(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(R.a)()).pipe(Object(O.a)(this._onDestroy)).subscribe(function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var t=this;return e.filter(function(e){return!e._table||e._table===t})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){var n=this._noDataRowOutlet.viewContainer;t?n.createEmbeddedView(e.templateRef):n.clear(),this._isShowingNoDataRow=t}}}},{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=Object(o.c)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=Object(o.c)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}}]),n}();return n.\u0275fac=function(e){return new(e||n)(f.Yb(f.A),f.Yb(f.i),f.Yb(f.p),f.jc("role"),f.Yb(d.c,8),f.Yb(y.e),f.Yb(b.a),f.Yb(u.g,8),f.Yb(V,8),f.Yb(v.j,8))},n.\u0275cmp=f.Sb({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var i;(1&e&&(f.Rb(n,ee,!0),f.Rb(n,P,!0),f.Rb(n,X,!0),f.Rb(n,Z,!0),f.Rb(n,J,!0)),2&e)&&(f.Bc(i=f.mc())&&(t._noDataRow=i.first),f.Bc(i=f.mc())&&(t._contentColumnDefs=i),f.Bc(i=f.mc())&&(t._contentRowDefs=i),f.Bc(i=f.mc())&&(t._contentHeaderRowDefs=i),f.Bc(i=f.mc())&&(t._contentFooterRowDefs=i))},viewQuery:function(e,t){var n;(1&e&&(f.Mc(ie,!0),f.Mc(re,!0),f.Mc(oe,!0),f.Mc(ae,!0)),2&e)&&(f.Bc(n=f.mc())&&(t._rowOutlet=n.first),f.Bc(n=f.mc())&&(t._headerRowOutlet=n.first),f.Bc(n=f.mc())&&(t._footerRowOutlet=n.first),f.Bc(n=f.mc())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&f.Qb("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[f.Lb([{provide:E,useExisting:n},{provide:u.g,useClass:u.e},{provide:V,useClass:L}])],ngContentSelectors:j,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(f.uc(C),f.tc(0),f.tc(1,1),f.ac(2,0),f.ac(3,1),f.ac(4,2),f.ac(5,3))},directives:[re,ie,ae,oe],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n}();function ce(e,t){return e.concat(Array.from(t))}var le=function(){var e=function(){function e(t,n){c(this,e),this._table=t,this._options=n,this.justify="start",this._options=n||{}}return a(e,[{key:"ngOnInit",value:function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,t){return e[t]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(f.Yb(se,8),f.Yb(z,8))},e.\u0275cmp=f.Sb({type:e,selectors:[["cdk-text-column"]],viewQuery:function(e,t){var n;(1&e&&(f.Mc(P,!0),f.Mc(A,!0),f.Mc(H,!0)),2&e)&&(f.Bc(n=f.mc())&&(t.columnDef=n.first),f.Bc(n=f.mc())&&(t.cell=n.first),f.Bc(n=f.mc())&&(t.headerCell=n.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(e,t){1&e&&(f.cc(0,0),f.Qc(1,S,2,3,"th",1),f.Qc(2,D,2,3,"td",2),f.bc())},directives:[P,H,A,W,Y],encapsulation:2}),e}(),ue=function(){var e=function e(){c(this,e)};return e.\u0275mod=f.Wb({type:e}),e.\u0275inj=f.Vb({factory:function(t){return new(t||e)},imports:[[v.h]]}),e}()}}])}();