-
Notifications
You must be signed in to change notification settings - Fork 5
/
1933.3ee5e3114207aa57.js
1 lines (1 loc) · 102 KB
/
1933.3ee5e3114207aa57.js
1
"use strict";(self.webpackChunkmaterial_angular_io=self.webpackChunkmaterial_angular_io||[]).push([[1933],{7716:(qe,Oe,R)=>{R.d(Oe,{Lb:()=>ke,Zb:()=>xe,P$:()=>y,Ej:()=>Ee,gC:()=>je,aq:()=>t,Zf:()=>M,Y5:()=>a,qv:()=>c,br:()=>ve,VT:()=>Ae,I$:()=>H,N2:()=>A});var e=R(4650),v=R(8929),O=R(4843),j=R(6053),U=R(6498),re=R(3753),s=R(6688),K=R(7043),k=R(4850);function pe(r,h,n){return n?pe(r,h).pipe((0,k.U)(u=>(0,s.k)(u)?n(...u):n(u))):new U.y(u=>{const f=(...Y)=>u.next(1===Y.length?Y[0]:Y);let x;try{x=r(f)}catch(Y){return void u.error(Y)}if((0,K.m)(h))return()=>h(f,x)})}var X=R(6787),_e=R(5778),J=R(1059),oe=R(5154),G=R(2198),ge=R(7568),Fe=R(384),se=R(13),T=R(1307),W=R(2986),F=R(7625),te=R(7604),de=R(3489),ce=R(353);const ye={leading:!0,trailing:!1};class P{constructor(h,n,u,f){this.duration=h,this.scheduler=n,this.leading=u,this.trailing=f}call(h,n){return n.subscribe(new I(h,this.duration,this.scheduler,this.leading,this.trailing))}}class I extends de.L{constructor(h,n,u,f,x){super(h),this.duration=n,this.scheduler=u,this.leading=f,this.trailing=x,this._hasTrailingValue=!1,this._trailingValue=null}_next(h){this.throttled?this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(ae,this.duration,{subscriber:this})),this.leading?this.destination.next(h):this.trailing&&(this._trailingValue=h,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const h=this.throttled;h&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),h.unsubscribe(),this.remove(h),this.throttled=null)}}function ae(r){const{subscriber:h}=r;h.clearThrottle()}var Z=R(2474),ie=R(826),Le=R(448);class Pe{constructor(h,n){this.observables=h,this.project=n}call(h,n){return n.subscribe(new d(h,this.observables,this.project))}}class d extends ie.L{constructor(h,n,u){super(h),this.observables=n,this.project=u,this.toRespond=[];const f=n.length;this.values=new Array(f);for(let x=0;x<f;x++)this.toRespond.push(x);for(let x=0;x<f;x++)this.add((0,Le.D)(this,n[x],void 0,x))}notifyNext(h,n,u){this.values[u]=n;const f=this.toRespond;if(f.length>0){const x=f.indexOf(u);-1!==x&&f.splice(x,1)}}notifyComplete(){}_next(h){if(0===this.toRespond.length){const n=[h,...this.values];this.project?this._tryProject(n):this.destination.next(n)}}_tryProject(h){let n;try{n=this.project.apply(this,h)}catch(u){return void this.destination.error(u)}this.destination.next(n)}}var _=R(4006),C=R(445),D=R(9521),z=R(8184),Q=R(4080),B=R(2687),L=R(7376),ue=R(6895);const H=".cdk-cell, .mat-cell, td",he=".cdk-popover-edit-cell, .mat-popover-edit-cell",$=".cdk-row, .mat-row, tr",Re="table, cdk-table, mat-table",$e="cdk-edit-pane",Ie=`.${$e}, .mat-edit-pane`;function A(r,h){if(!(r instanceof Node))return null;let n=r;for(;null!=n&&!(n instanceof Element);)n=n.parentNode;return n?.closest(h)??null}let Te=(()=>{class r{constructor(n){this._ngZone=n,this.editing=new v.xQ,this.hovering=new v.xQ,this.focused=new v.xQ,this.allRows=new v.xQ,this.mouseMove=new v.xQ,this.disabledCells=new WeakMap,this._editRef=null,this._distinctUntilChanged=(0,_e.x)(),this._startWithNull=(0,J.O)(null),this._distinctShare=(0,O.z)(this._distinctUntilChanged,(0,oe.d)(1)),this._startWithNullDistinct=(0,O.z)(this._startWithNull,this._distinctUntilChanged),this.editingAndEnabled=this.editing.pipe((0,G.h)(u=>null==u||!this.disabledCells.has(u)),(0,oe.d)(1)),this.editingOrFocused=(0,j.aj)([this.editingAndEnabled.pipe((0,k.U)(u=>A(u,$)),this._startWithNull),this.focused.pipe(this._startWithNull)]).pipe((0,k.U)(([u,f])=>f||u),this._distinctUntilChanged,(0,ge.e)(0),this._distinctUntilChanged,(0,oe.d)(1)),this._rowsWithHoverContent=new WeakMap,this._currentlyEditing=null,this._hoveredContentStateDistinct=(0,j.aj)([this._getFirstRowWithHoverContent(),this._getLastRowWithHoverContent(),this.editingOrFocused,this.hovering.pipe((0,_e.x)(),(0,Fe.U)(u=>this.mouseMove.pipe((0,G.h)(f=>u===f),this._startWithNull,(0,se.b)(40))),this._startWithNullDistinct)]).pipe((0,T.T)(1),(0,k.U)(Ye),(0,_e.x)(We),this._enterZone(),(0,oe.d)(1)),this._editingAndEnabledDistinct=this.editingAndEnabled.pipe((0,_e.x)(),this._enterZone(),(0,oe.d)(1)),this._lastSeenRow=null,this._lastSeenRowHoverOrFocus=null,this._editingAndEnabledDistinct.subscribe(u=>{this._currentlyEditing=u})}get editRef(){return this._editRef}editingCell(n){let u=null;return this._editingAndEnabledDistinct.pipe((0,k.U)(f=>f===(u||(u=A(n,H)))),this._distinctUntilChanged)}doneEditingCell(n){const u=A(n,H);this._currentlyEditing===u&&this.editing.next(null)}setActiveEditRef(n){this._editRef=n}unsetActiveEditRef(n){this._editRef===n&&(this._editRef=null)}registerRowWithHoverContent(n){this._rowsWithHoverContent.set(n,(this._rowsWithHoverContent.get(n)||0)+1)}deregisterRowWithHoverContent(n){const u=this._rowsWithHoverContent.get(n)||0;u<=1?this._rowsWithHoverContent.delete(n):this._rowsWithHoverContent.set(n,u-1)}hoverOrFocusOnRow(n){return n!==this._lastSeenRow&&(this._lastSeenRow=n,this._lastSeenRowHoverOrFocus=this._hoveredContentStateDistinct.pipe((0,k.U)(u=>u.get(n)||0),this._distinctShare)),this._lastSeenRowHoverOrFocus}_enterZone(){return n=>new U.y(u=>n.subscribe({next:f=>this._ngZone.run(()=>u.next(f)),error:f=>u.error(f),complete:()=>u.complete()}))}_getFirstRowWithHoverContent(){return this._mapAllRowsToSingleRow(n=>{for(let f,u=0;f=n[u];u++)if(this._rowsWithHoverContent.has(f))return f;return null})}_getLastRowWithHoverContent(){return this._mapAllRowsToSingleRow(n=>{for(let f,u=n.length-1;f=n[u];u--)if(this._rowsWithHoverContent.has(f))return f;return null})}_mapAllRowsToSingleRow(n){return this.allRows.pipe((0,k.U)(n),this._startWithNullDistinct)}}return r.\u0275fac=function(n){return new(n||r)(e.LFG(e.R0b))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})();function Ye([r,h,n,u]){const f=new Map;for(const x of[r,h,n&&n.previousElementSibling,n&&n.nextElementSibling])x&&f.set(x,1);for(const x of[n,u])x&&f.set(x,2);return f}function We(r,h){if(r.size!==h.size)return!1;for(const n of Array.from(r.keys()))if(h.get(n)!==r.get(n))return!1;return!0}let ve=(()=>{class r{constructor(n,u,f){this._form=n,this._editEventDispatcher=u,this._ngZone=f,this._finalValueSubject=new v.xQ,this.finalValue=this._finalValueSubject,this._blurredSubject=new v.xQ,this.blurred=this._blurredSubject,this._editEventDispatcher.setActiveEditRef(this)}init(n){this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{this.updateRevertValue(),n&&this.reset(n)})}ngOnDestroy(){this._editEventDispatcher.unsetActiveEditRef(this),this._finalValueSubject.next(this._form.value),this._finalValueSubject.complete()}isValid(){return this._form.valid}updateRevertValue(){this._revertFormValue=this._form.value}close(){this._editEventDispatcher.editing.next(null)}blur(){this._blurredSubject.next()}reset(n){this._form.reset(n||this._revertFormValue)}}return r.\u0275fac=function(n){return new(n||r)(e.LFG(_.gN,2),e.LFG(Te),e.LFG(e.R0b))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})(),Ze=(()=>{class r{constructor(n){this.directionality=n,this.keyObserver={next:u=>this.handleKeyboardEvent(u)}}moveFocusHorizontally(n,u){const f=Array.from(A(n,Re).querySelectorAll(he)),Y=f.indexOf(n)+u;f[Y]&&f[Y].focus()}moveFocusVertically(n,u){const f=A(n,$),x=Array.from(A(f,Re).querySelectorAll($)),Y=x.indexOf(f),me=Array.from(f.querySelectorAll(he)).indexOf(n),N=Y+u;if(x[N]){const ze=Array.from(x[N].querySelectorAll(he));ze[me]&&ze[me].focus()}}handleKeyboardEvent(n){const u=A(n.target,he);if(u){switch(n.keyCode){case D.LH:this.moveFocusVertically(u,-1);break;case D.JH:this.moveFocusVertically(u,1);break;case D.oh:this.moveFocusHorizontally(u,"ltr"===this.directionality.value?-1:1);break;case D.SV:this.moveFocusHorizontally(u,"ltr"===this.directionality.value?1:-1);break;default:return}n.preventDefault()}}}return r.\u0275fac=function(n){return new(n||r)(e.LFG(C.Is))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();class Ae{constructor(){this._formValues=new WeakMap}for(h){const n=this._formValues;let u=n.get(h);return u||(u={},n.set(h,u)),u}}let xe=(()=>{class r{constructor(n,u){this.elementRef=n,this.editRef=u,this.destroyed=new v.xQ,this.clickOutBehavior="close",this.preservedFormValueChange=new e.vpe,this.ignoreSubmitUnlessValid=!0}ngOnInit(){this.editRef.init(this.preservedFormValue),this.editRef.finalValue.subscribe(this.preservedFormValueChange),this.editRef.blurred.subscribe(()=>this._handleBlur())}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}handleFormSubmit(){this.ignoreSubmitUnlessValid&&!this.editRef.isValid()||(this.editRef.updateRevertValue(),this.editRef.close())}close(){this.editRef.close()}handlePossibleClickOut(n){if(!A(n.target,Ie))switch(this.clickOutBehavior){case"submit":this._triggerFormSubmit(),this.editRef.close();break;case"close":this.editRef.close()}}_handleKeydown(n){"Escape"===n.key&&!(0,D.Vb)(n)&&(this.close(),n.preventDefault())}_handleBlur(){"submit"===this.clickOutBehavior&&this._triggerFormSubmit()}_triggerFormSubmit(){this.elementRef.nativeElement.dispatchEvent(new Event("submit"))}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(e.SBq),e.Y36(ve))},r.\u0275dir=e.lG2({type:r,selectors:[["form","cdkEditControl",""]],hostBindings:function(n,u){1&n&&e.NdJ("ngSubmit",function(){return u.handleFormSubmit()})("click",function(x){return u.handlePossibleClickOut(x)},!1,e.evT)("keydown",function(x){return u._handleKeydown(x)})},inputs:{clickOutBehavior:["cdkEditControlClickOutBehavior","clickOutBehavior"],preservedFormValue:["cdkEditControlPreservedFormValue","preservedFormValue"],ignoreSubmitUnlessValid:["cdkEditControlIgnoreSubmitUnlessValid","ignoreSubmitUnlessValid"]},outputs:{preservedFormValueChange:"cdkEditControlPreservedFormValueChange"},features:[e._Bn([ve])]}),r})(),Ee=(()=>{class r{constructor(n){this.editRef=n,this.type="button"}revertEdit(){this.editRef.reset()}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(ve))},r.\u0275dir=e.lG2({type:r,selectors:[["button","cdkEditRevert",""]],hostAttrs:["type","button"],hostBindings:function(n,u){1&n&&e.NdJ("click",function(){return u.revertEdit()})},inputs:{type:"type"}}),r})(),ke=(()=>{class r{constructor(n,u){this.elementRef=n,this.editRef=u;const f=n.nativeElement;"BUTTON"===f.nodeName&&!f.getAttribute("type")&&f.setAttribute("type","button")}closeEdit(){this.editRef.close()}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(e.SBq),e.Y36(ve))},r.\u0275dir=e.lG2({type:r,selectors:[["","cdkEditClose",""]],hostBindings:function(n,u){1&n&&e.NdJ("click",function(){return u.closeEdit()})("keydown.enter",function(){return u.closeEdit()})("keydown.space",function(){return u.closeEdit()})}}),r})(),Ge=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})(),et=(()=>{class r extends Ge{constructor(n,u){super(),this.direction=n,this.overlay=u}positionStrategyForCells(n){return this.overlay.position().flexibleConnectedTo(n[0]).withGrowAfterOpen().withPush().withViewportMargin(16).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top"}])}sizeConfigForCells(n){if(0===n.length)return{};if(1===n.length)return{width:n[0].getBoundingClientRect().width};let u,f;return"ltr"===this.direction.value?(u=n[0],f=n[n.length-1]):(f=n[0],u=n[n.length-1]),{width:f.getBoundingClientRect().right-u.getBoundingClientRect().left}}}return r.\u0275fac=function(n){return new(n||r)(e.LFG(C.Is),e.LFG(z.aV))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})(),fe=(()=>{class r{constructor(n,u,f,x,Y,me,N,ze,tt){this.directionality=n,this.editEventDispatcher=u,this.focusDispatcher=f,this.focusTrapFactory=x,this.ngZone=Y,this.overlay=me,this.positionFactory=N,this.scrollDispatcher=ze,this.viewportRuler=tt}}return r.\u0275fac=function(n){return new(n||r)(e.LFG(C.Is),e.LFG(Te),e.LFG(Ze),e.LFG(B.qV),e.LFG(e.R0b),e.LFG(z.aV),e.LFG(Ge),e.LFG(L.mF),e.LFG(L.rL))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})();class Ne extends B.iQ{constructor(h,n,u,f){super(h,n,u,f,!0),this._escapeSubject=new v.xQ,this.startAnchorListener=()=>(this._escapeSubject.next(0),!0),this.endAnchorListener=()=>(this._escapeSubject.next(1),!0),this.attachAnchors()}escapes(){return this._escapeSubject}}let Ve=(()=>{class r{constructor(n,u,f){this._checker=n,this._ngZone=u,this._document=f}create(n){return new Ne(n,this._checker,this._ngZone,this._document)}}return r.\u0275fac=function(n){return new(n||r)(e.LFG(B.ic),e.LFG(e.R0b),e.LFG(ue.K0))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),je=(()=>{class r{constructor(n,u,f,x){this.elementRef=n,this.editEventDispatcher=u,this.focusDispatcher=f,this.ngZone=x,this.destroyed=new v.xQ}ngAfterViewInit(){this._listenForTableEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}_listenForTableEvents(){const n=this.elementRef.nativeElement,u=f=>(0,k.U)(x=>A(x.target,f));this.ngZone.runOutsideAngular(()=>{(0,re.R)(n,"mouseover").pipe(u($),(0,F.R)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),(0,re.R)(n,"mouseleave").pipe((0,te.h)(null),(0,F.R)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),(0,re.R)(n,"mousemove").pipe(function De(r,h=ce.P,n=ye){return u=>u.lift(new P(r,h,n.leading,n.trailing))}(10),u($),(0,F.R)(this.destroyed)).subscribe(this.editEventDispatcher.mouseMove),pe(f=>n.addEventListener("focus",f,!0),f=>n.removeEventListener("focus",f,!0)).pipe(u($),(0,Z.B)(),(0,F.R)(this.destroyed)).subscribe(this.editEventDispatcher.focused),(0,X.T)(pe(f=>n.addEventListener("blur",f,!0),f=>n.removeEventListener("blur",f,!0)),(0,re.R)(n,"keydown").pipe((0,G.h)(f=>"Escape"===f.key))).pipe((0,te.h)(null),(0,Z.B)(),(0,F.R)(this.destroyed)).subscribe(this.editEventDispatcher.focused),this.ngZone.onStable.pipe(function we(...r){return h=>{let n;return"function"==typeof r[r.length-1]&&(n=r.pop()),h.lift(new Pe(r,n))}}(this.editEventDispatcher.editingOrFocused),(0,G.h)(([f,x])=>null==x),(0,k.U)(()=>n.querySelectorAll($)),(0,Z.B)(),(0,F.R)(this.destroyed)).subscribe(this.editEventDispatcher.allRows),(0,re.R)(n,"keydown").pipe((0,G.h)(f=>"Enter"===f.key),u(H),(0,F.R)(this.destroyed)).subscribe(this.editEventDispatcher.editing),(0,re.R)(n,"keydown").pipe((0,F.R)(this.destroyed)).subscribe(this.focusDispatcher.keyObserver)})}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(e.SBq),e.Y36(Te),e.Y36(Ze),e.Y36(e.R0b))},r.\u0275dir=e.lG2({type:r,selectors:[["table","editable",""],["cdk-table","editable",""],["mat-table","editable",""]],features:[e._Bn([Te,fe])]}),r})(),t=(()=>{class r{constructor(n,u,f){this.services=n,this.elementRef=u,this.viewContainerRef=f,this.template=null,this._colspan={},this._disabled=!1,this.destroyed=new v.xQ}get colspan(){return this._colspan}set colspan(n){this._colspan=n,this.overlayRef&&(this.overlayRef.updatePositionStrategy(this._getPositionStrategy()),this.overlayRef.hasAttached()&&this._updateOverlaySize())}get disabled(){return this._disabled}set disabled(n){this._disabled=n,n?(this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement),this.services.editEventDispatcher.disabledCells.set(this.elementRef.nativeElement,!0)):this.services.editEventDispatcher.disabledCells.delete(this.elementRef.nativeElement)}ngAfterViewInit(){this._startListeningToEditEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.focusTrap&&(this.focusTrap.destroy(),this.focusTrap=void 0),this.overlayRef&&this.overlayRef.dispose()}initFocusTrap(){this.focusTrap=this.services.focusTrapFactory.create(this.overlayRef.overlayElement)}closeEditOverlay(){this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement)}panelClass(){return $e}_startListeningToEditEvents(){this.services.editEventDispatcher.editingCell(this.elementRef.nativeElement).pipe((0,F.R)(this.destroyed)).subscribe(n=>{n&&this.template?(this.overlayRef||this._createEditOverlay(),this._showEditOverlay()):this.overlayRef&&(this._maybeReturnFocusToCell(),this.overlayRef.detach())})}_createEditOverlay(){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(()=>this.closeEditOverlay())}_showEditOverlay(){this.overlayRef.attach(new Q.UE(this.template,this.viewContainerRef,{$implicit:this.context})),this.services.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.focusTrap.focusInitialElement()})}),(0,X.T)(this.services.scrollDispatcher.scrolled(),this.services.viewportRuler.change()).pipe((0,J.O)(null),(0,F.R)((0,X.T)(this.overlayRef.detachments(),this.destroyed))).subscribe(()=>{this._updateOverlaySize()})}_getOverlayCells(){const n=A(this.elementRef.nativeElement,H);if(!this._colspan.before&&!this._colspan.after)return[n];const u=A(this.elementRef.nativeElement,$),f=Array.from(u.querySelectorAll(H)),x=f.indexOf(n);return f.slice(x-(this._colspan.before||0),x+(this._colspan.after||0)+1)}_getPositionStrategy(){return this.services.positionFactory.positionStrategyForCells(this._getOverlayCells())}_updateOverlaySize(){this.overlayRef.updateSize(this.services.positionFactory.sizeConfigForCells(this._getOverlayCells()))}_maybeReturnFocusToCell(){A(document.activeElement,Ie)===this.overlayRef.overlayElement&&this.elementRef.nativeElement.focus()}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(fe),e.Y36(e.SBq),e.Y36(e.s_b))},r.\u0275dir=e.lG2({type:r,selectors:[["","cdkPopoverEdit","",3,"cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(n,u){2&n&&e.uIk("tabindex",u.disabled?null:0)("aria-haspopup",!u.disabled)},inputs:{template:["cdkPopoverEdit","template"],context:["cdkPopoverEditContext","context"],colspan:["cdkPopoverEditColspan","colspan"],disabled:["cdkPopoverEditDisabled","disabled"]}}),r})(),a=(()=>{class r extends t{constructor(n,u,f,x){super(f,n,u),this.focusEscapeNotifierFactory=x}initFocusTrap(){this.focusTrap=this.focusEscapeNotifierFactory.create(this.overlayRef.overlayElement),this.focusTrap.escapes().pipe((0,F.R)(this.destroyed)).subscribe(n=>{this.services.editEventDispatcher.editRef&&this.services.editEventDispatcher.editRef.blur(),this.services.focusDispatcher.moveFocusHorizontally(A(this.elementRef.nativeElement,H),0===n?-1:1),this.closeEditOverlay()})}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(e.SBq),e.Y36(e.s_b),e.Y36(fe),e.Y36(Ve))},r.\u0275dir=e.lG2({type:r,selectors:[["","cdkPopoverEdit","","cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(n,u){2&n&&e.uIk("tabindex",u.disabled?null:0)("aria-haspopup",!u.disabled)},inputs:{template:["cdkPopoverEdit","template"],context:["cdkPopoverEditContext","context"],colspan:["cdkPopoverEditColspan","colspan"],disabled:["cdkPopoverEditDisabled","disabled"]},features:[e.qOj]}),r})(),c=(()=>{class r{constructor(n,u,f,x){this.services=n,this.elementRef=u,this.templateRef=f,this.viewContainerRef=x,this.destroyed=new v.xQ,this.viewRef=null}ngAfterViewInit(){this._row=A(this.elementRef.nativeElement,$),this.services.editEventDispatcher.registerRowWithHoverContent(this._row),this._listenForHoverAndFocusEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewRef&&this.viewRef.destroy(),this._row&&this.services.editEventDispatcher.deregisterRowWithHoverContent(this._row)}initElement(n){}makeElementHiddenButFocusable(n){n.style.opacity="0"}makeElementVisible(n){n.style.opacity=""}_listenForHoverAndFocusEvents(){this.services.editEventDispatcher.hoverOrFocusOnRow(this._row).pipe((0,F.R)(this.destroyed)).subscribe(n=>{2===n||1===n?(this.viewRef?-1===this.viewContainerRef.indexOf(this.viewRef)&&(this.viewContainerRef.insert(this.viewRef),this.viewRef.markForCheck()):(this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef,{}),this.initElement(this.viewRef.rootNodes[0]),this.viewRef.markForCheck()),2===n?this.makeElementVisible(this.viewRef.rootNodes[0]):this.makeElementHiddenButFocusable(this.viewRef.rootNodes[0])):this.viewRef&&this.viewContainerRef.detach(this.viewContainerRef.indexOf(this.viewRef))})}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(fe),e.Y36(e.SBq),e.Y36(e.Rgc),e.Y36(e.s_b))},r.\u0275dir=e.lG2({type:r,selectors:[["","cdkRowHoverContent",""]]}),r})(),y=(()=>{class r{constructor(n,u){this.elementRef=n,this.editEventDispatcher=u;const f=n.nativeElement;"BUTTON"===f.nodeName&&!f.getAttribute("type")&&f.setAttribute("type","button")}openEdit(n){this.editEventDispatcher.editing.next(A(this.elementRef.nativeElement,H)),n.stopPropagation()}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(e.SBq),e.Y36(Te))},r.\u0275dir=e.lG2({type:r,selectors:[["","cdkEditOpen",""]],hostBindings:function(n,u){1&n&&e.NdJ("click",function(x){return u.openEdit(x)})}}),r})(),M=(()=>{class r{}return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[{provide:Ge,useClass:et}],imports:[z.U8]}),r})()},5013:(qe,Oe,R)=>{R.d(Oe,{$E:()=>Ee,Af:()=>De,D5:()=>de,FT:()=>xe,HT:()=>je,Hx:()=>Ve,Kb:()=>B,O_:()=>te,QJ:()=>P,Sq:()=>Q,T$:()=>Ae,Z4:()=>ce,_J:()=>H,bH:()=>ke,fe:()=>z,fo:()=>V,hD:()=>I,m$:()=>Ze,nl:()=>Z,oF:()=>ie,pF:()=>ve,pN:()=>W,qM:()=>ue,r2:()=>he,s$:()=>_,xN:()=>L,zC:()=>fe});var e=R(445),v=R(1281),O=R(5017),j=R(3353),U=R(7376),re=R(6895),s=R(4650),K=R(8929),k=R(5254),pe=R(591),X=R(4715),_e=R(1086),J=R(7625),oe=R(2986);const G=[[["caption"]],[["colgroup"],["col"]]],ge=["caption","colgroup, col"];function Fe(l,p){if(1&l&&(s.TgZ(0,"th",3),s._uU(1),s.qZA()),2&l){const t=s.oxw();s.Udp("text-align",t.justify),s.xp6(1),s.hij(" ",t.headerText," ")}}function se(l,p){if(1&l&&(s.TgZ(0,"td",4),s._uU(1),s.qZA()),2&l){const t=p.$implicit,a=s.oxw();s.Udp("text-align",a.justify),s.xp6(1),s.hij(" ",a.dataAccessor(t,a.name)," ")}}function T(l){return class extends l{constructor(...p){super(...p),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(p){const t=this._sticky;this._sticky=(0,v.Ig)(p),this._hasStickyChanged=t!==this._sticky}hasStickyChanged(){const p=this._hasStickyChanged;return this._hasStickyChanged=!1,p}resetStickyChanged(){this._hasStickyChanged=!1}}}const W=new s.OlP("CDK_TABLE"),F=new s.OlP("text-column-options");let te=(()=>{class l{constructor(t){this.template=t}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkCellDef",""]]}),l})(),de=(()=>{class l{constructor(t){this.template=t}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkHeaderCellDef",""]]}),l})(),ce=(()=>{class l{constructor(t){this.template=t}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkFooterCellDef",""]]}),l})();class ye{}const He=T(ye);let V=(()=>{class l extends He{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const a=this._stickyEnd;this._stickyEnd=(0,v.Ig)(t),this._hasStickyChanged=a!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(W,8))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,a,c){if(1&t&&(s.Suo(c,te,5),s.Suo(c,de,5),s.Suo(c,ce,5)),2&t){let y;s.iGM(y=s.CRH())&&(a.cell=y.first),s.iGM(y=s.CRH())&&(a.headerCell=y.first),s.iGM(y=s.CRH())&&(a.footerCell=y.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:l}]),s.qOj]}),l})();class be{constructor(p,t){t.nativeElement.classList.add(...p._columnCssClassName)}}let De=(()=>{class l extends be{constructor(t,a){super(t,a)}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(V),s.Y36(s.SBq))},l.\u0275dir=s.lG2({type:l,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.qOj]}),l})(),P=(()=>{class l extends be{constructor(t,a){if(super(t,a),1===t._table?._elementRef.nativeElement.nodeType){const c=t._table._elementRef.nativeElement.getAttribute("role");a.nativeElement.setAttribute("role","grid"===c||"treegrid"===c?"gridcell":"cell")}}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(V),s.Y36(s.SBq))},l.\u0275dir=s.lG2({type:l,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[s.qOj]}),l})(),I=(()=>{class l extends be{constructor(t,a){if(super(t,a),1===t._table?._elementRef.nativeElement.nodeType){const c=t._table._elementRef.nativeElement.getAttribute("role");a.nativeElement.setAttribute("role","grid"===c||"treegrid"===c?"gridcell":"cell")}}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(V),s.Y36(s.SBq))},l.\u0275dir=s.lG2({type:l,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[s.qOj]}),l})();class ae{constructor(){this.tasks=[],this.endTasks=[]}}const Z=new s.OlP("_COALESCED_STYLE_SCHEDULER");let ie=(()=>{class l{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new K.xQ}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ae,this._getScheduleObservable().pipe((0,J.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new ae;for(const a of t.tasks)a();for(const a of t.endTasks)a()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,k.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,oe.q)(1))}}return l.\u0275fac=function(t){return new(t||l)(s.LFG(s.R0b))},l.\u0275prov=s.Yz7({token:l,factory:l.\u0275fac}),l})(),we=(()=>{class l{constructor(t,a){this.template=t,this._differs=a}ngOnChanges(t){if(!this._columnsDiffer){const a=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof _?t.headerCell.template:this instanceof z?t.footerCell.template:t.cell.template}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc),s.Y36(s.ZZ4))},l.\u0275dir=s.lG2({type:l,features:[s.TTD]}),l})();class Pe extends we{}const d=T(Pe);let _=(()=>{class l extends d{constructor(t,a,c){super(t,a),this._table=c}ngOnChanges(t){super.ngOnChanges(t)}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(W,8))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),l})();class C extends we{}const D=T(C);let z=(()=>{class l extends D{constructor(t,a,c){super(t,a),this._table=c}ngOnChanges(t){super.ngOnChanges(t)}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(W,8))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.qOj,s.TTD]}),l})(),Q=(()=>{class l extends we{constructor(t,a,c){super(t,a),this._table=c}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc),s.Y36(s.ZZ4),s.Y36(W,8))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.qOj]}),l})(),B=(()=>{class l{constructor(t){this._viewContainer=t,l.mostRecentCellOutlet=this}ngOnDestroy(){l.mostRecentCellOutlet===this&&(l.mostRecentCellOutlet=null)}}return l.mostRecentCellOutlet=null,l.\u0275fac=function(t){return new(t||l)(s.Y36(s.s_b))},l.\u0275dir=s.lG2({type:l,selectors:[["","cdkCellOutlet",""]]}),l})(),L=(()=>{class l{}return l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=s.Xpm({type:l,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,a){1&t&&s.GkF(0,0)},dependencies:[B],encapsulation:2}),l})(),ue=(()=>{class l{}return l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=s.Xpm({type:l,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,a){1&t&&s.GkF(0,0)},dependencies:[B],encapsulation:2}),l})(),H=(()=>{class l{}return l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=s.Xpm({type:l,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,a){1&t&&s.GkF(0,0)},dependencies:[B],encapsulation:2}),l})(),he=(()=>{class l{constructor(t){this.templateRef=t,this._contentClassName="cdk-no-data-row"}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.Rgc))},l.\u0275dir=s.lG2({type:l,selectors:[["ng-template","cdkNoDataRow",""]]}),l})();const $=["top","bottom","left","right"];class Re{constructor(p,t,a,c,y=!0,w=!0,M){this._isNativeHtmlTable=p,this._stickCellCss=t,this.direction=a,this._coalescedStyleScheduler=c,this._isBrowser=y,this._needsPositionStickyOnElement=w,this._positionListener=M,this._cachedCellWidths=[],this._borderCellCss={top:`${t}-border-elem-top`,bottom:`${t}-border-elem-bottom`,left:`${t}-border-elem-left`,right:`${t}-border-elem-right`}}clearStickyPositioning(p,t){const a=[];for(const c of p)if(c.nodeType===c.ELEMENT_NODE){a.push(c);for(let y=0;y<c.children.length;y++)a.push(c.children[y])}this._coalescedStyleScheduler.schedule(()=>{for(const c of a)this._removeStickyStyle(c,t)})}updateStickyColumns(p,t,a,c=!0){if(!p.length||!this._isBrowser||!t.some(f=>f)&&!a.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const y=p[0],w=y.children.length,M=this._getCellWidths(y,c),r=this._getStickyStartColumnPositions(M,t),h=this._getStickyEndColumnPositions(M,a),n=t.lastIndexOf(!0),u=a.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,x=f?"right":"left",Y=f?"left":"right";for(const me of p)for(let N=0;N<w;N++){const ze=me.children[N];t[N]&&this._addStickyStyle(ze,x,r[N],N===n),a[N]&&this._addStickyStyle(ze,Y,h[N],N===u)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===n?[]:M.slice(0,n+1).map((me,N)=>t[N]?me:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:M.slice(u).map((me,N)=>a[N+u]?me:null).reverse()}))})}stickRows(p,t,a){if(!this._isBrowser)return;const c="bottom"===a?p.slice().reverse():p,y="bottom"===a?t.slice().reverse():t,w=[],M=[],r=[];for(let n=0,u=0;n<c.length;n++){if(!y[n])continue;w[n]=u;const f=c[n];r[n]=this._isNativeHtmlTable?Array.from(f.children):[f];const x=f.getBoundingClientRect().height;u+=x,M[n]=x}const h=y.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let n=0;n<c.length;n++){if(!y[n])continue;const u=w[n],f=n===h;for(const x of r[n])this._addStickyStyle(x,a,u,f)}"top"===a?this._positionListener?.stickyHeaderRowsUpdated({sizes:M,offsets:w,elements:r}):this._positionListener?.stickyFooterRowsUpdated({sizes:M,offsets:w,elements:r})})}updateStickyFooterContainer(p,t){if(!this._isNativeHtmlTable)return;const a=p.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{t.some(c=>!c)?this._removeStickyStyle(a,["bottom"]):this._addStickyStyle(a,"bottom",0,!1)})}_removeStickyStyle(p,t){for(const c of t)p.style[c]="",p.classList.remove(this._borderCellCss[c]);$.some(c=>-1===t.indexOf(c)&&p.style[c])?p.style.zIndex=this._getCalculatedZIndex(p):(p.style.zIndex="",this._needsPositionStickyOnElement&&(p.style.position=""),p.classList.remove(this._stickCellCss))}_addStickyStyle(p,t,a,c){p.classList.add(this._stickCellCss),c&&p.classList.add(this._borderCellCss[t]),p.style[t]=`${a}px`,p.style.zIndex=this._getCalculatedZIndex(p),this._needsPositionStickyOnElement&&(p.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(p){const t={top:100,bottom:10,left:1,right:1};let a=0;for(const c of $)p.style[c]&&(a+=t[c]);return a?`${a}`:""}_getCellWidths(p,t=!0){if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;const a=[],c=p.children;for(let y=0;y<c.length;y++)a.push(c[y].getBoundingClientRect().width);return this._cachedCellWidths=a,a}_getStickyStartColumnPositions(p,t){const a=[];let c=0;for(let y=0;y<p.length;y++)t[y]&&(a[y]=c,c+=p[y]);return a}_getStickyEndColumnPositions(p,t){const a=[];let c=0;for(let y=p.length;y>0;y--)t[y]&&(a[y]=c,c+=p[y]);return a}}const ve=new s.OlP("CDK_SPL");let Ze=(()=>{class l{}return l.\u0275fac=function(t){return new(t||l)},l.\u0275dir=s.lG2({type:l,selectors:[["cdk-table","recycleRows",""],["table","cdk-table","","recycleRows",""]],features:[s._Bn([{provide:O.k,useClass:O.eX}])]}),l})(),Ae=(()=>{class l{constructor(t,a){this.viewContainer=t,this.elementRef=a}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.s_b),s.Y36(s.SBq))},l.\u0275dir=s.lG2({type:l,selectors:[["","rowOutlet",""]]}),l})(),xe=(()=>{class l{constructor(t,a){this.viewContainer=t,this.elementRef=a}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.s_b),s.Y36(s.SBq))},l.\u0275dir=s.lG2({type:l,selectors:[["","headerRowOutlet",""]]}),l})(),Ee=(()=>{class l{constructor(t,a){this.viewContainer=t,this.elementRef=a}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.s_b),s.Y36(s.SBq))},l.\u0275dir=s.lG2({type:l,selectors:[["","footerRowOutlet",""]]}),l})(),ke=(()=>{class l{constructor(t,a){this.viewContainer=t,this.elementRef=a}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.s_b),s.Y36(s.SBq))},l.\u0275dir=s.lG2({type:l,selectors:[["","noDataRowOutlet",""]]}),l})(),fe=(()=>{class l{constructor(t,a,c,y,w,M,r,h,n,u,f,x){this._differs=t,this._changeDetectorRef=a,this._elementRef=c,this._dir=w,this._platform=r,this._viewRepeater=h,this._coalescedStyleScheduler=n,this._viewportRuler=u,this._stickyPositioningListener=f,this._ngZone=x,this._onDestroy=new K.xQ,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.contentChanged=new s.vpe,this.viewChange=new pe.X({start:0,end:Number.MAX_VALUE}),y||this._elementRef.nativeElement.setAttribute("role","table"),this._document=M,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=(0,v.Ig)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=(0,v.Ig)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,a)=>this.trackBy?this.trackBy(a.dataIndex,a.data):a),this._viewportRuler.change().pipe((0,J.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const a=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||a,this._forceRecalculateCellWidths=a,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()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(t=>{t.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,O.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return this._updateNoDataRow(),void this.contentChanged.next();const a=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(t,a,(c,y,w)=>this._getEmbeddedViewArgs(c.item,w),c=>c.item.data,c=>{1===c.operation&&c.context&&this._renderCellTemplateForItem(c.record.item.rowDef,c.context)}),this._updateRowIndexContext(),t.forEachIdentityChange(c=>{a.get(c.currentIndex).context.$implicit=c.item.data}),this._updateNoDataRow(),this._ngZone&&s.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,oe.q)(1),(0,J.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=t.length?"":"none");const y=this._headerRowDefs.map(w=>w.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,y,"top"),this._headerRowDefs.forEach(w=>w.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=t.length?"":"none");const y=this._footerRowDefs.map(w=>w.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,y,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,y),this._footerRowDefs.forEach(w=>w.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),a=this._getRenderedRows(this._rowOutlet),c=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...a,...c],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((y,w)=>{this._addStickyColumnStyles([y],this._headerRowDefs[w])}),this._rowDefs.forEach(y=>{const w=[];for(let M=0;M<a.length;M++)this._renderRows[M].rowDef===y&&w.push(a[M]);this._addStickyColumnStyles(w,y)}),c.forEach((y,w)=>{this._addStickyColumnStyles([y],this._footerRowDefs[w])}),Array.from(this._columnDefsByName.values()).forEach(y=>y.resetStickyChanged())}_getAllRenderRows(){const t=[],a=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let c=0;c<this._data.length;c++){let y=this._data[c];const w=this._getRenderRowsForData(y,c,a.get(y));this._cachedRenderRowsMap.has(y)||this._cachedRenderRowsMap.set(y,new WeakMap);for(let M=0;M<w.length;M++){let r=w[M];const h=this._cachedRenderRowsMap.get(r.data);h.has(r.rowDef)?h.get(r.rowDef).push(r):h.set(r.rowDef,[r]),t.push(r)}}return t}_getRenderRowsForData(t,a,c){return this._getRowDefs(t,a).map(w=>{const M=c&&c.has(w)?c.get(w):[];if(M.length){const r=M.shift();return r.dataIndex=a,r}return{data:t,rowDef:w,dataIndex:a}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ne(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(a=>{this._columnDefsByName.has(a.name),this._columnDefsByName.set(a.name,a)})}_cacheRowDefs(){this._headerRowDefs=Ne(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ne(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ne(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(a=>!a.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(w,M)=>w||!!M.getColumnsDiff(),a=this._rowDefs.reduce(t,!1);a&&this._forceRenderDataRows();const c=this._headerRowDefs.reduce(t,!1);c&&this._forceRenderHeaderRows();const y=this._footerRowDefs.reduce(t,!1);return y&&this._forceRenderFooterRows(),a||c||y}_switchDataSource(t){this._data=[],(0,O.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;(0,O.Z9)(this.dataSource)?t=this.dataSource.connect(this):(0,X.b)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=(0,_e.of)(this.dataSource)),this._renderChangeSubscription=t.pipe((0,J.R)(this._onDestroy)).subscribe(a=>{this._data=a||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,a)=>this._renderRow(this._headerRowOutlet,t,a)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,a)=>this._renderRow(this._footerRowOutlet,t,a)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,a){const c=Array.from(a.columns||[]).map(M=>this._columnDefsByName.get(M)),y=c.map(M=>M.sticky),w=c.map(M=>M.stickyEnd);this._stickyStyler.updateStickyColumns(t,y,w,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const a=[];for(let c=0;c<t.viewContainer.length;c++){const y=t.viewContainer.get(c);a.push(y.rootNodes[0])}return a}_getRowDefs(t,a){if(1==this._rowDefs.length)return[this._rowDefs[0]];let c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(y=>!y.when||y.when(a,t));else{let y=this._rowDefs.find(w=>w.when&&w.when(a,t))||this._defaultRowDef;y&&c.push(y)}return c}_getEmbeddedViewArgs(t,a){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:a}}_renderRow(t,a,c,y={}){const w=t.viewContainer.createEmbeddedView(a.template,y,c);return this._renderCellTemplateForItem(a,y),w}_renderCellTemplateForItem(t,a){for(let c of this._getCellTemplates(t))B.mostRecentCellOutlet&&B.mostRecentCellOutlet._viewContainer.createEmbeddedView(c,a);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let a=0,c=t.length;a<c;a++){const w=t.get(a).context;w.count=c,w.first=0===a,w.last=a===c-1,w.even=a%2==0,w.odd=!w.even,this.multiTemplateDataRows?(w.dataIndex=this._renderRows[a].dataIndex,w.renderIndex=a):w.index=this._renderRows[a].dataIndex}}_getCellTemplates(t){return t&&t.columns?Array.from(t.columns,a=>{const c=this._columnDefsByName.get(a);return t.extractCellTemplate(c)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),a=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const c of a){const y=this._document.createElement(c.tag);y.setAttribute("role","rowgroup");for(const w of c.outlets)y.appendChild(w.elementRef.nativeElement);t.appendChild(y)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(a,c)=>a||c.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Re(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,_e.of)()).pipe((0,J.R)(this._onDestroy)).subscribe(a=>{this._stickyStyler.direction=a,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(a=>!a._table||a._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(!t)return;const a=0===this._rowOutlet.viewContainer.length;if(a===this._isShowingNoDataRow)return;const c=this._noDataRowOutlet.viewContainer;if(a){const y=c.createEmbeddedView(t.templateRef),w=y.rootNodes[0];1===y.rootNodes.length&&w?.nodeType===this._document.ELEMENT_NODE&&(w.setAttribute("role","row"),w.classList.add(t._contentClassName))}else c.clear();this._isShowingNoDataRow=a}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(s.ZZ4),s.Y36(s.sBO),s.Y36(s.SBq),s.$8M("role"),s.Y36(e.Is,8),s.Y36(re.K0),s.Y36(j.t4),s.Y36(O.k),s.Y36(Z),s.Y36(U.rL),s.Y36(ve,12),s.Y36(s.R0b,8))},l.\u0275cmp=s.Xpm({type:l,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,a,c){if(1&t&&(s.Suo(c,he,5),s.Suo(c,V,5),s.Suo(c,Q,5),s.Suo(c,_,5),s.Suo(c,z,5)),2&t){let y;s.iGM(y=s.CRH())&&(a._noDataRow=y.first),s.iGM(y=s.CRH())&&(a._contentColumnDefs=y),s.iGM(y=s.CRH())&&(a._contentRowDefs=y),s.iGM(y=s.CRH())&&(a._contentHeaderRowDefs=y),s.iGM(y=s.CRH())&&(a._contentFooterRowDefs=y)}},viewQuery:function(t,a){if(1&t&&(s.Gf(Ae,7),s.Gf(xe,7),s.Gf(Ee,7),s.Gf(ke,7)),2&t){let c;s.iGM(c=s.CRH())&&(a._rowOutlet=c.first),s.iGM(c=s.CRH())&&(a._headerRowOutlet=c.first),s.iGM(c=s.CRH())&&(a._footerRowOutlet=c.first),s.iGM(c=s.CRH())&&(a._noDataRowOutlet=c.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,a){2&t&&s.ekj("cdk-table-fixed-layout",a.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[s._Bn([{provide:W,useExisting:l},{provide:O.k,useClass:O.yy},{provide:Z,useClass:ie},{provide:ve,useValue:null}])],ngContentSelectors:ge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,a){1&t&&(s.F$t(G),s.Hsn(0),s.Hsn(1,1),s.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[Ae,xe,Ee,ke],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),l})();function Ne(l,p){return l.concat(Array.from(p))}let Ve=(()=>{class l{constructor(t,a){this._table=t,this._options=a,this.justify="start",this._options=a||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,a)=>t[a])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return l.\u0275fac=function(t){return new(t||l)(s.Y36(fe,8),s.Y36(F,8))},l.\u0275cmp=s.Xpm({type:l,selectors:[["cdk-text-column"]],viewQuery:function(t,a){if(1&t&&(s.Gf(V,7),s.Gf(te,7),s.Gf(de,7)),2&t){let c;s.iGM(c=s.CRH())&&(a.columnDef=c.first),s.iGM(c=s.CRH())&&(a.cell=c.first),s.iGM(c=s.CRH())&&(a.headerCell=c.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},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(t,a){1&t&&(s.ynx(0,0),s.YNc(1,Fe,2,3,"th",1),s.YNc(2,se,2,3,"td",2),s.BQk())},dependencies:[te,de,V,I,De],encapsulation:2}),l})(),je=(()=>{class l{}return l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=s.oAB({type:l}),l.\u0275inj=s.cJS({imports:[U.Cl]}),l})()},1933:(qe,Oe,R)=>{R.r(Oe),R.d(Oe,{ColumnResizeExamplesModule:()=>Ht,DefaultEnabledColumnResizeExample:()=>Tt,DefaultEnabledColumnResizeExampleModule:()=>st,DefaultEnabledColumnResizeFlexExample:()=>Ot,DefaultEnabledColumnResizeFlexExampleModule:()=>ot,OptInColumnResizeExample:()=>Nt,OptInColumnResizeExampleModule:()=>at});var e=R(4650),v=R(3626),O=R(8929),j=R(3753),U=R(6787),re=R(6053),s=R(6498),K=R(4850),k=R(7625),pe=R(2198),X=R(7604),_e=R(2986),J=R(1059),oe=R(519),G=R(5778),ge=R(2474),Fe=R(1307),se=R(7716),T=R(5013),W=R(6895),F=R(1281),te=R(4080),de=R(9521);const ce=".cdk-header-cell, .mat-header-cell",ye=".cdk-header-row, .mat-header-row",V="cdk-column-resize-hover-or-active";let De=0,P=(()=>{class i{constructor(){this.destroyed=new O.xQ,this.selectorId=""+ ++De}ngAfterViewInit(){this.elementRef.nativeElement.classList.add(this.getUniqueCssClass()),this._listenForRowHoverEvents(),this._listenForResizeActivity(),this._listenForHoverActivity()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}getUniqueCssClass(){return`cdk-column-resize-${this.selectorId}`}setResized(){this.elementRef.nativeElement.classList.add("cdk-column-resize-with-resized-column")}_listenForRowHoverEvents(){this.ngZone.runOutsideAngular(()=>{const o=this.elementRef.nativeElement;(0,j.R)(o,"mouseover").pipe((0,K.U)(g=>(0,se.N2)(g.target,ce)),(0,k.R)(this.destroyed)).subscribe(this.eventDispatcher.headerCellHovered),(0,j.R)(o,"mouseleave").pipe((0,pe.h)(g=>!!g.relatedTarget&&!g.relatedTarget.matches(".mat-column-resize-overlay-thumb")),(0,X.h)(null),(0,k.R)(this.destroyed)).subscribe(this.eventDispatcher.headerCellHovered)})}_listenForResizeActivity(){(0,U.T)(this.eventDispatcher.overlayHandleActiveForCell.pipe((0,X.h)(void 0)),this.notifier.triggerResize.pipe((0,X.h)(void 0)),this.notifier.resizeCompleted.pipe((0,X.h)(void 0))).pipe((0,_e.q)(1),(0,k.R)(this.destroyed)).subscribe(()=>{this.setResized()})}_listenForHoverActivity(){this.eventDispatcher.headerRowHoveredOrActiveDistinct.pipe((0,J.O)(null),(0,oe.G)(),(0,k.R)(this.destroyed)).subscribe(([o,g])=>{g&&g.classList.add(V),o&&o.classList.remove(V)})}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=e.lG2({type:i}),i})(),I=(()=>{class i{constructor(){this.resizeCanceled=new O.xQ,this.resizeCompleted=new O.xQ,this.triggerResize=new O.xQ}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),ae=(()=>{class i{constructor(o){this._source=o,this.resizeCompleted=this._source.resizeCompleted}resize(o,g){this._source.triggerResize.next({columnId:o,size:g,completeImmediately:!0,isStickyColumn:!0})}}return i.\u0275fac=function(o){return new(o||i)(e.LFG(I))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),Z=(()=>{class i{constructor(o){this._ngZone=o,this.headerCellHovered=new O.xQ,this.overlayHandleActiveForCell=new O.xQ,this.headerCellHoveredDistinct=this.headerCellHovered.pipe((0,G.x)(),(0,ge.B)()),this.headerRowHoveredOrActiveDistinct=(0,re.aj)([this.headerCellHoveredDistinct.pipe((0,K.U)(g=>(0,se.N2)(g,ye)),(0,J.O)(null),(0,G.x)()),this.overlayHandleActiveForCell.pipe((0,K.U)(g=>(0,se.N2)(g,ye)),(0,J.O)(null),(0,G.x)())]).pipe((0,Fe.T)(1),(0,K.U)(([g,b])=>b||g),(0,G.x)(),(0,ge.B)()),this._headerRowHoveredOrActiveDistinctReenterZone=this.headerRowHoveredOrActiveDistinct.pipe(this._enterZone(),(0,ge.B)()),this._lastSeenRow=null,this._lastSeenRowHover=null}resizeOverlayVisibleForHeaderRow(o){return o!==this._lastSeenRow&&(this._lastSeenRow=o,this._lastSeenRowHover=this._headerRowHoveredOrActiveDistinctReenterZone.pipe((0,K.U)(g=>g===o),(0,G.x)(),(0,ge.B)())),this._lastSeenRowHover}_enterZone(){return o=>new s.y(g=>o.subscribe({next:b=>this._ngZone.run(()=>g.next(b)),error:b=>g.error(b),complete:()=>g.complete()}))}}return i.\u0275fac=function(o){return new(o||i)(e.LFG(e.R0b))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),ie=(()=>{class i{constructor(){this._pendingResizeDelta=null}updateTableWidthAndStickyColumns(o){if(null===this._pendingResizeDelta){const g=this.columnResize.elementRef.nativeElement,b=d(g);this.styleScheduler.schedule(()=>{g.style.width=(0,F.HM)(b+this._pendingResizeDelta),this._pendingResizeDelta=null}),this.styleScheduler.scheduleEnd(()=>{this.table.updateStickyColumnStyles()})}this._pendingResizeDelta=(this._pendingResizeDelta??0)+o}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),Le=(()=>{class i extends ie{constructor(o,g,b){super(),this.columnResize=o,this.styleScheduler=g,this.table=b}applyColumnSize(o,g,b,E){const S=b-(E??d(g));0!==S&&(this.styleScheduler.schedule(()=>{g.style.width=(0,F.HM)(b)}),this.updateTableWidthAndStickyColumns(S))}applyMinColumnSize(o,g,b){const E=d(g),S=Math.max(E,b);this.applyColumnSize(o,g,S,E)}applyMaxColumnSize(o,g,b){const E=d(g),S=Math.min(E,b);this.applyColumnSize(o,g,S,E)}}return i.\u0275fac=function(o){return new(o||i)(e.LFG(P),e.LFG(T.nl),e.LFG(T.zC))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})(),we=(()=>{class i extends ie{constructor(o,g,b,E){super(),this.columnResize=o,this.styleScheduler=g,this.table=b,this._columnIndexes=new Map,this._columnProperties=new Map,this._indexSequence=0,this.defaultMinSize=0,this.defaultMaxSize=Number.MAX_SAFE_INTEGER,this._document=E}applyColumnSize(o,g,b,E){const S=b-(E??(this._getAppliedWidth(o)||g.offsetWidth));if(0===S)return;const q=(0,F.HM)(b);this._applyProperty(o,"flex",`0 0.01 ${q}`),this.updateTableWidthAndStickyColumns(S)}applyMinColumnSize(o,g,b){const E=(0,F.HM)(b);this._applyProperty(o,"min-width",E,b!==this.defaultMinSize),this.updateTableWidthAndStickyColumns(0)}applyMaxColumnSize(o,g,b){const E=(0,F.HM)(b);this._applyProperty(o,"max-width",E,b!==this.defaultMaxSize),this.updateTableWidthAndStickyColumns(0)}getColumnCssClass(o){return`cdk-column-${o}`}ngOnDestroy(){this._styleElement?.remove(),this._styleElement=void 0}_getPropertyValue(o,g){return this._getColumnPropertiesMap(o).get(g)}_getAppliedWidth(o){return function _(i){return Number(i?.match(/0 0\.01 (\d+)px/)?.[1])}(this._getPropertyValue(o,"flex"))}_applyProperty(o,g,b,E=!0){const S=this._getColumnPropertiesMap(o);this.styleScheduler.schedule(()=>{E?S.set(g,b):S.delete(g),this._applySizeCss(o)})}_getStyleSheet(){return this._styleElement||(this._styleElement=this._document.createElement("style"),this._styleElement.appendChild(this._document.createTextNode("")),this._document.head.appendChild(this._styleElement)),this._styleElement.sheet}_getColumnPropertiesMap(o){let g=this._columnProperties.get(o);return void 0===g&&(g=new Map,this._columnProperties.set(o,g)),g}_applySizeCss(o){const g=this._getColumnPropertiesMap(o),b=Array.from(g.keys());let E=this._columnIndexes.get(o);if(void 0===E){if(!b.length)return;E=this._indexSequence++,this._columnIndexes.set(o,E)}else this._getStyleSheet().deleteRule(E);const S=this.getColumnCssClass(o),Me=`.${this.columnResize.getUniqueCssClass()} .${S}`,Se=b.map(ne=>`${ne}:${g.get(ne)}`).join(";");this._getStyleSheet().insertRule(`${Me} {${Se}}`,E)}}return i.\u0275fac=function(o){return new(o||i)(e.LFG(P),e.LFG(T.nl),e.LFG(T.zC),e.LFG(W.K0))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})();function d(i){return function Pe(i){return Number(i.match(/(\d+)px/)?.[1])}(i.style.width)||i.offsetWidth}const C={provide:ie,useClass:Le};class Ie{constructor(m,o,g,b){this.origin=m,this.overlayRef=o,this.minWidthPx=g,this.maxWidthPx=b}}const A="cdk-resizable-overlay-thumb-active";let Ke=(()=>{class i{constructor(){this.minWidthPxInternal=0,this.maxWidthPxInternal=Number.MAX_SAFE_INTEGER,this.destroyed=new O.xQ,this._viewInitialized=!1,this._isDestroyed=!1}get minWidthPx(){return this.minWidthPxInternal}set minWidthPx(o){this.minWidthPxInternal=o,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMinWidthPx()}get maxWidthPx(){return this.maxWidthPxInternal}set maxWidthPx(o){this.maxWidthPxInternal=o,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMaxWidthPx()}ngAfterViewInit(){this._listenForRowHoverEvents(),this._listenForResizeEvents(),this._appendInlineHandle(),this.styleScheduler.scheduleEnd(()=>{this._isDestroyed||(this._viewInitialized=!0,this._applyMinWidthPx(),this._applyMaxWidthPx())})}ngOnDestroy(){this._isDestroyed=!0,this.destroyed.next(),this.destroyed.complete(),this.inlineHandle?.remove(),this.overlayRef?.dispose()}_createOverlayForHandle(){const o="rtl"===this.directionality.value,g=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withFlexibleDimensions(!1).withGrowAfterOpen(!1).withPush(!1).withDefaultOffsetX(o?1:0).withPositions([{originX:o?"start":"end",originY:"top",overlayX:"center",overlayY:"top"}]);return this.overlay.create({direction:"ltr",disposeOnNavigation:!0,positionStrategy:g,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:"16px"})}_listenForRowHoverEvents(){const o=this.elementRef.nativeElement,g=(0,k.R)(this.destroyed);this.eventDispatcher.resizeOverlayVisibleForHeaderRow((0,se.N2)(o,ye)).pipe(g).subscribe(b=>{b?(this.overlayRef||(this.overlayRef=this._createOverlayForHandle()),this._showHandleOverlay()):this.overlayRef&&this.overlayRef.detach()})}_listenForResizeEvents(){const o=(0,k.R)(this.destroyed);(0,U.T)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.triggerResize).pipe(o,(0,pe.h)(g=>g.columnId===this.columnDef.name)).subscribe(({size:g,previousSize:b,completeImmediately:E})=>{this.elementRef.nativeElement.classList.add(A),this._applySize(g,b),E&&this._completeResizeOperation()}),(0,U.T)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.resizeCompleted).pipe(o).subscribe(g=>{this._cleanUpAfterResize(g)})}_completeResizeOperation(){this.ngZone.run(()=>{this.resizeNotifier.resizeCompleted.next({columnId:this.columnDef.name,size:this.elementRef.nativeElement.offsetWidth})})}_cleanUpAfterResize(o){this.elementRef.nativeElement.classList.remove(A),this.overlayRef&&this.overlayRef.hasAttached()&&(this._updateOverlayHandleHeight(),this.overlayRef.updatePosition(),o.columnId===this.columnDef.name&&this.inlineHandle.focus())}_createHandlePortal(){const o=e.zs3.create({parent:this.injector,providers:[{provide:Ie,useValue:new Ie(this.elementRef,this.overlayRef,this.minWidthPx,this.maxWidthPx)}]});return new te.C5(this.getOverlayHandleComponentType(),this.viewContainerRef,o)}_showHandleOverlay(){this._updateOverlayHandleHeight(),this.overlayRef.attach(this._createHandlePortal()),this.changeDetectorRef.markForCheck()}_updateOverlayHandleHeight(){this.overlayRef.updateSize({height:this.elementRef.nativeElement.offsetHeight})}_applySize(o,g){const b=Math.min(Math.max(o,this.minWidthPx,0),this.maxWidthPx);this.resizeStrategy.applyColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,b,g)}_applyMinWidthPx(){this.resizeStrategy.applyMinColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.minWidthPx)}_applyMaxWidthPx(){this.resizeStrategy.applyMaxColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.maxWidthPx)}_appendInlineHandle(){this.styleScheduler.schedule(()=>{this.inlineHandle=this.document.createElement("div"),this.inlineHandle.tabIndex=0,this.inlineHandle.className=this.getInlineHandleCssClassName(),this.elementRef.nativeElement.appendChild(this.inlineHandle)})}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=e.lG2({type:i}),i})(),Xe=(()=>{class i{constructor(){this.destroyed=new O.xQ}ngAfterViewInit(){this._listenForMouseEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}_listenForMouseEvents(){this.ngZone.runOutsideAngular(()=>{(0,j.R)(this.elementRef.nativeElement,"mouseenter").pipe((0,X.h)(this.resizeRef.origin.nativeElement),(0,k.R)(this.destroyed)).subscribe(o=>this.eventDispatcher.headerCellHovered.next(o)),(0,j.R)(this.elementRef.nativeElement,"mouseleave").pipe((0,K.U)(o=>o.relatedTarget&&(0,se.N2)(o.relatedTarget,ce)),(0,k.R)(this.destroyed)).subscribe(o=>this.eventDispatcher.headerCellHovered.next(o)),(0,j.R)(this.elementRef.nativeElement,"mousedown").pipe((0,k.R)(this.destroyed)).subscribe(o=>{this._dragStarted(o)})})}_dragStarted(o){if(0!==o.button)return;const g=(0,j.R)(this.document,"mouseup"),b=(0,j.R)(this.document,"mousemove"),E=(0,j.R)(this.document,"keyup").pipe((0,pe.h)(Ce=>Ce.keyCode===de.hY)),S=o.screenX,q=this._getOriginWidth();let Me=0,Se=this._getOriginOffset(),ne=q,ee=0;this.updateResizeActive(!0),g.pipe((0,k.R)((0,U.T)(E,this.destroyed))).subscribe(({screenX:Ce})=>{this.styleScheduler.scheduleEnd(()=>{this._notifyResizeEnded(ne,Ce!==S)})}),E.pipe((0,k.R)((0,U.T)(g,this.destroyed))).subscribe(()=>{this._notifyResizeEnded(q)}),b.pipe((0,K.U)(({screenX:Ce})=>Ce),(0,J.O)(S),(0,G.x)(),(0,oe.G)(),(0,k.R)((0,U.T)(g,E,this.destroyed))).subscribe(([Ce,Qe])=>{let le=Qe-Ce;if(0!==ee){if(ee<0&&le<0||ee>0&&le>0)return void(ee+=le);{const Ue=ee+le;if(ee=ee>0?Math.max(Ue,0):Math.min(Ue,0),le=Ue-ee,0===le)return}}let Be=ne+(this._isLtr()?le:-le);Be=Math.min(Math.max(Be,this.resizeRef.minWidthPx,0),this.resizeRef.maxWidthPx),this.resizeNotifier.triggerResize.next({columnId:this.columnDef.name,size:Be,previousSize:ne,isStickyColumn:this.columnDef.sticky||this.columnDef.stickyEnd}),this.styleScheduler.scheduleEnd(()=>{const Ue=this._getOriginWidth(),lt=this._getOriginOffset(),Pt=lt-Se,it=Ue-ne;ne=Ue,Se=lt,ee+=le+(this._isLtr()?-it:it),Me+=Pt+(this._isLtr()?it:0),this._updateOverlayOffset(Me)})})}updateResizeActive(o){this.eventDispatcher.overlayHandleActiveForCell.next(o?this.resizeRef.origin.nativeElement:null)}_getOriginWidth(){return this.resizeRef.origin.nativeElement.offsetWidth}_getOriginOffset(){return this.resizeRef.origin.nativeElement.offsetLeft}_updateOverlayOffset(o){this.resizeRef.overlayRef.overlayElement.style.transform=`translateX(${(0,F.HM)(o)})`}_isLtr(){return"ltr"===this.directionality.value}_notifyResizeEnded(o,g=!1){this.updateResizeActive(!1),this.ngZone.run(()=>{const b={columnId:this.columnDef.name,size:o};g?this.resizeNotifier.resizeCompleted.next(b):this.resizeNotifier.resizeCanceled.next(b)})}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275dir=e.lG2({type:i}),i})();var Te=R(3238),Ye=R(8184),We=R(445);const ve=["top"],Ae={provide:ie,useClass:(()=>{class i extends we{constructor(o,g,b,E){super(o,g,b,E)}getColumnCssClass(o){return`mat-column-${o}`}}return i.\u0275fac=function(o){return new(o||i)(e.LFG(P),e.LFG(T.nl),e.LFG(T.zC),e.LFG(W.K0))},i.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac}),i})()},xe=[ae,Z,I],Ee=[...xe,C],ke=[...xe,Ae];class fe extends P{getTableHeight(){return this.elementRef.nativeElement.offsetHeight}}let Ne=(()=>{class i extends fe{constructor(o,g,b,E,S){super(),this.columnResizeNotifier=o,this.elementRef=g,this.eventDispatcher=b,this.ngZone=E,this.notifier=S}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(ae),e.Y36(e.SBq),e.Y36(Z),e.Y36(e.R0b),e.Y36(I))},i.\u0275dir=e.lG2({type:i,selectors:[["table","mat-table","","columnResize",""]],hostAttrs:[1,"mat-column-resize-table"],features:[e._Bn([...Ee,{provide:P,useExisting:i}]),e.qOj]}),i})(),Je=(()=>{class i extends fe{constructor(o,g,b,E,S){super(),this.columnResizeNotifier=o,this.elementRef=g,this.eventDispatcher=b,this.ngZone=E,this.notifier=S}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(ae),e.Y36(e.SBq),e.Y36(Z),e.Y36(e.R0b),e.Y36(I))},i.\u0275dir=e.lG2({type:i,selectors:[["table","mat-table",""]],hostAttrs:[1,"mat-column-resize-table"],features:[e._Bn([...Ee,{provide:P,useExisting:i}]),e.qOj]}),i})(),je=(()=>{class i extends fe{constructor(o,g,b,E,S){super(),this.columnResizeNotifier=o,this.elementRef=g,this.eventDispatcher=b,this.ngZone=E,this.notifier=S}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(ae),e.Y36(e.SBq),e.Y36(Z),e.Y36(e.R0b),e.Y36(I))},i.\u0275dir=e.lG2({type:i,selectors:[["mat-table"]],hostAttrs:[1,"mat-column-resize-flex"],features:[e._Bn([...ke,{provide:P,useExisting:i}]),e.qOj]}),i})(),l=(()=>{class i extends Xe{constructor(o,g,b,E,S,q,Me,Se,ne,ee){super(),this.columnDef=o,this.columnResize=g,this.directionality=b,this.elementRef=E,this.eventDispatcher=S,this.ngZone=q,this.resizeNotifier=Me,this.resizeRef=Se,this.styleScheduler=ne,this.document=ee}updateResizeActive(o){super.updateResizeActive(o);const g=this.resizeRef.origin.nativeElement.offsetHeight;this.topElement.nativeElement.style.height=`${g}px`,this.resizeRef.overlayRef.updateSize({height:o?this.columnResize.getTableHeight():g})}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(T.fo),e.Y36(P),e.Y36(We.Is),e.Y36(e.SBq),e.Y36(Z),e.Y36(e.R0b),e.Y36(I),e.Y36(Ie),e.Y36(T.nl),e.Y36(W.K0))},i.\u0275cmp=e.Xpm({type:i,selectors:[["ng-component"]],viewQuery:function(o,g){if(1&o&&e.Gf(ve,7),2&o){let b;e.iGM(b=e.CRH())&&(g.topElement=b.first)}},hostAttrs:[1,"mat-column-resize-overlay-thumb"],features:[e.qOj],decls:2,vars:0,consts:[[1,"mat-column-resize-overlay-thumb-top"],["top",""]],template:function(o,g){1&o&&e._UZ(0,"div",0,1)},encapsulation:2,changeDetection:0}),i})();class p extends Ke{constructor(){super(...arguments),this.minWidthPxInternal=32}getInlineHandleCssClassName(){return"mat-resizable-handle"}getOverlayHandleComponentType(){return l}}let c=(()=>{class i extends p{constructor(o,g,b,E,S,q,Me,Se,ne,ee,Ce,Qe,le,Be){super(),this.columnDef=o,this.columnResize=g,this.directionality=b,this.elementRef=S,this.eventDispatcher=q,this.injector=Me,this.ngZone=Se,this.overlay=ne,this.resizeNotifier=ee,this.resizeStrategy=Ce,this.styleScheduler=Qe,this.viewContainerRef=le,this.changeDetectorRef=Be,this.document=E}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(T.fo),e.Y36(P),e.Y36(We.Is),e.Y36(W.K0),e.Y36(e.SBq),e.Y36(Z),e.Y36(e.zs3),e.Y36(e.R0b),e.Y36(Ye.aV),e.Y36(I),e.Y36(ie),e.Y36(T.nl),e.Y36(e.s_b),e.Y36(e.sBO))},i.\u0275dir=e.lG2({type:i,selectors:[["mat-header-cell",3,"disableResize",""],["th","mat-header-cell","",3,"disableResize",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:["matResizableMinWidthPx","minWidthPx"],maxWidthPx:["matResizableMaxWidthPx","maxWidthPx"]},features:[e.qOj]}),i})(),y=(()=>{class i extends p{constructor(o,g,b,E,S,q,Me,Se,ne,ee,Ce,Qe,le,Be){super(),this.columnDef=o,this.columnResize=g,this.directionality=b,this.elementRef=S,this.eventDispatcher=q,this.injector=Me,this.ngZone=Se,this.overlay=ne,this.resizeNotifier=ee,this.resizeStrategy=Ce,this.styleScheduler=Qe,this.viewContainerRef=le,this.changeDetectorRef=Be,this.document=E}}return i.\u0275fac=function(o){return new(o||i)(e.Y36(T.fo),e.Y36(P),e.Y36(We.Is),e.Y36(W.K0),e.Y36(e.SBq),e.Y36(Z),e.Y36(e.zs3),e.Y36(e.R0b),e.Y36(Ye.aV),e.Y36(I),e.Y36(ie),e.Y36(T.nl),e.Y36(e.s_b),e.Y36(e.sBO))},i.\u0275dir=e.lG2({type:i,selectors:[["mat-header-cell","resizable",""],["th","mat-header-cell","","resizable",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:["matResizableMinWidthPx","minWidthPx"],maxWidthPx:["matResizableMaxWidthPx","maxWidthPx"]},features:[e.qOj]}),i})();const r=[Te.BQ,Ye.U8,(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({}),i})()];let h=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[r]}),i})(),n=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[r]}),i})();function u(i,m){1&i&&(e.TgZ(0,"mat-header-cell",12),e._uU(1," No. "),e.qZA()),2&i&&e.Q6J("matResizableMaxWidthPx",100)}function f(i,m){if(1&i&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.position," ")}}function x(i,m){1&i&&(e.TgZ(0,"mat-header-cell",13),e._uU(1," Name "),e.qZA()),2&i&&e.Q6J("matResizableMinWidthPx",150)}function Y(i,m){if(1&i&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.name," ")}}function me(i,m){1&i&&(e.TgZ(0,"mat-header-cell",14),e._uU(1," Weight (Not resizable) "),e.qZA())}function N(i,m){if(1&i&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.weight," ")}}function ze(i,m){1&i&&(e.TgZ(0,"mat-header-cell"),e._uU(1," Symbol "),e.qZA())}function tt(i,m){if(1&i&&(e.TgZ(0,"mat-cell"),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.symbol," ")}}function rt(i,m){1&i&&e._UZ(0,"mat-header-row")}function dt(i,m){1&i&&e._UZ(0,"mat-row")}function ct(i,m){1&i&&(e.TgZ(0,"th",12),e._uU(1," No. "),e.qZA()),2&i&&e.Q6J("matResizableMaxWidthPx",100)}function ut(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.position," ")}}function ht(i,m){1&i&&(e.TgZ(0,"th",14),e._uU(1," Name "),e.qZA()),2&i&&e.Q6J("matResizableMinWidthPx",150)}function ft(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.name," ")}}function mt(i,m){1&i&&(e.TgZ(0,"th",15),e._uU(1," Weight (Not resizable) "),e.qZA())}function pt(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.weight," ")}}function _t(i,m){1&i&&(e.TgZ(0,"th",16),e._uU(1," Symbol "),e.qZA())}function gt(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.symbol," ")}}function yt(i,m){1&i&&e._UZ(0,"tr",17)}function Rt(i,m){1&i&&e._UZ(0,"tr",18)}const nt="[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}";function vt(i,m){1&i&&(e.TgZ(0,"th",12),e._uU(1," No. "),e.qZA()),2&i&&e.Q6J("matResizableMaxWidthPx",100)}function Ct(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.position," ")}}function bt(i,m){1&i&&(e.TgZ(0,"th",14),e._uU(1," Name "),e.qZA()),2&i&&e.Q6J("matResizableMinWidthPx",150)}function Dt(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.name," ")}}function wt(i,m){1&i&&(e.TgZ(0,"th",15),e._uU(1," Weight (Not resizable) "),e.qZA())}function xt(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.weight," ")}}function Et(i,m){1&i&&(e.TgZ(0,"th",16),e._uU(1," Symbol "),e.qZA())}function Mt(i,m){if(1&i&&(e.TgZ(0,"td",13),e._uU(1),e.qZA()),2&i){const o=m.$implicit;e.xp6(1),e.hij(" ",o.symbol," ")}}function St(i,m){1&i&&e._UZ(0,"tr",17)}function kt(i,m){1&i&&e._UZ(0,"tr",18)}const zt=[{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"}];let Ot=(()=>{class i{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=zt}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,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(o,g){1&o&&(e.TgZ(0,"mat-table",0),e.ynx(1,1),e.YNc(2,u,2,1,"mat-header-cell",2),e.YNc(3,f,2,1,"mat-cell",3),e.BQk(),e.ynx(4,4),e.YNc(5,x,2,1,"mat-header-cell",5),e.YNc(6,Y,2,1,"mat-cell",3),e.BQk(),e.ynx(7,6),e.YNc(8,me,2,0,"mat-header-cell",7),e.YNc(9,N,2,1,"mat-cell",3),e.BQk(),e.ynx(10,8),e.YNc(11,ze,2,0,"mat-header-cell",9),e.YNc(12,tt,2,1,"mat-cell",3),e.BQk(),e.YNc(13,rt,1,0,"mat-header-row",10),e.YNc(14,dt,1,0,"mat-row",11),e.qZA()),2&o&&(e.Q6J("dataSource",g.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",g.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",g.displayedColumns))},dependencies:[je,c,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]}),i})(),ot=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[h,v.p0]}),i})();const Ft=[{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"}];let Tt=(()=>{class i{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=Ft}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,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(o,g){1&o&&(e.TgZ(0,"table",0),e.ynx(1,1),e.YNc(2,ct,2,1,"th",2),e.YNc(3,ut,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,ht,2,1,"th",5),e.YNc(6,ft,2,1,"td",3),e.BQk(),e.ynx(7,6),e.YNc(8,mt,2,0,"th",7),e.YNc(9,pt,2,1,"td",3),e.BQk(),e.ynx(10,8),e.YNc(11,_t,2,0,"th",9),e.YNc(12,gt,2,1,"td",3),e.BQk(),e.YNc(13,yt,1,0,"tr",10),e.YNc(14,Rt,1,0,"tr",11),e.qZA()),2&o&&(e.Q6J("dataSource",g.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",g.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",g.displayedColumns))},dependencies:[Je,c,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk],styles:[nt]}),i})(),st=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[h,v.p0]}),i})();const At=[{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"}];let Nt=(()=>{class i{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=At}}return i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=e.Xpm({type:i,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(o,g){1&o&&(e.TgZ(0,"table",0),e.ynx(1,1),e.YNc(2,vt,2,1,"th",2),e.YNc(3,Ct,2,1,"td",3),e.BQk(),e.ynx(4,4),e.YNc(5,bt,2,1,"th",5),e.YNc(6,Dt,2,1,"td",3),e.BQk(),e.ynx(7,6),e.YNc(8,wt,2,0,"th",7),e.YNc(9,xt,2,1,"td",3),e.BQk(),e.ynx(10,8),e.YNc(11,Et,2,0,"th",9),e.YNc(12,Mt,2,1,"td",3),e.BQk(),e.YNc(13,St,1,0,"tr",10),e.YNc(14,kt,1,0,"tr",11),e.qZA()),2&o&&(e.Q6J("dataSource",g.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",g.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",g.displayedColumns))},dependencies:[Ne,y,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk],styles:[nt]}),i})(),at=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[n,v.p0]}),i})(),Ht=(()=>{class i{}return i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[st,ot,at]}),i})()},3626:(qe,Oe,R)=>{R.d(Oe,{AE:()=>ge,BZ:()=>Fe,Dz:()=>se,Ee:()=>I,Gk:()=>P,Ke:()=>He,Q2:()=>De,XQ:()=>be,as:()=>ye,by:()=>Pe,dW:()=>ae,ev:()=>ce,fO:()=>T,ge:()=>te,mD:()=>W,nj:()=>V,p0:()=>ie,w1:()=>F,yh:()=>de});var e=R(4650),v=R(5013),O=R(5017),j=R(3238),U=R(591),re=R(8929),s=R(6787),K=R(1086),k=R(6053),pe=R(1281),X=R(4850);const _e=[[["caption"]],[["colgroup"],["col"]]],J=["caption","colgroup, col"];function oe(d,_){if(1&d&&(e.TgZ(0,"th",3),e._uU(1),e.qZA()),2&d){const C=e.oxw();e.Udp("text-align",C.justify),e.xp6(1),e.hij(" ",C.headerText," ")}}function G(d,_){if(1&d&&(e.TgZ(0,"td",4),e._uU(1),e.qZA()),2&d){const C=_.$implicit,D=e.oxw();e.Udp("text-align",D.justify),e.xp6(1),e.hij(" ",D.dataAccessor(C,D.name)," ")}}let ge=(()=>{class d{}return d.\u0275fac=function(C){return new(C||d)},d.\u0275dir=e.lG2({type:d,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[e._Bn([{provide:O.k,useClass:O.eX}])]}),d})(),Fe=(()=>{class d extends v.zC{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275cmp=e.Xpm({type:d,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(C,D){2&C&&e.ekj("mdc-table-fixed-layout",D.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:v.zC,useExisting:d},{provide:v.pN,useExisting:d},{provide:v.nl,useClass:v.oF},{provide:O.k,useClass:O.yy},{provide:v.pF,useValue:null}]),e.qOj],ngContentSelectors:J,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(C,D){1&C&&(e.F$t(_e),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[v.T$,v.FT,v.$E,v.bH],styles:[".mdc-data-table{border-radius:var(--mdc-shape-medium, 4px);border-width:1px;border-style:solid}.mdc-data-table .mdc-data-table__header-cell:first-child{border-top-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child,.mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl]{border-top-right-radius:var(--mdc-shape-medium, 4px);border-top-left-radius:0}.mdc-data-table .mdc-data-table__header-cell:last-child{border-top-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child,.mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl]{border-top-left-radius:var(--mdc-shape-medium, 4px);border-top-right-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child{border-bottom-left-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:first-child[dir=rtl]{border-bottom-right-radius:var(--mdc-shape-medium, 4px);border-bottom-left-radius:0}.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child{border-bottom-right-radius:var(--mdc-shape-medium, 4px)}[dir=rtl] .mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child,.mdc-data-table.mdc-data-table--without-footer .mdc-data-table__row:last-child .mdc-data-table__cell:last-child[dir=rtl]{border-bottom-left-radius:var(--mdc-shape-medium, 4px);border-bottom-right-radius:0}.mdc-data-table__cell,.mdc-data-table__header-cell{border-bottom-width:1px;border-bottom-style:solid}.mdc-data-table__pagination{border-top-width:1px;border-top-style:solid}.mdc-data-table__row:last-child .mdc-data-table__cell{border-bottom:none}.mdc-data-table__row{height:52px}.mdc-data-table__pagination{min-height:52px}.mdc-data-table__header-row{height:56px}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table--sticky-header .mdc-data-table__header-cell{position:sticky;top:0;z-index:1}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--checkbox{width:1px}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__sort-icon-button{width:28px;height:28px;padding:2px;transform:rotate(0.0001deg);margin-left:4px;margin-right:0;opacity:0}.mdc-data-table__sort-icon-button .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:28px;height:28px;margin-top:0px;margin-bottom:0px;margin-right:0px;margin-left:0px}.mdc-data-table__sort-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__focus-ring{max-height:28px;max-width:28px}.mdc-data-table__sort-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:28px;left:50%;width:28px;transform:translate(-50%, -50%)}[dir=rtl] .mdc-data-table__sort-icon-button,.mdc-data-table__sort-icon-button[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button{transform:rotate(-180deg)}.mdc-data-table__sort-icon-button:focus,.mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button,.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button{opacity:1}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__header-cell--with-sort{cursor:pointer}.mdc-data-table__sort-status-label{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__cell--checkbox{width:1px}.mdc-data-table__pagination{box-sizing:border-box;display:flex;justify-content:flex-end}.mdc-data-table__pagination-trailing{margin-left:4px;margin-right:0;align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}[dir=rtl] .mdc-data-table__pagination-trailing,.mdc-data-table__pagination-trailing[dir=rtl]{margin-left:0;margin-right:4px}.mdc-data-table__pagination-navigation{align-items:center;display:flex}.mdc-data-table__pagination-button{margin-left:0;margin-right:4px}[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon,.mdc-data-table__pagination-button .mdc-button__icon[dir=rtl]{transform:rotate(180deg)}[dir=rtl] .mdc-data-table__pagination-button,.mdc-data-table__pagination-button[dir=rtl]{margin-left:4px;margin-right:0}.mdc-data-table__pagination-total{margin-left:14px;margin-right:36px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-total,.mdc-data-table__pagination-total[dir=rtl]{margin-left:36px;margin-right:14px}.mdc-data-table__pagination-rows-per-page{margin-left:0;margin-right:22px;align-items:center;display:inline-flex}[dir=rtl] .mdc-data-table__pagination-rows-per-page,.mdc-data-table__pagination-rows-per-page[dir=rtl]{margin-left:22px;margin-right:0}.mdc-data-table__pagination-rows-per-page-label{margin-left:0;margin-right:12px;white-space:nowrap}[dir=rtl] .mdc-data-table__pagination-rows-per-page-label,.mdc-data-table__pagination-rows-per-page-label[dir=rtl]{margin-left:12px;margin-right:0}.mdc-data-table__pagination-rows-per-page-select{min-width:var(--mdc-menu-min-width, 80px);margin:8px 0}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{width:100%;min-width:80px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor{height:36px}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above{font-size:.75rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon{width:20px;height:20px}.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 56px)}.mdc-data-table__pagination-rows-per-page-select .mdc-list-item.mdc-list-item--with-one-line{height:36px}.mdc-data-table__progress-indicator{display:none;position:absolute;width:100%}.mdc-data-table--in-progress .mdc-data-table__progress-indicator{display:block}.mdc-data-table__scrim{background-color:var(--mdc-theme-surface, #fff);height:100%;opacity:.32;position:absolute;top:0;width:100%}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-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}.mat-mdc-table-sticky{position:sticky !important}.mat-mdc-table{table-layout:auto;white-space:normal}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table .mat-mdc-row:hover,.mat-mdc-table .mat-mdc-footer-row:hover{background-color:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2}),d})(),se=(()=>{class d extends v.O_{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:v.O_,useExisting:d}]),e.qOj]}),d})(),T=(()=>{class d extends v.D5{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:v.D5,useExisting:d}]),e.qOj]}),d})(),W=(()=>{class d extends v.Z4{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["","matFooterCellDef",""]],features:[e._Bn([{provide:v.Z4,useExisting:d}]),e.qOj]}),d})(),F=(()=>{class d extends v.fo{get name(){return this._name}set name(C){this._setNameInput(C)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:v.fo,useExisting:d},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:d}]),e.qOj]}),d})(),te=(()=>{class d extends v.Af{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[e.qOj]}),d})(),de=(()=>{class d extends v.QJ{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[e.qOj]}),d})(),ce=(()=>{class d extends v.hD{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[e.qOj]}),d})(),ye=(()=>{class d extends v.s${}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:v.s$,useExisting:d}]),e.qOj]}),d})(),He=(()=>{class d extends v.fe{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[e._Bn([{provide:v.fe,useExisting:d}]),e.qOj]}),d})(),V=(()=>{class d extends v.Sq{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:v.Sq,useExisting:d}]),e.qOj]}),d})(),be=(()=>{class d extends v.xN{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275cmp=e.Xpm({type:d,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:v.xN,useExisting:d}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(C,D){1&C&&e.GkF(0,0)},dependencies:[v.Kb],encapsulation:2}),d})(),De=(()=>{class d extends v.qM{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275cmp=e.Xpm({type:d,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[e._Bn([{provide:v.qM,useExisting:d}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(C,D){1&C&&e.GkF(0,0)},dependencies:[v.Kb],encapsulation:2}),d})(),P=(()=>{class d extends v._J{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275cmp=e.Xpm({type:d,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[e._Bn([{provide:v._J,useExisting:d}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(C,D){1&C&&e.GkF(0,0)},dependencies:[v.Kb],encapsulation:2}),d})(),I=(()=>{class d extends v.r2{constructor(){super(...arguments),this._contentClassName="mat-mdc-no-data-row"}}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275dir=e.lG2({type:d,selectors:[["ng-template","matNoDataRow",""]],features:[e._Bn([{provide:v.r2,useExisting:d}]),e.qOj]}),d})(),ae=(()=>{class d extends v.Hx{}return d.\u0275fac=function(){let _;return function(D){return(_||(_=e.n5z(d)))(D||d)}}(),d.\u0275cmp=e.Xpm({type:d,selectors:[["mat-text-column"]],features:[e.qOj],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(C,D){1&C&&(e.ynx(0,0),e.YNc(1,oe,2,3,"th",1),e.YNc(2,G,2,3,"td",2),e.BQk())},dependencies:[T,F,se,te,ce],encapsulation:2}),d})(),ie=(()=>{class d{}return d.\u0275fac=function(C){return new(C||d)},d.\u0275mod=e.oAB({type:d}),d.\u0275inj=e.cJS({imports:[j.BQ,v.HT,j.BQ]}),d})();class we extends O.o2{constructor(_=[]){super(),this._renderData=new U.X([]),this._filter=new U.X(""),this._internalPageChanges=new re.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(C,D)=>{const z=C[D];if((0,pe.t6)(z)){const Q=Number(z);return Q<9007199254740991?Q:z}return z},this.sortData=(C,D)=>{const z=D.active,Q=D.direction;return z&&""!=Q?C.sort((B,L)=>{let ue=this.sortingDataAccessor(B,z),H=this.sortingDataAccessor(L,z);const he=typeof ue,$=typeof H;he!==$&&("number"===he&&(ue+=""),"number"===$&&(H+=""));let Re=0;return null!=ue&&null!=H?ue>H?Re=1:ue<H&&(Re=-1):null!=ue?Re=1:null!=H&&(Re=-1),Re*("asc"==Q?1:-1)}):C},this.filterPredicate=(C,D)=>{const z=Object.keys(C).reduce((B,L)=>B+C[L]+"\u25ec","").toLowerCase(),Q=D.trim().toLowerCase();return-1!=z.indexOf(Q)},this._data=new U.X(_),this._updateChangeSubscription()}get data(){return this._data.value}set data(_){_=Array.isArray(_)?_:[],this._data.next(_),this._renderChangesSubscription||this._filterData(_)}get filter(){return this._filter.value}set filter(_){this._filter.next(_),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(_){this._sort=_,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(_){this._paginator=_,this._updateChangeSubscription()}_updateChangeSubscription(){const _=this._sort?(0,s.T)(this._sort.sortChange,this._sort.initialized):(0,K.of)(null),C=this._paginator?(0,s.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,K.of)(null),z=(0,k.aj)([this._data,this._filter]).pipe((0,X.U)(([L])=>this._filterData(L))),Q=(0,k.aj)([z,_]).pipe((0,X.U)(([L])=>this._orderData(L))),B=(0,k.aj)([Q,C]).pipe((0,X.U)(([L])=>this._pageData(L)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=B.subscribe(L=>this._renderData.next(L))}_filterData(_){return this.filteredData=null==this.filter||""===this.filter?_:_.filter(C=>this.filterPredicate(C,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(_){return this.sort?this.sortData(_.slice(),this.sort):_}_pageData(_){if(!this.paginator)return _;const C=this.paginator.pageIndex*this.paginator.pageSize;return _.slice(C,C+this.paginator.pageSize)}_updatePaginator(_){Promise.resolve().then(()=>{const C=this.paginator;if(C&&(C.length=_,C.pageIndex>0)){const D=Math.ceil(C.length/C.pageSize)-1||0,z=Math.min(C.pageIndex,D);z!==C.pageIndex&&(C.pageIndex=z,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class Pe extends we{}}}]);