@duplicati/ngclient 0.0.205 → 0.0.207

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 (162) hide show
  1. package/assets/dest-icons/googleworkspace.png +0 -0
  2. package/assets/sh-bold.woff2 +0 -0
  3. package/assets/sh.woff2 +0 -0
  4. package/chunk-23UYU3M3.js +1 -0
  5. package/chunk-2FPYV4EW.js +1 -0
  6. package/chunk-2K74TI2N.js +1 -0
  7. package/{chunk-HCSB3IIB.js → chunk-2T4BMRWX.js} +1 -1
  8. package/{chunk-D6IP567E.js → chunk-3MS6SVET.js} +1 -1
  9. package/{chunk-BABBRM6A.js → chunk-3QS6DB3O.js} +1 -1
  10. package/chunk-4HB376H3.js +1 -0
  11. package/{chunk-VDSX2M4H.js → chunk-4VYR5E5I.js} +1 -1
  12. package/chunk-5MKFV3IB.js +1 -0
  13. package/chunk-5T2JCBPV.js +1 -0
  14. package/{chunk-GRVTXORM.js → chunk-6COK7FLL.js} +1 -1
  15. package/chunk-7E5J43IH.js +1 -0
  16. package/{chunk-BYUBKTO5.js → chunk-7HFTVA4J.js} +1 -1
  17. package/chunk-7JHU54QM.js +1 -0
  18. package/chunk-7MPZ3MRD.js +1 -0
  19. package/chunk-7PUXNL75.js +1 -0
  20. package/chunk-A57TBTOD.js +1 -0
  21. package/chunk-AG7H2MR5.js +1 -0
  22. package/chunk-AGMFKAHM.js +1 -0
  23. package/chunk-AI6EYFMY.js +1 -0
  24. package/chunk-AZEV3A4R.js +11 -0
  25. package/chunk-C5OYK6UC.js +2 -0
  26. package/chunk-CAJQ2FEU.js +1 -0
  27. package/{chunk-MZ5COKIP.js → chunk-CTQKCCGM.js} +1 -1
  28. package/chunk-DKPWJYG3.js +1 -0
  29. package/chunk-DRRYACBV.js +1 -0
  30. package/{chunk-SZUNW4JO.js → chunk-EG3PT3XW.js} +1 -1
  31. package/{chunk-QHBOEY2O.js → chunk-FJFREVRV.js} +1 -1
  32. package/chunk-G3FMV74P.js +1 -0
  33. package/{chunk-B62TPRVG.js → chunk-GGW26MAG.js} +1 -1
  34. package/chunk-GTZRHPRV.js +1 -0
  35. package/chunk-I2T6IA4K.js +1 -0
  36. package/chunk-I6PR2AV2.js +1 -0
  37. package/chunk-I7MAEY3S.js +1 -0
  38. package/chunk-IAZGVY3O.js +1 -0
  39. package/chunk-IPGH33MU.js +1 -0
  40. package/chunk-JJY6UOEY.js +1 -0
  41. package/chunk-JRXD2X7B.js +1 -0
  42. package/chunk-JWPG4EWG.js +1 -0
  43. package/{chunk-ZU6T3TW3.js → chunk-KLAJGS5T.js} +1 -1
  44. package/{chunk-ZWLAV6HO.js → chunk-KUGAORAS.js} +1 -1
  45. package/{chunk-7TWUW4XJ.js → chunk-KUX6NGQU.js} +1 -1
  46. package/chunk-KYTPZ3WD.js +1 -0
  47. package/chunk-L22UB6DH.js +1 -0
  48. package/{chunk-PO3L6MKW.js → chunk-LU7RSOI6.js} +1 -1
  49. package/chunk-MMF252RQ.js +1 -0
  50. package/chunk-NAMMULH4.js +1 -0
  51. package/{chunk-HUZXJWCG.js → chunk-NGKFJLI2.js} +1 -1
  52. package/chunk-NGPZXZJJ.js +1 -0
  53. package/chunk-NJBOYRXU.js +1 -0
  54. package/{chunk-TL4WOQKT.js → chunk-O3GGVB2B.js} +1 -1
  55. package/{chunk-7LTHH6OG.js → chunk-OAAXQ2BE.js} +1 -1
  56. package/chunk-OL5HI5OG.js +2 -0
  57. package/{chunk-37CUOEGJ.js → chunk-OOL5FC7N.js} +1 -1
  58. package/{chunk-EE5SIDTF.js → chunk-OVLGKJ3Z.js} +1 -1
  59. package/{chunk-NK5WD6WE.js → chunk-OWBBT5WF.js} +1 -1
  60. package/chunk-P7TJCJ64.js +3 -0
  61. package/{chunk-R5YJUVWW.js → chunk-PGISF7LM.js} +1 -1
  62. package/chunk-PVWYJV5Y.js +1 -0
  63. package/chunk-QY4Y5NJB.js +4 -0
  64. package/{chunk-5LBG6MOL.js → chunk-QY5UGQ3R.js} +1 -1
  65. package/chunk-R45TV6JI.js +1 -0
  66. package/{chunk-I3IIG2AK.js → chunk-R4E5IO3A.js} +1 -1
  67. package/chunk-RFCIV3AX.js +1 -0
  68. package/chunk-RJM43XMN.js +1 -0
  69. package/chunk-RNE4Z2E4.js +1 -0
  70. package/{chunk-6LAXPU22.js → chunk-RWDQ3L3C.js} +1 -1
  71. package/chunk-SFW3N5OL.js +1 -0
  72. package/chunk-SIMG6PGZ.js +2 -0
  73. package/chunk-SMUUHPDS.js +1 -0
  74. package/chunk-STB3WOIA.js +1 -0
  75. package/chunk-T2KOS3XX.js +1 -0
  76. package/{chunk-AIH3GSIT.js → chunk-TBQPNXMN.js} +1 -1
  77. package/{chunk-NGNWWP6M.js → chunk-UOZTEZ7B.js} +1 -1
  78. package/{chunk-VFBRHP2H.js → chunk-V63YAEPZ.js} +1 -1
  79. package/{chunk-KDSMLI73.js → chunk-VKNFRCHQ.js} +1 -1
  80. package/{chunk-7AVOHYTE.js → chunk-VLMNSWR3.js} +1 -1
  81. package/{chunk-T4IKTBRQ.js → chunk-VNF7NNO5.js} +1 -1
  82. package/{chunk-AODNZLCK.js → chunk-VPUFUCR3.js} +1 -1
  83. package/chunk-VUKQJ766.js +1 -0
  84. package/{chunk-MDXSNEQZ.js → chunk-WLAJ3YIP.js} +1 -1
  85. package/{chunk-G2FJM62F.js → chunk-XHDAWK7I.js} +1 -1
  86. package/chunk-XTFBRBQX.js +1 -0
  87. package/chunk-XZHXN75E.js +1 -0
  88. package/chunk-Y46QCSB5.js +1 -0
  89. package/chunk-Z2BNW4KI.js +1 -0
  90. package/chunk-ZFREX3ZV.js +1 -0
  91. package/chunk-ZPIR5QIQ.js +2 -0
  92. package/index.html +2 -2
  93. package/locale/messages.da.json +9 -23
  94. package/locale/messages.de.json +114 -60
  95. package/locale/messages.de_CH.json +80 -37
  96. package/locale/messages.en.json +73 -39
  97. package/locale/messages.en_GB.json +73 -39
  98. package/locale/messages.es.json +43 -10
  99. package/locale/messages.fr.json +611 -17
  100. package/locale/messages.it.json +104 -63
  101. package/locale/messages.json +73 -39
  102. package/locale/messages.pl.json +376 -12
  103. package/main-DIGDM6JP.js +1 -0
  104. package/package.json +1 -1
  105. package/ship-ui-assets/mcp/components.json +4388 -0
  106. package/styles-377DNUNK.css +1 -0
  107. package/chunk-26MRZAFB.js +0 -1
  108. package/chunk-26Z7TPJB.js +0 -4
  109. package/chunk-3K3BYB36.js +0 -1
  110. package/chunk-3QV6WLWV.js +0 -1
  111. package/chunk-4GXIF5HF.js +0 -1
  112. package/chunk-4RYK5OOO.js +0 -1
  113. package/chunk-5MHYH7GK.js +0 -2
  114. package/chunk-5QWAH3QX.js +0 -1
  115. package/chunk-5VE6P5U5.js +0 -1
  116. package/chunk-7DCQVM6E.js +0 -1
  117. package/chunk-AT64P6E5.js +0 -2
  118. package/chunk-BFTGDQ4K.js +0 -1
  119. package/chunk-BT2VIZXE.js +0 -1
  120. package/chunk-C25WT56X.js +0 -1
  121. package/chunk-C7N24TZM.js +0 -1
  122. package/chunk-CFNARBNK.js +0 -1
  123. package/chunk-COPBOHWE.js +0 -1
  124. package/chunk-DESKT7LH.js +0 -1
  125. package/chunk-EE27B3OV.js +0 -1
  126. package/chunk-F3JL4GJQ.js +0 -1
  127. package/chunk-G4IFZKMI.js +0 -1
  128. package/chunk-GJKZESBX.js +0 -1
  129. package/chunk-H4LQO7G2.js +0 -1
  130. package/chunk-HOGZ74SB.js +0 -1
  131. package/chunk-HSHF5HR7.js +0 -1
  132. package/chunk-I27PVH6D.js +0 -1
  133. package/chunk-I2RQR4CB.js +0 -1
  134. package/chunk-IGYSPFE7.js +0 -1
  135. package/chunk-JN4WCRAH.js +0 -1
  136. package/chunk-K34VOGDF.js +0 -1
  137. package/chunk-KV5UORE3.js +0 -1
  138. package/chunk-LT3AVRVP.js +0 -1
  139. package/chunk-LXSHDO5C.js +0 -11
  140. package/chunk-M7Y3VPRV.js +0 -1
  141. package/chunk-MIMGEZMT.js +0 -1
  142. package/chunk-MLNK7NFW.js +0 -2
  143. package/chunk-MMEFBZO4.js +0 -1
  144. package/chunk-NNNKIEPR.js +0 -1
  145. package/chunk-OIYIWMS7.js +0 -1
  146. package/chunk-OPLWAKSM.js +0 -3
  147. package/chunk-Q2UQ5J3C.js +0 -1
  148. package/chunk-Q74O3CWJ.js +0 -1
  149. package/chunk-S2RZQVCD.js +0 -1
  150. package/chunk-T4BXBCQI.js +0 -1
  151. package/chunk-U2E3ZQUP.js +0 -1
  152. package/chunk-UK7MV4OF.js +0 -1
  153. package/chunk-UNLX3IVU.js +0 -1
  154. package/chunk-UNMDSCAN.js +0 -1
  155. package/chunk-W3YBKYPJ.js +0 -1
  156. package/chunk-XIYAYCFU.js +0 -1
  157. package/chunk-XLMLR5EV.js +0 -1
  158. package/chunk-YHMXLWRX.js +0 -1
  159. package/chunk-YLQF5ATT.js +0 -1
  160. package/chunk-ZHGDQABC.js +0 -2
  161. package/main-HMCIC27B.js +0 -1
  162. package/styles-H32RJLOU.css +0 -1
package/chunk-EE27B3OV.js DELETED
@@ -1 +0,0 @@
1
- import{a as Ie}from"./chunk-Q74O3CWJ.js";import{b as De}from"./chunk-BFTGDQ4K.js";import{a as fe}from"./chunk-QHBOEY2O.js";import{a as Ne}from"./chunk-B62TPRVG.js";import{a as J}from"./chunk-SZUNW4JO.js";import{a as Re}from"./chunk-TL4WOQKT.js";import{a as Ae}from"./chunk-D6IP567E.js";import{b as Oe}from"./chunk-ZU6T3TW3.js";import{a as me}from"./chunk-HUZXJWCG.js";import{c as re}from"./chunk-7TWUW4XJ.js";import{B as k,H as pe,L as Ce,O as ge,P as Ee,Y as G,c as Te,e as ce,i as ue,k as Se,s as de,u as $,z as Fe}from"./chunk-UNMDSCAN.js";import{c as U}from"./chunk-CFNARBNK.js";import{e as le}from"./chunk-I27PVH6D.js";import{fa as _e}from"./chunk-7AVOHYTE.js";import{$ as N,Ab as l,Bb as c,Cc as H,Dc as oe,E as Z,Ec as se,Ib as R,Mc as I,Pa as r,Pb as u,Qb as S,Qc as ae,Rb as O,Sb as Q,Tb as ee,Ub as M,Vb as d,W as F,Xb as p,aa as D,cb as f,fc as te,gc as L,jc as w,la as C,mc as ne,na as q,oc as h,pc as v,qc as y,sb as g,tb as E,wc as ie,xc as V,yb as m,zb as _}from"./chunk-26Z7TPJB.js";var he=()=>["/connect/logon"];function Le(o,t){o&1&&(u(0,0,1),c(1,"div",9),S())}function $e(o,t){o&1&&(u(0,0,2),c(1,"div",10),S())}function ke(o,t){if(o&1){let i=R();_(0,"div",8),d("click",function(){N(i);let n=p();return D(n.resetAndRetry())}),u(1,0),g(2,Le,2,0)(3,$e,2,0),S(),l()}if(o&2){let i=p();r(2),E(i.resetting()?2:3)}}function Ge(o,t){o&1&&(_(0,"div",6),u(1,1),c(2,"div",11),S(),l()),o&2&&m("routerLink",V(1,he))}function Ue(o,t){o&1&&(_(0,"div",6),u(1,2),c(2,"div",10),S(),l()),o&2&&m("routerLink",V(1,he))}function xe(o,t){if(o&1){let i=R();_(0,"div",7),u(1,3),_(2,"sh-icon",12),d("click",function(){N(i);let n=p();return D(n.cancel())}),l(),_(3,"div",13),d("click",function(){N(i);let n=p();return D(n.claim())}),l(),c(4,"div",14),S(),l()}}function we(o,t){if(o&1){let i=R();_(0,"div",8),d("click",function(){N(i);let n=p();return D(n.openConsole())}),u(1,4),c(2,"div",15),S(),l()}}var B=class o{#e=F(Re);state=this.#e.state;resetting=C(!1);stateEffect=q(()=>{let t=this.#e.state(),i=this.resetting();t==="registered"&&i&&(this.resetting.set(!1),this.#e.beginRemoteRegistration())});ngOnInit(){this.#e.refreshRemoteControlStatus()}claim(){let t=this.#e.claimUrl();t&&window.open(t,"_blank")}cancel(){this.#e.cancelRemoteRegistration()}resetAndRetry(){this.resetting.set(!0),this.#e.cancelRemoteRegistration()}openConsole(){this.#e.openConsole()}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=f({type:o,selectors:[["app-remote-connectivity-status"]],decls:5,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Resetting ${"\uFFFD#1:1\uFFFD"}:START_TAG_DIV:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE: Click to connect ${"\uFFFD#1:2\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=M(t);let i;i=$localize` Connecting ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let e;e=$localize` Click to register ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let n;n=$localize`Cancel registration`;let s;s=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD#3\uFFFD"}:START_TAG_DIV:Click to claim${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:`,s=M(s);let T;return T=$localize` Connected ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`,[t,i,e,s,T,[1,"connectivity-status"],[1,"connectivity-status",3,"routerLink"],[1,"connectivity-status","claim"],[1,"connectivity-status",3,"click"],[1,"status","blinking"],[1,"status"],[1,"status","warning","blinking"],["shTooltip",n,3,"click"],[1,"claim",3,"click"],[1,"status","success","blinking"],[1,"status","success"]]},template:function(i,e){if(i&1&&g(0,ke,4,1,"div",5)(1,Ge,3,2,"div",6)(2,Ue,3,2,"div",6)(3,xe,5,0,"div",7)(4,we,3,0,"div",5),i&2){let n=e.state()==="unknown"||e.state()==="inactive"||e.state()==="registeringfaulted",s=e.state()==="registeringfaulted",T=e.state()==="registering",a=e.state()==="registered",A=e.state()==="connected"||e.state()==="disabled"||e.state()==="connecting";E(s?0:T?1:n?2:a?3:A?4:-1)}},dependencies:[le,$,G],styles:["[_nghost-%COMP%]{display:flex;align-items:center;padding:0 .75rem}.connectivity-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer}.connectivity-status[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%]{display:flex;gap:.5rem;cursor:pointer}.connectivity-status.claim[_ngcontent-%COMP%]:hover{color:inherit}.connectivity-status.claim[_ngcontent-%COMP%] .claim[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]:hover{color:var(--error-8)}.status[_ngcontent-%COMP%]{width:.625rem;height:.625rem;border-radius:50%;background-color:var(--base-4)}.status.success[_ngcontent-%COMP%]{background-color:var(--success-8)}.status.warning[_ngcontent-%COMP%]{background-color:var(--warn-8)}.status.blinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking 1s infinite}@keyframes _ngcontent-%COMP%_blinking{0%{opacity:.2}50%{opacity:1}to{opacity:.2}}"],changeDetection:0})};var ve={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ve=["mbps","gbps"],ye=8,Y=1024,x=Y*1024,K=x*1024,W=K*1024,Be=W*1024,He={B:1,KB:Y,MB:x,GB:K,TB:W,PB:Be},Je=1e3,z=Je*1e3,X=z*1e3,Xe=[{threshold:Be,unitPrefix:"PByte"},{threshold:W,unitPrefix:"TByte"},{threshold:K,unitPrefix:"GByte"},{threshold:x,unitPrefix:"MByte"},{threshold:Y,unitPrefix:"KByte"},{threshold:1,unitPrefix:"Byte"}],b=class o{#e=F(U);closed=ae();isSubmitting=C(!1);sizeOptions=C([...Ve]);maxUpload=C(0);maxDownload=C(0);maxUploadUnit=C("mbps");maxDownloadUnit=C("mbps");ngOnInit(){this.init()}convertToBitsPerSecondUnits(t,i){let n=t*(He[i.toUpperCase()]||x)*ye;return n===0?{value:0,unit:"mbps"}:n>=X?{value:parseFloat((n/X).toFixed(2)),unit:"gbps"}:{value:parseFloat((n/z).toFixed(2)),unit:"mbps"}}convertFromBitsPerSecondUnits(t,i){let e=0;switch(i){case"gbps":e=t*X;break;case"mbps":e=t*z;break}let n=e/ye;if(n===0)return{valueForApi:0,unitPrefixForApi:"Byte"};for(let{threshold:s,unitPrefix:T}of Xe)if(n>=s)return{valueForApi:Math.round(n/s),unitPrefixForApi:T};return{valueForApi:Math.round(n),unitPrefixForApi:"Byte"}}init(){this.#e.getApiV1Serversettings().subscribe({next:t=>{let i=t?.["max-upload-speed"],e=t?.["max-download-speed"];if(i&&i!==""){let n=i.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(n){let s=parseFloat(n[1]),T=n[2],a=this.convertToBitsPerSecondUnits(s,T);this.maxUpload.set(a.value),this.maxUploadUnit.set(a.unit)}else console.warn("Unexpected max-upload-speed format from API:",i),this.resetUpload()}else this.resetUpload();if(e&&e!==""){let n=e.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(n){let s=parseFloat(n[1]),T=n[2],a=this.convertToBitsPerSecondUnits(s,T);this.maxDownload.set(a.value),this.maxDownloadUnit.set(a.unit)}else console.warn("Unexpected max-download-speed format from API:",e),this.resetDownload()}else this.resetDownload()},error:t=>{console.error("Failed to get server settings:",t),this.resetDownload(),this.resetUpload()}})}resetDownload(){this.maxDownload.set(0),this.maxDownloadUnit.set("mbps")}resetUpload(){this.maxUpload.set(0),this.maxUploadUnit.set("mbps")}blockDecimalKeys(t){if([".",","].includes(t.key))return t.preventDefault()}cleanupInputAfterPasting(t){t.preventDefault();let i=t.clipboardData?.getData("text/plain");if(!i)return;let e=i.replaceAll(/[\.,]/g,"");t.target.value=e}submit(){this.isSubmitting.set(!0);let t="",i="",e=this.maxUpload()??0,n=this.maxUploadUnit(),s=this.maxDownload()??0,T=this.maxDownloadUnit();if(e>0){let{valueForApi:a,unitPrefixForApi:A}=this.convertFromBitsPerSecondUnits(e,n),P=ve[A];P?t=`${a}${P}`:console.error(`Invalid unit prefix for API submission (upload): ${A}. Defaulting to empty string.`)}if(s){let{valueForApi:a,unitPrefixForApi:A}=this.convertFromBitsPerSecondUnits(s,T),P=ve[A];P?i=`${a}${P}`:console.error(`Invalid unit prefix for API submission (download): ${A}. Defaulting to empty string.`)}this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":t,"max-download-speed":i}}).pipe(Z(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.closed.emit(!0)},error:a=>{console.error("Failed to submit throttle settings:",a)}})}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=f({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:10,consts:()=>{let t;t=$localize`Throttle network speed`;let i;i=$localize`We will round bits to the nearest byte value.`;let e;e=$localize`Max upload speed`;let n;n=$localize`Max download speed`;let s;s=$localize`Cancel`;let T;return T=$localize` Update settings `,[t,i,e,n,s,T,["content",""],[1,"column"],[1,"field-row"],["type","number",3,"paste","keydown","ngModelChange","ngModel"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(i,e){i&1&&(_(0,"header")(1,"h3"),O(2,0),l(),_(3,"p"),O(4,1),l()(),_(5,"div",6)(6,"div",7)(7,"div",8)(8,"label"),O(9,2),l(),_(10,"sh-form-field")(11,"input",9),d("paste",function(s){return e.cleanupInputAfterPasting(s)})("keydown",function(s){return e.blockDecimalKeys(s)}),y("ngModelChange",function(s){return v(e.maxUpload,s)||(e.maxUpload=s),s}),l()(),_(12,"sh-select",10)(13,"input",11),y("ngModelChange",function(s){return v(e.maxUploadUnit,s)||(e.maxUploadUnit=s),s}),l()()(),_(14,"div",8)(15,"label"),O(16,3),l(),_(17,"sh-form-field")(18,"input",9),d("paste",function(s){return e.cleanupInputAfterPasting(s)})("keydown",function(s){return e.blockDecimalKeys(s)}),y("ngModelChange",function(s){return v(e.maxDownload,s)||(e.maxDownload=s),s}),l()(),_(19,"sh-select",10)(20,"input",11),y("ngModelChange",function(s){return v(e.maxDownloadUnit,s)||(e.maxDownloadUnit=s),s}),l()()()()(),_(21,"footer",12)(22,"button",13),d("click",function(){return e.closed.emit(!1)}),O(23,4),l(),_(24,"button",14),d("click",function(){return e.submit()}),O(25,5),l()()),i&2&&(r(11),h("ngModel",e.maxUpload),r(),m("isClearable",!1)("options",e.sizeOptions()),r(),h("ngModel",e.maxUploadUnit),r(5),h("ngModel",e.maxDownload),r(),m("isClearable",!1)("options",e.sizeOptions()),r(),h("ngModel",e.maxDownloadUnit),r(4),L("loader",e.isSubmitting()))},dependencies:[de,Te,Se,ce,ue,pe,Ee,k],styles:['[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;gap:.5rem;margin-bottom:1rem}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-areas:"label label" "input select";grid-template-columns:1fr auto;align-items:center;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}.field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:select}'],changeDetection:0})};function ze(o,t){if(o&1&&(_(0,"div",12),w(1),l(),c(2,"sh-progress-bar",13)),o&2){let i=p();m("shTooltip",i.tooltipText()),r(),ne("",i.statusData().actionText," - ",i.statusData().statusText),r(),m("value",i.statusData().progress*100)}}function Ye(o,t){if(o&1&&(_(0,"div",8),u(1,1),c(2,"sh-icon"),H(3,"relativeTime"),H(4,"date"),S(),l()),o&2){let i,e=p();r(4),Q((i=e.nextBackup().backup)==null||i.Backup==null?null:i.Backup.Name)(oe(3,3,e.nextBackup().time))(se(4,5,e.nextBackup().time,"shortTime")),ee(1)}}function Ke(o,t){o&1&&(_(0,"div",8),O(1,2),l())}function We(o,t){o&1&&(_(0,"div",9),u(1,3),c(2,"sh-spinner"),S(),l()),o&2&&(r(2),te("--spinner-size","12px")("--spinner-thickness","2px"))}function je(o,t){o&1&&c(0,"app-remote-connectivity-status")}function Ze(o,t){if(o&1){let i=R();_(0,"button",11),d("click",function(){N(i);let n=p(2);return D(n.abort())}),u(1,4),c(2,"sh-icon"),S(),l()}}function qe(o,t){if(o&1){let i=R();_(0,"button",11),d("click",function(){N(i);let n=p(2);return D(n.stop())}),u(1,5),c(2,"sh-icon"),S(),l()}}function Qe(o,t){if(o&1&&g(0,Ze,3,0,"button",14)(1,qe,3,0,"button",14),o&2){let i=p();E(i.isStopping()?0:1)}}function et(o,t){o&1&&(u(0,0,1),c(1,"sh-icon"),S())}function tt(o,t){o&1&&(u(0,0,2),c(1,"sh-icon"),S())}var be=new Date,j=class o{#e=F(U);#t=F(De);#n=F(Fe);#a=F(Ne);#i=F(re);#_=F(me);#o=F(Oe);#l=F(Ae);#r=F(J);minsAgo=be.setMinutes(be.getMinutes()-1);statusData=this.#t.statusData;serverState=this.#t.serverState;clientIsRunning=this.#t.clientIsRunning;isResuming=this.#t.isResuming;runningTask=I(()=>this.#o.serverState()?.ActiveTask?.Item1);isStopping=I(()=>this.runningTask()==this.#s());#s=C(-1);pgState=I(()=>this.#o.serverState());isUsingRelay=this.#i.relayIsEnabled;hideConsoleConnectionStatus=this.#l.isConsoleConnectionStatusHidden;tooltipText=I(()=>{let t=this.statusData();return t?.CurrentFilename?`${t.CurrentFilename} (${this.#r.transform(t.CurrentFilesize,!1,!0)})`:""});nextBackup=I(()=>{let t=this.#a.backups();return{backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}});openThrottleSettingsDialog(){this.#n.open(b,{maxWidth:"550px",width:"100%"})}openPauseDialog(){this.#n.open(Ie,{maxWidth:"550px",width:"100%"})}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#t.pauseResume().subscribe()}stop(){let t=this.runningTask();t&&(this.#s.set(t),this.#e.postApiV1TaskByTaskidStop({taskid:t}).subscribe())}abort(){let t=this.runningTask();t&&this.#e.postApiV1TaskByTaskidAbort({taskid:t}).subscribe()}ngAfterViewInit(){let t=this.#i.relayIsEnabled()||!this.#_.hasWebSocket()?"longpoll":"websocket";this.#t.setConnectionMethod(t)}static \u0275fac=function(i){return new(i||o)};static \u0275cmp=f({type:o,selectors:[["app-status-bar"]],features:[ie([J])],decls:16,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Pause ${"\uFFFD/*11:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Resume ${"\uFFFD/*12:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=M(t);let i;i=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: - ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: at ${"\uFFFD2\uFFFD"}:INTERPOLATION_2: `;let e;e=$localize`No scheduled tasks`;let n;n=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_SPINNER:`;let s;s=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let T;return T=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `,[t,i,e,n,s,T,[1,"current-backup"],[1,"current-backup-progress"],[1,"label"],[1,"label","label-loading"],[1,"current-backup-actions"],["shButton","",3,"click"],[3,"shTooltip"],[1,"raised","primary",3,"value"],["shButton",""]]},template:function(i,e){if(i&1&&(_(0,"div",6)(1,"div",7),g(2,ze,3,4)(3,Ye,5,8,"div",8)(4,Ke,2,0,"div",8)(5,We,3,4,"div",9),l(),_(6,"div",10),g(7,je,1,0,"app-remote-connectivity-status"),g(8,Qe,2,1),_(9,"button",11),d("click",function(){return e.pauseResume()}),u(10,0),g(11,et,2,0)(12,tt,2,0),S(),l(),_(13,"button",11),d("click",function(){return e.openThrottleSettingsDialog()}),_(14,"sh-icon"),w(15,"speedometer"),l()()()()),i&2){let n;r(2),E((n=e.serverState())!=null&&n.ActiveTask&&(!((n=e.statusData())==null||n.task==null)&&n.task.Status)&&((n=e.statusData())==null||n.task==null?null:n.task.Status)!=="Completed"?2:e.nextBackup().backup||e.nextBackup().time?3:(n=e.serverState())!=null&&n.ActiveTask?5:4),r(5),E(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?7:-1),r(),E(e.runningTask()?8:-1),r(),L("loader",e.isResuming()),r(2),E(e.clientIsRunning()?11:12)}},dependencies:[B,$,k,ge,Ce,G,fe,_e],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-4);position:sticky;top:0;z-index:2000;background:var(--base-1)}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.current-backup-progress[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;min-width:18.75rem;flex:1 0}.current-backup-progress[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{max-width:18.75rem;width:100%}.current-backup-progress[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.current-backup-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"],changeDetection:0})};export{j as a};
package/chunk-F3JL4GJQ.js DELETED
@@ -1 +0,0 @@
1
- import{n as a,o as b}from"./chunk-LXSHDO5C.js";import"./chunk-K34VOGDF.js";import"./chunk-AT64P6E5.js";import"./chunk-6LAXPU22.js";import"./chunk-6Q6SSTBK.js";import"./chunk-TL4WOQKT.js";import"./chunk-7LTHH6OG.js";import"./chunk-HSHF5HR7.js";import"./chunk-D6IP567E.js";import"./chunk-VDSX2M4H.js";import"./chunk-ZU6T3TW3.js";import"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import"./chunk-UNMDSCAN.js";import"./chunk-CFNARBNK.js";import"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";export{a as createSourceDataForm,b as default};
package/chunk-G4IFZKMI.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-SZUNW4JO.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";export{a as BytesPipe};
package/chunk-GJKZESBX.js DELETED
@@ -1 +0,0 @@
1
- import{a as Ze}from"./chunk-MLNK7NFW.js";import{h as Ke,m as Qe}from"./chunk-LXSHDO5C.js";import{d as re}from"./chunk-K34VOGDF.js";import{a as je}from"./chunk-SZUNW4JO.js";import{a as D}from"./chunk-HSHF5HR7.js";import{b as _e}from"./chunk-VDSX2M4H.js";import{b as qe}from"./chunk-ZU6T3TW3.js";import{a as K}from"./chunk-HUZXJWCG.js";import{B as j,H as ze,L as Je,M as Xe,P as Ue,V as Ye,W as He,b as we,c as B,e as V,f as W,i as Be,j as z,l as Ve,p as J,q as X,r as U,s as We,t as Y,u as H,z as se}from"./chunk-UNMDSCAN.js";import{c as q}from"./chunk-CFNARBNK.js";import{b as M,d as L}from"./chunk-I27PVH6D.js";import{fa as ne}from"./chunk-7AVOHYTE.js";import{$ as P,Ab as a,Bb as p,C as Q,Cc as le,Dc as ke,E as R,Ec as xe,Fb as b,Gb as v,H as Pe,Ib as A,K as Ie,L as ee,Mc as O,Pa as d,Pb as m,Qb as T,R as Me,Rb as f,Sb as De,Tb as ye,Vb as N,W as c,Xb as C,aa as I,cb as w,g as Ce,gc as $e,hb as Le,jc as G,la as _,lc as be,m as Ne,mc as ve,na as x,oc as te,pc as ie,qc as oe,sb as g,tb as F,v as ae,w as he,wc as Ae,xc as Ge,yb as E,z as Re,zb as r}from"./chunk-26Z7TPJB.js";function rt(s,t){s&1&&(r(0,"p"),f(1,3),a())}function at(s,t){s&1&&(r(0,"sh-form-field")(1,"label",11),f(2,4),a(),p(3,"input",12),a())}var et=new U,ot=()=>et.group({passphrase:et.control("")}),ce=class s{#e=c(q);#t=c(y);#n=c(L);#o=c(M);encryptionForm=this.#t.encryptionForm;creatingTemporaryBackup=_(!1);settings=_([]);hasEncryptedBackup=O(()=>{let t=this.#t.destinationTestSignal();return t==="testing"||typeof t=="string"?!0:t?.containsEncryptedBackupFiles??!0});showEncryptionField=_(!1);next(){let t=this.#t.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,i=[];e?i.push({Name:"--passphrase",Value:e}):i.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(o=>{let n=o.Name?.trim();n&&n!=="--"&&(n.startsWith("--")||(n=`--${n}`),i.push({Name:n,Value:o.Value??""}))}),this.#e.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:i}},temporary:!0}).pipe(R(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:o=>{let n=o.ID;this.#n.navigate([`/restore-draft/${n}`])},error:o=>{console.error(o)}})}back(){this.#t.isFileRestore()?this.#n.navigate(["destination"],{relativeTo:this.#o.parent}):this.#t.exit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-restore-encryption"]],decls:14,vars:5,consts:()=>{let t;t=$localize`Advanced options`;let e;e=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let i;i=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let o;o=$localize`The backup does not contain encrypted files.`;let n;n=$localize`Enter backup passphrase if defined.`;let l;return l=$localize`Password`,[t,e,i,o,l,[3,"submit","formGroup"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["for","password"],["type","password","id","password","autocomplete","disabled","placeholder",n,"formControlName","passphrase"]]},template:function(e,i){e&1&&(r(0,"form",5),N("submit",function(){return i.next()}),g(1,rt,2,0,"p"),g(2,at,4,0,"sh-form-field"),r(3,"sh-toggle-card"),b(4,6),f(5,0),v(),r(6,"app-options-list",7),oe("optionsChange",function(n){return ie(i.settings,n)||(i.settings=n),n}),a()(),r(7,"div",8)(8,"button",9),N("click",function(){return i.back()}),m(9,1),p(10,"sh-icon"),T(),a(),r(11,"button",10),m(12,2),p(13,"sh-icon"),T(),a()()()),e&2&&(E("formGroup",i.encryptionForm),d(),F(i.hasEncryptedBackup()?-1:1),d(),F(i.hasEncryptedBackup()||i.showEncryptionField()?2:-1),d(4),te("options",i.settings),E("hasFreeTextSettings",!0))},dependencies:[Y,z,B,V,W,X,J,ze,H,j,Ye,Ze],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var lt=()=>({standalone:!0});function _t(s,t){s&1&&p(0,"sh-progress-bar",8)}function ct(s,t){if(s&1&&(G(0),le(1,"bytes")),s&2){let e=C().$implicit;be(" (",ke(1,1,e.FileSizes),") ")}}function pt(s,t){s&1&&(r(0,"span",16),f(1,4),a())}function ut(s,t){if(s&1&&(r(0,"div",15),G(1),le(2,"date"),g(3,ct,2,3),g(4,pt,2,0,"span",16),a()),s&2){let e=t.$implicit;d(),ve(" ",e.Version,": ",xe(2,4,e.Time,"medium")," "),d(2),F(e.FileSizes?3:-1),d(),F(e.IsFullBackup===!1?4:-1)}}function dt(s,t){s&1&&p(0,"sh-progress-bar",8)}function mt(s,t){if(s&1){let e=A();r(0,"app-file-tree",17),N("hasExtendedData",function(o){P(e);let n=C(2);return I(n.extendedDataType.set(o))}),r(1,"label",18),f(2,5),a(),p(3,"input",19),a()}if(s&2){let e=C(2);E("rootPaths",e.rootPaths())("initialNodes",e.initialNodes())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)("loadExtendedData",!0)}}function Tt(s,t){if(s&1){let e=A();r(0,"sh-select",12),N("cleared",function(){P(e);let o=C();return I(o.abortLoading())}),r(1,"input",13),oe("ngModelChange",function(o){P(e);let n=C();return ie(n.selectOption,o)||(n.selectOption=o),I(o)}),a(),Le(2,ut,5,7,"ng-template"),a(),g(3,dt,1,0,"sh-progress-bar",8),g(4,mt,4,6,"app-file-tree",14)}if(s&2){let e=C();E("options",e.versionOptions())("isClearable",!1),d(),te("ngModel",e.selectOption),E("ngModelOptions",Ge(6,lt)),d(2),F(e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),d(),F(e.showFileTree()?4:-1)}}var ue=new U,nt=()=>ue.group({filesToRestore:ue.control(""),passphrase:ue.control(null)}),de=class s{#e=c(q);#t=c(y);#n=c(qe);#o=c(K);#i=c(L);#s=c(M);#a=c(ne);#l=null;#_=null;#r=_([]);selectFilesForm=this.#t.selectFilesForm;selectFilesFormSignal=this.#t.selectFilesFormSignal;selectOption=this.#t.selectOption;backupId=this.#t.backupId;versionOptionsLoading=this.#t.versionOptionsLoading;versionOptions=this.#t.versionOptions;isFileRestore=this.#t.isFileRestore;extendedDataType=this.#t.extendedDataType;needsDatabaseRepair=O(()=>this.#t.backup()?.Backup?.IsTemporary??!0);showFileTree=_(!1);backupSettings=_(null);rootPaths=_([]);initialNodes=_([]);loadingRootPath=_(!1);isRepairing=O(()=>this.#r().length>0);loadedVersions=_({});loadingEffect=x(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let i=e[0].Version;this.selectOption.set(i.toString())}});backupSettingsEffect=x(()=>{let t=this.backupId(),e=this.selectOption(),i=this.isRepairing(),o=this.loadedVersions();if(!e||!t)return;let l=this.versionOptions()?.find(Z=>Z.Version===parseInt(e))?.Time??null;if(!l)return;let u=`${t}+${l}`,h=o[u];if(this.needsDatabaseRepair()&&(!h||i))return;let $={id:t+"",time:l};this.backupSettings.set($),this.getRootPath($)});repairEffect=x(()=>{if(!this.needsDatabaseRepair())return;let t=this.selectOption(),e=this.versionOptions();if(t){let i=e.find(l=>l.Version===parseInt(t));if(i===void 0)return;let o=this.backupId(),n=`${o}+${i.Time}`;if(this.#_===n||(this.#_=n,this.#r().includes(n)))return;this.#r.update(l=>[...l,n]),this.#e.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:i.Time}}).pipe(ee(this.abortLoading$),R(()=>{this.#_=null})).subscribe(l=>{let u=l.ID;this.#n.waitForTaskToComplete(u).pipe(Q(1)).subscribe(()=>{this.#r.update(h=>h.filter($=>$!==n)),this.loadedVersions.update(h=>(h[n]=!0,h))})})}});getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1},i=t.id+"";this.isRepairing()||this.#l===i||(this.#l=i,this.loadingRootPath.set(!0),this.showFileTree.set(!1),this.#o.hasV2ListOperations()?this.#e.postApiV2BackupListFolder({requestBody:{BackupId:t.id,Time:t.time,Paths:null,PageSize:0,Page:0}}).pipe(ee(this.abortLoading$),R(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1),this.#l=null})).subscribe({next:o=>{let n=(o.Data??[]).map(l=>l.Path??"");n.length>0?(this.initialNodes.set([]),this.rootPaths.set(n)):(this.initialNodes.set([]),this.rootPaths.set(["/"]))}}):this.#e.getApiV1BackupByIdFiles(e).pipe(ee(this.abortLoading$),R(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let n=o.Files.map(l=>l.Path??"");n.length>0?(this.initialNodes.set([]),this.rootPaths.set(n)):(this.initialNodes.set([]),this.rootPaths.set(["/"]))}}))}abortLoading$=new Ce;abortLoading(){this.showFileTree.set(!1),this.loadingRootPath.set(!1),this.abortLoading$.next(!0)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let i=t?.find(o=>typeof o.Version=="number"&&o.Version.toString()===e);return i?`${i.Version}: ${this.#a.transform(i.Time,"medium")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#s.parent})}back(){this.#t.isFileRestore()?this.#i.navigate(["encryption"],{relativeTo:this.#s.parent}):this.#t.exit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-select-files"]],features:[Ae([ne])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let o;o=$localize`Select an option...`;let n;n=$localize`(partial)`;let l;return l=$localize`Path`,[["formRef",""],t,e,i,n,l,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",o,3,"ngModelChange","ngModel","ngModelOptions"],[3,"rootPaths","initialNodes","backupSettings","multiSelect","showFiles","loadExtendedData"],[1,"custom-option"],[1,"partial"],[3,"hasExtendedData","rootPaths","initialNodes","backupSettings","multiSelect","showFiles","loadExtendedData"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,i){if(e&1){let o=A();r(0,"form",6,0),N("submit",function(){return P(o),I(i.next())}),r(2,"h3",7),f(3,1),a(),g(4,_t,1,0,"sh-progress-bar",8)(5,Tt,5,7),r(6,"div",9)(7,"button",10),N("click",function(){return P(o),I(i.back())}),m(8,2),p(9,"sh-icon"),T(),a(),r(10,"button",11),m(11,3),p(12,"sh-icon"),T(),a()()()}e&2&&(E("formGroup",i.selectFilesForm),d(4),F(i.versionOptionsLoading()?4:5),d(5),De(i.isFileRestore()?"Back":"Exit"),ye(8))},dependencies:[We,z,B,V,W,Be,Y,X,J,re,j,H,Ue,Je,ne,je],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.partial[_ngcontent-%COMP%]{color:var(--base-9);font-style:italic}"],changeDetection:0})};var y=class s{#e=c(L);#t=c(M);#n=c(K);#o=c(se);#i=c(q);backupId=_(null);backup=_(null);destinationTargetUrl=_(null);destinationTestSignal=_(null);selectFilesForm=nt();optionsForm=st();encryptionForm=ot();optionsFormSignal=_e(this.optionsForm.valueChanges);selectFilesFormSignal=_e(this.selectFilesForm.valueChanges);selectOption=_(null);versionOptionsLoading=_(!1);versionOptions=_([]);isSubmitting=_(!1);isFileRestore=_(!1);isFullWidthPage=_(!1);extendedDataType=_(null);alternateRestorePath=_(null);init(t,e=!1){this.backupId.set(t),this.isFileRestore.set(e),this.alternateRestorePath.set(null),this.extendedDataType.set(null),e&&this.#e.navigate(["/restore-from-files/destination"]),e||this.getBackup()}updateTargetUrl(t){this.destinationTargetUrl.set(t)}setAlternateRestorePath(t){this.alternateRestorePath.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId();this.backup()?.Backup?.IsTemporary??!1?this.#i.postApiV1BackupByIdCopytotemp({id:this.backupId()??""}).subscribe({next:i=>{this.#s(i.ID??"")},error:i=>this.showErrorDialog($localize`An error occurred while copying the backup to a temporary location: ${i.message}`)}):this.#s(t??"")}showErrorDialog(t){this.#o.open(D,{data:{title:$localize`Error occured`,message:t,confirmText:$localize`OK`,cancelText:void 0},closed:e=>{}})}#s(t){let e=this.optionsForm.value,i=this.selectFilesForm.value,o=this.selectOption(),n=this.versionOptions()?.find(l=>l.Version===(o&&parseInt(o)));this.#i.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:i.filesToRestore?.split("\0").map(l=>l.endsWith("/")||l.endsWith("\\")?`${l}*`:l)??[],passphrase:i.passphrase??null,time:n?.Time,restore_path:this.alternateRestorePath()??e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!e.includeMetadata}}).pipe(R(()=>this.isSubmitting.set(!1))).subscribe({next:l=>{this.#e.navigate([`./${l.ID}`,"progress"],{relativeTo:this.#t})},error:l=>{console.error("restore error",l)}})}exit(){this.#o.open(D,{data:{title:$localize`Confirm exit?`,message:$localize`Are you sure you want to exit?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:t=>{t&&(this.#a(),this.#e.navigate(["/"]))}})}getVersionOptions(){this.versionOptions()}loadFilesetsWithRetryv2(t,e=2){return this.#i.postApiV2BackupListFilesets({requestBody:{BackupId:t}}).pipe(Re(i=>{let o=i?.error?.body?.StatusCode??i?.error?.requestBody?.StatusCode;return o==="EncryptedStorageNoPassphrase"||o==="FolderMissing"||o==="EmptyRemoteFolder"||e===0?Ne(()=>i):he(1e3).pipe(Ie(()=>this.loadFilesetsWithRetryv2(t,e-1)))}))}getBackup(){let t=this.backupId();this.versionOptionsLoading.set(!0),this.#n.hasV2ListOperations()?ae([this.#i.getApiV1BackupById({id:t}),this.loadFilesetsWithRetryv2(t)]).pipe(Q(1),R(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([e,i])=>{if(i.Error)throw new Error(i.Error);if(!(e.Backup?.IsTemporary??!0)&&e?.Backup?.DBPathExists===!1){this.#o.open(D,{data:{title:$localize`Missing Local Database`,message:$localize`The local database for this backup is missing. Please repair or recreate the local database before restoring.`,confirmText:$localize`OK`,cancelText:void 0},closed:n=>{this.#e.navigate(["/backup",t,"database"])}});return}this.versionOptions.set((i.Data??[]).map(n=>({Version:n.Version??-1,IsFullBackup:n.IsFullBackup??void 0,Time:n.Time??"<missing>",FileCount:n.FileCount??void 0,FileSizes:n.FileSizes??void 0}))),this.backup.set(e)},error:e=>{let i=e?.error?.body?.StatusCode??e?.error?.requestBody?.StatusCode,o=i==="EncryptedStorageNoPassphrase",n=i==="FolderMissing",l=i==="EmptyRemoteFolder",u=$localize`An error occurred while loading the backup filesets: ${e.message}`;o&&(u=$localize`The remote storage is encrypted. Please enter the passphrase to access the backup.`),n&&(u=$localize`The backup storage folder was not found.`),l&&(u=$localize`The backup storage folder does not contain any filesets.`),this.#o.open(D,{data:{title:$localize`Failed to load backup filesets`,message:u,confirmText:$localize`OK`,cancelText:void 0},closed:h=>{this.#e.navigate([o?"/restore-from-files/encryption":"/restore-from-files/destination"])}})}}):ae([this.#i.getApiV1BackupById({id:t}),this.#i.getApiV1BackupByIdFilesets({id:t}).pipe(Pe(3))]).pipe(Q(1),R(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([e,i])=>{this.versionOptions.set(i.map(o=>({Version:o.Version??-1,IsFullBackup:(o.IsFullBackup??1)==1,Time:o.Time??"<missing>",FileCount:o.FileCount??void 0,FileSizes:o.FileSizes??void 0}))),this.backup.set(e)}})}#a(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||s)};static \u0275prov=Me({token:s,factory:s.\u0275fac,providedIn:"root"})};function St(s,t){if(s&1&&(r(0,"app-file-tree",29)(1,"label",31),G(2,"Path"),a(),p(3,"input",32),a()),s&2){let e,i=C(2);E("disabled",((e=i.optionsFormSignal())==null?null:e.restoreFrom)!=="pickLocation")("enableCreateFolder",!0)}}function Et(s,t){if(s&1&&(r(0,"app-file-tree",30)(1,"label",31),G(2,"Path"),a(),p(3,"input",32),a()),s&2){let e=C(2);E("office365Mode",!0)("backupId",e.backupId())("sourcePrefix",e.office365SourcePrefix())("destinationUrl",e.office365destinationUrl())}}function gt(s,t){if(s&1){let e=A();r(0,"sh-radio",25),m(1,5),p(2,"input",26),T(),a(),r(3,"sh-radio",25),m(4,6),r(5,"input",27),N("click",function(){P(e);let o=C();return I(o.chooseOfficeTenant())}),a(),T(),a(),r(6,"sh-radio",25),m(7,7),p(8,"input",28),T(),a(),g(9,St,4,2,"app-file-tree",29),g(10,Et,4,4,"app-file-tree",30)}if(s&2){let e,i=C();d(9),F(((e=i.optionsFormSignal())==null?null:e.restoreFrom)==="pickLocation"?9:-1),d(),F(i.showOffice365RestoreTree()?10:-1)}}function Ft(s,t){if(s&1&&(r(0,"sh-radio",25),m(1,8),p(2,"input",33),T(),a(),r(3,"sh-radio",25),m(4,9),p(5,"input",28),T(),a(),r(6,"app-file-tree",29)(7,"label",31),G(8,"Path"),a(),p(9,"input",32),a()),s&2){let e,i=C();d(6),E("disabled",((e=i.optionsFormSignal())==null?null:e.restoreFrom)!=="pickLocation")("enableCreateFolder",!0)}}function ft(s,t){s&1&&(r(0,"app-toggle-card",20),b(1,21),f(2,10),v(),r(3,"sh-toggle",25),m(4,11),p(5,"input",34),T(),a()()),s&2&&E("disallowToggle",!0)}function Ot(s,t){s&1&&(r(0,"app-toggle-card",20),b(1,21),f(2,12),v(),r(3,"sh-radio",25),m(4,13),p(5,"input",35),T(),a(),r(6,"sh-radio",25),m(7,14),p(8,"input",36),T(),a()(),r(9,"app-toggle-card"),b(10,21),f(11,15),v(),r(12,"sh-toggle",37),m(13,16),p(14,"input",38),T(),a(),r(15,"sh-toggle",37),m(16,17),p(17,"input",39),T(),a()()),s&2&&E("disallowToggle",!0)}var k=new U,st=()=>k.group({restoreFrom:k.control("original"),restoreFromPath:k.control(""),handleExisting:k.control("saveTimestamp"),permissions:k.control(!1),includeMetadata:k.control(!0),officeIgnoreExisting:k.control(!1)}),me=class s{#e=c(y);#t=c(L);#n=c(M);#o=c(K);#i=c(se);optionsForm=this.#e.optionsForm;optionsFormSignal=this.#e.optionsFormSignal;isSubmitting=this.#e.isSubmitting;extendedData=this.#e.extendedDataType;office365CustomTargetUrl=_(null);backupId=O(()=>this.#e.backup()?.Backup?.ID??null);hasOffice365Data=O(()=>this.extendedData()==="o365");office365SourceEntry=O(()=>this.#e.backup()?.Backup?.Sources?.filter(t=>t.startsWith("@")&&t.includes("|office365"))[0]??null);office365SourceUrl=O(()=>this.office365SourceEntry()?.split("|")[1]??null);office365SourcePrefix=O(()=>this.office365SourceEntry()?.split("|")[0]??null);office365destinationUrl=O(()=>{let t=this.optionsFormSignal()?.restoreFrom,e=this.hasOffice365Data();return t==="same-o365"&&e?this.office365SourceUrl():t==="other-o365"&&e?this.office365CustomTargetUrl():null});showOffice365RestoreTree=O(()=>!!(this.optionsFormSignal()?.restoreFrom==="same-o365"&&this.office365destinationUrl()&&this.backupId()||this.optionsFormSignal()?.restoreFrom==="other-o365"&&this.office365destinationUrl()));isOffice365Restore=O(()=>{let t=this.optionsFormSignal()?.restoreFrom;return t==="same-o365"||t==="other-o365"});chooseOfficeTenant(){return this.#i.open(Qe,{maxWidth:"700px",maxHeight:"80vh",width:"100%",closeOnOutsideClick:!1,data:{targetUrlModel:this.office365CustomTargetUrl()||this.office365SourceUrl()||"office365://",moduleType:"RestoreDestinationProvider",askToCreate:!0,expectedResult:"any",suppressErrorDialogs:!0,backupId:this.backupId(),sourcePrefix:this.office365SourcePrefix()}}).closed.subscribe(e=>{e&&(this.office365CustomTargetUrl.set(e),this.optionsForm.controls.restoreFrom.setValue("other-o365"))}),!1}#s=x(()=>{let t=this.optionsFormSignal()?.restoreFrom;this.hasOffice365Data()&&(t==="original"||t===void 0)&&(this.optionsForm.controls.restoreFrom.setValue("pickLocation"),this.optionsForm.controls.handleExisting.setValue("overwrite")),!this.hasOffice365Data()&&(t==="same-o365"||t==="other-o365")&&(this.optionsForm.controls.restoreFrom.setValue("original"),this.optionsForm.controls.handleExisting.setValue("saveTimestamp"))});goBack(){this.#t.navigate(["select-files"],{relativeTo:this.#n.parent})}submit(){let t=this.#e.selectFilesFormSignal()?.filesToRestore??[];if(t.length>0&&this.optionsFormSignal()?.restoreFrom=="original"&&(t[0].includes("/")?"/":"\\")!==this.#o.systemInfo()?.DirectorySeparator){this.#i.open(D,{data:{title:$localize`Confirm target folder`,message:$localize`This backup was created on another operating system. Restoring files without specifying a destination folder can cause files to be restored in unexpected places. Are you sure you want to continue without choosing a destination folder?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.submit()}});return}if(this.optionsFormSignal()?.restoreFrom==="same-o365"||this.optionsFormSignal()?.restoreFrom==="other-o365"){let i=this.optionsFormSignal()?.restoreFromPath;if(i&&i.startsWith("/")&&(i=i.substring(1)),!i||i.trim()===""){this.#i.open(D,{data:{title:$localize`No path specified`,message:$localize`Please choose a path to restore to in the Office 365 tenant.`,confirmText:$localize`OK`,cancelText:void 0}});return}let o=this.optionsFormSignal()?.officeIgnoreExisting,n=this.office365destinationUrl()?.substring(this.office365destinationUrl().indexOf("?")),l=`@office365://${i}${n}&office365-ignore-existing=${o?"true":"false"}`;this.#e.setAlternateRestorePath(l),this.optionsForm.controls.includeMetadata.setValue(!0),this.optionsForm.controls.permissions.setValue(!0)}else this.#e.setAlternateRestorePath(null);this.#e.submit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-advanced-options-settings"]],decls:18,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files to?`;let i;i=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let o;o=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let n;n=$localize` Same Office 365 Tenant ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let l;l=$localize` Different Office 365 Tenant ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let u;u=$localize` Local file system ${"\uFFFD#8\uFFFD\uFFFD/#8\uFFFD"}:TAG_INPUT:`;let h;h=$localize` Original location ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let $;$=$localize` Pick location ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let Z;Z=$localize`Restore settings`;let Te;Te=$localize` Ignore existing resources in the destination ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let Se;Se=$localize`How do you want to handle existing files?`;let Ee;Ee=$localize` Overwrite ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let ge;ge=$localize` Save different versions with timestamp in file name ${"\uFFFD#8\uFFFD\uFFFD/#8\uFFFD"}:TAG_INPUT:`;let Fe;Fe=$localize`Metadata settings`;let fe;fe=$localize` Restore file metadata ${"\uFFFD#14\uFFFD\uFFFD/#14\uFFFD"}:TAG_INPUT:`;let Oe;return Oe=$localize` Restore read/write permissions ${"\uFFFD#17\uFFFD\uFFFD/#17\uFFFD"}:TAG_INPUT:`,[["formRef",""],t,e,i,o,n,l,u,h,$,Z,Te,Se,Ee,ge,Fe,fe,Oe,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],[1,"raised","primary"],["type","radio","name","restoreFrom","value","same-o365","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","other-o365","formControlName","restoreFrom",3,"click"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled","enableCreateFolder"],[3,"office365Mode","backupId","sourcePrefix","destinationUrl"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","restoreFrom","value","original","formControlName","restoreFrom"],["type","checkbox","formControlName","officeIgnoreExisting"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","includeMetadata"],["type","checkbox","formControlName","permissions"]]},template:function(e,i){if(e&1){let o=A();r(0,"form",18,0),N("submit",function(){return P(o),I(i.submit())}),r(2,"h3",19),f(3,1),a(),r(4,"app-toggle-card",20),b(5,21),f(6,2),v(),g(7,gt,11,2)(8,Ft,10,2),a(),g(9,ft,6,1,"app-toggle-card",20)(10,Ot,18,1),r(11,"div",22)(12,"button",23),N("click",function(){return P(o),I(i.goBack())}),m(13,3),p(14,"sh-icon"),T(),a(),r(15,"button",24),m(16,4),p(17,"sh-icon"),T(),a()()()}e&2&&(E("formGroup",i.optionsForm),d(4),E("disallowToggle",!0),d(3),F(i.hasOffice365Data()?7:8),d(2),F(i.isOffice365Restore()?9:10),d(6),$e("loader",i.isSubmitting()))},dependencies:[Y,z,B,we,Ve,V,W,X,J,Ke,re,He,Xe,j,H],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{st as a,me as b,ot as c,ce as d,nt as e,de as f,y as g};
package/chunk-H4LQO7G2.js DELETED
@@ -1 +0,0 @@
1
- import{i as pe,j as Ce,k as Se,l as me,p as Ne}from"./chunk-LXSHDO5C.js";import"./chunk-K34VOGDF.js";import{b as ue,c as Te}from"./chunk-AT64P6E5.js";import"./chunk-6LAXPU22.js";import"./chunk-6Q6SSTBK.js";import"./chunk-TL4WOQKT.js";import"./chunk-7LTHH6OG.js";import{a as A}from"./chunk-HSHF5HR7.js";import"./chunk-D6IP567E.js";import"./chunk-VDSX2M4H.js";import"./chunk-ZU6T3TW3.js";import"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import{B as ce,H as ge,K as de,c as Y,e as Z,f as ee,g as te,i as ne,j as ie,r as oe,s as ae,u as re,w as se,y as le,z as _e}from"./chunk-UNMDSCAN.js";import"./chunk-CFNARBNK.js";import{b as q,d as Q}from"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import{$ as l,Ab as s,Bb as p,Fb as V,Gb as K,Ib as C,Mc as R,Pa as g,Pb as N,Qb as E,Rb as D,Sc as w,Vb as T,W as I,Xb as c,aa as _,cb as v,cc as z,da as B,dc as J,gc as X,jc as y,la as O,oc as F,pc as f,qc as P,rc as W,sb as S,sc as H,tb as m,tc as U,xc as j,yb as h,zb as r}from"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";var Ee=["formRef"],Ie=["testUrl"],he=()=>({maxWidth:"700px",width:"100%"});function De(o,i){if(o&1){let e=C();r(0,"button",27),T("click",function(){l(e);let n=c();return _(n.openTargetUrlDialog())}),N(1,6),p(2,"sh-icon"),E(),s()}}function fe(o,i){if(o&1){let e=C();r(0,"button",27),T("click",function(){l(e);let n=c(2);return _(n.copyTargetUrl())}),N(1,8),p(2,"sh-icon"),E(),s()}}function Oe(o,i){if(o&1){let e=C();r(0,"sh-menu")(1,"button",19)(2,"sh-icon"),y(3,"dots-three-vertical"),s()(),V(4,28),r(5,"button",27),T("click",function(){l(e);let n=c();return _(n.openTargetUrlDialog())}),N(6,7),p(7,"sh-icon"),E(),s(),S(8,fe,3,0,"button",19),K(),s()}if(o&2){c();let e=U(0);g(8),m(e?8:-1)}}function Fe(o,i){if(o&1){let e=C();r(0,"app-destination-list",29),T("setDestination",function(n){l(e);let a=c();return _(a.setDestination(n))}),s()}}function Pe(o,i){if(o&1){let e=C();r(0,"app-single-destination",30),P("targetUrlChange",function(n){l(e);let a=c();return f(a.targetUrlModel,n)||(a.targetUrlModel=n),_(n)}),s()}if(o&2){let e=c();F("targetUrl",e.targetUrlModel),h("useBackupState",!0)}}function Ae(o,i){o&1&&(r(0,"h2"),D(1,11),s())}function Me(o,i){o&1&&(r(0,"h2"),D(1,12),s())}function ye(o,i){if(o&1){let e=C();r(0,"sh-dialog",31),P("isOpenChange",function(n){l(e);let a=c();return f(a.targetUrlDialogOpen,n)||(a.targetUrlDialogOpen=n),_(n)}),r(1,"header",32)(2,"div",33),S(3,Ae,2,0,"h2")(4,Me,2,0,"h2"),r(5,"sh-alert",34),D(6,9),s()()(),r(7,"div",35)(8,"sh-form-field")(9,"textarea",36),P("ngModelChange",function(n){l(e);let a=c();return f(a.targetUrlCtrl,n)||(a.targetUrlCtrl=n),_(n)}),s()()(),r(10,"footer",37)(11,"button",22),T("click",function(){l(e);let n=c();return _(n.closeTargetUrlDialog(!1))}),y(12,"Cancel"),s(),r(13,"button",38),T("click",function(){l(e);let n=c();return _(n.closeTargetUrlDialog(!0))}),N(14,10),p(15,"sh-icon"),E(),s()()()}if(o&2){let e=c(),t=U(0);F("isOpen",e.targetUrlDialogOpen),h("options",j(4,he)),g(3),m(t?4:3),g(6),F("ngModel",e.targetUrlCtrl)}}var M=new oe,je=(o={destinations:[]})=>M.group({destinations:M.array(o.destinations)}),qe=({key:o,customGroup:i,dynamicGroup:e,advancedGroup:t})=>M.group({destinationType:M.control(o),custom:i,dynamic:e,advanced:t}),$=class o{#i=I(Q);#o=I(q);#e=I(Ne);#n=I(_e);injector=I(B);formRef=w.required("formRef");testUrlComponent=w.required("testUrl");testSignal=this.#e.targetUrlTestSignal;targetUrlModel=this.#e.targetUrlModel;targetUrlCtrl=O(null);targetUrlInitial=O(null);targetUrlDialogOpen=O(!1);toggleNewDestination=O(!0);isNew=this.#e.isNew;backupId=this.#e.backupId;selectedDestinationType=R(()=>{let i=this.targetUrlModel();return i?ue(i)??null:null});selectedDestinationTypeOption=R(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.targetUrlModel()??"")}openTargetUrlDialog(){let i=this.targetUrlModel();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let e=this.targetUrlCtrl(),t=this.targetUrlInitial();!i||e===t||!e||this.#e.setTargetUrl(e)}setDestination(i){let e=Te(i??"");if(e){if(e.mapper.default){let t=e.mapper.default(this.#e.backupName()??"");this.#e.setTargetUrl(t,!0);return}this.#e.setTargetUrl(`${i}://`,!0)}}removeDestination(){this.#e.setTargetUrl(null,!0)}goBack(){this.#i.navigate(["general"],{relativeTo:this.#o.parent})}next(){let i=this.#e.isNew(),e=this.testSignal();if(!i){this.#t();return}if(e===null){this.#n.open(A,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(!1)?.then(a=>{a.action==="success"&&!a.containsBackup&&!a.anyFilesFound?this.#t():this.#n.open(A,{data:{title:$localize`Test did not succeed`,message:a.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}})}):this.#t()}});return}let t=typeof e=="string"?null:e;if(t?.action!=="success"||t.containsBackup||t.anyFilesFound){this.#n.open(A,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Yes, continue`,cancelText:$localize`Cancel`},closed:n=>{n&&this.#t()}});return}this.#t()}#t(){this.#e.shouldAutoSave()&&this.#e.submit(!0),this.#i.navigate(["source-data"],{relativeTo:this.#o.parent})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=v({type:o,selectors:[["app-destination"]],viewQuery:function(e,t){e&1&&z(t.formRef,Ee,5)(t.testUrlComponent,Ie,5),e&2&&J(2)},decls:28,vars:17,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`Change`;let t;t=$localize`${"\uFFFD#23\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#26\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let d;d=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let x;x=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let b;b=$localize`Set target URL`;let k;return k=$localize`Edit target URL`,[["formRef",""],["testUrl",""],i,e,t,n,a,d,x,L,G,b,k,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","moduleType"],[1,"current-destination",3,"targetUrl"],["shButton","","type","button",3,"click"],[3,"targetUrl","useBackupState"],[1,"form-actions"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,t){if(e&1){let n=C();W(0),r(1,"form",13,0),T("submit",function(){return l(n),_(t.next())}),r(3,"div",14),p(4,"input",15)(5,"input",16),s(),r(6,"header")(7,"h3",17)(8,"span"),D(9,2),s(),r(10,"div",18),S(11,De,3,0,"button",19)(12,Oe,9,1,"sh-menu"),s()(),r(13,"app-test-url",20,1),P("targetUrlChange",function(d){return l(n),f(t.targetUrlModel,d)||(t.targetUrlModel=d),_(d)})("testSignalChange",function(d){return l(n),f(t.testSignal,d)||(t.testSignal=d),_(d)}),s(),r(15,"app-destination-list-item",21)(16,"button",22),T("click",function(){return l(n),_(t.removeDestination())}),D(17,3),s()()(),S(18,Fe,1,0,"app-destination-list"),S(19,Pe,1,2,"app-single-destination",23),r(20,"div",24)(21,"button",22),T("click",function(){return l(n),_(t.goBack())}),N(22,4),p(23,"sh-icon"),E(),s(),r(24,"button",25),N(25,5),p(26,"sh-icon"),E(),s()()(),S(27,ye,16,5,"sh-dialog",26)}if(e&2){let n=H(!!t.targetUrlModel());g(11),m(n?12:11),g(2),F("targetUrl",t.targetUrlModel)("testSignal",t.testSignal),h("backupId",t.backupId())("sourcePrefix",null)("suppressErrorDialogs",!1)("askToCreate",!0)("testExpectation",t.isNew()?"destinationEmpty":"any")("moduleType","Backend"),g(2),h("targetUrl",t.targetUrlModel()),g(3),m(n?-1:18),g(),m(n?19:-1),g(5),X("loading",t.testSignal()=="testing"),h("disabled",t.testSignal()=="testing"||!n),g(3),m(t.targetUrlDialogOpen()?27:-1)}},dependencies:[Se,Ce,pe,me,ae,ie,Y,Z,ee,ne,te,ce,ge,de,re,le,se],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"],changeDetection:0})};export{je as createDestinationForm,qe as createDestinationFormGroup,$ as default};
package/chunk-HOGZ74SB.js DELETED
@@ -1 +0,0 @@
1
- import{a as Y}from"./chunk-BABBRM6A.js";import{a as W}from"./chunk-5LBG6MOL.js";import{e as U}from"./chunk-7TWUW4XJ.js";import{B as j,D as B,H as Q,b as $,c as A,d as v,e as k,f as x,j as J,p as X,q as V,r as q,t as z,u as H,w as K}from"./chunk-UNMDSCAN.js";import"./chunk-CFNARBNK.js";import{d as R}from"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import{$ as F,Ab as i,Bb as r,E as S,Ib as M,Pa as l,Pb as g,Qb as d,Rb as O,Sc as y,Vb as C,W as p,aa as f,cb as L,cc as P,dc as w,gc as b,jc as G,kc as D,la as a,na as T,sb as I,tb as E,yb as h,zb as o}from"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";var Z=["passwordInput"];function ee(m,t){m&1&&(o(0,"sh-alert",6),O(1,4),i())}var _=new q,N=class m{#e=p(R);#n=p(U);rememberMe=W("rememberMe",!1,!0);failedLogin=a(!1);successLogin=a(!1);isLoading=a(!1);loginForm=_.group({user:_.control(""),pass:_.control("",v.required),rememberMe:_.control(this.rememberMe())});showPassword=a(!1);passwordInput=y("passwordInput");passwordEffect=T(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(t=>this.rememberMe.set(t??!1)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let t=this.loginForm.value.pass,n=this.loginForm.value.user;this.rememberMe.set(this.loginForm.value.rememberMe??!1),!n&&t&&(this.isLoading.set(!0),this.#n.login(t,this.rememberMe()).pipe(S(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>{this.successLogin.set(!0),this.#e.navigate(["/"])}}))}static \u0275fac=function(n){return new(n||m)};static \u0275cmp=L({type:m,selectors:[["app-login"]],viewQuery:function(n,e){n&1&&P(e.passwordInput,Z,5),n&2&&w()},decls:24,vars:6,consts:()=>{let t;t=$localize`Enter your password`;let n;n=$localize` Password ${"\uFFFD#10\uFFFD"}:START_LINK:${"\uFFFD#11\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#10\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`;let s;s=$localize` Keep me logged in ${"\uFFFD#21\uFFFD\uFFFD/#21\uFFFD"}:TAG_INPUT:`;let c;return c=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],n,e,s,c,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["type","text","hidden","","autocomplete","off","name","username","formControlName","user"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",t,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(n,e){if(n&1){let s=M();o(0,"form",5),C("submit",function(){return F(s),f(e.submit())}),I(1,ee,2,0,"sh-alert",6),o(2,"div",7),r(3,"app-logo"),i(),o(4,"div",8)(5,"div",9),r(6,"input",10),o(7,"sh-form-field")(8,"label",11),g(9,1),o(10,"a",12),r(11,"sh-icon"),i(),d(),i(),r(12,"input",13,0),o(14,"sh-icon",14),C("click",function(){return F(s),f(e.showPassword.set(!e.showPassword()))}),G(15),i()(),o(16,"button",15),g(17,2),r(18,"sh-icon"),d(),i()(),o(19,"sh-checkbox",16),g(20,3),r(21,"input",17),d(),i(),o(22,"div",18),r(23,"label",19),i()()()}n&2&&(h("formGroup",e.loginForm),l(),E(e.failedLogin()&&!e.successLogin()?1:-1),l(11),h("type",e.showPassword()?"text":"password"),l(3),D(e.showPassword()?"eye":"eye-slash"),l(),b("loading",e.isLoading()))},dependencies:[z,J,A,$,k,x,V,X,Y,Q,H,j,K,B],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"],changeDetection:0})};export{N as default};
package/chunk-HSHF5HR7.js DELETED
@@ -1 +0,0 @@
1
- import{B as v}from"./chunk-UNMDSCAN.js";import{$ as u,Ab as o,Ib as C,Mc as D,Pa as n,Qc as T,Rc as h,Vb as g,Xb as l,aa as _,cb as x,jc as r,kc as m,sb as s,tb as d,zb as i}from"./chunk-26Z7TPJB.js";import{a as f}from"./chunk-7CGTOI24.js";function y(e,a){if(e&1&&(i(0,"p"),r(1),o()),e&2){let t=l();n(),m(t._data().message)}}function S(e,a){if(e&1){let t=C();i(0,"button",5),g("click",function(){u(t);let p=l();return _(p.close("cancel"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().cancelText)}}function k(e,a){if(e&1){let t=C();i(0,"button",6),g("click",function(){u(t);let p=l();return _(p.close("confirm"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:void 0,cancelText:$localize`Cancel`},b=class e{data=h();_data=D(()=>f(f({},w),this.data()));closed=T();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=x({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["shButton","",1,""],["shButton","",1,"raised","primary"],["shButton","",1,"",3,"click"],["shButton","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(i(0,"header",0)(1,"h3"),r(2),o()(),i(3,"div",1),s(4,y,2,1,"p"),o(),i(5,"footer",2),s(6,S,2,1,"button",3),s(7,k,2,1,"button",4),o()),t&2&&(n(2),m(c._data().title),n(2),d(c._data().message?4:-1),n(2),d(c._data().cancelText?6:-1),n(),d(c._data().confirmText?7:-1))},dependencies:[v],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{b as a};
package/chunk-I27PVH6D.js DELETED
@@ -1 +0,0 @@
1
- import{b as Vr}from"./chunk-5VE6P5U5.js";import{b as Hr,e as Je}from"./chunk-7AVOHYTE.js";import{$a as Tr,$b as jr,A as Ee,Bb as _r,C as le,E as mr,F as W,G as Nt,Hc as $r,J as yr,K as $,L as We,M as z,Mc as zr,Na as Er,O as S,P as Rr,Pc as Fr,R,Rc as qr,T as Cr,U as E,V as Q,Vb as Lr,Vc as Ye,W as f,X as Sr,Xa as Pt,Ya as j,Z as F,Za as Ar,Zc as Ze,_ as U,_b as xr,ac as kr,ad as Br,bb as Ke,cb as Mr,d as hr,da as wr,e as dr,eb as Me,f as fr,fa as Dt,g as te,ga as br,h as D,ha as re,j as O,jb as Nr,k as I,ka as Qe,l as g,la as Ae,lb as Dr,m as pr,n as Tt,nb as Or,o as gr,oa as q,ob as Ur,p as b,pa as Te,q as Mt,qa as Ot,r as x,ra as Ir,rb as Pr,s as be,sa as Ut,t as vr,u as Ge,x as G,z as Ie}from"./chunk-26Z7TPJB.js";import{a as l,b as N}from"./chunk-7CGTOI24.js";var p="primary",ze=Symbol("RouteTitle"),kt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function oe(t){return new kt(t)}function _t(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function en(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let c={},u=t.slice(0,r.length);return _t(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!_t(o,t.slice(0,o.length),a)||!_t(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function it(t){return new Promise((n,e)=>{t.pipe(W()).subscribe({next:r=>n(r),error:r=>e(r)})})}function Wn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!k(t[e],n[e]))return!1;return!0}function k(t,n){let e=t?$t(t):void 0,r=n?$t(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!tn(t[i],n[i]))return!1;return!0}function $t(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function tn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Qn(t){return t.length>0?t[t.length-1]:null}function ce(t){return Tt(t)?t:Dr(t)?I(Promise.resolve(t)):g(t)}function rn(t){return Tt(t)?it(t):Promise.resolve(t)}var Kn={exact:on,subset:sn},nn={exact:Yn,subset:Zn,ignored:()=>!0};function Xt(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return zr(()=>zt(n.lastSuccessfulNavigation()?.finalUrl??new T,r,e))}function zt(t,n,e){return Kn[e.paths](t.root,n.root,e.matrixParams)&&nn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Yn(t,n){return k(t,n)}function on(t,n,e){if(!ne(t.segments,n.segments)||!tt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!on(t.children[r],n.children[r],e))return!1;return!0}function Zn(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>tn(t[e],n[e]))}function sn(t,n,e){return an(t,n,n.segments,e)}function an(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ne(i,e)||n.hasChildren()||!tt(i,e,r))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!tt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!sn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ne(t.segments,i)||!tt(t.segments,i,r)||!t.children[p]?!1:an(t.children[p],n,o,r)}}function tt(t,n,e){return n.every((r,i)=>nn[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return ei.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return rt(this)}},K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return un(this)}};function Jn(t,n){return ne(t,n)&&t.every((e,r)=>k(e.parameters,n[r].parameters))}function ne(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Xn(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var Fe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>new Y,providedIn:"root"})}return t})(),Y=class{parse(n){let e=new qt(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ne(n.root,!0)}`,r=ni(n.queryParams),i=typeof n.fragment=="string"?`#${ti(n.fragment)}`:"";return`${e}${r}${i}`}},ei=new Y;function rt(t){return t.segments.map(n=>un(n)).join("/")}function Ne(t,n){if(!t.hasChildren())return rt(t);if(n){let e=t.children[p]?Ne(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${Ne(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Xn(t,(r,i)=>i===p?[Ne(t.children[p],!1)]:[`${i}:${Ne(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${rt(t)}/${e[0]}`:`${rt(t)}/(${e.join("//")})`}}function cn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(t){return cn(t).replace(/%3B/gi,";")}function ti(t){return encodeURI(t)}function Ft(t){return cn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nt(t){return decodeURIComponent(t)}function Gr(t){return nt(t.replace(/\+/g,"%20"))}function un(t){return`${Ft(t.path)}${ri(t.parameters)}`}function ri(t){return Object.entries(t).map(([n,e])=>`;${Ft(n)}=${Ft(e)}`).join("")}function ni(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Xe(e)}=${Xe(i)}`).join("&"):`${Xe(e)}=${Xe(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ii=/^[^\/()?;#]+/;function Lt(t){let n=t.match(ii);return n?n[0]:""}var oi=/^[^\/()?;=#]+/;function si(t){let n=t.match(oi);return n?n[0]:""}var ai=/^[^=?&#]+/;function ci(t){let n=t.match(ai);return n?n[0]:""}var ui=/^[^&#]+/;function li(t){let n=t.match(ui);return n?n[0]:""}var qt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[p]=new v(n,e)),r}parseSegment(){let n=Lt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new K(nt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=si(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Lt(this.remaining);i&&(r=i,this.capture(r))}n[nt(e)]=nt(r)}parseQueryParam(n){let e=ci(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=li(this.remaining);s&&(r=s,this.capture(r))}let i=Gr(e),o=Gr(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Lt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=p);let s=this.parseChildren();e[o??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function ln(t){return t.segments.length>0?new v([],{[p]:t}):t}function hn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=hn(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return hi(e)}function hi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new v(t.segments.concat(n.segments),n.children)}return t}function Z(t){return t instanceof T}function dn(t,n,e=null,r=null,i=new Y){let o=fn(t);return pn(o,n,e,r,i)}function fn(t){let n;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new v(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=ln(r);return n??i}function pn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return xt(o,o,o,e,r,i);let s=di(n);if(s.toRoot())return xt(o,o,new v([],{}),e,r,i);let a=fi(s,o,t),c=a.processChildren?Oe(a.segmentGroup,a.index,s.commands):vn(a.segmentGroup,a.index,s.commands);return xt(o,a.segmentGroup,c,e,r,i)}function ot(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function _e(t){return typeof t=="object"&&t!=null&&t.outlets}function Wr(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function xt(t,n,e,r,i,o){let s={};for(let[u,h]of Object.entries(r??{}))s[u]=Array.isArray(h)?h.map(d=>Wr(u,d,o)):Wr(u,h,o);let a;t===n?a=e:a=gn(t,n,e);let c=ln(hn(a));return new T(c,s,i)}function gn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=gn(o,n,e)}),new v(t.segments,r)}var st=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ot(r[0]))throw new S(4003,!1);let i=r.find(_e);if(i&&i!==Qn(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function di(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new st(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new st(e,n,r)}var de=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function fi(t,n,e){if(t.isAbsolute)return new de(n,!0,0);if(!e)return new de(n,!1,NaN);if(e.parent===null)return new de(e,!0,0);let r=ot(t.commands[0])?0:1,i=e.segments.length-1+r;return pi(e,i,t.numberOfDoubleDots)}function pi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new de(r,!1,i-o)}function gi(t){return _e(t[0])?t[0].outlets:{[p]:t}}function vn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=vi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new v(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Bt(t,n,e):r.match?Oe(t,0,i):Bt(t,n,e)}function Oe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=gi(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=Oe(t.children[p],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=vn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function vi(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(_e(a))break;let c=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Kr(c,u,s))return o;r+=2}else{if(!Kr(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Bt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(_e(o)){let c=mi(o.outlets);return new v(r,c)}if(i===0&&ot(e[0])){let c=t.segments[n];r.push(new K(c.path,Qr(e[0]))),i++;continue}let s=_e(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ot(a)?(r.push(new K(s,Qr(a))),i+=2):(r.push(new K(s,{})),i++)}return new v(r,{})}function mi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Bt(new v([],{}),0,r))}),n}function Qr(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Kr(t,n,e){return t==e.path&&k(n,e.parameters)}var Ue="imperative",C=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(C||{}),M=class{id;url;constructor(n,e){this.id=n,this.url=e}},se=class extends M{type=C.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},_=class extends M{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(w||{}),Le=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Le||{}),P=class extends M{reason;code;type=C.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function mn(t){return t instanceof P&&(t.code===w.Redirect||t.code===w.SupersededByNewNavigation)}var H=class extends M{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ae=class extends M{error;target;type=C.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},pe=class extends M{urlAfterRedirects;state;type=C.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},at=class extends M{urlAfterRedirects;state;type=C.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ct=class extends M{urlAfterRedirects;state;shouldActivate;type=C.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ut=class extends M{urlAfterRedirects;state;type=C.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends M{urlAfterRedirects;state;type=C.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ht=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},dt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ft=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},gt=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ge=class{},ve=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function yi(t){return!(t instanceof ge)&&!(t instanceof ve)}var mt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Re(this.rootInjector)}},Re=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new mt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Q(F))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Ht(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Ht(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Vt(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Vt(n,this._root).map(e=>e.value)}};function Ht(t,n){if(t===n.value)return n;for(let e of n.children){let r=Ht(t,e);if(r)return r}return null}function Vt(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Vt(t,e);if(r.length)return r.unshift(n),r}return[]}var A=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function he(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var xe=class extends yt{snapshot;constructor(n,e){super(n),this.snapshot=e,er(this,n)}toString(){return this.snapshot.toString()}};function yn(t,n){let e=Ri(t,n),r=new D([new K("",{})]),i=new D({}),o=new D({}),s=new D({}),a=new D(""),c=new V(r,i,s,a,o,p,t,e.root);return c.snapshot=e.root,new xe(new A(c,[]),e)}function Ri(t,n){let e={},r={},i={},s=new ie([],e,i,"",r,p,t,null,{},n);return new je("",new A(s,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(b(u=>u[ze]))??g(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(b(n=>oe(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(n=>oe(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Rt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&Cn(i)&&(r.resolve[ze]=i.title),r}var ie=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze]}constructor(n,e,r,i,o,s,a,c,u,h){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},je=class extends yt{url;constructor(n,e){super(e),this.url=n,er(this,e)}toString(){return Rn(this._root)}};function er(t,n){n.value._routerState=t,n.children.forEach(e=>er(t,e))}function Rn(t){let n=t.children.length>0?` { ${t.children.map(Rn).join(", ")} } `:"";return`${t.value}${n}`}function jt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,k(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),k(n.params,e.params)||t.paramsSubject.next(e.params),Wn(n.url,e.url)||t.urlSubject.next(e.url),k(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Gt(t,n){let e=k(t.params,n.params)&&Jn(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Gt(t.parent,n.parent))}function Cn(t){return typeof t.title=="string"||t.title===null}var Sn=new E(""),tr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new re;deactivateEvents=new re;attachEvents=new re;detachEvents=new re;routerOutletData=qr();parentContexts=f(Re);location=f(Ar);changeDetector=f(Ye);inputBinder=f(qe,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Wt(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Me({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Te]})}return t})(),Wt=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===V?this.route:n===Re?this.childContexts:n===Sn?this.outletData:this.parent.get(n,e)}},qe=new E(""),rr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Mt([r.queryParams,r.params,r.data]).pipe($(([o,s,a],c)=>(a=l(l(l({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=Br(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),nr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Mr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&_r(0,"router-outlet")},dependencies:[tr],encapsulation:2})}return t})();function ir(t){let n=t.children&&t.children.map(ir),e=n?N(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=nr),e}function Ci(t,n,e){let r=ke(t,n._root,e?e._root:void 0);return new xe(r,n)}function ke(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Si(t,n,e);return new A(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ke(t,a)),s}}let r=wi(n.value),i=n.children.map(o=>ke(t,o));return new A(r,i)}}function Si(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return ke(t,r,i);return ke(t,r)})}function wi(t){return new V(new D(t.url),new D(t.params),new D(t.queryParams),new D(t.fragment),new D(t.data),t.outlet,t.component,t)}var me=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},wn="ngNavigationCancelingError";function Ct(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Z(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=bn(!1,w.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function bn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[wn]=!0,e.cancellationCode=n,e}function bi(t){return In(t)&&Z(t.url)}function In(t){return!!t&&t[wn]}var Qt=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),jt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=he(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=he(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=he(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=he(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new vt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new pt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(jt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),jt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},St=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},fe=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Ii(t,n,e){let r=t._root,i=n?n._root:null;return De(r,i,e,[r.value])}function Ei(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Cr(t)?t:n.get(t):r}function De(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=he(n);return t.children.forEach(s=>{Ai(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Pe(a,e.getContext(s),i)),i}function Ai(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Ti(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new St(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?De(t,n,a?a.children:null,r,i):De(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new fe(a.outlet.component,s))}else s&&Pe(n,a,i),i.canActivateChecks.push(new St(r)),o.component?De(t,null,a?a.children:null,r,i):De(t,null,e,r,i);return i}function Ti(t,n,e){if(typeof e=="function")return U(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!ne(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ne(t.url,n.url)||!k(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gt(t,n)||!k(t.queryParams,n.queryParams);default:return!Gt(t,n)}}function Pe(t,n,e){let r=he(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Pe(s,n.children.getContext(o),e):Pe(s,null,e):Pe(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new fe(n.outlet.component,i)):e.canDeactivateChecks.push(new fe(null,i)):e.canDeactivateChecks.push(new fe(null,i))}function Be(t){return typeof t=="function"}function Mi(t){return typeof t=="boolean"}function Ni(t){return t&&Be(t.canLoad)}function Di(t){return t&&Be(t.canActivate)}function Oi(t){return t&&Be(t.canActivateChild)}function Ui(t){return t&&Be(t.canDeactivate)}function Pi(t){return t&&Be(t.canMatch)}function En(t){return t instanceof gr||t?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function ye(){return $(t=>Mt(t.map(n=>n.pipe(le(1),yr(et)))).pipe(b(n=>{for(let e of n)if(e!==!0){if(e===et)return et;if(e===!1||_i(e))return e}return!0}),G(n=>n!==et),le(1)))}function _i(t){return Z(t)||t instanceof me}function An(t){return t.aborted?g(void 0).pipe(le(1)):new fr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Tn(t){return We(An(t))}function Li(t){return x(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(N(l({},n),{guardsResult:!0})):xi(o,e,r).pipe(x(s=>s&&Mi(s)?ji(e,i,t):g(s)),b(s=>N(l({},n),{guardsResult:s})))})}function xi(t,n,e){return I(t).pipe(x(r=>qi(r.component,r.route,e,n)),W(r=>r!==!0,!0))}function ji(t,n,e){return I(n).pipe(Ee(r=>vr($i(r.route.parent,e),ki(r.route,e),Fi(t,r.path),zi(t,r.route))),W(r=>r!==!0,!0))}function ki(t,n){return t!==null&&n&&n(new gt(t)),g(!0)}function $i(t,n){return t!==null&&n&&n(new ft(t)),g(!0)}function zi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>Ge(()=>{let o=n._environmentInjector,s=Ce(i,o),a=Di(s)?s.canActivate(n,t):U(o,()=>s(n,t));return ce(a).pipe(W())}));return g(r).pipe(ye())}function Fi(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Ei(o)).filter(o=>o!==null).map(o=>Ge(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ce(a,c),h=Oi(u)?u.canActivateChild(e,t):U(c,()=>u(e,t));return ce(h).pipe(W())});return g(s).pipe(ye())}));return g(i).pipe(ye())}function qi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=Ce(s,a),u=Ui(c)?c.canDeactivate(t,n,e,r):U(a,()=>c(t,n,e,r));return ce(u).pipe(W())});return g(o).pipe(ye())}function Bi(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ce(a,t),u=Ni(c)?c.canLoad(n,e):U(t,()=>c(n,e)),h=ce(u);return i?h.pipe(Tn(i)):h});return g(s).pipe(ye(),Mn(r))}function Mn(t){return dr(z(n=>{if(typeof n!="boolean")throw Ct(t,n)}),b(n=>n===!0))}function Hi(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let s=o.map(a=>{let c=Ce(a,t),u=Pi(c)?c.canMatch(n,e):U(t,()=>c(n,e));return ce(u).pipe(Tn(i))});return g(s).pipe(ye(),Mn(r))}var B=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},$e=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function Vi(t){throw new S(4e3,!1)}function Gi(t){throw bn(!1,w.GuardRejected)}var Kt=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Vi(`${n.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(n,e,r,i,o){let s=await Wi(e,i,o);if(s instanceof T)throw new $e(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new $e(a);return a}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function Wi(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:h,title:d,paramMap:y,queryParamMap:m}=n;return it(ce(U(e,()=>r({params:u,data:h,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:d,paramMap:y,queryParamMap:m}))))}function Qi(t,n){return t.providers&&!t._injector&&(t._injector=Ke(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function Ki(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}var Yt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Yi(t,n,e,r,i,o){let s=Nn(t,n,e);return s.matched?(r=Qi(n,r),Hi(r,n,e,i,o).pipe(b(a=>a===!0?s:l({},Yt)))):g(s)}function Nn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},Yt):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||en)(e,t,n);if(!i)return l({},Yt);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Yr(t,n,e,r){return e.length>0&&Xi(t,e,r)?{segmentGroup:new v(n,Ji(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&eo(t,e,r)?{segmentGroup:new v(t.segments,Zi(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Zi(t,n,e,r){let i={};for(let o of e)if(bt(t,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return l(l({},r),i)}function Ji(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&L(r)!==p){let i=new v([],{});e[L(r)]=i}return e}function Xi(t,n,e){return e.some(r=>bt(t,n,r)&&L(r)!==p)}function eo(t,n,e){return e.some(r=>bt(t,n,r))}function bt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function to(t,n,e){return n.length===0&&!t.children[e]}var Zt=class{};async function ro(t,n,e,r,i,o,s="emptyOnly",a){return new Jt(t,n,e,r,i,s,o,a).recognize()}var no=31,Jt=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Kt(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Yr(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new A(r,e),o=new je("",i),s=dn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let e=new ie([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof B?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=await this.processSegment(n,e,r,r.segments,i,!0,o);return s instanceof A?[s]:[]}async processChildren(n,e,r,i){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],h=Ki(e,c),d=await this.processSegmentGroup(n,h,u,c,i);s.push(...d)}let a=Dn(s);return io(a),a}async processSegment(n,e,r,i,o,s,a){for(let c of e)try{return await this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a)}catch(u){if(u instanceof B||En(u))continue;throw u}if(to(r,i,o))return new Zt;throw new B(r)}async processSegmentAgainstRoute(n,e,r,i,o,s,a,c){if(L(r)!==s&&(s===p||!bt(i,o,r)))throw new B(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c);throw new B(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:c,parameters:u,consumedSegments:h,positionalParamSegments:d,remainingSegments:y}=Nn(e,i,o);if(!c)throw new B(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>no&&(this.allowRedirects=!1));let m=new ie(o,u,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Zr(i),L(i),i.component??i._loadedComponent??null,i,Jr(i),n),J=Rt(m,a,this.paramsInheritanceStrategy);if(m.params=Object.freeze(J.params),m.data=Object.freeze(J.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let X=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,d,m,n),ee=await this.applyRedirects.lineralizeSegments(i,X);return this.processSegment(n,r,e,ee.concat(y),s,!1,a)}async matchSegmentAgainstRoute(n,e,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=await it(Yi(e,r,i,n,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(e.children={}),!a?.matched)throw new B(e);n=r._injector??n;let{routes:c}=await this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:h,consumedSegments:d,remainingSegments:y}=a,m=new ie(d,h,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Zr(r),L(r),r.component??r._loadedComponent??null,r,Jr(r),n),J=Rt(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(J.params),m.data=Object.freeze(J.data);let{segmentGroup:X,slicedSegments:ee}=Yr(e,d,y,c);if(ee.length===0&&X.hasChildren()){let Hn=await this.processChildren(u,c,X,m);return new A(m,Hn)}if(c.length===0&&ee.length===0)return new A(m,[]);let At=L(r)===o,we=await this.processSegment(u,c,X,ee,At?p:o,!0,m);return new A(m,we instanceof A?[we]:[])}async getChildConfig(n,e,r){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await it(Bi(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Gi(e)}return{routes:[],injector:n}}};function io(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function oo(t){let n=t.value.routeConfig;return n&&n.path===""}function Dn(t){let n=[],e=new Set;for(let r of t){if(!oo(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Dn(r.children);n.push(new A(r.value,i))}return n.filter(r=>!e.has(r))}function Zr(t){return t.data||{}}function Jr(t){return t.resolve||{}}function so(t,n,e,r,i,o,s){return x(async a=>{let{state:c,tree:u}=await ro(t,n,e,r,a.extractedUrl,i,o,s);return N(l({},a),{targetSnapshot:c,urlAfterRedirects:u})})}function ao(t){return x(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of On(a))o.add(c);let s=0;return I(o).pipe(Ee(a=>i.has(a)?co(a,e,t):(a.data=Rt(a,a.parent,t).resolve,g(void 0))),z(()=>s++),Nt(1),x(a=>s===o.size?g(n):O))})}function On(t){let n=t.children.map(e=>On(e)).flat();return[t,...n]}function co(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Cn(r)&&(i[ze]=r.title),Ge(()=>(t.data=Rt(t,t.parent,e).resolve,uo(i,t,n).pipe(b(o=>(t._resolvedData=o,t.data=l(l({},t.data),o),null)))))}function uo(t,n,e){let r=$t(t);if(r.length===0)return g({});let i={};return I(r).pipe(x(o=>lo(t[o],n,e).pipe(W(),z(s=>{if(s instanceof me)throw Ct(new Y,s);i[o]=s}))),Nt(1),b(()=>i),Ie(o=>En(o)?O:pr(o)))}function lo(t,n,e){let r=n._environmentInjector,i=Ce(t,r),o=i.resolve?i.resolve(n,e):U(r,()=>i(n,e));return ce(o)}function Xr(t){return $(n=>{let e=t(n);return e?I(e).pipe(b(()=>n)):g(n)})}var or=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[ze]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>f(Un),providedIn:"root"})}return t})(),Un=(()=>{class t extends or{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Q(Vr))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Se=new E("",{factory:()=>({})}),He=new E(""),sr=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=f($r);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await rn(U(e,()=>r.loadComponent())),s=await Ln(_n(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await Pn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function Pn(t,n,e,r){let i=await rn(U(e,()=>t.loadChildren())),o=await Ln(_n(i)),s;o instanceof Tr||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(t);let a,c,u=!1,h;return Array.isArray(s)?(c=s,u=!0):(a=s.create(e).injector,h=s,c=a.get(He,[],{optional:!0,self:!0}).flat()),{routes:c.map(ir),injector:a,factory:h}}function ho(t){return t&&typeof t=="object"&&"default"in t}function _n(t){return ho(t)?t.default:t}async function Ln(t){return t}var It=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>f(fo),providedIn:"root"})}return t})(),fo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xn=new E("");var po=()=>{},jn=new E(""),kn=(()=>{class t{currentNavigation=Ae(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Ae(null);events=new te;transitionAbortWithErrorSubject=new te;configLoader=f(sr);environmentInjector=f(F);destroyRef=f(Dt);urlSerializer=f(Fe);rootContexts=f(Re);location=f(Je);inputBindingEnabled=f(qe,{optional:!0})!==null;titleStrategy=f(or);options=f(Se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=f(It);createViewTransition=f(xn,{optional:!0});navigationErrorHandler=f(jn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ht(i)),r=i=>this.events.next(new dt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;q(()=>{this.transitions?.next(N(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(e){return this.transitions=new D(null),this.transitions.pipe(G(r=>r!==null),$(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe($(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),O;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?N(l({},c),{previousNavigation:null}):null,abort:()=>o.abort()});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new H(a.id,this.urlSerializer.serialize(a.rawUrl),"",Le.IgnoredSameUrlNavigation)),a.resolve(!1),O;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe($(d=>(this.events.next(new se(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?O:Promise.resolve(d))),so(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),z(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=d.urlAfterRedirects,m));let y=new pe(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(y)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:y,source:m,restoredState:J,extras:X}=a,ee=new se(d,this.urlSerializer.serialize(y),m,J);this.events.next(ee);let At=yn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=N(l({},a),{targetSnapshot:At,urlAfterRedirects:y,extras:N(l({},X),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(we=>(we.finalUrl=y,we)),g(r)}else return this.events.next(new H(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Le.IgnoredByUrlHandlingStrategy)),a.resolve(!1),O}),b(a=>{let c=new at(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=N(l({},a),{guards:Ii(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),Li(a=>this.events.next(a)),$(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Ct(this.urlSerializer,a.guardsResult);let c=new ct(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return O;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",w.GuardRejected),O;if(a.guards.canActivateChecks.length===0)return g(a);let u=new ut(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return O;let h=!1;return g(a).pipe(ao(this.paramsInheritanceStrategy),z({next:()=>{h=!0;let d=new lt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{h||this.cancelNavigationTransition(a,"",w.NoDataFromResolver)}}))}),Xr(a=>{let c=h=>{let d=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;d.push(this.configLoader.loadComponent(y,h.routeConfig).then(m=>{h.component=m}))}for(let y of h.children)d.push(...c(y));return d},u=c(a.targetSnapshot.root);return u.length===0?g(a):I(Promise.all(u).then(()=>a))}),Xr(()=>this.afterPreactivation()),$(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?I(u).pipe(b(()=>r)):g(r)}),le(1),b(a=>{let c=Ci(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=N(l({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new ge),s()&&(new Qt(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(u=>(u.abort=po,u)),this.lastSuccessfulNavigation.set(q(this.currentNavigation)),this.events.next(new _(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),We(An(o.signal).pipe(G(()=>!i&&!r.targetRouterState),z(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",w.Aborted)}))),z({complete:()=>{i=!0}}),We(this.transitionAbortWithErrorSubject.pipe(z(a=>{throw a}))),mr(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Ie(a=>{if(i=!0,this.destroyed)return r.resolve(!1),O;if(In(a))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),bi(a)?this.events.next(new ve(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ae(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=U(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof me){let{message:h,cancellationCode:d}=Ct(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),h,d)),this.events.next(new ve(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return O}))}))}cancelNavigationTransition(e,r,i){let o=new P(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=q(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function go(t){return t!==Ue}var $n=new E("");var zn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>f(vo),providedIn:"root"})}return t})(),wt=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},vo=(()=>{class t extends wt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ot(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ar=(()=>{class t{urlSerializer=f(Fe);options=f(Se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=f(Je);urlHandlingStrategy=f(It);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof T?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=yn(null,f(F));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>f(mo),providedIn:"root"})}return t})(),mo=(()=>{class t extends ar{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof se?this.updateStateMemento():e instanceof H?this.commitTransition(r):e instanceof pe?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof ge?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!mn(e)?this.restoreHistory(r):e instanceof ae?this.restoreHistory(r,!0):e instanceof _&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Ot(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cr(t,n){t.events.pipe(G(e=>e instanceof _||e instanceof P||e instanceof ae||e instanceof H),b(e=>e instanceof _||e instanceof H?0:(e instanceof P?e.code===w.Redirect||e.code===w.SupersededByNewNavigation:!1)?2:1),G(e=>e!==2),le(1)).subscribe(()=>{n()})}var ur={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ue=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=f(Nr);stateManager=f(ar);options=f(Se,{optional:!0})||{};pendingTasks=f(br);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=f(kn);urlSerializer=f(Fe);location=f(Je);urlHandlingStrategy=f(It);injector=f(F);_events=new te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=f(zn);injectorCleanup=f($n,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=f(He,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!f(qe,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new hr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=q(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof ve){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=l({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||go(i.source)},s);this.scheduleNavigation(a,Ue,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}yi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ue,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=l({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Qe)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return q(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ir),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let d;try{let y=i?i.snapshot:this.routerState.snapshot.root;d=fn(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return pn(d,e,h,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Z(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ue,null,r)}navigate(e,r={skipLocationChange:!1}){return yo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Rr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},ur):r===!1?i=l({},lr):i=r,Z(e))return zt(this.currentUrlTree,e,i);let o=this.parseUrl(e);return zt(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,y)=>{a=d,c=y});let h=this.pendingTasks.add();return cr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new S(4008,!1)}var Et=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Ae(null);get href(){return q(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new te;applicationErrorHandler=f(Qe);options=f(Se,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(f(new Fr("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof _&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Z(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:Z(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(j(ue),j(V),Ir("tabindex"),j(Pt),j(Ut),j(Hr))};static \u0275dir=Me({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Lr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Pr("href",i.reactiveHref(),Er)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ze],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ze],replaceUrl:[2,"replaceUrl","replaceUrl",Ze],routerLink:"routerLink"},features:[Te]})}return t})(),Co=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new re;link=f(Et,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof _&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(be()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=I(e).pipe(be()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=So(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?l({},ur):l({},lr);return i=>{let o=i.urlTree;return o?q(Xt(o,e,r)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(j(ue),j(Ut),j(Pt),j(Ye))};static \u0275dir=Me({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&xr(o,Et,5),r&2){let s;jr(s=kr())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Te]})}return t})();function So(t){return!!t.paths}var Ve=class{},wo=(()=>{class t{preload(e,r){return r().pipe(Ie(()=>g(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Fn=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(G(e=>e instanceof _),Ee(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ke(o.providers,e,""));let s=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return I(i).pipe(be())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=I(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(x(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return I([o,s]).pipe(be())}else return o})}static \u0275fac=function(r){return new(r||t)(Q(ue),Q(F),Q(Ve),Q(sr))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bo=new E("");function Io(t,...n){return Sr([{provide:He,multi:!0,useValue:t},[],{provide:V,useFactory:Eo},{provide:Or,multi:!0,useFactory:Ao},n.map(e=>e.\u0275providers)])}function Eo(){return f(ue).routerState.root}function qn(t,n){return{\u0275kind:t,\u0275providers:n}}function Ao(){let t=f(wr);return n=>{let e=t.get(Ur);if(n!==e.components[0])return;let r=t.get(ue),i=t.get(To);t.get(Mo)===1&&r.initialNavigation(),t.get(Bn,null,{optional:!0})?.setUpPreloading(),t.get(bo,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var To=new E("",{factory:()=>new te}),Mo=new E("",{factory:()=>1});var Bn=new E("");function No(t){return qn(0,[{provide:Bn,useExisting:Fn},{provide:Ve,useExisting:t}])}function Do(){return qn(8,[rr,{provide:qe,useExisting:rr}])}export{_ as a,V as b,tr as c,ue as d,Et as e,Co as f,wo as g,Io as h,No as i,Do as j};
package/chunk-I2RQR4CB.js DELETED
@@ -1 +0,0 @@
1
- import{b as y}from"./chunk-VDSX2M4H.js";import{b as w}from"./chunk-ZU6T3TW3.js";import{a as b}from"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import{B as U,L as $,u as k}from"./chunk-UNMDSCAN.js";import{c as x}from"./chunk-CFNARBNK.js";import"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import{$ as m,Ab as r,Bb as d,E as g,Ib as E,Ma as O,Mc as I,Pa as l,Pb as M,Qb as R,Rb as T,Sb as f,Tb as F,Vb as N,W as p,Xb as c,aa as C,cb as P,gc as v,jc as u,kc as D,la as S,p as G,sb as s,tb as _,yb as L,zb as a}from"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";function V(n,o){n&1&&d(0,"sh-progress-bar",3)}function B(n,o){if(n&1&&(a(0,"a",7),M(1,2),d(2,"sh-icon"),R(),r()),n&2){let e,t,i=c(2);L("href",(e=i.serverState())==null?null:e.UpdateDownloadLink,O),l(2),f((t=i.serverState())==null?null:t.UpdatedVersion),F(1)}}function J(n,o){if(n&1){let e=E();a(0,"button",6),N("click",function(){m(e);let i=c();return C(i.checkForUpdates())}),u(1,"Check for updates"),r(),s(2,B,3,2,"a",7)}if(n&2){let e,t=c();v("loader",t.checkingForUpdates()),l(2),_((e=t.serverState())!=null&&e.UpdateDownloadLink?2:-1)}}function X(n,o){if(n&1){let e=E();a(0,"button",6),N("click",function(){m(e);let i=c();return C(i.checkForUpdates())}),u(1,"Checking for updates \u2026"),r()}}function z(n,o){n&1&&d(0,"sh-progress-bar",3)}var h=class n{#e=p(x);#t=p(w);#n=p(b);isLoading=S(!0);checkingForUpdates=S(!1);serverState=this.#t.serverState;duplicatiVersion=I(()=>this.#n.systemInfo()?.ServerVersionName??"Unknown");generalInfo=y(this.#e.getApiV1Acknowledgements().pipe(G(o=>o.Acknowledgements),g(()=>this.isLoading.set(!1))));checkForUpdates(){this.checkingForUpdates.set(!0),this.#e.postApiV1UpdatesCheck().pipe(g(()=>this.checkingForUpdates.set(!1))).subscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=P({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let o;o=$localize`General`;let e;e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let t;return t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:download${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Download update - ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[o,e,t,[1,"indeterminate","primary"],[1,"actions"],["shButton",""],["shButton","",3,"click"],["shButton","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,t){if(e&1&&(s(0,V,1,0,"sh-progress-bar",3),a(1,"section")(2,"h3"),T(3,0),r(),a(4,"p"),T(5,1),r(),a(6,"div",4),s(7,J,3,3)(8,X,2,0,"button",5),s(9,z,1,0,"sh-progress-bar",3),r(),a(10,"div"),u(11),r()()),e&2){let i,A;_(t.isLoading()?0:-1),l(5),f(t.duplicatiVersion()),F(5),l(2),_(((i=t.serverState())==null?null:i.UpdaterState)==="Waiting"?7:((i=t.serverState())==null?null:i.UpdaterState)==="Checking"?8:-1),l(2),_(((A=t.serverState())==null?null:A.UpdaterState)==="Downloading"?9:-1),l(2),D(t.generalInfo())}},dependencies:[$,U,k],styles:["[_nghost-%COMP%]{display:block;position:relative;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{h as default};
package/chunk-IGYSPFE7.js DELETED
@@ -1 +0,0 @@
1
- import{a as _e}from"./chunk-EE27B3OV.js";import"./chunk-Q74O3CWJ.js";import"./chunk-BFTGDQ4K.js";import"./chunk-QHBOEY2O.js";import"./chunk-NK5WD6WE.js";import{a as se}from"./chunk-B62TPRVG.js";import"./chunk-6Q6SSTBK.js";import"./chunk-SZUNW4JO.js";import"./chunk-TL4WOQKT.js";import"./chunk-7LTHH6OG.js";import{a as b}from"./chunk-HSHF5HR7.js";import"./chunk-5LBG6MOL.js";import"./chunk-D6IP567E.js";import{a as le,b as m}from"./chunk-VDSX2M4H.js";import"./chunk-ZU6T3TW3.js";import"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import{B as ae,H as ie,Y as ne,c as Q,e as Y,i as Z,s as x,u as ee,z as te}from"./chunk-UNMDSCAN.js";import{c as oe}from"./chunk-CFNARBNK.js";import{b as q,e as j}from"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import{Ab as i,B as G,Bb as c,C as g,D as L,E as p,Mc as E,Pa as _,Pb as u,Qb as h,Rb as A,Sb as H,Tb as J,Vb as T,W as F,cb as V,gc as C,ic as K,jc as D,la as s,na as P,oc as X,p as y,pc as z,qc as W,sb as w,tb as U,yb as d,zb as n}from"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";function re(r,t){r&1&&(n(0,"sh-icon",19),D(1,"spinner"),i())}function ce(r,t){r&1&&(n(0,"sh-icon",20),D(1,"check"),i())}function de(r,t){r&1&&(n(0,"sh-icon",21),D(1,"warning"),i()),r&2&&d("shTooltip","File not found")}function ue(r,t){let a=le(r).pipe(G(t),L());return m(a,{initialValue:r()})}var N=class r{#o=F(q);#s=F(se);#e=F(oe);#a=F(te);#t=s("");backupId=m(this.#o.params.pipe(y(t=>t.id)));activeBackup=E(()=>this.#s.backups().find(t=>t.Backup?.ID===this.backupId()));backupFilePath=s("");lastValidatedPath=s("");isValidatedPath=E(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=E(()=>this.backupFilePath()!==this.#t());isValidatingPath=s(!1);#i=ue(this.backupFilePath,500);#n=s(!1);isWaitingForValidation=E(()=>this.#i()!=this.backupFilePath()||this.isValidatingPath());backupFilePathEffect=P(()=>{let t=this.#i(),a=this.activeBackup(),e=this.#n();t!==""&&(this.isValidatingPath.set(!0),this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).pipe(g(1),p(()=>this.isValidatingPath.set(!1))).subscribe(()=>this.lastValidatedPath.set(t)))});isRestoring=s(!1);isRepairing=s(!1);isDeleting=s(!1);isSavingDbPath=s(!1);isSavingAndRepairing=s(!1);isMovingDb=s(!1);isCreatingBugReport=s(!1);createdReport=s(!1);activeBackupEffect=P(()=>{let t=this.activeBackup();if(!t)return;let a=t.Backup?.DBPath??"";this.backupFilePath.set(a),this.#t.set(a)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(t=null){this.isValidatedPath()?this.#a.open(b,{data:{title:$localize`Confirm delete?`,message:$localize`Do you really want to delete the database for ${this.activeBackup()?.Backup?.Name}?`,confirmText:$localize`Delete database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doDeleteDatabase(t)}}):this.doDeleteDatabase(t)}doDeleteDatabase(t=null){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),p(()=>this.isDeleting.set(!1))).subscribe(()=>{this.lastValidatedPath.set(""),t?.()})}restoreDatabase(){this.isValidatedPath()?this.deleteDatabase(()=>{this.doRepairDatabase()}):this.doRepairDatabase()}doRepairDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId(),requestBody:{refresh_lock_info:!0}}).pipe(g(1),p(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t())}saveDatabasePath(t=null){this.isValidatedPath()?this.#a.open(b,{data:{title:$localize`Confirm reassign?`,message:$localize`The target database path already exists and may belong to another backup. Are you sure you want to assign this backup to an existing database?`,confirmText:$localize`Assign existing database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doSaveDatabasePath(t)}}):this.doSaveDatabasePath(t)}doSaveDatabasePath(t=null){this.isSavingDbPath.set(!0);let a=this.backupFilePath();this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:a}}).pipe(p(()=>this.isSavingDbPath.set(!1))).subscribe(()=>{this.#t.set(a),t?.()})}saveAndRepairDatabasePath(){this.saveDatabasePath(()=>(this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isSavingAndRepairing.set(!1))).subscribe()))}moveDatabasePath(){this.isMovingDb.set(!0);let t=this.backupFilePath();this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:t}}).pipe(p(()=>this.isMovingDb.set(!1))).subscribe(()=>{this.#n.update(a=>!a),this.#t.set(t)})}createErrorReport(){this.isCreatingBugReport.set(!0),this.#e.postApiV1BackupByIdCreatereport({id:this.backupId()}).pipe(p(()=>this.isCreatingBugReport.set(!1))).subscribe({next:()=>{this.createdReport.set(!0),window.setTimeout(()=>this.createdReport.set(!1),3e3)}})}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=V({type:r,selectors:[["app-database"]],decls:50,vars:21,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let a;a=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let o;o=$localize`Maintenance`;let S;S=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. The bug report button can be used to create a copy of the database with path information removed. This should only be used if a developer requests to investigate an issue with your database. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Repair `;let I;I=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let M;M=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SH_ICON: Recreate (delete and repair) `;let R;R=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:file-plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Create bug report database `;let B;B=$localize`Placement`;let O;O=$localize`${"\uFFFD#40\uFFFD"}:START_TAG_SH_ICON:backspace${"\uFFFD/#40\uFFFD"}:CLOSE_TAG_SH_ICON: Reset `;let $;$=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SH_ICON: Save `;let v;v=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Save & Repair `;let k;return k=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON: Move existing database `,[t,a,e,o,S,f,I,M,R,B,O,$,v,k,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"actions","maintenance"],["shButton","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix","",1,"primary"],["prefix",""],["prefix","",3,"shTooltip"],[1,"actions","placement"]]},template:function(a,e){if(a&1&&(c(0,"app-status-bar"),n(1,"section")(2,"div",14)(3,"button",15),u(4,0),c(5,"sh-icon"),h(),i()(),n(6,"article")(7,"h1"),A(8,1),i(),n(9,"p"),A(10,2),i()(),n(11,"article")(12,"h2"),A(13,3),i(),n(14,"p"),A(15,4),i(),n(16,"div",16)(17,"button",17),T("click",function(){return e.repairDatabase()}),u(18,5),c(19,"sh-icon"),h(),i(),n(20,"button",17),T("click",function(){return e.deleteDatabase()}),u(21,6),c(22,"sh-icon"),h(),i(),n(23,"button",17),T("click",function(){return e.restoreDatabase()}),u(24,7),c(25,"sh-icon"),h(),i(),n(26,"button",17),T("click",function(){return e.createErrorReport()}),u(27,8),c(28,"sh-icon"),h(),i()()(),n(29,"article")(30,"h2"),A(31,9),i(),n(32,"sh-form-field")(33,"input",18),W("ngModelChange",function(S){return z(e.backupFilePath,S)||(e.backupFilePath=S),S}),i(),w(34,re,2,0,"sh-icon",19)(35,ce,2,0,"sh-icon",20)(36,de,2,1,"sh-icon",21),i(),n(37,"div",22)(38,"button",17),T("click",function(){return e.resetDatabasePath()}),u(39,10),c(40,"sh-icon"),h(),i(),n(41,"button",17),T("click",function(){return e.saveDatabasePath()}),u(42,11),c(43,"sh-icon"),h(),i(),n(44,"button",17),T("click",function(){return e.saveAndRepairDatabasePath()}),u(45,12),c(46,"sh-icon"),h(),i(),n(47,"button",17),T("click",function(){return e.moveDatabasePath()}),u(48,13),c(49,"sh-icon"),h(),i()()()()),a&2){let o;_(8),H((o=e.activeBackup())==null||o.Backup==null?null:o.Backup.Name),J(8),_(9),C("loader",e.isRepairing()),d("disabled",!e.isValidatedPath()||e.pathHasChanged()),_(3),C("loader",e.isDeleting()),d("disabled",!e.isValidatedPath()||e.pathHasChanged()),_(3),C("loader",e.isRestoring()),d("disabled",e.pathHasChanged()),_(3),C("loader",e.isCreatingBugReport()),d("disabled",e.isCreatingBugReport()||!e.isValidatedPath()||e.pathHasChanged()),_(6),K(e.isValidatedPath()?"success":"error"),_(),X("ngModel",e.backupFilePath),_(),U(e.isWaitingForValidation()?34:e.isValidatedPath()?35:36),_(4),d("disabled",!e.pathHasChanged()),_(3),d("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),_(3),d("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),_(3),d("disabled",!e.pathHasChanged()||e.isValidatedPath()||e.isWaitingForValidation())}},dependencies:[x,Q,Y,Z,_e,ae,ie,ee,ne,j],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{N as default};
package/chunk-JN4WCRAH.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-GJKZESBX.js";import"./chunk-MLNK7NFW.js";import"./chunk-LXSHDO5C.js";import"./chunk-K34VOGDF.js";import"./chunk-AT64P6E5.js";import"./chunk-6LAXPU22.js";import"./chunk-6Q6SSTBK.js";import"./chunk-SZUNW4JO.js";import"./chunk-TL4WOQKT.js";import"./chunk-7LTHH6OG.js";import"./chunk-HSHF5HR7.js";import"./chunk-D6IP567E.js";import"./chunk-VDSX2M4H.js";import"./chunk-ZU6T3TW3.js";import"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import"./chunk-UNMDSCAN.js";import"./chunk-CFNARBNK.js";import"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
package/chunk-K34VOGDF.js DELETED
@@ -1 +0,0 @@
1
- import{a as He}from"./chunk-HSHF5HR7.js";import{a as je}from"./chunk-HUZXJWCG.js";import{A as ke,B as de,H as J,J as $e,K as Be,L as Ve,P as We,W as Ge,a as ae,c as G,e as z,i as j,k as ce,s as H,u as Ie,y as Ae,z as Le}from"./chunk-UNMDSCAN.js";import{c as ze}from"./chunk-CFNARBNK.js";import{_ as we}from"./chunk-7AVOHYTE.js";import{$ as b,Ab as c,Bb as oe,E as ue,Fb as Ee,Gb as Me,Gc as xe,Hb as pe,Ib as A,Mc as D,Pa as g,Pb as Pe,Qb as be,Qc as Re,Rb as I,Rc as f,Sb as K,Sc as _e,Tb as Q,Vb as y,W as ee,Xb as h,Yb as W,Zb as v,aa as N,cb as V,cc as Ne,dc as Se,ec as ge,fc as re,gc as R,hb as q,jc as E,kc as ve,l as me,la as C,lc as Oe,mc as Fe,na as x,oc as L,p as X,pc as k,qc as $,rb as te,sb as O,tb as F,ub as Te,v as fe,wb as ne,wc as se,xb as ie,xc as ye,yb as P,yc as le,z as Ce,zb as a,zc as De}from"./chunk-26Z7TPJB.js";import{a as Y,b as Z}from"./chunk-7CGTOI24.js";var Ze=[[["label"]],[["","prefix",""]],[["","suffix",""]]],et=["label","[prefix]","[suffix]"];function tt(o,t){if(o&1&&E(0),o&2){let e=t.$implicit,n=h();Fe("",e.label,"",n.hasPerSecond()?"/s":"")}}var nt=["throttle-upload","throttle-download"],it=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],ot=o=>{if(!o||typeof o!="string"||o.length===0)return{size:0,unit:"MB"};let t=o.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},Je=class o{customId=f();inputType=f();timespan=C(0);unit=C("MB");sizeOptions=C(it);readonly=C(!1);hasPerSecond=D(()=>{let t=this.inputType();return t&&nt.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=x(()=>{this.onChange(this.getValue())});writeValue(t){if(t){let e=ot(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit)}):(this.timespan.set(0),this.unit.set("MB"))}else this.timespan.set(0),this.unit.set("MB")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.readonly.set(t)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[se([{provide:ae,useExisting:o,multi:!0}])],ngContentSelectors:et,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(W(Ze),a(0,"div",0),v(1,0,["ngProjectAs","label",5,["label"]]),c(),a(2,"sh-form-field")(3,"input",1),$("ngModelChange",function(r){return k(n.timespan,r)||(n.timespan=r),r}),c(),v(4,1),v(5,2),c(),a(6,"sh-select",2)(7,"input",3),$("ngModelChange",function(r){return k(n.unit,r)||(n.unit=r),r}),c(),q(8,tt,1,2,"ng-template"),c()),e&2&&(g(2),te("readonly",n.readonly()||void 0),g(),P("id",n.customId()),L("ngModel",n.timespan),P("disabled",n.readonly()),g(3),re("--miw",0),P("options",n.sizeOptions())("readonly",n.readonly())("isClearable",!1),g(),L("ngModel",n.unit))},dependencies:[We,J,H,G,ce,z,j],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};var rt=["treeContainer"],st=["formRef"],lt=[[["label"]],[["label"]],[["input"]]],at=["label","label","input"],ct=o=>({children:o,level:0}),Ke=o=>({$implicit:o}),dt=(o,t)=>({children:o,level:t}),ut=()=>({maxWidth:"700px",width:"100%"}),pt=(o,t)=>t.id;function gt(o,t){if(o&1){let e=A();a(0,"sh-button-group",10)(1,"button",20),y("click",function(){b(e);let i=h();return N(i.pathDiscoveryMethod.set("browse"))}),I(2,4),c(),a(3,"button",20),y("click",function(){b(e);let i=h();return N(i.pathDiscoveryMethod.set("path"))}),I(4,5),c()()}if(o&2){let e=h();g(),R("active",e.pathDiscoveryMethod()==="browse"),g(2),R("active",e.pathDiscoveryMethod()==="path")}}function _t(o,t){o&1&&oe(0,"sh-progress-bar",13)}function ht(o,t){o&1&&(a(0,"sh-icon",25),E(1,"caret-down"),c())}function mt(o,t){o&1&&oe(0,"sh-icon",25)}function ft(o,t){o&1&&(a(0,"sh-icon",25),E(1,"spinner"),c())}function Ct(o,t){o&1&&(a(0,"sh-icon",25),E(1,"caret-right"),c())}function Tt(o,t){o&1&&(a(0,"sh-icon",23),E(1,"folder-open"),c())}function Et(o,t){o&1&&(a(0,"sh-icon",23),E(1,"folder-user"),c())}function Mt(o,t){o&1&&(a(0,"sh-icon",23),E(1,"file"),c())}function Pt(o,t){o&1&&(a(0,"sh-icon",23),E(1,"folder"),c())}function bt(o,t){if(o&1&&(O(0,ht,2,0,"sh-icon",25)(1,mt,1,0,"sh-icon",25)(2,ft,2,0,"sh-icon",25)(3,Ct,2,0,"sh-icon",25),O(4,Tt,2,0,"sh-icon",23)(5,Et,2,0,"sh-icon",23)(6,Mt,2,0,"sh-icon",23)(7,Pt,2,0,"sh-icon",23)),o&2){let e=h(2).$implicit,n=h(2);F(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),g(4),F(e.children.length?4:e.id==="%HOME%"?5:e.cls==="file"?6:7)}}function Nt(o,t){o&1&&(a(0,"sh-icon",23),E(1,"desktop-tower"),c())}function St(o,t){o&1&&pe(0)}function vt(o,t){if(o&1&&q(0,St,1,0,"ng-container",14),o&2){let e=h(2).$implicit,n=h().$implicit;h();let i=ge(7);P("ngTemplateOutlet",i)("ngTemplateOutletContext",le(5,Ke,De(2,dt,e.children,n.level+1)))}}function Ot(o,t){if(o&1){let e=A();a(0,"div",21,3),y("click",function(){b(e);let i=h().$implicit,r=h(2);return N(r.toggleNode(i.id,i))}),a(2,"div",22),O(3,bt,8,2)(4,Nt,2,0,"sh-icon",23),c(),a(5,"div",24),y("click",function(i){b(e);let r=h().$implicit,d=h(2);return N(d.toggleSelectedNode(i,r))}),E(6),c()(),O(7,vt,1,7,"ng-container")}if(o&2){let e=h().$implicit,n=h().$implicit,i=h();R("accepted",e.accepted===!0)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id),g(2),R("file",e.cls==="file"),g(),F(e.id!=="/"?3:4),g(3),Oe(" ",e.text," "),g(),F(e.children.length>0?7:-1)}}function Ft(o,t){if(o&1&&O(0,Ot,8,19),o&2){let e=t.$implicit,n=h(2);F(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function yt(o,t){if(o&1&&(a(0,"sh-list"),ne(1,Ft,1,1,null,null,pt),c()),o&2){let e=t.$implicit;re("padding-left",e.level*.25,"rem"),g(),ie(e.children)}}function Dt(o,t){o&1&&pe(0)}function xt(o,t){if(o&1){let e=A();a(0,"sh-toggle",26),y("click",function(){b(e);let i=h();return N(i._showHiddenNodes.set(!i._showHiddenNodes()))}),I(1,6),c()}if(o&2){let e=h();R("active",e._showHiddenNodes()),g(),K(e.showFiles()?"files":"folders"),Q(1)}}function Rt(o,t){if(o&1){let e=A();a(0,"button",27),y("click",function(){b(e);let i=h();return N(i.openCreateFolderDialog())}),I(1,7),c()}if(o&2){let e=h();P("disabled",!e.isCurrentPathFolder())}}function wt(o,t){if(o&1){let e=A();a(0,"sh-dialog",28),$("isOpenChange",function(i){b(e);let r=h();return k(r.createFolderDialogOpen,i)||(r.createFolderDialogOpen=i),N(i)}),a(1,"header",29)(2,"h2"),I(3,8),c()(),a(4,"div",30)(5,"div"),E(6," Folder will be created under "),a(7,"pre"),E(8),c()(),a(9,"sh-form-field")(10,"textarea",31),$("ngModelChange",function(i){b(e);let r=h();return k(r.createFolderPath,i)||(r.createFolderPath=i),N(i)}),c()()(),a(11,"footer",32)(12,"button",33),y("click",function(){b(e);let i=h();return N(i.closeCreateFolderDialog(!1))}),E(13,"Cancel"),c(),a(14,"button",34),y("click",function(){b(e);let i=h();return N(i.closeCreateFolderDialog(!0))}),Pe(15,9),oe(16,"sh-icon"),be(),c()()()}if(o&2){let e,n=h();L("isOpen",n.createFolderDialogOpen),P("options",ye(5,ut)),g(8),ve(n.currentPath()),g(2),L("ngModel",n.createFolderPath),g(4),P("disabled",!((e=n.createFolderPath())!=null&&e.length))}}var Qe=(r=>(r[r.ExcludedByParent=-2]="ExcludedByParent",r[r.Excluded=-1]="Excluded",r[r.None=0]="None",r[r.Included=1]="Included",r[r.IncludedByParent=2]="IncludedByParent",r))(Qe||{}),S="/",he=class o{#e=ee(ze);#i=ee(je);#d=ee(Le);multiSelect=f(!1);disabled=f(!1);showFiles=f(!1);selectFiles=f(!1);accepts=f(null);startingPath=f(null);rootPaths=f([]);initialNodes=f([]);backupSettings=f(null);pathRefreshTrigger=f(!1);showHiddenNodes=f(!1);enableCreateFolder=f(!1);hideShortcuts=f(!1);office365Mode=f(!1);backupId=f("");sourcePrefix=f("");destinationUrl=f("");loadExtendedData=f(!0);hasExtendedData=Re();_showHiddenNodes=C(!1);createFolderDialogOpen=C(!1);createFolderPath=C(null);treeContainerRef=_e("treeContainer");formRef=_e("formRef");pathDiscoveryMethod=C("browse");isLoading=C(null);currentPath=C("");#o=C(null);treeSearchQuery=C("");treeNodes=C([]);pathDelimiter=D(()=>this.#i.systemInfo()?.DirectorySeparator??"");filterGroups=this.#i.filterGroups();isByBackupSettings=D(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=D(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Qe;treeStructure=D(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(u=>u!==""&&u!==S),n=structuredClone(e);for(let u=0;u<n.length;u++){let T=n[u].slice(1);if(T.startsWith("{")&&T.endsWith("}")){let m=T.slice(1,-1),_=this.filterGroups?.FilterGroups[m];if(_&&_.length){let w=_.map(M=>`-${M}`);n.splice(u,1,...w)}}}let i=this.searchableTreeNodes(),r=this.rootPaths(),d=this.accepts(),l=this.pathDelimiter(),s=[];return r.length>0?s=r.map(u=>{let p=this.#r(n,u,"folder",null);return{id:u,resolvedpath:u,text:u,parentPath:"",children:[],evalState:p,isIndeterminate:!1,cls:this.#t(u,l)?"folder":"file"}}):s=[{id:S,resolvedpath:S,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}],s.map(u=>{let p=new Map;if(!u.id)return;let T=u.id;d&&(u.accepted=!0),p.set(T,u);let m=r.length>0?i.filter(_=>_.parentPath.startsWith(T)):i;for(let _ of m){if(!_.id)continue;let w=_.id;if(!_.cls||p.has(w))continue;let M=p.get(_.parentPath),U=_.hidden===!0&&t?0:this.#r(n,w,_.cls,M),B=Z(Y({},_),{isIndeterminate:this.isIndeterminate(n,w),evalState:U,children:[]});d&&(B.accepted=this.matchAccepts(d,B)),p.set(w,B),M&&M.children.push(B)}return u}),s});#u(t){let e=this.pathDelimiter();return t?t.endsWith(e)||t===S?t:t+e:S}#r(t,e,n,i){if(i&&i.evalState===-1)return-2;let r=0,d=this.pathDelimiter(),l=t.filter(p=>!p.startsWith("-")&&!p.startsWith("+")),s=t.filter(p=>p.startsWith("-")||p.startsWith("+")),u=this.multiSelect();if(l.length===0)return r;for(let p=0;p<l.length;p++){let T=l[p];if(e===T){r=1;break}if(!u||!this.#t(T,d))continue;if(e?.startsWith(T)){r=1;break}}if(s.length===0)return r;for(let p=0;p<s.length;p++){let T=s[p],m=T.slice(1),_=T.startsWith("-")?-1:1;if(this.#t(m,d)){if(n!=="folder")continue;if(e===m){r=_;break}}if(m.startsWith("*")&&m.endsWith(`*${d}`)){if(n!=="folder")continue;let M=m.slice(1,-2);if(M==="")break;if(e?.includes(M+d)){r=_;break}}if(m.startsWith("[.*")&&m.endsWith(`[^\\${d}]*]`)){if(n!=="file")continue;let M=m.slice(3,-7);if(new RegExp(M).test(e)){r=_;break}}if(m.startsWith("[")&&m.endsWith("]")){let M=m.slice(1,-1),U=this.translateCSharpRegex(M);if(new RegExp(`${U}`).test(e)){r=_;break}}if(m.startsWith("*.")){if(n!=="file"||m.replace("*.","").length===0)continue;if(this.#s(e,m,!0)){r=_;break}}if(m==="")continue;if(m===e){r=_;break}if(this.#s(e,m,!0)){r=_;break}}return r}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(i,r,d)=>`(${d})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#t(n,this.pathDelimiter())).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith(this.pathDelimiter())||t.startsWith("%")&&t.endsWith("%")&&!t.includes(this.pathDelimiter()):!1}#s(t,e,n=!1){let i=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${i}${n?"$":""}`).test(t)}showHiddenNodesEffect=x(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=x(()=>{let t=this.pathDiscoveryMethod(),e=this.#o();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n)}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===S)return!0;let n=t.split(",");if(n.length===0)return!0;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(r=>i.endsWith(r)):!1}currentPathEffect=x(()=>{let t=this.#o();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=x(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#p(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#o.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#m(t);else{let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#c(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#n(null,e[0])):this.#n(null,S)}}getParentPath(t){let e=this.pathDelimiter(),n=t.split(e);return n.length<=1?S:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.id===S||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let i=this.currentPath().split("\0").filter(s=>s!==""&&s!==S),d=this.isChildOfSelected(e)?`-${e.id}`:e.id,l=this.#t(e.id,this.pathDelimiter());if(this.multiSelect())if(i.includes(e.id))this.currentPath.set(i.filter(s=>s!==e.id&&!(l&&s.startsWith(d))).join("\0"));else if(i.some(s=>s==d))this.currentPath.set(i.filter(s=>s!==d).join("\0"));else{let s=l?i.filter(u=>!u.startsWith(e.id)):i;this.currentPath.set([...s,d].join("\0"))}else i.includes(e.id)?this.currentPath.set(i.filter(s=>s!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!==S&&this.#t(n,this.pathDelimiter())).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(i=>!i.id?.startsWith(e.id)||i.id===e.id)):this.#n(e,t))}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(!0),!1}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.#u(e),r=n+i;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+r}}).subscribe({next:()=>{this.currentPath.set(r),this.#n(null,n),setTimeout(()=>{this.#l()},500),this.createFolderDialogOpen.set(!1)},error:d=>{let l=d?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),s=l?l[1]:d?.message||$localize`An error occurred while trying to create the folder.`;this.#d.open(He,{data:{title:$localize`Cannot create folder`,message:s,confirmText:$localize`OK`,cancelText:void 0}})}})}}else this.createFolderDialogOpen.set(!1);return!1}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#p(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#g(t){return this.#e.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#_(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:this.destinationUrl()??"",path:t??"/"}}).pipe(X(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#h(t){let e=this.backupSettings();if(this.#i.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.office365Mode()||this.loadExtendedData()}}).pipe(X(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(X(i=>i.Files??[]))}}#a(t){return this.office365Mode()?this.#_(t):this.isByBackupSettings()?this.#h(t):this.#g(t)}#m(t){let e=this.pathDelimiter(),i=t.split("\0").filter(l=>!l.startsWith("-")&&!l.startsWith("+")&&!l.startsWith("@")).filter(Boolean).map(l=>{let s=l.split(e);return s.at(-1)!==""&&s.pop(),s}),r=[S];i.forEach(l=>{l.forEach((s,u)=>{let p=l.slice(0,u+1).join(e)+e;p===""||p===e||r.includes(p)||r.push(p)})});let d=r.map(l=>(this.isLoading.set(l),this.#a(l).pipe(X(s=>({status:"success",value:s,url:l})),Ce(s=>me({status:"error",value:s,url:l})))));fe(d).pipe(ue(()=>this.isLoading.set(null))).subscribe({next:l=>{let s=l.filter(p=>p.status==="success"),u=l.filter(p=>p.status==="error");this.treeNodes.update(p=>{let T=s.flatMap(_=>Array.isArray(_.value)?_.value.map(w=>Z(Y({},w),{parentPath:_.url})):[]),m=[...new Map([...p,...T].map(_=>[_.id,_])).values()];return this.#l(),this.hideShortcuts()?m.filter(_=>!_.id.startsWith("%")):m})}})}#c(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"];if(n)return n}return t}#f(t){t&&t.ExtType&&t.ExtType.length>0&&this.hasExtendedData.emit(t.ExtType)}#t(t,e){return t.startsWith("%")&&t.endsWith("%")||t.endsWith(e)}#n(t=null,e=S){let n=this.pathDelimiter();this.isLoading.set(e),this.#a(e).pipe(ue(()=>this.isLoading.set(null))).subscribe({next:i=>{let r=this.isByBackupSettings()||this.office365Mode()?i.map(d=>(this.#f(d.Metadata),{text:this.#c(d.Path.split(n).filter(s=>s!=="").pop(),d.Metadata),id:d.Path,cls:this.#t(d.Path,n)?"folder":"file",leaf:t!==null,resolvedpath:d.Path,hidden:!1})):i;this.treeNodes.update(d=>{let l=r.map(u=>{let p=this.#t(u.id,n)?"folder":"file";return Z(Y({},u),{cls:p,parentPath:e})}),s=[...new Map([...d,...l].map(u=>[u.id,u])).values()];return this.hideShortcuts()?s.filter(u=>!u.id.startsWith("%")):s})}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&Ne(n.treeContainerRef,rt,5)(n.formRef,st,5),e&2&&Se(2)},hostVars:2,hostBindings:function(e,n){e&2&&R("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],office365Mode:[1,"office365Mode"],backupId:[1,"backupId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:at,decls:18,vars:17,consts:()=>{let t;t=$localize` Browse path `;let e;e=$localize` Manually type path `;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let r;r=$localize`Enter new folder path`;let d;return d=$localize` Create folder ${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,r,d,[1,"type-b","small"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"active"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"isOpen","options"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(W(lt),O(0,gt,5,4,"sh-button-group",10),a(1,"div",11),v(2,0,["ngProjectAs","label",5,["label"]]),a(3,"div",12,0),O(5,_t,1,0,"sh-progress-bar",13),q(6,yt,3,2,"ng-template",null,1,xe)(8,Dt,1,0,"ng-container",14),c(),a(9,"div",15),O(10,xt,2,3,"sh-toggle",16),O(11,Rt,2,1,"button",17),c()(),a(12,"div",18,2)(14,"sh-form-field"),v(15,1,["ngProjectAs","label",5,["label"]]),v(16,2,["ngProjectAs","input",5,["input"]]),c()(),O(17,wt,17,6,"sh-dialog",19)),e&2){let i=ge(7);F(!n.multiSelect()&&!n.office365Mode()?0:-1),g(),R("hidden",n.pathDiscoveryMethod()!=="browse"),g(2),R("visualize-accepted",n.accepts()),g(2),F(n.isLoading()!=null?5:-1),g(3),P("ngTemplateOutlet",i)("ngTemplateOutletContext",le(15,Ke,le(13,ct,n.treeStructure()))),g(2),F(!n.accepts()&&!n.isByBackupSettings()&&!n.office365Mode()?10:-1),g(),F(n.enableCreateFolder()&&!n.office365Mode()?11:-1),g(),R("hidden",n.pathDiscoveryMethod()!=="path"),g(5),F(n.createFolderDialogOpen()?17:-1)}},dependencies:[de,ke,Ge,Ie,J,$e,Ve,Ae,we,H,G,z,j],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}'],changeDetection:0})};var It=[[["label"]],[["","prefix",""]],[["","suffix",""]]],At=["label","[prefix]","[suffix]"];function Lt(o,t){if(o&1){let e=A();a(0,"button",7),y("click",function(){let i=b(e).$implicit,r=h();return N(r.updateUnit(i.value))}),I(1,1),c()}if(o&2){let e=t.$implicit;g(),K(e.label),Q(1)}}var kt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],$t=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],Bt=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],Ye=class o{customId=f();inputType=f();timespan=C(0);#e="D";unit=C(this.#e);unitLabel=D(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=D(()=>{let t=this.inputType();return t&&Bt.includes(t.replace("--",""))});timeOptions=D(()=>this.isShortTime()?kt:$t);readonly=C(!1);onChange=()=>{};onTouched=()=>{};onChangeEffect=x(()=>{this.onChange(this.getValue())});inputTypeEffect=x(()=>{let t=this.timeOptions(),e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e)});updateUnit(t){this.unit.set(t)}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e))}else this.timespan.set(0),this.unit.set(this.#e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.readonly.set(t)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[se([{provide:ae,useExisting:o,multi:!0}])],ngContentSelectors:At,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(W(It),v(0,0,["ngProjectAs","label",5,["label"]]),a(1,"sh-form-field")(2,"input",2),$("ngModelChange",function(r){return k(n.timespan,r)||(n.timespan=r),r}),c(),v(3,1),v(4,2),c(),a(5,"sh-menu",3)(6,"button",4),I(7,0),c(),Ee(8,5),ne(9,Lt,2,1,"button",6,Te),Me(),c()),e&2&&(g(),te("readonly",n.readonly()||void 0),g(),P("id",n.customId()),L("ngModel",n.timespan),P("disabled",n.readonly()),g(3),P("openIndicator",!0),g(2),K(n.unitLabel()),Q(7),g(2),ie(n.timeOptions()))},dependencies:[Be,J,H,G,ce,z,j,de],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})};export{it as a,ot as b,Je as c,he as d,Ye as e};
package/chunk-KV5UORE3.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-GJKZESBX.js";import"./chunk-MLNK7NFW.js";import"./chunk-LXSHDO5C.js";import"./chunk-K34VOGDF.js";import"./chunk-AT64P6E5.js";import"./chunk-6LAXPU22.js";import"./chunk-6Q6SSTBK.js";import"./chunk-SZUNW4JO.js";import"./chunk-TL4WOQKT.js";import"./chunk-7LTHH6OG.js";import"./chunk-HSHF5HR7.js";import"./chunk-D6IP567E.js";import"./chunk-VDSX2M4H.js";import"./chunk-ZU6T3TW3.js";import"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import"./chunk-UNMDSCAN.js";import"./chunk-CFNARBNK.js";import"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";export{a as createEncryptionForm,b as default};
package/chunk-LT3AVRVP.js DELETED
@@ -1 +0,0 @@
1
- import{g as C}from"./chunk-GJKZESBX.js";import"./chunk-MLNK7NFW.js";import{a as k}from"./chunk-EE27B3OV.js";import"./chunk-Q74O3CWJ.js";import{p as w}from"./chunk-LXSHDO5C.js";import"./chunk-K34VOGDF.js";import"./chunk-AT64P6E5.js";import"./chunk-6LAXPU22.js";import"./chunk-BFTGDQ4K.js";import"./chunk-QHBOEY2O.js";import"./chunk-NK5WD6WE.js";import"./chunk-B62TPRVG.js";import"./chunk-6Q6SSTBK.js";import"./chunk-SZUNW4JO.js";import"./chunk-TL4WOQKT.js";import"./chunk-7LTHH6OG.js";import"./chunk-HSHF5HR7.js";import"./chunk-5LBG6MOL.js";import"./chunk-D6IP567E.js";import{b as u}from"./chunk-VDSX2M4H.js";import"./chunk-ZU6T3TW3.js";import"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import{M as W,R as y}from"./chunk-UNMDSCAN.js";import"./chunk-CFNARBNK.js";import{a as A,b as $,c as M,d as I,e as G,f as v}from"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import{Ab as n,Bb as s,Pa as r,Pb as F,Qb as l,W as c,Xb as O,cb as D,gc as L,la as f,na as P,sb as E,tb as g,wc as N,xc as R,yb as _,yc as p,zb as o}from"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";var b=()=>["/restore-from-files/destination"],x=()=>["/restore-from-files/encryption"],H=()=>["/restore-from-files/select-files"],J=()=>["/restore-from-files/options"],X=t=>["/restore",t,"select-files"],z=t=>["/restore",t,"options"];function B(t,i){t&1&&(o(0,"div",7),F(1,0),s(2,"sh-radio"),l(),n(),o(3,"div",7),F(4,1),s(5,"sh-radio"),l(),n(),o(6,"div",8),F(7,2),s(8,"sh-radio"),l(),n(),o(9,"div",8),F(10,3),s(11,"sh-radio"),l(),n()),t&2&&(_("routerLink",R(4,b)),r(3),_("routerLink",R(5,x)),r(3),_("routerLink",R(6,H)),r(3),_("routerLink",R(7,J)))}function U(t,i){if(t&1&&(o(0,"div",7),F(1,4),s(2,"sh-radio"),l(),n(),o(3,"div",7),F(4,5),s(5,"sh-radio"),l(),n()),t&2){let e=O(2);_("routerLink",p(2,X,e.backupId())),r(3),_("routerLink",p(4,z,e.backupId()))}}function j(t,i){if(t&1&&(o(0,"sh-stepper",6),E(1,B,12,8)(2,U,6,6),n()),t&2){let e=O();r(),g(e.isFileRestore()?1:2)}}var h=class t{#e=c($);#i=c(I);#t=c(C);#o=u(this.#e.params);#n=u(this.#e.url);#s=u(this.#e.children[0].url);backupId=this.#t.backupId;isFileRestore=this.#t.isFileRestore;isProgressPage=f(!1);paramsChanged=P(()=>{let i=this.#s(),e=this.#o()?.id,a=!!this.#n()?.find(S=>S.path==="restore-from-files"),T=!!i?.find(S=>S.path==="progress");this.isProgressPage.set(T),this.#t.init(e,a)});ngOnInit(){this.#i.events.subscribe(i=>{if(i instanceof A){let e=i.urlAfterRedirects;this.isProgressPage.set(e.includes("progress"))}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=D({type:t,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(e,a){e&2&&L("full-width",a.isProgressPage())},features:[N([C,w])],decls:4,vars:1,consts:()=>{let i;i=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_RADIO: Destination `;let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_RADIO: Encryption `;let a;a=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SH_RADIO: Select files `;let T;T=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SH_RADIO: Options `;let S;S=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_RADIO: Select files `;let m;return m=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_RADIO: Options `,[i,e,a,T,S,m,[1,"primary"],["step","","routerLinkActive","active",3,"routerLink"],["step","","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,a){e&1&&(s(0,"app-status-bar"),E(1,j,3,1,"sh-stepper",6),o(2,"section"),s(3,"router-outlet"),n()),e&2&&(r(),g(a.isProgressPage()?-1:1))},dependencies:[y,W,k,M,G,v],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"],changeDetection:0})};export{h as default};