homebridge-config-ui-x 5.0.0-beta.56 → 5.0.0-beta.57

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 (130) hide show
  1. package/CHANGELOG.md +22 -2
  2. package/dist/modules/config-editor/config-editor.controller.d.ts +1 -1
  3. package/dist/modules/config-editor/config-editor.service.d.ts +1 -1
  4. package/dist/modules/plugins/plugins.service.d.ts +1 -0
  5. package/dist/modules/plugins/plugins.service.js +50 -29
  6. package/dist/modules/plugins/plugins.service.js.map +1 -1
  7. package/package.json +19 -24
  8. package/public/3rdpartylicenses.txt +31 -0
  9. package/public/{chunk-QX4JJLN4.js → chunk-2WH4IK5A.js} +1 -1
  10. package/public/chunk-362DCP5A.js +32 -0
  11. package/public/chunk-3IKQJJ35.js +1 -0
  12. package/public/{chunk-XJTWPBNY.js → chunk-4BSIYTAL.js} +1 -1
  13. package/public/chunk-4JZV3RMY.js +1 -0
  14. package/public/chunk-4T2QSCYW.js +1 -0
  15. package/public/chunk-4TQHPYJK.js +1 -0
  16. package/public/{chunk-QIWZD5HO.js → chunk-5FC5GQ62.js} +1 -1
  17. package/public/{chunk-QAB7LTBA.js → chunk-5FJB3FCA.js} +1 -1
  18. package/public/{chunk-HLM36W2F.js → chunk-5YY5PB7J.js} +1 -1
  19. package/public/{chunk-LYECLRZK.js → chunk-6C6D5JTI.js} +1 -1
  20. package/public/{chunk-YSSMQJIR.js → chunk-6RGVIHF3.js} +3 -3
  21. package/public/{chunk-SHPANMJF.js → chunk-6W4AJ2ZZ.js} +1 -1
  22. package/public/{chunk-66N6LPDX.js → chunk-7LJ3B6ZP.js} +1 -1
  23. package/public/{chunk-N4Z4UGMV.js → chunk-7RDZL576.js} +1 -1
  24. package/public/{chunk-U3XAGOD7.js → chunk-ACZLPZJM.js} +1 -1
  25. package/public/chunk-AM2SWIQP.js +1 -0
  26. package/public/chunk-AOXOXBCJ.js +1 -0
  27. package/public/{chunk-BBVFH2MI.js → chunk-AT2FVBH6.js} +1 -1
  28. package/public/{chunk-S7I53EZU.js → chunk-BBUICPD3.js} +1 -1
  29. package/public/chunk-BYW5V4GN.js +1 -0
  30. package/public/chunk-CDJKWLLD.js +1 -0
  31. package/public/{chunk-Y5BDWQTD.js → chunk-CMCSOAXY.js} +1 -1
  32. package/public/chunk-CUIO3EP4.js +1 -0
  33. package/public/chunk-D7VOCNML.js +1 -0
  34. package/public/{chunk-A6S2CSNA.js → chunk-DWUJUZ6J.js} +1 -1
  35. package/public/{chunk-LS2FIX2L.js → chunk-ECER442J.js} +1 -1
  36. package/public/{chunk-J3SOHF7U.js → chunk-EGR6APYX.js} +1 -1
  37. package/public/{chunk-VZPOY7LH.js → chunk-ENRL5IRP.js} +1 -1
  38. package/public/{chunk-736OOU3Z.js → chunk-ER76XVWX.js} +1 -1
  39. package/public/chunk-F2I242G2.js +1 -0
  40. package/public/chunk-F7V44PP3.js +1 -0
  41. package/public/chunk-FHYCTWTJ.js +1 -0
  42. package/public/{chunk-Y7QARRGO.js → chunk-GFNUBCXV.js} +1 -1
  43. package/public/{chunk-UHIT6NQS.js → chunk-GVTYCQYL.js} +1 -1
  44. package/public/{chunk-D3QNROQA.js → chunk-GZS22B5R.js} +1 -1
  45. package/public/{chunk-3BELKOOV.js → chunk-HFN3B3QR.js} +1 -1
  46. package/public/{chunk-2COJW6JZ.js → chunk-HKLJJXUX.js} +1 -1
  47. package/public/{chunk-773OTB2G.js → chunk-HND4X35J.js} +1 -1
  48. package/public/{chunk-T6O5C7ES.js → chunk-HODXHCDJ.js} +1 -1
  49. package/public/chunk-I3KKIRTX.js +1 -0
  50. package/public/chunk-IGBVA5MG.js +1 -0
  51. package/public/chunk-IINEZ45K.js +1 -0
  52. package/public/chunk-ITMRCE56.js +1 -0
  53. package/public/{chunk-JJGSWCQV.js → chunk-IXPB55LL.js} +1 -1
  54. package/public/chunk-IZTRU4LC.js +1 -0
  55. package/public/chunk-J3P6NF5H.js +1 -0
  56. package/public/{chunk-YBF3LNSH.js → chunk-J5Z3G3OU.js} +1 -1
  57. package/public/{chunk-YCHPFYO5.js → chunk-JUAHATIH.js} +1 -1
  58. package/public/chunk-L5H6KHHM.js +1 -0
  59. package/public/chunk-L6QFBAQD.js +1 -0
  60. package/public/{chunk-XKZJKXVQ.js → chunk-LAIV47S5.js} +1 -1
  61. package/public/{chunk-OPSX6NGT.js → chunk-LROU3O4M.js} +1 -1
  62. package/public/{chunk-TLHK2BEJ.js → chunk-LVDKZONP.js} +1 -1
  63. package/public/{chunk-DCC24Q4F.js → chunk-ME47A4CF.js} +1 -1
  64. package/public/{chunk-IYWODW5F.js → chunk-MHW5U4MP.js} +1 -1
  65. package/public/chunk-MI3HMMGX.js +1 -0
  66. package/public/chunk-NFDY2BQU.js +1 -0
  67. package/public/{chunk-UXBIRDFV.js → chunk-NMSMHD6N.js} +1 -1
  68. package/public/{chunk-UE3HPVVJ.js → chunk-O5YJ4X2O.js} +1 -1
  69. package/public/{chunk-SZTIHT5G.js → chunk-OIONECW5.js} +1 -1
  70. package/public/chunk-PIYDYGCD.js +1 -0
  71. package/public/{chunk-R5QHD2MV.js → chunk-PP4ZCDNB.js} +1 -1
  72. package/public/{chunk-XK5P2LIO.js → chunk-QO3XIGOO.js} +1 -1
  73. package/public/{chunk-6ANUJDFI.js → chunk-QWTSQNT5.js} +1 -1
  74. package/public/{chunk-E3OYPTR2.js → chunk-RAAYBP75.js} +5 -5
  75. package/public/chunk-RPVIKP3Y.js +1 -0
  76. package/public/chunk-UDDAX4U6.js +1 -0
  77. package/public/{chunk-TH7WF563.js → chunk-UZKR4SPQ.js} +1 -1
  78. package/public/{chunk-DVN556RD.js → chunk-VNJJI7TG.js} +1 -1
  79. package/public/chunk-WNM6WQXW.js +1 -0
  80. package/public/{chunk-AXQ3BC2K.js → chunk-XUQW3U5Y.js} +1 -1
  81. package/public/chunk-YAATCUBG.js +1 -0
  82. package/public/chunk-YIVO4VCZ.js +1 -0
  83. package/public/chunk-YMRGMDKR.js +1 -0
  84. package/public/chunk-YOBUG76J.js +1 -0
  85. package/public/{chunk-IQBKWEOJ.js → chunk-YRKK76EB.js} +1 -1
  86. package/public/chunk-YSEOPOHR.js +7 -0
  87. package/public/{chunk-ZEGJJ2QZ.js → chunk-ZC5PN6KE.js} +1 -1
  88. package/public/chunk-ZDGOOOSQ.js +1 -0
  89. package/public/{chunk-L4SPVWCZ.js → chunk-ZIEZJHQ3.js} +1 -1
  90. package/public/{chunk-TOSAT7VK.js → chunk-ZY3WVSWR.js} +1 -1
  91. package/public/chunk-ZZ5DUZ3T.js +2 -0
  92. package/public/index.html +2 -2
  93. package/public/main-OIGLGXZB.js +1 -0
  94. package/public/{styles-EYD3YW3P.css → styles-6IKEC5B4.css} +1 -1
  95. package/public/chunk-2IW5LNPB.js +0 -1
  96. package/public/chunk-4CHT7AT4.js +0 -1
  97. package/public/chunk-4M72X5OK.js +0 -1
  98. package/public/chunk-4RHFK7T7.js +0 -1
  99. package/public/chunk-5V2DC7MB.js +0 -1
  100. package/public/chunk-6JZDPQRU.js +0 -7
  101. package/public/chunk-6UJYW2BC.js +0 -1
  102. package/public/chunk-AK5KQMIG.js +0 -1
  103. package/public/chunk-AOTHIRMY.js +0 -1
  104. package/public/chunk-B2ERIJJG.js +0 -1
  105. package/public/chunk-G75CPMPQ.js +0 -2
  106. package/public/chunk-HNSNM4LP.js +0 -1
  107. package/public/chunk-IYB7FT3D.js +0 -1
  108. package/public/chunk-J6F5YEE7.js +0 -1
  109. package/public/chunk-JJNXRO4M.js +0 -1
  110. package/public/chunk-JO3D6NVS.js +0 -1
  111. package/public/chunk-KSS2AKKJ.js +0 -1
  112. package/public/chunk-KZVBUYFA.js +0 -1
  113. package/public/chunk-LSEE2EJ5.js +0 -1
  114. package/public/chunk-M7SOMZDC.js +0 -1
  115. package/public/chunk-NGIHFGBF.js +0 -1
  116. package/public/chunk-NKLCJU2S.js +0 -1
  117. package/public/chunk-OARRUSU5.js +0 -1
  118. package/public/chunk-P3FBSUT6.js +0 -1
  119. package/public/chunk-P6AJ5TS2.js +0 -1
  120. package/public/chunk-Q6TB7XJF.js +0 -1
  121. package/public/chunk-REYVZJK4.js +0 -32
  122. package/public/chunk-SD6V7IFJ.js +0 -1
  123. package/public/chunk-THIDU5VO.js +0 -1
  124. package/public/chunk-UXGMJXWE.js +0 -1
  125. package/public/chunk-WROPKO5D.js +0 -1
  126. package/public/chunk-XSVWXIZ3.js +0 -1
  127. package/public/chunk-YVLNDNOU.js +0 -1
  128. package/public/chunk-ZEDF3XZB.js +0 -1
  129. package/public/chunk-ZUXRWBEO.js +0 -1
  130. package/public/main-KLOKN23N.js +0 -1
@@ -1 +0,0 @@
1
- import{e as h}from"./chunk-6JZDPQRU.js";var P=h((Qn,Ee)=>{var tt="2.0.0",st=Number.MAX_SAFE_INTEGER||9007199254740991,nt=16,it=250,ot=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Ee.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:nt,MAX_SAFE_BUILD_LENGTH:it,MAX_SAFE_INTEGER:st,RELEASE_TYPES:ot,SEMVER_SPEC_VERSION:tt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var v=h((ei,fe)=>{var lt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fe.exports=lt});var w=h((T,he)=>{var{MAX_SAFE_COMPONENT_LENGTH:W,MAX_SAFE_BUILD_LENGTH:at,MAX_LENGTH:ct}=P(),ut=v();T=he.exports={};var Et=T.re=[],ft=T.safeRe=[],l=T.src=[],ht=T.safeSrc=[],a=T.t={},pt=0,B="[a-zA-Z0-9-]",Rt=[["\\s",1],["\\d",ct],[B,at]],$t=t=>{for(let[e,r]of Rt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},p=(t,e,r)=>{let s=$t(e),n=pt++;ut(t,n,e),a[t]=n,l[n]=e,ht[n]=s,Et[n]=new RegExp(e,r?"g":void 0),ft[n]=new RegExp(s,r?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*");p("NUMERICIDENTIFIERLOOSE","\\d+");p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${B}*`);p("MAINVERSION",`(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})`);p("MAINVERSIONLOOSE",`(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})`);p("PRERELEASEIDENTIFIER",`(?:${l[a.NUMERICIDENTIFIER]}|${l[a.NONNUMERICIDENTIFIER]})`);p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[a.NUMERICIDENTIFIERLOOSE]}|${l[a.NONNUMERICIDENTIFIER]})`);p("PRERELEASE",`(?:-(${l[a.PRERELEASEIDENTIFIER]}(?:\\.${l[a.PRERELEASEIDENTIFIER]})*))`);p("PRERELEASELOOSE",`(?:-?(${l[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[a.PRERELEASEIDENTIFIERLOOSE]})*))`);p("BUILDIDENTIFIER",`${B}+`);p("BUILD",`(?:\\+(${l[a.BUILDIDENTIFIER]}(?:\\.${l[a.BUILDIDENTIFIER]})*))`);p("FULLPLAIN",`v?${l[a.MAINVERSION]}${l[a.PRERELEASE]}?${l[a.BUILD]}?`);p("FULL",`^${l[a.FULLPLAIN]}$`);p("LOOSEPLAIN",`[v=\\s]*${l[a.MAINVERSIONLOOSE]}${l[a.PRERELEASELOOSE]}?${l[a.BUILD]}?`);p("LOOSE",`^${l[a.LOOSEPLAIN]}$`);p("GTLT","((?:<|>)?=?)");p("XRANGEIDENTIFIERLOOSE",`${l[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);p("XRANGEIDENTIFIER",`${l[a.NUMERICIDENTIFIER]}|x|X|\\*`);p("XRANGEPLAIN",`[v=\\s]*(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:${l[a.PRERELEASE]})?${l[a.BUILD]}?)?)?`);p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:${l[a.PRERELEASELOOSE]})?${l[a.BUILD]}?)?)?`);p("XRANGE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAIN]}$`);p("XRANGELOOSE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAINLOOSE]}$`);p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${W}})(?:\\.(\\d{1,${W}}))?(?:\\.(\\d{1,${W}}))?`);p("COERCE",`${l[a.COERCEPLAIN]}(?:$|[^\\d])`);p("COERCEFULL",l[a.COERCEPLAIN]+`(?:${l[a.PRERELEASE]})?(?:${l[a.BUILD]})?(?:$|[^\\d])`);p("COERCERTL",l[a.COERCE],!0);p("COERCERTLFULL",l[a.COERCEFULL],!0);p("LONETILDE","(?:~>?)");p("TILDETRIM",`(\\s*)${l[a.LONETILDE]}\\s+`,!0);T.tildeTrimReplace="$1~";p("TILDE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAIN]}$`);p("TILDELOOSE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAINLOOSE]}$`);p("LONECARET","(?:\\^)");p("CARETTRIM",`(\\s*)${l[a.LONECARET]}\\s+`,!0);T.caretTrimReplace="$1^";p("CARET",`^${l[a.LONECARET]}${l[a.XRANGEPLAIN]}$`);p("CARETLOOSE",`^${l[a.LONECARET]}${l[a.XRANGEPLAINLOOSE]}$`);p("COMPARATORLOOSE",`^${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]})$|^$`);p("COMPARATOR",`^${l[a.GTLT]}\\s*(${l[a.FULLPLAIN]})$|^$`);p("COMPARATORTRIM",`(\\s*)${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]}|${l[a.XRANGEPLAIN]})`,!0);T.comparatorTrimReplace="$1$2$3";p("HYPHENRANGE",`^\\s*(${l[a.XRANGEPLAIN]})\\s+-\\s+(${l[a.XRANGEPLAIN]})\\s*$`);p("HYPHENRANGELOOSE",`^\\s*(${l[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[a.XRANGEPLAINLOOSE]})\\s*$`);p("STAR","(<|>)?=?\\s*\\*");p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var F=h((ri,pe)=>{var mt=Object.freeze({loose:!0}),It=Object.freeze({}),Lt=t=>t?typeof t!="object"?mt:t:It;pe.exports=Lt});var z=h((ti,me)=>{var Re=/^[0-9]+$/,$e=(t,e)=>{let r=Re.test(t),s=Re.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},Nt=(t,e)=>$e(e,t);me.exports={compareIdentifiers:$e,rcompareIdentifiers:Nt}});var L=h((si,Oe)=>{var j=v(),{MAX_LENGTH:Ie,MAX_SAFE_INTEGER:X}=P(),{safeRe:Le,safeSrc:Ne,t:U}=w(),Ot=F(),{compareIdentifiers:g}=z(),K=class t{constructor(e,r){if(r=Ot(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ie)throw new TypeError(`version is longer than ${Ie} characters`);j("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=e.trim().match(r.loose?Le[U.LOOSE]:Le[U.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>X||this.major<0)throw new TypeError("Invalid major version");if(this.minor>X||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>X||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&i<X)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(j("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),g(this.major,e.major)||g(this.minor,e.minor)||g(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let s=this.prerelease[r],n=e.prerelease[r];if(j("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return g(s,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let s=this.build[r],n=e.build[r];if(j("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return g(s,n)}while(++r)}inc(e,r,s){if(e.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=new RegExp(`^${this.options.loose?Ne[U.PRERELEASELOOSE]:Ne[U.PRERELEASE]}$`),i=`-${r}`.match(n);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];s===!1&&(i=[r]),g(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Oe.exports=K});var q=h((ni,de)=>{var Se=L(),St=(t,e,r=!1)=>{if(t instanceof Se)return t;try{return new Se(t,e)}catch(s){if(!r)return null;throw s}};de.exports=St});var Te=h((ii,Ae)=>{var dt=q(),At=(t,e)=>{let r=dt(t,e);return r?r.version:null};Ae.exports=At});var we=h((oi,qe)=>{var Tt=q(),qt=(t,e)=>{let r=Tt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};qe.exports=qt});var ve=h((li,Pe)=>{var ge=L(),wt=(t,e,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new ge(t instanceof ge?t.version:t,r).inc(e,s,n).version}catch{return null}};Pe.exports=wt});var De=h((ai,Ce)=>{var xe=q(),gt=(t,e)=>{let r=xe(t,null,!0),s=xe(e,null,!0),n=r.compare(s);if(n===0)return null;let i=n>0,o=i?r:s,c=i?s:r,u=!!o.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(o)===0)return c.minor&&!c.patch?"minor":"patch"}let $=u?"pre":"";return r.major!==s.major?$+"major":r.minor!==s.minor?$+"minor":r.patch!==s.patch?$+"patch":"prerelease"};Ce.exports=gt});var ye=h((ci,Ge)=>{var Pt=L(),vt=(t,e)=>new Pt(t,e).major;Ge.exports=vt});var je=h((ui,Fe)=>{var xt=L(),Ct=(t,e)=>new xt(t,e).minor;Fe.exports=Ct});var Ue=h((Ei,Xe)=>{var Dt=L(),Gt=(t,e)=>new Dt(t,e).patch;Xe.exports=Gt});var _e=h((fi,Ve)=>{var yt=q(),Ft=(t,e)=>{let r=yt(t,e);return r&&r.prerelease.length?r.prerelease:null};Ve.exports=Ft});var d=h((hi,He)=>{var be=L(),jt=(t,e,r)=>new be(t,r).compare(new be(e,r));He.exports=jt});var Me=h((pi,ke)=>{var Xt=d(),Ut=(t,e,r)=>Xt(e,t,r);ke.exports=Ut});var We=h((Ri,Ye)=>{var Vt=d(),_t=(t,e)=>Vt(t,e,!0);Ye.exports=_t});var V=h(($i,ze)=>{var Be=L(),bt=(t,e,r)=>{let s=new Be(t,r),n=new Be(e,r);return s.compare(n)||s.compareBuild(n)};ze.exports=bt});var Ze=h((mi,Ke)=>{var Ht=V(),kt=(t,e)=>t.sort((r,s)=>Ht(r,s,e));Ke.exports=kt});var Qe=h((Ii,Je)=>{var Mt=V(),Yt=(t,e)=>t.sort((r,s)=>Mt(s,r,e));Je.exports=Yt});var x=h((Li,er)=>{var Wt=d(),Bt=(t,e,r)=>Wt(t,e,r)>0;er.exports=Bt});var _=h((Ni,rr)=>{var zt=d(),Kt=(t,e,r)=>zt(t,e,r)<0;rr.exports=Kt});var Z=h((Oi,tr)=>{var Zt=d(),Jt=(t,e,r)=>Zt(t,e,r)===0;tr.exports=Jt});var J=h((Si,sr)=>{var Qt=d(),es=(t,e,r)=>Qt(t,e,r)!==0;sr.exports=es});var b=h((di,nr)=>{var rs=d(),ts=(t,e,r)=>rs(t,e,r)>=0;nr.exports=ts});var H=h((Ai,ir)=>{var ss=d(),ns=(t,e,r)=>ss(t,e,r)<=0;ir.exports=ns});var Q=h((Ti,or)=>{var is=Z(),os=J(),ls=x(),as=b(),cs=_(),us=H(),Es=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return is(t,r,s);case"!=":return os(t,r,s);case">":return ls(t,r,s);case">=":return as(t,r,s);case"<":return cs(t,r,s);case"<=":return us(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};or.exports=Es});var ar=h((qi,lr)=>{var fs=L(),hs=q(),{safeRe:k,t:M}=w(),ps=(t,e)=>{if(t instanceof fs)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?k[M.COERCEFULL]:k[M.COERCE]);else{let u=e.includePrerelease?k[M.COERCERTLFULL]:k[M.COERCERTL],R;for(;(R=u.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||R.index+R[0].length!==r.index+r[0].length)&&(r=R),u.lastIndex=R.index+R[1].length+R[2].length;u.lastIndex=-1}if(r===null)return null;let s=r[2],n=r[3]||"0",i=r[4]||"0",o=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return hs(`${s}.${n}.${i}${o}${c}`,e)};lr.exports=ps});var ur=h((wi,cr)=>{var ee=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,r)}return this}};cr.exports=ee});var A=h((gi,pr)=>{var Rs=/\s+/g,re=class t{constructor(e,r){if(r=ms(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof te)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Rs," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(n=>!fr(n[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&As(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let s=0;s<r.length;s++)s>0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let s=((this.options.includePrerelease&&Ss)|(this.options.loose&&ds))+":"+e,n=Er.get(s);if(n)return n;let i=this.options.loose,o=i?S[N.HYPHENRANGELOOSE]:S[N.HYPHENRANGE];e=e.replace(o,Gs(this.options.includePrerelease)),m("hyphen replace",e),e=e.replace(S[N.COMPARATORTRIM],Ls),m("comparator trim",e),e=e.replace(S[N.TILDETRIM],Ns),m("tilde trim",e),e=e.replace(S[N.CARETTRIM],Os),m("caret trim",e);let c=e.split(" ").map(E=>Ts(E,this.options)).join(" ").split(/\s+/).map(E=>Ds(E,this.options));i&&(c=c.filter(E=>(m("loose invalid filter",E,this.options),!!E.match(S[N.COMPARATORLOOSE])))),m("range list",c);let u=new Map,R=c.map(E=>new te(E,this.options));for(let E of R){if(fr(E))return[E];u.set(E.value,E)}u.size>1&&u.has("")&&u.delete("");let $=[...u.values()];return Er.set(s,$),$}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>hr(s,r)&&e.set.some(n=>hr(n,r)&&s.every(i=>n.every(o=>i.intersects(o,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Is(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(ys(this.set[r],e,this.options))return!0;return!1}};pr.exports=re;var $s=ur(),Er=new $s,ms=F(),te=C(),m=v(),Is=L(),{safeRe:S,t:N,comparatorTrimReplace:Ls,tildeTrimReplace:Ns,caretTrimReplace:Os}=w(),{FLAG_INCLUDE_PRERELEASE:Ss,FLAG_LOOSE:ds}=P(),fr=t=>t.value==="<0.0.0-0",As=t=>t.value==="",hr=(t,e)=>{let r=!0,s=t.slice(),n=s.pop();for(;r&&s.length;)r=s.every(i=>n.intersects(i,e)),n=s.pop();return r},Ts=(t,e)=>(m("comp",t,e),t=gs(t,e),m("caret",t),t=qs(t,e),m("tildes",t),t=vs(t,e),m("xrange",t),t=Cs(t,e),m("stars",t),t),O=t=>!t||t.toLowerCase()==="x"||t==="*",qs=(t,e)=>t.trim().split(/\s+/).map(r=>ws(r,e)).join(" "),ws=(t,e)=>{let r=e.loose?S[N.TILDELOOSE]:S[N.TILDE];return t.replace(r,(s,n,i,o,c)=>{m("tilde",t,s,n,i,o,c);let u;return O(n)?u="":O(i)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:O(o)?u=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:c?(m("replaceTilde pr",c),u=`>=${n}.${i}.${o}-${c} <${n}.${+i+1}.0-0`):u=`>=${n}.${i}.${o} <${n}.${+i+1}.0-0`,m("tilde return",u),u})},gs=(t,e)=>t.trim().split(/\s+/).map(r=>Ps(r,e)).join(" "),Ps=(t,e)=>{m("caret",t,e);let r=e.loose?S[N.CARETLOOSE]:S[N.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(n,i,o,c,u)=>{m("caret",t,n,i,o,c,u);let R;return O(i)?R="":O(o)?R=`>=${i}.0.0${s} <${+i+1}.0.0-0`:O(c)?i==="0"?R=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`:R=`>=${i}.${o}.0${s} <${+i+1}.0.0-0`:u?(m("replaceCaret pr",u),i==="0"?o==="0"?R=`>=${i}.${o}.${c}-${u} <${i}.${o}.${+c+1}-0`:R=`>=${i}.${o}.${c}-${u} <${i}.${+o+1}.0-0`:R=`>=${i}.${o}.${c}-${u} <${+i+1}.0.0-0`):(m("no pr"),i==="0"?o==="0"?R=`>=${i}.${o}.${c}${s} <${i}.${o}.${+c+1}-0`:R=`>=${i}.${o}.${c}${s} <${i}.${+o+1}.0-0`:R=`>=${i}.${o}.${c} <${+i+1}.0.0-0`),m("caret return",R),R})},vs=(t,e)=>(m("replaceXRanges",t,e),t.split(/\s+/).map(r=>xs(r,e)).join(" ")),xs=(t,e)=>{t=t.trim();let r=e.loose?S[N.XRANGELOOSE]:S[N.XRANGE];return t.replace(r,(s,n,i,o,c,u)=>{m("xRange",t,s,n,i,o,c,u);let R=O(i),$=R||O(o),E=$||O(c),I=E;return n==="="&&I&&(n=""),u=e.includePrerelease?"-0":"",R?n===">"||n==="<"?s="<0.0.0-0":s="*":n&&I?($&&(o=0),c=0,n===">"?(n=">=",$?(i=+i+1,o=0,c=0):(o=+o+1,c=0)):n==="<="&&(n="<",$?i=+i+1:o=+o+1),n==="<"&&(u="-0"),s=`${n+i}.${o}.${c}${u}`):$?s=`>=${i}.0.0${u} <${+i+1}.0.0-0`:E&&(s=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),m("xRange return",s),s})},Cs=(t,e)=>(m("replaceStars",t,e),t.trim().replace(S[N.STAR],"")),Ds=(t,e)=>(m("replaceGTE0",t,e),t.trim().replace(S[e.includePrerelease?N.GTE0PRE:N.GTE0],"")),Gs=t=>(e,r,s,n,i,o,c,u,R,$,E,I)=>(O(s)?r="":O(n)?r=`>=${s}.0.0${t?"-0":""}`:O(i)?r=`>=${s}.${n}.0${t?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,O(R)?u="":O($)?u=`<${+R+1}.0.0-0`:O(E)?u=`<${R}.${+$+1}.0-0`:I?u=`<=${R}.${$}.${E}-${I}`:t?u=`<${R}.${$}.${+E+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),ys=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(m(t[s].semver),t[s].semver!==te.ANY&&t[s].semver.prerelease.length>0){let n=t[s].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var C=h((Pi,Nr)=>{var D=Symbol("SemVer ANY"),ie=class t{static get ANY(){return D}constructor(e,r){if(r=Rr(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ne("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,ne("comp",this)}parse(e){let r=this.options.loose?$r[mr.COMPARATORLOOSE]:$r[mr.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Ir(s[2],this.options.loose):this.semver=D}toString(){return this.value}test(e){if(ne("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if(typeof e=="string")try{e=new Ir(e,this.options)}catch{return!1}return se(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Lr(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Lr(this.value,r).test(e.semver):(r=Rr(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||se(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||se(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Nr.exports=ie;var Rr=F(),{safeRe:$r,t:mr}=w(),se=Q(),ne=v(),Ir=L(),Lr=A()});var G=h((vi,Or)=>{var Fs=A(),js=(t,e,r)=>{try{e=new Fs(e,r)}catch{return!1}return e.test(t)};Or.exports=js});var dr=h((xi,Sr)=>{var Xs=A(),Us=(t,e)=>new Xs(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));Sr.exports=Us});var Tr=h((Ci,Ar)=>{var Vs=L(),_s=A(),bs=(t,e,r)=>{let s=null,n=null,i=null;try{i=new _s(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!s||n.compare(o)===-1)&&(s=o,n=new Vs(s,r))}),s};Ar.exports=bs});var wr=h((Di,qr)=>{var Hs=L(),ks=A(),Ms=(t,e,r)=>{let s=null,n=null,i=null;try{i=new ks(e,r)}catch{return null}return t.forEach(o=>{i.test(o)&&(!s||n.compare(o)===1)&&(s=o,n=new Hs(s,r))}),s};qr.exports=Ms});var vr=h((Gi,Pr)=>{var oe=L(),Ys=A(),gr=x(),Ws=(t,e)=>{t=new Ys(t,e);let r=new oe("0.0.0");if(t.test(r)||(r=new oe("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){let n=t.set[s],i=null;n.forEach(o=>{let c=new oe(o.semver.version);switch(o.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!i||gr(c,i))&&(i=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||gr(r,i))&&(r=i)}return r&&t.test(r)?r:null};Pr.exports=Ws});var Cr=h((yi,xr)=>{var Bs=A(),zs=(t,e)=>{try{return new Bs(t,e).range||"*"}catch{return null}};xr.exports=zs});var Y=h((Fi,Fr)=>{var Ks=L(),yr=C(),{ANY:Zs}=yr,Js=A(),Qs=G(),Dr=x(),Gr=_(),en=H(),rn=b(),tn=(t,e,r,s)=>{t=new Ks(t,s),e=new Js(e,s);let n,i,o,c,u;switch(r){case">":n=Dr,i=en,o=Gr,c=">",u=">=";break;case"<":n=Gr,i=rn,o=Dr,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Qs(t,e,s))return!1;for(let R=0;R<e.set.length;++R){let $=e.set[R],E=null,I=null;if($.forEach(f=>{f.semver===Zs&&(f=new yr(">=0.0.0")),E=E||f,I=I||f,n(f.semver,E.semver,s)?E=f:o(f.semver,I.semver,s)&&(I=f)}),E.operator===c||E.operator===u||(!I.operator||I.operator===c)&&i(t,I.semver))return!1;if(I.operator===u&&o(t,I.semver))return!1}return!0};Fr.exports=tn});var Xr=h((ji,jr)=>{var sn=Y(),nn=(t,e,r)=>sn(t,e,">",r);jr.exports=nn});var Vr=h((Xi,Ur)=>{var on=Y(),ln=(t,e,r)=>on(t,e,"<",r);Ur.exports=ln});var Hr=h((Ui,br)=>{var _r=A(),an=(t,e,r)=>(t=new _r(t,r),e=new _r(e,r),t.intersects(e,r));br.exports=an});var Mr=h((Vi,kr)=>{var cn=G(),un=d();kr.exports=(t,e,r)=>{let s=[],n=null,i=null,o=t.sort(($,E)=>un($,E,r));for(let $ of o)cn($,e,r)?(i=$,n||(n=$)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);let c=[];for(let[$,E]of s)$===E?c.push($):!E&&$===o[0]?c.push("*"):E?$===o[0]?c.push(`<=${E}`):c.push(`${$} - ${E}`):c.push(`>=${$}`);let u=c.join(" || "),R=typeof e.raw=="string"?e.raw:String(e);return u.length<R.length?u:e}});var Zr=h((_i,Kr)=>{var Yr=A(),ae=C(),{ANY:le}=ae,y=G(),ce=d(),En=(t,e,r={})=>{if(t===e)return!0;t=new Yr(t,r),e=new Yr(e,r);let s=!1;e:for(let n of t.set){for(let i of e.set){let o=hn(n,i,r);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},fn=[new ae(">=0.0.0-0")],Wr=[new ae(">=0.0.0")],hn=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===le){if(e.length===1&&e[0].semver===le)return!0;r.includePrerelease?t=fn:t=Wr}if(e.length===1&&e[0].semver===le){if(r.includePrerelease)return!0;e=Wr}let s=new Set,n,i;for(let f of t)f.operator===">"||f.operator===">="?n=Br(n,f,r):f.operator==="<"||f.operator==="<="?i=zr(i,f,r):s.add(f.semver);if(s.size>1)return null;let o;if(n&&i){if(o=ce(n.semver,i.semver,r),o>0)return null;if(o===0&&(n.operator!==">="||i.operator!=="<="))return null}for(let f of s){if(n&&!y(f,String(n),r)||i&&!y(f,String(i),r))return null;for(let rt of e)if(!y(f,String(rt),r))return!1;return!0}let c,u,R,$,E=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,I=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;E&&E.prerelease.length===1&&i.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let f of e){if($=$||f.operator===">"||f.operator===">=",R=R||f.operator==="<"||f.operator==="<=",n){if(I&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===I.major&&f.semver.minor===I.minor&&f.semver.patch===I.patch&&(I=!1),f.operator===">"||f.operator===">="){if(c=Br(n,f,r),c===f&&c!==n)return!1}else if(n.operator===">="&&!y(n.semver,String(f),r))return!1}if(i){if(E&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===E.major&&f.semver.minor===E.minor&&f.semver.patch===E.patch&&(E=!1),f.operator==="<"||f.operator==="<="){if(u=zr(i,f,r),u===f&&u!==i)return!1}else if(i.operator==="<="&&!y(i.semver,String(f),r))return!1}if(!f.operator&&(i||n)&&o!==0)return!1}return!(n&&R&&!i&&o!==0||i&&$&&!n&&o!==0||I||E)},Br=(t,e,r)=>{if(!t)return e;let s=ce(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},zr=(t,e,r)=>{if(!t)return e;let s=ce(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};Kr.exports=En});var Jn=h((bi,et)=>{var ue=w(),Jr=P(),pn=L(),Qr=z(),Rn=q(),$n=Te(),mn=we(),In=ve(),Ln=De(),Nn=ye(),On=je(),Sn=Ue(),dn=_e(),An=d(),Tn=Me(),qn=We(),wn=V(),gn=Ze(),Pn=Qe(),vn=x(),xn=_(),Cn=Z(),Dn=J(),Gn=b(),yn=H(),Fn=Q(),jn=ar(),Xn=C(),Un=A(),Vn=G(),_n=dr(),bn=Tr(),Hn=wr(),kn=vr(),Mn=Cr(),Yn=Y(),Wn=Xr(),Bn=Vr(),zn=Hr(),Kn=Mr(),Zn=Zr();et.exports={parse:Rn,valid:$n,clean:mn,inc:In,diff:Ln,major:Nn,minor:On,patch:Sn,prerelease:dn,compare:An,rcompare:Tn,compareLoose:qn,compareBuild:wn,sort:gn,rsort:Pn,gt:vn,lt:xn,eq:Cn,neq:Dn,gte:Gn,lte:yn,cmp:Fn,coerce:jn,Comparator:Xn,Range:Un,satisfies:Vn,toComparators:_n,maxSatisfying:bn,minSatisfying:Hn,minVersion:kn,validRange:Mn,outside:Yn,gtr:Wn,ltr:Bn,intersects:zn,simplifyRange:Kn,subset:Zn,SemVer:pn,re:ue.re,src:ue.src,tokens:ue.t,SEMVER_SPEC_VERSION:Jr.SEMVER_SPEC_VERSION,RELEASE_TYPES:Jr.RELEASE_TYPES,compareIdentifiers:Qr.compareIdentifiers,rcompareIdentifiers:Qr.rcompareIdentifiers}});export{Jn as a};
@@ -1,2 +0,0 @@
1
- import{$ as ze,$a as Qe,Ba as ye,Bb as nt,Cb as K,Da as S,Db as Q,Ea as ge,Eb as Te,H as Fe,Hc as rt,Ic as st,Ja as Xe,Ka as Ee,L as Be,La as Ge,Ma as O,Oa as ve,Oc as v,Pa as Je,Pc as L,Qc as ot,Rc as it,S as pe,Ta as B,Ua as C,Va as k,Wa as Ye,Xa as qe,Ya as Ze,Za as We,_a as Ke,a as N,ab as et,b as xe,bb as I,da as p,ea as _,ga as m,gd as at,ha as Z,hb as z,hd as ee,id as ct,ja as g,k as je,kb as tt,kd as we,la as u,ld as te,ma as R,na as me,pa as Ve,q as Ue,qa as He,r as fe,ra as $e,ub as W,x as F}from"./chunk-6JZDPQRU.js";var j=class{},V=class{},A=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
2
- `).forEach(e=>{let n=e.indexOf(":");if(n>0){let s=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(s,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(t.name,e);let s=(t.op==="a"?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":let o=t.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let i=this.headers.get(e);if(!i)return;i=i.filter(c=>o.indexOf(c)===-1),i.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}break}}addHeaderEntry(t,e){let n=t.toLowerCase();this.maybeSetNormalizedName(t,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(t,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),s=t.toLowerCase();this.headers.set(s,n),this.maybeSetNormalizedName(t,s)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var re=class{encodeKey(t){return lt(t)}encodeValue(t){return lt(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Lt(r,t){let e=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let o=s.indexOf("="),[i,c]=o==-1?[t.decodeKey(s),""]:[t.decodeKey(s.slice(0,o)),t.decodeValue(s.slice(o+1))],a=e.get(i)||[];a.push(c),e.set(i,a)}),e}var xt=/%(\d[a-f0-9])/gi,jt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function lt(r){return encodeURIComponent(r).replace(xt,(t,e)=>{var n;return(n=jt[e])!=null?n:t})}function ne(r){return`${r}`}var D=class r{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new re,t.fromString){if(t.fromObject)throw new p(2805,!1);this.map=Lt(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let n=t.fromObject[e],s=Array.isArray(n)?n.map(ne):[ne(n)];this.map.set(e,s)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(n=>{let s=t[n];Array.isArray(s)?s.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:s,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new r({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(ne(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let n=this.map.get(t.param)||[],s=n.indexOf(ne(t.value));s!==-1&&n.splice(s,1),n.length>0?this.map.set(t.param,n):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var se=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Ut(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function dt(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function ut(r){return typeof Blob<"u"&&r instanceof Blob}function ht(r){return typeof FormData<"u"&&r instanceof FormData}function Ft(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var ft="Content-Type",pt="Accept",yt="X-Request-URL",gt="text/plain",Et="application/json",Bt=`${Et}, ${gt}, */*`,x=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,e,n,s){var i,c;this.url=e,this.method=t.toUpperCase();let o;if(Ut(this.method)||s?(this.body=n!==void 0?n:null,o=s):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),(i=this.headers)!=null||(this.headers=new A),(c=this.context)!=null||(this.context=new se),!this.params)this.params=new D,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let d=e.indexOf("?"),h=d===-1?"?":d<e.length-1?"&":"";this.urlWithParams=e+h+a}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||dt(this.body)||ut(this.body)||ht(this.body)||Ft(this.body)?this.body:this.body instanceof D?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ht(this.body)?null:ut(this.body)?this.body.type||null:dt(this.body)?null:typeof this.body=="string"?gt:this.body instanceof D?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Et:null}clone(t={}){var T,b,M,l;let e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,o=(T=t.transferCache)!=null?T:this.transferCache,i=t.body!==void 0?t.body:this.body,c=(b=t.withCredentials)!=null?b:this.withCredentials,a=(M=t.reportProgress)!=null?M:this.reportProgress,d=t.headers||this.headers,h=t.params||this.params,y=(l=t.context)!=null?l:this.context;return t.setHeaders!==void 0&&(d=Object.keys(t.setHeaders).reduce((f,w)=>f.set(w,t.setHeaders[w]),d)),t.setParams&&(h=Object.keys(t.setParams).reduce((f,w)=>f.set(w,t.setParams[w]),h)),new r(e,n,i,{params:h,headers:d,context:y,reportProgress:a,responseType:s,withCredentials:c,transferCache:o})}},P=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(P||{}),U=class{headers;status;statusText;url;ok;type;constructor(t,e=200,n="OK"){this.headers=t.headers||new A,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},oe=class r extends U{constructor(t={}){super(t)}type=P.ResponseHeader;clone(t={}){return new r({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},H=class r extends U{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=P.Response;clone(t={}){return new r({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},$=class extends U{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},zt=200,Vt=204;function Re(r,t){return{body:t,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var vt=(()=>{class r{handler;constructor(e){this.handler=e}request(e,n,s={}){let o;if(e instanceof x)o=e;else{let a;s.headers instanceof A?a=s.headers:a=new A(s.headers);let d;s.params&&(s.params instanceof D?d=s.params:d=new D({fromObject:s.params})),o=new x(e,n,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:d,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let i=fe(o).pipe(Be(a=>this.handler.handle(a)));if(e instanceof x||s.observe==="events")return i;let c=i.pipe(Fe(a=>a instanceof H));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(F(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new p(2806,!1);return a.body}));case"blob":return c.pipe(F(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new p(2807,!1);return a.body}));case"text":return c.pipe(F(a=>{if(a.body!==null&&typeof a.body!="string")throw new p(2808,!1);return a.body}));case"json":default:return c.pipe(F(a=>a.body))}case"response":return c;default:throw new p(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new D().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,s={}){return this.request("PATCH",e,Re(s,n))}post(e,n,s={}){return this.request("POST",e,Re(s,n))}put(e,n,s={}){return this.request("PUT",e,Re(s,n))}static \u0275fac=function(n){return new(n||r)(u(j))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();var Ht=new g("");function Tt(r,t){return t(r)}function $t(r,t){return(e,n)=>t.intercept(e,{handle:s=>r(s,n)})}function Xt(r,t,e){return(n,s)=>$e(e,()=>t(n,o=>r(o,s)))}var wt=new g(""),_e=new g(""),Rt=new g(""),De=new g("",{providedIn:"root",factory:()=>!0});function Gt(){let r=null;return(t,e)=>{var o;r===null&&(r=((o=R(wt,{optional:!0}))!=null?o:[]).reduceRight($t,Tt));let n=R(ye);if(R(De)){let i=n.add();return r(t,e).pipe(pe(()=>n.remove(i)))}else return r(t,e)}}var ie=(()=>{class r extends j{backend;injector;chain=null;pendingTasks=R(ye);contributeToStability=R(De);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(_e),...this.injector.get(Rt,[])]));this.chain=n.reduceRight((s,o)=>Xt(s,o,this.injector),Tt)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,s=>this.backend.handle(s)).pipe(pe(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||r)(u(V),u(He))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();var Jt=/^\)\]\}',?\n/,Yt=RegExp(`^${yt}:`,"m");function qt(r){return"responseURL"in r&&r.responseURL?r.responseURL:Yt.test(r.getAllResponseHeaders())?r.getResponseHeader(yt):null}var Me=(()=>{class r{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new p(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?Ue(n.\u0275loadImpl()):fe(null)).pipe(ze(()=>new je(o=>{let i=n.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((l,f)=>i.setRequestHeader(l,f.join(","))),e.headers.has(pt)||i.setRequestHeader(pt,Bt),!e.headers.has(ft)){let l=e.detectContentTypeHeader();l!==null&&i.setRequestHeader(ft,l)}if(e.responseType){let l=e.responseType.toLowerCase();i.responseType=l!=="json"?l:"text"}let c=e.serializeBody(),a=null,d=()=>{if(a!==null)return a;let l=i.statusText||"OK",f=new A(i.getAllResponseHeaders()),w=qt(i)||e.url;return a=new oe({headers:f,status:i.status,statusText:l,url:w}),a},h=()=>{let{headers:l,status:f,statusText:w,url:Le}=d(),E=null;f!==Vt&&(E=typeof i.response>"u"?i.responseText:i.response),f===0&&(f=E?zt:0);let he=f>=200&&f<300;if(e.responseType==="json"&&typeof E=="string"){let Ct=E;E=E.replace(Jt,"");try{E=E!==""?JSON.parse(E):null}catch(kt){E=Ct,he&&(he=!1,E={error:kt,text:E})}}he?(o.next(new H({body:E,headers:l,status:f,statusText:w,url:Le||void 0})),o.complete()):o.error(new $({error:E,headers:l,status:f,statusText:w,url:Le||void 0}))},y=l=>{let{url:f}=d(),w=new $({error:l,status:i.status||0,statusText:i.statusText||"Unknown Error",url:f||void 0});o.error(w)},T=!1,b=l=>{T||(o.next(d()),T=!0);let f={type:P.DownloadProgress,loaded:l.loaded};l.lengthComputable&&(f.total=l.total),e.responseType==="text"&&i.responseText&&(f.partialText=i.responseText),o.next(f)},M=l=>{let f={type:P.UploadProgress,loaded:l.loaded};l.lengthComputable&&(f.total=l.total),o.next(f)};return i.addEventListener("load",h),i.addEventListener("error",y),i.addEventListener("timeout",y),i.addEventListener("abort",y),e.reportProgress&&(i.addEventListener("progress",b),c!==null&&i.upload&&i.upload.addEventListener("progress",M)),i.send(c),o.next({type:P.Sent}),()=>{i.removeEventListener("error",y),i.removeEventListener("abort",y),i.removeEventListener("load",h),i.removeEventListener("timeout",y),e.reportProgress&&(i.removeEventListener("progress",b),c!==null&&i.upload&&i.upload.removeEventListener("progress",M)),i.readyState!==i.DONE&&i.abort()}})))}static \u0275fac=function(n){return new(n||r)(u(te))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Mt=new g(""),Zt="XSRF-TOKEN",Wt=new g("",{providedIn:"root",factory:()=>Zt}),Kt="X-XSRF-TOKEN",Qt=new g("",{providedIn:"root",factory:()=>Kt}),X=class{},en=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n,s){this.doc=e,this.platform=n,this.cookieName=s}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ee(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||r)(u(v),u(O),u(Wt))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function tn(r,t){let e=r.url.toLowerCase();if(!R(Mt)||r.method==="GET"||r.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(r);let n=R(X).getToken(),s=R(Qt);return n!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,n)})),t(r)}var Se=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(Se||{});function nn(r,t){return{\u0275kind:r,\u0275providers:t}}function rn(...r){let t=[vt,Me,ie,{provide:j,useExisting:ie},{provide:V,useFactory:()=>{var e;return(e=R(Ht,{optional:!0}))!=null?e:R(Me)}},{provide:_e,useValue:tn,multi:!0},{provide:Mt,useValue:!0},{provide:X,useClass:en}];for(let e of r)t.push(...e.\u0275providers);return me(t)}var mt=new g("");function sn(){return nn(Se.LegacyInterceptors,[{provide:mt,useFactory:Gt},{provide:_e,useExisting:mt,multi:!0}])}var le=new g(""),Pe=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(s=>{s.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,s,o){return this._findPluginFor(n).addEventListener(e,n,s,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new p(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||r)(u(le),u(S))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),G=class{_doc;constructor(t){this._doc=t}manager},ae="ng-app-id";function bt(r){for(let t of r)t.remove()}function _t(r,t){let e=t.createElement("style");return e.textContent=r,e}function on(r,t,e,n){var o;let s=(o=r.head)==null?void 0:o.querySelectorAll(`style[${ae}="${t}"],link[${ae}="${t}"]`);if(s)for(let i of s)i.removeAttribute(ae),i instanceof HTMLLinkElement?n.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&e.set(i.textContent,{usage:0,elements:[i]})}function Oe(r,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var Ne=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,s,o={}){this.doc=e,this.appId=n,this.nonce=s,this.isServer=we(o),on(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let s of e)this.addUsage(s,this.inline,_t);n==null||n.forEach(s=>this.addUsage(s,this.external,Oe))}removeStyles(e,n){for(let s of e)this.removeUsage(s,this.inline);n==null||n.forEach(s=>this.removeUsage(s,this.external))}addUsage(e,n,s){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,s(e,this.doc)))})}removeUsage(e,n){let s=n.get(e);s&&(s.usage--,s.usage<=0&&(bt(s.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])bt(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:s}]of this.inline)s.push(this.addElement(e,_t(n,this.doc)));for(let[n,{elements:s}]of this.external)s.push(this.addElement(e,Oe(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(ae,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||r)(u(v),u(Ee),u(ve,8),u(O))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Ae={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ce=/%COMP%/g;var St="%COMP%",an=`_nghost-${St}`,cn=`_ngcontent-${St}`,ln=!0,dn=new g("",{providedIn:"root",factory:()=>ln});function un(r){return cn.replace(Ce,r)}function hn(r){return an.replace(Ce,r)}function At(r,t){return t.map(e=>e.replace(Ce,r))}var ke=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,s,o,i,c,a,d=null,h=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=i,this.platformId=c,this.ngZone=a,this.nonce=d,this.tracingService=h,this.platformIsServer=we(c),this.defaultRenderer=new J(e,i,a,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===B.ShadowDom&&(n=xe(N({},n),{encapsulation:B.Emulated}));let s=this.getOrCreateRenderer(e,n);return s instanceof ce?s.applyToHost(e):s instanceof Y&&s.applyStyles(),s}getOrCreateRenderer(e,n){let s=this.rendererByCompId,o=s.get(n.id);if(!o){let i=this.doc,c=this.ngZone,a=this.eventManager,d=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,y=this.platformIsServer,T=this.tracingService;switch(n.encapsulation){case B.Emulated:o=new ce(a,d,n,this.appId,h,i,c,y,T);break;case B.ShadowDom:return new Ie(a,d,e,n,i,c,this.nonce,y,T);default:o=new Y(a,d,n,h,i,c,y,T);break}s.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||r)(u(Pe),u(Ne),u(Ee),u(dn),u(v),u(O),u(S),u(ve),u(Je,8))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),J=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,n,s,o){this.eventManager=t,this.doc=e,this.ngZone=n,this.platformIsServer=s,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(Ae[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(Dt(t)?t.content:t).appendChild(e)}insertBefore(t,e,n){t&&(Dt(t)?t.content:t).insertBefore(e,n)}removeChild(t,e){e.remove()}selectRootElement(t,e){let n=typeof t=="string"?this.doc.querySelector(t):t;if(!n)throw new p(-5104,!1);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;let o=Ae[s];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){let s=Ae[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&(z.DashCase|z.Important)?t.style.setProperty(e,n,s&z.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&z.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t!=null&&(t[e]=n)}setValue(t,e){t.nodeValue=e}listen(t,e,n,s){var i;if(typeof t=="string"&&(t=L().getGlobalEventTarget(this.doc,t),!t))throw new p(5102,!1);let o=this.decoratePreventDefault(n);return(i=this.tracingService)!=null&&i.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,e,o)),this.eventManager.addEventListener(t,e,o,s)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function Dt(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var Ie=class extends J{sharedStylesHost;hostEl;shadowRoot;constructor(t,e,n,s,o,i,c,a,d){var b;super(t,o,i,a,d),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=s.styles;h=At(s.id,h);for(let M of h){let l=document.createElement("style");c&&l.setAttribute("nonce",c),l.textContent=M,this.shadowRoot.appendChild(l)}let y=(b=s.getExternalStyles)==null?void 0:b.call(s);if(y)for(let M of y){let l=Oe(M,o);c&&l.setAttribute("nonce",c),this.shadowRoot.appendChild(l)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Y=class extends J{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,n,s,o,i,c,a,d){var T;super(t,o,i,c,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=s;let h=n.styles;this.styles=d?At(d,h):h,this.styleUrls=(T=n.getExternalStyles)==null?void 0:T.call(n,d)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ce=class extends Y{contentAttr;hostAttr;constructor(t,e,n,s,o,i,c,a,d){let h=s+"-"+n.id;super(t,e,n,o,i,c,a,d,h),this.contentAttr=un(h),this.hostAttr=hn(h)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}};var de=class r extends it{supportsDOMEvents=!0;static makeCurrent(){ot(new r)}onAndCancel(t,e,n,s){return t.addEventListener(e,n,s),()=>{t.removeEventListener(e,n,s)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=fn();return e==null?null:pn(e)}resetBaseElement(){q=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ee(document.cookie,t)}},q=null;function fn(){return q=q||document.querySelector("base"),q?q.getAttribute("href"):null}function pn(r){return new URL(r,document.baseURI).pathname}var ue=class{addToWindow(t){_.getAngularTestability=(n,s=!0)=>{let o=t.findTestabilityInTree(n,s);if(o==null)throw new p(5103,!1);return o},_.getAllAngularTestabilities=()=>t.getAllTestabilities(),_.getAllAngularRootElements=()=>t.getAllRootElements();let e=n=>{let s=_.getAllAngularTestabilities(),o=s.length,i=function(){o--,o==0&&n()};s.forEach(c=>{c.whenStable(i)})};_.frameworkStabilizers||(_.frameworkStabilizers=[]),_.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,n){if(e==null)return null;let s=t.getTestability(e);return s!=null?s:n?L().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}},mn=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||r)};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),It=(()=>{class r extends G{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,s,o){return e.addEventListener(n,s,o),()=>this.removeEventListener(e,n,s,o)}removeEventListener(e,n,s,o){return e.removeEventListener(n,s,o)}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})(),Ot=["alt","control","meta","shift"],yn={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},gn={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},Pt=(()=>{class r extends G{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,n,s,o){let i=r.parseEventName(n),c=r.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>L().onAndCancel(e,i.domEventName,c,o))}static parseEventName(e){let n=e.toLowerCase().split("."),s=n.shift();if(n.length===0||!(s==="keydown"||s==="keyup"))return null;let o=r._normalizeKey(n.pop()),i="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),i="code."),Ot.forEach(d=>{let h=n.indexOf(d);h>-1&&(n.splice(h,1),i+=d+".")}),i+=o,n.length!=0||o.length===0)return null;let a={};return a.domEventName=s,a.fullKey=i,a}static matchEventFullKeyCode(e,n){let s=yn[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(s=e.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Ot.forEach(i=>{if(i!==s){let c=gn[i];c(e)&&(o+=i+".")}}),o+=s,o===n)}static eventCallback(e,n,s){return o=>{r.matchEventFullKeyCode(o,e)&&s.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac})}return r})();function En(r,t){return st(N({rootComponent:r},vn(t)))}function vn(r){var t;return{appProviders:[...Nt,...(t=r==null?void 0:r.providers)!=null?t:[]],platformProviders:Mn}}function Tn(){de.makeCurrent()}function wn(){return new ge}function Rn(){return Xe(document),document}var Mn=[{provide:O,useValue:ct},{provide:Ge,useValue:Tn,multi:!0},{provide:v,useFactory:Rn}];var bn=[{provide:K,useClass:ue},{provide:nt,useClass:Q,deps:[S,Te,K]},{provide:Q,useClass:Q,deps:[S,Te,K]}],Nt=[{provide:Ve,useValue:"root"},{provide:ge,useFactory:wn},{provide:le,useClass:It,multi:!0,deps:[v]},{provide:le,useClass:Pt,multi:!0,deps:[v]},ke,Ne,Pe,{provide:tt,useExisting:ke},{provide:te,useClass:mn},[]],_n=(()=>{class r{constructor(){}static \u0275fac=function(n){return new(n||r)};static \u0275mod=W({type:r});static \u0275inj=Z({providers:[...Nt,...bn],imports:[at,rt]})}return r})();var Jr=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Sn=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=m({token:r,factory:function(n){let s=null;return n?s=new(n||r):s=u(An),s},providedIn:"root"})}return r})(),An=(()=>{class r extends Sn{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case I.NONE:return n;case I.HTML:return k(n,"HTML")?C(n):et(this._doc,String(n)).toString();case I.STYLE:return k(n,"Style")?C(n):n;case I.SCRIPT:if(k(n,"Script"))return C(n);throw new p(5200,!1);case I.URL:return k(n,"URL")?C(n):Qe(String(n));case I.RESOURCE_URL:if(k(n,"ResourceURL"))return C(n);throw new p(5201,!1);default:throw new p(5202,!1)}}bypassSecurityTrustHtml(e){return Ye(e)}bypassSecurityTrustStyle(e){return qe(e)}bypassSecurityTrustScript(e){return Ze(e)}bypassSecurityTrustUrl(e){return We(e)}bypassSecurityTrustResourceUrl(e){return Ke(e)}static \u0275fac=function(n){return new(n||r)(u(v))};static \u0275prov=m({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{V as a,D as b,P as c,H as d,vt as e,wt as f,rn as g,sn as h,ke as i,En as j,_n as k,Jr as l,Sn as m};
@@ -1 +0,0 @@
1
- import{f as a}from"./chunk-E3OYPTR2.js";import"./chunk-3BELKOOV.js";import"./chunk-YVLNDNOU.js";import"./chunk-Y7QARRGO.js";import"./chunk-736OOU3Z.js";import"./chunk-A6S2CSNA.js";import"./chunk-REYVZJK4.js";import"./chunk-TH7WF563.js";import"./chunk-Y5BDWQTD.js";import"./chunk-BBVFH2MI.js";import"./chunk-D3QNROQA.js";import"./chunk-TOSAT7VK.js";import"./chunk-2COJW6JZ.js";import"./chunk-ZEGJJ2QZ.js";import"./chunk-SZTIHT5G.js";import"./chunk-L4SPVWCZ.js";import"./chunk-YCHPFYO5.js";import"./chunk-B2ERIJJG.js";import"./chunk-IQBKWEOJ.js";import"./chunk-U3XAGOD7.js";import"./chunk-DVN556RD.js";import"./chunk-QX4JJLN4.js";import"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as StatusComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-AXQ3BC2K.js";import"./chunk-QX4JJLN4.js";import"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as RestartComponent};
@@ -1 +0,0 @@
1
- import{a as f,b as u}from"./chunk-OPSX6NGT.js";import{a as d}from"./chunk-P6AJ5TS2.js";import{c as p}from"./chunk-YVLNDNOU.js";import"./chunk-Y7QARRGO.js";import"./chunk-BBVFH2MI.js";import"./chunk-D3QNROQA.js";import{q as n}from"./chunk-U3XAGOD7.js";import{y as s}from"./chunk-DVN556RD.js";import"./chunk-QX4JJLN4.js";import{g as i}from"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import{c}from"./chunk-QIWZD5HO.js";import{gd as m,ha as r,ub as e}from"./chunk-6JZDPQRU.js";var C=[{path:"",loadComponent:()=>import("./chunk-XSVWXIZ3.js").then(o=>o.AccessoriesComponent)}],l=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=e({type:o});static \u0275inj=r({imports:[i.forChild(C),i]})}return o})();var S=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=e({type:o});static \u0275inj=r({imports:[m,s,n,p,c.forChild(),d,l,u,f]})}return o})();export{S as AccessoriesModule};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-YBF3LNSH.js";import"./chunk-QX4JJLN4.js";import"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as ContainerRestartComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-NKLCJU2S.js";import"./chunk-VZPOY7LH.js";import"./chunk-A6S2CSNA.js";import"./chunk-REYVZJK4.js";import"./chunk-TH7WF563.js";import"./chunk-Y5BDWQTD.js";import"./chunk-BBVFH2MI.js";import"./chunk-D3QNROQA.js";import"./chunk-TOSAT7VK.js";import"./chunk-2COJW6JZ.js";import"./chunk-ZEGJJ2QZ.js";import"./chunk-SZTIHT5G.js";import"./chunk-L4SPVWCZ.js";import"./chunk-YCHPFYO5.js";import"./chunk-B2ERIJJG.js";import"./chunk-IQBKWEOJ.js";import"./chunk-U3XAGOD7.js";import"./chunk-DVN556RD.js";import"./chunk-QX4JJLN4.js";import"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as PluginsComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-N4Z4UGMV.js";import"./chunk-3BELKOOV.js";import"./chunk-2COJW6JZ.js";import"./chunk-L4SPVWCZ.js";import"./chunk-QX4JJLN4.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as TerminalComponent};
@@ -1 +0,0 @@
1
- import{a as l,b as u,c as a,d as g}from"./chunk-6ANUJDFI.js";import{a as f}from"./chunk-UHIT6NQS.js";import"./chunk-QAB7LTBA.js";import{a as c}from"./chunk-Y7QARRGO.js";import"./chunk-REYVZJK4.js";import"./chunk-TH7WF563.js";import"./chunk-Y5BDWQTD.js";import"./chunk-BBVFH2MI.js";import"./chunk-D3QNROQA.js";import"./chunk-TOSAT7VK.js";import"./chunk-2COJW6JZ.js";import"./chunk-ZEGJJ2QZ.js";import"./chunk-SZTIHT5G.js";import"./chunk-L4SPVWCZ.js";import"./chunk-B2ERIJJG.js";import"./chunk-IQBKWEOJ.js";import{q as s}from"./chunk-U3XAGOD7.js";import{y as n,z as p}from"./chunk-DVN556RD.js";import"./chunk-QX4JJLN4.js";import{g as i}from"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import{c as d}from"./chunk-QIWZD5HO.js";import{gd as m,ha as t,ub as e}from"./chunk-6JZDPQRU.js";var v=[{path:"",loadComponent:()=>import("./chunk-AOTHIRMY.js").then(o=>o.SettingsComponent),canActivate:[f]}],C=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(v),i]})}return o})();var K=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[m,n,p,d,s,C,g,u,l,c,a]})}return o})();export{K as SettingsModule};
@@ -1 +0,0 @@
1
- import"./chunk-773OTB2G.js";import"./chunk-J3SOHF7U.js";import"./chunk-QX4JJLN4.js";import{g as n}from"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import{c as m}from"./chunk-QIWZD5HO.js";import{gd as i,ha as t,ub as r}from"./chunk-6JZDPQRU.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"restart-server",loadComponent:()=>import("./chunk-6UJYW2BC.js").then(o=>o.RestartLinuxComponent)},{path:"shutdown-server",loadComponent:()=>import("./chunk-Q6TB7XJF.js").then(o=>o.ShutdownLinuxComponent)}],u=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[n.forChild(d),n]})}return o})();var g=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=r({type:o});static \u0275inj=t({imports:[i,m.forChild(),u]})}return o})();export{g as LinuxModule};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-XK5P2LIO.js";import"./chunk-DVN556RD.js";import"./chunk-2IW5LNPB.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as LoginComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-JJGSWCQV.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as SupportComponent};
@@ -1 +0,0 @@
1
- import{a as wi,b as Pi}from"./chunk-VZPOY7LH.js";import{a as bi}from"./chunk-A6S2CSNA.js";import{n as xi,v as U}from"./chunk-REYVZJK4.js";import{a as z}from"./chunk-TH7WF563.js";import{a as vi}from"./chunk-D3QNROQA.js";import{a as Ci}from"./chunk-YCHPFYO5.js";import{a as hi}from"./chunk-IQBKWEOJ.js";import{h as ri,i as si,j as di,k as pi,l as ci,m as ui,n as gi,o as mi}from"./chunk-U3XAGOD7.js";import{c as X,e as Y,f as Z,g as ii,j as ei,m as ni,p as ti,q as oi,y as ai,z as li}from"./chunk-DVN556RD.js";import{a as R}from"./chunk-QX4JJLN4.js";import{a as fi,d as _i}from"./chunk-2IW5LNPB.js";import{b as F}from"./chunk-SHPANMJF.js";import{h as j,k as A}from"./chunk-4M72X5OK.js";import{a as N,b as $}from"./chunk-QIWZD5HO.js";import{Ac as c,Bc as u,Cc as D,Jb as B,Kb as b,Pb as s,Rb as L,Sb as G,Tb as W,Ub as a,Vb as l,Wb as d,Zc as E,_b as h,ad as K,bc as m,cb as q,cc as p,db as T,ed as Q,gb as t,h as y,ma as w,mc as g,nc as P,oc as v,tb as V,ua as f,va as _,w as I,wc as H,xc as k,yc as J,zb as x}from"./chunk-6JZDPQRU.js";var Ii=(n,r)=>({"orange-text":n,"grey-text":r}),O=n=>({opacity:n}),Ti=(n,r)=>({"green-text":n,"grey-text":r}),Vi=(n,r)=>({"purple-text":n,"grey-text":r}),Ei=(n,r)=>({scopedLink:n,verifiedLink:r});function $i(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l(),a(6,"p",19),g(7),c(8,"translate"),l()),n&2&&(t(),P(u(2,3,"plugins.manage.scoped_subtitle")),t(3),P(u(5,5,"plugins.manage.scoped_message")),t(3),P(u(8,7,"plugins.manage.verified_message")))}function Mi(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l()),n&2&&(t(),P(u(2,2,"plugins.manage.verified_subtitle")),t(3),P(u(5,4,"plugins.manage.verified_message")))}function Hi(n,r){n&1&&(a(0,"h6",18),g(1),c(2,"translate"),l(),a(3,"p",19),g(4),c(5,"translate"),l()),n&2&&(t(),P(u(2,2,"plugins.manage.unverified_subtitle")),t(3),P(u(5,4,"plugins.manage.unverified_message")))}function Di(n,r){if(n&1){let e=h();a(0,"button",20),m("click",function(){f(e);let i=p();return _(i.$activeModal.dismiss("Dismiss"))}),g(1),c(2,"translate"),l()}n&2&&(t(),v(" ",u(2,1,"form.button_close")," "))}function Ni(n,r){if(n&1){let e=h();a(0,"button",20),m("click",function(){f(e);let i=p();return _(i.$activeModal.dismiss("Dismiss"))}),g(1),c(2,"translate"),l()}n&2&&(t(),v(" ",u(2,1,"form.button_close")," "))}function ji(n,r){if(n&1&&(a(0,"a",17),g(1),c(2,"translate"),d(3,"i",21),l()),n&2){let e=p();b("href",e.plugin.links.homepage||e.plugin.links.npm,T),t(),v(" ",u(2,2,"plugins.button_homepage")," ")}}var yi=(()=>{class n{$activeModal=w(ui);plugin;defaultIcon="assets/hb-icon.png";linkScoped='<a href="https://github.com/homebridge/plugins/wiki/Scoped-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';linkVerified='<a href="https://github.com/homebridge/plugins/wiki/Verified-Plugins" target="_blank"><i class="fas fa-fw fa-external-link-alt primary-text"></i></a>';constructor(){}ngOnInit(){this.plugin.icon||(this.plugin.icon=this.defaultIcon)}handleIconError(){this.plugin.icon=this.defaultIcon}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],inputs:{plugin:"plugin"},decls:32,vars:45,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],["alt","Plugin Icon",1,"mb-3","plugin-icon-card",3,"error","src"],[1,"mb-1"],[1,"grey-text","mb-0","font-monospace"],[1,"grey-text","mb-1","font-monospace"],[1,"mb-3"],[1,"fas","fa-fw","fa-shield-alt","mb-3",2,"font-size","48px",3,"ngClass","ngStyle"],[1,"mb-0","grey-text",3,"innerHTML"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant"],[1,"text-center"],[1,"text-end"],["target","_blank","rel","noopener noreferrer",1,"btn","btn-primary","text-decoration-none",3,"href"],[1,"mb-2"],[1,"mb-1","grey-text"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"fas","fa-fw","fa-external-link-alt"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),g(3),c(4,"translate"),l(),a(5,"button",3),c(6,"translate"),m("click",function(){return i.$activeModal.dismiss("Dismiss")}),l()(),a(7,"div",4)(8,"img",5),m("error",function(){return i.handleIconError()}),l(),a(9,"h4",6),g(10),l(),a(11,"p",7),g(12),l(),a(13,"p",8),g(14),l(),a(15,"p",9),g(16),l(),d(17,"i",10)(18,"i",10)(19,"i",10),x(20,$i,9,9)(21,Mi,6,6)(22,Hi,6,6),d(23,"p",11),c(24,"translate"),l(),a(25,"div",12)(26,"div",13),x(27,Di,3,3,"button",14),l(),a(28,"div",15),x(29,Ni,3,3,"button",14),l(),a(30,"div",16),x(31,ji,4,4,"a",17),l()()()),o&2&&(t(3),P(u(4,20,"plugins.manage.information")),t(2),B("aria-label",u(6,22,"form.button_close")),t(3),b("src",i.plugin.icon,T),t(2),P(i.plugin.displayName),t(2),P(i.plugin.name),t(2),v("@",i.plugin.author,""),t(2),P(i.plugin.description),t(),b("ngClass",k(27,Ii,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin,i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin))("ngStyle",H(30,O,!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?1:.25)),t(),b("ngClass",k(32,Ti,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),i.plugin.isHbScoped||!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin))("ngStyle",H(35,O,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?1:.25)),t(),b("ngClass",k(37,Vi,i.plugin.isHbScoped,!i.plugin.isHbScoped))("ngStyle",H(40,O,i.plugin.isHbScoped?1:.25)),t(),s(i.plugin.isHbScoped?20:-1),t(),s(!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)?21:-1),t(),s(!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin?22:-1),t(),b("innerHTML",D(24,24,"plugins.manage.more_info",k(42,Ei,i.linkScoped,i.linkVerified)),q),t(4),s(i.plugin.links.homepage||i.plugin.links.npm?27:-1),t(2),s(!i.plugin.links.homepage&&!i.plugin.links.npm?29:-1),t(2),s(i.plugin.links.homepage||i.plugin.links.npm?31:-1))},dependencies:[$,E,K],styles:[".plugin-icon[_ngcontent-%COMP%]{height:75px;width:75px;border-radius:15px;border:1px solid #222222}"]})}return n})();var Ai=(n,r,e)=>({"purple-text":n,"green-text":r,"orange-text":e}),Fi=(n,r)=>({"fa-bridge-circle-exclamation orange-text":n,"fa-bridge-circle-xmark red-text":r});function Ri(n,r){n&1&&d(0,"i",25)}function Ui(n,r){n&1&&d(0,"i",26)}function zi(n,r){if(n&1){let e=h();a(0,"a",24),m("click",function(){f(e);let i=p();return _(i.openHb2InfoModal())}),x(1,Ri,1,0,"i",25)(2,Ui,1,0,"i",26),l()}if(n&2){let e=p();b("ngbTooltip","Homebridge v2.0 Readiness")("placement","right"),t(),s(e.hb2Status==="supported"?1:-1),t(),s(e.hb2Status==="unknown"?2:-1)}}function Oi(n,r){if(n&1){let e=h();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.checkAndUpdatePlugin(i.plugin,i.plugin.updateTag||"latest"))}),d(3,"i",28),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.button_update")),B("aria-label",u(2,4,"plugins.button_update")))}function qi(n,r){if(n&1){let e=h();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.switchToScoped(i.plugin))}),d(3,"i",29),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.manage.scoped.switch")),B("aria-label",u(2,4,"plugins.manage.scoped.switch")))}function Li(n,r){if(n&1){let e=h();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.settings(i.plugin))}),d(3,"i",30),l()}n&2&&(b("ngbTooltip",u(1,2,"plugins.button_set_up")),B("aria-label",u(2,4,"plugins.button_set_up")))}function Gi(n,r){if(n&1){let e=h();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.bridgeSettings(i.plugin))}),d(3,"i",31),l()}n&2&&(b("ngbTooltip",u(1,2,"child_bridge.setup")),B("aria-label",u(2,4,"child_bridge.setup")))}function Wi(n,r){if(n&1){let e=h();a(0,"a",27),c(1,"translate"),c(2,"translate"),m("click",function(){f(e);let i=p();return _(i.$plugin.bridgeSettings(i.plugin))}),d(3,"i",32),l()}n&2&&(b("ngbTooltip",u(1,2,"child_bridge.bridge_connect")),B("aria-label",u(2,4,"child_bridge.bridge_connect")))}function Ji(n,r){if(n&1&&d(0,"i",13),n&2){let e=p();b("ngClass",k(1,Fi,e.childBridgeStatus==="pending",e.childBridgeStatus==="down"))}}function Ki(n,r){if(n&1){let e=h();a(0,"a",15),m("click",function(){f(e);let i=p();return _(i.openFundingModal(i.plugin))}),d(1,"i",33),a(2,"span",17),g(3),l()()}if(n&2){let e=p();t(3),v("@",e.plugin.author,"")}}function Qi(n,r){if(n&1&&(a(0,"span",17),d(1,"i",34),g(2),l()),n&2){let e=p();t(2),v("@",e.plugin.author," ")}}function Xi(n,r){if(n&1&&(a(0,"span"),g(1),c(2,"date"),l()),n&2){let e=p(2);t(),v("(",D(2,1,e.plugin.lastUpdated,"yyyy-MM-dd"),")")}}function Yi(n,r){if(n&1&&(a(0,"span"),d(1,"i",35),a(2,"span",17),g(3),x(4,Xi,3,4,"span"),l()()),n&2){let e=p();t(3),v("v",e.plugin.latestVersion," "),t(),s(e.plugin.lastUpdated?4:-1)}}function Zi(n,r){if(n&1&&(d(0,"i",36),g(1)),n&2){let e=p();t(),v("v",e.plugin.installedVersion," ")}}function ie(n,r){if(n&1){let e=h();a(0,"a",27),c(1,"translate"),m("click",function(){f(e);let i=p();return _(i.doChildBridgeAction("restart"))}),d(2,"i",37),l()}if(n&2){let e=p();b("ngbTooltip",u(1,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart"))}}function ee(n,r){if(n&1){let e=h();a(0,"a",38),m("click",function(){f(e);let i=p();return _(i.enablePlugin(i.plugin))}),d(1,"i",39),c(2,"translate"),l()}n&2&&(t(),b("ngbTooltip",u(2,1,"plugins.status_disabled")))}function ne(n,r){if(n&1){let e=h();a(0,"a",40),m("click",function(){f(e);let i=p();return _(i.$plugin.installAlternateVersion(i.plugin))}),d(1,"i",41),l()}}function te(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.viewPluginLog(i.plugin))}),d(1,"i",50),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.plugin_logs")," "))}function oe(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.installAlternateVersion(i.plugin))}),d(1,"i",51),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.manage_version")," "))}function ae(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.jsonEditor(i.plugin))}),d(1,"i",52),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.json_config")," "))}function le(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.disablePlugin(i.plugin))}),d(1,"i",53),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.disable")," "))}function re(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.enablePlugin(i.plugin))}),d(1,"i",54),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.manage.enable")," "))}function se(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.uninstallPlugin(i.plugin,i.setChildBridges))}),d(1,"i",55),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"plugins.button_uninstall")," "))}function de(n,r){n&1&&d(0,"div",48)}function pe(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("restart"))}),d(1,"i",58),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.restart_plural":"child_bridge.restart")," ")}}function ce(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("stop"))}),d(1,"i",59),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.stop_plural":"child_bridge.stop")," ")}}function ue(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(3);return _(i.doChildBridgeAction("start"))}),d(1,"i",60),g(2),c(3,"translate"),l()}if(n&2){let e=p(3);t(2),v(" ",u(3,1,e.setChildBridges.length>1?"child_bridge.start_plural":"child_bridge.start")," ")}}function ge(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",56),g(2),c(3,"translate"),l(),x(4,pe,4,3,"button",47)(5,ce,4,3,"button",47)(6,ue,4,3,"button",47),a(7,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.resetChildBridges(i.setChildBridges))}),d(8,"i",57),g(9),c(10,"translate"),l()}if(n&2){let e=p(2);t(2),v(" ",u(3,5,"child_bridge.bridge_settings")," "),t(2),s(e.childBridgeRestartInProgress?-1:4),t(),s(e.allChildBridgesStopped?-1:5),t(),s(e.allChildBridgesStopped?6:-1),t(3),v(" ",u(10,7,"child_bridge.reset_accessories")," ")}}function me(n,r){n&1&&d(0,"div",48)}function fe(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",61),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.setup")," "))}function _e(n,r){n&1&&d(0,"div",48)}function he(n,r){if(n&1){let e=h();a(0,"button",45),m("click",function(){f(e);let i=p(2);return _(i.$plugin.bridgeSettings(i.plugin))}),d(1,"i",61),g(2),c(3,"translate"),l()}n&2&&(t(2),v(" ",u(3,1,"child_bridge.setup")," "))}function Ce(n,r){n&1&&d(0,"div",48)}function be(n,r){if(n&1&&(a(0,"a",49),d(1,"i",62),g(2),c(3,"translate"),l()),n&2){let e=p(2);b("href",e.plugin.links.bugs,T),t(2),v(" ",u(3,2,"support.links.issue")," ")}}function ve(n,r){if(n&1){let e=h();a(0,"span",23)(1,"a",42),d(2,"i",43),l(),a(3,"div",44)(4,"button",45),m("click",function(){f(e);let i=p();return _(i.$plugin.settings(i.plugin))}),d(5,"i",46),g(6),c(7,"translate"),l(),x(8,te,4,3,"button",47)(9,oe,4,3,"button",47)(10,ae,4,3,"button",47)(11,le,4,3,"button",47)(12,re,4,3,"button",47)(13,se,4,3,"button",47)(14,de,1,0,"div",48)(15,ge,11,9)(16,me,1,0,"div",48)(17,fe,4,3,"button",47)(18,_e,1,0,"div",48)(19,he,4,3,"button",47)(20,Ce,1,0,"div",48)(21,be,4,4,"a",49),l()()}if(n&2){let e=p();t(),B("aria-label","Plugin Actions Dropdown"),t(5),v(" ",u(7,16,"plugins.button_settings")," "),t(2),s(e.plugin.isConfigured&&!e.plugin.disabled?8:-1),t(),s(e.plugin.publicPackage?9:-1),t(),s(!e.isMobile&&e.plugin.name!=="homebridge-config-ui-x"?10:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"&&!e.plugin.disabled?11:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"&&e.plugin.disabled?12:-1),t(),s(e.plugin.name!=="homebridge-config-ui-x"?13:-1),t(),s(!e.plugin.disabled&&e.plugin.isConfigured&&e.plugin.hasChildBridges&&e.plugin.installedVersion&&e.plugin.name!=="homebridge-config-ui-x"?14:-1),t(),s(e.plugin.hasChildBridges&&!e.plugin.disabled?15:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?16:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&!e.plugin.recommendChildBridge?17:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?18:-1),t(),s(e.plugin.isConfigured&&!e.plugin.hasChildBridges&&!e.plugin.disabled&&e.plugin.recommendChildBridge&&e.plugin.updateAvailable?19:-1),t(),s(e.plugin.links!=null&&e.plugin.links.bugs?20:-1),t(),s(e.plugin.links!=null&&e.plugin.links.bugs?21:-1)}}var Bi=(()=>{class n{$api=w(A);$md=w(vi);$modal=w(gi);$plugin=w(U);$settings=w(F);$toastr=w(j);$translate=w(N);$ws=w(R);plugin;hasChildBridges=!1;hasUnpairedChildBridges=!1;allChildBridgesStopped=!1;childBridgeStatus="pending";childBridgeRestartInProgress=!1;defaultIcon="assets/hb-icon.png";isMobile;setChildBridges=[];hb2Status="unknown";io;constructor(){}set childBridges(e){var C,M;this.hasChildBridges=e.length>0,this.hasUnpairedChildBridges=e.filter(S=>S.paired===!1).length>0,this.allChildBridgesStopped=e.filter(S=>S.manuallyStopped===!0).length===e.length,this.hasChildBridges&&(e.some(S=>S.status==="down")?this.childBridgeStatus="down":e.some(S=>S.status==="pending")?this.childBridgeStatus="pending":e.some(S=>S.status==="ok")&&(this.childBridgeStatus="ok")),this.setChildBridges=e;let o=this.$settings.env.homebridgeVersion.split(".")[0],i=((M=(C=this.plugin.engines)==null?void 0:C.homebridge)==null?void 0:M.split("||").map(S=>S.trim()))||[];this.hb2Status=o==="2"?"hide":i.some(S=>S.startsWith("^2")||S.startsWith(">=2"))?"supported":this.hb2Status}ngOnInit(){this.isMobile=this.$md.detect.mobile(),this.io=this.$ws.getExistingNamespace("child-bridges"),this.isMobile&&this.plugin.displayName.toLowerCase().startsWith("homebridge ")&&(this.plugin.displayName=this.plugin.displayName.replace(/^homebridge /i,"")),this.plugin.icon||(this.plugin.icon=this.defaultIcon)}openFundingModal(e){let o=this.$modal.open(Pi,{size:"lg",backdrop:"static"});o.componentInstance.plugin=e}pluginInfoModal(e){let o=this.$modal.open(yi,{size:"lg",backdrop:"static"});o.componentInstance.plugin=e}disablePlugin(e){let o=this.$modal.open(wi,{size:"lg",backdrop:"static"});o.componentInstance.pluginName=e.displayName,o.componentInstance.isConfigured=e.isConfigured,o.componentInstance.isConfiguredDynamicPlatform=e.isConfiguredDynamicPlatform,o.result.then(()=>y(this,null,function*(){try{yield I(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/disable`,{})),e.disabled=!0,this.hasChildBridges&&this.doChildBridgeAction("stop"),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.disable.error"),this.$translate.instant("toast.title_error"))}}))}enablePlugin(e){let o=this.$modal.open(hi,{size:"lg",backdrop:"static"});o.componentInstance.title=e.name,o.componentInstance.message=this.$translate.instant("plugins.manage.confirm_enable",{pluginName:e.displayName}),o.componentInstance.confirmButtonLabel=this.$translate.instant("plugins.manage.enable"),o.componentInstance.faIconClass="fa-circle-play primary-text",o.result.then(()=>y(this,null,function*(){try{yield I(this.$api.put(`/config-editor/plugin/${encodeURIComponent(e.name)}/enable`,{})),e.disabled=!1,this.hasChildBridges&&(yield this.doChildBridgeAction("start")),this.$modal.open(z,{size:"lg",backdrop:"static"})}catch(i){console.error(i),this.$toastr.error(this.$translate.instant("plugins.enable.error"),this.$translate.instant("toast.title_error"))}}))}viewPluginLog(e){let o=this.$modal.open(xi,{size:"xl",backdrop:"static"});o.componentInstance.plugin=e}doChildBridgeAction(e){return y(this,null,function*(){this.childBridgeRestartInProgress=!0;try{for(let o of this.setChildBridges)yield I(this.io.request(`${e}-child-bridge`,o.username))}catch(o){console.error(o),this.$toastr.error(this.$translate.instant("plugins.bridge.action_error",{action:e}),this.$translate.instant("toast.title_error")),this.childBridgeRestartInProgress=!1}finally{setTimeout(()=>{this.childBridgeRestartInProgress=!1},e==="restart"?12e3:e==="stop"?6e3:1e3)}})}handleIconError(){this.plugin.icon=this.defaultIcon}openHb2InfoModal(){let e=this.$modal.open(Ci,{size:"lg",backdrop:"static"});e.componentInstance.title="Plugin Readiness",this.hb2Status==="supported"?(e.componentInstance.subtitle=`${this.plugin.displayName} is ready for Homebridge v2.0`,e.componentInstance.message="The developer has specifically marked your installed version of the plugin as compatible with Homebridge v2.0.",e.componentInstance.faIconClass="fa-check-circle green-text"):(e.componentInstance.subtitle=`${this.plugin.displayName} might not be ready for Homebridge v2.0`,e.componentInstance.message="The developer has not specifically marked your installed version of the plugin as compatible with Homebridge v2.0, but it may still work.",e.componentInstance.faIconClass="fa-question-circle orange-text"),e.componentInstance.ctaButtonLabel=this.$translate.instant("form.button_more_info"),e.componentInstance.ctaButtonLink="https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0"}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["app-plugin-card"]],inputs:{plugin:"plugin",childBridges:"childBridges"},decls:36,vars:24,consts:[[1,"card","card-body","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"d-flex","flex-column","me-3","align-items-center","justify-content-between"],["alt","Plugin Icon",1,"plugin-icon-card","mb-3",3,"error","src"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover","aria-label","Homebridge v2.0 Readiness",3,"ngbTooltip","placement"],[1,"d-flex","flex-column","justify-content-between",2,"min-width","calc(100% - 80px)"],[1,"d-flex","flex-row","align-items-end"],[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],[1,"card-title","mb-2","text-truncate"],[1,"ms-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"ngbTooltip"],[1,"fas","fa-fw","fa-spinner","fa-pulse","fa-lg","grey-text","ms-3",3,"hidden"],[1,"fas","fa-fw","fa-lg","ms-3",3,"ngClass"],[1,"card-text","mb-2","text-truncate"],["href","javascript:void(0)",1,"card-link",3,"click"],[1,"fas","fa-fw","fa-shield-alt","fa-lg","me-1",3,"ngClass"],[1,"grey-text"],[1,"card-text","mb-2"],["href","javascript:void(0)",1,"card-link"],[1,"card-text","mb-0","grey-text"],["href","javascript:void(0)",1,"card-link","red-text"],["href","javascript:void(0)"],["ngbDropdown","","placement","left",1,"d-inline-block","ms-3","mt-auto"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover","aria-label","Homebridge v2.0 Readiness",3,"click","ngbTooltip","placement"],["aria-label","The developer has specifically marked this plugin as compatible with Homebridge v2.0",1,"fas","fa-check-circle","green-text","fa-xl"],["aria-label","The developer has not specifically marked this plugin as compatible with Homebridge v2.0, but it may still work.",1,"fas","fa-question-circle","orange-text","fa-xl"],["href","javascript:void(0)","container","body","openDelay","150","triggers","hover",1,"card-link",3,"click","ngbTooltip"],[1,"far","fa-fw","fa-arrow-alt-circle-up","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-arrow-right-arrow-left","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-sliders","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-bridge","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"icon-button","fas","fa-fw","fa-qrcode","primary-text","fa-lg","fa-fade","ms-3",2,"--fa-animation-duration","2s"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1","pink-text"],[1,"fas","fa-fw","fa-heart","fa-lg","me-1",2,"opacity","0.5"],[1,"far","fa-fw","fa-circle-dot","fa-lg","me-1"],[1,"far","fa-fw","fa-circle-check","fa-lg","me-1"],[1,"fas","fa-fw","fa-lg","fa-power-off","ms-3"],["href","javascript:void(0)",1,"card-link","red-text",3,"click"],["container","body","openDelay","150","triggers","hover",1,"far","fa-fw","fa-pause-circle","fa-lg",3,"ngbTooltip"],["href","javascript:void(0)",3,"click"],[1,"far","fa-fw","fa-arrow-alt-circle-down","fa-lg"],["href","javascript:void(0)","ngbDropdownToggle","",1,"card-link","text-decoration-none","mt-auto",2,"outline","none"],[1,"fa-solid","fa-fw","fa-ellipsis-v","fa-lg"],["ngbDropdownMenu","","aria-labelledby","Plugin Actions Dropdown"],["ngbDropdownItem","",3,"click"],[1,"fas","fa-fw","fa-sliders"],["ngbDropdownItem",""],[1,"dropdown-divider"],["ngbDropdownItem","","rel","noopener noreferrer","target","_blank",3,"href"],[1,"fas","fa-fw","fa-wave-square"],[1,"fas","fa-fw","fa-code-compare"],[1,"fas","fa-fw","fa-code"],[1,"far","fa-fw","fa-circle-pause"],[1,"far","fa-fw","fa-circle-play"],[1,"fas","fa-fw","fa-trash"],[1,"fas","fa-fw","fa-bridge"],[1,"fas","fa-fw","fa-broom"],[1,"fa-fw","icon-button","fas","fa-fw","fa-power-off"],[1,"fas","fa-fw","fa-stop"],[1,"fas","fa-fw","fa-play"],[1,"icon-button","fas","fa-fw","fa-bridge"],[1,"icon-button","fa","fa-fw","fa-question-circle-o"]],template:function(o,i){o&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"img",3),m("error",function(){return i.handleIconError()}),l(),x(4,zi,3,4,"a",4),l(),a(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h5",9),g(10),l(),a(11,"div",10),x(12,Oi,4,6,"a",11)(13,qi,4,6,"a",11)(14,Li,4,6,"a",11)(15,Gi,4,6,"a",11)(16,Wi,4,6,"a",11),d(17,"i",12),x(18,Ji,1,4,"i",13),l()(),a(19,"p",14)(20,"a",15),m("click",function(){return i.pluginInfoModal(i.plugin)}),d(21,"i",16),a(22,"span",17),g(23),l()()(),a(24,"p",18),x(25,Ki,4,1,"a",19)(26,Qi,3,1,"span",17),l(),a(27,"div",8)(28,"p",20),x(29,Yi,5,2,"span")(30,Zi,2,1),l(),a(31,"div",10),x(32,ie,3,3,"a",11)(33,ee,3,3,"a",21)(34,ne,2,0,"a",22)(35,ve,22,18,"span",23),l()()()()()()()),o&2&&(t(3),b("src",i.plugin.icon,T),t(),s(i.plugin.installedVersion&&i.hb2Status!=="hide"?4:-1),t(6),P(i.plugin.displayName),t(2),s(i.plugin.installedVersion&&i.plugin.updateAvailable&&!i.childBridgeRestartInProgress?12:-1),t(),s(i.plugin.installedVersion&&(i.plugin.newHbScope==null?null:i.plugin.newHbScope.switch)===i.plugin.installedVersion&&!i.childBridgeRestartInProgress?13:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&!i.plugin.isConfigured&&!i.childBridgeRestartInProgress&&!i.plugin.disabled?14:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&!i.plugin.hasChildBridges&&!i.plugin.disabled&&i.plugin.recommendChildBridge&&!i.childBridgeRestartInProgress?15:-1),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&i.hasUnpairedChildBridges&&i.childBridgeStatus==="ok"&&!i.plugin.disabled?16:-1),t(),b("hidden",!i.childBridgeRestartInProgress),t(),s(i.plugin.installedVersion&&(!i.plugin.newHbScope||i.plugin.newHbScope.switch!==i.plugin.installedVersion)&&!i.plugin.updateAvailable&&i.plugin.isConfigured&&i.plugin.hasChildBridges&&!i.childBridgeRestartInProgress&&!i.hasUnpairedChildBridges&&i.childBridgeStatus!=="ok"&&!i.plugin.disabled?18:-1),t(3),b("ngClass",J(20,Ai,i.plugin.isHbScoped,!i.plugin.isHbScoped&&(i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin),!i.plugin.isHbScoped&&!i.plugin.verifiedPlugin&&!i.plugin.verifiedPlusPlugin)),t(2),P(i.plugin.name),t(2),s((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?25:-1),t(),s((i.plugin.verifiedPlugin||i.plugin.verifiedPlusPlugin)&&i.plugin.funding?-1:26),t(3),s(i.plugin.publicPackage&&!i.plugin.installedVersion?29:-1),t(),s(i.plugin.installedVersion?30:-1),t(2),s(!i.plugin.disabled&&i.plugin.hasChildBridges&&i.childBridgeStatus==="ok"?32:-1),t(),s(i.plugin.installedVersion&&i.plugin.disabled?33:-1),t(),s(i.plugin.publicPackage&&!i.plugin.installedVersion?34:-1),t(),s(i.plugin.installedVersion?35:-1))},dependencies:[mi,E,ci,pi,di,si,ri,Q,$],encapsulation:2})}return n})();var xe=(n,r)=>({"fa-magnifying-glass":n,"fa-exclamation-circle":r});function we(n,r){n&1&&d(0,"app-spinner")}function Pe(n,r){if(n&1){let e=h();a(0,"a",9),m("click",function(){f(e);let i=p();return _(i.onClearSearch())}),d(1,"i",10),l()}}function Se(n,r){if(n&1&&(a(0,"div",11),d(1,"app-plugin-card",13),l()),n&2){let e=r.$implicit,o=p(2);t(),b("plugin",e)("childBridges",o.getPluginChildBridges(e))}}function ye(n,r){if(n&1&&(a(0,"div",12),d(1,"i",14),a(2,"p"),g(3),c(4,"translate"),l()()),n&2){let e=p(2);t(),b("ngClass",k(4,xe,!e.showExitButton,e.showExitButton)),t(2),P(u(4,2,e.showExitButton?"plugins.placeholder_search_none":"plugins.placeholder_search_first"))}}function Be(n,r){if(n&1&&(a(0,"div",8),G(1,Se,2,2,"div",11,L),x(3,ye,5,7,"div",12),l()),n&2){let e=p();t(),W(e.installedPlugins),t(2),s(e.installedPlugins.length===0&&!e.loading&&!e.mainError?3:-1)}}var Cn=(()=>{class n{$api=w(A);$plugin=w(U);$router=w(_i);$settings=w(F);$toastr=w(j);$translate=w(N);$ws=w(R);isSearchMode=!1;mainError=!1;loading=!0;installedPlugins=[];childBridges=[];showExitButton=!1;form=new ii({query:new ei("")});io;navigationSubscription;constructor(){}ngOnInit(){return y(this,null,function*(){this.io=this.$ws.connectToNamespace("child-bridges"),this.io.connected.subscribe(()=>y(this,null,function*(){this.getChildBridgeMetadata(),this.io.socket.emit("monitor-child-bridge-status"),this.loadInstalledPlugins().then(()=>{let e=this.$router.parseUrl(this.$router.url).queryParams.installed;if(e){let o=this.installedPlugins.find(i=>i.name===e);o&&!o.isConfigured&&this.$plugin.settings(o),this.$router.navigate(["/plugins"])}})})),this.io.socket.on("child-bridge-status-update",e=>{let o=this.childBridges.find(i=>i.username===e.username);o?Object.assign(o,e):this.childBridges.push(e)}),this.navigationSubscription=this.$router.events.subscribe(e=>{e instanceof fi&&this.loadInstalledPlugins()})})}loadInstalledPlugins(){return y(this,null,function*(){this.form.setValue({query:""}),this.showExitButton=!1,this.installedPlugins=[],this.loading=!0,this.mainError=!1;try{let e=yield I(this.$api.get("/plugins"));this.installedPlugins=e.filter(i=>i.name!=="homebridge-config-ui-x"),yield this.appendMetaInfo();let o=this.installedPlugins.sort((i,C)=>i.updateAvailable!==C.updateAvailable?i.updateAvailable?-1:1:i.newHbScope&&!C.newHbScope?-1:i.disabled!==C.disabled?i.disabled?1:-1:i.isConfigured!==C.isConfigured?i.isConfigured?1:-1:i.hasChildBridgesUnpaired!==C.hasChildBridgesUnpaired?i.hasChildBridgesUnpaired?-1:1:i.hasChildBridges!==C.hasChildBridges&&this.$settings.env.recommendChildBridges?i.hasChildBridges?1:-1:i.name.localeCompare(C.name));return this.loading=!1,o}catch(e){console.error(e),this.loading=!1,this.mainError=!0,this.$toastr.error(this.$translate.instant("plugins.toast_failed_to_load_plugins"),this.$translate.instant("toast.title_error"))}})}appendMetaInfo(){return y(this,null,function*(){yield Promise.all(this.installedPlugins.filter(e=>e.installedVersion).map(e=>y(this,null,function*(){try{let o=yield I(this.$api.get(`/config-editor/plugin/${encodeURIComponent(e.name)}`));e.isConfigured=o.length>0,e.isConfiguredDynamicPlatform=e.isConfigured&&Object.prototype.hasOwnProperty.call(o[0],"platform"),e.recommendChildBridge=e.isConfiguredDynamicPlatform&&this.$settings.env.recommendChildBridges&&!["homebridge","homebridge-config-ui-x"].includes(e.name),e.hasChildBridges=e.isConfigured&&o.some(C=>C._bridge&&C._bridge.username);let i=this.getPluginChildBridges(e);e.hasChildBridgesUnpaired=i.some(C=>!C.paired)}catch{e.isConfigured=!0,e.hasChildBridges=!0}})))})}search(){this.installedPlugins=[],this.loading=!0,this.showExitButton=!0,this.$api.get(`/plugins/search/${encodeURIComponent(this.form.value.query)}`).subscribe({next:e=>{let o=new Set;this.installedPlugins=e.reduce((i,C)=>{if(C.name==="homebridge-config-ui-x"||o.has(C.name))return i;if(C.newHbScope){let M=C.newHbScope.to,S=e.some(ki=>ki.name===M);(C.installedVersion||!S)&&(o.add(M),i.push(C))}else i.push(C);return i},[]),this.appendMetaInfo(),this.loading=!1},error:e=>{this.loading=!1,this.isSearchMode=!1,console.error(e),this.$toastr.error(e.error.message||e.message,this.$translate.instant("toast.title_error")),this.loadInstalledPlugins()}})}onClearSearch(){this.loadInstalledPlugins()}onSubmit({value:e}){e.query.length?(this.isSearchMode=!0,this.search()):this.isSearchMode&&(this.isSearchMode=!1,this.loadInstalledPlugins())}getChildBridgeMetadata(){this.io.request("get-homebridge-child-bridge-status").subscribe(e=>{this.childBridges=e})}getPluginChildBridges(e){return this.childBridges.filter(o=>o.plugin===e.name)}ngOnDestroy(){this.navigationSubscription&&this.navigationSubscription.unsubscribe(),this.io.end()}static \u0275fac=function(o){return new(o||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],decls:13,vars:10,consts:[[1,"row","mb-3"],[1,"col-12"],[1,"primary-text","m-0"],[1,"row"],[1,"col-md-12"],["novalidate","",3,"ngSubmit","formGroup"],["type","text","formControlName","query",1,"hb-npm-search",3,"placeholder"],["href","javascript:void(0)",1,"hb-npm-search-clear"],[1,"d-flex","flex-wrap","justify-content-between"],["href","javascript:void(0)",1,"hb-npm-search-clear",3,"click"],[1,"far","fa-fw","fa-times-circle"],[1,"hb-plugin-space-between"],[1,"alert","alert-info","mt-4","text-center","w-100"],[3,"plugin","childBridges"],[1,"fas","fa-fw","primary-text","my-3",2,"font-size","75px",3,"ngClass"]],template:function(o,i){o&1&&(x(0,we,1,0,"app-spinner"),a(1,"div",0)(2,"div",1)(3,"h3",2),g(4),c(5,"translate"),l()()(),a(6,"div",3)(7,"div",4)(8,"form",5),m("ngSubmit",function(){return i.onSubmit(i.form)}),d(9,"input",6),c(10,"translate"),x(11,Pe,2,0,"a",7),l()()(),x(12,Be,4,1,"div",8)),o&2&&(s(i.loading?0:-1),t(4),P(u(5,6,"menu.label_plugins")),t(4),b("formGroup",i.form),t(),b("placeholder",u(10,8,"plugins.placeholder_search_plugin")),t(2),s(i.showExitButton?11:-1),t(),s(i.loading?-1:12))},dependencies:[bi,ai,ni,X,Y,Z,li,ti,oi,Bi,$,E],styles:[".hb-npm-search[_ngcontent-%COMP%]{outline:none;box-sizing:inherit!important;background-color:inherit;height:50px!important;width:100%;border-width:.5px;padding:10px;margin-bottom:15px}@media (hover: hover){.hb-npm-search[_ngcontent-%COMP%]:hover{border:1px solid #000000}}.hb-npm-search[_ngcontent-%COMP%]:focus{border:1px solid #000000;box-shadow:0 1px #000}.hb-npm-search-clear[_ngcontent-%COMP%]{position:absolute;right:25px;font-size:35px;color:#d0d0d0;line-height:50px;cursor:pointer}.hb-plugin-space-between[_ngcontent-%COMP%]{box-sizing:border-box;width:calc(50% - 6.6666666667px)}@media only screen and (max-width: 991px){.hb-plugin-space-between[_ngcontent-%COMP%]{width:100%}}"]})}return n})();export{Cn as a};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-UE3HPVVJ.js";import"./chunk-Y5BDWQTD.js";import"./chunk-D3QNROQA.js";import"./chunk-DVN556RD.js";import"./chunk-2IW5LNPB.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as StartupScriptComponent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-TLHK2BEJ.js";import"./chunk-TOSAT7VK.js";import"./chunk-2COJW6JZ.js";import"./chunk-SZTIHT5G.js";import"./chunk-L4SPVWCZ.js";import"./chunk-IQBKWEOJ.js";import"./chunk-U3XAGOD7.js";import"./chunk-DVN556RD.js";import"./chunk-QX4JJLN4.js";import"./chunk-UXBIRDFV.js";import"./chunk-SHPANMJF.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as LogsComponent};
@@ -1 +0,0 @@
1
- import{A as N,B as x,C as D,D as W,E as I,F as j,G as O,H as q,I as B,J as G,K as R,L as U,M as V,N as z,O as E,P as J,Q as K,R as P,S as Q,e as f,f as a,g as s,h as C,i as d,j as c,k as u,l,m as g,n as M,o as y,p as h,q as v,r as S,s as b,t as w,u as A,v as F,w as k,x as T,y as H,z as L}from"./chunk-YVLNDNOU.js";import{b as X}from"./chunk-BBVFH2MI.js";import{q as i}from"./chunk-U3XAGOD7.js";import{y as n,z as t}from"./chunk-DVN556RD.js";import{c as p}from"./chunk-QIWZD5HO.js";import{gd as e,ha as m,ub as r}from"./chunk-6JZDPQRU.js";var fm=(()=>{class o{static \u0275fac=function(Y){return new(Y||o)};static \u0275mod=r({type:o});static \u0275inj=m({providers:[a],imports:[e,n,t,p.forChild(),s,i,X,Q,f,G,B,U,D,h,v,V,T,k,H,L,S,N,x,c,P,K,J,E,y,M,R,g,q,O,I,W,F,j,z,A,d,C,b,w,l,u]})}return o})();export{fm as a};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-J3SOHF7U.js";import"./chunk-4M72X5OK.js";import"./chunk-G75CPMPQ.js";import"./chunk-QIWZD5HO.js";import"./chunk-6JZDPQRU.js";export{a as ShutdownLinuxComponent};