@mxtommy/kip 3.10.0-beta.33 → 3.10.0-beta.35

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 (49) hide show
  1. package/package.json +1 -1
  2. package/plugin/index.js +3 -1
  3. package/public/3rdpartylicenses.txt +52 -52
  4. package/public/assets/svg/icons.svg +5 -1
  5. package/public/chunk-27I36ZYA.js +2 -0
  6. package/public/{chunk-7NTTSSTW.js → chunk-2ATGKBWP.js} +8 -8
  7. package/public/chunk-2YGPLTEW.js +6 -0
  8. package/public/chunk-4MSEQKGR.js +2 -0
  9. package/public/chunk-5UBH6OWU.js +5 -0
  10. package/public/chunk-5W42HKGA.js +1 -0
  11. package/public/chunk-ARVJVELO.js +1 -0
  12. package/public/chunk-EKP64XG5.js +2 -0
  13. package/public/chunk-FXJ4AF7G.js +1 -0
  14. package/public/chunk-HO743WL4.js +3 -0
  15. package/public/{chunk-LRX3XYXK.js → chunk-I772OX6I.js} +1 -1
  16. package/public/chunk-IUCJGG6N.js +1 -0
  17. package/public/chunk-JNQX4WPI.js +1 -0
  18. package/public/chunk-JNXVWBL2.js +1 -0
  19. package/public/chunk-LKF7CNOE.js +2 -0
  20. package/public/{chunk-GJ33QBJ6.js → chunk-MZURT7UO.js} +1 -1
  21. package/public/chunk-PB7HT3XU.js +15 -0
  22. package/public/chunk-PR5DAT3I.js +2 -0
  23. package/public/{chunk-J3WNXGAQ.js → chunk-QG3TFUUS.js} +1 -1
  24. package/public/{chunk-LEXHVK5K.js → chunk-QXMATZB6.js} +1 -1
  25. package/public/chunk-SD3MSKSI.js +9 -0
  26. package/public/chunk-SPUZNRYQ.js +5 -0
  27. package/public/chunk-TFULQA7J.js +3 -0
  28. package/public/{chunk-BJBOBGE4.js → chunk-USU5F3L5.js} +1 -1
  29. package/public/index.html +1 -1
  30. package/public/main-3DWTWTVZ.js +51 -0
  31. package/COPILOT.md +0 -362
  32. package/eslint.config.js +0 -45
  33. package/kip-plugin/README.md +0 -64
  34. package/kip-plugin/src/index.ts +0 -244
  35. package/kip-plugin/src/openApi.json +0 -141
  36. package/kip-plugin/tsconfig.plugin.json +0 -13
  37. package/public/chunk-2GSYFM2I.js +0 -1
  38. package/public/chunk-4RVFIZB6.js +0 -5
  39. package/public/chunk-5PI2OYF4.js +0 -2
  40. package/public/chunk-CKTYGHMF.js +0 -6
  41. package/public/chunk-DUXMT6W5.js +0 -11
  42. package/public/chunk-FW2LAMAA.js +0 -16
  43. package/public/chunk-JFDPDIG2.js +0 -2
  44. package/public/chunk-NDRHZ3PP.js +0 -1
  45. package/public/chunk-NL52VRFS.js +0 -1
  46. package/public/chunk-PTADMSJZ.js +0 -1
  47. package/public/chunk-VJWBCIDF.js +0 -7
  48. package/public/chunk-WKDUEVL2.js +0 -1
  49. package/public/main-O5NEQ4KC.js +0 -53
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mxtommy/kip",
3
- "version": "3.10.0-beta.33",
3
+ "version": "3.10.0-beta.35",
4
4
  "description": "An advanced and versatile marine instrumentation package to display Signal K data.",
5
5
  "license": "MIT",
6
6
  "author": {
package/plugin/index.js CHANGED
@@ -130,7 +130,7 @@ exports.default = (server) => {
130
130
  server.debug(`** PUT ${API_PATHS.INSTANCE}. Params: ${JSON.stringify(req.params)} Body: ${JSON.stringify(req.body)}`);
131
131
  try {
132
132
  const dottedPath = pathToDotNotation(req.path);
133
- server.debug(`Updating SK path ${dottedPath} with body`);
133
+ server.debug(`Updating SK path ${dottedPath}`);
134
134
  server.handleMessage(plugin.id, {
135
135
  updates: [
136
136
  {
@@ -191,6 +191,8 @@ exports.default = (server) => {
191
191
  displayName: v.displayName ?? null
192
192
  }))
193
193
  : [];
194
+ server.debug(`getAvailableDisplays returned: ${JSON.stringify(displays)}`);
195
+ server.debug(`Found ${items.length} displays: ${JSON.stringify(items)}`);
194
196
  return res.status(200).json(items);
195
197
  }
196
198
  catch (error) {
@@ -478,58 +478,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
478
478
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
479
479
  SOFTWARE.
480
480
 
481
- --------------------------------------------------------------------------------
482
- Package: @angular/router
483
- License: "MIT"
484
-
485
- The MIT License
486
-
487
- Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
488
-
489
- Permission is hereby granted, free of charge, to any person obtaining a copy
490
- of this software and associated documentation files (the "Software"), to deal
491
- in the Software without restriction, including without limitation the rights
492
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
493
- copies of the Software, and to permit persons to whom the Software is
494
- furnished to do so, subject to the following conditions:
495
-
496
- The above copyright notice and this permission notice shall be included in
497
- all copies or substantial portions of the Software.
498
-
499
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
500
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
501
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
502
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
503
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
504
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
505
- THE SOFTWARE.
506
-
507
- --------------------------------------------------------------------------------
508
- Package: compare-versions
509
- License: "MIT"
510
-
511
- The MIT License (MIT)
512
-
513
- Copyright (c) 2015-2021 Ole Michelsen
514
-
515
- Permission is hereby granted, free of charge, to any person obtaining a copy
516
- of this software and associated documentation files (the "Software"), to deal
517
- in the Software without restriction, including without limitation the rights
518
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
519
- copies of the Software, and to permit persons to whom the Software is
520
- furnished to do so, subject to the following conditions:
521
-
522
- The above copyright notice and this permission notice shall be included in all
523
- copies or substantial portions of the Software.
524
-
525
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
526
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
527
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
528
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
529
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
530
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
531
- SOFTWARE.
532
-
533
481
  --------------------------------------------------------------------------------
534
482
  Package: rxjs
535
483
  License: "Apache-2.0"
@@ -789,6 +737,32 @@ maintained libraries used by this software which have their own
789
737
  licenses; we recommend you read them, as their terms may differ from the
790
738
  terms above.
791
739
 
740
+ --------------------------------------------------------------------------------
741
+ Package: compare-versions
742
+ License: "MIT"
743
+
744
+ The MIT License (MIT)
745
+
746
+ Copyright (c) 2015-2021 Ole Michelsen
747
+
748
+ Permission is hereby granted, free of charge, to any person obtaining a copy
749
+ of this software and associated documentation files (the "Software"), to deal
750
+ in the Software without restriction, including without limitation the rights
751
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
752
+ copies of the Software, and to permit persons to whom the Software is
753
+ furnished to do so, subject to the following conditions:
754
+
755
+ The above copyright notice and this permission notice shall be included in all
756
+ copies or substantial portions of the Software.
757
+
758
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
759
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
760
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
761
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
762
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
763
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
764
+ SOFTWARE.
765
+
792
766
  --------------------------------------------------------------------------------
793
767
  Package: @angular/forms
794
768
  License: "MIT"
@@ -883,6 +857,32 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
883
857
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
884
858
  THE SOFTWARE.
885
859
 
860
+ --------------------------------------------------------------------------------
861
+ Package: @angular/router
862
+ License: "MIT"
863
+
864
+ The MIT License
865
+
866
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
867
+
868
+ Permission is hereby granted, free of charge, to any person obtaining a copy
869
+ of this software and associated documentation files (the "Software"), to deal
870
+ in the Software without restriction, including without limitation the rights
871
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
872
+ copies of the Software, and to permit persons to whom the Software is
873
+ furnished to do so, subject to the following conditions:
874
+
875
+ The above copyright notice and this permission notice shall be included in
876
+ all copies or substantial portions of the Software.
877
+
878
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
879
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
880
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
881
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
882
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
883
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
884
+ THE SOFTWARE.
885
+
886
886
  --------------------------------------------------------------------------------
887
887
  Package: core-js
888
888
  License: "MIT"
@@ -59,12 +59,16 @@
59
59
  <path fill="currentColor" d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z" />
60
60
  <path fill="var(--mat-sys-primary)" d="M7 7h4v4H7zm6 0h4v4h-4z" />
61
61
  </svg>
62
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" id="settings" height="14" width="14">
62
+ <svg id="settings" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" height="14" width="14">
63
63
  <path fill="none" d="m4.093 3.976 0.36 -0.93a0.838 0.838 0 0 1 0.78 -0.536h0.687a0.838 0.838 0 0 1 0.779 0.536l0.36 0.93 1.223 0.704 0.99 -0.151a0.838 0.838 0 0 1 0.837 0.41l0.335 0.587a0.837 0.837 0 0 1 -0.067 0.947l-0.612 0.779v1.407l0.629 0.78a0.838 0.838 0 0 1 0.067 0.946l-0.335 0.587a0.837 0.837 0 0 1 -0.838 0.41l-0.989 -0.15 -1.223 0.703 -0.36 0.93a0.838 0.838 0 0 1 -0.78 0.536h-0.703a0.838 0.838 0 0 1 -0.78 -0.536l-0.36 -0.93 -1.223 -0.704 -0.988 0.151a0.838 0.838 0 0 1 -0.838 -0.41l-0.335 -0.587a0.838 0.838 0 0 1 0.067 -0.946l0.611 -0.78V7.252l-0.628 -0.78a0.838 0.838 0 0 1 -0.067 -0.946l0.335 -0.586a0.838 0.838 0 0 1 0.838 -0.411l0.988 0.15 1.24 -0.703Zm-0.192 3.98a1.676 1.676 0 1 0 3.351 0 1.676 1.676 0 0 0 -3.351 0Z" stroke-width="1"></path>
64
64
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M5.92 2.51h-0.687a0.838 0.838 0 0 0 -0.78 0.536l-0.36 0.93 -1.24 0.704 -0.988 -0.151a0.838 0.838 0 0 0 -0.838 0.41l-0.335 0.587a0.838 0.838 0 0 0 0.067 0.947l0.628 0.779v1.407l-0.611 0.78a0.838 0.838 0 0 0 -0.067 0.946l0.335 0.587a0.837 0.837 0 0 0 0.838 0.41l0.988 -0.15 1.223 0.703 0.36 0.93a0.838 0.838 0 0 0 0.78 0.536h0.704a0.838 0.838 0 0 0 0.779 -0.536l0.36 -0.93 1.223 -0.704 0.989 0.151a0.838 0.838 0 0 0 0.838 -0.41l0.335 -0.587a0.838 0.838 0 0 0 -0.067 -0.946l-0.629 -0.78v-0.907m-5.864 0.204a1.676 1.676 0 1 0 3.351 0 1.676 1.676 0 0 0 -3.351 0Z" stroke-width="1"></path>
65
65
  <path fill="var(--mat-sys-primary)" d="M8.1 3.603c-0.306 -0.053 -0.306 -0.494 0 -0.548A2.779 2.779 0 0 0 10.34 0.912l0.018 -0.085c0.067 -0.303 0.499 -0.305 0.568 -0.002l0.023 0.098a2.793 2.793 0 0 0 2.244 2.13c0.309 0.055 0.309 0.498 0 0.551a2.793 2.793 0 0 0 -2.244 2.131l-0.023 0.099c-0.069 0.302 -0.501 0.3 -0.568 -0.003l-0.018 -0.084a2.779 2.779 0 0 0 -2.238 -2.144Z" stroke-width="1"></path>
66
66
  <path stroke="var(--mat-sys-primary)" stroke-linecap="round" stroke-linejoin="round" d="M8.1 3.603c-0.306 -0.053 -0.306 -0.494 0 -0.548A2.779 2.779 0 0 0 10.34 0.912l0.018 -0.085c0.067 -0.303 0.499 -0.305 0.568 -0.002l0.023 0.098a2.793 2.793 0 0 0 2.244 2.13c0.309 0.055 0.309 0.498 0 0.551a2.793 2.793 0 0 0 -2.244 2.131l-0.023 0.099c-0.069 0.302 -0.501 0.3 -0.568 -0.003l-0.018 -0.084a2.779 2.779 0 0 0 -2.238 -2.144Z" stroke-width="1"></path>
67
67
  </svg>
68
+ <svg id="remote-control" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" height="16" width="16">
69
+ <path fill="var(--mat-sys-primary)" fill-opacity="0.5" d="M14 3.5v9c0 0.132625 -0.0526875 0.2598125 -0.1464375 0.3535625S13.632625 13 13.5 13H3c0 -0.2651875 -0.10535625 -0.5195625 -0.29289375 -0.707125C2.51956875 12.105375 2.26521875 12 2 12V3.5c0 -0.13260625 0.05268125 -0.2597875 0.14644375 -0.35355625C2.2402125 3.05268125 2.36739375 3 2.5 3h11c0.132625 0 0.2598125 0.05268125 0.3535625 0.14644375C13.9473125 3.2402125 14 3.36739375 14 3.5Z" stroke-width="1"></path>
70
+ <path fill="currentColor" d="M14.5 3.5v9c0 0.2651875 -0.105375 0.5195625 -0.292875 0.707125 -0.1875625 0.1875 -0.4419375 0.292875 -0.707125 0.292875h-4.5c-0.132625 0 -0.2598125 -0.0526875 -0.3535625 -0.1464375S8.5 13.132625 8.5 13s0.0526875 -0.2598125 0.1464375 -0.3535625S8.867375 12.5 9 12.5h4.5V3.5H2.5v2.5c0 0.13260625 -0.05268125 0.2598125 -0.14644375 0.3535625C2.2597875 6.4473125 2.13260625 6.5 2 6.5s-0.2597875 -0.0526875 -0.35355625 -0.1464375C1.55268125 6.2598125 1.5 6.13260625 1.5 6V3.5c0 -0.26521875 0.10535625 -0.51956875 0.29289375 -0.70710625C1.98043125 2.60535625 2.23478125 2.5 2.5 2.5h11c0.2651875 0 0.5195625 0.10535625 0.707125 0.29289375C14.394625 2.98043125 14.5 3.23478125 14.5 3.5ZM2 11.5c-0.13260625 0 -0.2597875 0.0526875 -0.35355625 0.1464375C1.55268125 11.7401875 1.5 11.867375 1.5 12s0.05268125 0.2598125 0.14644375 0.3535625C1.7402125 12.4473125 1.86739375 12.5 2 12.5s0.2597875 0.0526875 0.35355625 0.1464375C2.44731875 12.7401875 2.5 12.867375 2.5 13s0.05268125 0.2598125 0.14644375 0.3535625C2.7402125 13.4473125 2.86739375 13.5 3 13.5s0.2597875 -0.0526875 0.35355625 -0.1464375C3.44731875 13.2598125 3.5 13.132625 3.5 13c0 -0.3978125 -0.1580375 -0.779375 -0.4393375 -1.0606875C2.77935625 11.6580625 2.397825 11.5 2 11.5Zm0 -2c-0.13260625 0 -0.2597875 0.0526875 -0.35355625 0.1464375C1.55268125 9.7401875 1.5 9.867375 1.5 10s0.05268125 0.2598125 0.14644375 0.3535625C1.7402125 10.4473125 1.86739375 10.5 2 10.5c0.66304375 0 1.298925 0.263375 1.76776875 0.73225C4.23660625 11.7010625 4.5 12.3369375 4.5 13c0 0.132625 0.05268125 0.2598125 0.14644375 0.3535625C4.7402125 13.4473125 4.86739375 13.5 5 13.5s0.2597875 -0.0526875 0.35355625 -0.1464375C5.44731875 13.2598125 5.5 13.132625 5.5 13c-0.00099375 -0.9279375 -0.3700625 -1.817625 -1.026225 -2.47375C3.8176125 9.8700625 2.92795 9.501 2 9.5Zm0 -2c-0.13260625 0 -0.2597875 0.0526875 -0.35355625 0.1464375C1.55268125 7.7401875 1.5 7.867375 1.5 8s0.05268125 0.2598125 0.14644375 0.3535625C1.7402125 8.4473125 1.86739375 8.5 2 8.5c1.19306875 0.0013125 2.33689375 0.475875 3.18051875 1.3195C6.02414375 10.663125 6.4986875 11.8069375 6.5 13c0 0.132625 0.0526875 0.2598125 0.1464375 0.3535625S6.867375 13.5 7 13.5s0.2598125 -0.0526875 0.3535625 -0.1464375S7.5 13.132625 7.5 13c-0.001625 -1.4581875 -0.581625 -2.8561875 -1.6127375 -3.88725C4.85616875 8.081625 3.45818125 7.501625 2 7.5Z" stroke-width="1"></path>
71
+ </svg>
68
72
  <svg id="help-center" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
69
73
  <circle fill="currentColor" fill-opacity="0" stroke="currentColor" stroke-width="2" cx="12" cy="13" r="9" />
70
74
  <text fill="var(--mat-sys-primary)" x="12" y="19" font-size="16" font-family="Roboto" font-style="bolder" text-anchor="middle" >?</text>
@@ -0,0 +1,2 @@
1
+ import{$a as Rt,Ed as rt,F as mt,Fd as Mt,Ga as T,Ha as X,Ia as St,Jd as At,Kd as at,La as M,Na as et,Oa as kt,Od as p,Pa as L,Qa as E,Sa as it,Wa as m,Xa as S,Y as bt,Ya as ot,a as N,b as vt,ca as b,da as I,de as W,ea as wt,fd as H,fe as x,g as C,ga as c,gd as j,he as lt,ia as Y,j as O,na as v,nd as st,oa as w,pd as nt,qc as k,tc as Pt,ua as Ct,va as V,wa as P,wc as Et,xd as xt,yd as Dt,za as Ot}from"./chunk-PB7HT3XU.js";var A=class{_attachedHost;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}},ht=class extends A{component;viewContainerRef;injector;projectableNodes;constructor(t,e,i,s){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.projectableNodes=s}},D=class extends A{templateRef;viewContainerRef;context;injector;constructor(t,e,i,s){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i,this.injector=s}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}},ct=class extends A{element;constructor(t){super(),this.element=t instanceof P?t.nativeElement:t}},z=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof ht)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof D)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof ct)return this._attachedPortal=t,this.attachDomPortal(t)}attachDomPortal=null;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)}},Z=class extends z{outletElement;_appRef;_defaultInjector;constructor(t,e,i){super(),this.outletElement=t,this._appRef=e,this._defaultInjector=i}attachComponentPortal(t){let e;if(t.viewContainerRef){let i=t.injector||t.viewContainerRef.injector,s=i.get(et,null,{optional:!0})||void 0;e=t.viewContainerRef.createComponent(t.component,{index:t.viewContainerRef.length,injector:i,ngModuleRef:s,projectableNodes:t.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,s=t.injector||this._defaultInjector||v.NULL,n=s.get(Y,i.injector);e=Pt(t.component,{elementInjector:s,environmentInjector:n,projectableNodes:t.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return i.rootNodes.forEach(s=>this.outletElement.appendChild(s)),i.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(i);s!==-1&&e.remove(s)}),this._attachedPortal=t,i}attachDomPortal=t=>{let e=t.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}},fe=(()=>{class o extends D{constructor(){let e=c(T),i=c(M);super(e,i)}static \u0275fac=function(i){return new(i||o)};static \u0275dir=E({type:o,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[it]})}return o})();var pe=(()=>{class o extends z{_moduleRef=c(et,{optional:!0});_document=c(w);_viewContainerRef=c(M);_isInitialized=!1;_attachedRef;constructor(){super()}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)}attached=new m;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,s=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}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}attachDomPortal=e=>{let i=e.element;i.parentNode;let s=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(s,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(i,s)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||o)};static \u0275dir=E({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[it]})}return o})();var Bt=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=L({type:o});static \u0275inj=I({})}return o})();var Ft=At();function Lt(o){return new K(o.get(x),o.get(w))}var K=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(t,e){this._viewportRuler=t,this._document=e}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=p(-this._previousScrollPosition.left),t.style.top=p(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,e=this._document.body,i=t.style,s=e.style,n=i.scrollBehavior||"",r=s.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),Ft&&(i.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ft&&(i.scrollBehavior=n,s.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function Ht(o,t){return new $(o.get(W),o.get(S),o.get(x),t)}var $=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(t,e,i,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=s}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(mt(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-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}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var B=class{enable(){}disable(){}attach(){}};function dt(o,t){return t.some(e=>{let i=o.bottom<e.top,s=o.top>e.bottom,n=o.right<e.left,r=o.left>e.right;return i||s||n||r})}function Nt(o,t){return t.some(e=>{let i=o.top<e.top,s=o.bottom>e.bottom,n=o.left<e.left,r=o.right>e.right;return i||s||n||r})}function tt(o,t){return new G(o.get(W),o.get(x),o.get(S),t)}var G=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=s}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:s}=this._viewportRuler.getViewportSize();dt(e,[{width:i,height:s,bottom:s,right:i,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}},jt=(()=>{class o{_injector=c(v);constructor(){}noop=()=>new B;close=e=>Ht(this._injector,e);block=()=>Lt(this._injector);reposition=e=>tt(this._injector,e);static \u0275fac=function(i){return new(i||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),F=class{positionStrategy;scrollStrategy=new B;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(t){if(t){let e=Object.keys(t);for(let i of e)t[i]!==void 0&&(this[i]=t[i])}}};var q=class{connectionPair;scrollableViewProperties;constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}};var Wt=(()=>{class o{_attachedOverlays=[];_document=c(w);_isAttached;constructor(){}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()}static \u0275fac=function(i){return new(i||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),zt=(()=>{class o extends Wt{_ngZone=c(S);_renderer=c(X).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let i=this._attachedOverlays;for(let s=i.length-1;s>-1;s--)if(i[s]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[s]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(s){return(e||(e=V(o)))(s||o)}})();static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),Zt=(()=>{class o extends Wt{_platform=c(j);_ngZone=c(S);_renderer=c(X).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,s={capture:!0},n=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[n.listen(i,"pointerdown",this._pointerDownListener,s),n.listen(i,"click",this._clickListener,s),n.listen(i,"auxclick",this._clickListener,s),n.listen(i,"contextmenu",this._clickListener,s)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=H(e)};_clickListener=e=>{let i=H(e),s=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){let a=n[r];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(It(a.overlayElement,i)||It(a.overlayElement,s))break;let h=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(e)):h.next(e)}};static \u0275fac=(()=>{let e;return function(s){return(e||(e=V(o)))(s||o)}})();static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function It(o,t){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=t;for(;i;){if(i===o)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var Kt=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275cmp=kt({type:o,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,s){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
2
+ `],encapsulation:2,changeDetection:0})}return o})(),ut=(()=>{class o{_platform=c(j);_containerElement;_document=c(w);_styleLoader=c(st);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||at()){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),at()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}_loadStyles(){this._styleLoader.load(Kt)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),ft=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(t,e,i,s){this._renderer=e,this._ngZone=i,this.element=t.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=e.listen(this.element,"click",s)}detach(){this._ngZone.runOutsideAngular(()=>{let t=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(t,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),t.style.pointerEvents="none",t.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},U=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new O;_attachments=new O;_detachments=new O;_positionStrategy;_scrollStrategy;_locationChanges=C.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new O;_outsidePointerEvents=new O;_afterNextRenderRef;constructor(t,e,i,s,n,r,a,h,d,l=!1,f,y){this._portalOutlet=t,this._host=e,this._pane=i,this._config=s,this._ngZone=n,this._keyboardDispatcher=r,this._document=a,this._location=h,this._outsideClickDispatcher=d,this._animationsDisabled=l,this._injector=f,this._renderer=y,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ot(()=>{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._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}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._completeDetachContent(),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._backdropRef?.dispose(),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._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,t&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}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=N(N({},this._config),t),this._updateElementSize()}setDirection(t){this._config=vt(N({},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=p(this._config.width),t.height=p(this._config.height),t.minWidth=p(this._config.minWidth),t.minHeight=p(this._config.minHeight),t.maxWidth=p(this._config.maxWidth),t.maxHeight=p(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new ft(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(t))}):this._backdropRef.element.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(t,e,i){let s=nt(e||[]).filter(n=>!!n);s.length&&(i?t.classList.add(...s):t.classList.remove(...s))}_detachContentWhenEmpty(){let t=!1;try{this._detachContentAfterRenderRef=ot(()=>{t=!0,this._detachContent()},{injector:this._injector})}catch(e){if(t)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!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()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let t=this._scrollStrategy;t?.disable(),t?.detach?.()}},Yt="cdk-overlay-connected-position-bounding-box",Qt=/([A-Za-z%]+)$/;function _t(o,t){return new J(t,o.get(x),o.get(w),o.get(j),o.get(ut))}var J=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new O;_resizeSubscription=C.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(t,e,i,s,n){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=n,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(Yt),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,e=this._overlayRect,i=this._viewportRect,s=this._containerRect,n=[],r;for(let a of this._preferredPositions){let h=this._getOriginPoint(t,s,a),d=this._getOverlayPoint(h,e,a),l=this._getOverlayFit(d,e,i,a);if(l.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,h);return}if(this._canFitWithFlexibleDimensions(l,d,i)){n.push({position:a,origin:h,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(h,a)});continue}(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:d,originPoint:h,position:a,overlayRect:e})}if(n.length){let a=null,h=-1;for(let d of n){let l=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);l>h&&(h=l,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&R(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Yt),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 e=this._getOriginPoint(this._originRect,this._containerRect,t);this._applyPosition(t,e)}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,e,i){let s;if(i.originX=="center")s=t.left+t.width/2;else{let r=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;s=i.originX=="start"?r:a}e.left<0&&(s-=e.left);let n;return i.originY=="center"?n=t.top+t.height/2:n=i.originY=="top"?t.top:t.bottom,e.top<0&&(n-=e.top),{x:s,y:n}}_getOverlayPoint(t,e,i){let s;i.overlayX=="center"?s=-e.width/2:i.overlayX==="start"?s=this._isRtl()?-e.width:0:s=this._isRtl()?0:-e.width;let n;return i.overlayY=="center"?n=-e.height/2:n=i.overlayY=="top"?0:-e.height,{x:t.x+s,y:t.y+n}}_getOverlayFit(t,e,i,s){let n=Tt(e),{x:r,y:a}=t,h=this._getOffset(s,"x"),d=this._getOffset(s,"y");h&&(r+=h),d&&(a+=d);let l=0-r,f=r+n.width-i.width,y=0-a,_=a+n.height-i.height,u=this._subtractOverflows(n.width,l,f),g=this._subtractOverflows(n.height,y,_),yt=u*g;return{visibleArea:yt,isCompletelyWithinViewport:n.width*n.height===yt,fitsInViewportVertically:g===n.height,fitsInViewportHorizontally:u==n.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){let s=i.bottom-e.y,n=i.right-e.x,r=Vt(this._overlayRef.getConfig().minHeight),a=Vt(this._overlayRef.getConfig().minWidth),h=t.fitsInViewportVertically||r!=null&&r<=s,d=t.fitsInViewportHorizontally||a!=null&&a<=n;return h&&d}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let s=Tt(e),n=this._viewportRect,r=Math.max(t.x+s.width-n.width,0),a=Math.max(t.y+s.height-n.height,0),h=Math.max(n.top-i.top-t.y,0),d=Math.max(n.left-i.left-t.x,0),l=0,f=0;return s.width<=n.width?l=d||-r:l=t.x<this._viewportMargin?n.left-i.left-t.x:0,s.height<=n.height?f=h||-a:f=t.y<this._viewportMargin?n.top-i.top-t.y:0,this._previousPushAmount={x:l,y:f},{x:t.x+l,y:t.y+f}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!te(this._lastScrollVisibility,i)){let s=new q(t,i);this._positionChanges.next(s)}this._lastScrollVisibility=i}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,s=t.overlayY;t.overlayX==="center"?i="center":this._isRtl()?i=t.overlayX==="start"?"right":"left":i=t.overlayX==="start"?"left":"right";for(let n=0;n<e.length;n++)e[n].style.transformOrigin=`${i} ${s}`}_calculateBoundingBoxRect(t,e){let i=this._viewportRect,s=this._isRtl(),n,r,a;if(e.overlayY==="top")r=t.y,n=i.height-r+this._viewportMargin;else if(e.overlayY==="bottom")a=i.height-t.y+this._viewportMargin*2,n=i.height-a+this._viewportMargin;else{let _=Math.min(i.bottom-t.y+i.top,t.y),u=this._lastBoundingBoxSize.height;n=_*2,r=t.y-_,n>u&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-u/2)}let h=e.overlayX==="start"&&!s||e.overlayX==="end"&&s,d=e.overlayX==="end"&&!s||e.overlayX==="start"&&s,l,f,y;if(d)y=i.width-t.x+this._viewportMargin*2,l=t.x-this._viewportMargin;else if(h)f=t.x,l=i.right-t.x;else{let _=Math.min(i.right-t.x+i.left,t.x),u=this._lastBoundingBoxSize.width;l=_*2,f=t.x-_,l>u&&!this._isInitialRender&&!this._growAfterOpen&&(f=t.x-u/2)}return{top:r,left:f,bottom:a,right:y,width:l,height:n}}_setBoundingBoxStyles(t,e){let i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;s.height=p(i.height),s.top=p(i.top),s.bottom=p(i.bottom),s.width=p(i.width),s.left=p(i.left),s.right=p(i.right),e.overlayX==="center"?s.alignItems="center":s.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?s.justifyContent="center":s.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",n&&(s.maxHeight=p(n)),r&&(s.maxWidth=p(r))}this._lastBoundingBoxSize=i,R(this._boundingBox.style,s)}_resetBoundingBoxStyles(){R(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){R(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){let i={},s=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){let l=this._viewportRuler.getViewportScrollPosition();R(i,this._getExactOverlayY(e,t,l)),R(i,this._getExactOverlayX(e,t,l))}else i.position="static";let a="",h=this._getOffset(e,"x"),d=this._getOffset(e,"y");h&&(a+=`translateX(${h}px) `),d&&(a+=`translateY(${d}px)`),i.transform=a.trim(),r.maxHeight&&(s?i.maxHeight=p(r.maxHeight):n&&(i.maxHeight="")),r.maxWidth&&(s?i.maxWidth=p(r.maxWidth):n&&(i.maxWidth="")),R(this._pane.style,i)}_getExactOverlayY(t,e,i){let s={top:"",bottom:""},n=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i)),t.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;s.bottom=`${r-(n.y+this._overlayRect.height)}px`}else s.top=p(n.y);return s}_getExactOverlayX(t,e,i){let s={left:"",right:""},n=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i));let r;if(this._isRtl()?r=t.overlayX==="end"?"left":"right":r=t.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;s.right=`${a-(n.x+this._overlayRect.width)}px`}else s.left=p(n.x);return s}_getScrollVisibility(){let t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Nt(t,i),isOriginOutsideView:dt(t,i),isOverlayClipped:Nt(e,i),isOverlayOutsideView:dt(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,s)=>i-Math.max(s,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return e==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&nt(t).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof P)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}};function R(o,t){for(let e in t)t.hasOwnProperty(e)&&(o[e]=t[e]);return o}function Vt(o){if(typeof o!="number"&&o!=null){let[t,e]=o.split(Qt);return!e||e==="px"?parseFloat(t):null}return o||null}function Tt(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}function te(o,t){return o===t?!0:o.isOriginClipped===t.isOriginClipped&&o.isOriginOutsideView===t.isOriginOutsideView&&o.isOverlayClipped===t.isOverlayClipped&&o.isOverlayOutsideView===t.isOverlayOutsideView}var Xt="cdk-global-overlay-wrapper";function $t(o){return new Q}var Q=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(t){let e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Xt),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,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:n,maxWidth:r,maxHeight:a}=i,h=(s==="100%"||s==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),l=this._xPosition,f=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",_="",u="",g="";h?g="flex-start":l==="center"?(g="center",y?u=f:_=f):y?l==="left"||l==="end"?(g="flex-end",_=f):(l==="right"||l==="start")&&(g="flex-start",u=f):l==="left"||l==="start"?(g="flex-start",_=f):(l==="right"||l==="end")&&(g="flex-end",u=f),t.position=this._cssPosition,t.marginLeft=h?"0":_,t.marginTop=d?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=h?"0":u,e.justifyContent=g,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Xt),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},Gt=(()=>{class o{_injector=c(v);constructor(){}global(){return $t()}flexibleConnectedTo(e){return _t(this._injector,e)}static \u0275fac=function(i){return new(i||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();function gt(o,t){o.get(st).load(Kt);let e=o.get(ut),i=o.get(w),s=o.get(xt),n=o.get(Rt),r=o.get(rt),a=i.createElement("div"),h=i.createElement("div");h.id=s.getId("cdk-overlay-"),h.classList.add("cdk-overlay-pane"),a.appendChild(h),e.getContainerElement().appendChild(a);let d=new Z(h,n,o),l=new F(t),f=o.get(St,null,{optional:!0})||o.get(X).createRenderer(null,null);return l.direction=l.direction||r.value,new U(d,a,h,l,o.get(S),o.get(zt),i,o.get(Et),o.get(Zt),t?.disableAnimations??o.get(Ot,null,{optional:!0})==="NoopAnimations",o.get(Y),f)}var qt=(()=>{class o{scrollStrategies=c(jt);_positionBuilder=c(Gt);_injector=c(v);constructor(){}create(e){return gt(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||o)};static \u0275prov=b({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),ee=[{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"}],Ut=new wt("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let o=c(v);return()=>tt(o)}}),pt=(()=>{class o{elementRef=c(P);constructor(){}static \u0275fac=function(i){return new(i||o)};static \u0275dir=E({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return o})(),ie=(()=>{class o{_dir=c(rt,{optional:!0});_injector=c(v);_overlayRef;_templatePortal;_backdropSubscription=C.EMPTY;_attachSubscription=C.EMPTY;_detachSubscription=C.EMPTY;_positionSubscription=C.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=c(Ut);_disposeOnNavigation=!1;_ngZone=c(S);origin;positions;positionStrategy;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)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new m;positionChange=new m;attach=new m;detach=new m;overlayKeydown=new m;overlayOutsideClick=new m;constructor(){let e=c(T),i=c(M);this._templatePortal=new D(e,i),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?.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=ee);let e=this._overlayRef=gt(this._injector,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&&!Dt(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let s=this._getOriginElement(),n=H(i);(!s||s!==n&&!s.contains(n))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new F({direction:this._dir||"ltr",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=_t(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof pt?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof pt?this.origin.elementRef.nativeElement:this.origin instanceof P?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(bt(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||o)};static \u0275dir=E({type:o,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",k],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",k],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",k],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",k],push:[2,"cdkConnectedOverlayPush","push",k],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",k]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Ct]})}return o})();function oe(o){let t=c(v);return()=>tt(t)}var se={provide:Ut,useFactory:oe},ne=(()=>{class o{static \u0275fac=function(i){return new(i||o)};static \u0275mod=L({type:o});static \u0275inj=I({providers:[qt,se],imports:[Mt,Bt,lt,lt]})}return o})();export{ht as a,D as b,z as c,Z as d,fe as e,pe as f,Bt as g,Lt as h,tt as i,F as j,ut as k,U as l,_t as m,$t as n,gt as o,qt as p,pt as q,ie as r,ne as s};