marketplacepos 3.15.2 → 3.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/Marketplace/chunk-37VK7KFZ.js +1 -0
  2. package/Marketplace/{chunk-BIJUW2YT.js → chunk-3AQ7TTGV.js} +1 -1
  3. package/Marketplace/{chunk-OXSGKWPW.js → chunk-3HQCLIMJ.js} +1 -1
  4. package/Marketplace/chunk-3LNROKGQ.js +5 -0
  5. package/Marketplace/chunk-3OCV5XYQ.js +1 -0
  6. package/Marketplace/{chunk-4URWFKAM.js → chunk-43L7CBSZ.js} +1 -1
  7. package/Marketplace/{chunk-OML53I6I.js → chunk-4RD6A3OZ.js} +1 -1
  8. package/Marketplace/chunk-5B5AH7UI.js +1 -0
  9. package/Marketplace/{chunk-ONKOEBKR.js → chunk-6JF7HXB4.js} +1 -1
  10. package/Marketplace/chunk-6KLIXK4G.js +1 -0
  11. package/Marketplace/{chunk-E7OT7R3Z.js → chunk-74Q27XSN.js} +1 -1
  12. package/Marketplace/{chunk-K2RTDCYM.js → chunk-7ODXSOE4.js} +1 -1
  13. package/Marketplace/{chunk-M4JG6342.js → chunk-A3ZMDUMP.js} +1 -1
  14. package/Marketplace/{chunk-AUMUHIAD.js → chunk-AKI6ACKF.js} +1 -1
  15. package/Marketplace/{chunk-DTNJ6LRO.js → chunk-AN57DTS4.js} +1 -1
  16. package/Marketplace/{chunk-ZG6JXFSY.js → chunk-AXDEQQNM.js} +1 -1
  17. package/Marketplace/{chunk-FACXOOME.js → chunk-B2LDDWVY.js} +1 -1
  18. package/Marketplace/{chunk-KGSUB5OH.js → chunk-B42KSOUB.js} +1 -1
  19. package/Marketplace/{chunk-QWWHTKOD.js → chunk-BFRVDPWZ.js} +1 -1
  20. package/Marketplace/{chunk-CTKEWRX4.js → chunk-BZ7SMYI7.js} +1 -1
  21. package/Marketplace/{chunk-ZQLDSEY5.js → chunk-CHZBEIYE.js} +1 -1
  22. package/Marketplace/{chunk-ZYS3QD4F.js → chunk-CQLAG7FE.js} +1 -1
  23. package/Marketplace/{chunk-6NFPCNPI.js → chunk-CZYGGOZL.js} +1 -1
  24. package/Marketplace/chunk-D5JZENHL.js +2 -0
  25. package/Marketplace/{chunk-Y27IE54D.js → chunk-DDUQ3IZU.js} +1 -1
  26. package/Marketplace/{chunk-GXHE2CDH.js → chunk-DRY23ALE.js} +1 -1
  27. package/Marketplace/{chunk-5BU6HQXL.js → chunk-EVDAHZS7.js} +1 -1
  28. package/Marketplace/{chunk-NEQN5BMS.js → chunk-F4FACWQU.js} +1 -1
  29. package/Marketplace/{chunk-VUL363BT.js → chunk-FQ72DFEO.js} +1 -1
  30. package/Marketplace/{chunk-2H6RTUI7.js → chunk-GXGSVP3U.js} +1 -1
  31. package/Marketplace/{chunk-VHYFEAS2.js → chunk-HPCPVA6F.js} +1 -1
  32. package/Marketplace/{chunk-E3LCGTRI.js → chunk-HXV4FH6L.js} +1 -1
  33. package/Marketplace/{chunk-HSFUKC7R.js → chunk-IH2NT4RC.js} +4 -4
  34. package/Marketplace/{chunk-3TNPJNQS.js → chunk-INOCIPFW.js} +1 -1
  35. package/Marketplace/{chunk-DSDMENCN.js → chunk-ITTQVZJZ.js} +1 -1
  36. package/Marketplace/{chunk-2DXLUQ37.js → chunk-J7IMPJJT.js} +1 -1
  37. package/Marketplace/{chunk-XNGU3O4O.js → chunk-K66EVMAU.js} +1 -1
  38. package/Marketplace/{chunk-QWBRNEPW.js → chunk-KCIMRNO5.js} +1 -1
  39. package/Marketplace/{chunk-2L5RCILV.js → chunk-KSTCUPYX.js} +1 -1
  40. package/Marketplace/chunk-LIJHEC5V.js +1 -0
  41. package/Marketplace/{chunk-O4KD2NHK.js → chunk-LM3BZPEX.js} +1 -1
  42. package/Marketplace/{chunk-N366YXEY.js → chunk-MHUFSLCT.js} +1 -1
  43. package/Marketplace/{chunk-3LFPRLIN.js → chunk-MUMKAGHD.js} +8 -8
  44. package/Marketplace/{chunk-VUAE4ACL.js → chunk-OIVGFES2.js} +1 -1
  45. package/Marketplace/{chunk-RKRJ4JOF.js → chunk-OKB4Q376.js} +1 -1
  46. package/Marketplace/chunk-ORBROWBI.js +3 -0
  47. package/Marketplace/{chunk-IJAO5VS5.js → chunk-OURZMROU.js} +1 -1
  48. package/Marketplace/{chunk-YDHKWEGR.js → chunk-P5CREEUF.js} +1 -1
  49. package/Marketplace/{chunk-XB2E6KQY.js → chunk-PQZGH5ED.js} +1 -1
  50. package/Marketplace/{chunk-C62XLEFW.js → chunk-PW6QZKJS.js} +1 -1
  51. package/Marketplace/{chunk-5B6FNQOB.js → chunk-Q2DR7RQA.js} +1 -1
  52. package/Marketplace/chunk-QP4EWGZJ.js +1 -0
  53. package/Marketplace/{chunk-UUNZHJ6W.js → chunk-SG42JTLJ.js} +2 -2
  54. package/Marketplace/{chunk-AAFEUTPF.js → chunk-SUL6ZUGT.js} +1 -1
  55. package/Marketplace/{chunk-GP6U42SV.js → chunk-T3POIC5F.js} +1 -1
  56. package/Marketplace/{chunk-2AMEIUWK.js → chunk-T4MH7AFK.js} +1 -1
  57. package/Marketplace/{chunk-CHPESC5O.js → chunk-TC5L2L6N.js} +1 -1
  58. package/Marketplace/chunk-TFKHUWSZ.js +9 -0
  59. package/Marketplace/{chunk-EEOWKNSQ.js → chunk-UUI7T7NV.js} +2 -2
  60. package/Marketplace/{chunk-O5FN3DLG.js → chunk-V6PMZ6DL.js} +1 -1
  61. package/Marketplace/chunk-VFLG2BDB.js +1 -0
  62. package/Marketplace/{chunk-572KOLLQ.js → chunk-VS2ZOTGT.js} +1 -1
  63. package/Marketplace/{chunk-G42YVZDB.js → chunk-WJHFT7N2.js} +1 -1
  64. package/Marketplace/{chunk-VVKIT2K2.js → chunk-WWRX4VCC.js} +1 -1
  65. package/Marketplace/{chunk-QKJFDGHL.js → chunk-X3QMMNE7.js} +1 -1
  66. package/Marketplace/{chunk-6NTRXLMW.js → chunk-X54LLODL.js} +1 -1
  67. package/Marketplace/chunk-XGEX66UB.js +1 -0
  68. package/Marketplace/{chunk-377T6MRS.js → chunk-YENGYJOK.js} +1 -1
  69. package/Marketplace/{chunk-VRWHBZNB.js → chunk-YKWBTHPC.js} +1 -1
  70. package/Marketplace/{chunk-RXDUUYMX.js → chunk-YXUEYLE5.js} +1 -1
  71. package/Marketplace/chunk-ZCPPEAJQ.js +1 -0
  72. package/Marketplace/index.html +3 -3
  73. package/Marketplace/{main-5VBEV3KS.js → main-PEE76VLX.js} +1 -1
  74. package/Marketplace/{styles-K7GFOZYN.css → styles-M7SD6AU3.css} +1 -1
  75. package/package.json +1 -1
  76. package/Marketplace/chunk-4BPLZVXV.js +0 -1
  77. package/Marketplace/chunk-6UIEOJ5F.js +0 -1
  78. package/Marketplace/chunk-75FMUZX2.js +0 -1
  79. package/Marketplace/chunk-AMJOGMUP.js +0 -1
  80. package/Marketplace/chunk-CMEYJNG2.js +0 -3
  81. package/Marketplace/chunk-GHRADKBY.js +0 -1
  82. package/Marketplace/chunk-GS4AHG4Z.js +0 -6
  83. package/Marketplace/chunk-IAYFW5AU.js +0 -1
  84. package/Marketplace/chunk-LCVHYD7R.js +0 -1
  85. package/Marketplace/chunk-QOA24ZLA.js +0 -1
  86. package/Marketplace/chunk-ZSVDUB3D.js +0 -1
@@ -1 +1 @@
1
- import{D as he,F as ce,G as L,H,K as It,a as xt,b as tt,c as kt,d as _,e as re,g as et,h as R,j as ae,k as B,l as it,m as N,p as st,q as Pt,u as le}from"./chunk-GXHE2CDH.js";import{$ as b,$a as qt,A as Wt,B as U,Cb as Et,D as pt,Da as G,Db as St,Dc as ne,Eb as Rt,Ia as mt,Ib as Jt,Ja as f,Jb as te,La as $,Ma as Q,Pa as C,Qa as Qt,Qb as Dt,Ra as q,Sa as M,V as E,W as Zt,Wa as vt,Ya as yt,a as T,aa as O,ab as wt,b as dt,ba as Y,bb as K,c as v,ca as c,da as V,ga as _t,gc as ee,ha as x,ia as k,jc as Ot,kc as A,la as Ut,lb as J,mb as bt,n as ft,na as gt,nc as ie,oa as Gt,pa as $t,rb as Kt,rc as y,sc as se,tc as oe,ua as j,ub as Ct,x as ut,ya as w,za as P}from"./chunk-HSFUKC7R.js";import{a as D,b as Xt}from"./chunk-GNOSNGXM.js";var de=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,o,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,o&&o.length&&(t?o.forEach(s=>this._markSelected(s)):this._markSelected(o[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}setSelection(...t){this._verifyValueAssignment(t);let o=this.selected,e=new Set(t);t.forEach(s=>this._markSelected(s)),o.filter(s=>!e.has(this._getConcreteValue(s,e))).forEach(s=>this._unmarkSelected(s));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let o=this._hasQueuedChanges();return t&&this._emitChangeEvent(),o}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,o){if(this.compareWith){o=o??this._selection;for(let e of o)if(this.compareWith(t,e))return e;return t}else return t}};var ri=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let s of this._listeners)s(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var Me=20,z=(()=>{let t=class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=Me){return this._platform.isBrowser?new dt(i=>{this._globalSubscription||this._addGlobalListener();let s=e>0?this._scrolled.pipe(pt(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ft()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(U(n=>!n||s.indexOf(n)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((s,n)=>{this._scrollableContainsElement(n,e)&&i.push(n)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=re(i),n=e.getElementRef().nativeElement;do if(s==n)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return ut(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(R),c(y,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Ae=(()=>{let t=class t{constructor(e,i,s,n){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=s,this.dir=n,this._destroyed=new v,this._elementScrolled=new dt(a=>this.ngZone.runOutsideAngular(()=>ut(this.elementRef.nativeElement,"scroll").pipe(E(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,s=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=s?e.end:e.start),e.right==null&&(e.right=s?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),s&&N()!=B.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),N()==B.INVERTED?e.left=e.right:N()==B.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;it()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",s="right",n=this.elementRef.nativeElement;if(e=="top")return n.scrollTop;if(e=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?s:i:e=="end"&&(e=a?i:s),a&&N()==B.INVERTED?e==i?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:a&&N()==B.NEGATED?e==i?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:e==i?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}};t.\u0275fac=function(i){return new(i||t)(f(w),f(z),f(C),f(L,8))},t.\u0275dir=k({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let r=t;return r})(),Le=20,rt=(()=>{let t=class t{constructor(e,i,s){this._platform=e,this._change=new v,this._changeListener=n=>{this._change.next(n)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){let n=this._getWindow();n.addEventListener("resize",this._changeListener),n.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),s=e.documentElement,n=s.getBoundingClientRect(),a=-n.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,l=-n.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0;return{top:a,left:l}}change(e=Le){return e>0?this._change.pipe(pt(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(c(R),c(C),c(y,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var nt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({});let r=t;return r})(),Tt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({imports:[H,nt,H,nt]});let r=t;return r})();var X=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},W=class extends X{constructor(t,o,e,i,s){super(),this.component=t,this.viewContainerRef=o,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=s}},Z=class extends X{constructor(t,o,e,i){super(),this.templateRef=t,this.viewContainerRef=o,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,o=this.context){return this.context=o,super.attach(t)}detach(){return this.context=void 0,super.detach()}},Mt=class extends X{constructor(t){super(),this.element=t instanceof w?t.nativeElement:t}},at=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof W)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof Z)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof Mt)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var lt=class extends at{constructor(t,o,e,i,s){super(),this.outletElement=t,this._componentFactoryResolver=o,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=n=>{this._document;let a=n.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=n,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||j.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let o=t.viewContainerRef,e=o.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=o.indexOf(e);i!==-1&&o.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Mi=(()=>{let t=class t extends at{constructor(e,i,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new P,this.attachDomPortal=n=>{this._document;let a=n.element;a.parentNode;let l=this._document.createComment("dom-portal");n.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=n,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(n,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(f(Q),f(M),f(y))},t.\u0275dir=k({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[vt]});let r=t;return r})();var pe=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({});let r=t;return r})();var _e=it(),At=class{constructor(t,o){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_(-this._previousScrollPosition.left),t.style.top=_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,o=this._document.body,e=t.style,i=o.style,s=e.scrollBehavior||"",n=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),_e&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_e&&(e.scrollBehavior=s,i.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let o=this._document.body,e=this._viewportRuler.getViewportSize();return o.scrollHeight>e.height||o.scrollWidth>e.width}};var Lt=class{constructor(t,o,e,i){this._scrollDispatcher=t,this._ngZone=o,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(U(o=>!o||!this._overlayRef.overlayElement.contains(o.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ht=class{enable(){}disable(){}attach(){}};function Ft(r,t){return t.some(o=>{let e=r.bottom<o.top,i=r.top>o.bottom,s=r.right<o.left,n=r.left>o.right;return e||i||s||n})}function ge(r,t){return t.some(o=>{let e=r.top<o.top,i=r.bottom>o.bottom,s=r.left<o.left,n=r.right>o.right;return e||i||s||n})}var Vt=class{constructor(t,o,e,i){this._scrollDispatcher=t,this._viewportRuler=o,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Ft(o,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ve=(()=>{let t=class t{constructor(e,i,s,n){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new ht,this.close=a=>new Lt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new At(this._viewportRuler,this._document),this.reposition=a=>new Vt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=n}};t.\u0275fac=function(i){return new(i||t)(c(z),c(rt),c(C),c(y))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),ct=class{constructor(t){if(this.scrollStrategy=new ht,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let o=Object.keys(t);for(let e of o)t[e]!==void 0&&(this[e]=t[e])}}};var jt=class{constructor(t,o){this.connectionPair=t,this.scrollableViewProperties=o}};var Ee=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(c(y))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),je=(()=>{let t=class t extends Ee{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=s=>{let n=this._attachedOverlays;for(let a=n.length-1;a>-1;a--)if(n[a]._keydownEvents.observers.length>0){let l=n[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(C,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Be=(()=>{let t=class t extends Ee{constructor(e,i,s){super(e),this._platform=i,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=n=>{this._pointerDownEventTarget=st(n)},this._clickListener=n=>{let a=st(n),l=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){let u=d[h];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(me(u.overlayElement,a)||me(u.overlayElement,l))break;let g=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>g.next(n)):g.next(n)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(R),c(C,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();function me(r,t){let o=typeof ShadowRoot<"u"&&ShadowRoot,e=t;for(;e;){if(e===r)return!0;e=o&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var Se=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Pt()){let s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let n=0;n<s.length;n++)s[n].remove()}let i=this._document.createElement("div");i.classList.add(e),Pt()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}};t.\u0275fac=function(i){return new(i||t)(c(y),c(R))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Bt=class{constructor(t,o,e,i,s,n,a,l,d,h=!1,u){this._portalOutlet=t,this._host=o,this._pane=e,this._config=i,this._ngZone=s,this._keyboardDispatcher=n,this._document=a,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._injector=u,this._backdropElement=null,this._backdropClick=new v,this._attachments=new v,this._detachments=new v,this._locationChanges=T.EMPTY,this._backdropClickHandler=g=>this._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new v,this._outsidePointerEvents=new v,this._renders=new v,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=ie(()=>Qt(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let o=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),q(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof o?.onDestroy=="function"&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=D(D({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Xt(D({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=_(this._config.width),t.height=_(this._config.height),t.minWidth=_(this._config.minWidth),t.minHeight=_(this._config.minHeight),t.maxWidth=_(this._config.maxWidth),t.maxHeight=_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,o,e){let i=kt(o||[]).filter(s=>!!s);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(E(Wt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},ve="cdk-overlay-connected-position-bounding-box",Ne=/([A-Za-z%]+)$/,Nt=class{get positions(){return this._preferredPositions}constructor(t,o,e,i,s){this._viewportRuler=o,this._document=e,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v,this._resizeSubscription=T.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(ve),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,o=this._overlayRect,e=this._viewportRect,i=this._containerRect,s=[],n;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(l,o,a),h=this._getOverlayFit(d,o,e,a);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(h,d,e)){s.push({position:a,origin:l,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!n||n.overlayFit.visibleArea<h.visibleArea)&&(n={overlayFit:h,overlayPoint:d,originPoint:l,position:a,overlayRect:o})}if(s.length){let a=null,l=-1;for(let d of s){let h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>l&&(l=h,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(n.position,n.originPoint);return}this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&F(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ve),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let o=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,o)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,o,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let n=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?n:a}o.left<0&&(i-=o.left);let s;return e.originY=="center"?s=t.top+t.height/2:s=e.originY=="top"?t.top:t.bottom,o.top<0&&(s-=o.top),{x:i,y:s}}_getOverlayPoint(t,o,e){let i;e.overlayX=="center"?i=-o.width/2:e.overlayX==="start"?i=this._isRtl()?-o.width:0:i=this._isRtl()?0:-o.width;let s;return e.overlayY=="center"?s=-o.height/2:s=e.overlayY=="top"?0:-o.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,o,e,i){let s=we(o),{x:n,y:a}=t,l=this._getOffset(i,"x"),d=this._getOffset(i,"y");l&&(n+=l),d&&(a+=d);let h=0-n,u=n+s.width-e.width,g=0-a,p=a+s.height-e.height,m=this._subtractOverflows(s.width,h,u),S=this._subtractOverflows(s.height,g,p),Ht=m*S;return{visibleArea:Ht,isCompletelyWithinViewport:s.width*s.height===Ht,fitsInViewportVertically:S===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(t,o,e){if(this._hasFlexibleDimensions){let i=e.bottom-o.y,s=e.right-o.x,n=ye(this._overlayRef.getConfig().minHeight),a=ye(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||n!=null&&n<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=s;return l&&d}return!1}_pushOverlayOnScreen(t,o,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=we(o),s=this._viewportRect,n=Math.max(t.x+i.width-s.width,0),a=Math.max(t.y+i.height-s.height,0),l=Math.max(s.top-e.top-t.y,0),d=Math.max(s.left-e.left-t.x,0),h=0,u=0;return i.width<=s.width?h=d||-n:h=t.x<this._viewportMargin?s.left-e.left-t.x:0,i.height<=s.height?u=l||-a:u=t.y<this._viewportMargin?s.top-e.top-t.y:0,this._previousPushAmount={x:h,y:u},{x:t.x+h,y:t.y+u}}_applyPosition(t,o){if(this._setTransformOrigin(t),this._setOverlayElementStyles(o,t),this._setBoundingBoxStyles(o,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!ze(this._lastScrollVisibility,e)){let i=new jt(t,e);this._positionChanges.next(i)}this._lastScrollVisibility=e}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let o=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,i=t.overlayY;t.overlayX==="center"?e="center":this._isRtl()?e=t.overlayX==="start"?"right":"left":e=t.overlayX==="start"?"left":"right";for(let s=0;s<o.length;s++)o[s].style.transformOrigin=`${e} ${i}`}_calculateBoundingBoxRect(t,o){let e=this._viewportRect,i=this._isRtl(),s,n,a;if(o.overlayY==="top")n=t.y,s=e.height-n+this._viewportMargin;else if(o.overlayY==="bottom")a=e.height-t.y+this._viewportMargin*2,s=e.height-a+this._viewportMargin;else{let p=Math.min(e.bottom-t.y+e.top,t.y),m=this._lastBoundingBoxSize.height;s=p*2,n=t.y-p,s>m&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-m/2)}let l=o.overlayX==="start"&&!i||o.overlayX==="end"&&i,d=o.overlayX==="end"&&!i||o.overlayX==="start"&&i,h,u,g;if(d)g=e.width-t.x+this._viewportMargin*2,h=t.x-this._viewportMargin;else if(l)u=t.x,h=e.right-t.x;else{let p=Math.min(e.right-t.x+e.left,t.x),m=this._lastBoundingBoxSize.width;h=p*2,u=t.x-p,h>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:n,left:u,bottom:a,right:g,width:h,height:s}}_setBoundingBoxStyles(t,o){let e=this._calculateBoundingBoxRect(t,o);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;i.height=_(e.height),i.top=_(e.top),i.bottom=_(e.bottom),i.width=_(e.width),i.left=_(e.left),i.right=_(e.right),o.overlayX==="center"?i.alignItems="center":i.alignItems=o.overlayX==="end"?"flex-end":"flex-start",o.overlayY==="center"?i.justifyContent="center":i.justifyContent=o.overlayY==="bottom"?"flex-end":"flex-start",s&&(i.maxHeight=_(s)),n&&(i.maxWidth=_(n))}this._lastBoundingBoxSize=e,F(this._boundingBox.style,i)}_resetBoundingBoxStyles(){F(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){F(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,o){let e={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(i){let h=this._viewportRuler.getViewportScrollPosition();F(e,this._getExactOverlayY(o,t,h)),F(e,this._getExactOverlayX(o,t,h))}else e.position="static";let a="",l=this._getOffset(o,"x"),d=this._getOffset(o,"y");l&&(a+=`translateX(${l}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),n.maxHeight&&(i?e.maxHeight=_(n.maxHeight):s&&(e.maxHeight="")),n.maxWidth&&(i?e.maxWidth=_(n.maxWidth):s&&(e.maxWidth="")),F(this._pane.style,e)}_getExactOverlayY(t,o,e){let i={top:"",bottom:""},s=this._getOverlayPoint(o,this._overlayRect,t);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e)),t.overlayY==="bottom"){let n=this._document.documentElement.clientHeight;i.bottom=`${n-(s.y+this._overlayRect.height)}px`}else i.top=_(s.y);return i}_getExactOverlayX(t,o,e){let i={left:"",right:""},s=this._getOverlayPoint(o,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e));let n;if(this._isRtl()?n=t.overlayX==="end"?"left":"right":n=t.overlayX==="end"?"right":"left",n==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(s.x+this._overlayRect.width)}px`}else i.left=_(s.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),o=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ge(t,e),isOriginOutsideView:Ft(t,e),isOverlayClipped:ge(o,e),isOverlayOutsideView:Ft(o,e)}}_subtractOverflows(t,...o){return o.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+o-this._viewportMargin,width:t-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,o){return o==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&kt(t).forEach(o=>{o!==""&&this._appliedPanelClasses.indexOf(o)===-1&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof w)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let o=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+o,height:e,width:o}}};function F(r,t){for(let o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);return r}function ye(r){if(typeof r!="number"&&r!=null){let[t,o]=r.split(Ne);return!o||o==="px"?parseFloat(t):null}return r||null}function we(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}function ze(r,t){return r===t?!0:r.isOriginClipped===t.isOriginClipped&&r.isOriginOutsideView===t.isOriginOutsideView&&r.isOverlayClipped===t.isOverlayClipped&&r.isOverlayOutsideView===t.isOverlayOutsideView}var be="cdk-global-overlay-wrapper",zt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let o=t.getConfig();this._overlayRef=t,this._width&&!o.width&&t.updateSize({width:this._width}),this._height&&!o.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(be),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:n,maxHeight:a}=e,l=(i==="100%"||i==="100vw")&&(!n||n==="100%"||n==="100vw"),d=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,u=this._xOffset,g=this._overlayRef.getConfig().direction==="rtl",p="",m="",S="";l?S="flex-start":h==="center"?(S="center",g?m=u:p=u):g?h==="left"||h==="end"?(S="flex-end",p=u):(h==="right"||h==="start")&&(S="flex-start",m=u):h==="left"||h==="start"?(S="flex-start",p=u):(h==="right"||h==="end")&&(S="flex-end",m=u),t.position=this._cssPosition,t.marginLeft=l?"0":p,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":m,o.justifyContent=S,o.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,e=o.style;o.classList.remove(be),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},Ye=(()=>{let t=class t{constructor(e,i,s,n){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=n}global(){return new zt}flexibleConnectedTo(e){return new Nt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(c(rt),c(y),c(R),c(Se))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),He=0,I=(()=>{let t=class t{constructor(e,i,s,n,a,l,d,h,u,g,p,m){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=n,this._keyboardDispatcher=a,this._injector=l,this._ngZone=d,this._document=h,this._directionality=u,this._location=g,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){let i=this._createHostElement(),s=this._createPaneElement(i),n=this._createPortalOutlet(s),a=new ct(e);return a.direction=a.direction||this._directionality.value,new Bt(n,i,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Ut))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${He++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ee)),new lt(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(c(Ve),c(Se),c(Q),c(Ye),c(je),c(j),c(C),c(y),c(L),c(se),c(Be),c(G,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Xe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Re=new Y("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let r=V(I);return()=>r.scrollStrategies.reposition()}}),Ce=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(f(w))},t.\u0275dir=k({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let r=t;return r})(),Ji=(()=>{let t=class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,s,n,a){this._overlay=e,this._dir=a,this._backdropSubscription=T.EMPTY,this._attachSubscription=T.EMPTY,this._detachSubscription=T.EMPTY,this._positionSubscription=T.EMPTY,this._disposeOnNavigation=!1,this._ngZone=V(C),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new P,this.positionChange=new P,this.attach=new P,this.detach=new P,this.overlayKeydown=new P,this.overlayOutsideClick=new P,this._templatePortal=new Z(i,s),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Xe);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!et(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let s=this._getOriginElement(),n=st(i);(!s||s!==n&&!s.contains(n))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new ct({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Ce?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ce?this.origin.elementRef.nativeElement:this.origin instanceof w?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Zt(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(f(I),f($),f(M),f(Re),f(L,8))},t.\u0275dir=k({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",A],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",A],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",A],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",A],push:[2,"cdkConnectedOverlayPush","push",A],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",A]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[yt,gt]});let r=t;return r})();function We(r){return()=>r.scrollStrategies.reposition()}var Ze={provide:Re,deps:[I],useFactory:We},De=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({providers:[I,Ze],imports:[H,pe,Tt,Tt]});let r=t;return r})();var Ge=["tooltip"],ke=20;var Pe=new Y("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let r=V(I);return()=>r.scrollStrategies.reposition({scrollThrottle:ke})}});function $e(r){return()=>r.scrollStrategies.reposition({scrollThrottle:ke})}var Qe={provide:Pe,deps:[I],useFactory:$e};function qe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var Ke=new Y("mat-tooltip-default-options",{providedIn:"root",factory:qe});var Oe="tooltip-panel",xe=ae({passive:!0}),Je=8,ti=8,ei=24,ii=200,Ss=(()=>{let t=class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=xt(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=xt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=tt(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=tt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,s,n,a,l,d,h,u,g,p,m){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=n,this._ngZone=a,this._platform=l,this._ariaDescriber=d,this._focusMonitor=h,this._dir=g,this._defaultOptions=p,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=si,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new v,this._injector=V(j),this._scrollStrategy=u,this._document=m,p&&(this._showDelay=p.showDelay,this._hideDelay=p.hideDelay,p.position&&(this.position=p.position),p.positionAtOrigin&&(this.positionAtOrigin=p.positionAtOrigin),p.touchGestures&&(this.touchGestures=p.touchGestures)),g.change.pipe(E(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Je}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(E(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,xe)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let s=this._createOverlay(i);this._detach(),this._portal=this._portal||new W(this._tooltipComponent,this._viewContainerRef);let n=this._tooltipInstance=s.attach(this._portal).instance;n._triggerElement=this._elementRef.nativeElement,n._mouseLeaveHideDelay=this._hideDelay,n.afterHidden().pipe(E(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),n.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&n._origin instanceof w)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return s.positionChanges.pipe(E(this._destroyed)).subscribe(n=>{this._updateCurrentPositionClass(n.connectionPair),this._tooltipInstance&&n.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${Oe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(E(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(E(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(E(this._destroyed)).subscribe(n=>{this._isTooltipVisible()&&n.keyCode===27&&!et(n)&&(n.preventDefault(),n.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,s=this._getOrigin(),n=this._getOverlayPosition();i.withPositions([this._addOffset(D(D({},s.main),n.main)),this._addOffset(D(D({},s.fallback),n.fallback))])}_addOffset(e){let i=ti,s=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=s?-i:i:e.originX==="end"&&(e.offsetX=s?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,s;i=="above"||i=="below"?s={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?s={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(s={originX:"end",originY:"center"});let{x:n,y:a}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:n,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,s;i=="above"?s={overlayX:"center",overlayY:"bottom"}:i=="below"?s={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?s={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(s={overlayX:"start",overlayY:"center"});let{x:n,y:a}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:n,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),q(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:s,originY:n}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=s==="end"?"left":"right":a=s==="start"?"left":"right":a=i==="bottom"&&n==="top"?"above":"below",a!==this._currentPosition){let l=this._overlayRef;if(l){let d=`${this._cssClassPrefix}-${Oe}-`;l.removePanelClass(d+this._currentPosition),l.addPanelClass(d+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],s=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let n=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),this._defaultOptions.touchLongPressShowDelay??n)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let s=i.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,xe)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,s=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),(e==="on"||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}};t.\u0275fac=function(i){return new(i||t)(f(I),f(w),f(z),f(M),f(C),f(R),f(le),f(he),f(Pe),f(L),f(Ke,8),f(y))},t.\u0275dir=k({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,s){i&2&&K("mat-mdc-tooltip-disabled",s.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let r=t;return r})(),si=(()=>{let t=class t{constructor(e,i,s){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new v,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=s==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>ei&&e.width>=ii}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,s=this._showAnimation,n=this._hideAnimation;if(i.classList.remove(e?n:s),i.classList.add(e?s:n),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}};t.\u0275fac=function(i){return new(i||t)(f(Ot),f(w),f(G,8))},t.\u0275cmp=_t({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,s){if(i&1&&Et(Ge,7),i&2){let n;St(n=Rt())&&(s._tooltip=n.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,s){i&1&&Ct("mouseleave",function(a){return s._handleMouseLeave(a)}),i&2&&wt("zoom",s.isVisible()?1:null)},standalone:!0,features:[Dt],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,s){if(i&1){let n=Kt();J(0,"div",1,0),Ct("animationend",function(l){return Gt(n),$t(s._handleAnimationEnd(l))}),J(2,"div",2),Jt(3),bt()()}i&2&&(K("mdc-tooltip--multiline",s._isMultiline),qt("ngClass",s.tooltipClass),mt(3),te(s.message))},dependencies:[oe],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let r=t;return r})();var Rs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({providers:[Qe],imports:[ce,ne,De,It,It,nt]});let r=t;return r})();export{de as a,ri as b,z as c,Ae as d,rt as e,nt as f,W as g,Z as h,at as i,Mi as j,pe as k,ct as l,Se as m,Bt as n,Nt as o,I as p,Ce as q,Ji as r,De as s,Ss as t,Rs as u};
1
+ import{D as he,F as ce,G as L,H,K as It,a as xt,b as tt,c as kt,d as _,e as re,g as et,h as R,j as ae,k as B,l as it,m as N,p as st,q as Pt,u as le}from"./chunk-DRY23ALE.js";import{$ as b,$a as qt,A as Wt,B as U,Cb as Et,D as pt,Da as G,Db as St,Dc as ne,Eb as Rt,Ia as mt,Ib as Jt,Ja as f,Jb as te,La as $,Ma as Q,Pa as C,Qa as Qt,Qb as Dt,Ra as q,Sa as M,V as E,W as Zt,Wa as vt,Ya as yt,a as T,aa as O,ab as wt,b as dt,ba as Y,bb as K,c as v,ca as c,da as V,ga as _t,gc as ee,ha as x,ia as k,jc as Ot,kc as A,la as Ut,lb as J,mb as bt,n as ft,na as gt,nc as ie,oa as Gt,pa as $t,rb as Kt,rc as y,sc as se,tc as oe,ua as j,ub as Ct,x as ut,ya as w,za as P}from"./chunk-IH2NT4RC.js";import{a as D,b as Xt}from"./chunk-GNOSNGXM.js";var de=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,o,e=!0,i){this._multiple=t,this._emitChanges=e,this.compareWith=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new v,o&&o.length&&(t?o.forEach(s=>this._markSelected(s)):this._markSelected(o[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}setSelection(...t){this._verifyValueAssignment(t);let o=this.selected,e=new Set(t);t.forEach(s=>this._markSelected(s)),o.filter(s=>!e.has(this._getConcreteValue(s,e))).forEach(s=>this._unmarkSelected(s));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let o=this._hasQueuedChanges();return t&&this._emitChangeEvent(),o}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,o){if(this.compareWith){o=o??this._selection;for(let e of o)if(this.compareWith(t,e))return e;return t}else return t}};var ri=(()=>{let t=class t{constructor(){this._listeners=[]}notify(e,i){for(let s of this._listeners)s(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var Me=20,z=(()=>{let t=class t{constructor(e,i,s){this._ngZone=e,this._platform=i,this._scrolled=new v,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=Me){return this._platform.isBrowser?new dt(i=>{this._globalSubscription||this._addGlobalListener();let s=e>0?this._scrolled.pipe(pt(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ft()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let s=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(U(n=>!n||s.indexOf(n)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((s,n)=>{this._scrollableContainsElement(n,e)&&i.push(n)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let s=re(i),n=e.getElementRef().nativeElement;do if(s==n)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return ut(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(i){return new(i||t)(c(C),c(R),c(y,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Ae=(()=>{let t=class t{constructor(e,i,s,n){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=s,this.dir=n,this._destroyed=new v,this._elementScrolled=new dt(a=>this.ngZone.runOutsideAngular(()=>ut(this.elementRef.nativeElement,"scroll").pipe(E(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,s=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=s?e.end:e.start),e.right==null&&(e.right=s?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),s&&N()!=B.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),N()==B.INVERTED?e.left=e.right:N()==B.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;it()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",s="right",n=this.elementRef.nativeElement;if(e=="top")return n.scrollTop;if(e=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?s:i:e=="end"&&(e=a?i:s),a&&N()==B.INVERTED?e==i?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:a&&N()==B.NEGATED?e==i?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:e==i?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}};t.\u0275fac=function(i){return new(i||t)(f(w),f(z),f(C),f(L,8))},t.\u0275dir=k({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let r=t;return r})(),Le=20,rt=(()=>{let t=class t{constructor(e,i,s){this._platform=e,this._change=new v,this._changeListener=n=>{this._change.next(n)},this._document=s,i.runOutsideAngular(()=>{if(e.isBrowser){let n=this._getWindow();n.addEventListener("resize",this._changeListener),n.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),s=e.documentElement,n=s.getBoundingClientRect(),a=-n.top||e.body.scrollTop||i.scrollY||s.scrollTop||0,l=-n.left||e.body.scrollLeft||i.scrollX||s.scrollLeft||0;return{top:a,left:l}}change(e=Le){return e>0?this._change.pipe(pt(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(i){return new(i||t)(c(R),c(C),c(y,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var nt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({});let r=t;return r})(),Tt=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({imports:[H,nt,H,nt]});let r=t;return r})();var X=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},W=class extends X{constructor(t,o,e,i,s){super(),this.component=t,this.viewContainerRef=o,this.injector=e,this.componentFactoryResolver=i,this.projectableNodes=s}},Z=class extends X{constructor(t,o,e,i){super(),this.templateRef=t,this.viewContainerRef=o,this.context=e,this.injector=i}get origin(){return this.templateRef.elementRef}attach(t,o=this.context){return this.context=o,super.attach(t)}detach(){return this.context=void 0,super.detach()}},Mt=class extends X{constructor(t){super(),this.element=t instanceof w?t.nativeElement:t}},at=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof W)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof Z)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof Mt)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var lt=class extends at{constructor(t,o,e,i,s){super(),this.outletElement=t,this._componentFactoryResolver=o,this._appRef=e,this._defaultInjector=i,this.attachDomPortal=n=>{this._document;let a=n.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=n,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector||j.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=t,i}attachTemplatePortal(t){let o=t.viewContainerRef,e=o.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(i=>this.outletElement.appendChild(i)),e.detectChanges(),this.setDisposeFn(()=>{let i=o.indexOf(e);i!==-1&&o.remove(i)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var Mi=(()=>{let t=class t extends at{constructor(e,i,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new P,this.attachDomPortal=n=>{this._document;let a=n.element;a.parentNode;let l=this._document.createComment("dom-portal");n.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=n,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(n,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(i){return new(i||t)(f(Q),f(M),f(y))},t.\u0275dir=k({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[vt]});let r=t;return r})();var pe=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({});let r=t;return r})();var _e=it(),At=class{constructor(t,o){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_(-this._previousScrollPosition.left),t.style.top=_(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,o=this._document.body,e=t.style,i=o.style,s=e.scrollBehavior||"",n=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),_e&&(e.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_e&&(e.scrollBehavior=s,i.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let o=this._document.body,e=this._viewportRuler.getViewportSize();return o.scrollHeight>e.height||o.scrollWidth>e.width}};var Lt=class{constructor(t,o,e,i){this._scrollDispatcher=t,this._ngZone=o,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(U(o=>!o||!this._overlayRef.overlayElement.contains(o.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},ht=class{enable(){}disable(){}attach(){}};function Ft(r,t){return t.some(o=>{let e=r.bottom<o.top,i=r.top>o.bottom,s=r.right<o.left,n=r.left>o.right;return e||i||s||n})}function ge(r,t){return t.some(o=>{let e=r.top<o.top,i=r.bottom>o.bottom,s=r.left<o.left,n=r.right>o.right;return e||i||s||n})}var Vt=class{constructor(t,o,e,i){this._scrollDispatcher=t,this._viewportRuler=o,this._ngZone=e,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();Ft(o,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ve=(()=>{let t=class t{constructor(e,i,s,n){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new ht,this.close=a=>new Lt(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new At(this._viewportRuler,this._document),this.reposition=a=>new Vt(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=n}};t.\u0275fac=function(i){return new(i||t)(c(z),c(rt),c(C),c(y))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),ct=class{constructor(t){if(this.scrollStrategy=new ht,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let o=Object.keys(t);for(let e of o)t[e]!==void 0&&(this[e]=t[e])}}};var jt=class{constructor(t,o){this.connectionPair=t,this.scrollableViewProperties=o}};var Ee=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(i){return new(i||t)(c(y))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),je=(()=>{let t=class t extends Ee{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=s=>{let n=this._attachedOverlays;for(let a=n.length-1;a>-1;a--)if(n[a]._keydownEvents.observers.length>0){let l=n[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(C,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Be=(()=>{let t=class t extends Ee{constructor(e,i,s){super(e),this._platform=i,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=n=>{this._pointerDownEventTarget=st(n)},this._clickListener=n=>{let a=st(n),l=n.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let d=this._attachedOverlays.slice();for(let h=d.length-1;h>-1;h--){let u=d[h];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(me(u.overlayElement,a)||me(u.overlayElement,l))break;let g=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>g.next(n)):g.next(n)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(i){return new(i||t)(c(y),c(R),c(C,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();function me(r,t){let o=typeof ShadowRoot<"u"&&ShadowRoot,e=t;for(;e;){if(e===r)return!0;e=o&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var Se=(()=>{let t=class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Pt()){let s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let n=0;n<s.length;n++)s[n].remove()}let i=this._document.createElement("div");i.classList.add(e),Pt()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}};t.\u0275fac=function(i){return new(i||t)(c(y),c(R))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Bt=class{constructor(t,o,e,i,s,n,a,l,d,h=!1,u){this._portalOutlet=t,this._host=o,this._pane=e,this._config=i,this._ngZone=s,this._keyboardDispatcher=n,this._document=a,this._location=l,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._injector=u,this._backdropElement=null,this._backdropClick=new v,this._attachments=new v,this._detachments=new v,this._locationChanges=T.EMPTY,this._backdropClickHandler=g=>this._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new v,this._outsidePointerEvents=new v,this._renders=new v,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=ie(()=>Qt(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let o=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),q(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof o?.onDestroy=="function"&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=D(D({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Xt(D({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=_(this._config.width),t.height=_(this._config.height),t.minWidth=_(this._config.minWidth),t.minHeight=_(this._config.minHeight),t.maxWidth=_(this._config.maxWidth),t.maxHeight=_(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,o,e){let i=kt(o||[]).filter(s=>!!s);i.length&&(e?t.classList.add(...i):t.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let t=this._renders.pipe(E(Wt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},ve="cdk-overlay-connected-position-bounding-box",Ne=/([A-Za-z%]+)$/,Nt=class{get positions(){return this._preferredPositions}constructor(t,o,e,i,s){this._viewportRuler=o,this._document=e,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v,this._resizeSubscription=T.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(ve),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._originRect,o=this._overlayRect,e=this._viewportRect,i=this._containerRect,s=[],n;for(let a of this._preferredPositions){let l=this._getOriginPoint(t,i,a),d=this._getOverlayPoint(l,o,a),h=this._getOverlayFit(d,o,e,a);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(h,d,e)){s.push({position:a,origin:l,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!n||n.overlayFit.visibleArea<h.visibleArea)&&(n={overlayFit:h,overlayPoint:d,originPoint:l,position:a,overlayRect:o})}if(s.length){let a=null,l=-1;for(let d of s){let h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>l&&(l=h,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(n.position,n.originPoint);return}this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&F(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ve),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let o=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,o)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,o,e){let i;if(e.originX=="center")i=t.left+t.width/2;else{let n=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;i=e.originX=="start"?n:a}o.left<0&&(i-=o.left);let s;return e.originY=="center"?s=t.top+t.height/2:s=e.originY=="top"?t.top:t.bottom,o.top<0&&(s-=o.top),{x:i,y:s}}_getOverlayPoint(t,o,e){let i;e.overlayX=="center"?i=-o.width/2:e.overlayX==="start"?i=this._isRtl()?-o.width:0:i=this._isRtl()?0:-o.width;let s;return e.overlayY=="center"?s=-o.height/2:s=e.overlayY=="top"?0:-o.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,o,e,i){let s=we(o),{x:n,y:a}=t,l=this._getOffset(i,"x"),d=this._getOffset(i,"y");l&&(n+=l),d&&(a+=d);let h=0-n,u=n+s.width-e.width,g=0-a,p=a+s.height-e.height,m=this._subtractOverflows(s.width,h,u),S=this._subtractOverflows(s.height,g,p),Ht=m*S;return{visibleArea:Ht,isCompletelyWithinViewport:s.width*s.height===Ht,fitsInViewportVertically:S===s.height,fitsInViewportHorizontally:m==s.width}}_canFitWithFlexibleDimensions(t,o,e){if(this._hasFlexibleDimensions){let i=e.bottom-o.y,s=e.right-o.x,n=ye(this._overlayRef.getConfig().minHeight),a=ye(this._overlayRef.getConfig().minWidth),l=t.fitsInViewportVertically||n!=null&&n<=i,d=t.fitsInViewportHorizontally||a!=null&&a<=s;return l&&d}return!1}_pushOverlayOnScreen(t,o,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let i=we(o),s=this._viewportRect,n=Math.max(t.x+i.width-s.width,0),a=Math.max(t.y+i.height-s.height,0),l=Math.max(s.top-e.top-t.y,0),d=Math.max(s.left-e.left-t.x,0),h=0,u=0;return i.width<=s.width?h=d||-n:h=t.x<this._viewportMargin?s.left-e.left-t.x:0,i.height<=s.height?u=l||-a:u=t.y<this._viewportMargin?s.top-e.top-t.y:0,this._previousPushAmount={x:h,y:u},{x:t.x+h,y:t.y+u}}_applyPosition(t,o){if(this._setTransformOrigin(t),this._setOverlayElementStyles(o,t),this._setBoundingBoxStyles(o,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!ze(this._lastScrollVisibility,e)){let i=new jt(t,e);this._positionChanges.next(i)}this._lastScrollVisibility=e}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let o=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,i=t.overlayY;t.overlayX==="center"?e="center":this._isRtl()?e=t.overlayX==="start"?"right":"left":e=t.overlayX==="start"?"left":"right";for(let s=0;s<o.length;s++)o[s].style.transformOrigin=`${e} ${i}`}_calculateBoundingBoxRect(t,o){let e=this._viewportRect,i=this._isRtl(),s,n,a;if(o.overlayY==="top")n=t.y,s=e.height-n+this._viewportMargin;else if(o.overlayY==="bottom")a=e.height-t.y+this._viewportMargin*2,s=e.height-a+this._viewportMargin;else{let p=Math.min(e.bottom-t.y+e.top,t.y),m=this._lastBoundingBoxSize.height;s=p*2,n=t.y-p,s>m&&!this._isInitialRender&&!this._growAfterOpen&&(n=t.y-m/2)}let l=o.overlayX==="start"&&!i||o.overlayX==="end"&&i,d=o.overlayX==="end"&&!i||o.overlayX==="start"&&i,h,u,g;if(d)g=e.width-t.x+this._viewportMargin*2,h=t.x-this._viewportMargin;else if(l)u=t.x,h=e.right-t.x;else{let p=Math.min(e.right-t.x+e.left,t.x),m=this._lastBoundingBoxSize.width;h=p*2,u=t.x-p,h>m&&!this._isInitialRender&&!this._growAfterOpen&&(u=t.x-m/2)}return{top:n,left:u,bottom:a,right:g,width:h,height:s}}_setBoundingBoxStyles(t,o){let e=this._calculateBoundingBoxRect(t,o);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;i.height=_(e.height),i.top=_(e.top),i.bottom=_(e.bottom),i.width=_(e.width),i.left=_(e.left),i.right=_(e.right),o.overlayX==="center"?i.alignItems="center":i.alignItems=o.overlayX==="end"?"flex-end":"flex-start",o.overlayY==="center"?i.justifyContent="center":i.justifyContent=o.overlayY==="bottom"?"flex-end":"flex-start",s&&(i.maxHeight=_(s)),n&&(i.maxWidth=_(n))}this._lastBoundingBoxSize=e,F(this._boundingBox.style,i)}_resetBoundingBoxStyles(){F(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){F(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,o){let e={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(i){let h=this._viewportRuler.getViewportScrollPosition();F(e,this._getExactOverlayY(o,t,h)),F(e,this._getExactOverlayX(o,t,h))}else e.position="static";let a="",l=this._getOffset(o,"x"),d=this._getOffset(o,"y");l&&(a+=`translateX(${l}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),n.maxHeight&&(i?e.maxHeight=_(n.maxHeight):s&&(e.maxHeight="")),n.maxWidth&&(i?e.maxWidth=_(n.maxWidth):s&&(e.maxWidth="")),F(this._pane.style,e)}_getExactOverlayY(t,o,e){let i={top:"",bottom:""},s=this._getOverlayPoint(o,this._overlayRect,t);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e)),t.overlayY==="bottom"){let n=this._document.documentElement.clientHeight;i.bottom=`${n-(s.y+this._overlayRect.height)}px`}else i.top=_(s.y);return i}_getExactOverlayX(t,o,e){let i={left:"",right:""},s=this._getOverlayPoint(o,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,e));let n;if(this._isRtl()?n=t.overlayX==="end"?"left":"right":n=t.overlayX==="end"?"right":"left",n==="right"){let a=this._document.documentElement.clientWidth;i.right=`${a-(s.x+this._overlayRect.width)}px`}else i.left=_(s.x);return i}_getScrollVisibility(){let t=this._getOriginRect(),o=this._pane.getBoundingClientRect(),e=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ge(t,e),isOriginOutsideView:Ft(t,e),isOverlayClipped:ge(o,e),isOverlayOutsideView:Ft(o,e)}}_subtractOverflows(t,...o){return o.reduce((e,i)=>e-Math.max(i,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+o-this._viewportMargin,width:t-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,o){return o==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&kt(t).forEach(o=>{o!==""&&this._appliedPanelClasses.indexOf(o)===-1&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof w)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let o=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+o,height:e,width:o}}};function F(r,t){for(let o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);return r}function ye(r){if(typeof r!="number"&&r!=null){let[t,o]=r.split(Ne);return!o||o==="px"?parseFloat(t):null}return r||null}function we(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}function ze(r,t){return r===t?!0:r.isOriginClipped===t.isOriginClipped&&r.isOriginOutsideView===t.isOriginOutsideView&&r.isOverlayClipped===t.isOverlayClipped&&r.isOverlayOutsideView===t.isOverlayOutsideView}var be="cdk-global-overlay-wrapper",zt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let o=t.getConfig();this._overlayRef=t,this._width&&!o.width&&t.updateSize({width:this._width}),this._height&&!o.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(be),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:n,maxHeight:a}=e,l=(i==="100%"||i==="100vw")&&(!n||n==="100%"||n==="100vw"),d=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,u=this._xOffset,g=this._overlayRef.getConfig().direction==="rtl",p="",m="",S="";l?S="flex-start":h==="center"?(S="center",g?m=u:p=u):g?h==="left"||h==="end"?(S="flex-end",p=u):(h==="right"||h==="start")&&(S="flex-start",m=u):h==="left"||h==="start"?(S="flex-start",p=u):(h==="right"||h==="end")&&(S="flex-end",m=u),t.position=this._cssPosition,t.marginLeft=l?"0":p,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=l?"0":m,o.justifyContent=S,o.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,e=o.style;o.classList.remove(be),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},Ye=(()=>{let t=class t{constructor(e,i,s,n){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=n}global(){return new zt}flexibleConnectedTo(e){return new Nt(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(i){return new(i||t)(c(rt),c(y),c(R),c(Se))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),He=0,I=(()=>{let t=class t{constructor(e,i,s,n,a,l,d,h,u,g,p,m){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=n,this._keyboardDispatcher=a,this._injector=l,this._ngZone=d,this._document=h,this._directionality=u,this._location=g,this._outsideClickDispatcher=p,this._animationsModuleType=m}create(e){let i=this._createHostElement(),s=this._createPaneElement(i),n=this._createPortalOutlet(s),a=new ct(e);return a.direction=a.direction||this._directionality.value,new Bt(n,i,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Ut))}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${He++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(ee)),new lt(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(i){return new(i||t)(c(Ve),c(Se),c(Q),c(Ye),c(je),c(j),c(C),c(y),c(L),c(se),c(Be),c(G,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})(),Xe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Re=new Y("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let r=V(I);return()=>r.scrollStrategies.reposition()}}),Ce=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(i){return new(i||t)(f(w))},t.\u0275dir=k({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let r=t;return r})(),Ji=(()=>{let t=class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,s,n,a){this._overlay=e,this._dir=a,this._backdropSubscription=T.EMPTY,this._attachSubscription=T.EMPTY,this._detachSubscription=T.EMPTY,this._positionSubscription=T.EMPTY,this._disposeOnNavigation=!1,this._ngZone=V(C),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new P,this.positionChange=new P,this.attach=new P,this.detach=new P,this.overlayKeydown=new P,this.overlayOutsideClick=new P,this._templatePortal=new Z(i,s),this._scrollStrategyFactory=n,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Xe);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!et(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let s=this._getOriginElement(),n=st(i);(!s||s!==n&&!s.contains(n))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new ct({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Ce?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ce?this.origin.elementRef.nativeElement:this.origin instanceof w?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Zt(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(f(I),f($),f(M),f(Re),f(L,8))},t.\u0275dir=k({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",A],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",A],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",A],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",A],push:[2,"cdkConnectedOverlayPush","push",A],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",A]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[yt,gt]});let r=t;return r})();function We(r){return()=>r.scrollStrategies.reposition()}var Ze={provide:Re,deps:[I],useFactory:We},De=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({providers:[I,Ze],imports:[H,pe,Tt,Tt]});let r=t;return r})();var Ge=["tooltip"],ke=20;var Pe=new Y("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let r=V(I);return()=>r.scrollStrategies.reposition({scrollThrottle:ke})}});function $e(r){return()=>r.scrollStrategies.reposition({scrollThrottle:ke})}var Qe={provide:Pe,deps:[I],useFactory:$e};function qe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var Ke=new Y("mat-tooltip-default-options",{providedIn:"root",factory:qe});var Oe="tooltip-panel",xe=ae({passive:!0}),Je=8,ti=8,ei=24,ii=200,Ss=(()=>{let t=class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=xt(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=xt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=tt(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=tt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,s,n,a,l,d,h,u,g,p,m){this._overlay=e,this._elementRef=i,this._scrollDispatcher=s,this._viewContainerRef=n,this._ngZone=a,this._platform=l,this._ariaDescriber=d,this._focusMonitor=h,this._dir=g,this._defaultOptions=p,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=si,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new v,this._injector=V(j),this._scrollStrategy=u,this._document=m,p&&(this._showDelay=p.showDelay,this._hideDelay=p.hideDelay,p.position&&(this.position=p.position),p.positionAtOrigin&&(this.positionAtOrigin=p.positionAtOrigin),p.touchGestures&&(this.touchGestures=p.touchGestures)),g.change.pipe(E(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=Je}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(E(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,s])=>{e.removeEventListener(i,s,xe)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let s=this._createOverlay(i);this._detach(),this._portal=this._portal||new W(this._tooltipComponent,this._viewContainerRef);let n=this._tooltipInstance=s.attach(this._portal).instance;n._triggerElement=this._elementRef.nativeElement,n._mouseLeaveHideDelay=this._hideDelay,n.afterHidden().pipe(E(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),n.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let n=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&n._origin instanceof w)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),s=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return s.positionChanges.pipe(E(this._destroyed)).subscribe(n=>{this._updateCurrentPositionClass(n.connectionPair),this._tooltipInstance&&n.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:s,panelClass:`${this._cssClassPrefix}-${Oe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(E(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(E(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(E(this._destroyed)).subscribe(n=>{this._isTooltipVisible()&&n.keyCode===27&&!et(n)&&(n.preventDefault(),n.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,s=this._getOrigin(),n=this._getOverlayPosition();i.withPositions([this._addOffset(D(D({},s.main),n.main)),this._addOffset(D(D({},s.fallback),n.fallback))])}_addOffset(e){let i=ti,s=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=s?-i:i:e.originX==="end"&&(e.offsetX=s?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,s;i=="above"||i=="below"?s={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?s={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(s={originX:"end",originY:"center"});let{x:n,y:a}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:n,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,s;i=="above"?s={overlayX:"center",overlayY:"bottom"}:i=="below"?s={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?s={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(s={overlayX:"start",overlayY:"center"});let{x:n,y:a}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:n,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),q(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:s,originY:n}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=s==="end"?"left":"right":a=s==="start"?"left":"right":a=i==="bottom"&&n==="top"?"above":"below",a!==this._currentPosition){let l=this._overlayRef;if(l){let d=`${this._cssClassPrefix}-${Oe}-`;l.removePanelClass(d+this._currentPosition),l.addPanelClass(d+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],s=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let n=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,s),this._defaultOptions.touchLongPressShowDelay??n)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let s=i.relatedTarget;(!s||!this._overlayRef?.overlayElement.contains(s))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,s])=>{this._elementRef.nativeElement.addEventListener(i,s,xe)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;i!==s&&!s.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,s=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),(e==="on"||!i.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}};t.\u0275fac=function(i){return new(i||t)(f(I),f(w),f(z),f(M),f(C),f(R),f(le),f(he),f(Pe),f(L),f(Ke,8),f(y))},t.\u0275dir=k({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,s){i&2&&K("mat-mdc-tooltip-disabled",s.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let r=t;return r})(),si=(()=>{let t=class t{constructor(e,i,s){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new v,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=s==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>ei&&e.width>=ii}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,s=this._showAnimation,n=this._hideAnimation;if(i.classList.remove(e?n:s),i.classList.add(e?s:n),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}};t.\u0275fac=function(i){return new(i||t)(f(Ot),f(w),f(G,8))},t.\u0275cmp=_t({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,s){if(i&1&&Et(Ge,7),i&2){let n;St(n=Rt())&&(s._tooltip=n.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,s){i&1&&Ct("mouseleave",function(a){return s._handleMouseLeave(a)}),i&2&&wt("zoom",s.isVisible()?1:null)},standalone:!0,features:[Dt],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,s){if(i&1){let n=Kt();J(0,"div",1,0),Ct("animationend",function(l){return Gt(n),$t(s._handleAnimationEnd(l))}),J(2,"div",2),Jt(3),bt()()}i&2&&(K("mdc-tooltip--multiline",s._isMultiline),qt("ngClass",s.tooltipClass),mt(3),te(s.message))},dependencies:[oe],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color);color:var(--mdc-plain-tooltip-supporting-text-color);border-radius:var(--mdc-plain-tooltip-container-shape);font-family:var(--mdc-plain-tooltip-supporting-text-font);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let r=t;return r})();var Rs=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=x({type:t}),t.\u0275inj=O({providers:[Qe],imports:[ce,ne,De,It,It,nt]});let r=t;return r})();export{de as a,ri as b,z as c,Ae as d,rt as e,nt as f,W as g,Z as h,at as i,Mi as j,pe as k,ct as l,Se as m,Bt as n,Nt as o,I as p,Ce as q,Ji as r,De as s,Ss as t,Rs as u};
@@ -1 +1 @@
1
- import{c as Ye,d as Xe,g as Ue}from"./chunk-6NTRXLMW.js";import{a as Le,e as We,f as je,p as U,q as $,r as Z,s as Be}from"./chunk-CTKEWRX4.js";import{C as Ve,G as Pe,K as J,L as Ke,Q as qe,V as Ne,W as ze,X as He,Y as Qe,Z as Ge,_ as ee,g as Y,s as Re,t as X,v as Fe}from"./chunk-GXHE2CDH.js";import{e as ke,g as Ie,j as xe,o as Ae}from"./chunk-QOA24ZLA.js";import{$a as j,A as w,B as P,Bb as A,Cb as T,Db as v,Dc as Se,Eb as b,Hb as be,I as ne,Ia as g,Ib as N,Ja as l,Jb as z,K as re,Pa as ue,Pb as Ce,Qb as Oe,S as L,T as W,V as m,Ya as _e,Za as I,_a as x,aa as se,ad as Q,ba as S,bb as ge,bd as G,c as O,da as oe,eb as fe,ed as E,fd as Te,ga as le,gb as B,ha as ce,hd as D,jc as Me,jd as Ee,kc as C,lb as h,lc as H,ld as De,mb as f,na as de,nb as ye,oa as u,pa as _,q as V,qa as he,rb as K,ta as pe,tc as we,ub as M,v as ae,wb as y,xb as ve,ya as me,yb as q,za as k}from"./chunk-HSFUKC7R.js";var ht=["trigger"],pt=["panel"],mt=[[["mat-select-trigger"]],"*"],ut=["mat-select-trigger","*"];function _t(n,r){if(n&1&&(h(0,"span",4),N(1),f()),n&2){let o=y();g(),z(o.placeholder)}}function gt(n,r){n&1&&q(0)}function ft(n,r){if(n&1&&(h(0,"span",11),N(1),f()),n&2){let o=y(2);g(),z(o.triggerValue)}}function yt(n,r){if(n&1&&(h(0,"span",5),I(1,gt,1,0)(2,ft,2,1,"span",11),f()),n&2){let o=y();g(),B(o.customTrigger?1:2)}}function vt(n,r){if(n&1){let o=K();h(0,"div",12,1),M("@transformPanel.done",function(t){u(o);let i=y();return _(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){u(o);let i=y();return _(i._handleKeydown(t))}),q(2,1),f()}if(n&2){let o=y();fe("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),j("ngClass",o.panelClass)("@transformPanel","showing"),x("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var bt={transformPanelWrap:Q("transformPanelWrap",[D("* => void",De("@transformPanel",[Ee()],{optional:!0}))]),transformPanel:Q("transformPanel",[Te("void",E({opacity:0,transform:"scale(1, 0.8)"})),D("void => showing",G("120ms cubic-bezier(0, 0, 0.2, 1)",E({opacity:1,transform:"scale(1, 1)"}))),D("* => void",G("100ms linear",E({opacity:0})))])};var tt=0,it=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=oe(U);return()=>n.scrollStrategies.reposition()}});function Ct(n){return()=>n.scrollStrategies.reposition()}var Ot=new S("MAT_SELECT_CONFIG"),Mt={provide:it,deps:[U],useFactory:Ct},wt=new S("MatSelectTrigger"),te=class{constructor(r,o){this.source=r,this.value=o}},ri=(()=>{let r=class r{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Qe(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Ge(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new te(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(ke.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,a,s,p,c,at,nt,ie,rt,st,ot,R){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=p,this._parentFormField=nt,this.ngControl=ie,this._liveAnnouncer=ot,this._defaultOptions=R,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(d,F)=>d===F,this._uid=`mat-select-${tt++}`,this._triggerAriaLabelledBy=null,this._destroy=new O,this.stateChanges=new O,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${tt++}`,this._panelDoneAnimatingStream=new O,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new O,this.optionSelectionChanges=ae(()=>{let d=this.options;return d?d.changes.pipe(L(d),W(()=>w(...d.map(F=>F.onSelectionChange)))):this._initialized.pipe(W(()=>this.optionSelectionChanges))}),this.openedChange=new k,this._openedStream=this.openedChange.pipe(P(d=>d),V(()=>{})),this._closedStream=this.openedChange.pipe(P(d=>!d),V(()=>{})),this.selectionChange=new k,this.valueChange=new k,this._trackedModal=null,this._skipPredicate=d=>this.panelOpen?!1:d.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),R?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=R.typeaheadDebounceInterval),this._errorStateTracker=new Ke(a,ie,at,c,this.stateChanges),this._scrollStrategyFactory=st,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(rt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Le(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(re(),m(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(m(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(m(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(L(null),m(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&X(this._trackedModal,"aria-owns",t),Re(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;X(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&a&&!Y(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let p=this.selected;s.onKeydown(e);let c=this.selected;c&&p!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,s=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!Y(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let p=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(p?c.select():c.deselect())})}else{let p=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==p&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ne(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof $?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Fe(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=w(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(m(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),w(...this.options.map(t=>t._stateChanges)).pipe(m(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};r.\u0275fac=function(t){return new(t||r)(l(We),l(Me),l(ue),l(qe),l(me),l(Pe,8),l(xe,8),l(Ae,8),l(Xe,8),l(Ie,10),pe("tabindex"),l(it),l(Ve),l(Ot,8))},r.\u0275cmp=le({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,wt,5),A(a,He,5),A(a,ze,5)),t&2){let s;v(s=b())&&(i.customTrigger=s.first),v(s=b())&&(i.options=s),v(s=b())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(T(ht,5),T(pt,5),T(Z,5)),t&2){let a;v(a=b())&&(i.trigger=a.first),v(a=b())&&(i.panel=a.first),v(a=b())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&M("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(x("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ge("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",C],disableRipple:[2,"disableRipple","disableRipple",C],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:H(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C],placeholder:"placeholder",required:[2,"required","required",C],multiple:[2,"multiple","multiple",C],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",C],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",H],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:Ye,useExisting:r},{provide:Ne,useExisting:r}]),_e,de,Oe],ngContentSelectors:ut,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=K();ve(mt),h(0,"div",2,0),M("click",function(){return u(a),_(i.open())}),h(3,"div",3),I(4,_t,2,1,"span",4)(5,yt,3,1,"span",5),f(),h(6,"div",6)(7,"div",7),he(),h(8,"svg",8),ye(9,"path",9),f()()()(),I(10,vt,3,9,"ng-template",10),M("backdropClick",function(){return u(a),_(i.close())})("attach",function(){return u(a),_(i._onAttached())})("detach",function(){return u(a),_(i.close())})}if(t&2){let a=be(1);g(3),x("id",i._valueId),g(),B(i.empty?4:5),g(6),j("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[$,Z,we],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[bt.transformPanel]},changeDetection:0});let n=r;return n})();var si=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ce({type:r}),r.\u0275inj=se({providers:[Mt],imports:[Se,Be,ee,J,je,Ue,ee,J]});let n=r;return n})();export{ri as a,si as b};
1
+ import{c as Ye,d as Xe,g as Ue}from"./chunk-X54LLODL.js";import{a as Le,e as We,f as je,p as U,q as $,r as Z,s as Be}from"./chunk-BZ7SMYI7.js";import{C as Ve,G as Pe,K as J,L as Ke,Q as qe,V as Ne,W as ze,X as He,Y as Qe,Z as Ge,_ as ee,g as Y,s as Re,t as X,v as Fe}from"./chunk-DRY23ALE.js";import{e as ke,g as Ie,k as xe,q as Ae}from"./chunk-VFLG2BDB.js";import{$a as j,A as w,B as P,Bb as A,Cb as T,Db as v,Dc as Se,Eb as b,Hb as be,I as ne,Ia as g,Ib as N,Ja as l,Jb as z,K as re,Pa as ue,Pb as Ce,Qb as Oe,S as L,T as W,V as m,Ya as _e,Za as I,_a as x,aa as se,ad as Q,ba as S,bb as ge,bd as G,c as O,da as oe,eb as fe,ed as E,fd as Te,ga as le,gb as B,ha as ce,hd as D,jc as Me,jd as Ee,kc as C,lb as h,lc as H,ld as De,mb as f,na as de,nb as ye,oa as u,pa as _,q as V,qa as he,rb as K,ta as pe,tc as we,ub as M,v as ae,wb as y,xb as ve,ya as me,yb as q,za as k}from"./chunk-IH2NT4RC.js";var ht=["trigger"],pt=["panel"],mt=[[["mat-select-trigger"]],"*"],ut=["mat-select-trigger","*"];function _t(n,r){if(n&1&&(h(0,"span",4),N(1),f()),n&2){let o=y();g(),z(o.placeholder)}}function gt(n,r){n&1&&q(0)}function ft(n,r){if(n&1&&(h(0,"span",11),N(1),f()),n&2){let o=y(2);g(),z(o.triggerValue)}}function yt(n,r){if(n&1&&(h(0,"span",5),I(1,gt,1,0)(2,ft,2,1,"span",11),f()),n&2){let o=y();g(),B(o.customTrigger?1:2)}}function vt(n,r){if(n&1){let o=K();h(0,"div",12,1),M("@transformPanel.done",function(t){u(o);let i=y();return _(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){u(o);let i=y();return _(i._handleKeydown(t))}),q(2,1),f()}if(n&2){let o=y();fe("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),j("ngClass",o.panelClass)("@transformPanel","showing"),x("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var bt={transformPanelWrap:Q("transformPanelWrap",[D("* => void",De("@transformPanel",[Ee()],{optional:!0}))]),transformPanel:Q("transformPanel",[Te("void",E({opacity:0,transform:"scale(1, 0.8)"})),D("void => showing",G("120ms cubic-bezier(0, 0, 0.2, 1)",E({opacity:1,transform:"scale(1, 1)"}))),D("* => void",G("100ms linear",E({opacity:0})))])};var tt=0,it=new S("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=oe(U);return()=>n.scrollStrategies.reposition()}});function Ct(n){return()=>n.scrollStrategies.reposition()}var Ot=new S("MAT_SELECT_CONFIG"),Mt={provide:it,deps:[U],useFactory:Ct},wt=new S("MatSelectTrigger"),te=class{constructor(r,o){this.source=r,this.value=o}},ri=(()=>{let r=class r{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=Qe(e,this.options,this.optionGroups),s=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Ge(s.offsetTop,s.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new te(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(ke.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,a,s,p,c,at,nt,ie,rt,st,ot,R){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=s,this._dir=p,this._parentFormField=nt,this.ngControl=ie,this._liveAnnouncer=ot,this._defaultOptions=R,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(d,F)=>d===F,this._uid=`mat-select-${tt++}`,this._triggerAriaLabelledBy=null,this._destroy=new O,this.stateChanges=new O,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${tt++}`,this._panelDoneAnimatingStream=new O,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new O,this.optionSelectionChanges=ae(()=>{let d=this.options;return d?d.changes.pipe(L(d),W(()=>w(...d.map(F=>F.onSelectionChange)))):this._initialized.pipe(W(()=>this.optionSelectionChanges))}),this.openedChange=new k,this._openedStream=this.openedChange.pipe(P(d=>d),V(()=>{})),this._closedStream=this.openedChange.pipe(P(d=>!d),V(()=>{})),this.selectionChange=new k,this.valueChange=new k,this._trackedModal=null,this._skipPredicate=d=>this.panelOpen?!1:d.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),R?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=R.typeaheadDebounceInterval),this._errorStateTracker=new Ke(a,ie,at,c,this.stateChanges),this._scrollStrategyFactory=st,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(rt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Le(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(re(),m(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(m(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(m(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(L(null),m(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&X(this._trackedModal,"aria-owns",t),Re(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;X(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,s=this._keyManager;if(!s.isTyping()&&a&&!Y(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let p=this.selected;s.onKeydown(e);let c=this.selected;c&&p!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,s=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!s&&(i===13||i===32)&&t.activeItem&&!Y(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!s&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let p=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(p?c.select():c.deselect())})}else{let p=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==p&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ne(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof $?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Fe(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=w(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(m(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),w(...this.options.map(t=>t._stateChanges)).pipe(m(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};r.\u0275fac=function(t){return new(t||r)(l(We),l(Me),l(ue),l(qe),l(me),l(Pe,8),l(xe,8),l(Ae,8),l(Xe,8),l(Ie,10),pe("tabindex"),l(it),l(Ve),l(Ot,8))},r.\u0275cmp=le({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(A(a,wt,5),A(a,He,5),A(a,ze,5)),t&2){let s;v(s=b())&&(i.customTrigger=s.first),v(s=b())&&(i.options=s),v(s=b())&&(i.optionGroups=s)}},viewQuery:function(t,i){if(t&1&&(T(ht,5),T(pt,5),T(Z,5)),t&2){let a;v(a=b())&&(i.trigger=a.first),v(a=b())&&(i.panel=a.first),v(a=b())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&M("keydown",function(s){return i._handleKeydown(s)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(x("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ge("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",C],disableRipple:[2,"disableRipple","disableRipple",C],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:H(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",C],placeholder:"placeholder",required:[2,"required","required",C],multiple:[2,"multiple","multiple",C],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",C],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",H],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ce([{provide:Ye,useExisting:r},{provide:Ne,useExisting:r}]),_e,de,Oe],ngContentSelectors:ut,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=K();ve(mt),h(0,"div",2,0),M("click",function(){return u(a),_(i.open())}),h(3,"div",3),I(4,_t,2,1,"span",4)(5,yt,3,1,"span",5),f(),h(6,"div",6)(7,"div",7),he(),h(8,"svg",8),ye(9,"path",9),f()()()(),I(10,vt,3,9,"ng-template",10),M("backdropClick",function(){return u(a),_(i.close())})("attach",function(){return u(a),_(i._onAttached())})("detach",function(){return u(a),_(i.close())})}if(t&2){let a=be(1);g(3),x("id",i._valueId),g(),B(i.empty?4:5),g(6),j("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[$,Z,we],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[bt.transformPanel]},changeDetection:0});let n=r;return n})();var si=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ce({type:r}),r.\u0275inj=se({providers:[Mt],imports:[Se,Be,ee,J,je,Ue,ee,J]});let n=r;return n})();export{ri as a,si as b};
@@ -1 +1 @@
1
- import{a as fe}from"./chunk-VVKIT2K2.js";import{a as ie}from"./chunk-BVIRHZTZ.js";import{a as xe}from"./chunk-GP6U42SV.js";import{a as de,b as ue}from"./chunk-O5FN3DLG.js";import{c as ge}from"./chunk-IJAO5VS5.js";import{a as se}from"./chunk-C62XLEFW.js";import{g as pe}from"./chunk-6NTRXLMW.js";import{g as le}from"./chunk-OML53I6I.js";import{d as _e,g as me}from"./chunk-UUNZHJ6W.js";import{t as ae,u as ce}from"./chunk-CTKEWRX4.js";import{b as Q,h as ee,l as te,y as ne}from"./chunk-QOA24ZLA.js";import{e as oe,f as re}from"./chunk-2AMEIUWK.js";import{$a as m,$b as R,Cc as G,Dc as J,Ha as S,Hb as b,Ia as r,Ib as p,Ja as I,Jb as k,Kb as v,Mb as O,Nb as D,Ob as N,Qb as H,Sb as T,V as L,Za as s,_b as $,ac as Z,bc as y,c as W,ga as z,gb as P,hb as E,jb as M,kb as V,lb as c,mb as _,nb as w,oa as g,ob as x,pa as d,pb as f,qb as U,rb as C,tc as q,ub as h,vc as K,wb as a,wc as X,yc as Y,za as B,zb as A}from"./chunk-HSFUKC7R.js";var j=t=>[t],Ce=t=>({"text-decoration-line-through":t}),he=t=>({"ms-10":t}),Te=t=>({"bg-gradient-warning":t});function be(t,l){if(t&1){let n=C();c(0,"mat-slide-toggle",14),h("toggleChange",function(){g(n);let e=a();return e.toggleStatus=!e.toggleStatus,d(e.onToggle())}),c(1,"small",15),p(2),_()()}if(t&2){let n=a();r(2),v(" ",n.productToggleTitle?n.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function ve(t,l){if(t&1){let n=C();c(0,"th")(1,"input",16),N("ngModelChange",function(e){g(n);let o=a();return D(o.checkboxState,e)||(o.checkboxState=e),d(e)}),h("ngModelChange",function(){g(n);let e=a();return d(e.onCheckboxStateChange())}),_()()}if(t&2){let n=a();r(),O("ngModel",n.checkboxState)}}function Se(t,l){t&1&&(c(0,"th",11),p(1,"POS"),_())}function we(t,l){if(t&1&&(x(0),c(1,"th",17)(2,"div",18)(3,"div",19),w(4,"img",20),c(5,"div",21),p(6),$(7,"stringLimit"),_()()()(),f()),t&2){let n=l.$implicit;r(3),m("matTooltip",(n.Name==null?null:n.Name.length)>20?n.Name:""),r(),m("src",n==null?null:n.Img,S),r(2),v(" ",Z(7,3,n.Name,20)," ")}}function ye(t,l){t&1&&U(0)}function Fe(t,l){if(t&1&&(x(0),s(1,ye,1,0,"ng-container",34),f()),t&2){a();let n=b(7);r(),m("ngTemplateOutlet",n)}}function Ie(t,l){t&1&&U(0)}function Pe(t,l){if(t&1&&s(0,Ie,1,0,"ng-container",34),t&2){a(2);let n=b(7);m("ngTemplateOutlet",n)}}function Ee(t,l){if(t&1&&s(0,Pe,1,1,"ng-template",12),t&2){let n=a(4);m("ngxPermissionsOnly",T(1,j,n.rolePriceEdit))}}function Me(t,l){if(t&1){let n=C();x(0),c(1,"input",35),N("ngModelChange",function(e){g(n);let o=a(4).$implicit;return D(o.selected,e)||(o.selected=e),d(e)}),h("ngModelChange",function(){g(n);let e=a(4).$implicit,o=a();return d(o.onCheckboxStateProduct(e.ID))}),_(),f()}if(t&2){let n=a(4).$implicit;r(),O("ngModel",n.selected)}}function Ve(t,l){if(t&1&&s(0,Me,2,1,"ng-container",22),t&2){let n=a(3).$implicit;m("ngIf",(n==null||n.Variants==null?null:n.Variants.length)>1)}}function ke(t,l){if(t&1){let n=C();x(0),c(1,"img",36),h("click",function(e){g(n);let o=a(3).$implicit,u=a();return d(u.onZoomImage(e,o==null?null:o.ImageUrl))}),_(),f()}if(t&2){let n=a(3).$implicit;r(),A("src",n==null?null:n.ThumbnailUrl,S)}}function Oe(t,l){t&1&&w(0,"img",37)}function De(t,l){if(t&1&&(x(0),c(1,"td",29)(2,"div",30),s(3,Fe,2,1,"ng-container",31)(4,Ee,1,3,"ng-template",null,0,y)(6,Ve,1,1,"ng-template",null,1,y),c(8,"div",26),s(9,ke,2,1,"ng-container",31)(10,Oe,1,0,"ng-template",null,2,y),_()()(),c(12,"td",32)(13,"div"),p(14),_(),c(15,"small",33),p(16),_()(),f()),t&2){let n=b(5),i=b(11),e=a(2).$implicit,o=a();r(),m("rowSpan",e==null?null:e.Variants.length),r(2),m("ngIf",o.table=="inventory")("ngIfElse",n),r(5),m("ngClass",T(9,he,(e==null||e.Variants==null?null:e.Variants.length)<=1)),r(),m("ngIf",e==null?null:e.ThumbnailUrl)("ngIfElse",i),r(3),m("rowSpan",e==null?null:e.Variants.length),r(2),k(e==null?null:e.Name),r(2),v("(",e==null?null:e.Category,")")}}function Ne(t,l){if(t&1){let n=C();c(0,"input",16),N("ngModelChange",function(e){g(n);let o=a(2).$implicit;return D(o.selected,e)||(o.selected=e),d(e)}),_()}if(t&2){let n=a(2).$implicit;O("ngModel",n.selected)}}function $e(t,l){if(t&1&&(c(0,"td",38),s(1,Ne,1,1,"input",39),_()),t&2){let n=a().$implicit,i=a(2);r(),m("ngIf",i.printPOS(n)>=0||i.table=="price")}}function Be(t,l){if(t&1&&(c(0,"td",24),p(1),$(2,"number"),_()),t&2){let n=a().$implicit,i=a(2);r(),k(R(2,1,i.printPOS(n)))}}function Ue(t,l){if(t&1){let n=C();x(0),c(1,"td",40),h("click",function(){g(n);let e=a().$implicit,o=a().$implicit,u=a().$implicit,F=a();return d(F.openTableDialog(u.Name,o,e.ID,u.ChannelItemID))}),c(2,"div",30)(3,"div",41),p(4),$(5,"number"),_(),c(6,"a",42),h("click",function(e){return g(n),d(e==null?null:e.stopPropagation())}),w(7,"i",28),_()()(),f()}if(t&2){let n=l.$implicit,i=a(2).$implicit,e=a(2);r(),m("ngClass",T(5,Te,e.printPOS(i)!=e.printItem(n))),r(3),v(" ",R(5,3,e.printItem(n))," "),r(2),m("href",n.Url,S)}}function Re(t,l){t&1&&(c(0,"td",43)(1,"div",30)(2,"span"),p(3,"X"),_()()())}function je(t,l){if(t&1&&s(0,Ue,8,7,"ng-container",31)(1,Re,4,0,"ng-template",null,3,y),t&2){let n=l.$implicit,i=b(2),e=a().$implicit,o=a(2);m("ngIf",o.getItemFromChannel(e,n.ID))("ngIfElse",i)}}function We(t,l){if(t&1&&(c(0,"tr"),s(1,De,17,11,"ng-container",22),c(2,"td",23),p(3),_(),c(4,"td",24)(5,"div",25)(6,"div",26),p(7),_(),c(8,"div",21)(9,"a",27),w(10,"i",28),_()()()(),s(11,$e,2,1,"ng-template",12)(12,Be,3,3,"td",24),M(13,je,3,2,null,null,E),_()),t&2){let n=l.$implicit,i=l.$index,e=a(2);r(),m("ngIf",i==0),r(2),k(n==null?null:n.Model),r(2),m("matTooltip",n.Discontinued?e.discontinuedVariantMsg:""),r(),m("ngClass",T(8,Ce,n.Discontinued)),r(),v(" ",n.Code," "),r(2),m("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),S),r(2),m("ngxPermissionsOnly",T(10,j,e.rolePriceEdit)),r(),P(e.filter!=null&&e.filter.HiddenIPOSInventory?-1:12),r(),V(e.channel)}}function Le(t,l){if(t&1&&(c(0,"tbody"),M(1,We,15,12,"tr",null,E),_()),t&2){let n=l.$implicit;r(),V(n.Variants)}}var xt=(()=>{let l=class l{constructor(i,e,o){this.dialog=i,this.biggerPictureService=e,this.authService=o,this.showProductToggle=!1,this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=ie.price,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new B,this.destroy$=new W,this.toggle=new B,this.hostName=this.authService.getDomain()}ngOnInit(){this.table=="inventory"?this.stockHeader="Stock":this.table=="price"&&(this.stockHeader="Price")}onCheckboxStateProduct(i){let e=this.data.filter(o=>o.ID==i);e.length>0&&(e=e.map(o=>(o.Variants=o.Variants.map(u=>(u.selected=o.selected,u)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(e=>(e.selected=this.checkboxState,e)),i))}getItemFromChannel(i,e){return i.Channel.find(o=>o.ChannelID==e)}printItem(i){if(this.table=="inventory")return i.Inventory;if(this.table=="price")return i.Price}openTableDialog(i,e,o,u){this.dialog.open(fe,{data:{Name:i,Variant:e,ChannelID:o,Table:this.table,ChannelItemID:u}}).afterClosed().pipe(L(this.destroy$)).subscribe(F=>{F!=null&&this.onSubmit.emit(F)})}printPOS(i){return this.table=="inventory"?i.Inventory?i.Inventory:0:this.table=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,e){this.biggerPictureService.openBiggerPicture(i,e)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(e){return new(e||l)(I(_e),I(se),I(le))},l.\u0275cmp=z({type:l,selectors:[["app-table"]],inputs:{filter:"filter",data:"data",table:"table",channel:"channel",showProductToggle:"showProductToggle",productToggleTitle:"productToggleTitle"},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},standalone:!0,features:[H],decls:18,vars:6,consts:[["PRICE",""],["checkbox_update",""],["elsePic",""],["elseCol",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],[3,"ngxPermissionsOnly"],[4,"ngFor","ngForOf"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],["type","checkbox",3,"ngModelChange","ngModel"],["scope","col"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[4,"ngIf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"align-middle"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],[1,"p-0","pointer","cell-hover",3,"click","ngClass"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"],[1,"table-white","text-center",2,"color","red"]],template:function(e,o){e&1&&(c(0,"div",4)(1,"table",5)(2,"thead",6)(3,"tr")(4,"th",7)(5,"div",8)(6,"div"),p(7,"Product"),_(),s(8,be,3,1,"mat-slide-toggle",9),_()(),c(9,"th",10),p(10,"Variant"),_(),c(11,"th",11),p(12,"SKU"),_(),s(13,ve,2,1,"ng-template",12)(14,Se,2,0,"th",11)(15,we,8,6,"ng-container",13),_()(),M(16,Le,3,0,"tbody",null,E),_()()),e&2&&(r(8),P(o.showProductToggle?8:-1),r(5),m("ngxPermissionsOnly",T(4,j,o.rolePriceEdit)),r(),P(o.filter!=null&&o.filter.HiddenIPOSInventory?-1:14),r(),m("ngForOf",o.channel),r(),V(o.data))},dependencies:[J,q,K,X,Y,G,ne,Q,ee,te,ue,de,me,pe,ge,re,oe,ce,ae,xe],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=l;return t})();export{xt as a};
1
+ import{a as fe}from"./chunk-WWRX4VCC.js";import{a as ie}from"./chunk-BVIRHZTZ.js";import{a as xe}from"./chunk-T3POIC5F.js";import{a as de,b as ue}from"./chunk-V6PMZ6DL.js";import{c as ge}from"./chunk-OURZMROU.js";import{a as se}from"./chunk-PW6QZKJS.js";import{g as pe}from"./chunk-X54LLODL.js";import{g as le}from"./chunk-4RD6A3OZ.js";import{d as _e,g as me}from"./chunk-SG42JTLJ.js";import{t as ae,u as ce}from"./chunk-BZ7SMYI7.js";import{A as ne,b as Q,h as ee,m as te}from"./chunk-VFLG2BDB.js";import{e as oe,f as re}from"./chunk-T4MH7AFK.js";import{$a as m,$b as R,Cc as G,Dc as J,Ha as S,Hb as b,Ia as r,Ib as p,Ja as I,Jb as k,Kb as v,Mb as O,Nb as D,Ob as N,Qb as H,Sb as T,V as L,Za as s,_b as $,ac as Z,bc as y,c as W,ga as z,gb as P,hb as E,jb as M,kb as V,lb as c,mb as _,nb as w,oa as g,ob as x,pa as d,pb as f,qb as U,rb as C,tc as q,ub as h,vc as K,wb as a,wc as X,yc as Y,za as B,zb as A}from"./chunk-IH2NT4RC.js";var j=t=>[t],Ce=t=>({"text-decoration-line-through":t}),he=t=>({"ms-10":t}),Te=t=>({"bg-gradient-warning":t});function be(t,l){if(t&1){let n=C();c(0,"mat-slide-toggle",14),h("toggleChange",function(){g(n);let e=a();return e.toggleStatus=!e.toggleStatus,d(e.onToggle())}),c(1,"small",15),p(2),_()()}if(t&2){let n=a();r(2),v(" ",n.productToggleTitle?n.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function ve(t,l){if(t&1){let n=C();c(0,"th")(1,"input",16),N("ngModelChange",function(e){g(n);let o=a();return D(o.checkboxState,e)||(o.checkboxState=e),d(e)}),h("ngModelChange",function(){g(n);let e=a();return d(e.onCheckboxStateChange())}),_()()}if(t&2){let n=a();r(),O("ngModel",n.checkboxState)}}function Se(t,l){t&1&&(c(0,"th",11),p(1,"POS"),_())}function we(t,l){if(t&1&&(x(0),c(1,"th",17)(2,"div",18)(3,"div",19),w(4,"img",20),c(5,"div",21),p(6),$(7,"stringLimit"),_()()()(),f()),t&2){let n=l.$implicit;r(3),m("matTooltip",(n.Name==null?null:n.Name.length)>20?n.Name:""),r(),m("src",n==null?null:n.Img,S),r(2),v(" ",Z(7,3,n.Name,20)," ")}}function ye(t,l){t&1&&U(0)}function Fe(t,l){if(t&1&&(x(0),s(1,ye,1,0,"ng-container",34),f()),t&2){a();let n=b(7);r(),m("ngTemplateOutlet",n)}}function Ie(t,l){t&1&&U(0)}function Pe(t,l){if(t&1&&s(0,Ie,1,0,"ng-container",34),t&2){a(2);let n=b(7);m("ngTemplateOutlet",n)}}function Ee(t,l){if(t&1&&s(0,Pe,1,1,"ng-template",12),t&2){let n=a(4);m("ngxPermissionsOnly",T(1,j,n.rolePriceEdit))}}function Me(t,l){if(t&1){let n=C();x(0),c(1,"input",35),N("ngModelChange",function(e){g(n);let o=a(4).$implicit;return D(o.selected,e)||(o.selected=e),d(e)}),h("ngModelChange",function(){g(n);let e=a(4).$implicit,o=a();return d(o.onCheckboxStateProduct(e.ID))}),_(),f()}if(t&2){let n=a(4).$implicit;r(),O("ngModel",n.selected)}}function Ve(t,l){if(t&1&&s(0,Me,2,1,"ng-container",22),t&2){let n=a(3).$implicit;m("ngIf",(n==null||n.Variants==null?null:n.Variants.length)>1)}}function ke(t,l){if(t&1){let n=C();x(0),c(1,"img",36),h("click",function(e){g(n);let o=a(3).$implicit,u=a();return d(u.onZoomImage(e,o==null?null:o.ImageUrl))}),_(),f()}if(t&2){let n=a(3).$implicit;r(),A("src",n==null?null:n.ThumbnailUrl,S)}}function Oe(t,l){t&1&&w(0,"img",37)}function De(t,l){if(t&1&&(x(0),c(1,"td",29)(2,"div",30),s(3,Fe,2,1,"ng-container",31)(4,Ee,1,3,"ng-template",null,0,y)(6,Ve,1,1,"ng-template",null,1,y),c(8,"div",26),s(9,ke,2,1,"ng-container",31)(10,Oe,1,0,"ng-template",null,2,y),_()()(),c(12,"td",32)(13,"div"),p(14),_(),c(15,"small",33),p(16),_()(),f()),t&2){let n=b(5),i=b(11),e=a(2).$implicit,o=a();r(),m("rowSpan",e==null?null:e.Variants.length),r(2),m("ngIf",o.table=="inventory")("ngIfElse",n),r(5),m("ngClass",T(9,he,(e==null||e.Variants==null?null:e.Variants.length)<=1)),r(),m("ngIf",e==null?null:e.ThumbnailUrl)("ngIfElse",i),r(3),m("rowSpan",e==null?null:e.Variants.length),r(2),k(e==null?null:e.Name),r(2),v("(",e==null?null:e.Category,")")}}function Ne(t,l){if(t&1){let n=C();c(0,"input",16),N("ngModelChange",function(e){g(n);let o=a(2).$implicit;return D(o.selected,e)||(o.selected=e),d(e)}),_()}if(t&2){let n=a(2).$implicit;O("ngModel",n.selected)}}function $e(t,l){if(t&1&&(c(0,"td",38),s(1,Ne,1,1,"input",39),_()),t&2){let n=a().$implicit,i=a(2);r(),m("ngIf",i.printPOS(n)>=0||i.table=="price")}}function Be(t,l){if(t&1&&(c(0,"td",24),p(1),$(2,"number"),_()),t&2){let n=a().$implicit,i=a(2);r(),k(R(2,1,i.printPOS(n)))}}function Ue(t,l){if(t&1){let n=C();x(0),c(1,"td",40),h("click",function(){g(n);let e=a().$implicit,o=a().$implicit,u=a().$implicit,F=a();return d(F.openTableDialog(u.Name,o,e.ID,u.ChannelItemID))}),c(2,"div",30)(3,"div",41),p(4),$(5,"number"),_(),c(6,"a",42),h("click",function(e){return g(n),d(e==null?null:e.stopPropagation())}),w(7,"i",28),_()()(),f()}if(t&2){let n=l.$implicit,i=a(2).$implicit,e=a(2);r(),m("ngClass",T(5,Te,e.printPOS(i)!=e.printItem(n))),r(3),v(" ",R(5,3,e.printItem(n))," "),r(2),m("href",n.Url,S)}}function Re(t,l){t&1&&(c(0,"td",43)(1,"div",30)(2,"span"),p(3,"X"),_()()())}function je(t,l){if(t&1&&s(0,Ue,8,7,"ng-container",31)(1,Re,4,0,"ng-template",null,3,y),t&2){let n=l.$implicit,i=b(2),e=a().$implicit,o=a(2);m("ngIf",o.getItemFromChannel(e,n.ID))("ngIfElse",i)}}function We(t,l){if(t&1&&(c(0,"tr"),s(1,De,17,11,"ng-container",22),c(2,"td",23),p(3),_(),c(4,"td",24)(5,"div",25)(6,"div",26),p(7),_(),c(8,"div",21)(9,"a",27),w(10,"i",28),_()()()(),s(11,$e,2,1,"ng-template",12)(12,Be,3,3,"td",24),M(13,je,3,2,null,null,E),_()),t&2){let n=l.$implicit,i=l.$index,e=a(2);r(),m("ngIf",i==0),r(2),k(n==null?null:n.Model),r(2),m("matTooltip",n.Discontinued?e.discontinuedVariantMsg:""),r(),m("ngClass",T(8,Ce,n.Discontinued)),r(),v(" ",n.Code," "),r(2),m("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),S),r(2),m("ngxPermissionsOnly",T(10,j,e.rolePriceEdit)),r(),P(e.filter!=null&&e.filter.HiddenIPOSInventory?-1:12),r(),V(e.channel)}}function Le(t,l){if(t&1&&(c(0,"tbody"),M(1,We,15,12,"tr",null,E),_()),t&2){let n=l.$implicit;r(),V(n.Variants)}}var xt=(()=>{let l=class l{constructor(i,e,o){this.dialog=i,this.biggerPictureService=e,this.authService=o,this.showProductToggle=!1,this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=ie.price,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new B,this.destroy$=new W,this.toggle=new B,this.hostName=this.authService.getDomain()}ngOnInit(){this.table=="inventory"?this.stockHeader="Stock":this.table=="price"&&(this.stockHeader="Price")}onCheckboxStateProduct(i){let e=this.data.filter(o=>o.ID==i);e.length>0&&(e=e.map(o=>(o.Variants=o.Variants.map(u=>(u.selected=o.selected,u)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(e=>(e.selected=this.checkboxState,e)),i))}getItemFromChannel(i,e){return i.Channel.find(o=>o.ChannelID==e)}printItem(i){if(this.table=="inventory")return i.Inventory;if(this.table=="price")return i.Price}openTableDialog(i,e,o,u){this.dialog.open(fe,{data:{Name:i,Variant:e,ChannelID:o,Table:this.table,ChannelItemID:u}}).afterClosed().pipe(L(this.destroy$)).subscribe(F=>{F!=null&&this.onSubmit.emit(F)})}printPOS(i){return this.table=="inventory"?i.Inventory?i.Inventory:0:this.table=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,e){this.biggerPictureService.openBiggerPicture(i,e)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(e){return new(e||l)(I(_e),I(se),I(le))},l.\u0275cmp=z({type:l,selectors:[["app-table"]],inputs:{filter:"filter",data:"data",table:"table",channel:"channel",showProductToggle:"showProductToggle",productToggleTitle:"productToggleTitle"},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},standalone:!0,features:[H],decls:18,vars:6,consts:[["PRICE",""],["checkbox_update",""],["elsePic",""],["elseCol",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],[3,"ngxPermissionsOnly"],[4,"ngFor","ngForOf"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],["type","checkbox",3,"ngModelChange","ngModel"],["scope","col"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[4,"ngIf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"align-middle"],["type","checkbox",3,"ngModel","ngModelChange",4,"ngIf"],[1,"p-0","pointer","cell-hover",3,"click","ngClass"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"],[1,"table-white","text-center",2,"color","red"]],template:function(e,o){e&1&&(c(0,"div",4)(1,"table",5)(2,"thead",6)(3,"tr")(4,"th",7)(5,"div",8)(6,"div"),p(7,"Product"),_(),s(8,be,3,1,"mat-slide-toggle",9),_()(),c(9,"th",10),p(10,"Variant"),_(),c(11,"th",11),p(12,"SKU"),_(),s(13,ve,2,1,"ng-template",12)(14,Se,2,0,"th",11)(15,we,8,6,"ng-container",13),_()(),M(16,Le,3,0,"tbody",null,E),_()()),e&2&&(r(8),P(o.showProductToggle?8:-1),r(5),m("ngxPermissionsOnly",T(4,j,o.rolePriceEdit)),r(),P(o.filter!=null&&o.filter.HiddenIPOSInventory?-1:14),r(),m("ngForOf",o.channel),r(),V(o.data))},dependencies:[J,q,K,X,Y,G,ne,Q,ee,te,ue,de,me,pe,ge,re,oe,ce,ae,xe],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=l;return t})();export{xt as a};
@@ -1,4 +1,4 @@
1
- import{b as g}from"./chunk-AAFEUTPF.js";import{$ as o,ca as l}from"./chunk-HSFUKC7R.js";var d=(()=>{let s=class s{constructor(e){this.toastrService=e}showToastrUpdateInventory(e,t,r){let a=t.length>0,i=r.length>0;if(!i&&a&&this.toastrService.success(`${this.generateSuccessMessage(t.length)}`,"Success",{enableHtml:!0}),i&&a){let c=`<li>${this.generateSuccessMessage(t.length)}</li>`,h=this.generateErrorMessage(e,r),u=`<ol>${c} ${h}</ol>`;this.toastrService.warning(u,"Warning",{enableHtml:!0})}if(i&&!a){let c=`<ol>${this.generateErrorMessage(e,r)}</ol>`;this.toastrService.error(c,"Error",{enableHtml:!0})}}generateSuccessMessage(e){return`
1
+ import{b as g}from"./chunk-SUL6ZUGT.js";import{$ as o,ca as l}from"./chunk-IH2NT4RC.js";var d=(()=>{let s=class s{constructor(e){this.toastrService=e}showToastrUpdateInventory(e,t,r){let a=t.length>0,i=r.length>0;if(!i&&a&&this.toastrService.success(`${this.generateSuccessMessage(t.length)}`,"Success",{enableHtml:!0}),i&&a){let c=`<li>${this.generateSuccessMessage(t.length)}</li>`,h=this.generateErrorMessage(e,r),u=`<ol>${c} ${h}</ol>`;this.toastrService.warning(u,"Warning",{enableHtml:!0})}if(i&&!a){let c=`<ol>${this.generateErrorMessage(e,r)}</ol>`;this.toastrService.error(c,"Error",{enableHtml:!0})}}generateSuccessMessage(e){return`
2
2
  <div>
3
3
  <span class="fw-bold">Successfully</span> updated ${e} variants in 1 channels
4
4
  </div>