homebridge-config-ui-x 5.12.1-beta.0 → 5.12.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/package.json +1 -1
  2. package/public/chunk-2OYRXBN2.js +1 -0
  3. package/public/chunk-2RZGQOIV.js +1 -0
  4. package/public/chunk-2TYRSR7L.js +1 -0
  5. package/public/chunk-2ZONQRJY.js +1 -0
  6. package/public/chunk-3SEP5DLZ.js +1 -0
  7. package/public/chunk-3Z2ANIU6.js +1 -0
  8. package/public/chunk-3ZAUWVFS.js +1 -0
  9. package/public/chunk-4SYWCOWD.js +1 -0
  10. package/public/{chunk-KIZPS7DE.js → chunk-4VXAGXIE.js} +1 -1
  11. package/public/chunk-5BNEKASD.js +1 -0
  12. package/public/chunk-5GLW5TDA.js +1 -0
  13. package/public/{chunk-2IZ5GLDL.js → chunk-5KS2DH7B.js} +1 -1
  14. package/public/chunk-5RBSEAWH.js +1 -0
  15. package/public/chunk-6JD6QYDM.js +1 -0
  16. package/public/{chunk-QKXN6IC6.js → chunk-6LMBPSI7.js} +1 -1
  17. package/public/chunk-6PJ56ZYO.js +1 -0
  18. package/public/chunk-6TVBUEIO.js +1 -0
  19. package/public/chunk-725QXWIS.js +1 -0
  20. package/public/{chunk-KQ3Z53BI.js → chunk-74D66TIP.js} +1 -1
  21. package/public/chunk-7UVP7RXM.js +1 -0
  22. package/public/{chunk-WRZTVTB6.js → chunk-AJ6G5D4H.js} +1 -1
  23. package/public/chunk-AMYBOLIJ.js +1 -0
  24. package/public/{chunk-XBMS7SCE.js → chunk-AQMA3RDW.js} +1 -1
  25. package/public/chunk-AVNUTXZU.js +1 -0
  26. package/public/chunk-B7HJCRSF.js +1 -0
  27. package/public/chunk-B7M44SMZ.js +1 -0
  28. package/public/{chunk-NJGEMRNN.js → chunk-BYKIYQDT.js} +1 -1
  29. package/public/{chunk-VNT2T75N.js → chunk-C7II5VP2.js} +1 -1
  30. package/public/{chunk-TFTTSOLT.js → chunk-CH55NUDR.js} +1 -1
  31. package/public/{chunk-7NOPBNIZ.js → chunk-COMRMPAN.js} +1 -1
  32. package/public/{chunk-ELTBAOHD.js → chunk-CVR7HH5R.js} +2 -2
  33. package/public/{chunk-W76BGWDJ.js → chunk-D36GOGOL.js} +1 -1
  34. package/public/{chunk-YUNDMK7D.js → chunk-D7DWUFHN.js} +1 -1
  35. package/public/chunk-DIANFPJO.js +1 -0
  36. package/public/chunk-DIV6SBSA.js +1 -0
  37. package/public/{chunk-VQZXH6H7.js → chunk-DZSNO3SI.js} +1 -1
  38. package/public/{chunk-JB4LNFON.js → chunk-E5XCBASH.js} +1 -1
  39. package/public/{chunk-DFVNQJY7.js → chunk-EDQYUSSK.js} +1 -1
  40. package/public/chunk-EGSAGFD6.js +1 -0
  41. package/public/{chunk-WBNNLXVW.js → chunk-EJDOJG5I.js} +1 -1
  42. package/public/{chunk-H2UEBCT6.js → chunk-EKUI2KLJ.js} +1 -1
  43. package/public/chunk-ELBRHYEQ.js +1 -0
  44. package/public/chunk-FE2B7I65.js +1 -0
  45. package/public/{chunk-QMJOVI3M.js → chunk-FEF3KUJO.js} +1 -1
  46. package/public/{chunk-6SBZOHFM.js → chunk-FOZS44SP.js} +1 -1
  47. package/public/chunk-GQP3IWNY.js +1 -0
  48. package/public/{chunk-GXT4SPB4.js → chunk-GRKUQDKZ.js} +1 -1
  49. package/public/chunk-GUGASWDS.js +1 -0
  50. package/public/chunk-HBKEAKUY.js +1 -0
  51. package/public/chunk-HPMVQQCQ.js +1 -0
  52. package/public/chunk-HYXVTKH5.js +1 -0
  53. package/public/chunk-I4SED5RO.js +1 -0
  54. package/public/{chunk-ELSY3N4O.js → chunk-I5I4J3CI.js} +1 -1
  55. package/public/chunk-IEA4TRJP.js +1 -0
  56. package/public/{chunk-M6TAMCUV.js → chunk-JHCMYPZI.js} +1 -1
  57. package/public/chunk-KII4A2TO.js +1 -0
  58. package/public/{chunk-XHXRISSG.js → chunk-KVCLSFUU.js} +1 -1
  59. package/public/{chunk-LOHNS7FV.js → chunk-L56VCSQ2.js} +1 -1
  60. package/public/chunk-LHNLN7G4.js +1 -0
  61. package/public/{chunk-JRJZJIV2.js → chunk-LTLKZ6BM.js} +1 -1
  62. package/public/chunk-MQYFARVS.js +1 -0
  63. package/public/{chunk-VSPME4PA.js → chunk-MWXRPLUX.js} +1 -1
  64. package/public/chunk-N5RLFJCF.js +1 -0
  65. package/public/chunk-NE5TKDBZ.js +1 -0
  66. package/public/{chunk-QDCSNDML.js → chunk-NNMBFXIZ.js} +1 -1
  67. package/public/{chunk-4RTFV66E.js → chunk-O27K467V.js} +1 -1
  68. package/public/chunk-OEMJNAOZ.js +1 -0
  69. package/public/chunk-OKDYJSK3.js +1 -0
  70. package/public/chunk-OMS2DGGK.js +1 -0
  71. package/public/chunk-OXW7WUD2.js +1 -0
  72. package/public/chunk-OYAUZ7WO.js +1 -0
  73. package/public/chunk-P36LCHFC.js +1 -0
  74. package/public/chunk-P46NZURT.js +1 -0
  75. package/public/{chunk-YNWFNSNN.js → chunk-PPX7XLRU.js} +1 -1
  76. package/public/chunk-PXHERBFM.js +2 -0
  77. package/public/{chunk-IE2OD64R.js → chunk-QHLVWXBN.js} +1 -1
  78. package/public/{chunk-376NJ4JA.js → chunk-QSXYRFV2.js} +1 -1
  79. package/public/chunk-RLF5HK3M.js +1 -0
  80. package/public/chunk-STYJ7GX2.js +1 -0
  81. package/public/chunk-T5HDXHUI.js +1 -0
  82. package/public/chunk-TJM4IBUQ.js +1 -0
  83. package/public/chunk-TNHQCJ4K.js +1 -0
  84. package/public/chunk-TS4TGXTB.js +1 -0
  85. package/public/{chunk-6C4IUINW.js → chunk-U32VG5WU.js} +1 -1
  86. package/public/{chunk-2ZETN4H4.js → chunk-UIS7AEE6.js} +1 -1
  87. package/public/chunk-UQ6A4TOF.js +1 -0
  88. package/public/chunk-VNBFOH2R.js +4 -0
  89. package/public/chunk-W4IPMDNP.js +1 -0
  90. package/public/{chunk-M3KQANPV.js → chunk-WLACRWP7.js} +1 -1
  91. package/public/chunk-XO4RLEIC.js +1 -0
  92. package/public/chunk-XYOWFUTO.js +1 -0
  93. package/public/{chunk-65SHUKA4.js → chunk-Y2T2JCJS.js} +1 -1
  94. package/public/chunk-Z5ETX2UJ.js +1 -0
  95. package/public/chunk-ZAZ3JGIS.js +1 -0
  96. package/public/{chunk-ZFKD5Q4T.js → chunk-ZLBX5GO7.js} +1 -1
  97. package/public/chunk-ZO7KUAS7.js +1 -0
  98. package/public/chunk-ZSOLIIEA.js +1 -0
  99. package/public/chunk-ZTOOYWTR.js +1 -0
  100. package/public/{chunk-ZJFRXDDO.js → chunk-ZVVR6KI7.js} +1 -1
  101. package/public/index.html +1 -1
  102. package/public/{main-YL4WUDRU.js → main-T3PH2DNO.js} +1 -1
  103. package/public/chunk-23V3ZHHN.js +0 -4
  104. package/public/chunk-4JPNEFLH.js +0 -1
  105. package/public/chunk-5GBDFFOQ.js +0 -1
  106. package/public/chunk-5J6FDLB7.js +0 -1
  107. package/public/chunk-5OAGPV2D.js +0 -1
  108. package/public/chunk-6OVZOJUT.js +0 -1
  109. package/public/chunk-74YM4OSM.js +0 -1
  110. package/public/chunk-7CY762OC.js +0 -1
  111. package/public/chunk-7LNXXBIE.js +0 -1
  112. package/public/chunk-7TW4U5ET.js +0 -1
  113. package/public/chunk-ALWBPP22.js +0 -1
  114. package/public/chunk-B6RKSEW3.js +0 -1
  115. package/public/chunk-BLF5IIQI.js +0 -1
  116. package/public/chunk-BYRP6GXK.js +0 -1
  117. package/public/chunk-C5FPXJOQ.js +0 -1
  118. package/public/chunk-C72MXF33.js +0 -1
  119. package/public/chunk-CLQGWMDP.js +0 -1
  120. package/public/chunk-CXRLFGOD.js +0 -1
  121. package/public/chunk-CZI3UVMH.js +0 -1
  122. package/public/chunk-DSCDW5PD.js +0 -1
  123. package/public/chunk-DVLX24N2.js +0 -1
  124. package/public/chunk-ENNQMSYQ.js +0 -1
  125. package/public/chunk-F7JEYIYP.js +0 -1
  126. package/public/chunk-FBMNEU62.js +0 -1
  127. package/public/chunk-FLCYAQH5.js +0 -1
  128. package/public/chunk-GAYKGX4P.js +0 -1
  129. package/public/chunk-GNKBS4UO.js +0 -1
  130. package/public/chunk-H3VX2BIO.js +0 -1
  131. package/public/chunk-H6UNJZBF.js +0 -1
  132. package/public/chunk-JPGTD7MD.js +0 -1
  133. package/public/chunk-K45E54BZ.js +0 -1
  134. package/public/chunk-L4VGJUWK.js +0 -1
  135. package/public/chunk-L6Q2JELL.js +0 -1
  136. package/public/chunk-MHFV5QSL.js +0 -1
  137. package/public/chunk-ML4BDJRC.js +0 -1
  138. package/public/chunk-NHVLW3LX.js +0 -1
  139. package/public/chunk-OB3PTX3Z.js +0 -1
  140. package/public/chunk-P5MQL2T7.js +0 -1
  141. package/public/chunk-PAWAMEPH.js +0 -1
  142. package/public/chunk-PMDJKRLE.js +0 -1
  143. package/public/chunk-PTFXXQF2.js +0 -1
  144. package/public/chunk-PYOONJ25.js +0 -1
  145. package/public/chunk-Q65KD35M.js +0 -1
  146. package/public/chunk-QCZZKIYO.js +0 -1
  147. package/public/chunk-QD637MO5.js +0 -1
  148. package/public/chunk-QZ3OEC3U.js +0 -1
  149. package/public/chunk-RMCMUFT7.js +0 -1
  150. package/public/chunk-RYV47HXJ.js +0 -1
  151. package/public/chunk-SJOWHT2B.js +0 -1
  152. package/public/chunk-SLRAVUKI.js +0 -1
  153. package/public/chunk-U5D4L5DP.js +0 -1
  154. package/public/chunk-UFIZB5XW.js +0 -1
  155. package/public/chunk-V4ZGSQKL.js +0 -1
  156. package/public/chunk-WG5DYV7E.js +0 -1
  157. package/public/chunk-WLUIIX75.js +0 -1
  158. package/public/chunk-XIHWQFTE.js +0 -1
  159. package/public/chunk-XLLRYJGK.js +0 -1
  160. package/public/chunk-XUGDJIIQ.js +0 -1
  161. package/public/chunk-YTCGCDXK.js +0 -1
  162. package/public/chunk-YTH23ATC.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as Hn}from"./chunk-TFTTSOLT.js";import{r as Nn,s as ri}from"./chunk-QCZZKIYO.js";import{a as On}from"./chunk-ZFKD5Q4T.js";import{s as Fe,t as ne}from"./chunk-DYMBIGE6.js";import{a as Ce}from"./chunk-GTDQP2AN.js";import{b as Dn}from"./chunk-WRZTVTB6.js";import{C as le,a as An,b as In,c as Ln,e as de,l as pe,t as Fn,u as Vn,w as Pn}from"./chunk-M6TAMCUV.js";import{b as Ee}from"./chunk-2IZ5GLDL.js";import{C as wn,D as w,F as Ne,I as En,g as Ue,i as Bn,j as Le}from"./chunk-LOHNS7FV.js";import{Aa as Cn,Ab as C,Ac as Lt,Bc as Tn,Cb as at,Cc as Mn,Db as tt,Dc as l,Eb as it,Ec as d,F as Ye,Fb as T,Fc as ue,Gb as s,Hb as c,I as fn,Ib as f,Jb as x,Kb as b,Kc as ae,Lb as F,Mb as xn,Mc as Li,Nb as Sn,Nc as E,R as Wt,Rb as G,Rc as Oe,Sb as Ze,Ua as Ke,W as vn,X as ii,Xb as S,Yb as Se,Za as o,Zb as u,_ as ni,aa as k,d as ee,e as cn,ea as te,ga as V,ha as P,hb as _n,hc as Xe,ia as I,ib as oi,ic as j,ja as N,jc as L,kc as p,lc as v,ma as be,mb as ie,mc as g,n as dn,nb as B,nc as $,oa as yt,oc as nt,pa as gn,pb as yn,pc as kn,qb as rt,qc as At,rc as Z,sa as mt,sb as ge,sc as Q,tc as J,vc as bn,w as pn,wc as we,x as mn,xa as hn,ya as ve,yb as y,yc as O,z as un,zb as h,zc as It}from"./chunk-UX5CFJ7O.js";import{a as Et,b as Dt,e as Da,g as Aa,h as se}from"./chunk-B4AJQJMI.js";var Rn=Da(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.Enums=st.Categories=st.Characteristics=st.Services=void 0;st.Services={"00000260-0000-1000-8000-0026BB765291":"AccessCode",AccessCode:"00000260-0000-1000-8000-0026BB765291","000000DA-0000-1000-8000-0026BB765291":"AccessControl",AccessControl:"000000DA-0000-1000-8000-0026BB765291","0000003E-0000-1000-8000-0026BB765291":"AccessoryInformation",AccessoryInformation:"0000003E-0000-1000-8000-0026BB765291","00000270-0000-1000-8000-0026BB765291":"AccessoryMetrics",AccessoryMetrics:"00000270-0000-1000-8000-0026BB765291","00000239-0000-1000-8000-0026BB765291":"AccessoryRuntimeInformation",AccessoryRuntimeInformation:"00000239-0000-1000-8000-0026BB765291","000000BB-0000-1000-8000-0026BB765291":"AirPurifier",AirPurifier:"000000BB-0000-1000-8000-0026BB765291","0000008D-0000-1000-8000-0026BB765291":"AirQualitySensor",AirQualitySensor:"0000008D-0000-1000-8000-0026BB765291","00000267-0000-1000-8000-0026BB765291":"AssetUpdate",AssetUpdate:"00000267-0000-1000-8000-0026BB765291","0000026A-0000-1000-8000-0026BB765291":"Assistant",Assistant:"0000026A-0000-1000-8000-0026BB765291","00000127-0000-1000-8000-0026BB765291":"AudioStreamManagement",AudioStreamManagement:"00000127-0000-1000-8000-0026BB765291","00000096-0000-1000-8000-0026BB765291":"Battery",Battery:"00000096-0000-1000-8000-0026BB765291","0000021A-0000-1000-8000-0026BB765291":"CameraOperatingMode",CameraOperatingMode:"0000021A-0000-1000-8000-0026BB765291","00000204-0000-1000-8000-0026BB765291":"CameraRecordingManagement",CameraRecordingManagement:"00000204-0000-1000-8000-0026BB765291","00000110-0000-1000-8000-0026BB765291":"CameraRTPStreamManagement",CameraRTPStreamManagement:"00000110-0000-1000-8000-0026BB765291","00000097-0000-1000-8000-0026BB765291":"CarbonDioxideSensor",CarbonDioxideSensor:"00000097-0000-1000-8000-0026BB765291","0000007F-0000-1000-8000-0026BB765291":"CarbonMonoxideSensor",CarbonMonoxideSensor:"0000007F-0000-1000-8000-0026BB765291","0000005A-0000-1000-8000-0026BB765291":"CloudRelay",CloudRelay:"0000005A-0000-1000-8000-0026BB765291","00000080-0000-1000-8000-0026BB765291":"ContactSensor",ContactSensor:"00000080-0000-1000-8000-0026BB765291","00000129-0000-1000-8000-0026BB765291":"DataStreamTransportManagement",DataStreamTransportManagement:"00000129-0000-1000-8000-0026BB765291","00000237-0000-1000-8000-0026BB765291":"Diagnostics",Diagnostics:"00000237-0000-1000-8000-0026BB765291","00000081-0000-1000-8000-0026BB765291":"Door",Door:"00000081-0000-1000-8000-0026BB765291","00000121-0000-1000-8000-0026BB765291":"Doorbell",Doorbell:"00000121-0000-1000-8000-0026BB765291","00000040-0000-1000-8000-0026BB765291":"Fan",Fan:"00000040-0000-1000-8000-0026BB765291","000000B7-0000-1000-8000-0026BB765291":"Fanv2",Fanv2:"000000B7-0000-1000-8000-0026BB765291","000000D7-0000-1000-8000-0026BB765291":"Faucet",Faucet:"000000D7-0000-1000-8000-0026BB765291","000000BA-0000-1000-8000-0026BB765291":"FilterMaintenance",FilterMaintenance:"000000BA-0000-1000-8000-0026BB765291","00000236-0000-1000-8000-0026BB765291":"FirmwareUpdate",FirmwareUpdate:"00000236-0000-1000-8000-0026BB765291","00000041-0000-1000-8000-0026BB765291":"GarageDoorOpener",GarageDoorOpener:"00000041-0000-1000-8000-0026BB765291","000000BC-0000-1000-8000-0026BB765291":"HeaterCooler",HeaterCooler:"000000BC-0000-1000-8000-0026BB765291","000000BD-0000-1000-8000-0026BB765291":"HumidifierDehumidifier",HumidifierDehumidifier:"000000BD-0000-1000-8000-0026BB765291","00000082-0000-1000-8000-0026BB765291":"HumiditySensor",HumiditySensor:"00000082-0000-1000-8000-0026BB765291","000000D9-0000-1000-8000-0026BB765291":"InputSource",InputSource:"000000D9-0000-1000-8000-0026BB765291","000000CF-0000-1000-8000-0026BB765291":"IrrigationSystem",IrrigationSystem:"000000CF-0000-1000-8000-0026BB765291","00000083-0000-1000-8000-0026BB765291":"LeakSensor",LeakSensor:"00000083-0000-1000-8000-0026BB765291","00000043-0000-1000-8000-0026BB765291":"Lightbulb",Lightbulb:"00000043-0000-1000-8000-0026BB765291","00000084-0000-1000-8000-0026BB765291":"LightSensor",LightSensor:"00000084-0000-1000-8000-0026BB765291","00000044-0000-1000-8000-0026BB765291":"LockManagement",LockManagement:"00000044-0000-1000-8000-0026BB765291","00000045-0000-1000-8000-0026BB765291":"LockMechanism",LockMechanism:"00000045-0000-1000-8000-0026BB765291","00000112-0000-1000-8000-0026BB765291":"Microphone",Microphone:"00000112-0000-1000-8000-0026BB765291","00000085-0000-1000-8000-0026BB765291":"MotionSensor",MotionSensor:"00000085-0000-1000-8000-0026BB765291","00000266-0000-1000-8000-0026BB765291":"NFCAccess",NFCAccess:"00000266-0000-1000-8000-0026BB765291","00000086-0000-1000-8000-0026BB765291":"OccupancySensor",OccupancySensor:"00000086-0000-1000-8000-0026BB765291","00000047-0000-1000-8000-0026BB765291":"Outlet",Outlet:"00000047-0000-1000-8000-0026BB765291","00000055-0000-1000-8000-0026BB765291":"Pairing",Pairing:"00000055-0000-1000-8000-0026BB765291","00000221-0000-1000-8000-0026BB765291":"PowerManagement",PowerManagement:"00000221-0000-1000-8000-0026BB765291","000000A2-0000-1000-8000-0026BB765291":"ProtocolInformation",ProtocolInformation:"000000A2-0000-1000-8000-0026BB765291","0000007E-0000-1000-8000-0026BB765291":"SecuritySystem",SecuritySystem:"0000007E-0000-1000-8000-0026BB765291","000000CC-0000-1000-8000-0026BB765291":"ServiceLabel",ServiceLabel:"000000CC-0000-1000-8000-0026BB765291","00000133-0000-1000-8000-0026BB765291":"Siri",Siri:"00000133-0000-1000-8000-0026BB765291","00000253-0000-1000-8000-0026BB765291":"SiriEndpoint",SiriEndpoint:"00000253-0000-1000-8000-0026BB765291","000000B9-0000-1000-8000-0026BB765291":"Slats",Slats:"000000B9-0000-1000-8000-0026BB765291","00000228-0000-1000-8000-0026BB765291":"SmartSpeaker",SmartSpeaker:"00000228-0000-1000-8000-0026BB765291","00000087-0000-1000-8000-0026BB765291":"SmokeSensor",SmokeSensor:"00000087-0000-1000-8000-0026BB765291","00000113-0000-1000-8000-0026BB765291":"Speaker",Speaker:"00000113-0000-1000-8000-0026BB765291","00000088-0000-1000-8000-0026BB765291":"StatefulProgrammableSwitch",StatefulProgrammableSwitch:"00000088-0000-1000-8000-0026BB765291","00000089-0000-1000-8000-0026BB765291":"StatelessProgrammableSwitch",StatelessProgrammableSwitch:"00000089-0000-1000-8000-0026BB765291","00000049-0000-1000-8000-0026BB765291":"Switch",Switch:"00000049-0000-1000-8000-0026BB765291","0000022E-0000-1000-8000-0026BB765291":"TapManagement",TapManagement:"0000022E-0000-1000-8000-0026BB765291","00000125-0000-1000-8000-0026BB765291":"TargetControl",TargetControl:"00000125-0000-1000-8000-0026BB765291","00000122-0000-1000-8000-0026BB765291":"TargetControlManagement",TargetControlManagement:"00000122-0000-1000-8000-0026BB765291","000000D8-0000-1000-8000-0026BB765291":"Television",Television:"000000D8-0000-1000-8000-0026BB765291",TelevisionSpeaker:"00000113-0000-1000-8000-0026BB765291","0000008A-0000-1000-8000-0026BB765291":"TemperatureSensor",TemperatureSensor:"0000008A-0000-1000-8000-0026BB765291","0000004A-0000-1000-8000-0026BB765291":"Thermostat",Thermostat:"0000004A-0000-1000-8000-0026BB765291","00000701-0000-1000-8000-0026BB765291":"ThreadTransport",ThreadTransport:"00000701-0000-1000-8000-0026BB765291","00000203-0000-1000-8000-0026BB765291":"TransferTransportManagement",TransferTransportManagement:"00000203-0000-1000-8000-0026BB765291","00000056-0000-1000-8000-0026BB765291":"Tunnel",Tunnel:"00000056-0000-1000-8000-0026BB765291","000000D0-0000-1000-8000-0026BB765291":"Valve",Valve:"000000D0-0000-1000-8000-0026BB765291","0000020A-0000-1000-8000-0026BB765291":"WiFiRouter",WiFiRouter:"0000020A-0000-1000-8000-0026BB765291","0000020F-0000-1000-8000-0026BB765291":"WiFiSatellite",WiFiSatellite:"0000020F-0000-1000-8000-0026BB765291","0000022A-0000-1000-8000-0026BB765291":"WiFiTransport",WiFiTransport:"0000022A-0000-1000-8000-0026BB765291","0000008B-0000-1000-8000-0026BB765291":"Window",Window:"0000008B-0000-1000-8000-0026BB765291","0000008C-0000-1000-8000-0026BB765291":"WindowCovering",WindowCovering:"0000008C-0000-1000-8000-0026BB765291"};st.Characteristics={"00000262-0000-1000-8000-0026BB765291":"AccessCodeControlPoint",AccessCodeControlPoint:"00000262-0000-1000-8000-0026BB765291","00000261-0000-1000-8000-0026BB765291":"AccessCodeSupportedConfiguration",AccessCodeSupportedConfiguration:"00000261-0000-1000-8000-0026BB765291","000000E5-0000-1000-8000-0026BB765291":"AccessControlLevel",AccessControlLevel:"000000E5-0000-1000-8000-0026BB765291","000000A6-0000-1000-8000-0026BB765291":"AccessoryFlags",AccessoryFlags:"000000A6-0000-1000-8000-0026BB765291","00000057-0000-1000-8000-0026BB765291":"AccessoryIdentifier",AccessoryIdentifier:"00000057-0000-1000-8000-0026BB765291","000000B0-0000-1000-8000-0026BB765291":"Active",Active:"000000B0-0000-1000-8000-0026BB765291","000000E7-0000-1000-8000-0026BB765291":"ActiveIdentifier",ActiveIdentifier:"000000E7-0000-1000-8000-0026BB765291","0000023B-0000-1000-8000-0026BB765291":"ActivityInterval",ActivityInterval:"0000023B-0000-1000-8000-0026BB765291","00000001-0000-1000-8000-0026BB765291":"AdministratorOnlyAccess",AdministratorOnlyAccess:"00000001-0000-1000-8000-0026BB765291","00000064-0000-1000-8000-0026BB765291":"AirParticulateDensity",AirParticulateDensity:"00000064-0000-1000-8000-0026BB765291","00000065-0000-1000-8000-0026BB765291":"AirParticulateSize",AirParticulateSize:"00000065-0000-1000-8000-0026BB765291","0000025B-0000-1000-8000-0026BB765291":"AirPlayEnable",AirPlayEnable:"0000025B-0000-1000-8000-0026BB765291","00000095-0000-1000-8000-0026BB765291":"AirQuality",AirQuality:"00000095-0000-1000-8000-0026BB765291","000000A4-0000-1000-8000-0026BB765291":"AppMatchingIdentifier",AppMatchingIdentifier:"000000A4-0000-1000-8000-0026BB765291","00000269-0000-1000-8000-0026BB765291":"AssetUpdateReadiness",AssetUpdateReadiness:"00000269-0000-1000-8000-0026BB765291","00000005-0000-1000-8000-0026BB765291":"AudioFeedback",AudioFeedback:"00000005-0000-1000-8000-0026BB765291","00000068-0000-1000-8000-0026BB765291":"BatteryLevel",BatteryLevel:"00000068-0000-1000-8000-0026BB765291","00000008-0000-1000-8000-0026BB765291":"Brightness",Brightness:"00000008-0000-1000-8000-0026BB765291","00000126-0000-1000-8000-0026BB765291":"ButtonEvent",ButtonEvent:"00000126-0000-1000-8000-0026BB765291","0000021D-0000-1000-8000-0026BB765291":"CameraOperatingModeIndicator",CameraOperatingModeIndicator:"0000021D-0000-1000-8000-0026BB765291","00000092-0000-1000-8000-0026BB765291":"CarbonDioxideDetected",CarbonDioxideDetected:"00000092-0000-1000-8000-0026BB765291","00000093-0000-1000-8000-0026BB765291":"CarbonDioxideLevel",CarbonDioxideLevel:"00000093-0000-1000-8000-0026BB765291","00000094-0000-1000-8000-0026BB765291":"CarbonDioxidePeakLevel",CarbonDioxidePeakLevel:"00000094-0000-1000-8000-0026BB765291","00000069-0000-1000-8000-0026BB765291":"CarbonMonoxideDetected",CarbonMonoxideDetected:"00000069-0000-1000-8000-0026BB765291","00000090-0000-1000-8000-0026BB765291":"CarbonMonoxideLevel",CarbonMonoxideLevel:"00000090-0000-1000-8000-0026BB765291","00000091-0000-1000-8000-0026BB765291":"CarbonMonoxidePeakLevel",CarbonMonoxidePeakLevel:"00000091-0000-1000-8000-0026BB765291","00000246-0000-1000-8000-0026BB765291":"CCAEnergyDetectThreshold",CCAEnergyDetectThreshold:"00000246-0000-1000-8000-0026BB765291","00000245-0000-1000-8000-0026BB765291":"CCASignalDetectThreshold",CCASignalDetectThreshold:"00000245-0000-1000-8000-0026BB765291","0000024B-0000-1000-8000-0026BB765291":"CharacteristicValueActiveTransitionCount",CharacteristicValueActiveTransitionCount:"0000024B-0000-1000-8000-0026BB765291","00000143-0000-1000-8000-0026BB765291":"CharacteristicValueTransitionControl",CharacteristicValueTransitionControl:"00000143-0000-1000-8000-0026BB765291","0000008F-0000-1000-8000-0026BB765291":"ChargingState",ChargingState:"0000008F-0000-1000-8000-0026BB765291","000000DD-0000-1000-8000-0026BB765291":"ClosedCaptions",ClosedCaptions:"000000DD-0000-1000-8000-0026BB765291","000000CE-0000-1000-8000-0026BB765291":"ColorTemperature",ColorTemperature:"000000CE-0000-1000-8000-0026BB765291","00000263-0000-1000-8000-0026BB765291":"ConfigurationState",ConfigurationState:"00000263-0000-1000-8000-0026BB765291","000000E3-0000-1000-8000-0026BB765291":"ConfiguredName",ConfiguredName:"000000E3-0000-1000-8000-0026BB765291","0000006A-0000-1000-8000-0026BB765291":"ContactSensorState",ContactSensorState:"0000006A-0000-1000-8000-0026BB765291","0000000D-0000-1000-8000-0026BB765291":"CoolingThresholdTemperature",CoolingThresholdTemperature:"0000000D-0000-1000-8000-0026BB765291","00000250-0000-1000-8000-0026BB765291":"CryptoHash",CryptoHash:"00000250-0000-1000-8000-0026BB765291","000000A9-0000-1000-8000-0026BB765291":"CurrentAirPurifierState",CurrentAirPurifierState:"000000A9-0000-1000-8000-0026BB765291","0000006B-0000-1000-8000-0026BB765291":"CurrentAmbientLightLevel",CurrentAmbientLightLevel:"0000006B-0000-1000-8000-0026BB765291","0000000E-0000-1000-8000-0026BB765291":"CurrentDoorState",CurrentDoorState:"0000000E-0000-1000-8000-0026BB765291","000000AF-0000-1000-8000-0026BB765291":"CurrentFanState",CurrentFanState:"000000AF-0000-1000-8000-0026BB765291","000000B1-0000-1000-8000-0026BB765291":"CurrentHeaterCoolerState",CurrentHeaterCoolerState:"000000B1-0000-1000-8000-0026BB765291","0000000F-0000-1000-8000-0026BB765291":"CurrentHeatingCoolingState",CurrentHeatingCoolingState:"0000000F-0000-1000-8000-0026BB765291","0000006C-0000-1000-8000-0026BB765291":"CurrentHorizontalTiltAngle",CurrentHorizontalTiltAngle:"0000006C-0000-1000-8000-0026BB765291","000000B3-0000-1000-8000-0026BB765291":"CurrentHumidifierDehumidifierState",CurrentHumidifierDehumidifierState:"000000B3-0000-1000-8000-0026BB765291","000000E0-0000-1000-8000-0026BB765291":"CurrentMediaState",CurrentMediaState:"000000E0-0000-1000-8000-0026BB765291","0000006D-0000-1000-8000-0026BB765291":"CurrentPosition",CurrentPosition:"0000006D-0000-1000-8000-0026BB765291","00000010-0000-1000-8000-0026BB765291":"CurrentRelativeHumidity",CurrentRelativeHumidity:"00000010-0000-1000-8000-0026BB765291","000000AA-0000-1000-8000-0026BB765291":"CurrentSlatState",CurrentSlatState:"000000AA-0000-1000-8000-0026BB765291","00000011-0000-1000-8000-0026BB765291":"CurrentTemperature",CurrentTemperature:"00000011-0000-1000-8000-0026BB765291","000000C1-0000-1000-8000-0026BB765291":"CurrentTiltAngle",CurrentTiltAngle:"000000C1-0000-1000-8000-0026BB765291","0000022B-0000-1000-8000-0026BB765291":"CurrentTransport",CurrentTransport:"0000022B-0000-1000-8000-0026BB765291","0000006E-0000-1000-8000-0026BB765291":"CurrentVerticalTiltAngle",CurrentVerticalTiltAngle:"0000006E-0000-1000-8000-0026BB765291","00000135-0000-1000-8000-0026BB765291":"CurrentVisibilityState",CurrentVisibilityState:"00000135-0000-1000-8000-0026BB765291","00000138-0000-1000-8000-0026BB765291":"DataStreamHAPTransport",DataStreamHAPTransport:"00000138-0000-1000-8000-0026BB765291","00000139-0000-1000-8000-0026BB765291":"DataStreamHAPTransportInterrupt",DataStreamHAPTransportInterrupt:"00000139-0000-1000-8000-0026BB765291","00000224-0000-1000-8000-0026BB765291":"DiagonalFieldOfView",DiagonalFieldOfView:"00000224-0000-1000-8000-0026BB765291","0000011D-0000-1000-8000-0026BB765291":"DigitalZoom",DigitalZoom:"0000011D-0000-1000-8000-0026BB765291","00000136-0000-1000-8000-0026BB765291":"DisplayOrder",DisplayOrder:"00000136-0000-1000-8000-0026BB765291","0000023D-0000-1000-8000-0026BB765291":"EventRetransmissionMaximum",EventRetransmissionMaximum:"0000023D-0000-1000-8000-0026BB765291","00000223-0000-1000-8000-0026BB765291":"EventSnapshotsActive",EventSnapshotsActive:"00000223-0000-1000-8000-0026BB765291","0000023E-0000-1000-8000-0026BB765291":"EventTransmissionCounters",EventTransmissionCounters:"0000023E-0000-1000-8000-0026BB765291","000000AC-0000-1000-8000-0026BB765291":"FilterChangeIndication",FilterChangeIndication:"000000AC-0000-1000-8000-0026BB765291","000000AB-0000-1000-8000-0026BB765291":"FilterLifeLevel",FilterLifeLevel:"000000AB-0000-1000-8000-0026BB765291","00000052-0000-1000-8000-0026BB765291":"FirmwareRevision",FirmwareRevision:"00000052-0000-1000-8000-0026BB765291","00000234-0000-1000-8000-0026BB765291":"FirmwareUpdateReadiness",FirmwareUpdateReadiness:"00000234-0000-1000-8000-0026BB765291","00000235-0000-1000-8000-0026BB765291":"FirmwareUpdateStatus",FirmwareUpdateStatus:"00000235-0000-1000-8000-0026BB765291","0000026C-0000-1000-8000-0026BB765291":"HardwareFinish",HardwareFinish:"0000026C-0000-1000-8000-0026BB765291","00000053-0000-1000-8000-0026BB765291":"HardwareRevision",HardwareRevision:"00000053-0000-1000-8000-0026BB765291","0000024A-0000-1000-8000-0026BB765291":"HeartBeat",HeartBeat:"0000024A-0000-1000-8000-0026BB765291","00000012-0000-1000-8000-0026BB765291":"HeatingThresholdTemperature",HeatingThresholdTemperature:"00000012-0000-1000-8000-0026BB765291","0000006F-0000-1000-8000-0026BB765291":"HoldPosition",HoldPosition:"0000006F-0000-1000-8000-0026BB765291","0000021B-0000-1000-8000-0026BB765291":"HomeKitCameraActive",HomeKitCameraActive:"0000021B-0000-1000-8000-0026BB765291","00000013-0000-1000-8000-0026BB765291":"Hue",Hue:"00000013-0000-1000-8000-0026BB765291","000000E6-0000-1000-8000-0026BB765291":"Identifier",Identifier:"000000E6-0000-1000-8000-0026BB765291","00000014-0000-1000-8000-0026BB765291":"Identify",Identify:"00000014-0000-1000-8000-0026BB765291","0000011F-0000-1000-8000-0026BB765291":"ImageMirroring",ImageMirroring:"0000011F-0000-1000-8000-0026BB765291","0000011E-0000-1000-8000-0026BB765291":"ImageRotation",ImageRotation:"0000011E-0000-1000-8000-0026BB765291","000000DC-0000-1000-8000-0026BB765291":"InputDeviceType",InputDeviceType:"000000DC-0000-1000-8000-0026BB765291","000000DB-0000-1000-8000-0026BB765291":"InputSourceType",InputSourceType:"000000DB-0000-1000-8000-0026BB765291","000000D2-0000-1000-8000-0026BB765291":"InUse",InUse:"000000D2-0000-1000-8000-0026BB765291","000000D6-0000-1000-8000-0026BB765291":"IsConfigured",IsConfigured:"000000D6-0000-1000-8000-0026BB765291","00000070-0000-1000-8000-0026BB765291":"LeakDetected",LeakDetected:"00000070-0000-1000-8000-0026BB765291","00000050-0000-1000-8000-0026BB765291":"ListPairings",ListPairings:"00000050-0000-1000-8000-0026BB765291","00000019-0000-1000-8000-0026BB765291":"LockControlPoint",LockControlPoint:"00000019-0000-1000-8000-0026BB765291","0000001D-0000-1000-8000-0026BB765291":"LockCurrentState",LockCurrentState:"0000001D-0000-1000-8000-0026BB765291","0000001C-0000-1000-8000-0026BB765291":"LockLastKnownAction",LockLastKnownAction:"0000001C-0000-1000-8000-0026BB765291","0000001A-0000-1000-8000-0026BB765291":"LockManagementAutoSecurityTimeout",LockManagementAutoSecurityTimeout:"0000001A-0000-1000-8000-0026BB765291","000000A7-0000-1000-8000-0026BB765291":"LockPhysicalControls",LockPhysicalControls:"000000A7-0000-1000-8000-0026BB765291","0000001E-0000-1000-8000-0026BB765291":"LockTargetState",LockTargetState:"0000001E-0000-1000-8000-0026BB765291","0000001F-0000-1000-8000-0026BB765291":"Logs",Logs:"0000001F-0000-1000-8000-0026BB765291","00000247-0000-1000-8000-0026BB765291":"MACRetransmissionMaximum",MACRetransmissionMaximum:"00000247-0000-1000-8000-0026BB765291","00000248-0000-1000-8000-0026BB765291":"MACTransmissionCounters",MACTransmissionCounters:"00000248-0000-1000-8000-0026BB765291","00000215-0000-1000-8000-0026BB765291":"ManagedNetworkEnable",ManagedNetworkEnable:"00000215-0000-1000-8000-0026BB765291","00000227-0000-1000-8000-0026BB765291":"ManuallyDisabled",ManuallyDisabled:"00000227-0000-1000-8000-0026BB765291","00000020-0000-1000-8000-0026BB765291":"Manufacturer",Manufacturer:"00000020-0000-1000-8000-0026BB765291","0000026D-0000-1000-8000-0026BB765291":"MatterFirmwareRevisionNumber",MatterFirmwareRevisionNumber:"0000026D-0000-1000-8000-0026BB765291","0000026E-0000-1000-8000-0026BB765291":"MatterFirmwareUpdateStatus",MatterFirmwareUpdateStatus:"0000026E-0000-1000-8000-0026BB765291","00000243-0000-1000-8000-0026BB765291":"MaximumTransmitPower",MaximumTransmitPower:"00000243-0000-1000-8000-0026BB765291","00000272-0000-1000-8000-0026BB765291":"MetricsBufferFullState",MetricsBufferFullState:"00000272-0000-1000-8000-0026BB765291","00000021-0000-1000-8000-0026BB765291":"Model",Model:"00000021-0000-1000-8000-0026BB765291","00000022-0000-1000-8000-0026BB765291":"MotionDetected",MotionDetected:"00000022-0000-1000-8000-0026BB765291","0000026B-0000-1000-8000-0026BB765291":"MultifunctionButton",MultifunctionButton:"0000026B-0000-1000-8000-0026BB765291","0000011A-0000-1000-8000-0026BB765291":"Mute",Mute:"0000011A-0000-1000-8000-0026BB765291","00000023-0000-1000-8000-0026BB765291":"Name",Name:"00000023-0000-1000-8000-0026BB765291","0000021F-0000-1000-8000-0026BB765291":"NetworkAccessViolationControl",NetworkAccessViolationControl:"0000021F-0000-1000-8000-0026BB765291","0000020C-0000-1000-8000-0026BB765291":"NetworkClientProfileControl",NetworkClientProfileControl:"0000020C-0000-1000-8000-0026BB765291","0000020D-0000-1000-8000-0026BB765291":"NetworkClientStatusControl",NetworkClientStatusControl:"0000020D-0000-1000-8000-0026BB765291","00000264-0000-1000-8000-0026BB765291":"NFCAccessControlPoint",NFCAccessControlPoint:"00000264-0000-1000-8000-0026BB765291","00000265-0000-1000-8000-0026BB765291":"NFCAccessSupportedConfiguration",NFCAccessSupportedConfiguration:"00000265-0000-1000-8000-0026BB765291","0000011B-0000-1000-8000-0026BB765291":"NightVision",NightVision:"0000011B-0000-1000-8000-0026BB765291","000000C4-0000-1000-8000-0026BB765291":"NitrogenDioxideDensity",NitrogenDioxideDensity:"000000C4-0000-1000-8000-0026BB765291","00000024-0000-1000-8000-0026BB765291":"ObstructionDetected",ObstructionDetected:"00000024-0000-1000-8000-0026BB765291","00000071-0000-1000-8000-0026BB765291":"OccupancyDetected",OccupancyDetected:"00000071-0000-1000-8000-0026BB765291","00000025-0000-1000-8000-0026BB765291":"On",On:"00000025-0000-1000-8000-0026BB765291","00000232-0000-1000-8000-0026BB765291":"OperatingStateResponse",OperatingStateResponse:"00000232-0000-1000-8000-0026BB765291","0000011C-0000-1000-8000-0026BB765291":"OpticalZoom",OpticalZoom:"0000011C-0000-1000-8000-0026BB765291","00000026-0000-1000-8000-0026BB765291":"OutletInUse",OutletInUse:"00000026-0000-1000-8000-0026BB765291","000000C3-0000-1000-8000-0026BB765291":"OzoneDensity",OzoneDensity:"000000C3-0000-1000-8000-0026BB765291","0000004F-0000-1000-8000-0026BB765291":"PairingFeatures",PairingFeatures:"0000004F-0000-1000-8000-0026BB765291","0000004C-0000-1000-8000-0026BB765291":"PairSetup",PairSetup:"0000004C-0000-1000-8000-0026BB765291","0000004E-0000-1000-8000-0026BB765291":"PairVerify",PairVerify:"0000004E-0000-1000-8000-0026BB765291","000000E4-0000-1000-8000-0026BB765291":"PasswordSetting",PasswordSetting:"000000E4-0000-1000-8000-0026BB765291","00000225-0000-1000-8000-0026BB765291":"PeriodicSnapshotsActive",PeriodicSnapshotsActive:"00000225-0000-1000-8000-0026BB765291","000000E2-0000-1000-8000-0026BB765291":"PictureMode",PictureMode:"000000E2-0000-1000-8000-0026BB765291","0000023C-0000-1000-8000-0026BB765291":"Ping",Ping:"0000023C-0000-1000-8000-0026BB765291","000000C7-0000-1000-8000-0026BB765291":"PM10Density",PM10Density:"000000C7-0000-1000-8000-0026BB765291","000000C6-0000-1000-8000-0026BB765291":"PM2_5Density",PM2_5Density:"000000C6-0000-1000-8000-0026BB765291","00000072-0000-1000-8000-0026BB765291":"PositionState",PositionState:"00000072-0000-1000-8000-0026BB765291","000000DF-0000-1000-8000-0026BB765291":"PowerModeSelection",PowerModeSelection:"000000DF-0000-1000-8000-0026BB765291","00000220-0000-1000-8000-0026BB765291":"ProductData",ProductData:"00000220-0000-1000-8000-0026BB765291","00000073-0000-1000-8000-0026BB765291":"ProgrammableSwitchEvent",ProgrammableSwitchEvent:"00000073-0000-1000-8000-0026BB765291","00000074-0000-1000-8000-0026BB765291":"ProgrammableSwitchOutputState",ProgrammableSwitchOutputState:"00000074-0000-1000-8000-0026BB765291","000000D1-0000-1000-8000-0026BB765291":"ProgramMode",ProgramMode:"000000D1-0000-1000-8000-0026BB765291","0000023F-0000-1000-8000-0026BB765291":"ReceivedSignalStrengthIndication",ReceivedSignalStrengthIndication:"0000023F-0000-1000-8000-0026BB765291","00000244-0000-1000-8000-0026BB765291":"ReceiverSensitivity",ReceiverSensitivity:"00000244-0000-1000-8000-0026BB765291","00000226-0000-1000-8000-0026BB765291":"RecordingAudioActive",RecordingAudioActive:"00000226-0000-1000-8000-0026BB765291","000000C9-0000-1000-8000-0026BB765291":"RelativeHumidityDehumidifierThreshold",RelativeHumidityDehumidifierThreshold:"000000C9-0000-1000-8000-0026BB765291","000000CA-0000-1000-8000-0026BB765291":"RelativeHumidityHumidifierThreshold",RelativeHumidityHumidifierThreshold:"000000CA-0000-1000-8000-0026BB765291","0000005E-0000-1000-8000-0026BB765291":"RelayControlPoint",RelayControlPoint:"0000005E-0000-1000-8000-0026BB765291","0000005B-0000-1000-8000-0026BB765291":"RelayEnabled",RelayEnabled:"0000005B-0000-1000-8000-0026BB765291","0000005C-0000-1000-8000-0026BB765291":"RelayState",RelayState:"0000005C-0000-1000-8000-0026BB765291","000000D4-0000-1000-8000-0026BB765291":"RemainingDuration",RemainingDuration:"000000D4-0000-1000-8000-0026BB765291","000000E1-0000-1000-8000-0026BB765291":"RemoteKey",RemoteKey:"000000E1-0000-1000-8000-0026BB765291","000000AD-0000-1000-8000-0026BB765291":"ResetFilterIndication",ResetFilterIndication:"000000AD-0000-1000-8000-0026BB765291","00000028-0000-1000-8000-0026BB765291":"RotationDirection",RotationDirection:"00000028-0000-1000-8000-0026BB765291","00000029-0000-1000-8000-0026BB765291":"RotationSpeed",RotationSpeed:"00000029-0000-1000-8000-0026BB765291","0000020E-0000-1000-8000-0026BB765291":"RouterStatus",RouterStatus:"0000020E-0000-1000-8000-0026BB765291","0000002F-0000-1000-8000-0026BB765291":"Saturation",Saturation:"0000002F-0000-1000-8000-0026BB765291","0000008E-0000-1000-8000-0026BB765291":"SecuritySystemAlarmType",SecuritySystemAlarmType:"0000008E-0000-1000-8000-0026BB765291","00000066-0000-1000-8000-0026BB765291":"SecuritySystemCurrentState",SecuritySystemCurrentState:"00000066-0000-1000-8000-0026BB765291","00000067-0000-1000-8000-0026BB765291":"SecuritySystemTargetState",SecuritySystemTargetState:"00000067-0000-1000-8000-0026BB765291","00000128-0000-1000-8000-0026BB765291":"SelectedAudioStreamConfiguration",SelectedAudioStreamConfiguration:"00000128-0000-1000-8000-0026BB765291","00000209-0000-1000-8000-0026BB765291":"SelectedCameraRecordingConfiguration",SelectedCameraRecordingConfiguration:"00000209-0000-1000-8000-0026BB765291","0000024D-0000-1000-8000-0026BB765291":"SelectedDiagnosticsModes",SelectedDiagnosticsModes:"0000024D-0000-1000-8000-0026BB765291","00000117-0000-1000-8000-0026BB765291":"SelectedRTPStreamConfiguration",SelectedRTPStreamConfiguration:"00000117-0000-1000-8000-0026BB765291","00000252-0000-1000-8000-0026BB765291":"SelectedSleepConfiguration",SelectedSleepConfiguration:"00000252-0000-1000-8000-0026BB765291","00000030-0000-1000-8000-0026BB765291":"SerialNumber",SerialNumber:"00000030-0000-1000-8000-0026BB765291","000000CB-0000-1000-8000-0026BB765291":"ServiceLabelIndex",ServiceLabelIndex:"000000CB-0000-1000-8000-0026BB765291","000000CD-0000-1000-8000-0026BB765291":"ServiceLabelNamespace",ServiceLabelNamespace:"000000CD-0000-1000-8000-0026BB765291","000000D3-0000-1000-8000-0026BB765291":"SetDuration",SetDuration:"000000D3-0000-1000-8000-0026BB765291","00000131-0000-1000-8000-0026BB765291":"SetupDataStreamTransport",SetupDataStreamTransport:"00000131-0000-1000-8000-0026BB765291","00000118-0000-1000-8000-0026BB765291":"SetupEndpoints",SetupEndpoints:"00000118-0000-1000-8000-0026BB765291","00000201-0000-1000-8000-0026BB765291":"SetupTransferTransport",SetupTransferTransport:"00000201-0000-1000-8000-0026BB765291","00000241-0000-1000-8000-0026BB765291":"SignalToNoiseRatio",SignalToNoiseRatio:"00000241-0000-1000-8000-0026BB765291","00000255-0000-1000-8000-0026BB765291":"SiriEnable",SiriEnable:"00000255-0000-1000-8000-0026BB765291","00000254-0000-1000-8000-0026BB765291":"SiriEndpointSessionStatus",SiriEndpointSessionStatus:"00000254-0000-1000-8000-0026BB765291","0000025A-0000-1000-8000-0026BB765291":"SiriEngineVersion",SiriEngineVersion:"0000025A-0000-1000-8000-0026BB765291","00000132-0000-1000-8000-0026BB765291":"SiriInputType",SiriInputType:"00000132-0000-1000-8000-0026BB765291","00000258-0000-1000-8000-0026BB765291":"SiriLightOnUse",SiriLightOnUse:"00000258-0000-1000-8000-0026BB765291","00000256-0000-1000-8000-0026BB765291":"SiriListening",SiriListening:"00000256-0000-1000-8000-0026BB765291","00000257-0000-1000-8000-0026BB765291":"SiriTouchToUse",SiriTouchToUse:"00000257-0000-1000-8000-0026BB765291","000000C0-0000-1000-8000-0026BB765291":"SlatType",SlatType:"000000C0-0000-1000-8000-0026BB765291","000000E8-0000-1000-8000-0026BB765291":"SleepDiscoveryMode",SleepDiscoveryMode:"000000E8-0000-1000-8000-0026BB765291","0000023A-0000-1000-8000-0026BB765291":"SleepInterval",SleepInterval:"0000023A-0000-1000-8000-0026BB765291","00000076-0000-1000-8000-0026BB765291":"SmokeDetected",SmokeDetected:"00000076-0000-1000-8000-0026BB765291","00000054-0000-1000-8000-0026BB765291":"SoftwareRevision",SoftwareRevision:"00000054-0000-1000-8000-0026BB765291","00000249-0000-1000-8000-0026BB765291":"StagedFirmwareVersion",StagedFirmwareVersion:"00000249-0000-1000-8000-0026BB765291","00000075-0000-1000-8000-0026BB765291":"StatusActive",StatusActive:"00000075-0000-1000-8000-0026BB765291","00000077-0000-1000-8000-0026BB765291":"StatusFault",StatusFault:"00000077-0000-1000-8000-0026BB765291","00000078-0000-1000-8000-0026BB765291":"StatusJammed",StatusJammed:"00000078-0000-1000-8000-0026BB765291","00000079-0000-1000-8000-0026BB765291":"StatusLowBattery",StatusLowBattery:"00000079-0000-1000-8000-0026BB765291","0000007A-0000-1000-8000-0026BB765291":"StatusTampered",StatusTampered:"0000007A-0000-1000-8000-0026BB765291","00000120-0000-1000-8000-0026BB765291":"StreamingStatus",StreamingStatus:"00000120-0000-1000-8000-0026BB765291","000000C5-0000-1000-8000-0026BB765291":"SulphurDioxideDensity",SulphurDioxideDensity:"000000C5-0000-1000-8000-0026BB765291","00000268-0000-1000-8000-0026BB765291":"SupportedAssetTypes",SupportedAssetTypes:"00000268-0000-1000-8000-0026BB765291","00000207-0000-1000-8000-0026BB765291":"SupportedAudioRecordingConfiguration",SupportedAudioRecordingConfiguration:"00000207-0000-1000-8000-0026BB765291","00000115-0000-1000-8000-0026BB765291":"SupportedAudioStreamConfiguration",SupportedAudioStreamConfiguration:"00000115-0000-1000-8000-0026BB765291","00000205-0000-1000-8000-0026BB765291":"SupportedCameraRecordingConfiguration",SupportedCameraRecordingConfiguration:"00000205-0000-1000-8000-0026BB765291","00000144-0000-1000-8000-0026BB765291":"SupportedCharacteristicValueTransitionConfiguration",SupportedCharacteristicValueTransitionConfiguration:"00000144-0000-1000-8000-0026BB765291","00000130-0000-1000-8000-0026BB765291":"SupportedDataStreamTransportConfiguration",SupportedDataStreamTransportConfiguration:"00000130-0000-1000-8000-0026BB765291","0000024C-0000-1000-8000-0026BB765291":"SupportedDiagnosticsModes",SupportedDiagnosticsModes:"0000024C-0000-1000-8000-0026BB765291","00000238-0000-1000-8000-0026BB765291":"SupportedDiagnosticsSnapshot",SupportedDiagnosticsSnapshot:"00000238-0000-1000-8000-0026BB765291","00000233-0000-1000-8000-0026BB765291":"SupportedFirmwareUpdateConfiguration",SupportedFirmwareUpdateConfiguration:"00000233-0000-1000-8000-0026BB765291","00000271-0000-1000-8000-0026BB765291":"SupportedMetrics",SupportedMetrics:"00000271-0000-1000-8000-0026BB765291","00000210-0000-1000-8000-0026BB765291":"SupportedRouterConfiguration",SupportedRouterConfiguration:"00000210-0000-1000-8000-0026BB765291","00000116-0000-1000-8000-0026BB765291":"SupportedRTPConfiguration",SupportedRTPConfiguration:"00000116-0000-1000-8000-0026BB765291","00000251-0000-1000-8000-0026BB765291":"SupportedSleepConfiguration",SupportedSleepConfiguration:"00000251-0000-1000-8000-0026BB765291","00000202-0000-1000-8000-0026BB765291":"SupportedTransferTransportConfiguration",SupportedTransferTransportConfiguration:"00000202-0000-1000-8000-0026BB765291","00000206-0000-1000-8000-0026BB765291":"SupportedVideoRecordingConfiguration",SupportedVideoRecordingConfiguration:"00000206-0000-1000-8000-0026BB765291","00000114-0000-1000-8000-0026BB765291":"SupportedVideoStreamConfiguration",SupportedVideoStreamConfiguration:"00000114-0000-1000-8000-0026BB765291","000000B6-0000-1000-8000-0026BB765291":"SwingMode",SwingMode:"000000B6-0000-1000-8000-0026BB765291","0000022F-0000-1000-8000-0026BB765291":"TapType",TapType:"0000022F-0000-1000-8000-0026BB765291","000000A8-0000-1000-8000-0026BB765291":"TargetAirPurifierState",TargetAirPurifierState:"000000A8-0000-1000-8000-0026BB765291","00000124-0000-1000-8000-0026BB765291":"TargetControlList",TargetControlList:"00000124-0000-1000-8000-0026BB765291","00000123-0000-1000-8000-0026BB765291":"TargetControlSupportedConfiguration",TargetControlSupportedConfiguration:"00000123-0000-1000-8000-0026BB765291","00000032-0000-1000-8000-0026BB765291":"TargetDoorState",TargetDoorState:"00000032-0000-1000-8000-0026BB765291","000000BF-0000-1000-8000-0026BB765291":"TargetFanState",TargetFanState:"000000BF-0000-1000-8000-0026BB765291","000000B2-0000-1000-8000-0026BB765291":"TargetHeaterCoolerState",TargetHeaterCoolerState:"000000B2-0000-1000-8000-0026BB765291","00000033-0000-1000-8000-0026BB765291":"TargetHeatingCoolingState",TargetHeatingCoolingState:"00000033-0000-1000-8000-0026BB765291","0000007B-0000-1000-8000-0026BB765291":"TargetHorizontalTiltAngle",TargetHorizontalTiltAngle:"0000007B-0000-1000-8000-0026BB765291","000000B4-0000-1000-8000-0026BB765291":"TargetHumidifierDehumidifierState",TargetHumidifierDehumidifierState:"000000B4-0000-1000-8000-0026BB765291","00000137-0000-1000-8000-0026BB765291":"TargetMediaState",TargetMediaState:"00000137-0000-1000-8000-0026BB765291","0000007C-0000-1000-8000-0026BB765291":"TargetPosition",TargetPosition:"0000007C-0000-1000-8000-0026BB765291","00000034-0000-1000-8000-0026BB765291":"TargetRelativeHumidity",TargetRelativeHumidity:"00000034-0000-1000-8000-0026BB765291","00000035-0000-1000-8000-0026BB765291":"TargetTemperature",TargetTemperature:"00000035-0000-1000-8000-0026BB765291","000000C2-0000-1000-8000-0026BB765291":"TargetTiltAngle",TargetTiltAngle:"000000C2-0000-1000-8000-0026BB765291","0000007D-0000-1000-8000-0026BB765291":"TargetVerticalTiltAngle",TargetVerticalTiltAngle:"0000007D-0000-1000-8000-0026BB765291","00000134-0000-1000-8000-0026BB765291":"TargetVisibilityState",TargetVisibilityState:"00000134-0000-1000-8000-0026BB765291","00000036-0000-1000-8000-0026BB765291":"TemperatureDisplayUnits",TemperatureDisplayUnits:"00000036-0000-1000-8000-0026BB765291","0000021C-0000-1000-8000-0026BB765291":"ThirdPartyCameraActive",ThirdPartyCameraActive:"0000021C-0000-1000-8000-0026BB765291","00000704-0000-1000-8000-0026BB765291":"ThreadControlPoint",ThreadControlPoint:"00000704-0000-1000-8000-0026BB765291","00000702-0000-1000-8000-0026BB765291":"ThreadNodeCapabilities",ThreadNodeCapabilities:"00000702-0000-1000-8000-0026BB765291","00000706-0000-1000-8000-0026BB765291":"ThreadOpenThreadVersion",ThreadOpenThreadVersion:"00000706-0000-1000-8000-0026BB765291","00000703-0000-1000-8000-0026BB765291":"ThreadStatus",ThreadStatus:"00000703-0000-1000-8000-0026BB765291","00000231-0000-1000-8000-0026BB765291":"Token",Token:"00000231-0000-1000-8000-0026BB765291","00000242-0000-1000-8000-0026BB765291":"TransmitPower",TransmitPower:"00000242-0000-1000-8000-0026BB765291","00000061-0000-1000-8000-0026BB765291":"TunnelConnectionTimeout",TunnelConnectionTimeout:"00000061-0000-1000-8000-0026BB765291","00000060-0000-1000-8000-0026BB765291":"TunneledAccessoryAdvertising",TunneledAccessoryAdvertising:"00000060-0000-1000-8000-0026BB765291","00000059-0000-1000-8000-0026BB765291":"TunneledAccessoryConnected",TunneledAccessoryConnected:"00000059-0000-1000-8000-0026BB765291","00000058-0000-1000-8000-0026BB765291":"TunneledAccessoryStateNumber",TunneledAccessoryStateNumber:"00000058-0000-1000-8000-0026BB765291","000000D5-0000-1000-8000-0026BB765291":"ValveType",ValveType:"000000D5-0000-1000-8000-0026BB765291","00000037-0000-1000-8000-0026BB765291":"Version",Version:"00000037-0000-1000-8000-0026BB765291","00000229-0000-1000-8000-0026BB765291":"VideoAnalysisActive",VideoAnalysisActive:"00000229-0000-1000-8000-0026BB765291","000000C8-0000-1000-8000-0026BB765291":"VOCDensity",VOCDensity:"000000C8-0000-1000-8000-0026BB765291","00000119-0000-1000-8000-0026BB765291":"Volume",Volume:"00000119-0000-1000-8000-0026BB765291","000000E9-0000-1000-8000-0026BB765291":"VolumeControlType",VolumeControlType:"000000E9-0000-1000-8000-0026BB765291","000000EA-0000-1000-8000-0026BB765291":"VolumeSelector",VolumeSelector:"000000EA-0000-1000-8000-0026BB765291","00000222-0000-1000-8000-0026BB765291":"WakeConfiguration",WakeConfiguration:"00000222-0000-1000-8000-0026BB765291","00000211-0000-1000-8000-0026BB765291":"WANConfigurationList",WANConfigurationList:"00000211-0000-1000-8000-0026BB765291","00000212-0000-1000-8000-0026BB765291":"WANStatusList",WANStatusList:"00000212-0000-1000-8000-0026BB765291","000000B5-0000-1000-8000-0026BB765291":"WaterLevel",WaterLevel:"000000B5-0000-1000-8000-0026BB765291","0000022C-0000-1000-8000-0026BB765291":"WiFiCapabilities",WiFiCapabilities:"0000022C-0000-1000-8000-0026BB765291","0000022D-0000-1000-8000-0026BB765291":"WiFiConfigurationControl",WiFiConfigurationControl:"0000022D-0000-1000-8000-0026BB765291","0000021E-0000-1000-8000-0026BB765291":"WiFiSatelliteStatus",WiFiSatelliteStatus:"0000021E-0000-1000-8000-0026BB765291"};st.Categories={OTHER:1,BRIDGE:2,FAN:3,GARAGE_DOOR_OPENER:4,LIGHTBULB:5,DOOR_LOCK:6,OUTLET:7,SWITCH:8,THERMOSTAT:9,SENSOR:10,ALARM_SYSTEM:11,SECURITY_SYSTEM:11,DOOR:12,WINDOW:13,WINDOW_COVERING:14,PROGRAMMABLE_SWITCH:15,RANGE_EXTENDER:16,CAMERA:17,IP_CAMERA:17,VIDEO_DOORBELL:18,AIR_PURIFIER:19,AIR_HEATER:20,AIR_CONDITIONER:21,AIR_HUMIDIFIER:22,AIR_DEHUMIDIFIER:23,APPLE_TV:24,HOMEPOD:25,SPEAKER:26,AIRPORT:27,SPRINKLER:28,FAUCET:29,SHOWER_HEAD:30,TELEVISION:31,TARGET_CONTROLLER:32,ROUTER:33,AUDIO_RECEIVER:34,TV_SET_TOP_BOX:35,TV_STREAMING_STICK:36};st.Enums={AccessoryFlags:{1:"REQUIRES_ADDITIONAL_SETUP_BIT_MASK"},Active:{0:"INACTIVE",1:"ACTIVE"},AirParticulateSize:{0:"_2_5_M",1:"_10_M"},AirQuality:{0:"UNKNOWN",1:"EXCELLENT",2:"GOOD",3:"FAIR",4:"INFERIOR",5:"POOR"},CameraOperatingModeIndicator:{0:"DISABLE",1:"ENABLE"},CarbonDioxideDetected:{0:"CO2_LEVELS_NORMAL",1:"CO2_LEVELS_ABNORMAL"},CarbonMonoxideDetected:{0:"CO_LEVELS_NORMAL",1:"CO_LEVELS_ABNORMAL"},ChargingState:{0:"NOT_CHARGING",1:"CHARGING",2:"NOT_CHARGEABLE"},ClosedCaptions:{0:"DISABLED",1:"ENABLED"},ContactSensorState:{0:"CONTACT_DETECTED",1:"CONTACT_NOT_DETECTED"},CurrentAirPurifierState:{0:"INACTIVE",1:"IDLE",2:"PURIFYING_AIR"},CurrentDoorState:{0:"OPEN",1:"CLOSED",2:"OPENING",3:"CLOSING",4:"STOPPED"},CurrentFanState:{0:"INACTIVE",1:"IDLE",2:"BLOWING_AIR"},CurrentHeaterCoolerState:{0:"INACTIVE",1:"IDLE",2:"HEATING",3:"COOLING"},CurrentHeatingCoolingState:{0:"OFF",1:"HEAT",2:"COOL"},CurrentHumidifierDehumidifierState:{0:"INACTIVE",1:"IDLE",2:"HUMIDIFYING",3:"DEHUMIDIFYING"},CurrentMediaState:{0:"PLAY",1:"PAUSE",2:"STOP",4:"LOADING",5:"INTERRUPTED"},CurrentSlatState:{0:"FIXED",1:"JAMMED",2:"SWINGING"},CurrentVisibilityState:{0:"SHOWN",1:"HIDDEN"},EventSnapshotsActive:{0:"DISABLE",1:"ENABLE"},FilterChangeIndication:{0:"FILTER_OK",1:"CHANGE_FILTER"},HomeKitCameraActive:{0:"OFF",1:"ON"},InputDeviceType:{0:"OTHER",1:"TV",2:"RECORDING",3:"TUNER",4:"PLAYBACK",5:"AUDIO_SYSTEM"},InputSourceType:{0:"OTHER",1:"HOME_SCREEN",2:"TUNER",3:"HDMI",4:"COMPOSITE_VIDEO",5:"S_VIDEO",6:"COMPONENT_VIDEO",7:"DVI",8:"AIRPLAY",9:"USB",10:"APPLICATION"},InUse:{0:"NOT_IN_USE",1:"IN_USE"},IsConfigured:{0:"NOT_CONFIGURED",1:"CONFIGURED"},LeakDetected:{0:"LEAK_NOT_DETECTED",1:"LEAK_DETECTED"},LockCurrentState:{0:"UNSECURED",1:"SECURED",2:"JAMMED",3:"UNKNOWN"},LockLastKnownAction:{0:"SECURED_PHYSICALLY_INTERIOR",1:"UNSECURED_PHYSICALLY_INTERIOR",2:"SECURED_PHYSICALLY_EXTERIOR",3:"UNSECURED_PHYSICALLY_EXTERIOR",4:"SECURED_BY_KEYPAD",5:"UNSECURED_BY_KEYPAD",6:"SECURED_REMOTELY",7:"UNSECURED_REMOTELY",8:"SECURED_BY_AUTO_SECURE_TIMEOUT",9:"SECURED_PHYSICALLY",10:"UNSECURED_PHYSICALLY"},LockPhysicalControls:{0:"CONTROL_LOCK_DISABLED",1:"CONTROL_LOCK_ENABLED"},LockTargetState:{0:"UNSECURED",1:"SECURED"},ManagedNetworkEnable:{0:"DISABLED",1:"ENABLED"},ManuallyDisabled:{0:"ENABLED",1:"DISABLED"},OccupancyDetected:{0:"OCCUPANCY_NOT_DETECTED",1:"OCCUPANCY_DETECTED"},PeriodicSnapshotsActive:{0:"DISABLE",1:"ENABLE"},PictureMode:{0:"OTHER",1:"STANDARD",2:"CALIBRATED",3:"CALIBRATED_DARK",4:"VIVID",5:"GAME",6:"COMPUTER",7:"CUSTOM"},PositionState:{0:"DECREASING",1:"INCREASING",2:"STOPPED"},PowerModeSelection:{0:"SHOW",1:"HIDE"},ProgrammableSwitchEvent:{0:"SINGLE_PRESS",1:"DOUBLE_PRESS",2:"LONG_PRESS"},ProgramMode:{0:"NO_PROGRAM_SCHEDULED",1:"PROGRAM_SCHEDULED",2:"PROGRAM_SCHEDULED_MANUAL_MODE"},RecordingAudioActive:{0:"DISABLE",1:"ENABLE"},RemoteKey:{0:"REWIND",1:"FAST_FORWARD",2:"NEXT_TRACK",3:"PREVIOUS_TRACK",4:"ARROW_UP",5:"ARROW_DOWN",6:"ARROW_LEFT",7:"ARROW_RIGHT",8:"SELECT",9:"BACK",10:"EXIT",11:"PLAY_PAUSE",15:"INFORMATION"},RotationDirection:{0:"CLOCKWISE",1:"COUNTER_CLOCKWISE"},RouterStatus:{0:"READY",1:"NOT_READY"},SecuritySystemAlarmType:{0:"NO_ALARM",1:"UNKNOWN"},SecuritySystemCurrentState:{0:"STAY_ARM",1:"AWAY_ARM",2:"NIGHT_ARM",3:"DISARMED",4:"ALARM_TRIGGERED"},SecuritySystemTargetState:{0:"STAY_ARM",1:"AWAY_ARM",2:"NIGHT_ARM",3:"DISARM"},ServiceLabelNamespace:{0:"DOTS",1:"ARABIC_NUMERALS"},SiriInputType:{0:"PUSH_BUTTON_TRIGGERED_APPLE_TV"},SlatType:{0:"HORIZONTAL",1:"VERTICAL"},SleepDiscoveryMode:{0:"NOT_DISCOVERABLE",1:"ALWAYS_DISCOVERABLE"},SmokeDetected:{0:"SMOKE_NOT_DETECTED",1:"SMOKE_DETECTED"},StatusFault:{0:"NO_FAULT",1:"GENERAL_FAULT"},StatusJammed:{0:"NOT_JAMMED",1:"JAMMED"},StatusLowBattery:{0:"BATTERY_LEVEL_NORMAL",1:"BATTERY_LEVEL_LOW"},StatusTampered:{0:"NOT_TAMPERED",1:"TAMPERED"},SwingMode:{0:"SWING_DISABLED",1:"SWING_ENABLED"},TargetAirPurifierState:{0:"MANUAL",1:"AUTO"},TargetDoorState:{0:"OPEN",1:"CLOSED"},TargetFanState:{0:"MANUAL",1:"AUTO"},TargetHeaterCoolerState:{0:"AUTO",1:"HEAT",2:"COOL"},TargetHeatingCoolingState:{0:"OFF",1:"HEAT",2:"COOL",3:"AUTO"},TargetHumidifierDehumidifierState:{0:"HUMIDIFIER_OR_DEHUMIDIFIER",1:"HUMIDIFIER",2:"DEHUMIDIFIER"},TargetMediaState:{0:"PLAY",1:"PAUSE",2:"STOP"},TargetVisibilityState:{0:"SHOWN",1:"HIDDEN"},TemperatureDisplayUnits:{0:"CELSIUS",1:"FAHRENHEIT"},ThirdPartyCameraActive:{0:"OFF",1:"ON"},ValveType:{0:"GENERIC_VALVE",1:"IRRIGATION",2:"SHOWER_HEAD",3:"WATER_FAUCET"},VolumeControlType:{0:"NONE",1:"RELATIVE",2:"RELATIVE_WITH_CURRENT",3:"ABSOLUTE"},VolumeSelector:{0:"INCREMENT",1:"DECREMENT"},WiFiSatelliteStatus:{0:"UNKNOWN",1:"CONNECTED",2:"NOT_CONNECTED"}}});var Un=Aa(Rn(),1);var ut=(()=>{class e{transform(t){if(typeof t!="number")return t;let n=1e6/t,i=Math.round(t),a=Math.round(n);return`${i}M (${a}K)`}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"convertMired",type:e,pure:!0})}return e})();var He=(()=>{class e{$settings=k(Ee);transform(t,n=this.$settings.env.temperatureUnits){return n==="f"?Math.round((t*1.8+32)*10)/10:Math.round(t*10)/10}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"convertTemp",type:e,pure:!0})}return e})();var $n=(()=>{class e{transform(t){return typeof t!="string"?t:t.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().replace(/\b\w/g,n=>n.toUpperCase()).trim()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"prettify",type:e,pure:!0})}return e})();var jn=(()=>{class e{transform(t){return typeof t!="string"||!t?t:`accessories.core.${t.replace(/^([A-Z])/,i=>i.toLowerCase()).replace(/([A-Z])/g,i=>`_${i.toLowerCase()}`)}`}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"serviceToTranslationString",type:e,pure:!0})}return e})();var Ia=(e,r)=>r.name,La=(e,r)=>r.key;function Fa(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" (",d(1,1,"settings.display.menu_default"),") ")}function Va(e,r){if(e&1&&(s(0,"option",28),p(1),l(2,"serviceToTranslationString"),l(3,"translate"),h(4,Fa,2,3),c()),e&2){let t=r.$implicit,n=u(2);T("value",t),o(),g(" ",d(3,5,d(2,3,t))," "),o(3),C(n.isDefaultType(t)?4:-1)}}function Pa(e,r){if(e&1){let t=G();s(0,"li",8)(1,"label",26),p(2),l(3,"translate"),c(),s(4,"div",10)(5,"select",27),J("ngModelChange",function(i){V(t);let a=u();return Q(a.localService.customType,i)||(a.localService.customType=i),P(i)}),tt(6,Va,5,7,"option",28,at),c()()()}if(e&2){let t=u();o(2),v(d(3,2,"accessories.custom_type")),o(3),Z("ngModel",t.localService.customType),o(),it(t.customTypeList.sort())}}function Oa(e,r){if(e&1){let t=G();s(0,"li",12)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"div",14)(5,"input",29),l(6,"translate"),J("ngModelChange",function(i){V(t);let a=u();return Q(a.localService.onDashboard,i)||(a.localService.onDashboard=i),P(i)}),c(),f(7,"label",30),c()()}if(e&2){let t=u();o(2),v(d(3,3,"accessories.show_on_dashboard")),o(3),Z("ngModel",t.localService.onDashboard),y("aria-label",d(6,5,"accessories.show_on_dashboard"))}}function Na(e,r){if(e&1&&(s(0,"small"),p(1),c()),e&2){let t=u().$implicit,n=u(3);o(),v(n.JSON.stringify(t.value,null,2))}}function Ha(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value," ")}}function Ra(e,r){if(e&1&&(s(0,"li",32)(1,"span",33),p(2),l(3,"prettify"),c(),s(4,"span",21),h(5,Na,2,1,"small")(6,Ha,1,1),c()()),e&2){let t=r.$implicit;o(2),v(d(3,2,t.key)),o(3),C(typeof t.value=="object"?5:6)}}function $a(e,r){if(e&1&&(s(0,"li",18)(1,"span",31),p(2),l(3,"prettify"),c()(),tt(4,Ra,7,4,"li",32,La),l(6,"keyvalue")),e&2){let t=r.$implicit;o(2),v(d(3,1,t.name)),o(2),it(d(6,3,t.attributes))}}function ja(e,r){if(e&1&&(s(0,"li",18)(1,"h6",19),p(2),l(3,"translate"),c()(),tt(4,$a,7,5,null,null,Ia)),e&2){let t=u();o(2),v(d(3,1,"accessories.service_info")),o(2),it(t.clusterInfo)}}function Ua(e,r){if(e&1){let t=G();s(0,"span",38),S("click",function(){V(t);let i=u().$implicit,a=u(2);return P(a.toggleDetailsVisibility(i))}),p(1),c()}if(e&2){let t=u().$implicit,n=u(2);y("aria-expanded",n.isDetailsVisible[t.uuid]),o(),v(t.description)}}function Wa(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.description," ")}}function Ga(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Step: ",t.minStep)}}function qa(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Min: ",t.minValue)}}function za(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Max: ",t.maxValue)}}function Ya(e,r){e&1&&p(0," \xB7 ")}function Ka(e,r){if(e&1&&(p(0),h(1,Ya,1,0)),e&2){let t=r.$implicit,n=r.$index,i=r.$count;g(" ",t," "),o(),C(n!==i-1?1:-1)}}function Za(e,r){if(e&1&&(s(0,"div"),p(1," Valid: "),tt(2,Ka,2,2,null,null,at),c()),e&2){let t=u(2).$implicit;o(2),it(t.validValues)}}function Qa(e,r){if(e&1&&(s(0,"div",35),h(1,Ga,2,1,"div"),h(2,qa,2,1,"div"),h(3,za,2,1,"div"),h(4,Za,4,0,"div"),c()),e&2){let t=u().$implicit;o(),C("minStep"in t?1:-1),o(),C("minValue"in t?2:-1),o(),C("maxValue"in t?3:-1),o(),C("validValues"in t?4:-1)}}function Ja(e,r){e&1&&p(0," Value: ")}function Xa(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function e0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function t0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function i0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function n0(e,r){if(e&1&&h(0,t0,2,3)(1,i0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function o0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function r0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function a0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function s0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function l0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function c0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function d0(e,r){if(e&1&&h(0,l0,2,3)(1,c0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function p0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function m0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function u0(e,r){if(e&1&&(s(0,"li",20)(1,"span"),h(2,Ua,2,2,"span",34)(3,Wa,1,1),h(4,Qa,5,4,"div",35),s(5,"div",36),h(6,Ja,1,0),h(7,Xa,1,1)(8,e0,2,3)(9,n0,2,1),h(10,o0,2,3)(11,r0,2,3),c()(),s(12,"span",37),h(13,a0,1,1)(14,s0,2,3)(15,d0,2,1),h(16,p0,2,3)(17,m0,2,3),c()()),e&2){let t,n,i=r.$implicit,a=u(2);o(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),o(2),C(a.isDetailsVisible[i.uuid]?4:-1),o(2),C(a.isDetailsVisible[i.uuid]?6:-1),o(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?10:i.format==="bool"?11:-1),o(3),C((n=i.unit)==="percentage"?13:n==="celsius"?14:15),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function f0(e,r){if(e&1&&(s(0,"li",18)(1,"h6",19),p(2),l(3,"translate"),c()(),s(4,"li",20)(5,"span",13),p(6),l(7,"translate"),c(),s(8,"span",21),p(9),c()(),s(10,"li",20)(11,"span",13),p(12),l(13,"translate"),c(),s(14,"span",21),p(15),c()(),tt(16,u0,18,7,"li",20,at)),e&2){let t=u();o(2),v(d(3,5,"accessories.service_info")),o(4),v(d(7,7,"accessories.service")),o(3),v(t.localService.humanType),o(3),v(d(13,9,"accessories.name")),o(3),v(t.localService.serviceName),o(),it(t.localService.serviceCharacteristics)}}function v0(e,r){if(e&1){let t=G();s(0,"span",38),S("click",function(){V(t);let i=u().$implicit,a=u(2);return P(a.toggleDetailsVisibility(i))}),p(1),c()}if(e&2){let t=u().$implicit,n=u(2);y("aria-expanded",n.isDetailsVisible[t.uuid]),o(),v(t.description)}}function g0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.description," ")}}function h0(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Step: ",t.minStep)}}function C0(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Min: ",t.minValue)}}function _0(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Max: ",t.maxValue)}}function y0(e,r){e&1&&p(0," \xB7 ")}function x0(e,r){if(e&1&&(p(0),h(1,y0,1,0)),e&2){let t=r.$implicit,n=r.$index,i=r.$count;g(" ",t," "),o(),C(n!==i-1?1:-1)}}function S0(e,r){if(e&1&&(s(0,"div"),p(1," Valid: "),tt(2,x0,2,2,null,null,at),c()),e&2){let t=u(2).$implicit;o(2),it(t.validValues)}}function k0(e,r){if(e&1&&(s(0,"div",35),h(1,h0,2,1,"div"),h(2,C0,2,1,"div"),h(3,_0,2,1,"div"),h(4,S0,4,0,"div"),c()),e&2){let t=u().$implicit;o(),C("minStep"in t?1:-1),o(),C("minValue"in t?2:-1),o(),C("maxValue"in t?3:-1),o(),C("validValues"in t?4:-1)}}function b0(e,r){e&1&&p(0," Value: ")}function T0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function M0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function B0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function w0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function E0(e,r){if(e&1&&h(0,B0,2,3)(1,w0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function D0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function A0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function I0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function L0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function F0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function V0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function P0(e,r){if(e&1&&h(0,F0,2,3)(1,V0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function O0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function N0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function H0(e,r){if(e&1&&(s(0,"li",20)(1,"span"),h(2,v0,2,2,"span",34)(3,g0,1,1),h(4,k0,5,4,"div",35),s(5,"div",36),h(6,b0,1,0),h(7,T0,1,1)(8,M0,2,3)(9,E0,2,1),h(10,D0,2,3)(11,A0,2,3),c()(),s(12,"span",37),h(13,I0,1,1)(14,L0,2,3)(15,P0,2,1),h(16,O0,2,3)(17,N0,2,3),c()()),e&2){let t,n,i=r.$implicit,a=u(2);o(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),o(2),C(a.isDetailsVisible[i.uuid]?4:-1),o(2),C(a.isDetailsVisible[i.uuid]?6:-1),o(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?10:i.format==="bool"?11:-1),o(3),C((n=i.unit)==="percentage"?13:n==="celsius"?14:15),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function R0(e,r){if(e&1&&(s(0,"ul",5)(1,"li",18)(2,"h6",19),p(3),l(4,"translate"),c()(),s(5,"li",20)(6,"span",13),p(7),l(8,"translate"),c(),s(9,"span",21),p(10),c()(),s(11,"li",20)(12,"span",13),p(13),l(14,"translate"),c(),s(15,"span",21),p(16),c()(),tt(17,H0,18,7,"li",20,at),c()),e&2){let t=r.$implicit;o(3),v(d(4,5,"accessories.service_info")),o(4),v(d(8,7,"accessories.service")),o(3),v(t.humanType),o(3),v(d(14,9,"accessories.name")),o(3),v(t.serviceName),o(),it(t.serviceCharacteristics)}}function $0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()()),e&2){let t=u(2);o(2),v(d(3,2,"child_bridge.config.platform")),o(3),v(t.matchedCachedAccessory.platform)}}function j0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()()),e&2){let t=u(2);o(2),v(d(3,2,"child_bridge.config.accessory")),o(3),v(t.matchedCachedAccessory.accessory)}}function U0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()(),h(6,$0,6,4,"li",20),h(7,j0,6,4,"li",20)),e&2){let t=u();o(2),v(d(3,4,"accessories.plugin")),o(3),v(t.matchedCachedAccessory.plugin),o(),C(t.matchedCachedAccessory.platform?6:-1),o(),C(t.matchedCachedAccessory.accessory?7:-1)}}function W0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),c(),s(3,"span",21),p(4),c()()),e&2){let t=r.$implicit;o(2),v(t.key),o(2),v(t.value)}}function G0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2,"Protocol"),c(),s(3,"span",21),p(4,"Matter"),c()(),s(5,"li",20)(6,"span",13),p(7,"Bridge"),c(),s(8,"span",21),p(9),c()()),e&2){let t=u();o(9),v(t.localService.instance.name)}}function q0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()()),e&2){let t=u();o(2),v(d(3,2,"child_bridge.config.name")),o(3),v(t.matchedCachedAccessory.bridge)}}function z0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()(),s(6,"li",20)(7,"span",13),p(8),l(9,"translate"),c(),s(10,"span",21),p(11),c()(),s(12,"li",20)(13,"span",39),p(14,"aid"),c(),s(15,"span",21),p(16),c()(),s(17,"li",20)(18,"span",39),p(19,"iid"),c(),s(20,"span",21),p(21),c()()),e&2){let t=u();o(2),v(d(3,6,"accessories.bridge_ip")),o(3),v(t.localService.instance.ipAddress),o(3),v(d(9,8,"accessories.bridge_port")),o(3),v(t.localService.instance.port),o(5),v(t.localService.aid),o(5),v(t.localService.iid)}}function Y0(e,r){if(e&1){let t=G();s(0,"li",20)(1,"span",39),p(2,"UUID"),c(),s(3,"span",21),p(4),c()(),s(5,"li",40)(6,"span",13),p(7),l(8,"translate"),c(),s(9,"button",41),S("click",function(){V(t);let i=u();return P(i.removeSingleCachedAccessories())}),f(10,"i",42),c()()}if(e&2){let t=u();o(4),v(t.matchedCachedAccessory.UUID),o(3),v(d(8,2,"accessories.button_remove"))}}var Wn=(()=>{class e{$activeModal=k(Fe);$modal=k(ne);modalData=k(ri);injector=k(te);accessoryCache=this.modalData.accessoryCache;pairingCache=this.modalData.pairingCache;service=this.modalData.service;localAccessoryCache=[];localPairingCache=[];localService;isDetailsVisible={};accessoryInformation;extraServices=[];matchedCachedAccessory=null;enums=Un.Enums;customTypeList=[];isMatterAccessory=!1;clusterInfo=[];hapCustomTypeList=[["AirPurifier","Switch","Outlet","Fan","Lightbulb","Heater","Cooler","Humidifier","Dehumidifier","Television","Valve","RobotVacuum","WashingMachine"],["Switch","Outlet","LockMechanism"],["Switch","Outlet","GarageDoorOpener"],["Door","Window","WindowCovering"],["Doorbell","Speaker","SmartSpeaker","Microphone"]];matterCustomTypeList=[["OnOffLight","OnOffLightSwitch","OnOffPlugInUnit","RoboticVacuumCleaner"],["Door","Window","WindowCovering"],["Fan"],["Thermostat"]];ngOnInit(){let t=this.accessoryCache,n=this.pairingCache,i=this.service;if(!t||!n||!i){console.error("AccessoryInfoComponent: required data not provided"),this.$activeModal.dismiss("Missing required data");return}if(this.localAccessoryCache=t,this.localPairingCache=n,this.localService=i,this.isMatterAccessory=this.localService.protocol==="matter",this.isMatterAccessory){this.customTypeList=[...new Set(this.matterCustomTypeList.filter(m=>m.includes(this.localService.deviceType)).flat())];let a=this.localService.clusters||{};this.clusterInfo=Object.entries(a).map(([m,A])=>({name:m,attributes:A})),this.accessoryInformation=Object.entries(this.localService.accessoryInformation||{}).map(([m,A])=>({key:m,value:A})),this.accessoryInformation.unshift({key:"Device Type",value:this.localService.deviceType||"Unknown"}),this.localService.customType||(this.localService.customType=this.localService.deviceType)}else this.customTypeList=[...new Set(this.hapCustomTypeList.filter(a=>a.includes(this.localService.type)).flat())],this.accessoryInformation=Object.entries(this.localService.accessoryInformation).map(([a,m])=>({key:a,value:m})),this.matchedCachedAccessory=this.matchToCachedAccessory(),this.localService.type==="LockMechanism"&&Object.values(this.localService.linkedServices).filter(a=>a.type==="LockManagement").forEach(a=>this.extraServices.push(a)),this.localService.customType||(this.localService.customType=this.localService.type)}removeSingleCachedAccessories(){this.$activeModal.close();let t=ie([{provide:Nn,useValue:{selectedBridge:this.localService.instance.username.replaceAll(":","")}}],this.injector);this.$modal.open(Hn,{size:"lg",backdrop:"static",injector:t})}isDefaultType(t){return this.isMatterAccessory?t===this.localService.deviceType:t===this.localService.type}toggleDetailsVisibility(t){("minStep"in t||"minValue"in t||"maxValue"in t||"validValues"in t)&&(this.isDetailsVisible[t.uuid]=!this.isDetailsVisible[t.uuid])}dismissModal(){this.$activeModal.dismiss("Dismiss")}matchToCachedAccessory(){let t=this.localService.instance.username,n=this.localPairingCache.find(i=>i._username===t);if(n){let i=n._main?"cachedAccessories":`cachedAccessories.${n._id}`,a=this.localAccessoryCache.filter(m=>m.$cacheFile===i);if(a.length){let m=this.localService.accessoryInformation.Name,A=this.localService.accessoryInformation["Serial Number"],q=a.filter(z=>{let ce=z.services.find(fe=>fe.constructorName==="AccessoryInformation"),ke=ce?.characteristics.find(fe=>fe.displayName==="Name"),Ve=ce?.characteristics.find(fe=>fe.displayName==="Serial Number");return ke?.value===m&&Ve?.value===A});if(q.length===1)return Dt(Et({},q[0]),{bridge:n.name})}}}Number=Number;JSON=JSON;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],decls:61,vars:43,consts:[["role","dialog","aria-modal","true",1,"modal-content"],[1,"modal-header"],["id","accessory-info-modal-title",1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"list-group","list-group-box","mb-3"],[1,"list-group-item","text-center","grey-text","small"],[3,"innerHTML"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["type","text","id","form-name","autocomplete","off",1,"form-control","custom-input",3,"ngModelChange","ngModel"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","flex-row","pb-2"],[1,"text-start"],[1,"text-end","grey-text","d-flex","align-items-center"],["type","checkbox","id","hide-accessory",1,"rendux-input",3,"ngModelChange","ngModel"],["for","hide-accessory",1,"rendux-label","ms-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item"],[1,"mb-0","text-center"],[1,"list-group-item","d-flex","justify-content-between","align-items-left","flex-column","flex-md-row"],[1,"text-start","text-md-end","grey-text","font-monospace"],[1,"modal-footer","justify-content-between"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"custom-select",3,"ngModelChange","ngModel"],[3,"value"],["type","checkbox","id","show-on-dashboard",1,"rendux-input","mb-0",3,"ngModelChange","ngModel"],["for","show-on-dashboard",1,"rendux-label","ms-3"],[1,"fw-bold"],[1,"list-group-item","d-flex","justify-content-between","align-items-start","align-items-md-center","flex-column","flex-md-row"],[1,"text-start","me-2"],[1,"hover-pointer"],[1,"grey-text","m-0","p-0","font-monospace"],[1,"d-block","d-md-none","font-monospace","grey-text"],[1,"text-start","text-md-end","grey-text","font-monospace","d-none","d-md-block","align-content-center"],[1,"hover-pointer",3,"click"],[1,"text-start","font-monospace"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"btn","btn-primary","m-0","ms-3","py-1",3,"click"],[1,"fas","fa-arrow-right"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1)(2,"h5",2),p(3),c(),s(4,"button",3),l(5,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(6,"div",4)(7,"ul",5)(8,"li",6),f(9,"span",7),l(10,"translate"),f(11,"br")(12,"span",7),l(13,"translate"),c(),s(14,"li",8)(15,"label",9),p(16),l(17,"translate"),c(),s(18,"div",10)(19,"input",11),S("ngModelChange",function(m){return i.localService.customName=m}),c()()(),h(20,Pa,8,4,"li",8),s(21,"li",12)(22,"span",13),p(23),l(24,"translate"),c(),s(25,"div",14)(26,"input",15),l(27,"translate"),J("ngModelChange",function(m){return Q(i.localService.hidden,m)||(i.localService.hidden=m),m}),c(),f(28,"label",16),c()(),h(29,Oa,8,7,"li",12),c(),s(30,"ul",5),h(31,ja,6,3)(32,f0,18,11),c(),tt(33,R0,19,11,"ul",5,at),s(35,"ul",17)(36,"li",18)(37,"h6",19),p(38),l(39,"translate"),c()(),h(40,U0,8,6),tt(41,W0,5,2,"li",20,at),h(43,G0,10,1),s(44,"li",20)(45,"span",13),p(46),l(47,"translate"),c(),s(48,"span",21),p(49),c()(),h(50,q0,6,4,"li",20),h(51,z0,22,10),h(52,Y0,11,4),c()(),s(53,"div",22),f(54,"div",13),s(55,"div",23)(56,"button",24),l(57,"translate"),S("click",function(){return i.dismissModal()}),p(58),l(59,"translate"),c()(),f(60,"div",25),c()()),n&2&&(y("aria-labelledby","accessory-info-modal-title"),o(3),g(" ",i.localService.customName||i.localService.serviceName," "),o(),y("aria-label",d(5,23,"form.button_close")),o(5),T("innerHTML",d(10,25,"accessories.only_ui"),Ke),o(3),T("innerHTML",d(13,27,"accessories.only_ui_2"),Ke),o(4),v(d(17,29,"accessories.custom_name")),o(3),T("ngModel",i.localService.customName||i.localService.serviceName),o(),C(i.customTypeList.length?20:-1),o(3),v(d(24,31,"accessories.hide_this_accessory")),o(3),Z("ngModel",i.localService.hidden),y("aria-label",d(27,33,"accessories.hide_this_accessory")),o(3),C(i.localService.hidden?-1:29),o(2),C(i.isMatterAccessory?31:32),o(2),it(i.extraServices),o(5),v(d(39,35,"accessories.accessory_info")),o(2),C(i.matchedCachedAccessory?40:-1),o(),it(i.accessoryInformation),o(2),C(i.isMatterAccessory?43:-1),o(3),v(d(47,37,"users.label_username")),o(3),v(i.localService.instance.username),o(),C(i.matchedCachedAccessory?50:-1),o(),C(i.isMatterAccessory?-1:51),o(),C(i.matchedCachedAccessory?52:-1),o(4),y("aria-label",d(57,39,"form.button_close")),o(2),g(" ",d(59,41,"form.button_close")," "))},dependencies:[le,Vn,Pn,Ln,In,Fn,de,pe,Bn,w,He,$n,ut,jn],encapsulation:2,changeDetection:0})}return e})();var re=(()=>{class e{injector=k(te);$api=k(En);$auth=k(Dn);$destroyRef=k(be);$modal=k(ne);$toastr=k(Ne);$translate=k(wn);$ws=k(On);accessoryCache=[];pairingCache=[];customAttributesApplied=new Set;io;stop$=new ee;hiddenTypes=["InputSource","LockManagement","CameraRTPStreamManagement","ProtocolInformation","NFCAccess"];layoutSaved=new ee;accessoryData=new ee;readyForControl=!1;hapReadyForControl=!1;matterReadyForControl=!1;accessories={services:[]};accessoryLayout;originalLayout;rooms=mt([]);constructor(){this.$auth.user.admin&&this.loadCachedData()}loadCachedData(){return se(this,null,function*(){try{this.accessoryCache=yield this.$api.get("/server/cached-accessories")}catch(t){console.error(t)}try{this.pairingCache=yield this.$api.get("/server/pairings")}catch(t){console.error(t)}})}showAccessoryInformation(t){return se(this,null,function*(){let n=ie([{provide:ri,useValue:{service:t,accessoryCache:this.accessoryCache,pairingCache:this.pairingCache}}],this.injector),i=this.$modal.open(Wn,{size:"lg",backdrop:"static",injector:n});try{yield i.result}catch{}finally{this.saveLayout()}return!1})}stop(){this.stop$.next(),this.stop$.complete(),this.io.end(),this.rooms.set([]),this.accessories={services:[]},this.customAttributesApplied.clear(),delete this.accessoryLayout,delete this.originalLayout,this.stop$=new ee}start(){return se(this,null,function*(){this.readyForControl=!1,this.hapReadyForControl=!1,this.matterReadyForControl=!1,this.io=this.$ws.connectToNamespace("accessories"),yield this.loadLayout(),this.io.connected.pipe(Wt(this.stop$)).subscribe(()=>{this.io.socket.emit("get-accessories")}),this.io.socket.connected&&this.io.socket.emit("get-accessories"),this.io.socket.on("accessories-data",t=>{this.parseServices(t),this.generateHelpers(),this.sortIntoRooms(),this.orderRooms(),this.applyCustomAttributes(),this.accessoryData.next(t)}),this.io.socket.on("accessories-reload-required",()=>se(this,null,function*(){this.stop(),yield this.start()})),this.io.socket.on("matter-accessories-reload-required",()=>se(this,null,function*(){this.matterReadyForControl=!1,this.io.socket.emit("accessory-control",{refresh:!0})})),this.io.socket.on("accessory-control-failure",t=>{console.error(t),this.$toastr.error(t,this.$translate.instant("toast.title_error"))}),this.io.socket.on("accessories-ready-for-control",()=>{this.readyForControl=!0}),this.io.socket.on("hap-accessories-ready-for-control",()=>{this.hapReadyForControl=!0}),this.io.socket.on("matter-accessories-ready-for-control",()=>{this.matterReadyForControl=!0})})}saveLayout(){let t=this.rooms().map(i=>({name:i.name,isDefault:i.isDefault,services:i.services.map(a=>({uniqueId:a.uniqueId,name:a.serviceName,serial:a.accessoryInformation["Serial Number"],bridge:a.instance.username,aid:a.aid,iid:a.iid,uuid:a.uuid,customName:a.customName||void 0,customType:a.customType||void 0,hidden:a.hidden||void 0,onDashboard:a.onDashboard||void 0}))}));!t.some(i=>i.isDefault===!0)&&t.length>0&&(t[0].isDefault=!0),this.accessoryLayout=this.mergeWithUndiscoveredServices(t),this.io.request("save-layout",{user:this.$auth.user.username,layout:this.accessoryLayout}).pipe(Wt(this.stop$),Ce(this.$destroyRef)).subscribe({next:()=>this.layoutSaved.next(void 0),error:i=>{console.error(i),this.$toastr.error(i.message,this.$translate.instant("toast.title_error"))}})}loadLayout(){return se(this,null,function*(){if(this.accessoryLayout=yield dn(this.io.request("get-layout",{user:this.$auth.user.username})),this.originalLayout=JSON.parse(JSON.stringify(this.accessoryLayout)),!this.accessoryLayout.some(n=>n.isDefault)&&this.accessoryLayout.length>0){let n=this.accessoryLayout.findIndex(a=>a.name==="Default Room"),i=n!==-1?n:0;this.accessoryLayout[i].isDefault=!0}this.rooms.set(this.accessoryLayout.map(n=>({name:n.name,isDefault:n.isDefault,services:[]})))})}servicesMatch(t,n){return n.protocol==="matter"||n.uniqueId?.startsWith("matter:")?t.uniqueId===n.uniqueId&&t.bridge===(n.instance?.username||n.bridge):t.uniqueId===n.uniqueId?!0:t.name===(n.serviceName||n.name)&&t.serial===(n.accessoryInformation?.["Serial Number"]||n.serial)&&t.bridge===(n.instance?.username||n.bridge)&&t.uuid===n.uuid}mergeWithUndiscoveredServices(t){if(!this.originalLayout)return t;let n=JSON.parse(JSON.stringify(t)),i=new Set;return n.forEach(a=>{a.services.forEach(m=>{let A=null;for(let q of this.originalLayout){for(let z of q.services)if(z.name&&this.servicesMatch(z,m)){A=z;break}if(A)break}A&&i.add(A.uniqueId)})}),this.originalLayout.forEach(a=>{a.services.forEach(m=>{if(i.has(m.uniqueId)||!m.name)return;let A=n.find(q=>q.name===a.name);!A&&(A=n.find(q=>q.isDefault),!A)||A.services.push({uniqueId:m.uniqueId,name:m.name,bridge:m.bridge,serial:m.serial,aid:m.aid,iid:m.iid,uuid:m.uuid,customName:m.customName,customType:m.customType,hidden:m.hidden,onDashboard:m.onDashboard})})}),n.filter(a=>a.services.length>0||t.some(m=>m.name===a.name))}parseServices(t){if(!this.accessories.services.length){this.accessories.services=t;return}t.forEach(n=>{let i=this.accessories.services.find(a=>a.uniqueId===n.uniqueId);n.type==="LockMechanism"&&this.attachLockManagementToMechanism(n),i?Object.assign(i,n):this.accessories.services.push(n)})}sortIntoRooms(){let t=new Set(this.hiddenTypes);this.accessories.services.forEach(n=>{if(t.has(n.type))return;if(n.linked&&(n.linkedServices={},n.linked.forEach(a=>{n.linkedServices[a]=this.accessories.services.find(m=>m.aid===n.aid&&m.iid===a&&m.instance.username===n.instance.username)})),!this.rooms().find(a=>a.services.find(m=>m.uniqueId===n.uniqueId))){let a=null,m=null;for(let A of this.accessoryLayout)if(m=A.services.find(q=>this.servicesMatch(q,n)),m){a=A;break}if(a&&m)m.customType&&(n.customType=m.customType),m.customName&&(n.customName=m.customName),m.hidden&&(n.hidden=m.hidden),m.onDashboard&&(n.onDashboard=m.onDashboard),this.customAttributesApplied.add(n.uniqueId),this.rooms.update(A=>A.map(q=>q.name===a.name?Dt(Et({},q),{services:[...q.services,n]}):q));else{this.customAttributesApplied.add(n.uniqueId);let A=this.rooms().find(q=>q.isDefault===!0);A||(A=this.rooms().find(q=>q.name==="Default Room")),A?this.rooms.update(q=>q.map(z=>z.name===A.name?Dt(Et({},z),{services:[...z.services,n]}):z)):this.rooms.update(q=>[...q,{name:"Default Room",isDefault:!0,services:[n]}])}}})}orderRooms(){this.rooms.update(t=>t.map(n=>{let i=this.accessoryLayout.find(m=>m.name===n.name),a=[...n.services].sort((m,A)=>{let q=i.services.findIndex(ce=>ce.uniqueId===m.uniqueId),z=i.services.findIndex(ce=>ce.uniqueId===A.uniqueId);return q<z?-1:q>z?1:0});return Dt(Et({},n),{services:a})}))}applyCustomAttributes(){this.rooms().forEach(t=>{let n=this.accessoryLayout.find(i=>i.name===t.name);n&&t.services.forEach(i=>{if(this.customAttributesApplied.has(i.uniqueId))return;let a=n.services.find(A=>A.uniqueId===i.uniqueId);if(!a)return;let m=i;a.customType&&(m.customType=a.customType),a.customName&&(m.customName=a.customName),a.hidden&&(m.hidden=a.hidden),a.onDashboard&&(m.onDashboard=a.onDashboard),this.customAttributesApplied.add(i.uniqueId)})})}generateHelpers(){this.accessories.services.forEach(t=>{let n=t;n.protocol==="matter"?n.getCluster||(n.getCluster=i=>{let a=n.clusters||{};return a[i]?{attributes:a[i],setAttributes:m=>new Promise(A=>{if(!this.matterReadyForControl){console.warn("Matter control attempted but not ready for control:",{matterReadyForControl:this.matterReadyForControl,uniqueId:t.uniqueId,cluster:i}),A(void 0);return}return this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,cluster:i,attributes:m}}),A(void 0)})}:null}):t.getCharacteristic||(t.getCharacteristic=i=>{let a=t.serviceCharacteristics.find(m=>m.type===i);return a?(a.setValue=m=>new Promise(A=>(this.readyForControl||A(void 0),this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,aid:t.aid,siid:t.iid,iid:a.iid,value:m}}),A(void 0))),a):null})})}attachLockManagementToMechanism(t){let n=[],i=[];for(let a of this.accessories.services)a.type==="LockMechanism"&&a.accessoryInformation.Name===t.accessoryInformation.Name&&a.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]?n.push(a):a.type==="LockManagement"&&a.accessoryInformation.Name===t.accessoryInformation.Name&&a.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]&&i.push(a);if(n.length===1&&i.length===1){let a=i[0];t.linkedServices||(t.linkedServices={}),t.linkedServices[a.iid]=a}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ii({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Y=new ni("AccessoryManageModalData"),he=(()=>{class e{destroyRef=k(be);$activeModal=k(Fe);cdr=k(Oe);modalData=k(Y);service;$accessories;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("BaseManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(Ce(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}createDebouncedSubscription(t,n,i=500){t.pipe(Ye(i),Ce(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(a=>{a.style.background=t})})}blurTarget(t){t.target.blur()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,i){},encapsulation:2,changeDetection:0})}return e})();var xt=(function(e){return e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values",e})(xt||{}),Qe=(function(e){return e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue",e})(Qe||{});function K0(e){return si(e)&&typeof e.from=="function"}function si(e){return typeof e=="object"&&typeof e.to=="function"}function Gn(e){e.parentElement.removeChild(e)}function Fi(e){return e!=null}function qn(e){e.preventDefault()}function Z0(e){return e.filter(function(r){return this[r]?!1:this[r]=!0},{})}function Q0(e,r){return Math.round(e/r)*r}function J0(e,r){var t=e.getBoundingClientRect(),n=e.ownerDocument,i=n.documentElement,a=Zn(n);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),r?t.top+a.y-i.clientTop:t.left+a.x-i.clientLeft}function ot(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function zn(e,r,t){t>0&&(We(e,r),setTimeout(function(){ai(e,r)},t))}function Yn(e){return Math.max(Math.min(e,100),0)}function li(e){return Array.isArray(e)?e:[e]}function X0(e){e=String(e);var r=e.split(".");return r.length>1?r[1].length:0}function We(e,r){e.classList&&!/\s/.test(r)?e.classList.add(r):e.className+=" "+r}function ai(e,r){e.classList&&!/\s/.test(r)?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")}function es(e,r){return e.classList?e.classList.contains(r):new RegExp("\\b"+r+"\\b").test(e.className)}function Zn(e){var r=window.pageXOffset!==void 0,t=(e.compatMode||"")==="CSS1Compat",n=r?window.pageXOffset:t?e.documentElement.scrollLeft:e.body.scrollLeft,i=r?window.pageYOffset:t?e.documentElement.scrollTop:e.body.scrollTop;return{x:n,y:i}}function ts(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function is(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r)}catch{}return e}function ns(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Pi(e,r){return 100/(r-e)}function Vi(e,r,t){return r*100/(e[t+1]-e[t])}function os(e,r){return Vi(e,e[0]<0?r+Math.abs(e[0]):r-e[0],0)}function rs(e,r){return r*(e[1]-e[0])/100+e[0]}function Gt(e,r){for(var t=1;e>=r[t];)t+=1;return t}function as(e,r,t){if(t>=e.slice(-1)[0])return 100;var n=Gt(t,e),i=e[n-1],a=e[n],m=r[n-1],A=r[n];return m+os([i,a],t)/Pi(m,A)}function ss(e,r,t){if(t>=100)return e.slice(-1)[0];var n=Gt(t,r),i=e[n-1],a=e[n],m=r[n-1],A=r[n];return rs([i,a],(t-m)*Pi(m,A))}function ls(e,r,t,n){if(n===100)return n;var i=Gt(n,e),a=e[i-1],m=e[i];return t?n-a>(m-a)/2?m:a:r[i-1]?e[i-1]+Q0(n-e[i-1],r[i-1]):n}var cs=(function(){function e(r,t,n){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var i,a=[];for(Object.keys(r).forEach(function(m){a.push([li(r[m]),m])}),a.sort(function(m,A){return m[0][0]-A[0][0]}),i=0;i<a.length;i++)this.handleEntryPoint(a[i][1],a[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(r){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=Vi(this.xVal,r,n);return t},e.prototype.getAbsoluteDistance=function(r,t,n){var i=0;if(r<this.xPct[this.xPct.length-1])for(;r>this.xPct[i+1];)i++;else r===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);!n&&r===this.xPct[i+1]&&i++,t===null&&(t=[]);var a,m=1,A=t[i],q=0,z=0,ce=0,ke=0;for(n?a=(r-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):a=(this.xPct[i+1]-r)/(this.xPct[i+1]-this.xPct[i]);A>0;)q=this.xPct[i+1+ke]-this.xPct[i+ke],t[i+ke]*m+100-a*100>100?(z=q*a,m=(A-100*a)/t[i+ke],a=1):(z=t[i+ke]*q/100*m,m=0),n?(ce=ce-z,this.xPct.length+ke>=1&&ke--):(ce=ce+z,this.xPct.length-ke>=1&&ke++),A=t[i+ke]*m;return r+ce},e.prototype.toStepping=function(r){return r=as(this.xVal,this.xPct,r),r},e.prototype.fromStepping=function(r){return ss(this.xVal,this.xPct,r)},e.prototype.getStep=function(r){return r=ls(this.xPct,this.xSteps,this.snap,r),r},e.prototype.getDefaultStep=function(r,t,n){var i=Gt(r,this.xPct);return(r===100||t&&r===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(r){var t=Gt(r,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var r=this.xNumSteps.map(X0);return Math.max.apply(null,r)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(r){return this.getStep(this.toStepping(r))},e.prototype.handleEntryPoint=function(r,t){var n;if(r==="min"?n=0:r==="max"?n=100:n=parseFloat(r),!ot(n)||!ot(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(isNaN(i)?!1:i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(r,t){if(t){if(this.xVal[r]===this.xVal[r+1]){this.xSteps[r]=this.xHighestCompleteStep[r]=this.xVal[r];return}this.xSteps[r]=Vi([this.xVal[r],this.xVal[r+1]],t,0)/Pi(this.xPct[r],this.xPct[r+1]);var n=(this.xVal[r+1]-this.xVal[r])/this.xNumSteps[r],i=Math.ceil(Number(n.toFixed(3))-1),a=this.xVal[r]+this.xNumSteps[r]*i;this.xHighestCompleteStep[r]=a}},e})(),Kn={to:function(e){return e===void 0?"":e.toFixed(2)},from:Number},ds={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},ft={tooltips:".__tooltips",aria:".__aria"};function ps(e,r){if(!ot(r))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=r}function ms(e,r){if(!ot(r))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=r}function us(e,r){if(!ot(r))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=r}function fs(e,r){if(!ot(r))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=r}function vs(e,r){if(typeof r!="object"||Array.isArray(r))throw new Error("noUiSlider: 'range' is not an object.");if(r.min===void 0||r.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new cs(r,e.snap||!1,e.singleStep)}function gs(e,r){if(r=li(r),!Array.isArray(r)||!r.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=r.length,e.start=r}function hs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=r}function Cs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=r}function _s(e,r){if(typeof r!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=r}function Qn(e,r){var t=[!1],n;if(r==="lower"?r=[!0,!1]:r==="upper"&&(r=[!1,!0]),r===!0||r===!1){for(n=1;n<e.handles;n++)t.push(r);t.push(!1)}else{if(!Array.isArray(r)||!r.length||r.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=r}e.connect=t}function ys(e,r){switch(r){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Jn(e,r){if(!ot(r))throw new Error("noUiSlider: 'margin' option must be numeric.");r!==0&&(e.margin=e.spectrum.getDistance(r))}function xs(e,r){if(!ot(r))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(r),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Ss(e,r){var t;if(!ot(r)&&!Array.isArray(r))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(r)&&!(r.length===2||ot(r[0])||ot(r[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(r!==0){for(Array.isArray(r)||(r=[r,r]),e.padding=[e.spectrum.getDistance(r[0]),e.spectrum.getDistance(r[1])],t=0;t<e.spectrum.xNumSteps.length-1;t++)if(e.padding[0][t]<0||e.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var n=r[0]+r[1],i=e.spectrum.xVal[0],a=e.spectrum.xVal[e.spectrum.xVal.length-1];if(n/(a-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ks(e,r){switch(r){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function bs(e,r){if(typeof r!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=r.indexOf("tap")>=0,n=r.indexOf("drag")>=0,i=r.indexOf("fixed")>=0,a=r.indexOf("snap")>=0,m=r.indexOf("hover")>=0,A=r.indexOf("unconstrained")>=0,q=r.indexOf("invert-connects")>=0,z=r.indexOf("drag-all")>=0,ce=r.indexOf("smooth-steps")>=0;if(i){if(e.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Jn(e,e.start[1]-e.start[0])}if(q&&e.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(A&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:t||a,drag:n,dragAll:z,smoothSteps:ce,fixed:i,snap:a,hover:m,unconstrained:A,invertConnects:q}}function Ts(e,r){if(r!==!1)if(r===!0||si(r)){e.tooltips=[];for(var t=0;t<e.handles;t++)e.tooltips.push(r)}else{if(r=li(r),r.length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");r.forEach(function(n){if(typeof n!="boolean"&&!si(n))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=r}}function Ms(e,r){if(r.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=r}function Bs(e,r){if(!si(r))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=r}function ws(e,r){if(!K0(r))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=r}function Es(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=r}function Ds(e,r){e.documentElement=r}function As(e,r){if(typeof r!="string"&&r!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=r}function Is(e,r){if(typeof r!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof e.cssPrefix=="string"?(e.cssClasses={},Object.keys(r).forEach(function(t){e.cssClasses[t]=e.cssPrefix+r[t]})):e.cssClasses=r}function Xn(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Kn,format:Kn},t={step:{r:!1,t:ps},keyboardPageMultiplier:{r:!1,t:ms},keyboardMultiplier:{r:!1,t:us},keyboardDefaultStep:{r:!1,t:fs},start:{r:!0,t:gs},connect:{r:!0,t:Qn},direction:{r:!0,t:ks},snap:{r:!1,t:hs},animate:{r:!1,t:Cs},animationDuration:{r:!1,t:_s},range:{r:!0,t:vs},orientation:{r:!1,t:ys},margin:{r:!1,t:Jn},limit:{r:!1,t:xs},padding:{r:!1,t:Ss},behaviour:{r:!0,t:bs},ariaFormat:{r:!1,t:Bs},format:{r:!1,t:ws},tooltips:{r:!1,t:Ts},keyboardSupport:{r:!0,t:Es},documentElement:{r:!1,t:Ds},cssPrefix:{r:!0,t:As},cssClasses:{r:!0,t:Is},handleAttributes:{r:!1,t:Ms}},n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ds,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(t).forEach(function(q){if(!Fi(e[q])&&n[q]===void 0){if(t[q].r)throw new Error("noUiSlider: '"+q+"' is required.");return}t[q].t(r,Fi(e[q])?e[q]:n[q])}),r.pips=e.pips;var i=document.createElement("div"),a=i.style.msTransform!==void 0,m=i.style.transform!==void 0;r.transformRule=m?"transform":a?"msTransform":"webkitTransform";var A=[["left","top"],["right","bottom"]];return r.style=A[r.dir][r.ort],r}function Ls(e,r,t){var n=ts(),i=ns(),a=i&&is(),m=e,A,q,z,ce,ke,Ve,fe=r.spectrum,ct=[],Te=[],ze=[],Ci=0,dt={},$t=!1,wt=e.ownerDocument,Qt=r.documentElement||wt.documentElement,Jt=wt.body,na=wt.dir==="rtl"||r.ort===1?0:100;function pt(_,M){var D=wt.createElement("div");return M&&We(D,M),_.appendChild(D),D}function oa(_,M){var D=pt(_,r.cssClasses.origin),H=pt(D,r.cssClasses.handle);if(pt(H,r.cssClasses.touchArea),H.setAttribute("data-handle",String(M)),r.keyboardSupport&&(H.setAttribute("tabindex","0"),H.addEventListener("keydown",function(W){return ya(W,M)})),r.handleAttributes!==void 0){var U=r.handleAttributes[M];Object.keys(U).forEach(function(W){H.setAttribute(W,U[W])})}return H.setAttribute("role","slider"),H.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),M===0?We(H,r.cssClasses.handleLower):M===r.handles-1&&We(H,r.cssClasses.handleUpper),D.handle=H,D}function _i(_,M){return M?pt(_,r.cssClasses.connect):!1}function ra(_,M){q=pt(M,r.cssClasses.connects),z=[],ce=[],ce.push(_i(q,_[0]));for(var D=0;D<r.handles;D++)z.push(oa(M,D)),ze[D]=D,ce.push(_i(q,_[D+1]))}function aa(_){We(_,r.cssClasses.target),r.dir===0?We(_,r.cssClasses.ltr):We(_,r.cssClasses.rtl),r.ort===0?We(_,r.cssClasses.horizontal):We(_,r.cssClasses.vertical);var M=getComputedStyle(_).direction;return M==="rtl"?We(_,r.cssClasses.textDirectionRtl):We(_,r.cssClasses.textDirectionLtr),pt(_,r.cssClasses.base)}function sa(_,M){return!r.tooltips||!r.tooltips[M]?!1:pt(_.firstChild,r.cssClasses.tooltip)}function zi(){return m.hasAttribute("disabled")}function yi(_){var M=z[_];return M.hasAttribute("disabled")}function la(_){_!=null?(z[_].setAttribute("disabled",""),z[_].handle.removeAttribute("tabindex")):(m.setAttribute("disabled",""),z.forEach(function(M){M.handle.removeAttribute("tabindex")}))}function ca(_){_!=null?(z[_].removeAttribute("disabled"),z[_].handle.setAttribute("tabindex","0")):(m.removeAttribute("disabled"),z.forEach(function(M){M.removeAttribute("disabled"),M.handle.setAttribute("tabindex","0")}))}function xi(){Ve&&(jt("update"+ft.tooltips),Ve.forEach(function(_){_&&Gn(_)}),Ve=null)}function Yi(){xi(),Ve=z.map(sa),Mi("update"+ft.tooltips,function(_,M,D){if(!(!Ve||!r.tooltips)&&Ve[M]!==!1){var H=_[M];r.tooltips[M]!==!0&&(H=r.tooltips[M].to(D[M])),Ve[M].innerHTML=H}})}function da(){jt("update"+ft.aria),Mi("update"+ft.aria,function(_,M,D,H,U){ze.forEach(function(W){var oe=z[W],K=Xt(Te,W,0,!0,!0,!0),ye=Xt(Te,W,100,!0,!0,!0),xe=U[W],Me=String(r.ariaFormat.to(D[W]));K=fe.fromStepping(K).toFixed(1),ye=fe.fromStepping(ye).toFixed(1),xe=fe.fromStepping(xe).toFixed(1),oe.children[0].setAttribute("aria-valuemin",K),oe.children[0].setAttribute("aria-valuemax",ye),oe.children[0].setAttribute("aria-valuenow",xe),oe.children[0].setAttribute("aria-valuetext",Me)})})}function pa(_){if(_.mode===xt.Range||_.mode===xt.Steps)return fe.xVal;if(_.mode===xt.Count){if(_.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var M=_.values-1,D=100/M,H=[];M--;)H[M]=M*D;return H.push(100),Ki(H,_.stepped)}return _.mode===xt.Positions?Ki(_.values,_.stepped):_.mode===xt.Values?_.stepped?_.values.map(function(U){return fe.fromStepping(fe.getStep(fe.toStepping(U)))}):_.values:[]}function Ki(_,M){return _.map(function(D){return fe.fromStepping(M?fe.getStep(D):D)})}function ma(_){function M(xe,Me){return Number((xe+Me).toFixed(7))}var D=pa(_),H={},U=fe.xVal[0],W=fe.xVal[fe.xVal.length-1],oe=!1,K=!1,ye=0;return D=Z0(D.slice().sort(function(xe,Me){return xe-Me})),D[0]!==U&&(D.unshift(U),oe=!0),D[D.length-1]!==W&&(D.push(W),K=!0),D.forEach(function(xe,Me){var Be,_e,Ie,je=xe,Pe=D[Me+1],Re,Ei,Di,Ai,an,Ii,sn,ln=_.mode===xt.Steps;for(ln&&(Be=fe.xNumSteps[Me]),Be||(Be=Pe-je),Pe===void 0&&(Pe=je),Be=Math.max(Be,1e-7),_e=je;_e<=Pe;_e=M(_e,Be)){for(Re=fe.toStepping(_e),Ei=Re-ye,an=Ei/(_.density||1),Ii=Math.round(an),sn=Ei/Ii,Ie=1;Ie<=Ii;Ie+=1)Di=ye+Ie*sn,H[Di.toFixed(5)]=[fe.fromStepping(Di),0];Ai=D.indexOf(_e)>-1?Qe.LargeValue:ln?Qe.SmallValue:Qe.NoValue,!Me&&oe&&_e!==Pe&&(Ai=0),_e===Pe&&K||(H[Re.toFixed(5)]=[_e,Ai]),ye=Re}}),H}function ua(_,M,D){var H,U,W=wt.createElement("div"),oe=(H={},H[Qe.None]="",H[Qe.NoValue]=r.cssClasses.valueNormal,H[Qe.LargeValue]=r.cssClasses.valueLarge,H[Qe.SmallValue]=r.cssClasses.valueSub,H),K=(U={},U[Qe.None]="",U[Qe.NoValue]=r.cssClasses.markerNormal,U[Qe.LargeValue]=r.cssClasses.markerLarge,U[Qe.SmallValue]=r.cssClasses.markerSub,U),ye=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],xe=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];We(W,r.cssClasses.pips),We(W,r.ort===0?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical);function Me(_e,Ie){var je=Ie===r.cssClasses.value,Pe=je?ye:xe,Re=je?oe:K;return Ie+" "+Pe[r.ort]+" "+Re[_e]}function Be(_e,Ie,je){if(je=M?M(Ie,je):je,je!==Qe.None){var Pe=pt(W,!1);Pe.className=Me(je,r.cssClasses.marker),Pe.style[r.style]=_e+"%",je>Qe.NoValue&&(Pe=pt(W,!1),Pe.className=Me(je,r.cssClasses.value),Pe.setAttribute("data-value",String(Ie)),Pe.style[r.style]=_e+"%",Pe.innerHTML=String(D.to(Ie)))}}return Object.keys(_).forEach(function(_e){Be(_e,_[_e][0],_[_e][1])}),W}function Si(){ke&&(Gn(ke),ke=null)}function ki(_){Si();var M=ma(_),D=_.filter,H=_.format||{to:function(U){return String(Math.round(U))}};return ke=m.appendChild(ua(M,D,H)),ke}function Zi(){var _=A.getBoundingClientRect(),M="offset"+["Width","Height"][r.ort];return r.ort===0?_.width||A[M]:_.height||A[M]}function Ct(_,M,D,H){var U=function(oe){var K=fa(oe,H.pageOffset,H.target||M);if(!K||zi()&&!H.doNotReject||es(m,r.cssClasses.tap)&&!H.doNotReject||_===n.start&&K.buttons!==void 0&&K.buttons>1||H.hover&&K.buttons)return!1;a||K.preventDefault(),K.calcPoint=K.points[r.ort],D(K,H)},W=[];return _.split(" ").forEach(function(oe){M.addEventListener(oe,U,a?{passive:!0}:!1),W.push([oe,U])}),W}function fa(_,M,D){var H=_.type.indexOf("touch")===0,U=_.type.indexOf("mouse")===0,W=_.type.indexOf("pointer")===0,oe=0,K=0;if(_.type.indexOf("MSPointer")===0&&(W=!0),_.type==="mousedown"&&!_.buttons&&!_.touches)return!1;if(H){var ye=function(Be){var _e=Be.target;return _e===D||D.contains(_e)||_.composed&&_.composedPath().shift()===D};if(_.type==="touchstart"){var xe=Array.prototype.filter.call(_.touches,ye);if(xe.length>1)return!1;oe=xe[0].pageX,K=xe[0].pageY}else{var Me=Array.prototype.find.call(_.changedTouches,ye);if(!Me)return!1;oe=Me.pageX,K=Me.pageY}}return M=M||Zn(wt),(U||W)&&(oe=_.clientX+M.x,K=_.clientY+M.y),_.pageOffset=M,_.points=[oe,K],_.cursor=U||W,_}function Qi(_){var M=_-J0(A,r.ort),D=M*100/Zi();return D=Yn(D),r.dir?100-D:D}function va(_){var M=100,D=!1;return z.forEach(function(H,U){if(!yi(U)){var W=Te[U],oe=Math.abs(W-_),K=oe===100&&M===100,ye=oe<M,xe=oe<=M&&_>W;(ye||xe||K)&&(D=U,M=oe)}}),D}function ga(_,M){_.type==="mouseout"&&_.target.nodeName==="HTML"&&_.relatedTarget===null&&bi(_,M)}function ha(_,M){if(navigator.appVersion.indexOf("MSIE 9")===-1&&_.buttons===0&&M.buttonsProperty!==0)return bi(_,M);var D=(r.dir?-1:1)*(_.calcPoint-M.startCalcPoint),H=D*100/M.baseSize;Xi(D>0,H,M.locations,M.handleNumbers,M.connect)}function bi(_,M){M.handle&&(ai(M.handle,r.cssClasses.active),Ci-=1),M.listeners.forEach(function(D){Qt.removeEventListener(D[0],D[1])}),Ci===0&&(ai(m,r.cssClasses.drag),wi(),_.cursor&&(Jt.style.cursor="",Jt.removeEventListener("selectstart",qn))),r.events.smoothSteps&&(M.handleNumbers.forEach(function(D){_t(D,Te[D],!0,!0,!1,!1)}),M.handleNumbers.forEach(function(D){De("update",D)})),M.handleNumbers.forEach(function(D){De("change",D),De("set",D),De("end",D)})}function Ti(_,M){if(!M.handleNumbers.some(yi)){var D;if(M.handleNumbers.length===1){var H=z[M.handleNumbers[0]];D=H.children[0],Ci+=1,We(D,r.cssClasses.active)}_.stopPropagation();var U=[],W=Ct(n.move,Qt,ha,{target:_.target,handle:D,connect:M.connect,listeners:U,startCalcPoint:_.calcPoint,baseSize:Zi(),pageOffset:_.pageOffset,handleNumbers:M.handleNumbers,buttonsProperty:_.buttons,locations:Te.slice()}),oe=Ct(n.end,Qt,bi,{target:_.target,handle:D,listeners:U,doNotReject:!0,handleNumbers:M.handleNumbers}),K=Ct("mouseout",Qt,ga,{target:_.target,handle:D,listeners:U,doNotReject:!0,handleNumbers:M.handleNumbers});U.push.apply(U,W.concat(oe,K)),_.cursor&&(Jt.style.cursor=getComputedStyle(_.target).cursor,z.length>1&&We(m,r.cssClasses.drag),Jt.addEventListener("selectstart",qn,!1)),M.handleNumbers.forEach(function(ye){De("start",ye)})}}function Ca(_){_.stopPropagation();var M=Qi(_.calcPoint),D=va(M);D!==!1&&(r.events.snap||zn(m,r.cssClasses.tap,r.animationDuration),_t(D,M,!0,!0),wi(),De("slide",D,!0),De("update",D,!0),r.events.snap?Ti(_,{handleNumbers:[D]}):(De("change",D,!0),De("set",D,!0)))}function _a(_){var M=Qi(_.calcPoint),D=fe.getStep(M),H=fe.fromStepping(D);Object.keys(dt).forEach(function(U){U.split(".")[0]==="hover"&&dt[U].forEach(function(W){W.call(ti,H)})})}function ya(_,M){if(zi()||yi(M))return!1;var D=["Left","Right"],H=["Down","Up"],U=["PageDown","PageUp"],W=["Home","End"];r.dir&&!r.ort?D.reverse():r.ort&&!r.dir&&(H.reverse(),U.reverse());var oe=_.key.replace("Arrow",""),K=oe===U[0],ye=oe===U[1],xe=oe===H[0]||oe===D[0]||K,Me=oe===H[1]||oe===D[1]||ye,Be=oe===W[0],_e=oe===W[1];if(!xe&&!Me&&!Be&&!_e)return!0;_.preventDefault();var Ie;if(Me||xe){var je=xe?0:1,Pe=on(M),Re=Pe[je];if(Re===null)return!1;Re===!1&&(Re=fe.getDefaultStep(Te[M],xe,r.keyboardDefaultStep)),ye||K?Re*=r.keyboardPageMultiplier:Re*=r.keyboardMultiplier,Re=Math.max(Re,1e-7),Re=(xe?-1:1)*Re,Ie=ct[M]+Re}else _e?Ie=r.spectrum.xVal[r.spectrum.xVal.length-1]:Ie=r.spectrum.xVal[0];return _t(M,fe.toStepping(Ie),!0,!0),De("slide",M),De("update",M),De("change",M),De("set",M),!1}function Ji(_){_.fixed||z.forEach(function(M,D){Ct(n.start,M.children[0],Ti,{handleNumbers:[D]})}),_.tap&&Ct(n.start,A,Ca,{}),_.hover&&Ct(n.move,A,_a,{hover:!0}),_.drag&&ce.forEach(function(M,D){if(!(M===!1||D===0||D===ce.length-1)){var H=z[D-1],U=z[D],W=[M],oe=[H,U],K=[D-1,D];We(M,r.cssClasses.draggable),_.fixed&&(W.push(H.children[0]),W.push(U.children[0])),_.dragAll&&(oe=z,K=ze),W.forEach(function(ye){Ct(n.start,ye,Ti,{handles:oe,handleNumbers:K,connect:M})})}})}function Mi(_,M){dt[_]=dt[_]||[],dt[_].push(M),_.split(".")[0]==="update"&&z.forEach(function(D,H){De("update",H)})}function xa(_){return _===ft.aria||_===ft.tooltips}function jt(_){var M=_&&_.split(".")[0],D=M?_.substring(M.length):_;Object.keys(dt).forEach(function(H){var U=H.split(".")[0],W=H.substring(U.length);(!M||M===U)&&(!D||D===W)&&(!xa(W)||D===W)&&delete dt[H]})}function De(_,M,D){Object.keys(dt).forEach(function(H){var U=H.split(".")[0];_===U&&dt[H].forEach(function(W){W.call(ti,ct.map(r.format.to),M,ct.slice(),D||!1,Te.slice(),ti)})})}function Xt(_,M,D,H,U,W,oe){var K;return z.length>1&&!r.events.unconstrained&&(H&&M>0&&(K=fe.getAbsoluteDistance(_[M-1],r.margin,!1),D=Math.max(D,K)),U&&M<z.length-1&&(K=fe.getAbsoluteDistance(_[M+1],r.margin,!0),D=Math.min(D,K))),z.length>1&&r.limit&&(H&&M>0&&(K=fe.getAbsoluteDistance(_[M-1],r.limit,!1),D=Math.min(D,K)),U&&M<z.length-1&&(K=fe.getAbsoluteDistance(_[M+1],r.limit,!0),D=Math.max(D,K))),r.padding&&(M===0&&(K=fe.getAbsoluteDistance(0,r.padding[0],!1),D=Math.max(D,K)),M===z.length-1&&(K=fe.getAbsoluteDistance(100,r.padding[1],!0),D=Math.min(D,K))),oe||(D=fe.getStep(D)),D=Yn(D),D===_[M]&&!W?!1:D}function Bi(_,M){var D=r.ort;return(D?M:_)+", "+(D?_:M)}function Xi(_,M,D,H,U){var W=D.slice(),oe=H[0],K=r.events.smoothSteps,ye=[!_,_],xe=[_,!_];H=H.slice(),_&&H.reverse(),H.length>1?H.forEach(function(Be,_e){var Ie=Xt(W,Be,W[Be]+M,ye[_e],xe[_e],!1,K);Ie===!1?M=0:(M=Ie-W[Be],W[Be]=Ie)}):ye=xe=[!0];var Me=!1;H.forEach(function(Be,_e){Me=_t(Be,D[Be]+M,ye[_e],xe[_e],!1,K)||Me}),Me&&(H.forEach(function(Be){De("update",Be),De("slide",Be)}),U!=null&&De("drag",oe))}function en(_,M){return r.dir?100-_-M:_}function Sa(_,M){Te[_]=M,ct[_]=fe.fromStepping(M);var D=en(M,0)-na,H="translate("+Bi(D+"%","0")+")";if(z[_].style[r.transformRule]=H,r.events.invertConnects&&Te.length>1){var U=Te.every(function(W,oe,K){return oe===0||W>=K[oe-1]});if($t!==!U){wa();return}}Ut(_),Ut(_+1),$t&&(Ut(_-1),Ut(_+2))}function wi(){ze.forEach(function(_){var M=Te[_]>50?-1:1,D=3+(z.length+M*_);z[_].style.zIndex=String(D)})}function _t(_,M,D,H,U,W){return U||(M=Xt(Te,_,M,D,H,!1,W)),M===!1?!1:(Sa(_,M),!0)}function Ut(_){if(ce[_]){var M=Te.slice();$t&&M.sort(function(K,ye){return K-ye});var D=0,H=100;_!==0&&(D=M[_-1]),_!==ce.length-1&&(H=M[_]);var U=H-D,W="translate("+Bi(en(D,U)+"%","0")+")",oe="scale("+Bi(U/100,"1")+")";ce[_].style[r.transformRule]=W+" "+oe}}function tn(_,M){return _===null||_===!1||_===void 0||(typeof _=="number"&&(_=String(_)),_=r.format.from(_),_!==!1&&(_=fe.toStepping(_)),_===!1||isNaN(_))?Te[M]:_}function ei(_,M,D){var H=li(_),U=Te[0]===void 0;M=M===void 0?!0:M,r.animate&&!U&&zn(m,r.cssClasses.tap,r.animationDuration),ze.forEach(function(K){_t(K,tn(H[K],K),!0,!1,D)});var W=ze.length===1?0:1;if(U&&fe.hasNoSize()&&(D=!0,Te[0]=0,ze.length>1)){var oe=100/(ze.length-1);ze.forEach(function(K){Te[K]=K*oe})}for(;W<ze.length;++W)ze.forEach(function(K){_t(K,Te[K],!0,!0,D)});wi(),ze.forEach(function(K){De("update",K),H[K]!==null&&M&&De("set",K)})}function ka(_){ei(r.start,_)}function ba(_,M,D,H){if(_=Number(_),!(_>=0&&_<ze.length))throw new Error("noUiSlider: invalid handle number, got: "+_);_t(_,tn(M,_),!0,!0,H),De("update",_),D&&De("set",_)}function nn(_){if(_===void 0&&(_=!1),_)return ct.length===1?ct[0]:ct.slice(0);var M=ct.map(r.format.to);return M.length===1?M[0]:M}function Ta(){for(jt(ft.aria),jt(ft.tooltips),Object.keys(r.cssClasses).forEach(function(_){ai(m,r.cssClasses[_])});m.firstChild;)m.removeChild(m.firstChild);delete m.noUiSlider}function on(_){var M=Te[_],D=fe.getNearbySteps(M),H=ct[_],U=D.thisStep.step,W=null;if(r.snap)return[H-D.stepBefore.startValue||null,D.stepAfter.startValue-H||null];U!==!1&&H+U>D.stepAfter.startValue&&(U=D.stepAfter.startValue-H),H>D.thisStep.startValue?W=D.thisStep.step:D.stepBefore.step===!1?W=!1:W=H-D.stepBefore.highestStep,M===100?U=null:M===0&&(W=null);var oe=fe.countStepDecimals();return U!==null&&U!==!1&&(U=Number(U.toFixed(oe))),W!==null&&W!==!1&&(W=Number(W.toFixed(oe))),[W,U]}function Ma(){return ze.map(on)}function Ba(_,M){var D=nn(),H=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];H.forEach(function(W){_[W]!==void 0&&(t[W]=_[W])});var U=Xn(t);H.forEach(function(W){_[W]!==void 0&&(r[W]=U[W])}),fe=U.spectrum,r.margin=U.margin,r.limit=U.limit,r.padding=U.padding,r.pips?ki(r.pips):Si(),r.tooltips?Yi():xi(),Te=[],ei(Fi(_.start)?_.start:D,M),_.connect&&rn()}function rn(){for(;q.firstChild;)q.removeChild(q.firstChild);for(var _=0;_<=r.handles;_++)ce[_]=_i(q,r.connect[_]),Ut(_);Ji({drag:r.events.drag,fixed:!0})}function wa(){$t=!$t,Qn(r,r.connect.map(function(_){return!_})),rn()}function Ea(){A=aa(m),ra(r.connect,A),Ji(r.events),ei(r.start),r.pips&&ki(r.pips),r.tooltips&&Yi(),da()}Ea();var ti={destroy:Ta,steps:Ma,on:Mi,off:jt,get:nn,set:ei,setHandle:ba,reset:ka,disable:la,enable:ca,__moveHandles:function(_,M,D){Xi(_,M,Te,D)},options:t,updateOptions:Ba,target:m,removePips:Si,removeTooltips:xi,getPositions:function(){return Te.slice()},getTooltips:function(){return Ve},getOrigins:function(){return z},pips:ki};return ti}function eo(e,r){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=Xn(r),n=Ls(e,t,r);return e.noUiSlider=n,n}var Oi=class{to(r){return String(parseFloat(parseFloat(String(r)).toFixed(2)))}from(r){return parseFloat(r)}},me=(()=>{class e{constructor(t,n,i){this.ngZone=t,this.el=n,this.renderer=i,this.handles=[],this.config={},this.change=new yt(!0),this.update=new yt(!0),this.slide=new yt(!0),this.set=new yt(!0),this.start=new yt(!0),this.end=new yt(!0),this.onChange=Function.prototype,this.cleanups=[],this.eventHandler=(a,m,A,q)=>{let z=this.toValues(m),ce=!1;if(this.value===void 0){this.value=z;return}Array.isArray(z)&&this.value[A]!=z[A]&&(ce=!0),!Array.isArray(z)&&this.value!=z&&(ce=!0),ce&&this.ngZone.run(()=>{a.observers.length>0&&a.emit(z),this.onChange(z)}),Array.isArray(z)?this.value[A]=z[A]:this.value=z},this.defaultKeyHandler=a=>{let m=this.slider.steps(),A=parseInt(a.target.getAttribute("data-handle")),q=1,z=1,ce=0,ke=0;switch(a.which){case 34:z=this.config.pageSteps;break;case 40:case 37:q=-1,ce=m[A][0],a.preventDefault();break;case 33:z=this.config.pageSteps;break;case 38:case 39:ce=m[A][1],a.preventDefault();break;default:break}ke=q*z*ce;let Ve;Array.isArray(this.value)?(Ve=[...this.value],Ve[A]=Ve[A]+ke):Ve=this.value+ke,this.slider.set(Ve)}}ngOnChanges(t){this.slider&&(t.min||t.max||t.step||t.range)&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.slider.updateOptions({range:Object.assign({},{min:this.min,max:this.max},this.range||{}),step:this.step})})})}ngOnDestroy(){for(this.slider.destroy();this.cleanups.length;)this.cleanups.pop()?.()}toValues(t){let n=t.map(this.config.format.from);return n.length==1?n[0]:n}writeValue(t){this.slider?this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.slider.set(t)})}):t!==null&&(this.value=t,this.createSlider(t))}registerOnChange(t){this.onChange=t}registerOnTouched(t){}setDisabledState(t){t?this.renderer.setAttribute(this.el.nativeElement.childNodes[0],"disabled","true"):this.renderer.removeAttribute(this.el.nativeElement.childNodes[0],"disabled")}createSlider(t){let n=JSON.parse(JSON.stringify({behaviour:this.behaviour,connect:this.connect,limit:this.limit,start:t,step:this.step,pageSteps:this.pageSteps,keyboard:this.keyboard,onKeydown:this.onKeydown,range:this.range||this.config.range||{min:this.min,max:this.max},tooltips:this.tooltips,snap:this.snap,animate:this.animate}));if(n.tooltips=this.tooltips||this.config.tooltips,n.format=this.format||this.config.format||new Oi,this.ngZone.runOutsideAngular(()=>{this.slider=eo(this.el.nativeElement.querySelector("div"),Object.assign(this.config,n))}),this.handles=[].slice.call(this.el.nativeElement.querySelectorAll(".noUi-handle")),this.config.keyboard){this.config.pageSteps===void 0&&(this.config.pageSteps=10);for(let i of this.handles){i.setAttribute("tabindex",0);let a=this.config.onKeydown||this.defaultKeyHandler;this.ngZone.runOutsideAngular(()=>{this.cleanups.push(this.renderer.listen(i,"keydown",a),this.renderer.listen(i,"click",()=>{i.focus()}))})}}this.slider.on("set",(i,a,m)=>{this.eventHandler(this.set,i,a,m)}),this.slider.on("update",(i,a,m)=>{this.update.observers.length>0&&this.ngZone.run(()=>{this.update.emit(this.toValues(i))})}),this.slider.on("change",(i,a,m)=>{this.change.observers.length>0&&this.ngZone.run(()=>{this.change.emit(this.toValues(i))})}),this.slider.on("slide",(i,a,m)=>{this.eventHandler(this.slide,i,a,m)}),this.slider.on("start",(i,a,m)=>{this.start.observers.length>0&&this.ngZone.run(()=>{this.start.emit(this.toValues(i))})}),this.slider.on("end",(i,a,m)=>{this.end.observers.length>0&&this.ngZone.run(()=>{this.end.emit(this.toValues(i))})})}}return e.\u0275fac=function(t){return new(t||e)(oi(gn),oi(Cn),oi(_n))},e.\u0275cmp=B({type:e,selectors:[["nouislider"]],hostVars:2,hostBindings:function(t,n){t&2&&j("ng2-nouislider",!0)},inputs:{disabled:"disabled",behaviour:"behaviour",connect:"connect",limit:"limit",min:"min",max:"max",snap:"snap",animate:"animate",range:"range",step:"step",format:"format",pageSteps:"pageSteps",config:"config",keyboard:"keyboard",onKeydown:"onKeydown",tooltips:"tooltips"},outputs:{change:"change",update:"update",slide:"slide",set:"set",start:"start",end:"end"},features:[bn([{provide:An,useExisting:vn(()=>e),multi:!0}]),hn],decls:1,vars:1,template:function(t,n){t&1&&F(0,"div"),t&2&&y("disabled",n.disabled?!0:void 0)},styles:["[_nghost-%COMP%]{display:block;margin-top:1rem;margin-bottom:1rem}"]}),e})();var ci=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Vs(e,r){if(e&1){let t=G();s(0,"button",6),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(0,i))}),s(1,"div",7),f(2,"i",8),c(),p(3),l(4,"translate"),s(5,"div",9),f(6,"i",10),c()()}if(e&2){let t=u(2);o(2),L(O(5,ci,t.targetMode===0,t.targetMode!==0)),o(),g(" ",d(4,3,"accessories.control.manual")," ")}}function Ps(e,r){if(e&1){let t=G();s(0,"button",6),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(1,i))}),s(1,"div",7),f(2,"i",8),c(),p(3),l(4,"translate"),s(5,"div",9),f(6,"i",10),c()()}if(e&2){let t=u(2);o(2),L(O(5,ci,t.targetMode===1,t.targetMode!==1)),o(),g(" ",d(4,3,"accessories.control.auto")," ")}}function Os(e,r){if(e&1&&(s(0,"h6",12),p(1),l(2,"translate"),c(),s(3,"div",5),l(4,"translate"),h(5,Vs,7,8,"button",13),h(6,Ps,7,8,"button",13),c()),e&2){let t=u();o(),v(d(2,4,"accessories.control.mode")),o(2),y("aria-label",d(4,6,"accessories.control.mode_control")),o(2),C(t.targetModeValidValues.includes(0)?5:-1),o(),C(t.targetModeValidValues.includes(1)?6:-1)}}function Ns(e,r){if(e&1){let t=G();s(0,"h6",12),p(1),l(2,"translate"),c(),s(3,"nouislider",14),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetRotationSpeed.value,i)||(a.targetRotationSpeed.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTargetRotationSpeedChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value,"%"),o(2),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),Z("ngModel",t.targetRotationSpeed.value)}}var to=(()=>{class e extends he{targetState;targetMode;targetModeValidValues=[];targetRotationSpeed;targetRotationSpeedChanged=new ee;setupComponent(){this.createDebouncedSubscription(this.targetRotationSpeedChanged,()=>{this.service.getCharacteristic("RotationSpeed").setValue(this.targetRotationSpeed.value),this.targetRotationSpeed.value&&!this.targetState?(this.targetState=1,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!0)):!this.targetRotationSpeed.value&&this.targetState&&(this.targetState=0,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(0):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!1))}),this.targetState="Active"in this.service.values?this.service.values.Active:this.service.values.On?1:0,this.targetMode=this.service.values.TargetAirPurifierState,"TargetAirPurifierState"in this.service.values&&(this.targetModeValidValues=this.service.getCharacteristic("TargetAirPurifierState").validValues),this.loadRotationSpeed()}handleAccessoryUpdate(){this.targetState="Active"in this.service.values?this.service.values.Active:this.service.values.On?1:0,this.targetMode=this.service.values.TargetAirPurifierState,this.targetRotationSpeed&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed")?.value)}setTargetState(t,n){this.targetState=t,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.targetState):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(this.targetState===1),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetAirPurifierState").setValue(this.targetMode),this.blurTarget(n)}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}loadRotationSpeed(){let t=this.service.getCharacteristic("RotationSpeed");t&&(this.targetRotationSpeed={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:25,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"div",5),l(7,"translate"),s(8,"button",6),S("click",function(m){return i.setTargetState(0,m)}),s(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),s(13,"div",9),f(14,"i",10),c()(),s(15,"button",6),S("click",function(m){return i.setTargetState(1,m)}),s(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),s(20,"div",9),f(21,"i",10),c()()(),h(22,Os,7,8),h(23,Ns,4,8),c(),f(24,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(3),y("aria-label",d(7,13,"accessories.control.state_control")),o(4),L(O(19,ci,i.targetState===0,i.targetState!==0)),o(),g(" ",d(12,15,"accessories.control.off")," "),o(6),L(O(22,ci,i.targetState===1,i.targetState!==1)),o(),g(" ",d(19,17,"accessories.control.on")," "),o(4),C(i.targetModeValidValues.length?22:-1),o(),C(i.targetRotationSpeed?23:-1))},dependencies:[le,de,pe,me,w],styles:[".purifying svg .air-wave{animation:_ngcontent-%COMP%_wave-motion 5s ease-in-out infinite;stroke:#1976d2;stroke-opacity:.5} .purifying svg .bottom-line{animation-delay:.4s}@keyframes _ngcontent-%COMP%_wave-motion{0%,to{transform:translateY(0);stroke-opacity:.5}50%{transform:translateY(2px);stroke-opacity:1}}"],changeDetection:0})}return e})();var X=(()=>{class e{downTimeout;done=!1;touchInProgress=!1;touchStartTime=0;duration=E(350);longClick=Li();shortClick=Li();onEnter(t){this.shortClick.emit(t)}onMouseUp(t){!this.touchInProgress&&!this.isSyntheticEvent()&&(clearTimeout(this.downTimeout),this.done||(this.done=!0,this.shortClick.emit(t)))}onTouchEnd(t){clearTimeout(this.downTimeout),this.done||(this.done=!0,this.shortClick.emit(t)),setTimeout(()=>{this.touchInProgress=!1},150)}onMouseDown(t){if("touches"in t){this.touchInProgress=!0,this.done=!1,this.touchStartTime=Date.now(),t.cancelable&&this.isSafariMobile()&&t.preventDefault(),this.downTimeout=setTimeout(()=>{this.done||(this.done=!0,this.longClick.emit(t))},this.duration());return}!this.touchInProgress&&!this.isSyntheticEvent()&&t.button===0&&(this.done=!1,this.downTimeout=setTimeout(()=>{this.done||(this.done=!0,this.longClick.emit(t))},this.duration()))}onMouseMove(){this.done=!0,clearTimeout(this.downTimeout)}isSyntheticEvent(){let t=Date.now()-this.touchStartTime;return this.touchInProgress&&t<300}isSafariMobile(){let t=navigator.userAgent;return/iPad|iPhone|iPod/.test(t)&&/Safari/.test(t)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(t)}ngOnDestroy(){clearTimeout(this.downTimeout),this.touchInProgress=!1}static \u0275fac=function(n){return new(n||e)};static \u0275dir=yn({type:e,selectors:[["","shortClick",""],["","longClick",""]],hostBindings:function(n,i){n&1&&S("keyup.enter",function(m){return i.onEnter(m)})("mouseup",function(m){return i.onMouseUp(m)})("touchend",function(m){return i.onTouchEnd(m)})("touchstart",function(m){return i.onMouseDown(m)})("mousedown",function(m){return i.onMouseDown(m)})("mousemove",function(){return i.onMouseMove()})("touchmove",function(){return i.onMouseMove()})},inputs:{duration:[1,"duration"]},outputs:{longClick:"longClick",shortClick:"shortClick"}})}return e})();var Hs=(e,r)=>({"accessory-on":e,purifying:r});function Rs(e,r){if(e&1&&(s(0,"div",18),p(1),c()),e&2){let t,n=u(2);o(),g("",(t=n.service().values)==null?null:t.RotationSpeed,"%")}}function $s(e,r){e&1&&(s(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function js(e,r){if(e&1&&h(0,Rs,2,1,"div",18)(1,$s,3,3,"div",18),e&2){let t=u();C("RotationSpeed"in t.service().values?0:1)}}function Us(e,r){e&1&&(s(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.idle")))}function Ws(e,r){e&1&&(s(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var io=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);hasTargetValidValues=!1;service=E.required();readyForControl=E(!1);ngOnInit(){"TargetAirPurifierState"in this.service().values&&(this.hasTargetValidValues=this.service().getCharacteristic("TargetAirPurifierState").validValues.length>0)}onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1):"On"in this.service().values&&this.service().getCharacteristic("On").setValue(!this.service().values.On))}onLongClick(){if(this.readyForControl()&&(this.hasTargetValidValues||"RotationSpeed"in this.service().values)){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(to,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-air-purifier"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:23,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["d","M3,3.0706147 C3.28945166,3.8007217 5.978098,4.1773883 10.0660175,4.2006147 C12.5085124,4.2144929 18.5053297,1.8514837 22.4060749,1.1943647 C24.1588716,0.898084 26.5955382,1.1756219 28.716875,2.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-wave"],["d","M3,9.0706147 C3.28945166,9.8007217 5.978098,10.1773883 10.0660175,10.2006147 C12.5085124,10.2144929 18.5053297,7.8514837 22.4060749,7.1943647 C24.1588716,6.898084 26.5955382,7.1756219 28.716875,8.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-wave","bottom-line"],["x1","7","y1","14","x2","25","y2","14","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","7","y1","14","x2","2","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","25","y1","14","x2","30","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","8","y1","16.5","x2","24","y2","16.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","7","y1","18.5","x2","25","y2","18.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","6","y1","20.5","x2","26","y2","20.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","2","y1","23","x2","30","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","30","y1","23","x2","30","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","2","y1","23","x2","2","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["cx","15.5","cy","27","r","2.5","stroke","#7f7f7f","stroke-width","1","fill","#1976d2","fill-opacity","0.5"],["x1","2","y1","31","x2","30","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"path",4)(6,"path",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"circle",15)(17,"line",16),c()(),N(),s(18,"div",17),p(19),c(),h(20,js,2,1)(21,Us,3,3,"div",18)(22,Ws,3,3,"div",18),c()()),n&2){let a,m;L(O(7,Hs,((a=i.service().values)==null?null:a.Active)&&!("CurrentAirPurifierState"in i.service().values)||((a=i.service().values)==null?null:a.Active)&&"CurrentAirPurifierState"in i.service().values&&((a=i.service().values)==null?null:a.CurrentAirPurifierState)!==0||((a=i.service().values)==null?null:a.On),((a=i.service().values)==null?null:a.Active)&&!("CurrentAirPurifierState"in i.service().values)||((a=i.service().values)==null?null:a.Active)&&"CurrentAirPurifierState"in i.service().values&&((a=i.service().values)==null?null:a.CurrentAirPurifierState)===2||((a=i.service().values)==null?null:a.On))),o(2),y("aria-label",d(3,5,"accessories.core.air_purifier")),o(17),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.Active&&!("CurrentAirPurifierState"in i.service().values)||(m=i.service().values)!=null&&m.Active&&"CurrentAirPurifierState"in i.service().values&&((m=i.service().values)==null?null:m.CurrentAirPurifierState)===2||(m=i.service().values)!=null&&m.On?20:(m=i.service().values)!=null&&m.Active&&!("CurrentAirPurifierState"in i.service().values)||(m=i.service().values)!=null&&m.Active&&"CurrentAirPurifierState"in i.service().values&&((m=i.service().values)==null?null:m.CurrentAirPurifierState)===1||(m=i.service().values)!=null&&m.On?21:22)}},dependencies:[X,w],styles:[".purifying svg .air-wave{animation:_ngcontent-%COMP%_wave-motion 5s ease-in-out infinite;stroke:#1976d2;stroke-opacity:.5} .purifying svg .bottom-line{animation-delay:.4s}@keyframes _ngcontent-%COMP%_wave-motion{0%,to{transform:translateY(0);stroke-opacity:.5}50%{transform:translateY(2px);stroke-opacity:1}}"]})}return e})();var Gs=()=>[3,4],qs=()=>[1,2],zs=(e,r,t,n)=>({"accessory-on":e,"fill-red":r,"fill-orange":t,"fill-green":n}),Ys=(e,r)=>({"grey-text":e,"red-text":r}),no=(()=>{class e{service=E.required();labels=["Unknown","Excellent","Good","Fair","Inferior","Poor"];static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-air-quality-sensor"]],inputs:{service:[1,"service"]},decls:25,vars:19,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(5.1, 3) scale(0.68)"],["fill","#7f7f7f","d","M10.1435881,25.4905179 C10.286009,26.7050605 10.531254,27.9706077 10.8919121,29.2887103 C6.25942062,27.4175104 3.57173247,24.180341 2.39781526,19.889403 C1.54190101,16.760839 1.56931096,13.3702525 2.13724518,10.1783222 C2.1501971,10.1055292 2.17646546,9.96330988 2.17646546,9.96330988 C2.17646546,9.96330988 2.33770347,10.0208429 2.92620872,10.2769757 C4.60998953,11.0098007 6.29364519,11.9318703 7.85704035,13.0517448 C9.19214306,14.0080913 10.3087445,15.0188915 11.223018,16.0899229 L11.223018,16.0899229 C10.426841,18.1910249 9.96797687,20.5297906 9.99206994,23.1241613 L5.43414987,14.7605739 C5.30203551,14.5181498 4.99858593,14.4288208 4.75637627,14.5610522 C4.51416661,14.6932836 4.42491674,14.9970019 4.5570311,15.2394261 L10.1435881,25.4905179 Z M13.0333542,29.4136738 C10.9912074,19.9059085 11.088992,14.922477 21.5133004,6.73565972 C23.6127007,5.0868782 25.9746706,4.01306759 28.2881453,3.03596757 C29.0967374,2.69445726 29.3182746,2.61774651 29.3182746,2.61774651 C29.3182746,2.61774651 29.3543667,2.80737221 29.3721623,2.90442957 C30.1524904,7.1603367 30.190151,11.6811187 29.0141452,15.8525373 C27.1508473,22.4618551 22.5118613,27.1961122 14.1841552,29.413553 L25.4116309,9.74806947 C25.5485147,9.50831075 25.46529,9.20288341 25.2257434,9.06587843 C24.9861969,8.92887344 24.6810398,9.01217181 24.544156,9.25193053 L13.0333542,29.4136738 Z M13.4880693,32 C38.9655056,25.5 30.755735,0 30.755735,0 C30.755735,0 17.0308715,3.72274828 11.9893965,14.5 C7.99293593,9 0.873098889,8 0.873098889,8 C-3.99644586,30.5 13.4880693,32 13.4880693,32 Z",1,"leaves"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),p(24),b()()()),n&2){let a,m,A;L(Lt(11,zs,((a=i.service().values)==null?null:a.AirQuality)===5,((a=i.service().values)==null?null:a.AirQuality)===5,we(9,Gs).includes((a=i.service().values)==null?null:a.AirQuality),we(10,qs).includes((a=i.service().values)==null?null:a.AirQuality))),o(2),y("aria-label",d(3,7,"accessories.core.air_quality_sensor")),o(20),v(i.service().customName||i.service().serviceName),o(),L(O(16,Ys,((m=i.service().values)==null?null:m.AirQuality)<5,((m=i.service().values)==null?null:m.AirQuality)===5)),o(),g(" ",i.labels[((A=i.service().values)==null?null:A.AirQuality)||0]," ")}},dependencies:[w],styles:[".fill-red svg .leaves{fill:#d32f2f!important;fill-opacity:.5!important} .fill-orange svg .leaves{fill:#ff9800!important;fill-opacity:.5!important} .fill-green svg .leaves{fill:#4caf50!important;fill-opacity:.5!important}"]})}return e})();function Ks(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_notcharging")," ")}function Zs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_charging")," ")}function Qs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_notchargeable")," ")}function Js(e,r){e&1&&(x(0,"span",10),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.battery_low")))}function Xs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_charged")," ")}function el(e,r){if(e&1&&h(0,Qs,2,3)(1,Js,3,3,"span",10)(2,Xs,2,3),e&2){let t,n=u(2);C(((t=n.service().values)==null?null:t.ChargingState)===2?0:((t=n.service().values)==null?null:t.StatusLowBattery)===1||((t=n.service().values)==null?null:t.BatteryLevel)===0?1:2)}}function tl(e,r){if(e&1&&h(0,Zs,2,3)(1,el,3,1),e&2){let t,n=u();C(((t=n.service().values)==null?null:t.ChargingState)===1?0:1)}}var oo=(()=>{class e{service=E.required();Math=Math;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-battery"]],inputs:{service:[1,"service"]},decls:15,vars:11,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","5","height","13","rx","2","stroke","none","stroke-width","0"],["x","29.5","y","8","width","2","height","7","rx","2","stroke","none","fill","#7f7f7f","stroke-width","1"],["x","1","y","5","width","29","height","13","rx","2","stroke","#7f7f7f","fill","none","stroke-width","0.75"],["x","16","y","28","font-size","9","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"red-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"rect",5)(7,"rect",6),x(8,"text",7),p(9),b()()(),N(),x(10,"div",8),p(11),b(),x(12,"div",9),h(13,Ks,2,3)(14,tl,2,1),b()()()),n&2){let a,m,A,q,z,ce;j("accessory-on",((a=i.service().values)==null?null:a.ChargingState)===1),o(2),y("aria-label",d(3,9,"accessories.core.battery")),o(3),y("width",i.Math.round(29/100*(((m=i.service().values)==null?null:m.BatteryLevel)||0)))("fill",((A=i.service().values)==null?null:A.ChargingState)===1?"#4caf50":((A=i.service().values)==null?null:A.StatusLowBattery)===1?"#e69533":"#808080")("fill-opacity",((q=i.service().values)==null?null:q.ChargingState)===1||((q=i.service().values)==null?null:q.StatusLowBattery)===1?"0.5":"1"),o(4),g(" ",((z=i.service().values)==null?null:z.BatteryLevel)||0,"% "),o(2),v(i.service().customName||i.service().serviceName),o(2),C(((ce=i.service().values)==null?null:ce.ChargingState)===0?13:14)}},dependencies:[w],styles:['.batterylevel-battery[_ngcontent-%COMP%]{position:relative;width:75px;height:30px;border:1px solid rgb(128,128,128);border-radius:4px;margin-bottom:6px;text-align:center;display:flex;align-items:center;justify-content:center;color:#d3d3d3;font-size:14px}.batterylevel-battery[_ngcontent-%COMP%]:after{content:"";position:absolute;top:7px;right:-6px;width:6px;height:13px;background-color:gray;border-radius:2px}.batterylevel-battery[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;background-color:gray;z-index:1;transition:width .3s ease-in-out}.batterylevel-battery[_ngcontent-%COMP%] .battery-text[_ngcontent-%COMP%]{position:relative;z-index:2}.batterylevel-battery[_ngcontent-%COMP%] .battery-over[_ngcontent-%COMP%]{color:#d3d3d3}.batterylevel-battery[_ngcontent-%COMP%] .battery-under[_ngcontent-%COMP%]{color:gray}@media(max-width:575px){.batterylevel-battery[_ngcontent-%COMP%]{width:50px;height:25px;font-size:12px}.batterylevel-battery[_ngcontent-%COMP%]:after{top:4px}}.lowbattery[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{background-color:#e69533}.charging[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{background-color:#4caf50}']})}return e})();function il(e,r){e&1&&(x(0,"div",16),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function nl(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var ro=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-dioxide-sensor"]],inputs:{service:[1,"service"]},decls:21,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["d","M3,24.0706147 C3.28945166,24.8007217 5.978098,25.1773883 10.0660175,25.2006147 C12.5085124,25.2144929 18.5053297,22.8514837 22.4060749,22.1943647 C24.1588716,21.898084 26.5955382,22.1756219 28.716875,23.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],["d","M3,30.0706147 C3.28945166,30.8007217 5.978098,31.1773883 10.0660175,31.2006147 C12.5085124,31.2144929 18.5053297,28.8514837 22.4060749,28.1943647 C24.1588716,27.898084 26.5955382,28.1756219 28.716875,29.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," CO2 "),b(),F(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"path",13)(16,"path",14),b()(),N(),x(17,"div",15),p(18),b(),h(19,il,3,3,"div",16)(20,nl,3,3,"div",17),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.CarbonDioxideDetected),o(2),y("aria-label",d(3,5,"accessories.core.carbon_dioxide_sensor")),o(16),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.CarbonDioxideDetected?19:20)}},dependencies:[w],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();function ol(e,r){e&1&&(x(0,"div",16),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function rl(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var ao=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-monoxide-sensor"]],inputs:{service:[1,"service"]},decls:21,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["d","M3,23 C6,25 9,21 12,23 C15,25 18,21 21,23 C24,25 27,21 30,23","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],["d","M3,30 C6,32 9,28 12,30 C15,32 18,28 21,30 C24,32 27,28 30,30","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," CO "),b(),F(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"path",13)(16,"path",14),b()(),N(),x(17,"div",15),p(18),b(),h(19,ol,3,3,"div",16)(20,rl,3,3,"div",17),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.CarbonMonoxideDetected),o(2),y("aria-label",d(3,5,"accessories.core.carbon_monoxide_sensor")),o(16),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.CarbonMonoxideDetected?19:20)}},dependencies:[w],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();function al(e,r){e&1&&(x(0,"div",9),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function sl(e,r){e&1&&(x(0,"div",10),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}var so=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-contact-sensor"]],inputs:{service:[1,"service"]},decls:13,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"left-object"],["x","16","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"right-object"],["x","10","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"left-sensor"],["x","16","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"right-sensor"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),b()(),N(),x(9,"div",8),p(10),b(),h(11,al,3,3,"div",9)(12,sl,3,3,"div",10),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.ContactSensorState),o(2),y("aria-label",d(3,5,"accessories.core.contact_sensor")),o(8),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.ContactSensorState?11:12)}},dependencies:[w],styles:[".accessory-on svg .left-sensor{fill:#ff9800;fill-opacity:.5} .accessory-on svg .right-object{x:24px} .accessory-on svg .right-sensor{x:24px;fill:#ff9800;fill-opacity:.5}"]})}return e})();function ll(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.closed")," ")}function cl(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u(2);$(" ",d(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function dl(e,r){if(e&1&&h(0,ll,2,3)(1,cl,2,4),e&2){let t=u();C((t.service.values==null?null:t.service.values.CurrentPosition)===0?0:1)}}function pl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.opening"),"... ")}function ml(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.closing"),"... ")}var lo=(()=>{class e extends he{targetMode;targetPositionChanged=new ee;targetPosition;setupComponent(){this.createDebouncedSubscription(this.targetPositionChanged,()=>{this.service.getCharacteristic("CurrentPosition").value<this.targetPosition.value?this.service.values.PositionState=1:this.service.getCharacteristic("CurrentPosition").value>this.targetPosition.value&&(this.service.values.PositionState=0),this.service.getCharacteristic("TargetPosition").setValue(this.targetPosition.value)}),this.targetMode=this.service.values.On,this.loadTargetPosition()}handleAccessoryUpdate(){this.targetMode=this.service.values.On,this.targetPosition&&(this.targetPosition.value=this.service.getCharacteristic("TargetPosition")?.value)}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:34,vars:34,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"d-flex","justify-content-center","mb-0","p-0"],[1,"mb-0","mx-0","p-3","btn-read","w-100"],[1,"mt-4"],[1,"mb-1",3,"ngModelChange","min","max","step","ngModel"],[1,"d-flex","justify-content-between","align-items-center","mt-0","mb-1"],[1,"grey-text","small"],[1,"mb-1",3,"ngModelChange","min","max","step","disabled","ngModel"],[1,"modal-footer"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"div",5)(7,"div",6),h(8,dl,2,1)(9,pl,2,3)(10,ml,2,3),c()(),s(11,"h6",7),p(12),l(13,"translate"),c(),s(14,"nouislider",8),J("ngModelChange",function(m){return Q(i.targetPosition.value,m)||(i.targetPosition.value=m),m}),S("ngModelChange",function(){return i.onTargetPositionChange()}),c(),s(15,"div",9)(16,"span",10),p(17),l(18,"translate"),c(),s(19,"span",10),p(20),l(21,"translate"),c()(),s(22,"h6",7),p(23),l(24,"translate"),c(),s(25,"nouislider",11),J("ngModelChange",function(m){return Q(i.service.getCharacteristic("CurrentPosition").value,m)||(i.service.getCharacteristic("CurrentPosition").value=m),m}),c(),s(26,"div",9)(27,"span",10),p(28),l(29,"translate"),c(),s(30,"span",10),p(31),l(32,"translate"),c()()(),f(33,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,20,"form.button_close")),o(5),C((i.service.values==null?null:i.service.values.PositionState)===2?8:(i.service.values==null?null:i.service.values.PositionState)===1?9:(i.service.values==null?null:i.service.values.PositionState)===0?10:-1),o(4),$("",d(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),o(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),Z("ngModel",i.targetPosition.value),o(3),v(d(18,24,"accessories.control.closed")),o(3),v(d(21,26,"accessories.control.open")),o(3),$(" ",d(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),o(2),T("min",0)("max",100)("step",1)("disabled",!0),Z("ngModel",i.service.getCharacteristic("CurrentPosition").value),o(3),v(d(29,30,"accessories.control.closed")),o(3),v(d(32,32,"accessories.control.open")))},dependencies:[me,le,de,pe,w],encapsulation:2,changeDetection:0})}return e})();function ul(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.closed")," ")}function fl(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t,n=u(2);$(" ",d(1,2,"accessories.control.open")," ",(t=n.service().values)==null?null:t.CurrentPosition,"% ")}}function vl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.open")," ")}function gl(e,r){if(e&1&&(s(0,"div",11),h(1,ul,2,3),h(2,fl,2,4),h(3,vl,2,3),c()),e&2){let t,n,i,a=u();o(),C(((t=a.service().values)==null?null:t.CurrentPosition)===0?1:-1),o(),C(((n=a.service().values)==null?null:n.CurrentPosition)>0&&((n=a.service().values)==null?null:n.CurrentPosition)<100?2:-1),o(),C(((i=a.service().values)==null?null:i.CurrentPosition)===100?3:-1)}}function hl(e,r){e&1&&(s(0,"div",12),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.opening"),"..."))}function Cl(e,r){e&1&&(s(0,"div",12),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.closing"),"..."))}var co=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);onClick(){this.readyForControl()&&(this.service().values.TargetPosition?this.service().getCharacteristic("TargetPosition").setValue(0):this.service().getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl())return;let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(lo,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-door"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:16,vars:7,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","7.8","y","0.8","width","16.4","height","30.2","rx","0.5","stroke","#7f7f7f","fill","none","stroke-width","1.5"],["x","9.6","y","2.6","width","12.8","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline"],["x","11.2","y","4.2","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x","11.2","y","16.8","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x1","0","y1","31","x2","32","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x","19.25","y","15.87","width","1.55","height","0.05","stroke","#1976d2","fill","none","stroke-width","0.5","rx","10",1,"handle"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","red-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"line",8)(10,"rect",9),c()(),N(),s(11,"div",10),p(12),c(),h(13,gl,4,3,"div",11)(14,hl,3,3,"div",12)(15,Cl,3,3,"div",12),c()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.CurrentPosition),o(2),y("aria-label",d(3,5,"accessories.core.door")),o(10),v(i.service().customName||i.service().serviceName),o(),C(((m=i.service().values)==null?null:m.PositionState)===2?13:((m=i.service().values)==null?null:m.PositionState)===1?14:((m=i.service().values)==null?null:m.PositionState)===0?15:-1)}},dependencies:[X,w],styles:["svg .outline{transition:width 3s ease;width:12.8px} svg .panel{transition:width 3s ease;width:9.6px} svg .handle{visibility:visible;opacity:1;transition:opacity 3s ease,visibility 0s linear 3s} .accessory-on svg .outline{transition:width 3s ease;width:3.8px} .accessory-on svg .panel{transition:width 3s ease;width:.6px} .accessory-on svg .handle{visibility:hidden;opacity:0;transition:opacity 3s ease,visibility 0s linear 0s}"]})}return e})();var St=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function _l(e,r){if(e&1){let t=G();s(0,"div",5),l(1,"translate"),s(2,"button",7),S("click",function(i){V(t);let a=u();return P(a.setActive(0,i))}),s(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),s(7,"div",10),f(8,"i",11),c()(),s(9,"button",7),S("click",function(i){V(t);let a=u();return P(a.setActive(1,i))}),s(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),s(14,"div",10),f(15,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,7,"accessories.control.mode_control")),o(4),L(O(13,St,(t.service.values==null?null:t.service.values.Active)===0,(t.service.values==null?null:t.service.values.Active)!==0)),o(),g(" ",d(6,9,"accessories.control.off")," "),o(6),L(O(16,St,(t.service.values==null?null:t.service.values.Active)===1,(t.service.values==null?null:t.service.values.Active)!==1)),o(),g(" ",d(13,11,"accessories.control.on")," ")}}function yl(e,r){if(e&1){let t=G();s(0,"div",5),l(1,"translate"),s(2,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetState(0,i))}),s(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),s(7,"div",10),f(8,"i",11),c()(),s(9,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetState(1,i))}),s(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),s(14,"div",10),f(15,"i",11),c()(),s(16,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetState(2,i))}),s(17,"div",8),f(18,"i",9),c(),p(19),l(20,"translate"),s(21,"div",10),f(22,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,10,"accessories.control.media_control")),o(4),L(O(18,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===0,(t.service.values==null?null:t.service.values.CurrentMediaState)!==0)),o(),g(" ",d(6,12,"accessories.control.play")," "),o(6),L(O(21,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===1,(t.service.values==null?null:t.service.values.CurrentMediaState)!==1)),o(),g(" ",d(13,14,"accessories.control.pause")," "),o(6),L(O(24,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===2,(t.service.values==null?null:t.service.values.CurrentMediaState)!==2)),o(),g(" ",d(20,16,"accessories.control.stop")," ")}}function xl(e,r){if(e&1){let t=G();s(0,"h6"),p(1),l(2,"translate"),c(),s(3,"div",12),l(4,"translate"),s(5,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetMode(!1,i))}),s(6,"div",8),f(7,"i",9),c(),p(8),l(9,"translate"),s(10,"div",10),f(11,"i",11),c()(),s(12,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetMode(!0,i))}),s(13,"div",8),f(14,"i",9),c(),p(15),l(16,"translate"),s(17,"div",10),f(18,"i",11),c()()()}if(e&2){let t=u();o(),g(" ",d(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),o(2),y("aria-label",d(4,10,"accessories.control.mute_control")),o(4),L(O(16,St,!t.targetMode,t.targetMode)),o(),g(" ",d(9,12,"accessories.control.not_mute")," "),o(6),L(O(19,St,t.targetMode,!t.targetMode)),o(),g(" ",d(16,14,"accessories.control.mute")," ")}}function Sl(e,r){if(e&1){let t=G();s(0,"h6",13),p(1),l(2,"translate"),c(),s(3,"nouislider",14),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetVolume.value,i)||(a.targetVolume.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onVolumeStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),o(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),Z("ngModel",t.targetVolume.value)}}var po=(()=>{class e extends he{targetMode;targetVolume;targetVolumeChanged=new ee;setupComponent(){this.createDebouncedSubscription(this.targetVolumeChanged,()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)}),this.targetMode=this.service.values.Mute,this.loadTargetVolume()}handleAccessoryUpdate(){this.targetMode=this.service.values.Mute,this.targetVolume&&(this.targetVolume.value=this.service.getCharacteristic("Volume")?.value)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(n)}setActive(t,n){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(n)}setTargetState(t,n){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(n)}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #ffffff, #ffd966, #ff0000)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:11,vars:7,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[1,"modal-footer"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],[1,"mt-4","mb-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4),h(6,_l,16,19,"div",5)(7,yl,23,27,"div",5),h(8,xl,19,22),h(9,Sl,4,8),c(),f(10,"div",6),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,5,"form.button_close")),o(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),o(2),C("Mute"in i.service.values?8:-1),o(),C(i.targetVolume?9:-1))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();var kl=()=>[0,1],bl=(e,r)=>({"accessory-on":e,paused:r}),Tl=()=>["Speaker","SmartSpeaker"];function Ml(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.play")," ")}function Bl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.pause")," ")}function wl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.stop")," ")}function El(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" \xB7 ",d(1,1,"accessories.control.mute")," ")}function Dl(e,r){if(e&1&&p(0),e&2){let t,n=u(3);g(" \xB7 ",(t=n.service().values)==null?null:t.Volume,"% ")}}function Al(e,r){if(e&1&&h(0,Dl,1,1),e&2){let t=u(2);C("Volume"in t.service().values?0:-1)}}function Il(e,r){if(e&1&&(s(0,"div",7),h(1,Ml,2,3)(2,Bl,2,3)(3,wl,2,3),h(4,El,2,3)(5,Al,1,1),c()),e&2){let t,n,i=u();o(),C((t=(t=i.service().values)==null?null:t.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),o(3),C("Mute"in i.service().values&&((n=i.service().values)!=null&&n.Mute)?4:5)}}function Ll(e,r){e&1&&(f(0,"div",8),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.off"))}function Fl(e,r){e&1&&(f(0,"div",8),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.mute"))}function Vl(e,r){if(e&1&&(s(0,"div",7),p(1),c()),e&2){let t,n=u();o(),g("",(t=n.service().values)==null?null:t.Volume,"%")}}function Pl(e,r){e&1&&(s(0,"div",7),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function Ol(e,r){e&1&&(s(0,"div",7),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.core.doorbell")))}var mo=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active===0?1:0):"TargetMediaState"in this.service().values?this.service().getCharacteristic("TargetMediaState").setValue(this.service().values.TargetMediaState===0?1:0):"Mute"in this.service().values&&this.service().getCharacteristic("Mute").setValue(!this.service().values.Mute))}onLongClick(){if(this.readyForControl()&&("Active"in this.service().values||"TargetMediaState"in this.service().values||"Volume"in this.service().values||"Mute"in this.service().values)){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(po,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-doorbell"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:15,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","6","y","1","width","18","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","2"],["cx","15","cy","16","r","5","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"rect",4)(6,"circle",5),c()(),N(),s(7,"div",6),p(8),c(),h(9,Il,6,2,"div",7)(10,Ll,2,3,"div",8)(11,Fl,2,3,"div",8)(12,Vl,2,1,"div",7)(13,Pl,3,3,"div",7)(14,Ol,3,3,"div",7),c()()),n&2){let a,m;L(O(8,bl,"Active"in i.service().values?(a=i.service().values)==null?null:a.Active:"CurrentMediaState"in i.service().values?we(7,kl).includes((a=i.service().values)==null?null:a.CurrentMediaState):"Mute"in i.service().values&&"Volume"in i.service().values?!((a=i.service().values)!=null&&a.Mute)&&((a=i.service().values)==null?null:a.Volume)>0:"Mute"in i.service().values&&!((a=i.service().values)!=null&&a.Mute),"CurrentMediaState"in i.service().values&&((a=i.service().values)==null?null:a.CurrentMediaState)===1)),o(2),y("aria-label",d(3,5,"accessories.core.doorbell")),o(6),v(i.service().customName||i.service().serviceName),o(),C("CurrentMediaState"in i.service().values?9:"Active"in i.service().values&&!((m=i.service().values)!=null&&m.Active)?10:"Mute"in i.service().values&&((m=i.service().values)!=null&&m.Mute)?11:"Volume"in i.service().values?12:we(11,Tl).includes(i.service().customType||i.service().type)?13:14)}},dependencies:[X,w],encapsulation:2})}return e})();var di=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Nl(e,r){if(e&1){let t=G();s(0,"h6",12),p(1),l(2,"translate"),c(),s(3,"div",13),l(4,"translate"),s(5,"button",6),S("click",function(i){V(t);let a=u();return P(a.setRotationDirection(0,i))}),s(6,"div",7),f(7,"i",8),c(),p(8),l(9,"translate"),s(10,"div",9),f(11,"i",10),c()(),s(12,"button",6),S("click",function(i){V(t);let a=u();return P(a.setRotationDirection(1,i))}),s(13,"div",7),f(14,"i",8),c(),p(15),l(16,"translate"),s(17,"div",9),f(18,"i",10),c()()()}if(e&2){let t=u();o(),v(d(2,8,"accessories.control.rotation_direction")),o(2),y("aria-label",d(4,10,"accessories.control.direction_control")),o(4),L(O(16,di,(t.service.values==null?null:t.service.values.RotationDirection)===0,(t.service.values==null?null:t.service.values.RotationDirection)!==0)),o(),g(" ",d(9,12,"accessories.control.rotation_clockwise")," "),o(6),L(O(19,di,(t.service.values==null?null:t.service.values.RotationDirection)===1,(t.service.values==null?null:t.service.values.RotationDirection)!==1)),o(),g(" ",d(16,14,"accessories.control.rotation_c_clockwise")," ")}}function Hl(e,r){e&1&&p(0,"%")}function Rl(e,r){if(e&1){let t=G();s(0,"h6",12),p(1),l(2,"translate"),h(3,Hl,1,0),c(),s(4,"nouislider",14),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetRotationSpeed.value,i)||(a.targetRotationSpeed.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTargetRotationSpeedChange())}),c()}if(e&2){let t=u();o(),$(" ",d(2,7,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value),o(2),C(t.targetRotationSpeed.unit==="percentage"?3:-1),o(),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),Z("ngModel",t.targetRotationSpeed.value)}}var uo=(()=>{class e extends he{targetMode;targetRotationSpeed;targetRotationSpeedChanged=new ee;hasRotationDirection=!1;setupComponent(){this.createDebouncedSubscription(this.targetRotationSpeedChanged,()=>{this.service.getCharacteristic("RotationSpeed").setValue(this.targetRotationSpeed.value),this.targetRotationSpeed.value&&!this.targetMode?(this.targetMode=!0,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0)):!this.targetRotationSpeed.value&&this.targetMode&&(this.targetMode=!1,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0))}),this.targetMode="On"in this.service.values?this.service.values.On:this.service.values.Active===1,this.loadRotationSpeed(),"RotationDirection"in this.service.values&&(this.hasRotationDirection=!0)}handleAccessoryUpdate(){this.targetMode="On"in this.service.values?this.service.values.On:this.service.values.Active===1,this.targetRotationSpeed&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed")?.value)}setTargetMode(t,n){this.targetMode=t,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0),this.targetMode&&this.targetRotationSpeed&&!this.targetRotationSpeed.value&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed").maxValue),this.blurTarget(n)}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}setRotationDirection(t,n){this.service.getCharacteristic("RotationDirection").setValue(t),this.blurTarget(n)}loadRotationSpeed(){let t=this.service.getCharacteristic("RotationSpeed");t&&(this.targetRotationSpeed={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep,unit:t.unit},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:25,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"div",5),l(7,"translate"),s(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),s(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),s(13,"div",9),f(14,"i",10),c()(),s(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),s(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),s(20,"div",9),f(21,"i",10),c()()(),h(22,Nl,19,22),h(23,Rl,5,9),c(),f(24,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(3),y("aria-label",d(7,13,"accessories.control.mode_control")),o(4),L(O(19,di,!i.targetMode,i.targetMode)),o(),g(" ",d(12,15,"accessories.control.off")," "),o(6),L(O(22,di,i.targetMode,!i.targetMode)),o(),g(" ",d(19,17,"accessories.control.on")," "),o(4),C(i.hasRotationDirection?22:-1),o(),C(i.targetRotationSpeed?23:-1))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();var $l=(e,r)=>({spin:e,"spin-counter":r});function jl(e,r){if(e&1&&(s(0,"div",8),p(1),c()),e&2){let t,n=u();o(),$("",(t=n.service().values)==null?null:t.RotationSpeed,"",n.rotationSpeedUnit)}}function Ul(e,r){if(e&1&&(f(0,"div",9),l(1,"translate")),e&2){let t,n=u();T("innerText",d(1,1,(t=n.service().values)!=null&&t.On||(t=n.service().values)!=null&&t.Active?"accessories.control.on":"accessories.control.off"))}}var fo=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);rotationSpeedUnit="";hasRotationDirection=!1;ngOnInit(){"RotationSpeed"in this.service().values&&this.service().serviceCharacteristics.find(n=>n.type==="RotationSpeed").unit==="percentage"&&(this.rotationSpeedUnit="%"),"RotationDirection"in this.service().values&&(this.hasRotationDirection=!0)}onClick(){this.readyForControl()&&("On"in this.service().values?this.service().getCharacteristic("On").setValue(!this.service().values.On):"Active"in this.service().values&&this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1),"RotationSpeed"in this.service().values&&!this.service().values.On&&!this.service().values.RotationSpeed&&(this.service().values.RotationSpeed=this.service().getCharacteristic("RotationSpeed").maxValue))}onLongClick(){if(this.readyForControl()&&("RotationSpeed"in this.service().values||"RotationDirection"in this.service().values)){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(uo,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-fan"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:12,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-0.85, 0.2) scale(0.99)"],["fill","#7f7f7f","fill-rule","evenodd","clip-rule","evenodd","d","M20.988 10.265c.382-.596.951-1.424 1.844-2.71C25.462 3.61 23.456 0 18 0c-6.263 0-10.09 5.649-6.835 11.923-.594-.382-1.416-.948-2.682-1.826-3.945-2.63-7.555-.625-7.555 4.832 0 6.308 5.73 10.145 12.057 6.763-.383.599-.958 1.436-1.872 2.753C8.485 28.39 10.49 32 15.947 32c6.267 0 10.095-5.655 6.83-11.932.593.382 1.412.946 2.668 1.818 3.945 2.63 7.555.625 7.555-4.832 0-6.293-5.703-10.127-12.012-6.788Zm-.407 2.602C26.101 8.924 31 11.805 31 17.053c0 3.877-1.845 4.902-4.445 3.169-2.525-1.761-3.46-2.385-4.406-2.763a7.87 7.87 0 0 0-1.01-.317c.105-.382.161-.785.161-1.2 0-1.327-.919-3.134-.919-3.134ZM18.405 10.85c.378-.946 1.001-1.88 2.763-4.405C22.902 3.845 21.877 2 18 2c-5.247 0-8.129 4.899-4.186 10.419 0 0 1.89-.919 3.186-.919.398 0 .783.052 1.15.149.064-.269.149-.533.255-.798ZM11.78 14.524c-.946-.378-1.88-1.001-4.405-2.763-2.6-1.734-4.445-.709-4.445 3.168 0 5.247 4.899 8.129 10.419 4.186 0 0-.848-1.812-.848-3.115 0-.416.057-.819.163-1.201a7.81 7.81 0 0 0-1.183-.275Zm3.763 6.625c-.378.946-1.001 1.88-2.763 4.405-1.734 2.6-.709 4.445 3.168 4.445 5.248 0 8.13-4.899 4.187-10.419 0 0-1.831.919-3.133.919-.416 0-.819-.057-1.201-.162a7.802 7.802 0 0 0-.258.812ZM17 19.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5-1.567 3.5-3.5 3.5Z",1,"fan-blades"],["cx","16","cy","16","r","3.6","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3)(5,"g",4),f(6,"path",5),c(),f(7,"circle",6),c()(),N(),s(8,"div",7),p(9),c(),h(10,jl,2,2,"div",8)(11,Ul,2,3,"div",9),c()()),n&2){let a,m,A;j("accessory-on",((a=i.service().values)==null?null:a.On)||((a=i.service().values)==null?null:a.Active)),o(2),L(O(9,$l,(((m=i.service().values)==null?null:m.On)||((m=i.service().values)==null?null:m.Active))&&(!i.hasRotationDirection||i.hasRotationDirection&&((m=i.service().values)==null?null:m.RotationDirection)===0),(((m=i.service().values)==null?null:m.On)||((m=i.service().values)==null?null:m.Active))&&i.hasRotationDirection&&((m=i.service().values)==null?null:m.RotationDirection)===1)),y("aria-label",d(3,7,"accessories.core.fan")),o(7),v(i.service().customName||i.service().serviceName),o(),C((A=i.service().values)!=null&&A.On&&((A=i.service().values)!=null&&A.RotationSpeed)?10:11)}},dependencies:[X,w],styles:[".spin svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear;transform-origin:53.5% 50%} .spin-counter svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin-counter 2s infinite linear;transform-origin:53.5% 50%}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_fa-spin-counter{0%{transform:rotate(0)}to{transform:rotate(-359deg)}}"]})}return e})();var vo=(()=>{class e extends he{targetMode;setupComponent(){this.applySliderGradient("linear-gradient(to right, #d32f2f, #e69533, #42d672, #42d672)")}handleAccessoryUpdate(){}resetFilterLife(t){this.service.getCharacteristic("ResetFilterIndication").setValue(1),this.blurTarget(t)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:16,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mb-4"],[3,"min","max","step","disabled","ngModel"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mt-5","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"modal-footer"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"h6",5),p(7),l(8,"translate"),c(),f(9,"nouislider",6),s(10,"div",7),l(11,"translate"),s(12,"button",8),S("click",function(m){return i.resetFilterLife(m)}),p(13),l(14,"translate"),c()()(),f(15,"div",9),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(4),$("",d(8,13,"accessories.control.filter_level"),": ",i.service.values==null?null:i.service.values.FilterLifeLevel,"%"),o(2),T("min",0)("max",100)("step",1)("disabled",!0)("ngModel",i.service.values==null?null:i.service.values.FilterLifeLevel),o(),y("aria-label",d(11,15,"accessories.core.filter_maintenance")),o(3),g(" ",d(14,17,"form.button_reset")," "))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();var Wl=(e,r)=>({replace:e,dirty:r});function Gl(e,r){e&1&&(p(0," \xB7 "),s(1,"span",27),p(2),l(3,"translate"),c()),e&2&&(o(2),v(d(3,1,"accessories.control.replace")))}var go=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);onClick(){if(!this.readyForControl())return;let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(vo,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-filter-maintenance"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:32,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","7","rx","11","ry","5","stroke","#7f7f7f","stroke-width","1.75","fill","#4caf50","fill-opacity","0.5",1,"status"],["cx","16","cy","7","rx","6","ry","2","stroke","#7f7f7f","stroke-width","1","fill","#e0e0e0","fill-opacity","1",1,"back"],["x1","5","y1","7","x2","5","y2","27.7","stroke","#7f7f7f","stroke-width","1.75"],["x1","27","y1","7","x2","27","y2","27.7","stroke","#7f7f7f","stroke-width","1.75"],["d","M4.7,27 A13,6.9 0 0,0 27.3,27","stroke","#7f7f7f","stroke-width","1.75","fill","none"],["x1","7","y1","10","x2","7","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","9","y1","11","x2","9","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","11","y1","12","x2","11","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","13","y1","12","x2","13","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","15","y1","12","x2","15","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","17","y1","12","x2","17","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","19","y1","12","x2","19","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","21","y1","12","x2","21","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","23","y1","11","x2","23","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","25","y1","10","x2","25","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","11","y1","6","x2","11","y2","8","stroke","#7f7f7f","stroke-width","1"],["x1","13","y1","5","x2","13","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","15","y1","5","x2","15","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","17","y1","5","x2","17","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","19","y1","5","x2","19","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","21","y1","6","x2","21","y2","8","stroke","#7f7f7f","stroke-width","1"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"red-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"ellipse",4)(6,"ellipse",5)(7,"line",6)(8,"line",7)(9,"path",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24),c()(),N(),s(26,"div",25),p(27),c(),s(28,"div",26)(29,"span"),p(30),c(),h(31,Gl,4,3),c()()()),n&2){let a,m,A,q;L(O(10,Wl,((a=i.service().values)==null?null:a.FilterChangeIndication)===1||((a=i.service().values)==null?null:a.FilterLifeLevel)<10,((a=i.service().values)==null?null:a.FilterChangeIndication)!==1&&((a=i.service().values)==null?null:a.FilterLifeLevel)<50)),o(2),y("aria-label",d(3,8,"accessories.core.filter_maintenance")),o(25),v(i.service().customName||i.service().serviceName),o(2),j("red-text",((m=i.service().values)==null?null:m.FilterChangeIndication)===1),o(),g(" ",(A=i.service().values)==null?null:A.FilterLifeLevel,"% "),o(),C(((q=i.service().values)==null?null:q.FilterChangeIndication)===1?31:-1)}},dependencies:[X,w],styles:[".dirty svg .status{fill:#e69533!important} .replace svg .status{fill:#d32f2f!important} body.dark-mode svg .back{fill:#2b2b2b!important}"]})}return e})();var ql=()=>[0,2,3,4],zl=(e,r,t,n,i,a,m)=>({"accessory-on":e,opening:r,open:t,closing:n,closed:i,stopped:a,obstructed:m});function Yl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.obstructed")))}function Kl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function Zl(e,r){e&1&&(s(0,"div",31),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}function Ql(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.opening"),"..."))}function Jl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.closing"),"..."))}function Xl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.stopped")))}function ec(e,r){if(e&1&&h(0,Kl,3,3,"div",30)(1,Zl,3,3,"div",31)(2,Ql,3,3,"div",30)(3,Jl,3,3,"div",30)(4,Xl,3,3,"div",30),e&2){let t,n=u();C((t=(t=n.service().values)==null?null:t.CurrentDoorState)===0?0:t===1?1:t===2?2:t===3?3:t===4?4:-1)}}function tc(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function ic(e,r){e&1&&(s(0,"div",31),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}function nc(e,r){if(e&1&&h(0,tc,3,3,"div",30)(1,ic,3,3,"div",31),e&2){let t,n=u();C((t=n.service().values)!=null&&t.On||(t=n.service().values)!=null&&t.Active?0:1)}}var ho=(()=>{class e{service=E.required();readyForControl=E(!1);onClick(){this.readyForControl()&&("TargetDoorState"in this.service().values?this.service().getCharacteristic("TargetDoorState").setValue(this.service().values.TargetDoorState?0:1):"On"in this.service().values?this.service().getCharacteristic("On").setValue(!this.service().values.On):"Active"in this.service().values&&this.service().getCharacteristic("Active").setValue(!this.service().values.Active))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-garage-door-opener"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:35,vars:16,consts:[["tabindex","0",1,"accessory-box",3,"shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","15.5","cy","10.25","r","3","stroke","#7f7f7f","stroke-width","0.5","fill","#1976d2","fill-opacity","0.5",1,"window"],["x1","1","y1","12","x2","15","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","31","y1","12","x2","16","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["cx","15.5","cy","1.3","r","0.5","stroke","#7f7f7f","stroke-width","1.5"],["x1","3","y1","11","x2","3","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","29","y1","11","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","3","y1","31","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","26","y1","31","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","6","y1","17","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x1","26","y1","17","x2","26","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x1","5.25","y1","17","x2","26.75","y2","17","stroke","#7f7f7f","stroke-width","1"],["x1","6.75","y1","18","x2","25.25","y2","18","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line1"],["x1","5.25","y1","19","x2","26.75","y2","19","stroke","#7f7f7f","stroke-width","1",1,"line","line2"],["x1","6.75","y1","20","x2","25.25","y2","20","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line3"],["x1","5.25","y1","21","x2","26.75","y2","21","stroke","#7f7f7f","stroke-width","1",1,"line","line4"],["x1","6.75","y1","22","x2","25.25","y2","22","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line5"],["x1","5.25","y1","23","x2","26.75","y2","23","stroke","#7f7f7f","stroke-width","1",1,"line","line6"],["x1","6.75","y1","24","x2","25.25","y2","24","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line7"],["x1","5.25","y1","25","x2","26.75","y2","25","stroke","#7f7f7f","stroke-width","1",1,"line","line8"],["x1","6.75","y1","26","x2","25.25","y2","26","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line9"],["x1","5.25","y1","27","x2","26.75","y2","27","stroke","#7f7f7f","stroke-width","1",1,"line","line10"],["x1","6.75","y1","28","x2","25.25","y2","28","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line11"],["x1","5.25","y1","29","x2","26.75","y2","29","stroke","#7f7f7f","stroke-width","1",1,"line","line12"],["x1","6.75","y1","30","x2","25.25","y2","30","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line13"],["x1","5.25","y1","31","x2","26.75","y2","31","stroke","#7f7f7f","stroke-width","1",1,"line","line14"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"circle",4)(6,"line",5)(7,"line",6)(8,"circle",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26)(28,"line",27)(29,"line",28),c()(),N(),s(30,"div",29),p(31),c(),h(32,Yl,3,3,"div",30)(33,ec,5,1)(34,nc,2,1),c()()),n&2){let a,m;L(Mn(8,zl,((a=i.service().values)==null?null:a.ObstructionDetected)||we(7,ql).includes((a=i.service().values)==null?null:a.CurrentDoorState)||((a=i.service().values)==null?null:a.On)||((a=i.service().values)==null?null:a.Active),((a=i.service().values)==null?null:a.CurrentDoorState)===2&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===0&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===3&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===1&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===4&&!((a=i.service().values)!=null&&a.ObstructionDetected),(a=i.service().values)==null?null:a.ObstructionDetected)),o(2),y("aria-label",d(3,5,"accessories.core.garage_door_opener")),o(29),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.ObstructionDetected?32:"CurrentDoorState"in i.service().values?33:34)}},dependencies:[X,w],styles:[".opening svg .window{fill:#ff9800!important;fill-opacity:.5!important} .opening svg .line{animation:_ngcontent-%COMP%_fade-out .5s ease-in-out forwards} .opening svg .line1{animation-delay:9.282s} .opening svg .line2{animation-delay:8.568s} .opening svg .line3{animation-delay:7.854s} .opening svg .line4{animation-delay:7.14s} .opening svg .line5{animation-delay:6.426s} .opening svg .line6{animation-delay:5.712s} .opening svg .line7{animation-delay:4.998s} .opening svg .line8{animation-delay:4.284s} .opening svg .line9{animation-delay:3.57s} .opening svg .line10{animation-delay:2.856s} .opening svg .line11{animation-delay:2.142s} .opening svg .line12{animation-delay:1.428s} .opening svg .line13{animation-delay:.714s} .opening svg .line14{animation-delay:0s}@keyframes _ngcontent-%COMP%_fade-out{to{opacity:0}} .open .window{fill:#d32f2f!important;fill-opacity:.5!important} .open .line{opacity:0} .closing svg .window{fill:#ff9800!important;fill-opacity:.5!important} .closing svg .line{opacity:0;animation:_ngcontent-%COMP%_fade-in .5s ease-in-out forwards} .closing svg .line1{animation-delay:0s} .closing svg .line2{animation-delay:.714s} .closing svg .line3{animation-delay:1.428s} .closing svg .line4{animation-delay:2.142s} .closing svg .line5{animation-delay:2.856s} .closing svg .line6{animation-delay:3.57s} .closing svg .line7{animation-delay:4.284s} .closing svg .line8{animation-delay:4.998s} .closing svg .line9{animation-delay:5.712s} .closing svg .line10{animation-delay:6.426s} .closing svg .line11{animation-delay:7.14s} .closing svg .line12{animation-delay:7.854s} .closing svg .line13{animation-delay:8.568s} .closing svg .line14{animation-delay:9.282s}@keyframes _ngcontent-%COMP%_fade-in{to{opacity:1}} .closed .window{fill:#4caf50!important;fill-opacity:.5!important} .closed .line{opacity:1} .stopped .window{fill:#d32f2f!important} .stopped .line7, .stopped .line8, .stopped .line9, .stopped .line10, .stopped .line11, .stopped .line12, .stopped .line13, .stopped .line14{opacity:0} .obstructed .window{animation:_ngcontent-%COMP%_flash 2s infinite;fill:#d32f2f!important}@keyframes _ngcontent-%COMP%_flash{0%,to{fill-opacity:.5}50%{fill-opacity:.1}} .obstructed .line7, .obstructed .line8, .obstructed .line9, .obstructed .line10, .obstructed .line11, .obstructed .line12, .obstructed .line13, .obstructed .line14{opacity:0}"]})}return e})();var qt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function oc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(0,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,qt,t.targetMode===0,t.targetMode!==0)),o(),g(" ",d(4,3,"accessories.control.auto")," ")}}function rc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(1,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,qt,t.targetMode===1,t.targetMode!==1)),o(),g(" ",d(4,3,"accessories.control.heat")," ")}}function ac(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(2,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,qt,t.targetMode===2,t.targetMode!==2)),o(),g(" ",d(4,3,"accessories.control.cool")," ")}}function sc(e,r){if(e&1&&(s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"div",15),l(4,"translate"),h(5,oc,7,8,"button",16),h(6,rc,7,8,"button",16),h(7,ac,7,8,"button",16),c()),e&2){let t=u();o(),v(d(2,5,"accessories.control.mode")),o(2),y("aria-label",d(4,7,"accessories.control.mode_control")),o(2),C(t.targetStateValidValues.includes(0)?5:-1),o(),C(t.targetStateValidValues.includes(1)?6:-1),o(),C(t.targetStateValidValues.includes(2)?7:-1)}}function lc(e,r){if(e&1){let t=G();s(0,"h6",17),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),l(6,"convertTemp"),l(7,"number"),l(8,"uppercase"),c(),s(9,"nouislider",18),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.autoTemp,i)||(a.autoTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onAutoTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),At(" ",d(2,9,"accessories.control.target_auto"),": ",ue(4,13,d(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",d(5,16,t.temperatureUnits)," - ",ue(7,20,d(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",d(8,23,t.temperatureUnits)," "),o(8),T("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.autoTemp)}}function cc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),s(6,"nouislider",18),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetHeatingTemp,i)||(a.targetHeatingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),nt(" ",d(2,7,"accessories.control.target_auto"),": ",ue(4,11,d(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),Z("ngModel",t.targetHeatingTemp)}}function dc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),s(6,"nouislider",18),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetCoolingTemp,i)||(a.targetCoolingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),nt(" ",d(2,7,"accessories.control.target_auto"),": ",ue(4,11,d(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.targetCoolingTemp)}}function pc(e,r){if(e&1&&h(0,lc,10,25)(1,cc,7,16)(2,dc,7,16),e&2){let t=u();C(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var Co=(()=>{class e extends he{$settings=k(Ee);type=E.required();temperatureUnits=this.$settings.env.temperatureUnits;targetState;targetMode;targetTemperatureChanged=new ee;targetStateValidValues=[];CoolingThresholdTemperature;HeatingThresholdTemperature;targetCoolingTemp;targetHeatingTemp;autoTemp;setupComponent(){this.createDebouncedSubscription(this.targetTemperatureChanged,()=>{this.HeatingThresholdTemperature&&this.service.getCharacteristic("HeatingThresholdTemperature").setValue(this.targetHeatingTemp),this.CoolingThresholdTemperature&&this.service.getCharacteristic("CoolingThresholdTemperature").setValue(this.targetCoolingTemp)}),this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHeaterCoolerState,this.CoolingThresholdTemperature=this.service.getCharacteristic("CoolingThresholdTemperature"),this.HeatingThresholdTemperature=this.service.getCharacteristic("HeatingThresholdTemperature"),this.targetStateValidValues=this.service.getCharacteristic("TargetHeaterCoolerState").validValues,this.loadTargetTemperature(),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}handleAccessoryUpdate(){this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHeaterCoolerState,this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}setTargetState(t,n){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetTemperature(),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetHeaterCoolerState").setValue(this.targetMode),this.loadTargetTemperature(),this.blurTarget(n),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}onTemperatureStateChange(){this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.targetTemperatureChanged.next(void 0)}onAutoTemperatureStateChange(){this.targetHeatingTemp=this.autoTemp[0],this.targetCoolingTemp=this.autoTemp[1],this.targetTemperatureChanged.next(void 0)}loadTargetTemperature(){this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp]}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:[1,"type"]},features:[ge],decls:31,vars:36,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-temperature-full"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[1,"mt-4","mb-1"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"h6",5),f(7,"i",6),p(8),l(9,"convertTemp"),l(10,"number"),l(11,"uppercase"),c(),s(12,"div",7),l(13,"translate"),s(14,"button",8),S("click",function(m){return i.setTargetState(0,m)}),s(15,"div",9),f(16,"i",10),c(),p(17),l(18,"translate"),s(19,"div",11),f(20,"i",12),c()(),s(21,"button",8),S("click",function(m){return i.setTargetState(1,m)}),s(22,"div",9),f(23,"i",10),c(),p(24),l(25,"translate"),s(26,"div",11),f(27,"i",12),c()()(),h(28,sc,8,9),h(29,pc,3,1),c(),f(30,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,15,"form.button_close")),o(4),Xe("color",(i.service.values==null?null:i.service.values.CurrentHeaterCoolerState)===3&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="cooler"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#1e8bbd":(i.service.values==null?null:i.service.values.CurrentHeaterCoolerState)===2&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="heater"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#e69533":i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On?"#42d672":"#7b7b7b"),o(),$("",ue(10,19,d(9,17,i.service.values==null?null:i.service.values.CurrentTemperature),"1.0-1"),"\xB0",d(11,22,i.temperatureUnits)," "),o(4),y("aria-label",d(13,24,"accessories.control.state_control")),o(4),L(O(30,qt,i.targetState===0,i.targetState!==0)),o(),g(" ",d(18,26,"accessories.control.off")," "),o(6),L(O(33,qt,i.targetState===1,i.targetState!==1)),o(),g(" ",d(25,28,"accessories.control.on")," "),o(4),C(i.targetStateValidValues.length?28:-1),o(),C(i.targetStateValidValues.includes(0)?29:-1))},dependencies:[le,de,pe,me,Le,w,He,Ue],encapsulation:2,changeDetection:0})}return e})();function mc(e,r){if(e&1&&(I(),s(0,"text",23),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),c()),e&2){let t,n=u();o(),$(" ",ue(3,4,d(2,2,(t=n.service().values)==null?null:t.CurrentTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function uc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.off")," ")}function fc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),l(5,"convertTemp"),l(6,"number"),l(7,"uppercase")),e&2){let t,n=u(2);o(),kn(" ",ue(3,6,d(2,4,(t=n.service().values)==null?null:t.HeatingThresholdTemperature),"1.0-1"),"\xB0",d(4,9,n.temperatureUnits)," - ",ue(6,13,d(5,11,(t=n.service().values)==null?null:t.CoolingThresholdTemperature),"1.0-1"),"\xB0",d(7,16,n.temperatureUnits)," ")}}function vc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t,n=u(2);o(),$(" ",ue(3,4,d(2,2,(t=n.service().values)==null?null:t.HeatingThresholdTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function gc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t,n=u(2);o(),$(" ",ue(3,4,d(2,2,(t=n.service().values)==null?null:t.CoolingThresholdTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function hc(e,r){if(e&1&&h(0,fc,8,18)(1,vc,5,9)(2,gc,5,9),e&2){let t=u();C(t.hasHeating()&&t.hasCooling()?0:t.hasHeating()&&!t.hasCooling()?1:!t.hasHeating()&&t.hasCooling()?2:-1)}}function Cc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.heat")," ")}function _c(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.cool")," ")}function yc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.on")," ")}var _o=(()=>{class e{$modal=k(ne);injector=k(te);$settings=k(Ee);$accessories=k(re);service=E.required();readyForControl=E(!1);type=E();temperatureUnits=this.$settings.env.temperatureUnits;hasHeating=mt(!1);hasCooling=mt(!1);ngOnInit(){this.hasHeating.set("HeatingThresholdTemperature"in this.service().values),this.hasCooling.set("CoolingThresholdTemperature"in this.service().values)}onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1):"On"in this.service().values&&this.service().getCharacteristic("On").setValue(!this.service().values.On))}onLongClick(){if(this.readyForControl()&&"TargetHeaterCoolerState"in this.service().values){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Co,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-heater-cooler"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"],type:[1,"type"]},decls:36,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","coolingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","heatingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","8","y1","7","x2","8","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","12","y1","7","x2","12","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","16","y1","7","x2","16","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","20","y1","7","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","24","y1","7","x2","24","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x","3.5","y","4","width","25","height","15","rx","0","stroke","#7f7f7f","stroke-width","1.2","fill-opacity","0.5"],["x","16","y","27.5","font-size","7","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),s(9,"stop",7),f(10,"animate",8),c(),s(11,"stop",9),f(12,"animate",6),c()(),s(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),s(16,"stop",13),f(17,"animate",14),c(),s(18,"stop",15),f(19,"animate",12),c()()(),f(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"rect",22),h(27,mc,5,9,":svg:text",23),c()(),N(),s(28,"div",24),p(29),c(),s(30,"div",25),h(31,uc,2,3)(32,hc,3,1)(33,Cc,2,3)(34,_c,2,3)(35,yc,2,3),c()()()),n&2){let a,m,A;j("accessory-on",((a=i.service().values)==null?null:a.Active)||((a=i.service().values)==null?null:a.On)),o(2),y("aria-label",d(3,7,"accessories.core.heater_cooler")),o(24),y("fill",((m=i.service().values)==null?null:m.CurrentHeaterCoolerState)===3&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="cooler"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#coolingGradient)":((m=i.service().values)==null?null:m.CurrentHeaterCoolerState)===2&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="heater"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#heatingGradient)":(m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On?"#42d672":"#7b7b7b"),o(),C("CurrentTemperature"in i.service().values?27:-1),o(2),v(i.service().customName||i.service().serviceName),o(2),C("Active"in i.service().values&&!((A=i.service().values)!=null&&A.Active)||"On"in i.service().values&&!((A=i.service().values)!=null&&A.On)?31:((A=i.service().values)==null?null:A.TargetHeaterCoolerState)===0&&(i.hasHeating()||i.hasCooling())?32:((A=i.service().values)==null?null:A.TargetHeaterCoolerState)===1?33:((A=i.service().values)==null?null:A.TargetHeaterCoolerState)===2?34:35)}},dependencies:[X,Le,w,He,Ue],encapsulation:2})}return e})();var zt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function xc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(0,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,zt,t.targetMode===0,t.targetMode!==0)),o(),g(" ",d(4,3,"accessories.control.auto")," ")}}function Sc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(1,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,zt,t.targetMode===1,t.targetMode!==1)),o(),g(" ",d(4,3,"accessories.control.humidify")," ")}}function kc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(2,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,zt,t.targetMode===2,t.targetMode!==2)),o(),g(" ",d(4,3,"accessories.control.dehumidify")," ")}}function bc(e,r){if(e&1&&(s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"div",15),l(4,"translate"),h(5,xc,7,8,"button",16),h(6,Sc,7,8,"button",16),h(7,kc,7,8,"button",16),c()),e&2){let t=u();o(),v(d(2,5,"accessories.control.mode")),o(2),y("aria-label",d(4,7,"accessories.control.mode_control")),o(2),C(t.targetStateValidValues.includes(0)?5:-1),o(),C(t.targetStateValidValues.includes(1)?6:-1),o(),C(t.targetStateValidValues.includes(2)?7:-1)}}function Tc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"nouislider",17),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.autoHumidity,i)||(a.autoHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onAutoHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),nt(" ",d(2,7,"accessories.control.target_auto"),": ",t.autoHumidity[0],"% - ",t.autoHumidity[1],"% "),o(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),Z("ngModel",t.autoHumidity)}}function Mc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"nouislider",17),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetHumidifierHumidity,i)||(a.targetHumidifierHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),$("",d(2,6,"accessories.control.target_auto"),": ",t.targetHumidifierHumidity,"%"),o(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityHumidifierThreshold.maxValue)("step",t.RelativeHumidityHumidifierThreshold.minStep),Z("ngModel",t.targetHumidifierHumidity)}}function Bc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"nouislider",17),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetDehumidifierHumidity,i)||(a.targetDehumidifierHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),$("",d(2,6,"accessories.control.target_auto"),": ",t.targetDehumidifierHumidity,"%"),o(2),T("min",t.RelativeHumidityDehumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),Z("ngModel",t.targetDehumidifierHumidity)}}function wc(e,r){if(e&1&&h(0,Tc,4,9)(1,Mc,4,8)(2,Bc,4,8),e&2){let t=u();C(t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?0:t.RelativeHumidityHumidifierThreshold&&!t.RelativeHumidityDehumidifierThreshold?1:!t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?2:-1)}}var yo=(()=>{class e extends he{type=E.required();targetState;targetMode;targetHumidityChanged=new ee;targetStateValidValues=[];RelativeHumidityDehumidifierThreshold;RelativeHumidityHumidifierThreshold;targetDehumidifierHumidity;targetHumidifierHumidity;autoHumidity;setupComponent(){this.createDebouncedSubscription(this.targetHumidityChanged,()=>{this.RelativeHumidityHumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityHumidifierThreshold").setValue(this.targetHumidifierHumidity),this.RelativeHumidityDehumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold").setValue(this.targetDehumidifierHumidity)}),this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHumidifierDehumidifierState,this.RelativeHumidityDehumidifierThreshold=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold"),this.RelativeHumidityHumidifierThreshold=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold"),this.targetStateValidValues=this.service.getCharacteristic("TargetHumidifierDehumidifierState").validValues,this.loadTargetHumidity(),this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}handleAccessoryUpdate(){this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHumidifierDehumidifierState,this.targetDehumidifierHumidity=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold")?.value,this.targetHumidifierHumidity=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold")?.value,this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity],this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}loadTargetHumidity(){this.targetDehumidifierHumidity=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold")?.value,this.targetHumidifierHumidity=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold")?.value,this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity]}setTargetState(t,n){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetHumidity(),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetHumidifierDehumidifierState").setValue(this.targetMode),this.loadTargetHumidity(),this.blurTarget(n),this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}onHumidityStateChange(){this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity],this.targetHumidityChanged.next(void 0)}onAutoHumidityStateChange(){this.targetHumidifierHumidity=this.autoHumidity[0],this.targetDehumidifierHumidity=this.autoHumidity[1],this.targetHumidityChanged.next(void 0)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:[1,"type"]},features:[ge],decls:28,vars:28,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-temperature-full"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"h6",5),f(7,"i",6),p(8),c(),s(9,"div",7),l(10,"translate"),s(11,"button",8),S("click",function(m){return i.setTargetState(0,m)}),s(12,"div",9),f(13,"i",10),c(),p(14),l(15,"translate"),s(16,"div",11),f(17,"i",12),c()(),s(18,"button",8),S("click",function(m){return i.setTargetState(1,m)}),s(19,"div",9),f(20,"i",10),c(),p(21),l(22,"translate"),s(23,"div",11),f(24,"i",12),c()()(),h(25,bc,8,9),h(26,wc,3,1),c(),f(27,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,14,"form.button_close")),o(4),Xe("color",(i.service.values==null?null:i.service.values.CurrentHumidifierDehumidifierState)===2&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="humidifier"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#1e8bbd":(i.service.values==null?null:i.service.values.CurrentHumidifierDehumidifierState)===3&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="dehumidifier"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#e69533":i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On?"#42d672":"#7b7b7b"),o(),g("",i.service.values==null?null:i.service.values.CurrentRelativeHumidity,"% "),o(),y("aria-label",d(10,16,"accessories.control.state_control")),o(4),L(O(22,zt,i.targetState===0,i.targetState!==0)),o(),g(" ",d(15,18,"accessories.control.off")," "),o(6),L(O(25,zt,i.targetState===1,i.targetState!==1)),o(),g(" ",d(22,20,"accessories.control.on")," "),o(4),C(i.targetStateValidValues.length?25:-1),o(),C(i.targetStateValidValues.includes(0)?26:-1))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();function Ec(e,r){if(e&1&&(I(),s(0,"text",36),p(1),c()),e&2){let t,n=u();o(),g(" ",(t=n.service().values)==null?null:t.CurrentRelativeHumidity,"% ")}}function Dc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.off")," ")}function Ac(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),$(" ",(t=n.service().values)==null?null:t.RelativeHumidityHumidifierThreshold,"% - ",(t=n.service().values)==null?null:t.RelativeHumidityDehumidifierThreshold,"% ")}}function Ic(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),g(" ",(t=n.service().values)==null?null:t.RelativeHumidityHumidifierThreshold,"% ")}}function Lc(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),g(" ",(t=n.service().values)==null?null:t.RelativeHumidityDehumidifierThreshold,"% ")}}function Fc(e,r){if(e&1&&h(0,Ac,2,2)(1,Ic,2,1)(2,Lc,2,1),e&2){let t=u();C(t.hasHumidifier&&t.hasDehumidifier?0:t.hasHumidifier&&!t.hasDehumidifier?1:!t.hasHumidifier&&t.hasDehumidifier?2:-1)}}function Vc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.humidify")," ")}function Pc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.dehumidify")," ")}function Oc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.on")," ")}function Nc(e,r){if(e&1&&h(0,Pc,2,3)(1,Oc,2,3),e&2){let t,n=u();C(((t=n.service().values)==null?null:t.TargetHumidifierDehumidifierState)===2?0:1)}}var xo=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);type=E();hasHumidifier=!1;hasDehumidifier=!1;ngOnInit(){this.hasHumidifier="RelativeHumidityHumidifierThreshold"in this.service().values,this.hasDehumidifier="RelativeHumidityDehumidifierThreshold"in this.service().values}onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1):"On"in this.service().values&&this.service().getCharacteristic("On").setValue(!this.service().values.On))}onLongClick(){if(this.readyForControl()&&"TargetHumidifierDehumidifierState"in this.service().values){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(yo,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-humidifier-dehumidifier"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"],type:[1,"type"]},decls:48,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","humidifyingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","dehumidifyingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","1","y","3.5","width","30","height","25","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","6","y1","10","x2","6","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","6","y1","12","x2","6","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","6","y1","14","x2","6","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","10","x2","10","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","12","x2","10","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","14","x2","10","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","10","x2","14","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","12","x2","14","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","14","x2","14","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","10","x2","18","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","12","x2","18","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","14","x2","18","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","10","x2","22","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","12","x2","22","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","14","x2","22","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","10","x2","26","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","12","x2","26","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","14","x2","26","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x","1","y","7","width","30","height","10","rx","0","stroke","#7f7f7f","stroke-width","1.2","fill-opacity","0.5"],["x","16.5","y","25.5","font-size","7","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),s(9,"stop",7),f(10,"animate",8),c(),s(11,"stop",9),f(12,"animate",6),c()(),s(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),s(16,"stop",13),f(17,"animate",14),c(),s(18,"stop",15),f(19,"animate",12),c()()(),f(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"line",22)(27,"line",23)(28,"line",24)(29,"line",25)(30,"line",26)(31,"line",27)(32,"line",28)(33,"line",29)(34,"line",30)(35,"line",31)(36,"line",32)(37,"line",33)(38,"line",34)(39,"rect",35),h(40,Ec,2,1,":svg:text",36),c()(),N(),s(41,"div",37),p(42),c(),s(43,"div",38),h(44,Dc,2,3)(45,Fc,3,1)(46,Vc,2,3)(47,Nc,2,1),c()()()),n&2){let a,m,A;j("accessory-on",((a=i.service().values)==null?null:a.Active)||((a=i.service().values)==null?null:a.On)),o(2),y("aria-label",d(3,7,"accessories.core.humidifier_dehumidifier")),o(37),y("fill",((m=i.service().values)==null?null:m.CurrentHumidifierDehumidifierState)===2&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="humidifier"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#humidifyingGradient)":((m=i.service().values)==null?null:m.CurrentHumidifierDehumidifierState)===3&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="dehumidifier"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#dehumidifyingGradient)":(m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On?"#42d672":"#7b7b7b"),o(),C("CurrentRelativeHumidity"in i.service().values?40:-1),o(2),v(i.service().customName||i.service().serviceName),o(2),C("Active"in i.service().values&&!((A=i.service().values)!=null&&A.Active)||"On"in i.service().values&&!((A=i.service().values)!=null&&A.On)?44:((A=i.service().values)==null?null:A.TargetHumidifierDehumidifierState)===0&&(i.hasHumidifier||i.hasDehumidifier)?45:((A=i.service().values)==null?null:A.TargetHumidifierDehumidifierState)===1?46:47)}},dependencies:[X,w],encapsulation:2})}return e})();function Hc(e,r){if(e&1&&p(0),e&2){let t,n=u();g(" ",(t=n.service().values)==null?null:t.CurrentRelativeHumidity,"% ")}}function Rc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.no_data")," ")}var So=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-humidity-sensor"]],inputs:{service:[1,"service"]},decls:26,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(1.8, -4.3), scale(0.85)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.4","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),h(24,Hc,1,1)(25,Rc,2,3),b()()()),n&2&&(o(2),y("aria-label",d(3,3,"accessories.core.humidity_sensor")),o(20),v(i.service().customName||i.service().serviceName),o(2),C("CurrentRelativeHumidity"in i.service().values?24:25))},dependencies:[w],styles:[".humidity-drop[_ngcontent-%COMP%]{position:relative;display:inline-block;width:50px;height:50px;line-height:42px;border-radius:5% 55% 70%;font-size:14px;text-align:center;margin-bottom:6px;margin-top:9px;background-color:gray;color:#d3d3d3;transform:rotate(45deg)}@media(max-width:575px){.humidity-drop-collapse[_ngcontent-%COMP%]{width:31px;height:31px;line-height:28px;font-size:10px;margin-bottom:7px;margin-top:5px}.humidity-drop-collapse[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:-2px}}.humidity-drop-text[_ngcontent-%COMP%]{transform:rotate(-45deg);margin-left:-5px}"]})}return e})();function $c(e,r){e&1&&(x(0,"div",14),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.running")))}function jc(e,r){e&1&&(x(0,"div",14),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var ko=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-irrigation-system"]],inputs:{service:[1,"service"]},decls:18,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","9","y","1","width","14","height","6.5","rx","2","fill","#1976d2","stroke","#7b7b7b","stroke-width","0.5","fill-opacity","0.5"],["x1","16","y1","8","x2","16","y2","31","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","9","x2","31","y2","9","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","20","x2","31","y2","20","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","31","x2","31","y2","31","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x","1","y","10","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","17","y","10","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","1","y","21","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","17","y","21","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"rect",9)(11,"rect",10)(12,"rect",11)(13,"rect",12),b()(),N(),x(14,"div",13),p(15),b(),h(16,$c,3,3,"div",14)(17,jc,3,3,"div",14),b()()),n&2){let a,m,A;j("accessory-on",(a=i.service().values)==null?null:a.InUse),o(2),y("aria-label",d(3,5,"accessories.core.irrigation_system")),o(13),g(" ",i.service().customName||((m=i.service().values)==null?null:m.ConfiguredName)||i.service().serviceName," "),o(),C((A=i.service().values)!=null&&A.InUse?16:17)}},dependencies:[w],styles:[".accessory-on svg .field{fill:#4caf50} .accessory-on svg .pipe{animation:_ngcontent-%COMP%_pulse 5s infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{stroke:#7f7f7f;stroke-opacity:.5}50%{stroke:#1976d2;stroke-opacity:1}}"]})}return e})();function Uc(e,r){e&1&&(x(0,"div",23),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function Wc(e,r){e&1&&(x(0,"div",24),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var bo=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-leak-sensor"]],inputs:{service:[1,"service"]},decls:28,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2",1,"red-outline"],["transform","translate(7, 0), scale(0.35)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","1"],["transform","translate(13, 7), scale(0.35)"],["cx","16","cy","22","rx","10","ry","2","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","0.35"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),x(8,"g",7),F(9,"path",6),b(),F(10,"ellipse",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"line",13)(16,"line",14)(17,"line",15)(18,"line",16)(19,"line",17)(20,"line",18)(21,"line",19)(22,"line",20)(23,"line",21),b()(),N(),x(24,"div",22),p(25),b(),h(26,Uc,3,3,"div",23)(27,Wc,3,3,"div",24),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.LeakDetected),o(2),y("aria-label",d(3,5,"accessories.core.leak_sensor")),o(23),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.LeakDetected?26:27)}},dependencies:[w],styles:[".accessory-on svg .red-outline{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{stroke-opacity:.8}50%{stroke-opacity:.2}}"]})}return e})();function Gc(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t,n=u();o(),g("",ue(2,1,(t=n.service().values)==null?null:t.CurrentAmbientLightLevel,"0.1-1")," lux")}}function qc(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t,n=u();o(),g("",ue(2,1,(t=n.service().values)==null?null:t.CurrentAmbientLightLevel,"1.0-0")," lux")}}var To=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-light-sensor"]],inputs:{service:[1,"service"]},decls:32,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["cx","16","cy","13.75","r","5","stroke","#ff9800","fill","none","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","3","x2","16","y2","7","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","23.5","y1","6","x2","20.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","22.75","y1","13.5","x2","26.75","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","20.75","y1","18.25","x2","23.75","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","20.5","x2","16","y2","24.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","11.25","y1","18.25","x2","8.25","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","5.25","y1","13.5","x2","9.25","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","8.5","y1","6","x2","11.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"circle",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26),b()(),N(),x(28,"div",27),p(29),b(),h(30,Gc,3,4,"div",28)(31,qc,3,4,"div",28),b()()),n&2){let a;o(2),y("aria-label",d(3,3,"accessories.core.light_sensor")),o(27),v(i.service().customName||i.service().serviceName),o(),C(((a=i.service().values)==null?null:a.CurrentAmbientLightLevel)<1?30:31)}},dependencies:[Le,w],encapsulation:2})}return e})();var lt=(()=>{class e{miredToKelvin(t){return Math.round(1e6/t)}kelvinToMired(t){return Math.round(1e6/t)}kelvinToHex(t){t=Math.max(1e3,Math.min(4e4,t));let n=t/100,i,a,m;return n<=66?(i=255,a=n,a=99.4708025861*Math.log(a)-161.1195681661,m=n<=19?0:138.5177312231*Math.log(n-10)-305.0447927307):(i=329.698727446*(n-60)**-.1332047592,a=288.1221695283*(n-60)**-.0755148492,m=255),i=Math.round(Math.min(Math.max(i,0),255)),a=Math.round(Math.min(Math.max(a,0),255)),m=Math.round(Math.min(Math.max(m,0),255)),`#${i.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}${m.toString(16).padStart(2,"0")}`}kelvinToHsl(t){let n=t/100,i,a,m;n<=66?(i=255,a=Math.min(99.4708025861*Math.log(n)-161.1195681661,255),m=n<=19?0:Math.min(138.5177312231*Math.log(n-10)-305.0447927307,255)):(i=Math.min(329.698727446*(n-60)**-.1332047592,255),a=Math.min(288.1221695283*(n-60)**-.0755148492,255),m=255),i/=255,a/=255,m/=255;let A=Math.max(i,a,m),q=Math.min(i,a,m),z=A-q,ce=0;z!==0&&(A===i?ce=(a-m)/z%6:A===a?ce=(m-i)/z+2:ce=(i-a)/z+4,ce=Math.round(ce*60),ce<0&&(ce+=360));let ke=(A+q)/2,Ve=z===0?0:z/(1-Math.abs(2*ke-1));return`hsl(${Math.round(ce)}, ${Math.round(Ve*100)}%, ${Math.round(ke*100)}%)`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ii({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Mo=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),zc=(e,r)=>({"off-text":e,"on-text":r}),Ni=(e,r)=>({"mb-1":e,"":r});function Yc(e,r){e&1&&f(0,"div")}function Kc(e,r){if(e&1&&(s(0,"div",11)(1,"div",13)(2,"div",7),f(3,"i",14),c(),p(4),l(5,"translate"),s(6,"div",9),f(7,"i",10),c()()()),e&2){let t=u();o(3),L(O(6,zc,!t.isAdaptiveLightingEnabled,t.isAdaptiveLightingEnabled)),o(),$(" ",d(5,4,"accessories.control.adaptive_lighting"),": ",t.isAdaptiveLightingEnabled?"ON":"OFF"," ")}}function Zc(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),c(),s(3,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetBrightness.value,i)||(a.targetBrightness.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onBrightnessStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.brightness"),": ",t.targetBrightness.value,"%"),o(2),T("min",t.targetBrightness.min)("max",t.targetBrightness.max)("step",t.targetBrightness.step),Z("ngModel",t.targetBrightness.value)}}function Qc(e,r){e&1&&(s(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function Jc(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),c(),s(3,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetHue.value,i)||(a.targetHue.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onHueStateChange())}),c(),h(4,Qc,4,3,"div",17)}if(e&2){let t=u();o(),$("",d(2,9,"accessories.control.hue"),": ",t.targetHue.value,"\xB0"),o(2),L(O(11,Ni,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",360)("step",1),Z("ngModel",t.targetHue.value),o(),C(t.isAdaptiveLightingEnabled?4:-1)}}function Xc(e,r){e&1&&(s(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function ed(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),c(),s(3,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetSaturation.value,i)||(a.targetSaturation.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onSaturationStateChange())}),c(),h(4,Xc,4,3,"div",17)}if(e&2){let t=u();o(),$("",d(2,9,"accessories.control.saturation"),": ",t.targetSaturation.value,"%"),o(2),L(O(11,Ni,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",100)("step",1),Z("ngModel",t.targetSaturation.value),o(),C(t.isAdaptiveLightingEnabled?4:-1)}}function td(e,r){e&1&&(s(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function id(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),l(3,"convertMired"),c(),s(4,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetColorTemperature.value,i)||(a.targetColorTemperature.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onColorTemperatureStateChange())}),c(),h(5,td,4,3,"div",17)}if(e&2){let t=u();o(),$(" ",d(2,9,"accessories.control.color_temperature"),": ",d(3,11,t.targetColorTemperature.mired)," "),o(3),L(O(13,Ni,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),Z("ngModel",t.targetColorTemperature.value),o(),C(t.isAdaptiveLightingEnabled?5:-1)}}var Hi=new ni("LightbulbAdaptiveLighting",{factory:()=>{}}),Bo=(()=>{class e extends he{$colour=k(lt);isAdaptiveLightingEnabled$=k(Hi);targetMode;targetBrightness;targetBrightnessChanged=new ee;targetHue;targetHueChanged=new ee;targetSaturation;targetSaturationChanged=new ee;targetColorTemperature;targetColorTemperatureChanged=new ee;hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;sliderIndex=0;setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>{this.service.getCharacteristic("Brightness").setValue(this.targetBrightness.value),this.targetBrightness.value&&!this.service.values.On?(this.targetMode=!0,this.service.getCharacteristic("On").setValue(this.targetMode)):!this.targetBrightness.value&&this.service.values.On&&(this.targetMode=!1,this.service.getCharacteristic("On").setValue(this.targetMode))}),this.createDebouncedSubscription(this.targetHueChanged,()=>{this.service.getCharacteristic("Hue").setValue(this.targetHue.value)}),this.createDebouncedSubscription(this.targetSaturationChanged,()=>{this.service.getCharacteristic("Saturation").setValue(this.targetSaturation.value)}),this.createDebouncedSubscription(this.targetColorTemperatureChanged,t=>{this.service.getCharacteristic("ColorTemperature").setValue(t)}),this.targetMode=this.service.values.On,this.loadTargetBrightness(),this.loadTargetHue(),this.loadTargetSaturation(),this.loadTargetColorTemperature()}handleAccessoryUpdate(){if(this.targetMode=this.service.values.On,this.targetBrightness&&(this.targetBrightness.value=this.service.getCharacteristic("Brightness")?.value),this.targetHue&&(this.targetHue.value=this.service.getCharacteristic("Hue")?.value),this.targetSaturation&&(this.targetSaturation.value=this.service.getCharacteristic("Saturation")?.value),this.targetColorTemperature){let t=this.service.getCharacteristic("ColorTemperature")?.value;this.targetColorTemperature.value=this.$colour.miredToKelvin(t),this.targetColorTemperature.mired=t}}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("On").setValue(this.targetMode),this.targetMode&&this.targetBrightness&&!this.targetBrightness.value&&(this.targetBrightness.value=this.service.getCharacteristic("Brightness").maxValue),this.blurTarget(n)}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}onHueStateChange(){this.targetHueChanged.next(this.targetHue.value);let t=document.querySelectorAll(".noUi-target")[this.sliderIndex-1];if(t){let n=this.targetHue.value;t.style.background=`linear-gradient(to right,
1
+ import{a as Hn}from"./chunk-CH55NUDR.js";import{s as Nn,t as ri}from"./chunk-TS4TGXTB.js";import{a as On}from"./chunk-ZLBX5GO7.js";import{s as Fe,t as ne}from"./chunk-DYMBIGE6.js";import{a as Ce}from"./chunk-GTDQP2AN.js";import{b as Dn}from"./chunk-AJ6G5D4H.js";import{C as le,a as An,b as In,c as Ln,e as de,l as pe,t as Fn,u as Vn,w as Pn}from"./chunk-JHCMYPZI.js";import{b as Ee}from"./chunk-5KS2DH7B.js";import{C as wn,D as w,F as Ne,I as En,g as Ue,i as Bn,j as Le}from"./chunk-L56VCSQ2.js";import{Aa as Cn,Ab as C,Ac as Lt,Bc as Tn,Cb as at,Cc as Mn,Db as tt,Dc as l,Eb as it,Ec as d,F as Ye,Fb as T,Fc as ue,Gb as s,Hb as c,I as fn,Ib as f,Jb as x,Kb as b,Kc as ae,Lb as F,Mb as xn,Mc as Li,Nb as Sn,Nc as E,R as Wt,Rb as G,Rc as Oe,Sb as Ze,Ua as Ke,W as vn,X as ii,Xb as S,Yb as Se,Za as o,Zb as u,_ as ni,aa as k,d as ee,e as cn,ea as te,ga as V,ha as P,hb as _n,hc as Xe,ia as I,ib as oi,ic as j,ja as N,jc as L,kc as p,lc as v,ma as be,mb as ie,mc as g,n as dn,nb as B,nc as $,oa as yt,oc as nt,pa as gn,pb as yn,pc as kn,qb as rt,qc as At,rc as Z,sa as mt,sb as ge,sc as Q,tc as J,vc as bn,w as pn,wc as we,x as mn,xa as hn,ya as ve,yb as y,yc as O,z as un,zb as h,zc as It}from"./chunk-UX5CFJ7O.js";import{a as Et,b as Dt,e as Da,g as Aa,h as se}from"./chunk-B4AJQJMI.js";var Rn=Da(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.Enums=st.Categories=st.Characteristics=st.Services=void 0;st.Services={"00000260-0000-1000-8000-0026BB765291":"AccessCode",AccessCode:"00000260-0000-1000-8000-0026BB765291","000000DA-0000-1000-8000-0026BB765291":"AccessControl",AccessControl:"000000DA-0000-1000-8000-0026BB765291","0000003E-0000-1000-8000-0026BB765291":"AccessoryInformation",AccessoryInformation:"0000003E-0000-1000-8000-0026BB765291","00000270-0000-1000-8000-0026BB765291":"AccessoryMetrics",AccessoryMetrics:"00000270-0000-1000-8000-0026BB765291","00000239-0000-1000-8000-0026BB765291":"AccessoryRuntimeInformation",AccessoryRuntimeInformation:"00000239-0000-1000-8000-0026BB765291","000000BB-0000-1000-8000-0026BB765291":"AirPurifier",AirPurifier:"000000BB-0000-1000-8000-0026BB765291","0000008D-0000-1000-8000-0026BB765291":"AirQualitySensor",AirQualitySensor:"0000008D-0000-1000-8000-0026BB765291","00000267-0000-1000-8000-0026BB765291":"AssetUpdate",AssetUpdate:"00000267-0000-1000-8000-0026BB765291","0000026A-0000-1000-8000-0026BB765291":"Assistant",Assistant:"0000026A-0000-1000-8000-0026BB765291","00000127-0000-1000-8000-0026BB765291":"AudioStreamManagement",AudioStreamManagement:"00000127-0000-1000-8000-0026BB765291","00000096-0000-1000-8000-0026BB765291":"Battery",Battery:"00000096-0000-1000-8000-0026BB765291","0000021A-0000-1000-8000-0026BB765291":"CameraOperatingMode",CameraOperatingMode:"0000021A-0000-1000-8000-0026BB765291","00000204-0000-1000-8000-0026BB765291":"CameraRecordingManagement",CameraRecordingManagement:"00000204-0000-1000-8000-0026BB765291","00000110-0000-1000-8000-0026BB765291":"CameraRTPStreamManagement",CameraRTPStreamManagement:"00000110-0000-1000-8000-0026BB765291","00000097-0000-1000-8000-0026BB765291":"CarbonDioxideSensor",CarbonDioxideSensor:"00000097-0000-1000-8000-0026BB765291","0000007F-0000-1000-8000-0026BB765291":"CarbonMonoxideSensor",CarbonMonoxideSensor:"0000007F-0000-1000-8000-0026BB765291","0000005A-0000-1000-8000-0026BB765291":"CloudRelay",CloudRelay:"0000005A-0000-1000-8000-0026BB765291","00000080-0000-1000-8000-0026BB765291":"ContactSensor",ContactSensor:"00000080-0000-1000-8000-0026BB765291","00000129-0000-1000-8000-0026BB765291":"DataStreamTransportManagement",DataStreamTransportManagement:"00000129-0000-1000-8000-0026BB765291","00000237-0000-1000-8000-0026BB765291":"Diagnostics",Diagnostics:"00000237-0000-1000-8000-0026BB765291","00000081-0000-1000-8000-0026BB765291":"Door",Door:"00000081-0000-1000-8000-0026BB765291","00000121-0000-1000-8000-0026BB765291":"Doorbell",Doorbell:"00000121-0000-1000-8000-0026BB765291","00000040-0000-1000-8000-0026BB765291":"Fan",Fan:"00000040-0000-1000-8000-0026BB765291","000000B7-0000-1000-8000-0026BB765291":"Fanv2",Fanv2:"000000B7-0000-1000-8000-0026BB765291","000000D7-0000-1000-8000-0026BB765291":"Faucet",Faucet:"000000D7-0000-1000-8000-0026BB765291","000000BA-0000-1000-8000-0026BB765291":"FilterMaintenance",FilterMaintenance:"000000BA-0000-1000-8000-0026BB765291","00000236-0000-1000-8000-0026BB765291":"FirmwareUpdate",FirmwareUpdate:"00000236-0000-1000-8000-0026BB765291","00000041-0000-1000-8000-0026BB765291":"GarageDoorOpener",GarageDoorOpener:"00000041-0000-1000-8000-0026BB765291","000000BC-0000-1000-8000-0026BB765291":"HeaterCooler",HeaterCooler:"000000BC-0000-1000-8000-0026BB765291","000000BD-0000-1000-8000-0026BB765291":"HumidifierDehumidifier",HumidifierDehumidifier:"000000BD-0000-1000-8000-0026BB765291","00000082-0000-1000-8000-0026BB765291":"HumiditySensor",HumiditySensor:"00000082-0000-1000-8000-0026BB765291","000000D9-0000-1000-8000-0026BB765291":"InputSource",InputSource:"000000D9-0000-1000-8000-0026BB765291","000000CF-0000-1000-8000-0026BB765291":"IrrigationSystem",IrrigationSystem:"000000CF-0000-1000-8000-0026BB765291","00000083-0000-1000-8000-0026BB765291":"LeakSensor",LeakSensor:"00000083-0000-1000-8000-0026BB765291","00000043-0000-1000-8000-0026BB765291":"Lightbulb",Lightbulb:"00000043-0000-1000-8000-0026BB765291","00000084-0000-1000-8000-0026BB765291":"LightSensor",LightSensor:"00000084-0000-1000-8000-0026BB765291","00000044-0000-1000-8000-0026BB765291":"LockManagement",LockManagement:"00000044-0000-1000-8000-0026BB765291","00000045-0000-1000-8000-0026BB765291":"LockMechanism",LockMechanism:"00000045-0000-1000-8000-0026BB765291","00000112-0000-1000-8000-0026BB765291":"Microphone",Microphone:"00000112-0000-1000-8000-0026BB765291","00000085-0000-1000-8000-0026BB765291":"MotionSensor",MotionSensor:"00000085-0000-1000-8000-0026BB765291","00000266-0000-1000-8000-0026BB765291":"NFCAccess",NFCAccess:"00000266-0000-1000-8000-0026BB765291","00000086-0000-1000-8000-0026BB765291":"OccupancySensor",OccupancySensor:"00000086-0000-1000-8000-0026BB765291","00000047-0000-1000-8000-0026BB765291":"Outlet",Outlet:"00000047-0000-1000-8000-0026BB765291","00000055-0000-1000-8000-0026BB765291":"Pairing",Pairing:"00000055-0000-1000-8000-0026BB765291","00000221-0000-1000-8000-0026BB765291":"PowerManagement",PowerManagement:"00000221-0000-1000-8000-0026BB765291","000000A2-0000-1000-8000-0026BB765291":"ProtocolInformation",ProtocolInformation:"000000A2-0000-1000-8000-0026BB765291","0000007E-0000-1000-8000-0026BB765291":"SecuritySystem",SecuritySystem:"0000007E-0000-1000-8000-0026BB765291","000000CC-0000-1000-8000-0026BB765291":"ServiceLabel",ServiceLabel:"000000CC-0000-1000-8000-0026BB765291","00000133-0000-1000-8000-0026BB765291":"Siri",Siri:"00000133-0000-1000-8000-0026BB765291","00000253-0000-1000-8000-0026BB765291":"SiriEndpoint",SiriEndpoint:"00000253-0000-1000-8000-0026BB765291","000000B9-0000-1000-8000-0026BB765291":"Slats",Slats:"000000B9-0000-1000-8000-0026BB765291","00000228-0000-1000-8000-0026BB765291":"SmartSpeaker",SmartSpeaker:"00000228-0000-1000-8000-0026BB765291","00000087-0000-1000-8000-0026BB765291":"SmokeSensor",SmokeSensor:"00000087-0000-1000-8000-0026BB765291","00000113-0000-1000-8000-0026BB765291":"Speaker",Speaker:"00000113-0000-1000-8000-0026BB765291","00000088-0000-1000-8000-0026BB765291":"StatefulProgrammableSwitch",StatefulProgrammableSwitch:"00000088-0000-1000-8000-0026BB765291","00000089-0000-1000-8000-0026BB765291":"StatelessProgrammableSwitch",StatelessProgrammableSwitch:"00000089-0000-1000-8000-0026BB765291","00000049-0000-1000-8000-0026BB765291":"Switch",Switch:"00000049-0000-1000-8000-0026BB765291","0000022E-0000-1000-8000-0026BB765291":"TapManagement",TapManagement:"0000022E-0000-1000-8000-0026BB765291","00000125-0000-1000-8000-0026BB765291":"TargetControl",TargetControl:"00000125-0000-1000-8000-0026BB765291","00000122-0000-1000-8000-0026BB765291":"TargetControlManagement",TargetControlManagement:"00000122-0000-1000-8000-0026BB765291","000000D8-0000-1000-8000-0026BB765291":"Television",Television:"000000D8-0000-1000-8000-0026BB765291",TelevisionSpeaker:"00000113-0000-1000-8000-0026BB765291","0000008A-0000-1000-8000-0026BB765291":"TemperatureSensor",TemperatureSensor:"0000008A-0000-1000-8000-0026BB765291","0000004A-0000-1000-8000-0026BB765291":"Thermostat",Thermostat:"0000004A-0000-1000-8000-0026BB765291","00000701-0000-1000-8000-0026BB765291":"ThreadTransport",ThreadTransport:"00000701-0000-1000-8000-0026BB765291","00000203-0000-1000-8000-0026BB765291":"TransferTransportManagement",TransferTransportManagement:"00000203-0000-1000-8000-0026BB765291","00000056-0000-1000-8000-0026BB765291":"Tunnel",Tunnel:"00000056-0000-1000-8000-0026BB765291","000000D0-0000-1000-8000-0026BB765291":"Valve",Valve:"000000D0-0000-1000-8000-0026BB765291","0000020A-0000-1000-8000-0026BB765291":"WiFiRouter",WiFiRouter:"0000020A-0000-1000-8000-0026BB765291","0000020F-0000-1000-8000-0026BB765291":"WiFiSatellite",WiFiSatellite:"0000020F-0000-1000-8000-0026BB765291","0000022A-0000-1000-8000-0026BB765291":"WiFiTransport",WiFiTransport:"0000022A-0000-1000-8000-0026BB765291","0000008B-0000-1000-8000-0026BB765291":"Window",Window:"0000008B-0000-1000-8000-0026BB765291","0000008C-0000-1000-8000-0026BB765291":"WindowCovering",WindowCovering:"0000008C-0000-1000-8000-0026BB765291"};st.Characteristics={"00000262-0000-1000-8000-0026BB765291":"AccessCodeControlPoint",AccessCodeControlPoint:"00000262-0000-1000-8000-0026BB765291","00000261-0000-1000-8000-0026BB765291":"AccessCodeSupportedConfiguration",AccessCodeSupportedConfiguration:"00000261-0000-1000-8000-0026BB765291","000000E5-0000-1000-8000-0026BB765291":"AccessControlLevel",AccessControlLevel:"000000E5-0000-1000-8000-0026BB765291","000000A6-0000-1000-8000-0026BB765291":"AccessoryFlags",AccessoryFlags:"000000A6-0000-1000-8000-0026BB765291","00000057-0000-1000-8000-0026BB765291":"AccessoryIdentifier",AccessoryIdentifier:"00000057-0000-1000-8000-0026BB765291","000000B0-0000-1000-8000-0026BB765291":"Active",Active:"000000B0-0000-1000-8000-0026BB765291","000000E7-0000-1000-8000-0026BB765291":"ActiveIdentifier",ActiveIdentifier:"000000E7-0000-1000-8000-0026BB765291","0000023B-0000-1000-8000-0026BB765291":"ActivityInterval",ActivityInterval:"0000023B-0000-1000-8000-0026BB765291","00000001-0000-1000-8000-0026BB765291":"AdministratorOnlyAccess",AdministratorOnlyAccess:"00000001-0000-1000-8000-0026BB765291","00000064-0000-1000-8000-0026BB765291":"AirParticulateDensity",AirParticulateDensity:"00000064-0000-1000-8000-0026BB765291","00000065-0000-1000-8000-0026BB765291":"AirParticulateSize",AirParticulateSize:"00000065-0000-1000-8000-0026BB765291","0000025B-0000-1000-8000-0026BB765291":"AirPlayEnable",AirPlayEnable:"0000025B-0000-1000-8000-0026BB765291","00000095-0000-1000-8000-0026BB765291":"AirQuality",AirQuality:"00000095-0000-1000-8000-0026BB765291","000000A4-0000-1000-8000-0026BB765291":"AppMatchingIdentifier",AppMatchingIdentifier:"000000A4-0000-1000-8000-0026BB765291","00000269-0000-1000-8000-0026BB765291":"AssetUpdateReadiness",AssetUpdateReadiness:"00000269-0000-1000-8000-0026BB765291","00000005-0000-1000-8000-0026BB765291":"AudioFeedback",AudioFeedback:"00000005-0000-1000-8000-0026BB765291","00000068-0000-1000-8000-0026BB765291":"BatteryLevel",BatteryLevel:"00000068-0000-1000-8000-0026BB765291","00000008-0000-1000-8000-0026BB765291":"Brightness",Brightness:"00000008-0000-1000-8000-0026BB765291","00000126-0000-1000-8000-0026BB765291":"ButtonEvent",ButtonEvent:"00000126-0000-1000-8000-0026BB765291","0000021D-0000-1000-8000-0026BB765291":"CameraOperatingModeIndicator",CameraOperatingModeIndicator:"0000021D-0000-1000-8000-0026BB765291","00000092-0000-1000-8000-0026BB765291":"CarbonDioxideDetected",CarbonDioxideDetected:"00000092-0000-1000-8000-0026BB765291","00000093-0000-1000-8000-0026BB765291":"CarbonDioxideLevel",CarbonDioxideLevel:"00000093-0000-1000-8000-0026BB765291","00000094-0000-1000-8000-0026BB765291":"CarbonDioxidePeakLevel",CarbonDioxidePeakLevel:"00000094-0000-1000-8000-0026BB765291","00000069-0000-1000-8000-0026BB765291":"CarbonMonoxideDetected",CarbonMonoxideDetected:"00000069-0000-1000-8000-0026BB765291","00000090-0000-1000-8000-0026BB765291":"CarbonMonoxideLevel",CarbonMonoxideLevel:"00000090-0000-1000-8000-0026BB765291","00000091-0000-1000-8000-0026BB765291":"CarbonMonoxidePeakLevel",CarbonMonoxidePeakLevel:"00000091-0000-1000-8000-0026BB765291","00000246-0000-1000-8000-0026BB765291":"CCAEnergyDetectThreshold",CCAEnergyDetectThreshold:"00000246-0000-1000-8000-0026BB765291","00000245-0000-1000-8000-0026BB765291":"CCASignalDetectThreshold",CCASignalDetectThreshold:"00000245-0000-1000-8000-0026BB765291","0000024B-0000-1000-8000-0026BB765291":"CharacteristicValueActiveTransitionCount",CharacteristicValueActiveTransitionCount:"0000024B-0000-1000-8000-0026BB765291","00000143-0000-1000-8000-0026BB765291":"CharacteristicValueTransitionControl",CharacteristicValueTransitionControl:"00000143-0000-1000-8000-0026BB765291","0000008F-0000-1000-8000-0026BB765291":"ChargingState",ChargingState:"0000008F-0000-1000-8000-0026BB765291","000000DD-0000-1000-8000-0026BB765291":"ClosedCaptions",ClosedCaptions:"000000DD-0000-1000-8000-0026BB765291","000000CE-0000-1000-8000-0026BB765291":"ColorTemperature",ColorTemperature:"000000CE-0000-1000-8000-0026BB765291","00000263-0000-1000-8000-0026BB765291":"ConfigurationState",ConfigurationState:"00000263-0000-1000-8000-0026BB765291","000000E3-0000-1000-8000-0026BB765291":"ConfiguredName",ConfiguredName:"000000E3-0000-1000-8000-0026BB765291","0000006A-0000-1000-8000-0026BB765291":"ContactSensorState",ContactSensorState:"0000006A-0000-1000-8000-0026BB765291","0000000D-0000-1000-8000-0026BB765291":"CoolingThresholdTemperature",CoolingThresholdTemperature:"0000000D-0000-1000-8000-0026BB765291","00000250-0000-1000-8000-0026BB765291":"CryptoHash",CryptoHash:"00000250-0000-1000-8000-0026BB765291","000000A9-0000-1000-8000-0026BB765291":"CurrentAirPurifierState",CurrentAirPurifierState:"000000A9-0000-1000-8000-0026BB765291","0000006B-0000-1000-8000-0026BB765291":"CurrentAmbientLightLevel",CurrentAmbientLightLevel:"0000006B-0000-1000-8000-0026BB765291","0000000E-0000-1000-8000-0026BB765291":"CurrentDoorState",CurrentDoorState:"0000000E-0000-1000-8000-0026BB765291","000000AF-0000-1000-8000-0026BB765291":"CurrentFanState",CurrentFanState:"000000AF-0000-1000-8000-0026BB765291","000000B1-0000-1000-8000-0026BB765291":"CurrentHeaterCoolerState",CurrentHeaterCoolerState:"000000B1-0000-1000-8000-0026BB765291","0000000F-0000-1000-8000-0026BB765291":"CurrentHeatingCoolingState",CurrentHeatingCoolingState:"0000000F-0000-1000-8000-0026BB765291","0000006C-0000-1000-8000-0026BB765291":"CurrentHorizontalTiltAngle",CurrentHorizontalTiltAngle:"0000006C-0000-1000-8000-0026BB765291","000000B3-0000-1000-8000-0026BB765291":"CurrentHumidifierDehumidifierState",CurrentHumidifierDehumidifierState:"000000B3-0000-1000-8000-0026BB765291","000000E0-0000-1000-8000-0026BB765291":"CurrentMediaState",CurrentMediaState:"000000E0-0000-1000-8000-0026BB765291","0000006D-0000-1000-8000-0026BB765291":"CurrentPosition",CurrentPosition:"0000006D-0000-1000-8000-0026BB765291","00000010-0000-1000-8000-0026BB765291":"CurrentRelativeHumidity",CurrentRelativeHumidity:"00000010-0000-1000-8000-0026BB765291","000000AA-0000-1000-8000-0026BB765291":"CurrentSlatState",CurrentSlatState:"000000AA-0000-1000-8000-0026BB765291","00000011-0000-1000-8000-0026BB765291":"CurrentTemperature",CurrentTemperature:"00000011-0000-1000-8000-0026BB765291","000000C1-0000-1000-8000-0026BB765291":"CurrentTiltAngle",CurrentTiltAngle:"000000C1-0000-1000-8000-0026BB765291","0000022B-0000-1000-8000-0026BB765291":"CurrentTransport",CurrentTransport:"0000022B-0000-1000-8000-0026BB765291","0000006E-0000-1000-8000-0026BB765291":"CurrentVerticalTiltAngle",CurrentVerticalTiltAngle:"0000006E-0000-1000-8000-0026BB765291","00000135-0000-1000-8000-0026BB765291":"CurrentVisibilityState",CurrentVisibilityState:"00000135-0000-1000-8000-0026BB765291","00000138-0000-1000-8000-0026BB765291":"DataStreamHAPTransport",DataStreamHAPTransport:"00000138-0000-1000-8000-0026BB765291","00000139-0000-1000-8000-0026BB765291":"DataStreamHAPTransportInterrupt",DataStreamHAPTransportInterrupt:"00000139-0000-1000-8000-0026BB765291","00000224-0000-1000-8000-0026BB765291":"DiagonalFieldOfView",DiagonalFieldOfView:"00000224-0000-1000-8000-0026BB765291","0000011D-0000-1000-8000-0026BB765291":"DigitalZoom",DigitalZoom:"0000011D-0000-1000-8000-0026BB765291","00000136-0000-1000-8000-0026BB765291":"DisplayOrder",DisplayOrder:"00000136-0000-1000-8000-0026BB765291","0000023D-0000-1000-8000-0026BB765291":"EventRetransmissionMaximum",EventRetransmissionMaximum:"0000023D-0000-1000-8000-0026BB765291","00000223-0000-1000-8000-0026BB765291":"EventSnapshotsActive",EventSnapshotsActive:"00000223-0000-1000-8000-0026BB765291","0000023E-0000-1000-8000-0026BB765291":"EventTransmissionCounters",EventTransmissionCounters:"0000023E-0000-1000-8000-0026BB765291","000000AC-0000-1000-8000-0026BB765291":"FilterChangeIndication",FilterChangeIndication:"000000AC-0000-1000-8000-0026BB765291","000000AB-0000-1000-8000-0026BB765291":"FilterLifeLevel",FilterLifeLevel:"000000AB-0000-1000-8000-0026BB765291","00000052-0000-1000-8000-0026BB765291":"FirmwareRevision",FirmwareRevision:"00000052-0000-1000-8000-0026BB765291","00000234-0000-1000-8000-0026BB765291":"FirmwareUpdateReadiness",FirmwareUpdateReadiness:"00000234-0000-1000-8000-0026BB765291","00000235-0000-1000-8000-0026BB765291":"FirmwareUpdateStatus",FirmwareUpdateStatus:"00000235-0000-1000-8000-0026BB765291","0000026C-0000-1000-8000-0026BB765291":"HardwareFinish",HardwareFinish:"0000026C-0000-1000-8000-0026BB765291","00000053-0000-1000-8000-0026BB765291":"HardwareRevision",HardwareRevision:"00000053-0000-1000-8000-0026BB765291","0000024A-0000-1000-8000-0026BB765291":"HeartBeat",HeartBeat:"0000024A-0000-1000-8000-0026BB765291","00000012-0000-1000-8000-0026BB765291":"HeatingThresholdTemperature",HeatingThresholdTemperature:"00000012-0000-1000-8000-0026BB765291","0000006F-0000-1000-8000-0026BB765291":"HoldPosition",HoldPosition:"0000006F-0000-1000-8000-0026BB765291","0000021B-0000-1000-8000-0026BB765291":"HomeKitCameraActive",HomeKitCameraActive:"0000021B-0000-1000-8000-0026BB765291","00000013-0000-1000-8000-0026BB765291":"Hue",Hue:"00000013-0000-1000-8000-0026BB765291","000000E6-0000-1000-8000-0026BB765291":"Identifier",Identifier:"000000E6-0000-1000-8000-0026BB765291","00000014-0000-1000-8000-0026BB765291":"Identify",Identify:"00000014-0000-1000-8000-0026BB765291","0000011F-0000-1000-8000-0026BB765291":"ImageMirroring",ImageMirroring:"0000011F-0000-1000-8000-0026BB765291","0000011E-0000-1000-8000-0026BB765291":"ImageRotation",ImageRotation:"0000011E-0000-1000-8000-0026BB765291","000000DC-0000-1000-8000-0026BB765291":"InputDeviceType",InputDeviceType:"000000DC-0000-1000-8000-0026BB765291","000000DB-0000-1000-8000-0026BB765291":"InputSourceType",InputSourceType:"000000DB-0000-1000-8000-0026BB765291","000000D2-0000-1000-8000-0026BB765291":"InUse",InUse:"000000D2-0000-1000-8000-0026BB765291","000000D6-0000-1000-8000-0026BB765291":"IsConfigured",IsConfigured:"000000D6-0000-1000-8000-0026BB765291","00000070-0000-1000-8000-0026BB765291":"LeakDetected",LeakDetected:"00000070-0000-1000-8000-0026BB765291","00000050-0000-1000-8000-0026BB765291":"ListPairings",ListPairings:"00000050-0000-1000-8000-0026BB765291","00000019-0000-1000-8000-0026BB765291":"LockControlPoint",LockControlPoint:"00000019-0000-1000-8000-0026BB765291","0000001D-0000-1000-8000-0026BB765291":"LockCurrentState",LockCurrentState:"0000001D-0000-1000-8000-0026BB765291","0000001C-0000-1000-8000-0026BB765291":"LockLastKnownAction",LockLastKnownAction:"0000001C-0000-1000-8000-0026BB765291","0000001A-0000-1000-8000-0026BB765291":"LockManagementAutoSecurityTimeout",LockManagementAutoSecurityTimeout:"0000001A-0000-1000-8000-0026BB765291","000000A7-0000-1000-8000-0026BB765291":"LockPhysicalControls",LockPhysicalControls:"000000A7-0000-1000-8000-0026BB765291","0000001E-0000-1000-8000-0026BB765291":"LockTargetState",LockTargetState:"0000001E-0000-1000-8000-0026BB765291","0000001F-0000-1000-8000-0026BB765291":"Logs",Logs:"0000001F-0000-1000-8000-0026BB765291","00000247-0000-1000-8000-0026BB765291":"MACRetransmissionMaximum",MACRetransmissionMaximum:"00000247-0000-1000-8000-0026BB765291","00000248-0000-1000-8000-0026BB765291":"MACTransmissionCounters",MACTransmissionCounters:"00000248-0000-1000-8000-0026BB765291","00000215-0000-1000-8000-0026BB765291":"ManagedNetworkEnable",ManagedNetworkEnable:"00000215-0000-1000-8000-0026BB765291","00000227-0000-1000-8000-0026BB765291":"ManuallyDisabled",ManuallyDisabled:"00000227-0000-1000-8000-0026BB765291","00000020-0000-1000-8000-0026BB765291":"Manufacturer",Manufacturer:"00000020-0000-1000-8000-0026BB765291","0000026D-0000-1000-8000-0026BB765291":"MatterFirmwareRevisionNumber",MatterFirmwareRevisionNumber:"0000026D-0000-1000-8000-0026BB765291","0000026E-0000-1000-8000-0026BB765291":"MatterFirmwareUpdateStatus",MatterFirmwareUpdateStatus:"0000026E-0000-1000-8000-0026BB765291","00000243-0000-1000-8000-0026BB765291":"MaximumTransmitPower",MaximumTransmitPower:"00000243-0000-1000-8000-0026BB765291","00000272-0000-1000-8000-0026BB765291":"MetricsBufferFullState",MetricsBufferFullState:"00000272-0000-1000-8000-0026BB765291","00000021-0000-1000-8000-0026BB765291":"Model",Model:"00000021-0000-1000-8000-0026BB765291","00000022-0000-1000-8000-0026BB765291":"MotionDetected",MotionDetected:"00000022-0000-1000-8000-0026BB765291","0000026B-0000-1000-8000-0026BB765291":"MultifunctionButton",MultifunctionButton:"0000026B-0000-1000-8000-0026BB765291","0000011A-0000-1000-8000-0026BB765291":"Mute",Mute:"0000011A-0000-1000-8000-0026BB765291","00000023-0000-1000-8000-0026BB765291":"Name",Name:"00000023-0000-1000-8000-0026BB765291","0000021F-0000-1000-8000-0026BB765291":"NetworkAccessViolationControl",NetworkAccessViolationControl:"0000021F-0000-1000-8000-0026BB765291","0000020C-0000-1000-8000-0026BB765291":"NetworkClientProfileControl",NetworkClientProfileControl:"0000020C-0000-1000-8000-0026BB765291","0000020D-0000-1000-8000-0026BB765291":"NetworkClientStatusControl",NetworkClientStatusControl:"0000020D-0000-1000-8000-0026BB765291","00000264-0000-1000-8000-0026BB765291":"NFCAccessControlPoint",NFCAccessControlPoint:"00000264-0000-1000-8000-0026BB765291","00000265-0000-1000-8000-0026BB765291":"NFCAccessSupportedConfiguration",NFCAccessSupportedConfiguration:"00000265-0000-1000-8000-0026BB765291","0000011B-0000-1000-8000-0026BB765291":"NightVision",NightVision:"0000011B-0000-1000-8000-0026BB765291","000000C4-0000-1000-8000-0026BB765291":"NitrogenDioxideDensity",NitrogenDioxideDensity:"000000C4-0000-1000-8000-0026BB765291","00000024-0000-1000-8000-0026BB765291":"ObstructionDetected",ObstructionDetected:"00000024-0000-1000-8000-0026BB765291","00000071-0000-1000-8000-0026BB765291":"OccupancyDetected",OccupancyDetected:"00000071-0000-1000-8000-0026BB765291","00000025-0000-1000-8000-0026BB765291":"On",On:"00000025-0000-1000-8000-0026BB765291","00000232-0000-1000-8000-0026BB765291":"OperatingStateResponse",OperatingStateResponse:"00000232-0000-1000-8000-0026BB765291","0000011C-0000-1000-8000-0026BB765291":"OpticalZoom",OpticalZoom:"0000011C-0000-1000-8000-0026BB765291","00000026-0000-1000-8000-0026BB765291":"OutletInUse",OutletInUse:"00000026-0000-1000-8000-0026BB765291","000000C3-0000-1000-8000-0026BB765291":"OzoneDensity",OzoneDensity:"000000C3-0000-1000-8000-0026BB765291","0000004F-0000-1000-8000-0026BB765291":"PairingFeatures",PairingFeatures:"0000004F-0000-1000-8000-0026BB765291","0000004C-0000-1000-8000-0026BB765291":"PairSetup",PairSetup:"0000004C-0000-1000-8000-0026BB765291","0000004E-0000-1000-8000-0026BB765291":"PairVerify",PairVerify:"0000004E-0000-1000-8000-0026BB765291","000000E4-0000-1000-8000-0026BB765291":"PasswordSetting",PasswordSetting:"000000E4-0000-1000-8000-0026BB765291","00000225-0000-1000-8000-0026BB765291":"PeriodicSnapshotsActive",PeriodicSnapshotsActive:"00000225-0000-1000-8000-0026BB765291","000000E2-0000-1000-8000-0026BB765291":"PictureMode",PictureMode:"000000E2-0000-1000-8000-0026BB765291","0000023C-0000-1000-8000-0026BB765291":"Ping",Ping:"0000023C-0000-1000-8000-0026BB765291","000000C7-0000-1000-8000-0026BB765291":"PM10Density",PM10Density:"000000C7-0000-1000-8000-0026BB765291","000000C6-0000-1000-8000-0026BB765291":"PM2_5Density",PM2_5Density:"000000C6-0000-1000-8000-0026BB765291","00000072-0000-1000-8000-0026BB765291":"PositionState",PositionState:"00000072-0000-1000-8000-0026BB765291","000000DF-0000-1000-8000-0026BB765291":"PowerModeSelection",PowerModeSelection:"000000DF-0000-1000-8000-0026BB765291","00000220-0000-1000-8000-0026BB765291":"ProductData",ProductData:"00000220-0000-1000-8000-0026BB765291","00000073-0000-1000-8000-0026BB765291":"ProgrammableSwitchEvent",ProgrammableSwitchEvent:"00000073-0000-1000-8000-0026BB765291","00000074-0000-1000-8000-0026BB765291":"ProgrammableSwitchOutputState",ProgrammableSwitchOutputState:"00000074-0000-1000-8000-0026BB765291","000000D1-0000-1000-8000-0026BB765291":"ProgramMode",ProgramMode:"000000D1-0000-1000-8000-0026BB765291","0000023F-0000-1000-8000-0026BB765291":"ReceivedSignalStrengthIndication",ReceivedSignalStrengthIndication:"0000023F-0000-1000-8000-0026BB765291","00000244-0000-1000-8000-0026BB765291":"ReceiverSensitivity",ReceiverSensitivity:"00000244-0000-1000-8000-0026BB765291","00000226-0000-1000-8000-0026BB765291":"RecordingAudioActive",RecordingAudioActive:"00000226-0000-1000-8000-0026BB765291","000000C9-0000-1000-8000-0026BB765291":"RelativeHumidityDehumidifierThreshold",RelativeHumidityDehumidifierThreshold:"000000C9-0000-1000-8000-0026BB765291","000000CA-0000-1000-8000-0026BB765291":"RelativeHumidityHumidifierThreshold",RelativeHumidityHumidifierThreshold:"000000CA-0000-1000-8000-0026BB765291","0000005E-0000-1000-8000-0026BB765291":"RelayControlPoint",RelayControlPoint:"0000005E-0000-1000-8000-0026BB765291","0000005B-0000-1000-8000-0026BB765291":"RelayEnabled",RelayEnabled:"0000005B-0000-1000-8000-0026BB765291","0000005C-0000-1000-8000-0026BB765291":"RelayState",RelayState:"0000005C-0000-1000-8000-0026BB765291","000000D4-0000-1000-8000-0026BB765291":"RemainingDuration",RemainingDuration:"000000D4-0000-1000-8000-0026BB765291","000000E1-0000-1000-8000-0026BB765291":"RemoteKey",RemoteKey:"000000E1-0000-1000-8000-0026BB765291","000000AD-0000-1000-8000-0026BB765291":"ResetFilterIndication",ResetFilterIndication:"000000AD-0000-1000-8000-0026BB765291","00000028-0000-1000-8000-0026BB765291":"RotationDirection",RotationDirection:"00000028-0000-1000-8000-0026BB765291","00000029-0000-1000-8000-0026BB765291":"RotationSpeed",RotationSpeed:"00000029-0000-1000-8000-0026BB765291","0000020E-0000-1000-8000-0026BB765291":"RouterStatus",RouterStatus:"0000020E-0000-1000-8000-0026BB765291","0000002F-0000-1000-8000-0026BB765291":"Saturation",Saturation:"0000002F-0000-1000-8000-0026BB765291","0000008E-0000-1000-8000-0026BB765291":"SecuritySystemAlarmType",SecuritySystemAlarmType:"0000008E-0000-1000-8000-0026BB765291","00000066-0000-1000-8000-0026BB765291":"SecuritySystemCurrentState",SecuritySystemCurrentState:"00000066-0000-1000-8000-0026BB765291","00000067-0000-1000-8000-0026BB765291":"SecuritySystemTargetState",SecuritySystemTargetState:"00000067-0000-1000-8000-0026BB765291","00000128-0000-1000-8000-0026BB765291":"SelectedAudioStreamConfiguration",SelectedAudioStreamConfiguration:"00000128-0000-1000-8000-0026BB765291","00000209-0000-1000-8000-0026BB765291":"SelectedCameraRecordingConfiguration",SelectedCameraRecordingConfiguration:"00000209-0000-1000-8000-0026BB765291","0000024D-0000-1000-8000-0026BB765291":"SelectedDiagnosticsModes",SelectedDiagnosticsModes:"0000024D-0000-1000-8000-0026BB765291","00000117-0000-1000-8000-0026BB765291":"SelectedRTPStreamConfiguration",SelectedRTPStreamConfiguration:"00000117-0000-1000-8000-0026BB765291","00000252-0000-1000-8000-0026BB765291":"SelectedSleepConfiguration",SelectedSleepConfiguration:"00000252-0000-1000-8000-0026BB765291","00000030-0000-1000-8000-0026BB765291":"SerialNumber",SerialNumber:"00000030-0000-1000-8000-0026BB765291","000000CB-0000-1000-8000-0026BB765291":"ServiceLabelIndex",ServiceLabelIndex:"000000CB-0000-1000-8000-0026BB765291","000000CD-0000-1000-8000-0026BB765291":"ServiceLabelNamespace",ServiceLabelNamespace:"000000CD-0000-1000-8000-0026BB765291","000000D3-0000-1000-8000-0026BB765291":"SetDuration",SetDuration:"000000D3-0000-1000-8000-0026BB765291","00000131-0000-1000-8000-0026BB765291":"SetupDataStreamTransport",SetupDataStreamTransport:"00000131-0000-1000-8000-0026BB765291","00000118-0000-1000-8000-0026BB765291":"SetupEndpoints",SetupEndpoints:"00000118-0000-1000-8000-0026BB765291","00000201-0000-1000-8000-0026BB765291":"SetupTransferTransport",SetupTransferTransport:"00000201-0000-1000-8000-0026BB765291","00000241-0000-1000-8000-0026BB765291":"SignalToNoiseRatio",SignalToNoiseRatio:"00000241-0000-1000-8000-0026BB765291","00000255-0000-1000-8000-0026BB765291":"SiriEnable",SiriEnable:"00000255-0000-1000-8000-0026BB765291","00000254-0000-1000-8000-0026BB765291":"SiriEndpointSessionStatus",SiriEndpointSessionStatus:"00000254-0000-1000-8000-0026BB765291","0000025A-0000-1000-8000-0026BB765291":"SiriEngineVersion",SiriEngineVersion:"0000025A-0000-1000-8000-0026BB765291","00000132-0000-1000-8000-0026BB765291":"SiriInputType",SiriInputType:"00000132-0000-1000-8000-0026BB765291","00000258-0000-1000-8000-0026BB765291":"SiriLightOnUse",SiriLightOnUse:"00000258-0000-1000-8000-0026BB765291","00000256-0000-1000-8000-0026BB765291":"SiriListening",SiriListening:"00000256-0000-1000-8000-0026BB765291","00000257-0000-1000-8000-0026BB765291":"SiriTouchToUse",SiriTouchToUse:"00000257-0000-1000-8000-0026BB765291","000000C0-0000-1000-8000-0026BB765291":"SlatType",SlatType:"000000C0-0000-1000-8000-0026BB765291","000000E8-0000-1000-8000-0026BB765291":"SleepDiscoveryMode",SleepDiscoveryMode:"000000E8-0000-1000-8000-0026BB765291","0000023A-0000-1000-8000-0026BB765291":"SleepInterval",SleepInterval:"0000023A-0000-1000-8000-0026BB765291","00000076-0000-1000-8000-0026BB765291":"SmokeDetected",SmokeDetected:"00000076-0000-1000-8000-0026BB765291","00000054-0000-1000-8000-0026BB765291":"SoftwareRevision",SoftwareRevision:"00000054-0000-1000-8000-0026BB765291","00000249-0000-1000-8000-0026BB765291":"StagedFirmwareVersion",StagedFirmwareVersion:"00000249-0000-1000-8000-0026BB765291","00000075-0000-1000-8000-0026BB765291":"StatusActive",StatusActive:"00000075-0000-1000-8000-0026BB765291","00000077-0000-1000-8000-0026BB765291":"StatusFault",StatusFault:"00000077-0000-1000-8000-0026BB765291","00000078-0000-1000-8000-0026BB765291":"StatusJammed",StatusJammed:"00000078-0000-1000-8000-0026BB765291","00000079-0000-1000-8000-0026BB765291":"StatusLowBattery",StatusLowBattery:"00000079-0000-1000-8000-0026BB765291","0000007A-0000-1000-8000-0026BB765291":"StatusTampered",StatusTampered:"0000007A-0000-1000-8000-0026BB765291","00000120-0000-1000-8000-0026BB765291":"StreamingStatus",StreamingStatus:"00000120-0000-1000-8000-0026BB765291","000000C5-0000-1000-8000-0026BB765291":"SulphurDioxideDensity",SulphurDioxideDensity:"000000C5-0000-1000-8000-0026BB765291","00000268-0000-1000-8000-0026BB765291":"SupportedAssetTypes",SupportedAssetTypes:"00000268-0000-1000-8000-0026BB765291","00000207-0000-1000-8000-0026BB765291":"SupportedAudioRecordingConfiguration",SupportedAudioRecordingConfiguration:"00000207-0000-1000-8000-0026BB765291","00000115-0000-1000-8000-0026BB765291":"SupportedAudioStreamConfiguration",SupportedAudioStreamConfiguration:"00000115-0000-1000-8000-0026BB765291","00000205-0000-1000-8000-0026BB765291":"SupportedCameraRecordingConfiguration",SupportedCameraRecordingConfiguration:"00000205-0000-1000-8000-0026BB765291","00000144-0000-1000-8000-0026BB765291":"SupportedCharacteristicValueTransitionConfiguration",SupportedCharacteristicValueTransitionConfiguration:"00000144-0000-1000-8000-0026BB765291","00000130-0000-1000-8000-0026BB765291":"SupportedDataStreamTransportConfiguration",SupportedDataStreamTransportConfiguration:"00000130-0000-1000-8000-0026BB765291","0000024C-0000-1000-8000-0026BB765291":"SupportedDiagnosticsModes",SupportedDiagnosticsModes:"0000024C-0000-1000-8000-0026BB765291","00000238-0000-1000-8000-0026BB765291":"SupportedDiagnosticsSnapshot",SupportedDiagnosticsSnapshot:"00000238-0000-1000-8000-0026BB765291","00000233-0000-1000-8000-0026BB765291":"SupportedFirmwareUpdateConfiguration",SupportedFirmwareUpdateConfiguration:"00000233-0000-1000-8000-0026BB765291","00000271-0000-1000-8000-0026BB765291":"SupportedMetrics",SupportedMetrics:"00000271-0000-1000-8000-0026BB765291","00000210-0000-1000-8000-0026BB765291":"SupportedRouterConfiguration",SupportedRouterConfiguration:"00000210-0000-1000-8000-0026BB765291","00000116-0000-1000-8000-0026BB765291":"SupportedRTPConfiguration",SupportedRTPConfiguration:"00000116-0000-1000-8000-0026BB765291","00000251-0000-1000-8000-0026BB765291":"SupportedSleepConfiguration",SupportedSleepConfiguration:"00000251-0000-1000-8000-0026BB765291","00000202-0000-1000-8000-0026BB765291":"SupportedTransferTransportConfiguration",SupportedTransferTransportConfiguration:"00000202-0000-1000-8000-0026BB765291","00000206-0000-1000-8000-0026BB765291":"SupportedVideoRecordingConfiguration",SupportedVideoRecordingConfiguration:"00000206-0000-1000-8000-0026BB765291","00000114-0000-1000-8000-0026BB765291":"SupportedVideoStreamConfiguration",SupportedVideoStreamConfiguration:"00000114-0000-1000-8000-0026BB765291","000000B6-0000-1000-8000-0026BB765291":"SwingMode",SwingMode:"000000B6-0000-1000-8000-0026BB765291","0000022F-0000-1000-8000-0026BB765291":"TapType",TapType:"0000022F-0000-1000-8000-0026BB765291","000000A8-0000-1000-8000-0026BB765291":"TargetAirPurifierState",TargetAirPurifierState:"000000A8-0000-1000-8000-0026BB765291","00000124-0000-1000-8000-0026BB765291":"TargetControlList",TargetControlList:"00000124-0000-1000-8000-0026BB765291","00000123-0000-1000-8000-0026BB765291":"TargetControlSupportedConfiguration",TargetControlSupportedConfiguration:"00000123-0000-1000-8000-0026BB765291","00000032-0000-1000-8000-0026BB765291":"TargetDoorState",TargetDoorState:"00000032-0000-1000-8000-0026BB765291","000000BF-0000-1000-8000-0026BB765291":"TargetFanState",TargetFanState:"000000BF-0000-1000-8000-0026BB765291","000000B2-0000-1000-8000-0026BB765291":"TargetHeaterCoolerState",TargetHeaterCoolerState:"000000B2-0000-1000-8000-0026BB765291","00000033-0000-1000-8000-0026BB765291":"TargetHeatingCoolingState",TargetHeatingCoolingState:"00000033-0000-1000-8000-0026BB765291","0000007B-0000-1000-8000-0026BB765291":"TargetHorizontalTiltAngle",TargetHorizontalTiltAngle:"0000007B-0000-1000-8000-0026BB765291","000000B4-0000-1000-8000-0026BB765291":"TargetHumidifierDehumidifierState",TargetHumidifierDehumidifierState:"000000B4-0000-1000-8000-0026BB765291","00000137-0000-1000-8000-0026BB765291":"TargetMediaState",TargetMediaState:"00000137-0000-1000-8000-0026BB765291","0000007C-0000-1000-8000-0026BB765291":"TargetPosition",TargetPosition:"0000007C-0000-1000-8000-0026BB765291","00000034-0000-1000-8000-0026BB765291":"TargetRelativeHumidity",TargetRelativeHumidity:"00000034-0000-1000-8000-0026BB765291","00000035-0000-1000-8000-0026BB765291":"TargetTemperature",TargetTemperature:"00000035-0000-1000-8000-0026BB765291","000000C2-0000-1000-8000-0026BB765291":"TargetTiltAngle",TargetTiltAngle:"000000C2-0000-1000-8000-0026BB765291","0000007D-0000-1000-8000-0026BB765291":"TargetVerticalTiltAngle",TargetVerticalTiltAngle:"0000007D-0000-1000-8000-0026BB765291","00000134-0000-1000-8000-0026BB765291":"TargetVisibilityState",TargetVisibilityState:"00000134-0000-1000-8000-0026BB765291","00000036-0000-1000-8000-0026BB765291":"TemperatureDisplayUnits",TemperatureDisplayUnits:"00000036-0000-1000-8000-0026BB765291","0000021C-0000-1000-8000-0026BB765291":"ThirdPartyCameraActive",ThirdPartyCameraActive:"0000021C-0000-1000-8000-0026BB765291","00000704-0000-1000-8000-0026BB765291":"ThreadControlPoint",ThreadControlPoint:"00000704-0000-1000-8000-0026BB765291","00000702-0000-1000-8000-0026BB765291":"ThreadNodeCapabilities",ThreadNodeCapabilities:"00000702-0000-1000-8000-0026BB765291","00000706-0000-1000-8000-0026BB765291":"ThreadOpenThreadVersion",ThreadOpenThreadVersion:"00000706-0000-1000-8000-0026BB765291","00000703-0000-1000-8000-0026BB765291":"ThreadStatus",ThreadStatus:"00000703-0000-1000-8000-0026BB765291","00000231-0000-1000-8000-0026BB765291":"Token",Token:"00000231-0000-1000-8000-0026BB765291","00000242-0000-1000-8000-0026BB765291":"TransmitPower",TransmitPower:"00000242-0000-1000-8000-0026BB765291","00000061-0000-1000-8000-0026BB765291":"TunnelConnectionTimeout",TunnelConnectionTimeout:"00000061-0000-1000-8000-0026BB765291","00000060-0000-1000-8000-0026BB765291":"TunneledAccessoryAdvertising",TunneledAccessoryAdvertising:"00000060-0000-1000-8000-0026BB765291","00000059-0000-1000-8000-0026BB765291":"TunneledAccessoryConnected",TunneledAccessoryConnected:"00000059-0000-1000-8000-0026BB765291","00000058-0000-1000-8000-0026BB765291":"TunneledAccessoryStateNumber",TunneledAccessoryStateNumber:"00000058-0000-1000-8000-0026BB765291","000000D5-0000-1000-8000-0026BB765291":"ValveType",ValveType:"000000D5-0000-1000-8000-0026BB765291","00000037-0000-1000-8000-0026BB765291":"Version",Version:"00000037-0000-1000-8000-0026BB765291","00000229-0000-1000-8000-0026BB765291":"VideoAnalysisActive",VideoAnalysisActive:"00000229-0000-1000-8000-0026BB765291","000000C8-0000-1000-8000-0026BB765291":"VOCDensity",VOCDensity:"000000C8-0000-1000-8000-0026BB765291","00000119-0000-1000-8000-0026BB765291":"Volume",Volume:"00000119-0000-1000-8000-0026BB765291","000000E9-0000-1000-8000-0026BB765291":"VolumeControlType",VolumeControlType:"000000E9-0000-1000-8000-0026BB765291","000000EA-0000-1000-8000-0026BB765291":"VolumeSelector",VolumeSelector:"000000EA-0000-1000-8000-0026BB765291","00000222-0000-1000-8000-0026BB765291":"WakeConfiguration",WakeConfiguration:"00000222-0000-1000-8000-0026BB765291","00000211-0000-1000-8000-0026BB765291":"WANConfigurationList",WANConfigurationList:"00000211-0000-1000-8000-0026BB765291","00000212-0000-1000-8000-0026BB765291":"WANStatusList",WANStatusList:"00000212-0000-1000-8000-0026BB765291","000000B5-0000-1000-8000-0026BB765291":"WaterLevel",WaterLevel:"000000B5-0000-1000-8000-0026BB765291","0000022C-0000-1000-8000-0026BB765291":"WiFiCapabilities",WiFiCapabilities:"0000022C-0000-1000-8000-0026BB765291","0000022D-0000-1000-8000-0026BB765291":"WiFiConfigurationControl",WiFiConfigurationControl:"0000022D-0000-1000-8000-0026BB765291","0000021E-0000-1000-8000-0026BB765291":"WiFiSatelliteStatus",WiFiSatelliteStatus:"0000021E-0000-1000-8000-0026BB765291"};st.Categories={OTHER:1,BRIDGE:2,FAN:3,GARAGE_DOOR_OPENER:4,LIGHTBULB:5,DOOR_LOCK:6,OUTLET:7,SWITCH:8,THERMOSTAT:9,SENSOR:10,ALARM_SYSTEM:11,SECURITY_SYSTEM:11,DOOR:12,WINDOW:13,WINDOW_COVERING:14,PROGRAMMABLE_SWITCH:15,RANGE_EXTENDER:16,CAMERA:17,IP_CAMERA:17,VIDEO_DOORBELL:18,AIR_PURIFIER:19,AIR_HEATER:20,AIR_CONDITIONER:21,AIR_HUMIDIFIER:22,AIR_DEHUMIDIFIER:23,APPLE_TV:24,HOMEPOD:25,SPEAKER:26,AIRPORT:27,SPRINKLER:28,FAUCET:29,SHOWER_HEAD:30,TELEVISION:31,TARGET_CONTROLLER:32,ROUTER:33,AUDIO_RECEIVER:34,TV_SET_TOP_BOX:35,TV_STREAMING_STICK:36};st.Enums={AccessoryFlags:{1:"REQUIRES_ADDITIONAL_SETUP_BIT_MASK"},Active:{0:"INACTIVE",1:"ACTIVE"},AirParticulateSize:{0:"_2_5_M",1:"_10_M"},AirQuality:{0:"UNKNOWN",1:"EXCELLENT",2:"GOOD",3:"FAIR",4:"INFERIOR",5:"POOR"},CameraOperatingModeIndicator:{0:"DISABLE",1:"ENABLE"},CarbonDioxideDetected:{0:"CO2_LEVELS_NORMAL",1:"CO2_LEVELS_ABNORMAL"},CarbonMonoxideDetected:{0:"CO_LEVELS_NORMAL",1:"CO_LEVELS_ABNORMAL"},ChargingState:{0:"NOT_CHARGING",1:"CHARGING",2:"NOT_CHARGEABLE"},ClosedCaptions:{0:"DISABLED",1:"ENABLED"},ContactSensorState:{0:"CONTACT_DETECTED",1:"CONTACT_NOT_DETECTED"},CurrentAirPurifierState:{0:"INACTIVE",1:"IDLE",2:"PURIFYING_AIR"},CurrentDoorState:{0:"OPEN",1:"CLOSED",2:"OPENING",3:"CLOSING",4:"STOPPED"},CurrentFanState:{0:"INACTIVE",1:"IDLE",2:"BLOWING_AIR"},CurrentHeaterCoolerState:{0:"INACTIVE",1:"IDLE",2:"HEATING",3:"COOLING"},CurrentHeatingCoolingState:{0:"OFF",1:"HEAT",2:"COOL"},CurrentHumidifierDehumidifierState:{0:"INACTIVE",1:"IDLE",2:"HUMIDIFYING",3:"DEHUMIDIFYING"},CurrentMediaState:{0:"PLAY",1:"PAUSE",2:"STOP",4:"LOADING",5:"INTERRUPTED"},CurrentSlatState:{0:"FIXED",1:"JAMMED",2:"SWINGING"},CurrentVisibilityState:{0:"SHOWN",1:"HIDDEN"},EventSnapshotsActive:{0:"DISABLE",1:"ENABLE"},FilterChangeIndication:{0:"FILTER_OK",1:"CHANGE_FILTER"},HomeKitCameraActive:{0:"OFF",1:"ON"},InputDeviceType:{0:"OTHER",1:"TV",2:"RECORDING",3:"TUNER",4:"PLAYBACK",5:"AUDIO_SYSTEM"},InputSourceType:{0:"OTHER",1:"HOME_SCREEN",2:"TUNER",3:"HDMI",4:"COMPOSITE_VIDEO",5:"S_VIDEO",6:"COMPONENT_VIDEO",7:"DVI",8:"AIRPLAY",9:"USB",10:"APPLICATION"},InUse:{0:"NOT_IN_USE",1:"IN_USE"},IsConfigured:{0:"NOT_CONFIGURED",1:"CONFIGURED"},LeakDetected:{0:"LEAK_NOT_DETECTED",1:"LEAK_DETECTED"},LockCurrentState:{0:"UNSECURED",1:"SECURED",2:"JAMMED",3:"UNKNOWN"},LockLastKnownAction:{0:"SECURED_PHYSICALLY_INTERIOR",1:"UNSECURED_PHYSICALLY_INTERIOR",2:"SECURED_PHYSICALLY_EXTERIOR",3:"UNSECURED_PHYSICALLY_EXTERIOR",4:"SECURED_BY_KEYPAD",5:"UNSECURED_BY_KEYPAD",6:"SECURED_REMOTELY",7:"UNSECURED_REMOTELY",8:"SECURED_BY_AUTO_SECURE_TIMEOUT",9:"SECURED_PHYSICALLY",10:"UNSECURED_PHYSICALLY"},LockPhysicalControls:{0:"CONTROL_LOCK_DISABLED",1:"CONTROL_LOCK_ENABLED"},LockTargetState:{0:"UNSECURED",1:"SECURED"},ManagedNetworkEnable:{0:"DISABLED",1:"ENABLED"},ManuallyDisabled:{0:"ENABLED",1:"DISABLED"},OccupancyDetected:{0:"OCCUPANCY_NOT_DETECTED",1:"OCCUPANCY_DETECTED"},PeriodicSnapshotsActive:{0:"DISABLE",1:"ENABLE"},PictureMode:{0:"OTHER",1:"STANDARD",2:"CALIBRATED",3:"CALIBRATED_DARK",4:"VIVID",5:"GAME",6:"COMPUTER",7:"CUSTOM"},PositionState:{0:"DECREASING",1:"INCREASING",2:"STOPPED"},PowerModeSelection:{0:"SHOW",1:"HIDE"},ProgrammableSwitchEvent:{0:"SINGLE_PRESS",1:"DOUBLE_PRESS",2:"LONG_PRESS"},ProgramMode:{0:"NO_PROGRAM_SCHEDULED",1:"PROGRAM_SCHEDULED",2:"PROGRAM_SCHEDULED_MANUAL_MODE"},RecordingAudioActive:{0:"DISABLE",1:"ENABLE"},RemoteKey:{0:"REWIND",1:"FAST_FORWARD",2:"NEXT_TRACK",3:"PREVIOUS_TRACK",4:"ARROW_UP",5:"ARROW_DOWN",6:"ARROW_LEFT",7:"ARROW_RIGHT",8:"SELECT",9:"BACK",10:"EXIT",11:"PLAY_PAUSE",15:"INFORMATION"},RotationDirection:{0:"CLOCKWISE",1:"COUNTER_CLOCKWISE"},RouterStatus:{0:"READY",1:"NOT_READY"},SecuritySystemAlarmType:{0:"NO_ALARM",1:"UNKNOWN"},SecuritySystemCurrentState:{0:"STAY_ARM",1:"AWAY_ARM",2:"NIGHT_ARM",3:"DISARMED",4:"ALARM_TRIGGERED"},SecuritySystemTargetState:{0:"STAY_ARM",1:"AWAY_ARM",2:"NIGHT_ARM",3:"DISARM"},ServiceLabelNamespace:{0:"DOTS",1:"ARABIC_NUMERALS"},SiriInputType:{0:"PUSH_BUTTON_TRIGGERED_APPLE_TV"},SlatType:{0:"HORIZONTAL",1:"VERTICAL"},SleepDiscoveryMode:{0:"NOT_DISCOVERABLE",1:"ALWAYS_DISCOVERABLE"},SmokeDetected:{0:"SMOKE_NOT_DETECTED",1:"SMOKE_DETECTED"},StatusFault:{0:"NO_FAULT",1:"GENERAL_FAULT"},StatusJammed:{0:"NOT_JAMMED",1:"JAMMED"},StatusLowBattery:{0:"BATTERY_LEVEL_NORMAL",1:"BATTERY_LEVEL_LOW"},StatusTampered:{0:"NOT_TAMPERED",1:"TAMPERED"},SwingMode:{0:"SWING_DISABLED",1:"SWING_ENABLED"},TargetAirPurifierState:{0:"MANUAL",1:"AUTO"},TargetDoorState:{0:"OPEN",1:"CLOSED"},TargetFanState:{0:"MANUAL",1:"AUTO"},TargetHeaterCoolerState:{0:"AUTO",1:"HEAT",2:"COOL"},TargetHeatingCoolingState:{0:"OFF",1:"HEAT",2:"COOL",3:"AUTO"},TargetHumidifierDehumidifierState:{0:"HUMIDIFIER_OR_DEHUMIDIFIER",1:"HUMIDIFIER",2:"DEHUMIDIFIER"},TargetMediaState:{0:"PLAY",1:"PAUSE",2:"STOP"},TargetVisibilityState:{0:"SHOWN",1:"HIDDEN"},TemperatureDisplayUnits:{0:"CELSIUS",1:"FAHRENHEIT"},ThirdPartyCameraActive:{0:"OFF",1:"ON"},ValveType:{0:"GENERIC_VALVE",1:"IRRIGATION",2:"SHOWER_HEAD",3:"WATER_FAUCET"},VolumeControlType:{0:"NONE",1:"RELATIVE",2:"RELATIVE_WITH_CURRENT",3:"ABSOLUTE"},VolumeSelector:{0:"INCREMENT",1:"DECREMENT"},WiFiSatelliteStatus:{0:"UNKNOWN",1:"CONNECTED",2:"NOT_CONNECTED"}}});var Un=Aa(Rn(),1);var ut=(()=>{class e{transform(t){if(typeof t!="number")return t;let n=1e6/t,i=Math.round(t),a=Math.round(n);return`${i}M (${a}K)`}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"convertMired",type:e,pure:!0})}return e})();var He=(()=>{class e{$settings=k(Ee);transform(t,n=this.$settings.env.temperatureUnits){return n==="f"?Math.round((t*1.8+32)*10)/10:Math.round(t*10)/10}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"convertTemp",type:e,pure:!0})}return e})();var $n=(()=>{class e{transform(t){return typeof t!="string"?t:t.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").toLowerCase().replace(/\b\w/g,n=>n.toUpperCase()).trim()}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"prettify",type:e,pure:!0})}return e})();var jn=(()=>{class e{transform(t){return typeof t!="string"||!t?t:`accessories.core.${t.replace(/^([A-Z])/,i=>i.toLowerCase()).replace(/([A-Z])/g,i=>`_${i.toLowerCase()}`)}`}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=rt({name:"serviceToTranslationString",type:e,pure:!0})}return e})();var Ia=(e,r)=>r.name,La=(e,r)=>r.key;function Fa(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" (",d(1,1,"settings.display.menu_default"),") ")}function Va(e,r){if(e&1&&(s(0,"option",28),p(1),l(2,"serviceToTranslationString"),l(3,"translate"),h(4,Fa,2,3),c()),e&2){let t=r.$implicit,n=u(2);T("value",t),o(),g(" ",d(3,5,d(2,3,t))," "),o(3),C(n.isDefaultType(t)?4:-1)}}function Pa(e,r){if(e&1){let t=G();s(0,"li",8)(1,"label",26),p(2),l(3,"translate"),c(),s(4,"div",10)(5,"select",27),J("ngModelChange",function(i){V(t);let a=u();return Q(a.localService.customType,i)||(a.localService.customType=i),P(i)}),tt(6,Va,5,7,"option",28,at),c()()()}if(e&2){let t=u();o(2),v(d(3,2,"accessories.custom_type")),o(3),Z("ngModel",t.localService.customType),o(),it(t.customTypeList.sort())}}function Oa(e,r){if(e&1){let t=G();s(0,"li",12)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"div",14)(5,"input",29),l(6,"translate"),J("ngModelChange",function(i){V(t);let a=u();return Q(a.localService.onDashboard,i)||(a.localService.onDashboard=i),P(i)}),c(),f(7,"label",30),c()()}if(e&2){let t=u();o(2),v(d(3,3,"accessories.show_on_dashboard")),o(3),Z("ngModel",t.localService.onDashboard),y("aria-label",d(6,5,"accessories.show_on_dashboard"))}}function Na(e,r){if(e&1&&(s(0,"small"),p(1),c()),e&2){let t=u().$implicit,n=u(3);o(),v(n.JSON.stringify(t.value,null,2))}}function Ha(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value," ")}}function Ra(e,r){if(e&1&&(s(0,"li",32)(1,"span",33),p(2),l(3,"prettify"),c(),s(4,"span",21),h(5,Na,2,1,"small")(6,Ha,1,1),c()()),e&2){let t=r.$implicit;o(2),v(d(3,2,t.key)),o(3),C(typeof t.value=="object"?5:6)}}function $a(e,r){if(e&1&&(s(0,"li",18)(1,"span",31),p(2),l(3,"prettify"),c()(),tt(4,Ra,7,4,"li",32,La),l(6,"keyvalue")),e&2){let t=r.$implicit;o(2),v(d(3,1,t.name)),o(2),it(d(6,3,t.attributes))}}function ja(e,r){if(e&1&&(s(0,"li",18)(1,"h6",19),p(2),l(3,"translate"),c()(),tt(4,$a,7,5,null,null,Ia)),e&2){let t=u();o(2),v(d(3,1,"accessories.service_info")),o(2),it(t.clusterInfo)}}function Ua(e,r){if(e&1){let t=G();s(0,"span",38),S("click",function(){V(t);let i=u().$implicit,a=u(2);return P(a.toggleDetailsVisibility(i))}),p(1),c()}if(e&2){let t=u().$implicit,n=u(2);y("aria-expanded",n.isDetailsVisible[t.uuid]),o(),v(t.description)}}function Wa(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.description," ")}}function Ga(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Step: ",t.minStep)}}function qa(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Min: ",t.minValue)}}function za(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Max: ",t.maxValue)}}function Ya(e,r){e&1&&p(0," \xB7 ")}function Ka(e,r){if(e&1&&(p(0),h(1,Ya,1,0)),e&2){let t=r.$implicit,n=r.$index,i=r.$count;g(" ",t," "),o(),C(n!==i-1?1:-1)}}function Za(e,r){if(e&1&&(s(0,"div"),p(1," Valid: "),tt(2,Ka,2,2,null,null,at),c()),e&2){let t=u(2).$implicit;o(2),it(t.validValues)}}function Qa(e,r){if(e&1&&(s(0,"div",35),h(1,Ga,2,1,"div"),h(2,qa,2,1,"div"),h(3,za,2,1,"div"),h(4,Za,4,0,"div"),c()),e&2){let t=u().$implicit;o(),C("minStep"in t?1:-1),o(),C("minValue"in t?2:-1),o(),C("maxValue"in t?3:-1),o(),C("validValues"in t?4:-1)}}function Ja(e,r){e&1&&p(0," Value: ")}function Xa(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function e0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function t0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function i0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function n0(e,r){if(e&1&&h(0,t0,2,3)(1,i0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function o0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function r0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function a0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function s0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function l0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function c0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function d0(e,r){if(e&1&&h(0,l0,2,3)(1,c0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function p0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function m0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function u0(e,r){if(e&1&&(s(0,"li",20)(1,"span"),h(2,Ua,2,2,"span",34)(3,Wa,1,1),h(4,Qa,5,4,"div",35),s(5,"div",36),h(6,Ja,1,0),h(7,Xa,1,1)(8,e0,2,3)(9,n0,2,1),h(10,o0,2,3)(11,r0,2,3),c()(),s(12,"span",37),h(13,a0,1,1)(14,s0,2,3)(15,d0,2,1),h(16,p0,2,3)(17,m0,2,3),c()()),e&2){let t,n,i=r.$implicit,a=u(2);o(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),o(2),C(a.isDetailsVisible[i.uuid]?4:-1),o(2),C(a.isDetailsVisible[i.uuid]?6:-1),o(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?10:i.format==="bool"?11:-1),o(3),C((n=i.unit)==="percentage"?13:n==="celsius"?14:15),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function f0(e,r){if(e&1&&(s(0,"li",18)(1,"h6",19),p(2),l(3,"translate"),c()(),s(4,"li",20)(5,"span",13),p(6),l(7,"translate"),c(),s(8,"span",21),p(9),c()(),s(10,"li",20)(11,"span",13),p(12),l(13,"translate"),c(),s(14,"span",21),p(15),c()(),tt(16,u0,18,7,"li",20,at)),e&2){let t=u();o(2),v(d(3,5,"accessories.service_info")),o(4),v(d(7,7,"accessories.service")),o(3),v(t.localService.humanType),o(3),v(d(13,9,"accessories.name")),o(3),v(t.localService.serviceName),o(),it(t.localService.serviceCharacteristics)}}function v0(e,r){if(e&1){let t=G();s(0,"span",38),S("click",function(){V(t);let i=u().$implicit,a=u(2);return P(a.toggleDetailsVisibility(i))}),p(1),c()}if(e&2){let t=u().$implicit,n=u(2);y("aria-expanded",n.isDetailsVisible[t.uuid]),o(),v(t.description)}}function g0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.description," ")}}function h0(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Step: ",t.minStep)}}function C0(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Min: ",t.minValue)}}function _0(e,r){if(e&1&&(s(0,"div"),p(1),c()),e&2){let t=u(2).$implicit;o(),g("Max: ",t.maxValue)}}function y0(e,r){e&1&&p(0," \xB7 ")}function x0(e,r){if(e&1&&(p(0),h(1,y0,1,0)),e&2){let t=r.$implicit,n=r.$index,i=r.$count;g(" ",t," "),o(),C(n!==i-1?1:-1)}}function S0(e,r){if(e&1&&(s(0,"div"),p(1," Valid: "),tt(2,x0,2,2,null,null,at),c()),e&2){let t=u(2).$implicit;o(2),it(t.validValues)}}function k0(e,r){if(e&1&&(s(0,"div",35),h(1,h0,2,1,"div"),h(2,C0,2,1,"div"),h(3,_0,2,1,"div"),h(4,S0,4,0,"div"),c()),e&2){let t=u().$implicit;o(),C("minStep"in t?1:-1),o(),C("minValue"in t?2:-1),o(),C("maxValue"in t?3:-1),o(),C("validValues"in t?4:-1)}}function b0(e,r){e&1&&p(0," Value: ")}function T0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function M0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function B0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function w0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function E0(e,r){if(e&1&&h(0,B0,2,3)(1,w0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function D0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function A0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function I0(e,r){if(e&1&&p(0),e&2){let t=u().$implicit;g(" ",t.value,"% ")}}function L0(e,r){if(e&1&&(p(0),l(1,"convertTemp")),e&2){let t=u().$implicit,n=u(2);g(" ",d(1,1,n.Number(t.value)),"\xB0 ")}}function F0(e,r){if(e&1&&(p(0),l(1,"convertMired")),e&2){let t=u(2).$implicit;g(" ",d(1,1,t.value)," ")}}function V0(e,r){if(e&1&&p(0),e&2){let t=u(2).$implicit;g(" ",t.value," ")}}function P0(e,r){if(e&1&&h(0,F0,2,3)(1,V0,1,1),e&2){let t,n=u().$implicit;C((t=n.type)==="ColorTemperature"?0:1)}}function O0(e,r){if(e&1&&(p(0),l(1,"prettify")),e&2){let t=u().$implicit,n=u(2);g(" (",d(1,1,n.enums[t.type][t.value]),") ")}}function N0(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u().$implicit;g(" (",d(1,1,t.value?"status.widget.info.yes":"status.widget.info.no"),") ")}}function H0(e,r){if(e&1&&(s(0,"li",20)(1,"span"),h(2,v0,2,2,"span",34)(3,g0,1,1),h(4,k0,5,4,"div",35),s(5,"div",36),h(6,b0,1,0),h(7,T0,1,1)(8,M0,2,3)(9,E0,2,1),h(10,D0,2,3)(11,A0,2,3),c()(),s(12,"span",37),h(13,I0,1,1)(14,L0,2,3)(15,P0,2,1),h(16,O0,2,3)(17,N0,2,3),c()()),e&2){let t,n,i=r.$implicit,a=u(2);o(2),C("minStep"in i||"minValue"in i||"maxValue"in i||"validValues"in i?2:3),o(2),C(a.isDetailsVisible[i.uuid]?4:-1),o(2),C(a.isDetailsVisible[i.uuid]?6:-1),o(),C((t=i.unit)==="percentage"?7:t==="celsius"?8:9),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?10:i.format==="bool"?11:-1),o(3),C((n=i.unit)==="percentage"?13:n==="celsius"?14:15),o(3),C(a.enums[i.type]!=null&&a.enums[i.type][i.value]?16:i.format==="bool"?17:-1)}}function R0(e,r){if(e&1&&(s(0,"ul",5)(1,"li",18)(2,"h6",19),p(3),l(4,"translate"),c()(),s(5,"li",20)(6,"span",13),p(7),l(8,"translate"),c(),s(9,"span",21),p(10),c()(),s(11,"li",20)(12,"span",13),p(13),l(14,"translate"),c(),s(15,"span",21),p(16),c()(),tt(17,H0,18,7,"li",20,at),c()),e&2){let t=r.$implicit;o(3),v(d(4,5,"accessories.service_info")),o(4),v(d(8,7,"accessories.service")),o(3),v(t.humanType),o(3),v(d(14,9,"accessories.name")),o(3),v(t.serviceName),o(),it(t.serviceCharacteristics)}}function $0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()()),e&2){let t=u(2);o(2),v(d(3,2,"child_bridge.config.platform")),o(3),v(t.matchedCachedAccessory.platform)}}function j0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()()),e&2){let t=u(2);o(2),v(d(3,2,"child_bridge.config.accessory")),o(3),v(t.matchedCachedAccessory.accessory)}}function U0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()(),h(6,$0,6,4,"li",20),h(7,j0,6,4,"li",20)),e&2){let t=u();o(2),v(d(3,4,"accessories.plugin")),o(3),v(t.matchedCachedAccessory.plugin),o(),C(t.matchedCachedAccessory.platform?6:-1),o(),C(t.matchedCachedAccessory.accessory?7:-1)}}function W0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),c(),s(3,"span",21),p(4),c()()),e&2){let t=r.$implicit;o(2),v(t.key),o(2),v(t.value)}}function G0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2,"Protocol"),c(),s(3,"span",21),p(4,"Matter"),c()(),s(5,"li",20)(6,"span",13),p(7,"Bridge"),c(),s(8,"span",21),p(9),c()()),e&2){let t=u();o(9),v(t.localService.instance.name)}}function q0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()()),e&2){let t=u();o(2),v(d(3,2,"child_bridge.config.name")),o(3),v(t.matchedCachedAccessory.bridge)}}function z0(e,r){if(e&1&&(s(0,"li",20)(1,"span",13),p(2),l(3,"translate"),c(),s(4,"span",21),p(5),c()(),s(6,"li",20)(7,"span",13),p(8),l(9,"translate"),c(),s(10,"span",21),p(11),c()(),s(12,"li",20)(13,"span",39),p(14,"aid"),c(),s(15,"span",21),p(16),c()(),s(17,"li",20)(18,"span",39),p(19,"iid"),c(),s(20,"span",21),p(21),c()()),e&2){let t=u();o(2),v(d(3,6,"accessories.bridge_ip")),o(3),v(t.localService.instance.ipAddress),o(3),v(d(9,8,"accessories.bridge_port")),o(3),v(t.localService.instance.port),o(5),v(t.localService.aid),o(5),v(t.localService.iid)}}function Y0(e,r){if(e&1){let t=G();s(0,"li",20)(1,"span",39),p(2,"UUID"),c(),s(3,"span",21),p(4),c()(),s(5,"li",40)(6,"span",13),p(7),l(8,"translate"),c(),s(9,"button",41),S("click",function(){V(t);let i=u();return P(i.removeSingleCachedAccessories())}),f(10,"i",42),c()()}if(e&2){let t=u();o(4),v(t.matchedCachedAccessory.UUID),o(3),v(d(8,2,"accessories.button_remove"))}}var Wn=(()=>{class e{$activeModal=k(Fe);$modal=k(ne);modalData=k(ri);injector=k(te);accessoryCache=this.modalData.accessoryCache;pairingCache=this.modalData.pairingCache;service=this.modalData.service;localAccessoryCache=[];localPairingCache=[];localService;isDetailsVisible={};accessoryInformation;extraServices=[];matchedCachedAccessory=null;enums=Un.Enums;customTypeList=[];isMatterAccessory=!1;clusterInfo=[];hapCustomTypeList=[["AirPurifier","Switch","Outlet","Fan","Lightbulb","Heater","Cooler","Humidifier","Dehumidifier","Television","Valve","RobotVacuum","WashingMachine"],["Switch","Outlet","LockMechanism"],["Switch","Outlet","GarageDoorOpener"],["Door","Window","WindowCovering"],["Doorbell","Speaker","SmartSpeaker","Microphone"]];matterCustomTypeList=[["OnOffLight","OnOffLightSwitch","OnOffPlugInUnit","RoboticVacuumCleaner"],["Door","Window","WindowCovering"],["Fan"],["Thermostat"]];ngOnInit(){let t=this.accessoryCache,n=this.pairingCache,i=this.service;if(!t||!n||!i){console.error("AccessoryInfoComponent: required data not provided"),this.$activeModal.dismiss("Missing required data");return}if(this.localAccessoryCache=t,this.localPairingCache=n,this.localService=i,this.isMatterAccessory=this.localService.protocol==="matter",this.isMatterAccessory){this.customTypeList=[...new Set(this.matterCustomTypeList.filter(m=>m.includes(this.localService.deviceType)).flat())];let a=this.localService.clusters||{};this.clusterInfo=Object.entries(a).map(([m,A])=>({name:m,attributes:A})),this.accessoryInformation=Object.entries(this.localService.accessoryInformation||{}).map(([m,A])=>({key:m,value:A})),this.accessoryInformation.unshift({key:"Device Type",value:this.localService.deviceType||"Unknown"}),this.localService.customType||(this.localService.customType=this.localService.deviceType)}else this.customTypeList=[...new Set(this.hapCustomTypeList.filter(a=>a.includes(this.localService.type)).flat())],this.accessoryInformation=Object.entries(this.localService.accessoryInformation).map(([a,m])=>({key:a,value:m})),this.matchedCachedAccessory=this.matchToCachedAccessory(),this.localService.type==="LockMechanism"&&Object.values(this.localService.linkedServices).filter(a=>a.type==="LockManagement").forEach(a=>this.extraServices.push(a)),this.localService.customType||(this.localService.customType=this.localService.type)}removeSingleCachedAccessories(){this.$activeModal.close();let t=ie([{provide:Nn,useValue:{selectedBridge:this.localService.instance.username.replaceAll(":","")}}],this.injector);this.$modal.open(Hn,{size:"lg",backdrop:"static",injector:t})}isDefaultType(t){return this.isMatterAccessory?t===this.localService.deviceType:t===this.localService.type}toggleDetailsVisibility(t){("minStep"in t||"minValue"in t||"maxValue"in t||"validValues"in t)&&(this.isDetailsVisible[t.uuid]=!this.isDetailsVisible[t.uuid])}dismissModal(){this.$activeModal.dismiss("Dismiss")}matchToCachedAccessory(){let t=this.localService.instance.username,n=this.localPairingCache.find(i=>i._username===t);if(n){let i=n._main?"cachedAccessories":`cachedAccessories.${n._id}`,a=this.localAccessoryCache.filter(m=>m.$cacheFile===i);if(a.length){let m=this.localService.accessoryInformation.Name,A=this.localService.accessoryInformation["Serial Number"],q=a.filter(z=>{let ce=z.services.find(fe=>fe.constructorName==="AccessoryInformation"),ke=ce?.characteristics.find(fe=>fe.displayName==="Name"),Ve=ce?.characteristics.find(fe=>fe.displayName==="Serial Number");return ke?.value===m&&Ve?.value===A});if(q.length===1)return Dt(Et({},q[0]),{bridge:n.name})}}}Number=Number;JSON=JSON;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],decls:61,vars:43,consts:[["role","dialog","aria-modal","true",1,"modal-content"],[1,"modal-header"],["id","accessory-info-modal-title",1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body"],[1,"list-group","list-group-box","mb-3"],[1,"list-group-item","text-center","grey-text","small"],[3,"innerHTML"],[1,"list-group-item","d-flex","flex-column","flex-md-row","align-items-center"],["for","form-name",1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"text-start","text-md-end","w-100","w-md-50"],["type","text","id","form-name","autocomplete","off",1,"form-control","custom-input",3,"ngModelChange","ngModel"],[1,"list-group-item","d-flex","justify-content-between","align-items-center","flex-row","pb-2"],[1,"text-start"],[1,"text-end","grey-text","d-flex","align-items-center"],["type","checkbox","id","hide-accessory",1,"rendux-input",3,"ngModelChange","ngModel"],["for","hide-accessory",1,"rendux-label","ms-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item"],[1,"mb-0","text-center"],[1,"list-group-item","d-flex","justify-content-between","align-items-left","flex-column","flex-md-row"],[1,"text-start","text-md-end","grey-text","font-monospace"],[1,"modal-footer","justify-content-between"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],[1,"mb-2","mb-md-0","w-100","w-md-50"],[1,"custom-select",3,"ngModelChange","ngModel"],[3,"value"],["type","checkbox","id","show-on-dashboard",1,"rendux-input","mb-0",3,"ngModelChange","ngModel"],["for","show-on-dashboard",1,"rendux-label","ms-3"],[1,"fw-bold"],[1,"list-group-item","d-flex","justify-content-between","align-items-start","align-items-md-center","flex-column","flex-md-row"],[1,"text-start","me-2"],[1,"hover-pointer"],[1,"grey-text","m-0","p-0","font-monospace"],[1,"d-block","d-md-none","font-monospace","grey-text"],[1,"text-start","text-md-end","grey-text","font-monospace","d-none","d-md-block","align-content-center"],[1,"hover-pointer",3,"click"],[1,"text-start","font-monospace"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"btn","btn-primary","m-0","ms-3","py-1",3,"click"],[1,"fas","fa-arrow-right"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1)(2,"h5",2),p(3),c(),s(4,"button",3),l(5,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(6,"div",4)(7,"ul",5)(8,"li",6),f(9,"span",7),l(10,"translate"),f(11,"br")(12,"span",7),l(13,"translate"),c(),s(14,"li",8)(15,"label",9),p(16),l(17,"translate"),c(),s(18,"div",10)(19,"input",11),S("ngModelChange",function(m){return i.localService.customName=m}),c()()(),h(20,Pa,8,4,"li",8),s(21,"li",12)(22,"span",13),p(23),l(24,"translate"),c(),s(25,"div",14)(26,"input",15),l(27,"translate"),J("ngModelChange",function(m){return Q(i.localService.hidden,m)||(i.localService.hidden=m),m}),c(),f(28,"label",16),c()(),h(29,Oa,8,7,"li",12),c(),s(30,"ul",5),h(31,ja,6,3)(32,f0,18,11),c(),tt(33,R0,19,11,"ul",5,at),s(35,"ul",17)(36,"li",18)(37,"h6",19),p(38),l(39,"translate"),c()(),h(40,U0,8,6),tt(41,W0,5,2,"li",20,at),h(43,G0,10,1),s(44,"li",20)(45,"span",13),p(46),l(47,"translate"),c(),s(48,"span",21),p(49),c()(),h(50,q0,6,4,"li",20),h(51,z0,22,10),h(52,Y0,11,4),c()(),s(53,"div",22),f(54,"div",13),s(55,"div",23)(56,"button",24),l(57,"translate"),S("click",function(){return i.dismissModal()}),p(58),l(59,"translate"),c()(),f(60,"div",25),c()()),n&2&&(y("aria-labelledby","accessory-info-modal-title"),o(3),g(" ",i.localService.customName||i.localService.serviceName," "),o(),y("aria-label",d(5,23,"form.button_close")),o(5),T("innerHTML",d(10,25,"accessories.only_ui"),Ke),o(3),T("innerHTML",d(13,27,"accessories.only_ui_2"),Ke),o(4),v(d(17,29,"accessories.custom_name")),o(3),T("ngModel",i.localService.customName||i.localService.serviceName),o(),C(i.customTypeList.length?20:-1),o(3),v(d(24,31,"accessories.hide_this_accessory")),o(3),Z("ngModel",i.localService.hidden),y("aria-label",d(27,33,"accessories.hide_this_accessory")),o(3),C(i.localService.hidden?-1:29),o(2),C(i.isMatterAccessory?31:32),o(2),it(i.extraServices),o(5),v(d(39,35,"accessories.accessory_info")),o(2),C(i.matchedCachedAccessory?40:-1),o(),it(i.accessoryInformation),o(2),C(i.isMatterAccessory?43:-1),o(3),v(d(47,37,"users.label_username")),o(3),v(i.localService.instance.username),o(),C(i.matchedCachedAccessory?50:-1),o(),C(i.isMatterAccessory?-1:51),o(),C(i.matchedCachedAccessory?52:-1),o(4),y("aria-label",d(57,39,"form.button_close")),o(2),g(" ",d(59,41,"form.button_close")," "))},dependencies:[le,Vn,Pn,Ln,In,Fn,de,pe,Bn,w,He,$n,ut,jn],encapsulation:2,changeDetection:0})}return e})();var re=(()=>{class e{injector=k(te);$api=k(En);$auth=k(Dn);$destroyRef=k(be);$modal=k(ne);$toastr=k(Ne);$translate=k(wn);$ws=k(On);accessoryCache=[];pairingCache=[];customAttributesApplied=new Set;io;stop$=new ee;hiddenTypes=["InputSource","LockManagement","CameraRTPStreamManagement","ProtocolInformation","NFCAccess"];layoutSaved=new ee;accessoryData=new ee;readyForControl=!1;hapReadyForControl=!1;matterReadyForControl=!1;accessories={services:[]};accessoryLayout;originalLayout;rooms=mt([]);constructor(){this.$auth.user.admin&&this.loadCachedData()}loadCachedData(){return se(this,null,function*(){try{this.accessoryCache=yield this.$api.get("/server/cached-accessories")}catch(t){console.error(t)}try{this.pairingCache=yield this.$api.get("/server/pairings")}catch(t){console.error(t)}})}showAccessoryInformation(t){return se(this,null,function*(){let n=ie([{provide:ri,useValue:{service:t,accessoryCache:this.accessoryCache,pairingCache:this.pairingCache}}],this.injector),i=this.$modal.open(Wn,{size:"lg",backdrop:"static",injector:n});try{yield i.result}catch{}finally{this.saveLayout()}return!1})}stop(){this.stop$.next(),this.stop$.complete(),this.io.end(),this.rooms.set([]),this.accessories={services:[]},this.customAttributesApplied.clear(),delete this.accessoryLayout,delete this.originalLayout,this.stop$=new ee}start(){return se(this,null,function*(){this.readyForControl=!1,this.hapReadyForControl=!1,this.matterReadyForControl=!1,this.io=this.$ws.connectToNamespace("accessories"),yield this.loadLayout(),this.io.connected.pipe(Wt(this.stop$)).subscribe(()=>{this.io.socket.emit("get-accessories")}),this.io.socket.connected&&this.io.socket.emit("get-accessories"),this.io.socket.on("accessories-data",t=>{this.parseServices(t),this.generateHelpers(),this.sortIntoRooms(),this.orderRooms(),this.applyCustomAttributes(),this.accessoryData.next(t)}),this.io.socket.on("accessories-reload-required",()=>se(this,null,function*(){this.stop(),yield this.start()})),this.io.socket.on("matter-accessories-reload-required",()=>se(this,null,function*(){this.matterReadyForControl=!1,this.io.socket.emit("accessory-control",{refresh:!0})})),this.io.socket.on("accessory-control-failure",t=>{console.error(t),this.$toastr.error(t,this.$translate.instant("toast.title_error"))}),this.io.socket.on("accessories-ready-for-control",()=>{this.readyForControl=!0}),this.io.socket.on("hap-accessories-ready-for-control",()=>{this.hapReadyForControl=!0}),this.io.socket.on("matter-accessories-ready-for-control",()=>{this.matterReadyForControl=!0})})}saveLayout(){let t=this.rooms().map(i=>({name:i.name,isDefault:i.isDefault,services:i.services.map(a=>({uniqueId:a.uniqueId,name:a.serviceName,serial:a.accessoryInformation["Serial Number"],bridge:a.instance.username,aid:a.aid,iid:a.iid,uuid:a.uuid,customName:a.customName||void 0,customType:a.customType||void 0,hidden:a.hidden||void 0,onDashboard:a.onDashboard||void 0}))}));!t.some(i=>i.isDefault===!0)&&t.length>0&&(t[0].isDefault=!0),this.accessoryLayout=this.mergeWithUndiscoveredServices(t),this.io.request("save-layout",{user:this.$auth.user.username,layout:this.accessoryLayout}).pipe(Wt(this.stop$),Ce(this.$destroyRef)).subscribe({next:()=>this.layoutSaved.next(void 0),error:i=>{console.error(i),this.$toastr.error(i.message,this.$translate.instant("toast.title_error"))}})}loadLayout(){return se(this,null,function*(){if(this.accessoryLayout=yield dn(this.io.request("get-layout",{user:this.$auth.user.username})),this.originalLayout=JSON.parse(JSON.stringify(this.accessoryLayout)),!this.accessoryLayout.some(n=>n.isDefault)&&this.accessoryLayout.length>0){let n=this.accessoryLayout.findIndex(a=>a.name==="Default Room"),i=n!==-1?n:0;this.accessoryLayout[i].isDefault=!0}this.rooms.set(this.accessoryLayout.map(n=>({name:n.name,isDefault:n.isDefault,services:[]})))})}servicesMatch(t,n){return n.protocol==="matter"||n.uniqueId?.startsWith("matter:")?t.uniqueId===n.uniqueId&&t.bridge===(n.instance?.username||n.bridge):t.uniqueId===n.uniqueId?!0:t.name===(n.serviceName||n.name)&&t.serial===(n.accessoryInformation?.["Serial Number"]||n.serial)&&t.bridge===(n.instance?.username||n.bridge)&&t.uuid===n.uuid}mergeWithUndiscoveredServices(t){if(!this.originalLayout)return t;let n=JSON.parse(JSON.stringify(t)),i=new Set;return n.forEach(a=>{a.services.forEach(m=>{let A=null;for(let q of this.originalLayout){for(let z of q.services)if(z.name&&this.servicesMatch(z,m)){A=z;break}if(A)break}A&&i.add(A.uniqueId)})}),this.originalLayout.forEach(a=>{a.services.forEach(m=>{if(i.has(m.uniqueId)||!m.name)return;let A=n.find(q=>q.name===a.name);!A&&(A=n.find(q=>q.isDefault),!A)||A.services.push({uniqueId:m.uniqueId,name:m.name,bridge:m.bridge,serial:m.serial,aid:m.aid,iid:m.iid,uuid:m.uuid,customName:m.customName,customType:m.customType,hidden:m.hidden,onDashboard:m.onDashboard})})}),n.filter(a=>a.services.length>0||t.some(m=>m.name===a.name))}parseServices(t){if(!this.accessories.services.length){this.accessories.services=t;return}t.forEach(n=>{let i=this.accessories.services.find(a=>a.uniqueId===n.uniqueId);n.type==="LockMechanism"&&this.attachLockManagementToMechanism(n),i?Object.assign(i,n):this.accessories.services.push(n)})}sortIntoRooms(){let t=new Set(this.hiddenTypes);this.accessories.services.forEach(n=>{if(t.has(n.type))return;if(n.linked&&(n.linkedServices={},n.linked.forEach(a=>{n.linkedServices[a]=this.accessories.services.find(m=>m.aid===n.aid&&m.iid===a&&m.instance.username===n.instance.username)})),!this.rooms().find(a=>a.services.find(m=>m.uniqueId===n.uniqueId))){let a=null,m=null;for(let A of this.accessoryLayout)if(m=A.services.find(q=>this.servicesMatch(q,n)),m){a=A;break}if(a&&m)m.customType&&(n.customType=m.customType),m.customName&&(n.customName=m.customName),m.hidden&&(n.hidden=m.hidden),m.onDashboard&&(n.onDashboard=m.onDashboard),this.customAttributesApplied.add(n.uniqueId),this.rooms.update(A=>A.map(q=>q.name===a.name?Dt(Et({},q),{services:[...q.services,n]}):q));else{this.customAttributesApplied.add(n.uniqueId);let A=this.rooms().find(q=>q.isDefault===!0);A||(A=this.rooms().find(q=>q.name==="Default Room")),A?this.rooms.update(q=>q.map(z=>z.name===A.name?Dt(Et({},z),{services:[...z.services,n]}):z)):this.rooms.update(q=>[...q,{name:"Default Room",isDefault:!0,services:[n]}])}}})}orderRooms(){this.rooms.update(t=>t.map(n=>{let i=this.accessoryLayout.find(m=>m.name===n.name),a=[...n.services].sort((m,A)=>{let q=i.services.findIndex(ce=>ce.uniqueId===m.uniqueId),z=i.services.findIndex(ce=>ce.uniqueId===A.uniqueId);return q<z?-1:q>z?1:0});return Dt(Et({},n),{services:a})}))}applyCustomAttributes(){this.rooms().forEach(t=>{let n=this.accessoryLayout.find(i=>i.name===t.name);n&&t.services.forEach(i=>{if(this.customAttributesApplied.has(i.uniqueId))return;let a=n.services.find(A=>A.uniqueId===i.uniqueId);if(!a)return;let m=i;a.customType&&(m.customType=a.customType),a.customName&&(m.customName=a.customName),a.hidden&&(m.hidden=a.hidden),a.onDashboard&&(m.onDashboard=a.onDashboard),this.customAttributesApplied.add(i.uniqueId)})})}generateHelpers(){this.accessories.services.forEach(t=>{let n=t;n.protocol==="matter"?n.getCluster||(n.getCluster=i=>{let a=n.clusters||{};return a[i]?{attributes:a[i],setAttributes:m=>new Promise(A=>{if(!this.matterReadyForControl){console.warn("Matter control attempted but not ready for control:",{matterReadyForControl:this.matterReadyForControl,uniqueId:t.uniqueId,cluster:i}),A(void 0);return}return this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,cluster:i,attributes:m}}),A(void 0)})}:null}):t.getCharacteristic||(t.getCharacteristic=i=>{let a=t.serviceCharacteristics.find(m=>m.type===i);return a?(a.setValue=m=>new Promise(A=>(this.readyForControl||A(void 0),this.io.socket.emit("accessory-control",{set:{uniqueId:t.uniqueId,aid:t.aid,siid:t.iid,iid:a.iid,value:m}}),A(void 0))),a):null})})}attachLockManagementToMechanism(t){let n=[],i=[];for(let a of this.accessories.services)a.type==="LockMechanism"&&a.accessoryInformation.Name===t.accessoryInformation.Name&&a.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]?n.push(a):a.type==="LockManagement"&&a.accessoryInformation.Name===t.accessoryInformation.Name&&a.accessoryInformation["Serial Number"]===t.accessoryInformation["Serial Number"]&&i.push(a);if(n.length===1&&i.length===1){let a=i[0];t.linkedServices||(t.linkedServices={}),t.linkedServices[a.iid]=a}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ii({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Y=new ni("AccessoryManageModalData"),he=(()=>{class e{destroyRef=k(be);$activeModal=k(Fe);cdr=k(Oe);modalData=k(Y);service;$accessories;ngOnInit(){if(!this.modalData.service||!this.modalData.$accessories){console.error("BaseManageComponent: service or $accessories not provided"),this.$activeModal.dismiss("Missing required data");return}this.service=this.modalData.service,this.$accessories=this.modalData.$accessories,this.setupComponent(),this.subscribeToAccessoryUpdates()}dismissModal(){this.$activeModal.dismiss("Dismiss")}subscribeToAccessoryUpdates(){this.$accessories&&this.$accessories.accessoryData.pipe(Ce(this.destroyRef)).subscribe(()=>{this.handleAccessoryUpdate(),this.cdr.markForCheck()})}createDebouncedSubscription(t,n,i=500){t.pipe(Ye(i),Ce(this.destroyRef)).subscribe(n)}applySliderGradient(t,n=".noUi-target"){requestAnimationFrame(()=>{document.querySelectorAll(n).forEach(a=>{a.style.background=t})})}blurTarget(t){t.target.blur()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,i){},encapsulation:2,changeDetection:0})}return e})();var xt=(function(e){return e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values",e})(xt||{}),Qe=(function(e){return e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue",e})(Qe||{});function K0(e){return si(e)&&typeof e.from=="function"}function si(e){return typeof e=="object"&&typeof e.to=="function"}function Gn(e){e.parentElement.removeChild(e)}function Fi(e){return e!=null}function qn(e){e.preventDefault()}function Z0(e){return e.filter(function(r){return this[r]?!1:this[r]=!0},{})}function Q0(e,r){return Math.round(e/r)*r}function J0(e,r){var t=e.getBoundingClientRect(),n=e.ownerDocument,i=n.documentElement,a=Zn(n);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),r?t.top+a.y-i.clientTop:t.left+a.x-i.clientLeft}function ot(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function zn(e,r,t){t>0&&(We(e,r),setTimeout(function(){ai(e,r)},t))}function Yn(e){return Math.max(Math.min(e,100),0)}function li(e){return Array.isArray(e)?e:[e]}function X0(e){e=String(e);var r=e.split(".");return r.length>1?r[1].length:0}function We(e,r){e.classList&&!/\s/.test(r)?e.classList.add(r):e.className+=" "+r}function ai(e,r){e.classList&&!/\s/.test(r)?e.classList.remove(r):e.className=e.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")}function es(e,r){return e.classList?e.classList.contains(r):new RegExp("\\b"+r+"\\b").test(e.className)}function Zn(e){var r=window.pageXOffset!==void 0,t=(e.compatMode||"")==="CSS1Compat",n=r?window.pageXOffset:t?e.documentElement.scrollLeft:e.body.scrollLeft,i=r?window.pageYOffset:t?e.documentElement.scrollTop:e.body.scrollTop;return{x:n,y:i}}function ts(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function is(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r)}catch{}return e}function ns(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Pi(e,r){return 100/(r-e)}function Vi(e,r,t){return r*100/(e[t+1]-e[t])}function os(e,r){return Vi(e,e[0]<0?r+Math.abs(e[0]):r-e[0],0)}function rs(e,r){return r*(e[1]-e[0])/100+e[0]}function Gt(e,r){for(var t=1;e>=r[t];)t+=1;return t}function as(e,r,t){if(t>=e.slice(-1)[0])return 100;var n=Gt(t,e),i=e[n-1],a=e[n],m=r[n-1],A=r[n];return m+os([i,a],t)/Pi(m,A)}function ss(e,r,t){if(t>=100)return e.slice(-1)[0];var n=Gt(t,r),i=e[n-1],a=e[n],m=r[n-1],A=r[n];return rs([i,a],(t-m)*Pi(m,A))}function ls(e,r,t,n){if(n===100)return n;var i=Gt(n,e),a=e[i-1],m=e[i];return t?n-a>(m-a)/2?m:a:r[i-1]?e[i-1]+Q0(n-e[i-1],r[i-1]):n}var cs=(function(){function e(r,t,n){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var i,a=[];for(Object.keys(r).forEach(function(m){a.push([li(r[m]),m])}),a.sort(function(m,A){return m[0][0]-A[0][0]}),i=0;i<a.length;i++)this.handleEntryPoint(a[i][1],a[i][0]);for(this.xNumSteps=this.xSteps.slice(0),i=0;i<this.xNumSteps.length;i++)this.handleStepPoint(i,this.xNumSteps[i])}return e.prototype.getDistance=function(r){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=Vi(this.xVal,r,n);return t},e.prototype.getAbsoluteDistance=function(r,t,n){var i=0;if(r<this.xPct[this.xPct.length-1])for(;r>this.xPct[i+1];)i++;else r===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);!n&&r===this.xPct[i+1]&&i++,t===null&&(t=[]);var a,m=1,A=t[i],q=0,z=0,ce=0,ke=0;for(n?a=(r-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):a=(this.xPct[i+1]-r)/(this.xPct[i+1]-this.xPct[i]);A>0;)q=this.xPct[i+1+ke]-this.xPct[i+ke],t[i+ke]*m+100-a*100>100?(z=q*a,m=(A-100*a)/t[i+ke],a=1):(z=t[i+ke]*q/100*m,m=0),n?(ce=ce-z,this.xPct.length+ke>=1&&ke--):(ce=ce+z,this.xPct.length-ke>=1&&ke++),A=t[i+ke]*m;return r+ce},e.prototype.toStepping=function(r){return r=as(this.xVal,this.xPct,r),r},e.prototype.fromStepping=function(r){return ss(this.xVal,this.xPct,r)},e.prototype.getStep=function(r){return r=ls(this.xPct,this.xSteps,this.snap,r),r},e.prototype.getDefaultStep=function(r,t,n){var i=Gt(r,this.xPct);return(r===100||t&&r===this.xPct[i-1])&&(i=Math.max(i-1,1)),(this.xVal[i]-this.xVal[i-1])/n},e.prototype.getNearbySteps=function(r){var t=Gt(r,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var r=this.xNumSteps.map(X0);return Math.max.apply(null,r)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(r){return this.getStep(this.toStepping(r))},e.prototype.handleEntryPoint=function(r,t){var n;if(r==="min"?n=0:r==="max"?n=100:n=parseFloat(r),!ot(n)||!ot(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var i=Number(t[1]);n?this.xSteps.push(isNaN(i)?!1:i):isNaN(i)||(this.xSteps[0]=i),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(r,t){if(t){if(this.xVal[r]===this.xVal[r+1]){this.xSteps[r]=this.xHighestCompleteStep[r]=this.xVal[r];return}this.xSteps[r]=Vi([this.xVal[r],this.xVal[r+1]],t,0)/Pi(this.xPct[r],this.xPct[r+1]);var n=(this.xVal[r+1]-this.xVal[r])/this.xNumSteps[r],i=Math.ceil(Number(n.toFixed(3))-1),a=this.xVal[r]+this.xNumSteps[r]*i;this.xHighestCompleteStep[r]=a}},e})(),Kn={to:function(e){return e===void 0?"":e.toFixed(2)},from:Number},ds={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},ft={tooltips:".__tooltips",aria:".__aria"};function ps(e,r){if(!ot(r))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=r}function ms(e,r){if(!ot(r))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=r}function us(e,r){if(!ot(r))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=r}function fs(e,r){if(!ot(r))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=r}function vs(e,r){if(typeof r!="object"||Array.isArray(r))throw new Error("noUiSlider: 'range' is not an object.");if(r.min===void 0||r.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new cs(r,e.snap||!1,e.singleStep)}function gs(e,r){if(r=li(r),!Array.isArray(r)||!r.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=r.length,e.start=r}function hs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=r}function Cs(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=r}function _s(e,r){if(typeof r!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=r}function Qn(e,r){var t=[!1],n;if(r==="lower"?r=[!0,!1]:r==="upper"&&(r=[!1,!0]),r===!0||r===!1){for(n=1;n<e.handles;n++)t.push(r);t.push(!1)}else{if(!Array.isArray(r)||!r.length||r.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=r}e.connect=t}function ys(e,r){switch(r){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Jn(e,r){if(!ot(r))throw new Error("noUiSlider: 'margin' option must be numeric.");r!==0&&(e.margin=e.spectrum.getDistance(r))}function xs(e,r){if(!ot(r))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(r),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Ss(e,r){var t;if(!ot(r)&&!Array.isArray(r))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(r)&&!(r.length===2||ot(r[0])||ot(r[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(r!==0){for(Array.isArray(r)||(r=[r,r]),e.padding=[e.spectrum.getDistance(r[0]),e.spectrum.getDistance(r[1])],t=0;t<e.spectrum.xNumSteps.length-1;t++)if(e.padding[0][t]<0||e.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var n=r[0]+r[1],i=e.spectrum.xVal[0],a=e.spectrum.xVal[e.spectrum.xVal.length-1];if(n/(a-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function ks(e,r){switch(r){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function bs(e,r){if(typeof r!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=r.indexOf("tap")>=0,n=r.indexOf("drag")>=0,i=r.indexOf("fixed")>=0,a=r.indexOf("snap")>=0,m=r.indexOf("hover")>=0,A=r.indexOf("unconstrained")>=0,q=r.indexOf("invert-connects")>=0,z=r.indexOf("drag-all")>=0,ce=r.indexOf("smooth-steps")>=0;if(i){if(e.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Jn(e,e.start[1]-e.start[0])}if(q&&e.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(A&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:t||a,drag:n,dragAll:z,smoothSteps:ce,fixed:i,snap:a,hover:m,unconstrained:A,invertConnects:q}}function Ts(e,r){if(r!==!1)if(r===!0||si(r)){e.tooltips=[];for(var t=0;t<e.handles;t++)e.tooltips.push(r)}else{if(r=li(r),r.length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");r.forEach(function(n){if(typeof n!="boolean"&&!si(n))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=r}}function Ms(e,r){if(r.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=r}function Bs(e,r){if(!si(r))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=r}function ws(e,r){if(!K0(r))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=r}function Es(e,r){if(typeof r!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=r}function Ds(e,r){e.documentElement=r}function As(e,r){if(typeof r!="string"&&r!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=r}function Is(e,r){if(typeof r!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof e.cssPrefix=="string"?(e.cssClasses={},Object.keys(r).forEach(function(t){e.cssClasses[t]=e.cssPrefix+r[t]})):e.cssClasses=r}function Xn(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:Kn,format:Kn},t={step:{r:!1,t:ps},keyboardPageMultiplier:{r:!1,t:ms},keyboardMultiplier:{r:!1,t:us},keyboardDefaultStep:{r:!1,t:fs},start:{r:!0,t:gs},connect:{r:!0,t:Qn},direction:{r:!0,t:ks},snap:{r:!1,t:hs},animate:{r:!1,t:Cs},animationDuration:{r:!1,t:_s},range:{r:!0,t:vs},orientation:{r:!1,t:ys},margin:{r:!1,t:Jn},limit:{r:!1,t:xs},padding:{r:!1,t:Ss},behaviour:{r:!0,t:bs},ariaFormat:{r:!1,t:Bs},format:{r:!1,t:ws},tooltips:{r:!1,t:Ts},keyboardSupport:{r:!0,t:Es},documentElement:{r:!1,t:Ds},cssPrefix:{r:!0,t:As},cssClasses:{r:!0,t:Is},handleAttributes:{r:!1,t:Ms}},n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:ds,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(t).forEach(function(q){if(!Fi(e[q])&&n[q]===void 0){if(t[q].r)throw new Error("noUiSlider: '"+q+"' is required.");return}t[q].t(r,Fi(e[q])?e[q]:n[q])}),r.pips=e.pips;var i=document.createElement("div"),a=i.style.msTransform!==void 0,m=i.style.transform!==void 0;r.transformRule=m?"transform":a?"msTransform":"webkitTransform";var A=[["left","top"],["right","bottom"]];return r.style=A[r.dir][r.ort],r}function Ls(e,r,t){var n=ts(),i=ns(),a=i&&is(),m=e,A,q,z,ce,ke,Ve,fe=r.spectrum,ct=[],Te=[],ze=[],Ci=0,dt={},$t=!1,wt=e.ownerDocument,Qt=r.documentElement||wt.documentElement,Jt=wt.body,na=wt.dir==="rtl"||r.ort===1?0:100;function pt(_,M){var D=wt.createElement("div");return M&&We(D,M),_.appendChild(D),D}function oa(_,M){var D=pt(_,r.cssClasses.origin),H=pt(D,r.cssClasses.handle);if(pt(H,r.cssClasses.touchArea),H.setAttribute("data-handle",String(M)),r.keyboardSupport&&(H.setAttribute("tabindex","0"),H.addEventListener("keydown",function(W){return ya(W,M)})),r.handleAttributes!==void 0){var U=r.handleAttributes[M];Object.keys(U).forEach(function(W){H.setAttribute(W,U[W])})}return H.setAttribute("role","slider"),H.setAttribute("aria-orientation",r.ort?"vertical":"horizontal"),M===0?We(H,r.cssClasses.handleLower):M===r.handles-1&&We(H,r.cssClasses.handleUpper),D.handle=H,D}function _i(_,M){return M?pt(_,r.cssClasses.connect):!1}function ra(_,M){q=pt(M,r.cssClasses.connects),z=[],ce=[],ce.push(_i(q,_[0]));for(var D=0;D<r.handles;D++)z.push(oa(M,D)),ze[D]=D,ce.push(_i(q,_[D+1]))}function aa(_){We(_,r.cssClasses.target),r.dir===0?We(_,r.cssClasses.ltr):We(_,r.cssClasses.rtl),r.ort===0?We(_,r.cssClasses.horizontal):We(_,r.cssClasses.vertical);var M=getComputedStyle(_).direction;return M==="rtl"?We(_,r.cssClasses.textDirectionRtl):We(_,r.cssClasses.textDirectionLtr),pt(_,r.cssClasses.base)}function sa(_,M){return!r.tooltips||!r.tooltips[M]?!1:pt(_.firstChild,r.cssClasses.tooltip)}function zi(){return m.hasAttribute("disabled")}function yi(_){var M=z[_];return M.hasAttribute("disabled")}function la(_){_!=null?(z[_].setAttribute("disabled",""),z[_].handle.removeAttribute("tabindex")):(m.setAttribute("disabled",""),z.forEach(function(M){M.handle.removeAttribute("tabindex")}))}function ca(_){_!=null?(z[_].removeAttribute("disabled"),z[_].handle.setAttribute("tabindex","0")):(m.removeAttribute("disabled"),z.forEach(function(M){M.removeAttribute("disabled"),M.handle.setAttribute("tabindex","0")}))}function xi(){Ve&&(jt("update"+ft.tooltips),Ve.forEach(function(_){_&&Gn(_)}),Ve=null)}function Yi(){xi(),Ve=z.map(sa),Mi("update"+ft.tooltips,function(_,M,D){if(!(!Ve||!r.tooltips)&&Ve[M]!==!1){var H=_[M];r.tooltips[M]!==!0&&(H=r.tooltips[M].to(D[M])),Ve[M].innerHTML=H}})}function da(){jt("update"+ft.aria),Mi("update"+ft.aria,function(_,M,D,H,U){ze.forEach(function(W){var oe=z[W],K=Xt(Te,W,0,!0,!0,!0),ye=Xt(Te,W,100,!0,!0,!0),xe=U[W],Me=String(r.ariaFormat.to(D[W]));K=fe.fromStepping(K).toFixed(1),ye=fe.fromStepping(ye).toFixed(1),xe=fe.fromStepping(xe).toFixed(1),oe.children[0].setAttribute("aria-valuemin",K),oe.children[0].setAttribute("aria-valuemax",ye),oe.children[0].setAttribute("aria-valuenow",xe),oe.children[0].setAttribute("aria-valuetext",Me)})})}function pa(_){if(_.mode===xt.Range||_.mode===xt.Steps)return fe.xVal;if(_.mode===xt.Count){if(_.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var M=_.values-1,D=100/M,H=[];M--;)H[M]=M*D;return H.push(100),Ki(H,_.stepped)}return _.mode===xt.Positions?Ki(_.values,_.stepped):_.mode===xt.Values?_.stepped?_.values.map(function(U){return fe.fromStepping(fe.getStep(fe.toStepping(U)))}):_.values:[]}function Ki(_,M){return _.map(function(D){return fe.fromStepping(M?fe.getStep(D):D)})}function ma(_){function M(xe,Me){return Number((xe+Me).toFixed(7))}var D=pa(_),H={},U=fe.xVal[0],W=fe.xVal[fe.xVal.length-1],oe=!1,K=!1,ye=0;return D=Z0(D.slice().sort(function(xe,Me){return xe-Me})),D[0]!==U&&(D.unshift(U),oe=!0),D[D.length-1]!==W&&(D.push(W),K=!0),D.forEach(function(xe,Me){var Be,_e,Ie,je=xe,Pe=D[Me+1],Re,Ei,Di,Ai,an,Ii,sn,ln=_.mode===xt.Steps;for(ln&&(Be=fe.xNumSteps[Me]),Be||(Be=Pe-je),Pe===void 0&&(Pe=je),Be=Math.max(Be,1e-7),_e=je;_e<=Pe;_e=M(_e,Be)){for(Re=fe.toStepping(_e),Ei=Re-ye,an=Ei/(_.density||1),Ii=Math.round(an),sn=Ei/Ii,Ie=1;Ie<=Ii;Ie+=1)Di=ye+Ie*sn,H[Di.toFixed(5)]=[fe.fromStepping(Di),0];Ai=D.indexOf(_e)>-1?Qe.LargeValue:ln?Qe.SmallValue:Qe.NoValue,!Me&&oe&&_e!==Pe&&(Ai=0),_e===Pe&&K||(H[Re.toFixed(5)]=[_e,Ai]),ye=Re}}),H}function ua(_,M,D){var H,U,W=wt.createElement("div"),oe=(H={},H[Qe.None]="",H[Qe.NoValue]=r.cssClasses.valueNormal,H[Qe.LargeValue]=r.cssClasses.valueLarge,H[Qe.SmallValue]=r.cssClasses.valueSub,H),K=(U={},U[Qe.None]="",U[Qe.NoValue]=r.cssClasses.markerNormal,U[Qe.LargeValue]=r.cssClasses.markerLarge,U[Qe.SmallValue]=r.cssClasses.markerSub,U),ye=[r.cssClasses.valueHorizontal,r.cssClasses.valueVertical],xe=[r.cssClasses.markerHorizontal,r.cssClasses.markerVertical];We(W,r.cssClasses.pips),We(W,r.ort===0?r.cssClasses.pipsHorizontal:r.cssClasses.pipsVertical);function Me(_e,Ie){var je=Ie===r.cssClasses.value,Pe=je?ye:xe,Re=je?oe:K;return Ie+" "+Pe[r.ort]+" "+Re[_e]}function Be(_e,Ie,je){if(je=M?M(Ie,je):je,je!==Qe.None){var Pe=pt(W,!1);Pe.className=Me(je,r.cssClasses.marker),Pe.style[r.style]=_e+"%",je>Qe.NoValue&&(Pe=pt(W,!1),Pe.className=Me(je,r.cssClasses.value),Pe.setAttribute("data-value",String(Ie)),Pe.style[r.style]=_e+"%",Pe.innerHTML=String(D.to(Ie)))}}return Object.keys(_).forEach(function(_e){Be(_e,_[_e][0],_[_e][1])}),W}function Si(){ke&&(Gn(ke),ke=null)}function ki(_){Si();var M=ma(_),D=_.filter,H=_.format||{to:function(U){return String(Math.round(U))}};return ke=m.appendChild(ua(M,D,H)),ke}function Zi(){var _=A.getBoundingClientRect(),M="offset"+["Width","Height"][r.ort];return r.ort===0?_.width||A[M]:_.height||A[M]}function Ct(_,M,D,H){var U=function(oe){var K=fa(oe,H.pageOffset,H.target||M);if(!K||zi()&&!H.doNotReject||es(m,r.cssClasses.tap)&&!H.doNotReject||_===n.start&&K.buttons!==void 0&&K.buttons>1||H.hover&&K.buttons)return!1;a||K.preventDefault(),K.calcPoint=K.points[r.ort],D(K,H)},W=[];return _.split(" ").forEach(function(oe){M.addEventListener(oe,U,a?{passive:!0}:!1),W.push([oe,U])}),W}function fa(_,M,D){var H=_.type.indexOf("touch")===0,U=_.type.indexOf("mouse")===0,W=_.type.indexOf("pointer")===0,oe=0,K=0;if(_.type.indexOf("MSPointer")===0&&(W=!0),_.type==="mousedown"&&!_.buttons&&!_.touches)return!1;if(H){var ye=function(Be){var _e=Be.target;return _e===D||D.contains(_e)||_.composed&&_.composedPath().shift()===D};if(_.type==="touchstart"){var xe=Array.prototype.filter.call(_.touches,ye);if(xe.length>1)return!1;oe=xe[0].pageX,K=xe[0].pageY}else{var Me=Array.prototype.find.call(_.changedTouches,ye);if(!Me)return!1;oe=Me.pageX,K=Me.pageY}}return M=M||Zn(wt),(U||W)&&(oe=_.clientX+M.x,K=_.clientY+M.y),_.pageOffset=M,_.points=[oe,K],_.cursor=U||W,_}function Qi(_){var M=_-J0(A,r.ort),D=M*100/Zi();return D=Yn(D),r.dir?100-D:D}function va(_){var M=100,D=!1;return z.forEach(function(H,U){if(!yi(U)){var W=Te[U],oe=Math.abs(W-_),K=oe===100&&M===100,ye=oe<M,xe=oe<=M&&_>W;(ye||xe||K)&&(D=U,M=oe)}}),D}function ga(_,M){_.type==="mouseout"&&_.target.nodeName==="HTML"&&_.relatedTarget===null&&bi(_,M)}function ha(_,M){if(navigator.appVersion.indexOf("MSIE 9")===-1&&_.buttons===0&&M.buttonsProperty!==0)return bi(_,M);var D=(r.dir?-1:1)*(_.calcPoint-M.startCalcPoint),H=D*100/M.baseSize;Xi(D>0,H,M.locations,M.handleNumbers,M.connect)}function bi(_,M){M.handle&&(ai(M.handle,r.cssClasses.active),Ci-=1),M.listeners.forEach(function(D){Qt.removeEventListener(D[0],D[1])}),Ci===0&&(ai(m,r.cssClasses.drag),wi(),_.cursor&&(Jt.style.cursor="",Jt.removeEventListener("selectstart",qn))),r.events.smoothSteps&&(M.handleNumbers.forEach(function(D){_t(D,Te[D],!0,!0,!1,!1)}),M.handleNumbers.forEach(function(D){De("update",D)})),M.handleNumbers.forEach(function(D){De("change",D),De("set",D),De("end",D)})}function Ti(_,M){if(!M.handleNumbers.some(yi)){var D;if(M.handleNumbers.length===1){var H=z[M.handleNumbers[0]];D=H.children[0],Ci+=1,We(D,r.cssClasses.active)}_.stopPropagation();var U=[],W=Ct(n.move,Qt,ha,{target:_.target,handle:D,connect:M.connect,listeners:U,startCalcPoint:_.calcPoint,baseSize:Zi(),pageOffset:_.pageOffset,handleNumbers:M.handleNumbers,buttonsProperty:_.buttons,locations:Te.slice()}),oe=Ct(n.end,Qt,bi,{target:_.target,handle:D,listeners:U,doNotReject:!0,handleNumbers:M.handleNumbers}),K=Ct("mouseout",Qt,ga,{target:_.target,handle:D,listeners:U,doNotReject:!0,handleNumbers:M.handleNumbers});U.push.apply(U,W.concat(oe,K)),_.cursor&&(Jt.style.cursor=getComputedStyle(_.target).cursor,z.length>1&&We(m,r.cssClasses.drag),Jt.addEventListener("selectstart",qn,!1)),M.handleNumbers.forEach(function(ye){De("start",ye)})}}function Ca(_){_.stopPropagation();var M=Qi(_.calcPoint),D=va(M);D!==!1&&(r.events.snap||zn(m,r.cssClasses.tap,r.animationDuration),_t(D,M,!0,!0),wi(),De("slide",D,!0),De("update",D,!0),r.events.snap?Ti(_,{handleNumbers:[D]}):(De("change",D,!0),De("set",D,!0)))}function _a(_){var M=Qi(_.calcPoint),D=fe.getStep(M),H=fe.fromStepping(D);Object.keys(dt).forEach(function(U){U.split(".")[0]==="hover"&&dt[U].forEach(function(W){W.call(ti,H)})})}function ya(_,M){if(zi()||yi(M))return!1;var D=["Left","Right"],H=["Down","Up"],U=["PageDown","PageUp"],W=["Home","End"];r.dir&&!r.ort?D.reverse():r.ort&&!r.dir&&(H.reverse(),U.reverse());var oe=_.key.replace("Arrow",""),K=oe===U[0],ye=oe===U[1],xe=oe===H[0]||oe===D[0]||K,Me=oe===H[1]||oe===D[1]||ye,Be=oe===W[0],_e=oe===W[1];if(!xe&&!Me&&!Be&&!_e)return!0;_.preventDefault();var Ie;if(Me||xe){var je=xe?0:1,Pe=on(M),Re=Pe[je];if(Re===null)return!1;Re===!1&&(Re=fe.getDefaultStep(Te[M],xe,r.keyboardDefaultStep)),ye||K?Re*=r.keyboardPageMultiplier:Re*=r.keyboardMultiplier,Re=Math.max(Re,1e-7),Re=(xe?-1:1)*Re,Ie=ct[M]+Re}else _e?Ie=r.spectrum.xVal[r.spectrum.xVal.length-1]:Ie=r.spectrum.xVal[0];return _t(M,fe.toStepping(Ie),!0,!0),De("slide",M),De("update",M),De("change",M),De("set",M),!1}function Ji(_){_.fixed||z.forEach(function(M,D){Ct(n.start,M.children[0],Ti,{handleNumbers:[D]})}),_.tap&&Ct(n.start,A,Ca,{}),_.hover&&Ct(n.move,A,_a,{hover:!0}),_.drag&&ce.forEach(function(M,D){if(!(M===!1||D===0||D===ce.length-1)){var H=z[D-1],U=z[D],W=[M],oe=[H,U],K=[D-1,D];We(M,r.cssClasses.draggable),_.fixed&&(W.push(H.children[0]),W.push(U.children[0])),_.dragAll&&(oe=z,K=ze),W.forEach(function(ye){Ct(n.start,ye,Ti,{handles:oe,handleNumbers:K,connect:M})})}})}function Mi(_,M){dt[_]=dt[_]||[],dt[_].push(M),_.split(".")[0]==="update"&&z.forEach(function(D,H){De("update",H)})}function xa(_){return _===ft.aria||_===ft.tooltips}function jt(_){var M=_&&_.split(".")[0],D=M?_.substring(M.length):_;Object.keys(dt).forEach(function(H){var U=H.split(".")[0],W=H.substring(U.length);(!M||M===U)&&(!D||D===W)&&(!xa(W)||D===W)&&delete dt[H]})}function De(_,M,D){Object.keys(dt).forEach(function(H){var U=H.split(".")[0];_===U&&dt[H].forEach(function(W){W.call(ti,ct.map(r.format.to),M,ct.slice(),D||!1,Te.slice(),ti)})})}function Xt(_,M,D,H,U,W,oe){var K;return z.length>1&&!r.events.unconstrained&&(H&&M>0&&(K=fe.getAbsoluteDistance(_[M-1],r.margin,!1),D=Math.max(D,K)),U&&M<z.length-1&&(K=fe.getAbsoluteDistance(_[M+1],r.margin,!0),D=Math.min(D,K))),z.length>1&&r.limit&&(H&&M>0&&(K=fe.getAbsoluteDistance(_[M-1],r.limit,!1),D=Math.min(D,K)),U&&M<z.length-1&&(K=fe.getAbsoluteDistance(_[M+1],r.limit,!0),D=Math.max(D,K))),r.padding&&(M===0&&(K=fe.getAbsoluteDistance(0,r.padding[0],!1),D=Math.max(D,K)),M===z.length-1&&(K=fe.getAbsoluteDistance(100,r.padding[1],!0),D=Math.min(D,K))),oe||(D=fe.getStep(D)),D=Yn(D),D===_[M]&&!W?!1:D}function Bi(_,M){var D=r.ort;return(D?M:_)+", "+(D?_:M)}function Xi(_,M,D,H,U){var W=D.slice(),oe=H[0],K=r.events.smoothSteps,ye=[!_,_],xe=[_,!_];H=H.slice(),_&&H.reverse(),H.length>1?H.forEach(function(Be,_e){var Ie=Xt(W,Be,W[Be]+M,ye[_e],xe[_e],!1,K);Ie===!1?M=0:(M=Ie-W[Be],W[Be]=Ie)}):ye=xe=[!0];var Me=!1;H.forEach(function(Be,_e){Me=_t(Be,D[Be]+M,ye[_e],xe[_e],!1,K)||Me}),Me&&(H.forEach(function(Be){De("update",Be),De("slide",Be)}),U!=null&&De("drag",oe))}function en(_,M){return r.dir?100-_-M:_}function Sa(_,M){Te[_]=M,ct[_]=fe.fromStepping(M);var D=en(M,0)-na,H="translate("+Bi(D+"%","0")+")";if(z[_].style[r.transformRule]=H,r.events.invertConnects&&Te.length>1){var U=Te.every(function(W,oe,K){return oe===0||W>=K[oe-1]});if($t!==!U){wa();return}}Ut(_),Ut(_+1),$t&&(Ut(_-1),Ut(_+2))}function wi(){ze.forEach(function(_){var M=Te[_]>50?-1:1,D=3+(z.length+M*_);z[_].style.zIndex=String(D)})}function _t(_,M,D,H,U,W){return U||(M=Xt(Te,_,M,D,H,!1,W)),M===!1?!1:(Sa(_,M),!0)}function Ut(_){if(ce[_]){var M=Te.slice();$t&&M.sort(function(K,ye){return K-ye});var D=0,H=100;_!==0&&(D=M[_-1]),_!==ce.length-1&&(H=M[_]);var U=H-D,W="translate("+Bi(en(D,U)+"%","0")+")",oe="scale("+Bi(U/100,"1")+")";ce[_].style[r.transformRule]=W+" "+oe}}function tn(_,M){return _===null||_===!1||_===void 0||(typeof _=="number"&&(_=String(_)),_=r.format.from(_),_!==!1&&(_=fe.toStepping(_)),_===!1||isNaN(_))?Te[M]:_}function ei(_,M,D){var H=li(_),U=Te[0]===void 0;M=M===void 0?!0:M,r.animate&&!U&&zn(m,r.cssClasses.tap,r.animationDuration),ze.forEach(function(K){_t(K,tn(H[K],K),!0,!1,D)});var W=ze.length===1?0:1;if(U&&fe.hasNoSize()&&(D=!0,Te[0]=0,ze.length>1)){var oe=100/(ze.length-1);ze.forEach(function(K){Te[K]=K*oe})}for(;W<ze.length;++W)ze.forEach(function(K){_t(K,Te[K],!0,!0,D)});wi(),ze.forEach(function(K){De("update",K),H[K]!==null&&M&&De("set",K)})}function ka(_){ei(r.start,_)}function ba(_,M,D,H){if(_=Number(_),!(_>=0&&_<ze.length))throw new Error("noUiSlider: invalid handle number, got: "+_);_t(_,tn(M,_),!0,!0,H),De("update",_),D&&De("set",_)}function nn(_){if(_===void 0&&(_=!1),_)return ct.length===1?ct[0]:ct.slice(0);var M=ct.map(r.format.to);return M.length===1?M[0]:M}function Ta(){for(jt(ft.aria),jt(ft.tooltips),Object.keys(r.cssClasses).forEach(function(_){ai(m,r.cssClasses[_])});m.firstChild;)m.removeChild(m.firstChild);delete m.noUiSlider}function on(_){var M=Te[_],D=fe.getNearbySteps(M),H=ct[_],U=D.thisStep.step,W=null;if(r.snap)return[H-D.stepBefore.startValue||null,D.stepAfter.startValue-H||null];U!==!1&&H+U>D.stepAfter.startValue&&(U=D.stepAfter.startValue-H),H>D.thisStep.startValue?W=D.thisStep.step:D.stepBefore.step===!1?W=!1:W=H-D.stepBefore.highestStep,M===100?U=null:M===0&&(W=null);var oe=fe.countStepDecimals();return U!==null&&U!==!1&&(U=Number(U.toFixed(oe))),W!==null&&W!==!1&&(W=Number(W.toFixed(oe))),[W,U]}function Ma(){return ze.map(on)}function Ba(_,M){var D=nn(),H=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];H.forEach(function(W){_[W]!==void 0&&(t[W]=_[W])});var U=Xn(t);H.forEach(function(W){_[W]!==void 0&&(r[W]=U[W])}),fe=U.spectrum,r.margin=U.margin,r.limit=U.limit,r.padding=U.padding,r.pips?ki(r.pips):Si(),r.tooltips?Yi():xi(),Te=[],ei(Fi(_.start)?_.start:D,M),_.connect&&rn()}function rn(){for(;q.firstChild;)q.removeChild(q.firstChild);for(var _=0;_<=r.handles;_++)ce[_]=_i(q,r.connect[_]),Ut(_);Ji({drag:r.events.drag,fixed:!0})}function wa(){$t=!$t,Qn(r,r.connect.map(function(_){return!_})),rn()}function Ea(){A=aa(m),ra(r.connect,A),Ji(r.events),ei(r.start),r.pips&&ki(r.pips),r.tooltips&&Yi(),da()}Ea();var ti={destroy:Ta,steps:Ma,on:Mi,off:jt,get:nn,set:ei,setHandle:ba,reset:ka,disable:la,enable:ca,__moveHandles:function(_,M,D){Xi(_,M,Te,D)},options:t,updateOptions:Ba,target:m,removePips:Si,removeTooltips:xi,getPositions:function(){return Te.slice()},getTooltips:function(){return Ve},getOrigins:function(){return z},pips:ki};return ti}function eo(e,r){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=Xn(r),n=Ls(e,t,r);return e.noUiSlider=n,n}var Oi=class{to(r){return String(parseFloat(parseFloat(String(r)).toFixed(2)))}from(r){return parseFloat(r)}},me=(()=>{class e{constructor(t,n,i){this.ngZone=t,this.el=n,this.renderer=i,this.handles=[],this.config={},this.change=new yt(!0),this.update=new yt(!0),this.slide=new yt(!0),this.set=new yt(!0),this.start=new yt(!0),this.end=new yt(!0),this.onChange=Function.prototype,this.cleanups=[],this.eventHandler=(a,m,A,q)=>{let z=this.toValues(m),ce=!1;if(this.value===void 0){this.value=z;return}Array.isArray(z)&&this.value[A]!=z[A]&&(ce=!0),!Array.isArray(z)&&this.value!=z&&(ce=!0),ce&&this.ngZone.run(()=>{a.observers.length>0&&a.emit(z),this.onChange(z)}),Array.isArray(z)?this.value[A]=z[A]:this.value=z},this.defaultKeyHandler=a=>{let m=this.slider.steps(),A=parseInt(a.target.getAttribute("data-handle")),q=1,z=1,ce=0,ke=0;switch(a.which){case 34:z=this.config.pageSteps;break;case 40:case 37:q=-1,ce=m[A][0],a.preventDefault();break;case 33:z=this.config.pageSteps;break;case 38:case 39:ce=m[A][1],a.preventDefault();break;default:break}ke=q*z*ce;let Ve;Array.isArray(this.value)?(Ve=[...this.value],Ve[A]=Ve[A]+ke):Ve=this.value+ke,this.slider.set(Ve)}}ngOnChanges(t){this.slider&&(t.min||t.max||t.step||t.range)&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.slider.updateOptions({range:Object.assign({},{min:this.min,max:this.max},this.range||{}),step:this.step})})})}ngOnDestroy(){for(this.slider.destroy();this.cleanups.length;)this.cleanups.pop()?.()}toValues(t){let n=t.map(this.config.format.from);return n.length==1?n[0]:n}writeValue(t){this.slider?this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.slider.set(t)})}):t!==null&&(this.value=t,this.createSlider(t))}registerOnChange(t){this.onChange=t}registerOnTouched(t){}setDisabledState(t){t?this.renderer.setAttribute(this.el.nativeElement.childNodes[0],"disabled","true"):this.renderer.removeAttribute(this.el.nativeElement.childNodes[0],"disabled")}createSlider(t){let n=JSON.parse(JSON.stringify({behaviour:this.behaviour,connect:this.connect,limit:this.limit,start:t,step:this.step,pageSteps:this.pageSteps,keyboard:this.keyboard,onKeydown:this.onKeydown,range:this.range||this.config.range||{min:this.min,max:this.max},tooltips:this.tooltips,snap:this.snap,animate:this.animate}));if(n.tooltips=this.tooltips||this.config.tooltips,n.format=this.format||this.config.format||new Oi,this.ngZone.runOutsideAngular(()=>{this.slider=eo(this.el.nativeElement.querySelector("div"),Object.assign(this.config,n))}),this.handles=[].slice.call(this.el.nativeElement.querySelectorAll(".noUi-handle")),this.config.keyboard){this.config.pageSteps===void 0&&(this.config.pageSteps=10);for(let i of this.handles){i.setAttribute("tabindex",0);let a=this.config.onKeydown||this.defaultKeyHandler;this.ngZone.runOutsideAngular(()=>{this.cleanups.push(this.renderer.listen(i,"keydown",a),this.renderer.listen(i,"click",()=>{i.focus()}))})}}this.slider.on("set",(i,a,m)=>{this.eventHandler(this.set,i,a,m)}),this.slider.on("update",(i,a,m)=>{this.update.observers.length>0&&this.ngZone.run(()=>{this.update.emit(this.toValues(i))})}),this.slider.on("change",(i,a,m)=>{this.change.observers.length>0&&this.ngZone.run(()=>{this.change.emit(this.toValues(i))})}),this.slider.on("slide",(i,a,m)=>{this.eventHandler(this.slide,i,a,m)}),this.slider.on("start",(i,a,m)=>{this.start.observers.length>0&&this.ngZone.run(()=>{this.start.emit(this.toValues(i))})}),this.slider.on("end",(i,a,m)=>{this.end.observers.length>0&&this.ngZone.run(()=>{this.end.emit(this.toValues(i))})})}}return e.\u0275fac=function(t){return new(t||e)(oi(gn),oi(Cn),oi(_n))},e.\u0275cmp=B({type:e,selectors:[["nouislider"]],hostVars:2,hostBindings:function(t,n){t&2&&j("ng2-nouislider",!0)},inputs:{disabled:"disabled",behaviour:"behaviour",connect:"connect",limit:"limit",min:"min",max:"max",snap:"snap",animate:"animate",range:"range",step:"step",format:"format",pageSteps:"pageSteps",config:"config",keyboard:"keyboard",onKeydown:"onKeydown",tooltips:"tooltips"},outputs:{change:"change",update:"update",slide:"slide",set:"set",start:"start",end:"end"},features:[bn([{provide:An,useExisting:vn(()=>e),multi:!0}]),hn],decls:1,vars:1,template:function(t,n){t&1&&F(0,"div"),t&2&&y("disabled",n.disabled?!0:void 0)},styles:["[_nghost-%COMP%]{display:block;margin-top:1rem;margin-bottom:1rem}"]}),e})();var ci=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Vs(e,r){if(e&1){let t=G();s(0,"button",6),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(0,i))}),s(1,"div",7),f(2,"i",8),c(),p(3),l(4,"translate"),s(5,"div",9),f(6,"i",10),c()()}if(e&2){let t=u(2);o(2),L(O(5,ci,t.targetMode===0,t.targetMode!==0)),o(),g(" ",d(4,3,"accessories.control.manual")," ")}}function Ps(e,r){if(e&1){let t=G();s(0,"button",6),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(1,i))}),s(1,"div",7),f(2,"i",8),c(),p(3),l(4,"translate"),s(5,"div",9),f(6,"i",10),c()()}if(e&2){let t=u(2);o(2),L(O(5,ci,t.targetMode===1,t.targetMode!==1)),o(),g(" ",d(4,3,"accessories.control.auto")," ")}}function Os(e,r){if(e&1&&(s(0,"h6",12),p(1),l(2,"translate"),c(),s(3,"div",5),l(4,"translate"),h(5,Vs,7,8,"button",13),h(6,Ps,7,8,"button",13),c()),e&2){let t=u();o(),v(d(2,4,"accessories.control.mode")),o(2),y("aria-label",d(4,6,"accessories.control.mode_control")),o(2),C(t.targetModeValidValues.includes(0)?5:-1),o(),C(t.targetModeValidValues.includes(1)?6:-1)}}function Ns(e,r){if(e&1){let t=G();s(0,"h6",12),p(1),l(2,"translate"),c(),s(3,"nouislider",14),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetRotationSpeed.value,i)||(a.targetRotationSpeed.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTargetRotationSpeedChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value,"%"),o(2),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),Z("ngModel",t.targetRotationSpeed.value)}}var to=(()=>{class e extends he{targetState;targetMode;targetModeValidValues=[];targetRotationSpeed;targetRotationSpeedChanged=new ee;setupComponent(){this.createDebouncedSubscription(this.targetRotationSpeedChanged,()=>{this.service.getCharacteristic("RotationSpeed").setValue(this.targetRotationSpeed.value),this.targetRotationSpeed.value&&!this.targetState?(this.targetState=1,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(1):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!0)):!this.targetRotationSpeed.value&&this.targetState&&(this.targetState=0,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(0):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(!1))}),this.targetState="Active"in this.service.values?this.service.values.Active:this.service.values.On?1:0,this.targetMode=this.service.values.TargetAirPurifierState,"TargetAirPurifierState"in this.service.values&&(this.targetModeValidValues=this.service.getCharacteristic("TargetAirPurifierState").validValues),this.loadRotationSpeed()}handleAccessoryUpdate(){this.targetState="Active"in this.service.values?this.service.values.Active:this.service.values.On?1:0,this.targetMode=this.service.values.TargetAirPurifierState,this.targetRotationSpeed&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed")?.value)}setTargetState(t,n){this.targetState=t,"Active"in this.service.values?this.service.getCharacteristic("Active").setValue(this.targetState):"On"in this.service.values&&this.service.getCharacteristic("On").setValue(this.targetState===1),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetAirPurifierState").setValue(this.targetMode),this.blurTarget(n)}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}loadRotationSpeed(){let t=this.service.getCharacteristic("RotationSpeed");t&&(this.targetRotationSpeed={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:25,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"div",5),l(7,"translate"),s(8,"button",6),S("click",function(m){return i.setTargetState(0,m)}),s(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),s(13,"div",9),f(14,"i",10),c()(),s(15,"button",6),S("click",function(m){return i.setTargetState(1,m)}),s(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),s(20,"div",9),f(21,"i",10),c()()(),h(22,Os,7,8),h(23,Ns,4,8),c(),f(24,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(3),y("aria-label",d(7,13,"accessories.control.state_control")),o(4),L(O(19,ci,i.targetState===0,i.targetState!==0)),o(),g(" ",d(12,15,"accessories.control.off")," "),o(6),L(O(22,ci,i.targetState===1,i.targetState!==1)),o(),g(" ",d(19,17,"accessories.control.on")," "),o(4),C(i.targetModeValidValues.length?22:-1),o(),C(i.targetRotationSpeed?23:-1))},dependencies:[le,de,pe,me,w],styles:[".purifying svg .air-wave{animation:_ngcontent-%COMP%_wave-motion 5s ease-in-out infinite;stroke:#1976d2;stroke-opacity:.5} .purifying svg .bottom-line{animation-delay:.4s}@keyframes _ngcontent-%COMP%_wave-motion{0%,to{transform:translateY(0);stroke-opacity:.5}50%{transform:translateY(2px);stroke-opacity:1}}"],changeDetection:0})}return e})();var X=(()=>{class e{downTimeout;done=!1;touchInProgress=!1;touchStartTime=0;duration=E(350);longClick=Li();shortClick=Li();onEnter(t){this.shortClick.emit(t)}onMouseUp(t){!this.touchInProgress&&!this.isSyntheticEvent()&&(clearTimeout(this.downTimeout),this.done||(this.done=!0,this.shortClick.emit(t)))}onTouchEnd(t){clearTimeout(this.downTimeout),this.done||(this.done=!0,this.shortClick.emit(t)),setTimeout(()=>{this.touchInProgress=!1},150)}onMouseDown(t){if("touches"in t){this.touchInProgress=!0,this.done=!1,this.touchStartTime=Date.now(),t.cancelable&&this.isSafariMobile()&&t.preventDefault(),this.downTimeout=setTimeout(()=>{this.done||(this.done=!0,this.longClick.emit(t))},this.duration());return}!this.touchInProgress&&!this.isSyntheticEvent()&&t.button===0&&(this.done=!1,this.downTimeout=setTimeout(()=>{this.done||(this.done=!0,this.longClick.emit(t))},this.duration()))}onMouseMove(){this.done=!0,clearTimeout(this.downTimeout)}isSyntheticEvent(){let t=Date.now()-this.touchStartTime;return this.touchInProgress&&t<300}isSafariMobile(){let t=navigator.userAgent;return/iPad|iPhone|iPod/.test(t)&&/Safari/.test(t)&&!/Chrome|CriOS|FxiOS|EdgiOS/.test(t)}ngOnDestroy(){clearTimeout(this.downTimeout),this.touchInProgress=!1}static \u0275fac=function(n){return new(n||e)};static \u0275dir=yn({type:e,selectors:[["","shortClick",""],["","longClick",""]],hostBindings:function(n,i){n&1&&S("keyup.enter",function(m){return i.onEnter(m)})("mouseup",function(m){return i.onMouseUp(m)})("touchend",function(m){return i.onTouchEnd(m)})("touchstart",function(m){return i.onMouseDown(m)})("mousedown",function(m){return i.onMouseDown(m)})("mousemove",function(){return i.onMouseMove()})("touchmove",function(){return i.onMouseMove()})},inputs:{duration:[1,"duration"]},outputs:{longClick:"longClick",shortClick:"shortClick"}})}return e})();var Hs=(e,r)=>({"accessory-on":e,purifying:r});function Rs(e,r){if(e&1&&(s(0,"div",18),p(1),c()),e&2){let t,n=u(2);o(),g("",(t=n.service().values)==null?null:t.RotationSpeed,"%")}}function $s(e,r){e&1&&(s(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function js(e,r){if(e&1&&h(0,Rs,2,1,"div",18)(1,$s,3,3,"div",18),e&2){let t=u();C("RotationSpeed"in t.service().values?0:1)}}function Us(e,r){e&1&&(s(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.idle")))}function Ws(e,r){e&1&&(s(0,"div",18),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var io=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);hasTargetValidValues=!1;service=E.required();readyForControl=E(!1);ngOnInit(){"TargetAirPurifierState"in this.service().values&&(this.hasTargetValidValues=this.service().getCharacteristic("TargetAirPurifierState").validValues.length>0)}onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1):"On"in this.service().values&&this.service().getCharacteristic("On").setValue(!this.service().values.On))}onLongClick(){if(this.readyForControl()&&(this.hasTargetValidValues||"RotationSpeed"in this.service().values)){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(to,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-air-purifier"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:23,vars:10,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["d","M3,3.0706147 C3.28945166,3.8007217 5.978098,4.1773883 10.0660175,4.2006147 C12.5085124,4.2144929 18.5053297,1.8514837 22.4060749,1.1943647 C24.1588716,0.898084 26.5955382,1.1756219 28.716875,2.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-wave"],["d","M3,9.0706147 C3.28945166,9.8007217 5.978098,10.1773883 10.0660175,10.2006147 C12.5085124,10.2144929 18.5053297,7.8514837 22.4060749,7.1943647 C24.1588716,6.898084 26.5955382,7.1756219 28.716875,8.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-wave","bottom-line"],["x1","7","y1","14","x2","25","y2","14","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","7","y1","14","x2","2","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","25","y1","14","x2","30","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","8","y1","16.5","x2","24","y2","16.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","7","y1","18.5","x2","25","y2","18.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","6","y1","20.5","x2","26","y2","20.5","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round"],["x1","2","y1","23","x2","30","y2","23","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","30","y1","23","x2","30","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","2","y1","23","x2","2","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["cx","15.5","cy","27","r","2.5","stroke","#7f7f7f","stroke-width","1","fill","#1976d2","fill-opacity","0.5"],["x1","2","y1","31","x2","30","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"path",4)(6,"path",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"circle",15)(17,"line",16),c()(),N(),s(18,"div",17),p(19),c(),h(20,js,2,1)(21,Us,3,3,"div",18)(22,Ws,3,3,"div",18),c()()),n&2){let a,m;L(O(7,Hs,((a=i.service().values)==null?null:a.Active)&&!("CurrentAirPurifierState"in i.service().values)||((a=i.service().values)==null?null:a.Active)&&"CurrentAirPurifierState"in i.service().values&&((a=i.service().values)==null?null:a.CurrentAirPurifierState)!==0||((a=i.service().values)==null?null:a.On),((a=i.service().values)==null?null:a.Active)&&!("CurrentAirPurifierState"in i.service().values)||((a=i.service().values)==null?null:a.Active)&&"CurrentAirPurifierState"in i.service().values&&((a=i.service().values)==null?null:a.CurrentAirPurifierState)===2||((a=i.service().values)==null?null:a.On))),o(2),y("aria-label",d(3,5,"accessories.core.air_purifier")),o(17),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.Active&&!("CurrentAirPurifierState"in i.service().values)||(m=i.service().values)!=null&&m.Active&&"CurrentAirPurifierState"in i.service().values&&((m=i.service().values)==null?null:m.CurrentAirPurifierState)===2||(m=i.service().values)!=null&&m.On?20:(m=i.service().values)!=null&&m.Active&&!("CurrentAirPurifierState"in i.service().values)||(m=i.service().values)!=null&&m.Active&&"CurrentAirPurifierState"in i.service().values&&((m=i.service().values)==null?null:m.CurrentAirPurifierState)===1||(m=i.service().values)!=null&&m.On?21:22)}},dependencies:[X,w],styles:[".purifying svg .air-wave{animation:_ngcontent-%COMP%_wave-motion 5s ease-in-out infinite;stroke:#1976d2;stroke-opacity:.5} .purifying svg .bottom-line{animation-delay:.4s}@keyframes _ngcontent-%COMP%_wave-motion{0%,to{transform:translateY(0);stroke-opacity:.5}50%{transform:translateY(2px);stroke-opacity:1}}"]})}return e})();var Gs=()=>[3,4],qs=()=>[1,2],zs=(e,r,t,n)=>({"accessory-on":e,"fill-red":r,"fill-orange":t,"fill-green":n}),Ys=(e,r)=>({"grey-text":e,"red-text":r}),no=(()=>{class e{service=E.required();labels=["Unknown","Excellent","Good","Fair","Inferior","Poor"];static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-air-quality-sensor"]],inputs:{service:[1,"service"]},decls:25,vars:19,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(5.1, 3) scale(0.68)"],["fill","#7f7f7f","d","M10.1435881,25.4905179 C10.286009,26.7050605 10.531254,27.9706077 10.8919121,29.2887103 C6.25942062,27.4175104 3.57173247,24.180341 2.39781526,19.889403 C1.54190101,16.760839 1.56931096,13.3702525 2.13724518,10.1783222 C2.1501971,10.1055292 2.17646546,9.96330988 2.17646546,9.96330988 C2.17646546,9.96330988 2.33770347,10.0208429 2.92620872,10.2769757 C4.60998953,11.0098007 6.29364519,11.9318703 7.85704035,13.0517448 C9.19214306,14.0080913 10.3087445,15.0188915 11.223018,16.0899229 L11.223018,16.0899229 C10.426841,18.1910249 9.96797687,20.5297906 9.99206994,23.1241613 L5.43414987,14.7605739 C5.30203551,14.5181498 4.99858593,14.4288208 4.75637627,14.5610522 C4.51416661,14.6932836 4.42491674,14.9970019 4.5570311,15.2394261 L10.1435881,25.4905179 Z M13.0333542,29.4136738 C10.9912074,19.9059085 11.088992,14.922477 21.5133004,6.73565972 C23.6127007,5.0868782 25.9746706,4.01306759 28.2881453,3.03596757 C29.0967374,2.69445726 29.3182746,2.61774651 29.3182746,2.61774651 C29.3182746,2.61774651 29.3543667,2.80737221 29.3721623,2.90442957 C30.1524904,7.1603367 30.190151,11.6811187 29.0141452,15.8525373 C27.1508473,22.4618551 22.5118613,27.1961122 14.1841552,29.413553 L25.4116309,9.74806947 C25.5485147,9.50831075 25.46529,9.20288341 25.2257434,9.06587843 C24.9861969,8.92887344 24.6810398,9.01217181 24.544156,9.25193053 L13.0333542,29.4136738 Z M13.4880693,32 C38.9655056,25.5 30.755735,0 30.755735,0 C30.755735,0 17.0308715,3.72274828 11.9893965,14.5 C7.99293593,9 0.873098889,8 0.873098889,8 C-3.99644586,30.5 13.4880693,32 13.4880693,32 Z",1,"leaves"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),p(24),b()()()),n&2){let a,m,A;L(Lt(11,zs,((a=i.service().values)==null?null:a.AirQuality)===5,((a=i.service().values)==null?null:a.AirQuality)===5,we(9,Gs).includes((a=i.service().values)==null?null:a.AirQuality),we(10,qs).includes((a=i.service().values)==null?null:a.AirQuality))),o(2),y("aria-label",d(3,7,"accessories.core.air_quality_sensor")),o(20),v(i.service().customName||i.service().serviceName),o(),L(O(16,Ys,((m=i.service().values)==null?null:m.AirQuality)<5,((m=i.service().values)==null?null:m.AirQuality)===5)),o(),g(" ",i.labels[((A=i.service().values)==null?null:A.AirQuality)||0]," ")}},dependencies:[w],styles:[".fill-red svg .leaves{fill:#d32f2f!important;fill-opacity:.5!important} .fill-orange svg .leaves{fill:#ff9800!important;fill-opacity:.5!important} .fill-green svg .leaves{fill:#4caf50!important;fill-opacity:.5!important}"]})}return e})();function Ks(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_notcharging")," ")}function Zs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_charging")," ")}function Qs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_notchargeable")," ")}function Js(e,r){e&1&&(x(0,"span",10),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.battery_low")))}function Xs(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.battery_charged")," ")}function el(e,r){if(e&1&&h(0,Qs,2,3)(1,Js,3,3,"span",10)(2,Xs,2,3),e&2){let t,n=u(2);C(((t=n.service().values)==null?null:t.ChargingState)===2?0:((t=n.service().values)==null?null:t.StatusLowBattery)===1||((t=n.service().values)==null?null:t.BatteryLevel)===0?1:2)}}function tl(e,r){if(e&1&&h(0,Zs,2,3)(1,el,3,1),e&2){let t,n=u();C(((t=n.service().values)==null?null:t.ChargingState)===1?0:1)}}var oo=(()=>{class e{service=E.required();Math=Math;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-battery"]],inputs:{service:[1,"service"]},decls:15,vars:11,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","5","height","13","rx","2","stroke","none","stroke-width","0"],["x","29.5","y","8","width","2","height","7","rx","2","stroke","none","fill","#7f7f7f","stroke-width","1"],["x","1","y","5","width","29","height","13","rx","2","stroke","#7f7f7f","fill","none","stroke-width","0.75"],["x","16","y","28","font-size","9","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"red-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"rect",5)(7,"rect",6),x(8,"text",7),p(9),b()()(),N(),x(10,"div",8),p(11),b(),x(12,"div",9),h(13,Ks,2,3)(14,tl,2,1),b()()()),n&2){let a,m,A,q,z,ce;j("accessory-on",((a=i.service().values)==null?null:a.ChargingState)===1),o(2),y("aria-label",d(3,9,"accessories.core.battery")),o(3),y("width",i.Math.round(29/100*(((m=i.service().values)==null?null:m.BatteryLevel)||0)))("fill",((A=i.service().values)==null?null:A.ChargingState)===1?"#4caf50":((A=i.service().values)==null?null:A.StatusLowBattery)===1?"#e69533":"#808080")("fill-opacity",((q=i.service().values)==null?null:q.ChargingState)===1||((q=i.service().values)==null?null:q.StatusLowBattery)===1?"0.5":"1"),o(4),g(" ",((z=i.service().values)==null?null:z.BatteryLevel)||0,"% "),o(2),v(i.service().customName||i.service().serviceName),o(2),C(((ce=i.service().values)==null?null:ce.ChargingState)===0?13:14)}},dependencies:[w],styles:['.batterylevel-battery[_ngcontent-%COMP%]{position:relative;width:75px;height:30px;border:1px solid rgb(128,128,128);border-radius:4px;margin-bottom:6px;text-align:center;display:flex;align-items:center;justify-content:center;color:#d3d3d3;font-size:14px}.batterylevel-battery[_ngcontent-%COMP%]:after{content:"";position:absolute;top:7px;right:-6px;width:6px;height:13px;background-color:gray;border-radius:2px}.batterylevel-battery[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;background-color:gray;z-index:1;transition:width .3s ease-in-out}.batterylevel-battery[_ngcontent-%COMP%] .battery-text[_ngcontent-%COMP%]{position:relative;z-index:2}.batterylevel-battery[_ngcontent-%COMP%] .battery-over[_ngcontent-%COMP%]{color:#d3d3d3}.batterylevel-battery[_ngcontent-%COMP%] .battery-under[_ngcontent-%COMP%]{color:gray}@media(max-width:575px){.batterylevel-battery[_ngcontent-%COMP%]{width:50px;height:25px;font-size:12px}.batterylevel-battery[_ngcontent-%COMP%]:after{top:4px}}.lowbattery[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{background-color:#e69533}.charging[_ngcontent-%COMP%] .battery-level-fill[_ngcontent-%COMP%]{background-color:#4caf50}']})}return e})();function il(e,r){e&1&&(x(0,"div",16),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function nl(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var ro=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-dioxide-sensor"]],inputs:{service:[1,"service"]},decls:21,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["d","M3,24.0706147 C3.28945166,24.8007217 5.978098,25.1773883 10.0660175,25.2006147 C12.5085124,25.2144929 18.5053297,22.8514837 22.4060749,22.1943647 C24.1588716,21.898084 26.5955382,22.1756219 28.716875,23.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],["d","M3,30.0706147 C3.28945166,30.8007217 5.978098,31.1773883 10.0660175,31.2006147 C12.5085124,31.2144929 18.5053297,28.8514837 22.4060749,28.1943647 C24.1588716,27.898084 26.5955382,28.1756219 28.716875,29.0221772","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," CO2 "),b(),F(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"path",13)(16,"path",14),b()(),N(),x(17,"div",15),p(18),b(),h(19,il,3,3,"div",16)(20,nl,3,3,"div",17),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.CarbonDioxideDetected),o(2),y("aria-label",d(3,5,"accessories.core.carbon_dioxide_sensor")),o(16),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.CarbonDioxideDetected?19:20)}},dependencies:[w],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();function ol(e,r){e&1&&(x(0,"div",16),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function rl(e,r){e&1&&(x(0,"div",17),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var ao=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-carbon-monoxide-sensor"]],inputs:{service:[1,"service"]},decls:21,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","30","height","12","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.25"],["text-anchor","middle","dominant-baseline","middle","font-family","Arial","font-size","7.5","x","16","y","7.7","fill","#7f7f7f","stroke-width","0.6","font-weight","900",1,"type"],["x1","6","y1","14.5","x2","25.5","y2","14.5","stroke","#1976d2","stroke-opacity","0.5","stroke-width","2"],["stroke-linecap","round","x1","5","y1","13","x2","6.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","11","y1","13","x2","11","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","15.5","y1","13","x2","15.5","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","20","y1","13","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","26","y1","13","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["stroke-linecap","round","x1","6.5","y1","16","x2","24.5","y2","16","stroke","#7f7f7f","stroke-width","1.25"],["d","M3,23 C6,25 9,21 12,23 C15,25 18,21 21,23 C24,25 27,21 30,23","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],["d","M3,30 C6,32 9,28 12,30 C15,32 18,28 21,30 C24,32 27,28 30,30","stroke","#7f7f7f","fill","transparent","stroke-width","1.5","stroke-linecap","round",1,"air-line"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"text",5),p(7," CO "),b(),F(8,"line",6)(9,"line",7)(10,"line",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"path",13)(16,"path",14),b()(),N(),x(17,"div",15),p(18),b(),h(19,ol,3,3,"div",16)(20,rl,3,3,"div",17),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.CarbonMonoxideDetected),o(2),y("aria-label",d(3,5,"accessories.core.carbon_monoxide_sensor")),o(16),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.CarbonMonoxideDetected?19:20)}},dependencies:[w],styles:[".accessory-on svg .air-line{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite} .accessory-on svg .type{fill:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{opacity:1}50%{opacity:.2}}"]})}return e})();function al(e,r){e&1&&(x(0,"div",9),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function sl(e,r){e&1&&(x(0,"div",10),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}var so=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-contact-sensor"]],inputs:{service:[1,"service"]},decls:13,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","1","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"left-object"],["x","16","y","1","width","15","height","30","rx","1","stroke","#7f7f7f","fill","none","stroke-width","1.5",1,"right-object"],["x","10","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"left-sensor"],["x","16","y","11","width","6","height","10","rx","1","stroke","#7f7f7f","fill","#4caf50","fill-opacity","0.5","stroke-width","0.5",1,"right-sensor"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),b()(),N(),x(9,"div",8),p(10),b(),h(11,al,3,3,"div",9)(12,sl,3,3,"div",10),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.ContactSensorState),o(2),y("aria-label",d(3,5,"accessories.core.contact_sensor")),o(8),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.ContactSensorState?11:12)}},dependencies:[w],styles:[".accessory-on svg .left-sensor{fill:#ff9800;fill-opacity:.5} .accessory-on svg .right-object{x:24px} .accessory-on svg .right-sensor{x:24px;fill:#ff9800;fill-opacity:.5}"]})}return e})();function ll(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.closed")," ")}function cl(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t=u(2);$(" ",d(1,2,"accessories.control.open")," ",t.service.getCharacteristic("CurrentPosition").value,"% ")}}function dl(e,r){if(e&1&&h(0,ll,2,3)(1,cl,2,4),e&2){let t=u();C((t.service.values==null?null:t.service.values.CurrentPosition)===0?0:1)}}function pl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.opening"),"... ")}function ml(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.closing"),"... ")}var lo=(()=>{class e extends he{targetMode;targetPositionChanged=new ee;targetPosition;setupComponent(){this.createDebouncedSubscription(this.targetPositionChanged,()=>{this.service.getCharacteristic("CurrentPosition").value<this.targetPosition.value?this.service.values.PositionState=1:this.service.getCharacteristic("CurrentPosition").value>this.targetPosition.value&&(this.service.values.PositionState=0),this.service.getCharacteristic("TargetPosition").setValue(this.targetPosition.value)}),this.targetMode=this.service.values.On,this.loadTargetPosition()}handleAccessoryUpdate(){this.targetMode=this.service.values.On,this.targetPosition&&(this.targetPosition.value=this.service.getCharacteristic("TargetPosition")?.value)}onTargetPositionChange(){this.targetPositionChanged.next(this.targetPosition.value)}loadTargetPosition(){let t=this.service.getCharacteristic("TargetPosition");t&&(this.targetPosition={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:34,vars:34,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"d-flex","justify-content-center","mb-0","p-0"],[1,"mb-0","mx-0","p-3","btn-read","w-100"],[1,"mt-4"],[1,"mb-1",3,"ngModelChange","min","max","step","ngModel"],[1,"d-flex","justify-content-between","align-items-center","mt-0","mb-1"],[1,"grey-text","small"],[1,"mb-1",3,"ngModelChange","min","max","step","disabled","ngModel"],[1,"modal-footer"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"div",5)(7,"div",6),h(8,dl,2,1)(9,pl,2,3)(10,ml,2,3),c()(),s(11,"h6",7),p(12),l(13,"translate"),c(),s(14,"nouislider",8),J("ngModelChange",function(m){return Q(i.targetPosition.value,m)||(i.targetPosition.value=m),m}),S("ngModelChange",function(){return i.onTargetPositionChange()}),c(),s(15,"div",9)(16,"span",10),p(17),l(18,"translate"),c(),s(19,"span",10),p(20),l(21,"translate"),c()(),s(22,"h6",7),p(23),l(24,"translate"),c(),s(25,"nouislider",11),J("ngModelChange",function(m){return Q(i.service.getCharacteristic("CurrentPosition").value,m)||(i.service.getCharacteristic("CurrentPosition").value=m),m}),c(),s(26,"div",9)(27,"span",10),p(28),l(29,"translate"),c(),s(30,"span",10),p(31),l(32,"translate"),c()()(),f(33,"div",12),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,20,"form.button_close")),o(5),C((i.service.values==null?null:i.service.values.PositionState)===2?8:(i.service.values==null?null:i.service.values.PositionState)===1?9:(i.service.values==null?null:i.service.values.PositionState)===0?10:-1),o(4),$("",d(13,22,"accessories.control.target"),": ",i.targetPosition.value,"%"),o(2),T("min",i.targetPosition.min)("max",i.targetPosition.max)("step",i.targetPosition.step),Z("ngModel",i.targetPosition.value),o(3),v(d(18,24,"accessories.control.closed")),o(3),v(d(21,26,"accessories.control.open")),o(3),$(" ",d(24,28,"accessories.control.current"),": ",i.service.getCharacteristic("CurrentPosition").value,"% "),o(2),T("min",0)("max",100)("step",1)("disabled",!0),Z("ngModel",i.service.getCharacteristic("CurrentPosition").value),o(3),v(d(29,30,"accessories.control.closed")),o(3),v(d(32,32,"accessories.control.open")))},dependencies:[me,le,de,pe,w],encapsulation:2,changeDetection:0})}return e})();function ul(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.closed")," ")}function fl(e,r){if(e&1&&(p(0),l(1,"translate")),e&2){let t,n=u(2);$(" ",d(1,2,"accessories.control.open")," ",(t=n.service().values)==null?null:t.CurrentPosition,"% ")}}function vl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.open")," ")}function gl(e,r){if(e&1&&(s(0,"div",11),h(1,ul,2,3),h(2,fl,2,4),h(3,vl,2,3),c()),e&2){let t,n,i,a=u();o(),C(((t=a.service().values)==null?null:t.CurrentPosition)===0?1:-1),o(),C(((n=a.service().values)==null?null:n.CurrentPosition)>0&&((n=a.service().values)==null?null:n.CurrentPosition)<100?2:-1),o(),C(((i=a.service().values)==null?null:i.CurrentPosition)===100?3:-1)}}function hl(e,r){e&1&&(s(0,"div",12),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.opening"),"..."))}function Cl(e,r){e&1&&(s(0,"div",12),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.closing"),"..."))}var co=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);onClick(){this.readyForControl()&&(this.service().values.TargetPosition?this.service().getCharacteristic("TargetPosition").setValue(0):this.service().getCharacteristic("TargetPosition").setValue(100))}onLongClick(){if(!this.readyForControl())return;let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(lo,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-door"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:16,vars:7,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","7.8","y","0.8","width","16.4","height","30.2","rx","0.5","stroke","#7f7f7f","fill","none","stroke-width","1.5"],["x","9.6","y","2.6","width","12.8","height","26.6","stroke","#7f7f7f","fill","none","stroke-width","1",1,"outline"],["x","11.2","y","4.2","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x","11.2","y","16.8","width","9.6","height","10.8","stroke","#7f7f7f","fill-opacity","0","stroke-width","0.5","rx","0.25",1,"panel"],["x1","0","y1","31","x2","32","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x","19.25","y","15.87","width","1.55","height","0.05","stroke","#1976d2","fill","none","stroke-width","0.5","rx","10",1,"handle"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","red-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7)(9,"line",8)(10,"rect",9),c()(),N(),s(11,"div",10),p(12),c(),h(13,gl,4,3,"div",11)(14,hl,3,3,"div",12)(15,Cl,3,3,"div",12),c()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.CurrentPosition),o(2),y("aria-label",d(3,5,"accessories.core.door")),o(10),v(i.service().customName||i.service().serviceName),o(),C(((m=i.service().values)==null?null:m.PositionState)===2?13:((m=i.service().values)==null?null:m.PositionState)===1?14:((m=i.service().values)==null?null:m.PositionState)===0?15:-1)}},dependencies:[X,w],styles:["svg .outline{transition:width 3s ease;width:12.8px} svg .panel{transition:width 3s ease;width:9.6px} svg .handle{visibility:visible;opacity:1;transition:opacity 3s ease,visibility 0s linear 3s} .accessory-on svg .outline{transition:width 3s ease;width:3.8px} .accessory-on svg .panel{transition:width 3s ease;width:.6px} .accessory-on svg .handle{visibility:hidden;opacity:0;transition:opacity 3s ease,visibility 0s linear 0s}"]})}return e})();var St=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function _l(e,r){if(e&1){let t=G();s(0,"div",5),l(1,"translate"),s(2,"button",7),S("click",function(i){V(t);let a=u();return P(a.setActive(0,i))}),s(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),s(7,"div",10),f(8,"i",11),c()(),s(9,"button",7),S("click",function(i){V(t);let a=u();return P(a.setActive(1,i))}),s(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),s(14,"div",10),f(15,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,7,"accessories.control.mode_control")),o(4),L(O(13,St,(t.service.values==null?null:t.service.values.Active)===0,(t.service.values==null?null:t.service.values.Active)!==0)),o(),g(" ",d(6,9,"accessories.control.off")," "),o(6),L(O(16,St,(t.service.values==null?null:t.service.values.Active)===1,(t.service.values==null?null:t.service.values.Active)!==1)),o(),g(" ",d(13,11,"accessories.control.on")," ")}}function yl(e,r){if(e&1){let t=G();s(0,"div",5),l(1,"translate"),s(2,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetState(0,i))}),s(3,"div",8),f(4,"i",9),c(),p(5),l(6,"translate"),s(7,"div",10),f(8,"i",11),c()(),s(9,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetState(1,i))}),s(10,"div",8),f(11,"i",9),c(),p(12),l(13,"translate"),s(14,"div",10),f(15,"i",11),c()(),s(16,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetState(2,i))}),s(17,"div",8),f(18,"i",9),c(),p(19),l(20,"translate"),s(21,"div",10),f(22,"i",11),c()()()}if(e&2){let t=u();y("aria-label",d(1,10,"accessories.control.media_control")),o(4),L(O(18,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===0,(t.service.values==null?null:t.service.values.CurrentMediaState)!==0)),o(),g(" ",d(6,12,"accessories.control.play")," "),o(6),L(O(21,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===1,(t.service.values==null?null:t.service.values.CurrentMediaState)!==1)),o(),g(" ",d(13,14,"accessories.control.pause")," "),o(6),L(O(24,St,(t.service.values==null?null:t.service.values.CurrentMediaState)===2,(t.service.values==null?null:t.service.values.CurrentMediaState)!==2)),o(),g(" ",d(20,16,"accessories.control.stop")," ")}}function xl(e,r){if(e&1){let t=G();s(0,"h6"),p(1),l(2,"translate"),c(),s(3,"div",12),l(4,"translate"),s(5,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetMode(!1,i))}),s(6,"div",8),f(7,"i",9),c(),p(8),l(9,"translate"),s(10,"div",10),f(11,"i",11),c()(),s(12,"button",7),S("click",function(i){V(t);let a=u();return P(a.setTargetMode(!0,i))}),s(13,"div",8),f(14,"i",9),c(),p(15),l(16,"translate"),s(17,"div",10),f(18,"i",11),c()()()}if(e&2){let t=u();o(),g(" ",d(2,8,"Active"in t.service.values||"TargetMediaState"in t.service.values?"accessories.control.speaker_volume":"menu.label_status")," "),o(2),y("aria-label",d(4,10,"accessories.control.mute_control")),o(4),L(O(16,St,!t.targetMode,t.targetMode)),o(),g(" ",d(9,12,"accessories.control.not_mute")," "),o(6),L(O(19,St,t.targetMode,!t.targetMode)),o(),g(" ",d(16,14,"accessories.control.mute")," ")}}function Sl(e,r){if(e&1){let t=G();s(0,"h6",13),p(1),l(2,"translate"),c(),s(3,"nouislider",14),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetVolume.value,i)||(a.targetVolume.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onVolumeStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.speaker_volume"),": ",t.targetVolume.value,"%"),o(2),T("min",t.targetVolume.min)("max",t.targetVolume.max)("step",t.targetVolume.step),Z("ngModel",t.targetVolume.value)}}var po=(()=>{class e extends he{targetMode;targetVolume;targetVolumeChanged=new ee;setupComponent(){this.createDebouncedSubscription(this.targetVolumeChanged,()=>{this.service.getCharacteristic("Volume").setValue(this.targetVolume.value)}),this.targetMode=this.service.values.Mute,this.loadTargetVolume()}handleAccessoryUpdate(){this.targetMode=this.service.values.Mute,this.targetVolume&&(this.targetVolume.value=this.service.getCharacteristic("Volume")?.value)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("Mute").setValue(this.targetMode),this.blurTarget(n)}setActive(t,n){this.service.getCharacteristic("Active").setValue(t),this.blurTarget(n)}setTargetState(t,n){this.service.getCharacteristic("TargetMediaState").setValue(t),this.blurTarget(n)}onVolumeStateChange(){this.targetVolumeChanged.next(this.targetVolume.value)}loadTargetVolume(){let t=this.service.getCharacteristic("Volume");t&&(this.targetVolume={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #ffffff, #ffd966, #ff0000)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:11,vars:7,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[1,"modal-footer"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],[1,"mt-4","mb-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4),h(6,_l,16,19,"div",5)(7,yl,23,27,"div",5),h(8,xl,19,22),h(9,Sl,4,8),c(),f(10,"div",6),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,5,"form.button_close")),o(3),C("Active"in i.service.values?6:"TargetMediaState"in i.service.values?7:-1),o(2),C("Mute"in i.service.values?8:-1),o(),C(i.targetVolume?9:-1))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();var kl=()=>[0,1],bl=(e,r)=>({"accessory-on":e,paused:r}),Tl=()=>["Speaker","SmartSpeaker"];function Ml(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.play")," ")}function Bl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.pause")," ")}function wl(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.stop")," ")}function El(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" \xB7 ",d(1,1,"accessories.control.mute")," ")}function Dl(e,r){if(e&1&&p(0),e&2){let t,n=u(3);g(" \xB7 ",(t=n.service().values)==null?null:t.Volume,"% ")}}function Al(e,r){if(e&1&&h(0,Dl,1,1),e&2){let t=u(2);C("Volume"in t.service().values?0:-1)}}function Il(e,r){if(e&1&&(s(0,"div",7),h(1,Ml,2,3)(2,Bl,2,3)(3,wl,2,3),h(4,El,2,3)(5,Al,1,1),c()),e&2){let t,n,i=u();o(),C((t=(t=i.service().values)==null?null:t.CurrentMediaState)===0?1:t===1?2:t===2?3:-1),o(3),C("Mute"in i.service().values&&((n=i.service().values)!=null&&n.Mute)?4:5)}}function Ll(e,r){e&1&&(f(0,"div",8),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.off"))}function Fl(e,r){e&1&&(f(0,"div",8),l(1,"translate")),e&2&&T("innerText",d(1,1,"accessories.control.mute"))}function Vl(e,r){if(e&1&&(s(0,"div",7),p(1),c()),e&2){let t,n=u();o(),g("",(t=n.service().values)==null?null:t.Volume,"%")}}function Pl(e,r){e&1&&(s(0,"div",7),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.on")))}function Ol(e,r){e&1&&(s(0,"div",7),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.core.doorbell")))}var mo=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active===0?1:0):"TargetMediaState"in this.service().values?this.service().getCharacteristic("TargetMediaState").setValue(this.service().values.TargetMediaState===0?1:0):"Mute"in this.service().values&&this.service().getCharacteristic("Mute").setValue(!this.service().values.Mute))}onLongClick(){if(this.readyForControl()&&("Active"in this.service().values||"TargetMediaState"in this.service().values||"Volume"in this.service().values||"Mute"in this.service().values)){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(po,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-doorbell"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:15,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","6","y","1","width","18","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","2"],["cx","15","cy","16","r","5","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"rect",4)(6,"circle",5),c()(),N(),s(7,"div",6),p(8),c(),h(9,Il,6,2,"div",7)(10,Ll,2,3,"div",8)(11,Fl,2,3,"div",8)(12,Vl,2,1,"div",7)(13,Pl,3,3,"div",7)(14,Ol,3,3,"div",7),c()()),n&2){let a,m;L(O(8,bl,"Active"in i.service().values?(a=i.service().values)==null?null:a.Active:"CurrentMediaState"in i.service().values?we(7,kl).includes((a=i.service().values)==null?null:a.CurrentMediaState):"Mute"in i.service().values&&"Volume"in i.service().values?!((a=i.service().values)!=null&&a.Mute)&&((a=i.service().values)==null?null:a.Volume)>0:"Mute"in i.service().values&&!((a=i.service().values)!=null&&a.Mute),"CurrentMediaState"in i.service().values&&((a=i.service().values)==null?null:a.CurrentMediaState)===1)),o(2),y("aria-label",d(3,5,"accessories.core.doorbell")),o(6),v(i.service().customName||i.service().serviceName),o(),C("CurrentMediaState"in i.service().values?9:"Active"in i.service().values&&!((m=i.service().values)!=null&&m.Active)?10:"Mute"in i.service().values&&((m=i.service().values)!=null&&m.Mute)?11:"Volume"in i.service().values?12:we(11,Tl).includes(i.service().customType||i.service().type)?13:14)}},dependencies:[X,w],encapsulation:2})}return e})();var di=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function Nl(e,r){if(e&1){let t=G();s(0,"h6",12),p(1),l(2,"translate"),c(),s(3,"div",13),l(4,"translate"),s(5,"button",6),S("click",function(i){V(t);let a=u();return P(a.setRotationDirection(0,i))}),s(6,"div",7),f(7,"i",8),c(),p(8),l(9,"translate"),s(10,"div",9),f(11,"i",10),c()(),s(12,"button",6),S("click",function(i){V(t);let a=u();return P(a.setRotationDirection(1,i))}),s(13,"div",7),f(14,"i",8),c(),p(15),l(16,"translate"),s(17,"div",9),f(18,"i",10),c()()()}if(e&2){let t=u();o(),v(d(2,8,"accessories.control.rotation_direction")),o(2),y("aria-label",d(4,10,"accessories.control.direction_control")),o(4),L(O(16,di,(t.service.values==null?null:t.service.values.RotationDirection)===0,(t.service.values==null?null:t.service.values.RotationDirection)!==0)),o(),g(" ",d(9,12,"accessories.control.rotation_clockwise")," "),o(6),L(O(19,di,(t.service.values==null?null:t.service.values.RotationDirection)===1,(t.service.values==null?null:t.service.values.RotationDirection)!==1)),o(),g(" ",d(16,14,"accessories.control.rotation_c_clockwise")," ")}}function Hl(e,r){e&1&&p(0,"%")}function Rl(e,r){if(e&1){let t=G();s(0,"h6",12),p(1),l(2,"translate"),h(3,Hl,1,0),c(),s(4,"nouislider",14),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetRotationSpeed.value,i)||(a.targetRotationSpeed.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onTargetRotationSpeedChange())}),c()}if(e&2){let t=u();o(),$(" ",d(2,7,"accessories.control.rotation_speed"),": ",t.targetRotationSpeed.value),o(2),C(t.targetRotationSpeed.unit==="percentage"?3:-1),o(),T("min",t.targetRotationSpeed.min)("max",t.targetRotationSpeed.max)("step",t.targetRotationSpeed.step),Z("ngModel",t.targetRotationSpeed.value)}}var uo=(()=>{class e extends he{targetMode;targetRotationSpeed;targetRotationSpeedChanged=new ee;hasRotationDirection=!1;setupComponent(){this.createDebouncedSubscription(this.targetRotationSpeedChanged,()=>{this.service.getCharacteristic("RotationSpeed").setValue(this.targetRotationSpeed.value),this.targetRotationSpeed.value&&!this.targetMode?(this.targetMode=!0,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0)):!this.targetRotationSpeed.value&&this.targetMode&&(this.targetMode=!1,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0))}),this.targetMode="On"in this.service.values?this.service.values.On:this.service.values.Active===1,this.loadRotationSpeed(),"RotationDirection"in this.service.values&&(this.hasRotationDirection=!0)}handleAccessoryUpdate(){this.targetMode="On"in this.service.values?this.service.values.On:this.service.values.Active===1,this.targetRotationSpeed&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed")?.value)}setTargetMode(t,n){this.targetMode=t,"On"in this.service.values?this.service.getCharacteristic("On").setValue(this.targetMode):"Active"in this.service.values&&this.service.getCharacteristic("Active").setValue(this.targetMode?1:0),this.targetMode&&this.targetRotationSpeed&&!this.targetRotationSpeed.value&&(this.targetRotationSpeed.value=this.service.getCharacteristic("RotationSpeed").maxValue),this.blurTarget(n)}onTargetRotationSpeedChange(){this.targetRotationSpeedChanged.next(this.targetRotationSpeed.value)}setRotationDirection(t,n){this.service.getCharacteristic("RotationDirection").setValue(t),this.blurTarget(n)}loadRotationSpeed(){let t=this.service.getCharacteristic("RotationSpeed");t&&(this.targetRotationSpeed={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep,unit:t.unit},this.applySliderGradient("linear-gradient(to right, #add8e6, #416bdf)"))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:25,vars:25,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"div",5),l(7,"translate"),s(8,"button",6),S("click",function(m){return i.setTargetMode(!1,m)}),s(9,"div",7),f(10,"i",8),c(),p(11),l(12,"translate"),s(13,"div",9),f(14,"i",10),c()(),s(15,"button",6),S("click",function(m){return i.setTargetMode(!0,m)}),s(16,"div",7),f(17,"i",8),c(),p(18),l(19,"translate"),s(20,"div",9),f(21,"i",10),c()()(),h(22,Nl,19,22),h(23,Rl,5,9),c(),f(24,"div",11),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(3),y("aria-label",d(7,13,"accessories.control.mode_control")),o(4),L(O(19,di,!i.targetMode,i.targetMode)),o(),g(" ",d(12,15,"accessories.control.off")," "),o(6),L(O(22,di,i.targetMode,!i.targetMode)),o(),g(" ",d(19,17,"accessories.control.on")," "),o(4),C(i.hasRotationDirection?22:-1),o(),C(i.targetRotationSpeed?23:-1))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();var $l=(e,r)=>({spin:e,"spin-counter":r});function jl(e,r){if(e&1&&(s(0,"div",8),p(1),c()),e&2){let t,n=u();o(),$("",(t=n.service().values)==null?null:t.RotationSpeed,"",n.rotationSpeedUnit)}}function Ul(e,r){if(e&1&&(f(0,"div",9),l(1,"translate")),e&2){let t,n=u();T("innerText",d(1,1,(t=n.service().values)!=null&&t.On||(t=n.service().values)!=null&&t.Active?"accessories.control.on":"accessories.control.off"))}}var fo=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);rotationSpeedUnit="";hasRotationDirection=!1;ngOnInit(){"RotationSpeed"in this.service().values&&this.service().serviceCharacteristics.find(n=>n.type==="RotationSpeed").unit==="percentage"&&(this.rotationSpeedUnit="%"),"RotationDirection"in this.service().values&&(this.hasRotationDirection=!0)}onClick(){this.readyForControl()&&("On"in this.service().values?this.service().getCharacteristic("On").setValue(!this.service().values.On):"Active"in this.service().values&&this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1),"RotationSpeed"in this.service().values&&!this.service().values.On&&!this.service().values.RotationSpeed&&(this.service().values.RotationSpeed=this.service().getCharacteristic("RotationSpeed").maxValue))}onLongClick(){if(this.readyForControl()&&("RotationSpeed"in this.service().values||"RotationDirection"in this.service().values)){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(uo,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-fan"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:12,vars:12,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-0.85, 0.2) scale(0.99)"],["fill","#7f7f7f","fill-rule","evenodd","clip-rule","evenodd","d","M20.988 10.265c.382-.596.951-1.424 1.844-2.71C25.462 3.61 23.456 0 18 0c-6.263 0-10.09 5.649-6.835 11.923-.594-.382-1.416-.948-2.682-1.826-3.945-2.63-7.555-.625-7.555 4.832 0 6.308 5.73 10.145 12.057 6.763-.383.599-.958 1.436-1.872 2.753C8.485 28.39 10.49 32 15.947 32c6.267 0 10.095-5.655 6.83-11.932.593.382 1.412.946 2.668 1.818 3.945 2.63 7.555.625 7.555-4.832 0-6.293-5.703-10.127-12.012-6.788Zm-.407 2.602C26.101 8.924 31 11.805 31 17.053c0 3.877-1.845 4.902-4.445 3.169-2.525-1.761-3.46-2.385-4.406-2.763a7.87 7.87 0 0 0-1.01-.317c.105-.382.161-.785.161-1.2 0-1.327-.919-3.134-.919-3.134ZM18.405 10.85c.378-.946 1.001-1.88 2.763-4.405C22.902 3.845 21.877 2 18 2c-5.247 0-8.129 4.899-4.186 10.419 0 0 1.89-.919 3.186-.919.398 0 .783.052 1.15.149.064-.269.149-.533.255-.798ZM11.78 14.524c-.946-.378-1.88-1.001-4.405-2.763-2.6-1.734-4.445-.709-4.445 3.168 0 5.247 4.899 8.129 10.419 4.186 0 0-.848-1.812-.848-3.115 0-.416.057-.819.163-1.201a7.81 7.81 0 0 0-1.183-.275Zm3.763 6.625c-.378.946-1.001 1.88-2.763 4.405-1.734 2.6-.709 4.445 3.168 4.445 5.248 0 8.13-4.899 4.187-10.419 0 0-1.831.919-3.133.919-.416 0-.819-.057-1.201-.162a7.802 7.802 0 0 0-.258.812ZM17 19.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5-1.567 3.5-3.5 3.5Z",1,"fan-blades"],["cx","16","cy","16","r","3.6","stroke","#7f7f7f","stroke-width","2","fill","#1976d2","fill-opacity","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"accessory-label","grey-text",3,"innerText"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3)(5,"g",4),f(6,"path",5),c(),f(7,"circle",6),c()(),N(),s(8,"div",7),p(9),c(),h(10,jl,2,2,"div",8)(11,Ul,2,3,"div",9),c()()),n&2){let a,m,A;j("accessory-on",((a=i.service().values)==null?null:a.On)||((a=i.service().values)==null?null:a.Active)),o(2),L(O(9,$l,(((m=i.service().values)==null?null:m.On)||((m=i.service().values)==null?null:m.Active))&&(!i.hasRotationDirection||i.hasRotationDirection&&((m=i.service().values)==null?null:m.RotationDirection)===0),(((m=i.service().values)==null?null:m.On)||((m=i.service().values)==null?null:m.Active))&&i.hasRotationDirection&&((m=i.service().values)==null?null:m.RotationDirection)===1)),y("aria-label",d(3,7,"accessories.core.fan")),o(7),v(i.service().customName||i.service().serviceName),o(),C((A=i.service().values)!=null&&A.On&&((A=i.service().values)!=null&&A.RotationSpeed)?10:11)}},dependencies:[X,w],styles:[".spin svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin 2s infinite linear;transform-origin:53.5% 50%} .spin-counter svg g .fan-blades{animation:_ngcontent-%COMP%_fa-spin-counter 2s infinite linear;transform-origin:53.5% 50%}@keyframes _ngcontent-%COMP%_fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes _ngcontent-%COMP%_fa-spin-counter{0%{transform:rotate(0)}to{transform:rotate(-359deg)}}"]})}return e})();var vo=(()=>{class e extends he{targetMode;setupComponent(){this.applySliderGradient("linear-gradient(to right, #d32f2f, #e69533, #42d672, #42d672)")}handleAccessoryUpdate(){}resetFilterLife(t){this.service.getCharacteristic("ResetFilterIndication").setValue(1),this.blurTarget(t)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],features:[ge],decls:16,vars:19,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mb-4"],[3,"min","max","step","disabled","ngModel"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mt-5","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"modal-footer"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"h6",5),p(7),l(8,"translate"),c(),f(9,"nouislider",6),s(10,"div",7),l(11,"translate"),s(12,"button",8),S("click",function(m){return i.resetFilterLife(m)}),p(13),l(14,"translate"),c()()(),f(15,"div",9),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,11,"form.button_close")),o(4),$("",d(8,13,"accessories.control.filter_level"),": ",i.service.values==null?null:i.service.values.FilterLifeLevel,"%"),o(2),T("min",0)("max",100)("step",1)("disabled",!0)("ngModel",i.service.values==null?null:i.service.values.FilterLifeLevel),o(),y("aria-label",d(11,15,"accessories.core.filter_maintenance")),o(3),g(" ",d(14,17,"form.button_reset")," "))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();var Wl=(e,r)=>({replace:e,dirty:r});function Gl(e,r){e&1&&(p(0," \xB7 "),s(1,"span",27),p(2),l(3,"translate"),c()),e&2&&(o(2),v(d(3,1,"accessories.control.replace")))}var go=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);onClick(){if(!this.readyForControl())return;let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(vo,{size:"md",backdrop:"static",injector:t})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-filter-maintenance"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:32,vars:13,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","16","cy","7","rx","11","ry","5","stroke","#7f7f7f","stroke-width","1.75","fill","#4caf50","fill-opacity","0.5",1,"status"],["cx","16","cy","7","rx","6","ry","2","stroke","#7f7f7f","stroke-width","1","fill","#e0e0e0","fill-opacity","1",1,"back"],["x1","5","y1","7","x2","5","y2","27.7","stroke","#7f7f7f","stroke-width","1.75"],["x1","27","y1","7","x2","27","y2","27.7","stroke","#7f7f7f","stroke-width","1.75"],["d","M4.7,27 A13,6.9 0 0,0 27.3,27","stroke","#7f7f7f","stroke-width","1.75","fill","none"],["x1","7","y1","10","x2","7","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","9","y1","11","x2","9","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","11","y1","12","x2","11","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","13","y1","12","x2","13","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","15","y1","12","x2","15","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","17","y1","12","x2","17","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","19","y1","12","x2","19","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","21","y1","12","x2","21","y2","30","stroke","#7f7f7f","stroke-width","1"],["x1","23","y1","11","x2","23","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","25","y1","10","x2","25","y2","29","stroke","#7f7f7f","stroke-width","1"],["x1","11","y1","6","x2","11","y2","8","stroke","#7f7f7f","stroke-width","1"],["x1","13","y1","5","x2","13","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","15","y1","5","x2","15","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","17","y1","5","x2","17","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","19","y1","5","x2","19","y2","9","stroke","#7f7f7f","stroke-width","1"],["x1","21","y1","6","x2","21","y2","8","stroke","#7f7f7f","stroke-width","1"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"red-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"ellipse",4)(6,"ellipse",5)(7,"line",6)(8,"line",7)(9,"path",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24),c()(),N(),s(26,"div",25),p(27),c(),s(28,"div",26)(29,"span"),p(30),c(),h(31,Gl,4,3),c()()()),n&2){let a,m,A,q;L(O(10,Wl,((a=i.service().values)==null?null:a.FilterChangeIndication)===1||((a=i.service().values)==null?null:a.FilterLifeLevel)<10,((a=i.service().values)==null?null:a.FilterChangeIndication)!==1&&((a=i.service().values)==null?null:a.FilterLifeLevel)<50)),o(2),y("aria-label",d(3,8,"accessories.core.filter_maintenance")),o(25),v(i.service().customName||i.service().serviceName),o(2),j("red-text",((m=i.service().values)==null?null:m.FilterChangeIndication)===1),o(),g(" ",(A=i.service().values)==null?null:A.FilterLifeLevel,"% "),o(),C(((q=i.service().values)==null?null:q.FilterChangeIndication)===1?31:-1)}},dependencies:[X,w],styles:[".dirty svg .status{fill:#e69533!important} .replace svg .status{fill:#d32f2f!important} body.dark-mode svg .back{fill:#2b2b2b!important}"]})}return e})();var ql=()=>[0,2,3,4],zl=(e,r,t,n,i,a,m)=>({"accessory-on":e,opening:r,open:t,closing:n,closed:i,stopped:a,obstructed:m});function Yl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.obstructed")))}function Kl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function Zl(e,r){e&1&&(s(0,"div",31),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}function Ql(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.opening"),"..."))}function Jl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),g("",d(2,1,"accessories.control.closing"),"..."))}function Xl(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.stopped")))}function ec(e,r){if(e&1&&h(0,Kl,3,3,"div",30)(1,Zl,3,3,"div",31)(2,Ql,3,3,"div",30)(3,Jl,3,3,"div",30)(4,Xl,3,3,"div",30),e&2){let t,n=u();C((t=(t=n.service().values)==null?null:t.CurrentDoorState)===0?0:t===1?1:t===2?2:t===3?3:t===4?4:-1)}}function tc(e,r){e&1&&(s(0,"div",30),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.open")))}function ic(e,r){e&1&&(s(0,"div",31),p(1),l(2,"translate"),c()),e&2&&(o(),v(d(2,1,"accessories.control.closed")))}function nc(e,r){if(e&1&&h(0,tc,3,3,"div",30)(1,ic,3,3,"div",31),e&2){let t,n=u();C((t=n.service().values)!=null&&t.On||(t=n.service().values)!=null&&t.Active?0:1)}}var ho=(()=>{class e{service=E.required();readyForControl=E(!1);onClick(){this.readyForControl()&&("TargetDoorState"in this.service().values?this.service().getCharacteristic("TargetDoorState").setValue(this.service().values.TargetDoorState?0:1):"On"in this.service().values?this.service().getCharacteristic("On").setValue(!this.service().values.On):"Active"in this.service().values&&this.service().getCharacteristic("Active").setValue(!this.service().values.Active))}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-garage-door-opener"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"]},decls:35,vars:16,consts:[["tabindex","0",1,"accessory-box",3,"shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["cx","15.5","cy","10.25","r","3","stroke","#7f7f7f","stroke-width","0.5","fill","#1976d2","fill-opacity","0.5",1,"window"],["x1","1","y1","12","x2","15","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","31","y1","12","x2","16","y2","1","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["cx","15.5","cy","1.3","r","0.5","stroke","#7f7f7f","stroke-width","1.5"],["x1","3","y1","11","x2","3","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","29","y1","11","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","3","y1","31","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","26","y1","31","x2","29","y2","31","stroke","#7f7f7f","stroke-width","1.5","stroke-linecap","round"],["x1","6","y1","17","x2","6","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x1","26","y1","17","x2","26","y2","31","stroke","#7f7f7f","stroke-width","1.5"],["x1","5.25","y1","17","x2","26.75","y2","17","stroke","#7f7f7f","stroke-width","1"],["x1","6.75","y1","18","x2","25.25","y2","18","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line1"],["x1","5.25","y1","19","x2","26.75","y2","19","stroke","#7f7f7f","stroke-width","1",1,"line","line2"],["x1","6.75","y1","20","x2","25.25","y2","20","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line3"],["x1","5.25","y1","21","x2","26.75","y2","21","stroke","#7f7f7f","stroke-width","1",1,"line","line4"],["x1","6.75","y1","22","x2","25.25","y2","22","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line5"],["x1","5.25","y1","23","x2","26.75","y2","23","stroke","#7f7f7f","stroke-width","1",1,"line","line6"],["x1","6.75","y1","24","x2","25.25","y2","24","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line7"],["x1","5.25","y1","25","x2","26.75","y2","25","stroke","#7f7f7f","stroke-width","1",1,"line","line8"],["x1","6.75","y1","26","x2","25.25","y2","26","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line9"],["x1","5.25","y1","27","x2","26.75","y2","27","stroke","#7f7f7f","stroke-width","1",1,"line","line10"],["x1","6.75","y1","28","x2","25.25","y2","28","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line11"],["x1","5.25","y1","29","x2","26.75","y2","29","stroke","#7f7f7f","stroke-width","1",1,"line","line12"],["x1","6.75","y1","30","x2","25.25","y2","30","stroke","#1976d2","stroke-width","1","stroke-opacity","0.5",1,"line","line13"],["x1","5.25","y1","31","x2","26.75","y2","31","stroke","#7f7f7f","stroke-width","1",1,"line","line14"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3),f(5,"circle",4)(6,"line",5)(7,"line",6)(8,"circle",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26)(28,"line",27)(29,"line",28),c()(),N(),s(30,"div",29),p(31),c(),h(32,Yl,3,3,"div",30)(33,ec,5,1)(34,nc,2,1),c()()),n&2){let a,m;L(Mn(8,zl,((a=i.service().values)==null?null:a.ObstructionDetected)||we(7,ql).includes((a=i.service().values)==null?null:a.CurrentDoorState)||((a=i.service().values)==null?null:a.On)||((a=i.service().values)==null?null:a.Active),((a=i.service().values)==null?null:a.CurrentDoorState)===2&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===0&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===3&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===1&&!((a=i.service().values)!=null&&a.ObstructionDetected),((a=i.service().values)==null?null:a.CurrentDoorState)===4&&!((a=i.service().values)!=null&&a.ObstructionDetected),(a=i.service().values)==null?null:a.ObstructionDetected)),o(2),y("aria-label",d(3,5,"accessories.core.garage_door_opener")),o(29),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.ObstructionDetected?32:"CurrentDoorState"in i.service().values?33:34)}},dependencies:[X,w],styles:[".opening svg .window{fill:#ff9800!important;fill-opacity:.5!important} .opening svg .line{animation:_ngcontent-%COMP%_fade-out .5s ease-in-out forwards} .opening svg .line1{animation-delay:9.282s} .opening svg .line2{animation-delay:8.568s} .opening svg .line3{animation-delay:7.854s} .opening svg .line4{animation-delay:7.14s} .opening svg .line5{animation-delay:6.426s} .opening svg .line6{animation-delay:5.712s} .opening svg .line7{animation-delay:4.998s} .opening svg .line8{animation-delay:4.284s} .opening svg .line9{animation-delay:3.57s} .opening svg .line10{animation-delay:2.856s} .opening svg .line11{animation-delay:2.142s} .opening svg .line12{animation-delay:1.428s} .opening svg .line13{animation-delay:.714s} .opening svg .line14{animation-delay:0s}@keyframes _ngcontent-%COMP%_fade-out{to{opacity:0}} .open .window{fill:#d32f2f!important;fill-opacity:.5!important} .open .line{opacity:0} .closing svg .window{fill:#ff9800!important;fill-opacity:.5!important} .closing svg .line{opacity:0;animation:_ngcontent-%COMP%_fade-in .5s ease-in-out forwards} .closing svg .line1{animation-delay:0s} .closing svg .line2{animation-delay:.714s} .closing svg .line3{animation-delay:1.428s} .closing svg .line4{animation-delay:2.142s} .closing svg .line5{animation-delay:2.856s} .closing svg .line6{animation-delay:3.57s} .closing svg .line7{animation-delay:4.284s} .closing svg .line8{animation-delay:4.998s} .closing svg .line9{animation-delay:5.712s} .closing svg .line10{animation-delay:6.426s} .closing svg .line11{animation-delay:7.14s} .closing svg .line12{animation-delay:7.854s} .closing svg .line13{animation-delay:8.568s} .closing svg .line14{animation-delay:9.282s}@keyframes _ngcontent-%COMP%_fade-in{to{opacity:1}} .closed .window{fill:#4caf50!important;fill-opacity:.5!important} .closed .line{opacity:1} .stopped .window{fill:#d32f2f!important} .stopped .line7, .stopped .line8, .stopped .line9, .stopped .line10, .stopped .line11, .stopped .line12, .stopped .line13, .stopped .line14{opacity:0} .obstructed .window{animation:_ngcontent-%COMP%_flash 2s infinite;fill:#d32f2f!important}@keyframes _ngcontent-%COMP%_flash{0%,to{fill-opacity:.5}50%{fill-opacity:.1}} .obstructed .line7, .obstructed .line8, .obstructed .line9, .obstructed .line10, .obstructed .line11, .obstructed .line12, .obstructed .line13, .obstructed .line14{opacity:0}"]})}return e})();var qt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function oc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(0,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,qt,t.targetMode===0,t.targetMode!==0)),o(),g(" ",d(4,3,"accessories.control.auto")," ")}}function rc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(1,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,qt,t.targetMode===1,t.targetMode!==1)),o(),g(" ",d(4,3,"accessories.control.heat")," ")}}function ac(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(2,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,qt,t.targetMode===2,t.targetMode!==2)),o(),g(" ",d(4,3,"accessories.control.cool")," ")}}function sc(e,r){if(e&1&&(s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"div",15),l(4,"translate"),h(5,oc,7,8,"button",16),h(6,rc,7,8,"button",16),h(7,ac,7,8,"button",16),c()),e&2){let t=u();o(),v(d(2,5,"accessories.control.mode")),o(2),y("aria-label",d(4,7,"accessories.control.mode_control")),o(2),C(t.targetStateValidValues.includes(0)?5:-1),o(),C(t.targetStateValidValues.includes(1)?6:-1),o(),C(t.targetStateValidValues.includes(2)?7:-1)}}function lc(e,r){if(e&1){let t=G();s(0,"h6",17),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),l(6,"convertTemp"),l(7,"number"),l(8,"uppercase"),c(),s(9,"nouislider",18),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.autoTemp,i)||(a.autoTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onAutoTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),At(" ",d(2,9,"accessories.control.target_auto"),": ",ue(4,13,d(3,11,t.autoTemp[0]),"1.0-1"),"\xB0",d(5,16,t.temperatureUnits)," - ",ue(7,20,d(6,18,t.autoTemp[1]),"1.0-1"),"\xB0",d(8,23,t.temperatureUnits)," "),o(8),T("min",t.HeatingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.autoTemp)}}function cc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),s(6,"nouislider",18),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetHeatingTemp,i)||(a.targetHeatingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),nt(" ",d(2,7,"accessories.control.target_auto"),": ",ue(4,11,d(3,9,t.targetHeatingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.HeatingThresholdTemperature.minValue)("max",t.HeatingThresholdTemperature.maxValue)("step",t.HeatingThresholdTemperature.minStep),Z("ngModel",t.targetHeatingTemp)}}function dc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),l(3,"convertTemp"),l(4,"number"),l(5,"uppercase"),c(),s(6,"nouislider",18),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetCoolingTemp,i)||(a.targetCoolingTemp=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onTemperatureStateChange())}),c()}if(e&2){let t=u(2);o(),nt(" ",d(2,7,"accessories.control.target_auto"),": ",ue(4,11,d(3,9,t.targetCoolingTemp),"1.0-1"),"\xB0",d(5,14,t.temperatureUnits)," "),o(5),T("min",t.CoolingThresholdTemperature.minValue)("max",t.CoolingThresholdTemperature.maxValue)("step",t.CoolingThresholdTemperature.minStep),Z("ngModel",t.targetCoolingTemp)}}function pc(e,r){if(e&1&&h(0,lc,10,25)(1,cc,7,16)(2,dc,7,16),e&2){let t=u();C(t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?0:t.HeatingThresholdTemperature&&!t.CoolingThresholdTemperature?1:!t.HeatingThresholdTemperature&&t.CoolingThresholdTemperature?2:-1)}}var Co=(()=>{class e extends he{$settings=k(Ee);type=E.required();temperatureUnits=this.$settings.env.temperatureUnits;targetState;targetMode;targetTemperatureChanged=new ee;targetStateValidValues=[];CoolingThresholdTemperature;HeatingThresholdTemperature;targetCoolingTemp;targetHeatingTemp;autoTemp;setupComponent(){this.createDebouncedSubscription(this.targetTemperatureChanged,()=>{this.HeatingThresholdTemperature&&this.service.getCharacteristic("HeatingThresholdTemperature").setValue(this.targetHeatingTemp),this.CoolingThresholdTemperature&&this.service.getCharacteristic("CoolingThresholdTemperature").setValue(this.targetCoolingTemp)}),this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHeaterCoolerState,this.CoolingThresholdTemperature=this.service.getCharacteristic("CoolingThresholdTemperature"),this.HeatingThresholdTemperature=this.service.getCharacteristic("HeatingThresholdTemperature"),this.targetStateValidValues=this.service.getCharacteristic("TargetHeaterCoolerState").validValues,this.loadTargetTemperature(),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}handleAccessoryUpdate(){this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHeaterCoolerState,this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}setTargetState(t,n){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetTemperature(),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetHeaterCoolerState").setValue(this.targetMode),this.loadTargetTemperature(),this.blurTarget(n),this.applySliderGradient("linear-gradient(to right, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}onTemperatureStateChange(){this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp],this.targetTemperatureChanged.next(void 0)}onAutoTemperatureStateChange(){this.targetHeatingTemp=this.autoTemp[0],this.targetCoolingTemp=this.autoTemp[1],this.targetTemperatureChanged.next(void 0)}loadTargetTemperature(){this.targetCoolingTemp=this.service.getCharacteristic("CoolingThresholdTemperature")?.value,this.targetHeatingTemp=this.service.getCharacteristic("HeatingThresholdTemperature")?.value,this.autoTemp=[this.targetHeatingTemp,this.targetCoolingTemp]}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:[1,"type"]},features:[ge],decls:31,vars:36,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-temperature-full"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[1,"mt-4","mb-1"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"h6",5),f(7,"i",6),p(8),l(9,"convertTemp"),l(10,"number"),l(11,"uppercase"),c(),s(12,"div",7),l(13,"translate"),s(14,"button",8),S("click",function(m){return i.setTargetState(0,m)}),s(15,"div",9),f(16,"i",10),c(),p(17),l(18,"translate"),s(19,"div",11),f(20,"i",12),c()(),s(21,"button",8),S("click",function(m){return i.setTargetState(1,m)}),s(22,"div",9),f(23,"i",10),c(),p(24),l(25,"translate"),s(26,"div",11),f(27,"i",12),c()()(),h(28,sc,8,9),h(29,pc,3,1),c(),f(30,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,15,"form.button_close")),o(4),Xe("color",(i.service.values==null?null:i.service.values.CurrentHeaterCoolerState)===3&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="cooler"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#1e8bbd":(i.service.values==null?null:i.service.values.CurrentHeaterCoolerState)===2&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="heater"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#e69533":i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On?"#42d672":"#7b7b7b"),o(),$("",ue(10,19,d(9,17,i.service.values==null?null:i.service.values.CurrentTemperature),"1.0-1"),"\xB0",d(11,22,i.temperatureUnits)," "),o(4),y("aria-label",d(13,24,"accessories.control.state_control")),o(4),L(O(30,qt,i.targetState===0,i.targetState!==0)),o(),g(" ",d(18,26,"accessories.control.off")," "),o(6),L(O(33,qt,i.targetState===1,i.targetState!==1)),o(),g(" ",d(25,28,"accessories.control.on")," "),o(4),C(i.targetStateValidValues.length?28:-1),o(),C(i.targetStateValidValues.includes(0)?29:-1))},dependencies:[le,de,pe,me,Le,w,He,Ue],encapsulation:2,changeDetection:0})}return e})();function mc(e,r){if(e&1&&(I(),s(0,"text",23),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),c()),e&2){let t,n=u();o(),$(" ",ue(3,4,d(2,2,(t=n.service().values)==null?null:t.CurrentTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function uc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.off")," ")}function fc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase"),l(5,"convertTemp"),l(6,"number"),l(7,"uppercase")),e&2){let t,n=u(2);o(),kn(" ",ue(3,6,d(2,4,(t=n.service().values)==null?null:t.HeatingThresholdTemperature),"1.0-1"),"\xB0",d(4,9,n.temperatureUnits)," - ",ue(6,13,d(5,11,(t=n.service().values)==null?null:t.CoolingThresholdTemperature),"1.0-1"),"\xB0",d(7,16,n.temperatureUnits)," ")}}function vc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t,n=u(2);o(),$(" ",ue(3,4,d(2,2,(t=n.service().values)==null?null:t.HeatingThresholdTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function gc(e,r){if(e&1&&(f(0,"i",26),p(1),l(2,"convertTemp"),l(3,"number"),l(4,"uppercase")),e&2){let t,n=u(2);o(),$(" ",ue(3,4,d(2,2,(t=n.service().values)==null?null:t.CoolingThresholdTemperature),"1.0-1"),"\xB0",d(4,7,n.temperatureUnits)," ")}}function hc(e,r){if(e&1&&h(0,fc,8,18)(1,vc,5,9)(2,gc,5,9),e&2){let t=u();C(t.hasHeating()&&t.hasCooling()?0:t.hasHeating()&&!t.hasCooling()?1:!t.hasHeating()&&t.hasCooling()?2:-1)}}function Cc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.heat")," ")}function _c(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.cool")," ")}function yc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.on")," ")}var _o=(()=>{class e{$modal=k(ne);injector=k(te);$settings=k(Ee);$accessories=k(re);service=E.required();readyForControl=E(!1);type=E();temperatureUnits=this.$settings.env.temperatureUnits;hasHeating=mt(!1);hasCooling=mt(!1);ngOnInit(){this.hasHeating.set("HeatingThresholdTemperature"in this.service().values),this.hasCooling.set("CoolingThresholdTemperature"in this.service().values)}onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1):"On"in this.service().values&&this.service().getCharacteristic("On").setValue(!this.service().values.On))}onLongClick(){if(this.readyForControl()&&"TargetHeaterCoolerState"in this.service().values){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(Co,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-heater-cooler"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"],type:[1,"type"]},decls:36,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","coolingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","heatingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","8","y1","7","x2","8","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","12","y1","7","x2","12","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","16","y1","7","x2","16","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","20","y1","7","x2","20","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","24","y1","7","x2","24","y2","16","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x","3.5","y","4","width","25","height","15","rx","0","stroke","#7f7f7f","stroke-width","1.2","fill-opacity","0.5"],["x","16","y","27.5","font-size","7","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),s(9,"stop",7),f(10,"animate",8),c(),s(11,"stop",9),f(12,"animate",6),c()(),s(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),s(16,"stop",13),f(17,"animate",14),c(),s(18,"stop",15),f(19,"animate",12),c()()(),f(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"rect",22),h(27,mc,5,9,":svg:text",23),c()(),N(),s(28,"div",24),p(29),c(),s(30,"div",25),h(31,uc,2,3)(32,hc,3,1)(33,Cc,2,3)(34,_c,2,3)(35,yc,2,3),c()()()),n&2){let a,m,A;j("accessory-on",((a=i.service().values)==null?null:a.Active)||((a=i.service().values)==null?null:a.On)),o(2),y("aria-label",d(3,7,"accessories.core.heater_cooler")),o(24),y("fill",((m=i.service().values)==null?null:m.CurrentHeaterCoolerState)===3&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="cooler"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#coolingGradient)":((m=i.service().values)==null?null:m.CurrentHeaterCoolerState)===2&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="heater"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#heatingGradient)":(m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On?"#42d672":"#7b7b7b"),o(),C("CurrentTemperature"in i.service().values?27:-1),o(2),v(i.service().customName||i.service().serviceName),o(2),C("Active"in i.service().values&&!((A=i.service().values)!=null&&A.Active)||"On"in i.service().values&&!((A=i.service().values)!=null&&A.On)?31:((A=i.service().values)==null?null:A.TargetHeaterCoolerState)===0&&(i.hasHeating()||i.hasCooling())?32:((A=i.service().values)==null?null:A.TargetHeaterCoolerState)===1?33:((A=i.service().values)==null?null:A.TargetHeaterCoolerState)===2?34:35)}},dependencies:[X,Le,w,He,Ue],encapsulation:2})}return e})();var zt=(e,r)=>({"fa-check-circle":e,"fa-blank":r});function xc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(0,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,zt,t.targetMode===0,t.targetMode!==0)),o(),g(" ",d(4,3,"accessories.control.auto")," ")}}function Sc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(1,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,zt,t.targetMode===1,t.targetMode!==1)),o(),g(" ",d(4,3,"accessories.control.humidify")," ")}}function kc(e,r){if(e&1){let t=G();s(0,"button",8),S("click",function(i){V(t);let a=u(2);return P(a.setTargetMode(2,i))}),s(1,"div",9),f(2,"i",10),c(),p(3),l(4,"translate"),s(5,"div",11),f(6,"i",12),c()()}if(e&2){let t=u(2);o(2),L(O(5,zt,t.targetMode===2,t.targetMode!==2)),o(),g(" ",d(4,3,"accessories.control.dehumidify")," ")}}function bc(e,r){if(e&1&&(s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"div",15),l(4,"translate"),h(5,xc,7,8,"button",16),h(6,Sc,7,8,"button",16),h(7,kc,7,8,"button",16),c()),e&2){let t=u();o(),v(d(2,5,"accessories.control.mode")),o(2),y("aria-label",d(4,7,"accessories.control.mode_control")),o(2),C(t.targetStateValidValues.includes(0)?5:-1),o(),C(t.targetStateValidValues.includes(1)?6:-1),o(),C(t.targetStateValidValues.includes(2)?7:-1)}}function Tc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"nouislider",17),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.autoHumidity,i)||(a.autoHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onAutoHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),nt(" ",d(2,7,"accessories.control.target_auto"),": ",t.autoHumidity[0],"% - ",t.autoHumidity[1],"% "),o(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),Z("ngModel",t.autoHumidity)}}function Mc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"nouislider",17),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetHumidifierHumidity,i)||(a.targetHumidifierHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),$("",d(2,6,"accessories.control.target_auto"),": ",t.targetHumidifierHumidity,"%"),o(2),T("min",t.RelativeHumidityHumidifierThreshold.minValue)("max",t.RelativeHumidityHumidifierThreshold.maxValue)("step",t.RelativeHumidityHumidifierThreshold.minStep),Z("ngModel",t.targetHumidifierHumidity)}}function Bc(e,r){if(e&1){let t=G();s(0,"h6",14),p(1),l(2,"translate"),c(),s(3,"nouislider",17),J("ngModelChange",function(i){V(t);let a=u(2);return Q(a.targetDehumidifierHumidity,i)||(a.targetDehumidifierHumidity=i),P(i)}),S("ngModelChange",function(){V(t);let i=u(2);return P(i.onHumidityStateChange())}),c()}if(e&2){let t=u(2);o(),$("",d(2,6,"accessories.control.target_auto"),": ",t.targetDehumidifierHumidity,"%"),o(2),T("min",t.RelativeHumidityDehumidifierThreshold.minValue)("max",t.RelativeHumidityDehumidifierThreshold.maxValue)("step",t.RelativeHumidityDehumidifierThreshold.minStep),Z("ngModel",t.targetDehumidifierHumidity)}}function wc(e,r){if(e&1&&h(0,Tc,4,9)(1,Mc,4,8)(2,Bc,4,8),e&2){let t=u();C(t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?0:t.RelativeHumidityHumidifierThreshold&&!t.RelativeHumidityDehumidifierThreshold?1:!t.RelativeHumidityHumidifierThreshold&&t.RelativeHumidityDehumidifierThreshold?2:-1)}}var yo=(()=>{class e extends he{type=E.required();targetState;targetMode;targetHumidityChanged=new ee;targetStateValidValues=[];RelativeHumidityDehumidifierThreshold;RelativeHumidityHumidifierThreshold;targetDehumidifierHumidity;targetHumidifierHumidity;autoHumidity;setupComponent(){this.createDebouncedSubscription(this.targetHumidityChanged,()=>{this.RelativeHumidityHumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityHumidifierThreshold").setValue(this.targetHumidifierHumidity),this.RelativeHumidityDehumidifierThreshold&&this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold").setValue(this.targetDehumidifierHumidity)}),this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHumidifierDehumidifierState,this.RelativeHumidityDehumidifierThreshold=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold"),this.RelativeHumidityHumidifierThreshold=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold"),this.targetStateValidValues=this.service.getCharacteristic("TargetHumidifierDehumidifierState").validValues,this.loadTargetHumidity(),this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}handleAccessoryUpdate(){this.targetState=this.service.values.Active,this.targetMode=this.service.values.TargetHumidifierDehumidifierState,this.targetDehumidifierHumidity=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold")?.value,this.targetHumidifierHumidity=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold")?.value,this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity],this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}loadTargetHumidity(){this.targetDehumidifierHumidity=this.service.getCharacteristic("RelativeHumidityDehumidifierThreshold")?.value,this.targetHumidifierHumidity=this.service.getCharacteristic("RelativeHumidityHumidifierThreshold")?.value,this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity]}setTargetState(t,n){this.targetState=t,this.service.getCharacteristic("Active").setValue(this.targetState),this.loadTargetHumidity(),this.blurTarget(n)}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("TargetHumidifierDehumidifierState").setValue(this.targetMode),this.loadTargetHumidity(),this.blurTarget(n),this.applySliderGradient("linear-gradient(to left, rgb(80, 80, 179), rgb(173, 216, 230), rgb(255, 185, 120), rgb(139, 90, 60))")}onHumidityStateChange(){this.autoHumidity=[this.targetHumidifierHumidity,this.targetDehumidifierHumidity],this.targetHumidityChanged.next(void 0)}onAutoHumidityStateChange(){this.targetHumidifierHumidity=this.autoHumidity[0],this.targetDehumidifierHumidity=this.autoHumidity[1],this.targetHumidityChanged.next(void 0)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ve(e)))(i||e)}})();static \u0275cmp=B({type:e,selectors:[["ng-component"]],inputs:{type:[1,"type"]},features:[ge],decls:28,vars:28,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title",3,"innerText"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center","px-5"],[1,"mt-2","mb-4","fs-4"],[1,"fas","fa-temperature-full"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-4","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control",3,"click"],[1,"float-start","primary-text"],[1,"fas","fa-xl"],[1,"float-end"],[1,"fas","fa-xl","fa-blank"],[1,"modal-footer"],[1,"mt-4"],["role","group",1,"btn-group-vertical","d-flex","justify-content-center","mb-0","p-0"],["type","button",1,"btn","mb-0","mx-0","p-3","btn-control"],[3,"ngModelChange","min","max","step","ngModel"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),f(2,"h5",2),s(3,"button",3),l(4,"translate"),S("click",function(){return i.dismissModal()}),c()(),s(5,"div",4)(6,"h6",5),f(7,"i",6),p(8),c(),s(9,"div",7),l(10,"translate"),s(11,"button",8),S("click",function(m){return i.setTargetState(0,m)}),s(12,"div",9),f(13,"i",10),c(),p(14),l(15,"translate"),s(16,"div",11),f(17,"i",12),c()(),s(18,"button",8),S("click",function(m){return i.setTargetState(1,m)}),s(19,"div",9),f(20,"i",10),c(),p(21),l(22,"translate"),s(23,"div",11),f(24,"i",12),c()()(),h(25,bc,8,9),h(26,wc,3,1),c(),f(27,"div",13),c()),n&2&&(o(2),T("innerText",i.service.customName||i.service.serviceName),o(),y("aria-label",d(4,14,"form.button_close")),o(4),Xe("color",(i.service.values==null?null:i.service.values.CurrentHumidifierDehumidifierState)===2&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="humidifier"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#1e8bbd":(i.service.values==null?null:i.service.values.CurrentHumidifierDehumidifierState)===3&&(i.service.values==null?null:i.service.values.Active)===1||i.type()==="dehumidifier"&&(i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On)?"#e69533":i.service.values!=null&&i.service.values.Active||i.service.values!=null&&i.service.values.On?"#42d672":"#7b7b7b"),o(),g("",i.service.values==null?null:i.service.values.CurrentRelativeHumidity,"% "),o(),y("aria-label",d(10,16,"accessories.control.state_control")),o(4),L(O(22,zt,i.targetState===0,i.targetState!==0)),o(),g(" ",d(15,18,"accessories.control.off")," "),o(6),L(O(25,zt,i.targetState===1,i.targetState!==1)),o(),g(" ",d(22,20,"accessories.control.on")," "),o(4),C(i.targetStateValidValues.length?25:-1),o(),C(i.targetStateValidValues.includes(0)?26:-1))},dependencies:[le,de,pe,me,w],encapsulation:2,changeDetection:0})}return e})();function Ec(e,r){if(e&1&&(I(),s(0,"text",36),p(1),c()),e&2){let t,n=u();o(),g(" ",(t=n.service().values)==null?null:t.CurrentRelativeHumidity,"% ")}}function Dc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.off")," ")}function Ac(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),$(" ",(t=n.service().values)==null?null:t.RelativeHumidityHumidifierThreshold,"% - ",(t=n.service().values)==null?null:t.RelativeHumidityDehumidifierThreshold,"% ")}}function Ic(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),g(" ",(t=n.service().values)==null?null:t.RelativeHumidityHumidifierThreshold,"% ")}}function Lc(e,r){if(e&1&&(f(0,"i",39),p(1)),e&2){let t,n=u(2);o(),g(" ",(t=n.service().values)==null?null:t.RelativeHumidityDehumidifierThreshold,"% ")}}function Fc(e,r){if(e&1&&h(0,Ac,2,2)(1,Ic,2,1)(2,Lc,2,1),e&2){let t=u();C(t.hasHumidifier&&t.hasDehumidifier?0:t.hasHumidifier&&!t.hasDehumidifier?1:!t.hasHumidifier&&t.hasDehumidifier?2:-1)}}function Vc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.humidify")," ")}function Pc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.dehumidify")," ")}function Oc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.on")," ")}function Nc(e,r){if(e&1&&h(0,Pc,2,3)(1,Oc,2,3),e&2){let t,n=u();C(((t=n.service().values)==null?null:t.TargetHumidifierDehumidifierState)===2?0:1)}}var xo=(()=>{class e{$accessories=k(re);injector=k(te);$modal=k(ne);service=E.required();readyForControl=E(!1);type=E();hasHumidifier=!1;hasDehumidifier=!1;ngOnInit(){this.hasHumidifier="RelativeHumidityHumidifierThreshold"in this.service().values,this.hasDehumidifier="RelativeHumidityDehumidifierThreshold"in this.service().values}onClick(){this.readyForControl()&&("Active"in this.service().values?this.service().getCharacteristic("Active").setValue(this.service().values.Active?0:1):"On"in this.service().values&&this.service().getCharacteristic("On").setValue(!this.service().values.On))}onLongClick(){if(this.readyForControl()&&"TargetHumidifierDehumidifierState"in this.service().values){let t=ie([{provide:Y,useValue:{service:this.service(),$accessories:this.$accessories}}],this.injector);this.$modal.open(yo,{size:"md",backdrop:"static",injector:t})}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-humidifier-dehumidifier"]],inputs:{service:[1,"service"],readyForControl:[1,"readyForControl"],type:[1,"type"]},decls:48,vars:9,consts:[["tabindex","0",1,"accessory-box",3,"longClick","shortClick"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["id","humidifyingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#1e8bbd"],["attributeName","stop-color","values","#1e8bbd;#66d6d6;#1e8bbd","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#66d6d6"],["attributeName","stop-color","values","#66d6d6;#1e8bbd;#66d6d6","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#1e8bbd"],["id","dehumidifyingGradient","x1","0","y1","1","x2","0","y2","0"],["offset","0%","stop-color","#cc5e00"],["attributeName","stop-color","values","#cc5e00;#e69533;#cc5e00;#e69533","dur","5s","repeatCount","indefinite"],["offset","50%","stop-color","#e69533"],["attributeName","stop-color","values","#e69533;#cc5e00;#e69533;#cc5e00","dur","5s","repeatCount","indefinite"],["offset","100%","stop-color","#cc5e00"],["x","1","y","3.5","width","30","height","25","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["x1","6","y1","10","x2","6","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","6","y1","12","x2","6","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","6","y1","14","x2","6","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","10","x2","10","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","12","x2","10","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","10","y1","14","x2","10","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","10","x2","14","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","12","x2","14","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","14","y1","14","x2","14","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","10","x2","18","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","12","x2","18","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","18","y1","14","x2","18","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","10","x2","22","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","12","x2","22","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","22","y1","14","x2","22","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","10","x2","26","y2","10","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","12","x2","26","y2","12","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x1","26","y1","14","x2","26","y2","14","stroke","#7f7f7f","stroke-width","1.2","stroke-linecap","round"],["x","1","y","7","width","30","height","10","rx","0","stroke","#7f7f7f","stroke-width","1.2","fill-opacity","0.5"],["x","16.5","y","25.5","font-size","7","text-anchor","middle","fill","#7f7f7f","font-family","Arial, sans-serif"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"],[1,"fa","fas","fa-bullseye"]],template:function(n,i){if(n&1&&(s(0,"div",0),S("longClick",function(){return i.onLongClick()})("shortClick",function(){return i.onClick()}),s(1,"div",1)(2,"div",2),l(3,"translate"),I(),s(4,"svg",3)(5,"defs")(6,"linearGradient",4)(7,"stop",5),f(8,"animate",6),c(),s(9,"stop",7),f(10,"animate",8),c(),s(11,"stop",9),f(12,"animate",6),c()(),s(13,"linearGradient",10)(14,"stop",11),f(15,"animate",12),c(),s(16,"stop",13),f(17,"animate",14),c(),s(18,"stop",15),f(19,"animate",12),c()()(),f(20,"rect",16)(21,"line",17)(22,"line",18)(23,"line",19)(24,"line",20)(25,"line",21)(26,"line",22)(27,"line",23)(28,"line",24)(29,"line",25)(30,"line",26)(31,"line",27)(32,"line",28)(33,"line",29)(34,"line",30)(35,"line",31)(36,"line",32)(37,"line",33)(38,"line",34)(39,"rect",35),h(40,Ec,2,1,":svg:text",36),c()(),N(),s(41,"div",37),p(42),c(),s(43,"div",38),h(44,Dc,2,3)(45,Fc,3,1)(46,Vc,2,3)(47,Nc,2,1),c()()()),n&2){let a,m,A;j("accessory-on",((a=i.service().values)==null?null:a.Active)||((a=i.service().values)==null?null:a.On)),o(2),y("aria-label",d(3,7,"accessories.core.humidifier_dehumidifier")),o(37),y("fill",((m=i.service().values)==null?null:m.CurrentHumidifierDehumidifierState)===2&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="humidifier"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#humidifyingGradient)":((m=i.service().values)==null?null:m.CurrentHumidifierDehumidifierState)===3&&((m=i.service().values)==null?null:m.Active)===1||i.type()==="dehumidifier"&&((m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On)?"url(#dehumidifyingGradient)":(m=i.service().values)!=null&&m.Active||(m=i.service().values)!=null&&m.On?"#42d672":"#7b7b7b"),o(),C("CurrentRelativeHumidity"in i.service().values?40:-1),o(2),v(i.service().customName||i.service().serviceName),o(2),C("Active"in i.service().values&&!((A=i.service().values)!=null&&A.Active)||"On"in i.service().values&&!((A=i.service().values)!=null&&A.On)?44:((A=i.service().values)==null?null:A.TargetHumidifierDehumidifierState)===0&&(i.hasHumidifier||i.hasDehumidifier)?45:((A=i.service().values)==null?null:A.TargetHumidifierDehumidifierState)===1?46:47)}},dependencies:[X,w],encapsulation:2})}return e})();function Hc(e,r){if(e&1&&p(0),e&2){let t,n=u();g(" ",(t=n.service().values)==null?null:t.CurrentRelativeHumidity,"% ")}}function Rc(e,r){e&1&&(p(0),l(1,"translate")),e&2&&g(" ",d(1,1,"accessories.control.no_data")," ")}var So=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-humidity-sensor"]],inputs:{service:[1,"service"]},decls:26,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["transform","translate(1.8, -4.3), scale(0.85)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.4","stroke","#7f7f7f","stroke-width","1"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),F(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19),b()(),N(),x(21,"div",20),p(22),b(),x(23,"div",21),h(24,Hc,1,1)(25,Rc,2,3),b()()()),n&2&&(o(2),y("aria-label",d(3,3,"accessories.core.humidity_sensor")),o(20),v(i.service().customName||i.service().serviceName),o(2),C("CurrentRelativeHumidity"in i.service().values?24:25))},dependencies:[w],styles:[".humidity-drop[_ngcontent-%COMP%]{position:relative;display:inline-block;width:50px;height:50px;line-height:42px;border-radius:5% 55% 70%;font-size:14px;text-align:center;margin-bottom:6px;margin-top:9px;background-color:gray;color:#d3d3d3;transform:rotate(45deg)}@media(max-width:575px){.humidity-drop-collapse[_ngcontent-%COMP%]{width:31px;height:31px;line-height:28px;font-size:10px;margin-bottom:7px;margin-top:5px}.humidity-drop-collapse[_ngcontent-%COMP%] .humidity-drop-text[_ngcontent-%COMP%]{margin-left:-2px}}.humidity-drop-text[_ngcontent-%COMP%]{transform:rotate(-45deg);margin-left:-5px}"]})}return e})();function $c(e,r){e&1&&(x(0,"div",14),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.running")))}function jc(e,r){e&1&&(x(0,"div",14),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.off")))}var ko=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-irrigation-system"]],inputs:{service:[1,"service"]},decls:18,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32","height","32","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","9","y","1","width","14","height","6.5","rx","2","fill","#1976d2","stroke","#7b7b7b","stroke-width","0.5","fill-opacity","0.5"],["x1","16","y1","8","x2","16","y2","31","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","9","x2","31","y2","9","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","20","x2","31","y2","20","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x1","1","y1","31","x2","31","y2","31","stroke","#7f7f7f","stroke-width","1","stroke-linecap","round",1,"pipe"],["x","1","y","10","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","17","y","10","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","1","y","21","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],["x","17","y","21","width","14","height","9","rx","0","fill","#7f7f7f","stroke-width","0","fill-opacity","0.5",1,"field"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"line",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"rect",9)(11,"rect",10)(12,"rect",11)(13,"rect",12),b()(),N(),x(14,"div",13),p(15),b(),h(16,$c,3,3,"div",14)(17,jc,3,3,"div",14),b()()),n&2){let a,m,A;j("accessory-on",(a=i.service().values)==null?null:a.InUse),o(2),y("aria-label",d(3,5,"accessories.core.irrigation_system")),o(13),g(" ",i.service().customName||((m=i.service().values)==null?null:m.ConfiguredName)||i.service().serviceName," "),o(),C((A=i.service().values)!=null&&A.InUse?16:17)}},dependencies:[w],styles:[".accessory-on svg .field{fill:#4caf50} .accessory-on svg .pipe{animation:_ngcontent-%COMP%_pulse 5s infinite}@keyframes _ngcontent-%COMP%_pulse{0%,to{stroke:#7f7f7f;stroke-opacity:.5}50%{stroke:#1976d2;stroke-opacity:1}}"]})}return e})();function Uc(e,r){e&1&&(x(0,"div",23),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.detected")))}function Wc(e,r){e&1&&(x(0,"div",24),p(1),l(2,"translate"),b()),e&2&&(o(),v(d(2,1,"accessories.control.not_detected")))}var bo=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-leak-sensor"]],inputs:{service:[1,"service"]},decls:28,vars:7,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2",1,"red-outline"],["transform","translate(7, 0), scale(0.35)"],["d","M23.61 24.58C23.61 28.67 20.44 31.99 16.56 31.99C12.68 31.99 9.52 28.67 9.52 24.58C9.52 20.49 12.68 17.13 16.56 10.87C20.44 17.13 23.61 20.49 23.61 24.58Z","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","1"],["transform","translate(13, 7), scale(0.35)"],["cx","16","cy","22","rx","10","ry","2","fill","#1976d2","fill-opacity","0.25","stroke","#7f7f7f","stroke-width","0.35"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","red-text"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4),x(6,"g",5),F(7,"path",6),b(),x(8,"g",7),F(9,"path",6),b(),F(10,"ellipse",8)(11,"line",9)(12,"line",10)(13,"line",11)(14,"line",12)(15,"line",13)(16,"line",14)(17,"line",15)(18,"line",16)(19,"line",17)(20,"line",18)(21,"line",19)(22,"line",20)(23,"line",21),b()(),N(),x(24,"div",22),p(25),b(),h(26,Uc,3,3,"div",23)(27,Wc,3,3,"div",24),b()()),n&2){let a,m;j("accessory-on",(a=i.service().values)==null?null:a.LeakDetected),o(2),y("aria-label",d(3,5,"accessories.core.leak_sensor")),o(23),v(i.service().customName||i.service().serviceName),o(),C((m=i.service().values)!=null&&m.LeakDetected?26:27)}},dependencies:[w],styles:[".accessory-on svg .red-outline{stroke:#d32f2f;animation:_ngcontent-%COMP%_flash 1s infinite}@keyframes _ngcontent-%COMP%_flash{0%,to{stroke-opacity:.8}50%{stroke-opacity:.2}}"]})}return e})();function Gc(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t,n=u();o(),g("",ue(2,1,(t=n.service().values)==null?null:t.CurrentAmbientLightLevel,"0.1-1")," lux")}}function qc(e,r){if(e&1&&(x(0,"div",28),p(1),l(2,"number"),b()),e&2){let t,n=u();o(),g("",ue(2,1,(t=n.service().values)==null?null:t.CurrentAmbientLightLevel,"1.0-0")," lux")}}var To=(()=>{class e{service=E.required();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=B({type:e,selectors:[["app-light-sensor"]],inputs:{service:[1,"service"]},decls:32,vars:5,consts:[[1,"accessory-box"],[1,"d-flex","flex-column","h-100"],[1,"accessory-svg"],["width","32px","height","32px","viewBox","0 0 32 32","xmlns","http://www.w3.org/2000/svg"],["x","3.5","y","1","width","25","height","30","rx","3","stroke","#7f7f7f","fill","none","stroke-width","1.2"],["cx","16","cy","13.75","r","5","stroke","#ff9800","fill","none","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","3","x2","16","y2","7","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","23.5","y1","6","x2","20.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","22.75","y1","13.5","x2","26.75","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","20.75","y1","18.25","x2","23.75","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","16","y1","20.5","x2","16","y2","24.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","11.25","y1","18.25","x2","8.25","y2","21.25","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","5.25","y1","13.5","x2","9.25","y2","13.5","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["x1","8.5","y1","6","x2","11.5","y2","9","stroke","#ff9800","stroke-width","1.2","stroke-opacity","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","25","y2","26","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","27.5","x2","25","y2","27.5","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","29","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","7","y1","26","x2","7","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","9","y1","26","x2","9","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","11","y1","26","x2","11","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","13","y1","26","x2","13","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","15","y1","26","x2","15","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","17","y1","26","x2","17","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","19","y1","26","x2","19","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","21","y1","26","x2","21","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","23","y1","26","x2","23","y2","29","stroke","#7f7f7f","stroke-width","0.5"],["stroke-linecap","round","x1","25","y1","26","x2","25","y2","29","stroke","#7f7f7f","stroke-width","0.5"],[1,"accessory-label","mt-auto"],[1,"accessory-label","grey-text"]],template:function(n,i){if(n&1&&(x(0,"div",0)(1,"div",1)(2,"div",2),l(3,"translate"),I(),x(4,"svg",3),F(5,"rect",4)(6,"circle",5)(7,"line",6)(8,"line",7)(9,"line",8)(10,"line",9)(11,"line",10)(12,"line",11)(13,"line",12)(14,"line",13)(15,"line",14)(16,"line",15)(17,"line",16)(18,"line",17)(19,"line",18)(20,"line",19)(21,"line",20)(22,"line",21)(23,"line",22)(24,"line",23)(25,"line",24)(26,"line",25)(27,"line",26),b()(),N(),x(28,"div",27),p(29),b(),h(30,Gc,3,4,"div",28)(31,qc,3,4,"div",28),b()()),n&2){let a;o(2),y("aria-label",d(3,3,"accessories.core.light_sensor")),o(27),v(i.service().customName||i.service().serviceName),o(),C(((a=i.service().values)==null?null:a.CurrentAmbientLightLevel)<1?30:31)}},dependencies:[Le,w],encapsulation:2})}return e})();var lt=(()=>{class e{miredToKelvin(t){return Math.round(1e6/t)}kelvinToMired(t){return Math.round(1e6/t)}kelvinToHex(t){t=Math.max(1e3,Math.min(4e4,t));let n=t/100,i,a,m;return n<=66?(i=255,a=n,a=99.4708025861*Math.log(a)-161.1195681661,m=n<=19?0:138.5177312231*Math.log(n-10)-305.0447927307):(i=329.698727446*(n-60)**-.1332047592,a=288.1221695283*(n-60)**-.0755148492,m=255),i=Math.round(Math.min(Math.max(i,0),255)),a=Math.round(Math.min(Math.max(a,0),255)),m=Math.round(Math.min(Math.max(m,0),255)),`#${i.toString(16).padStart(2,"0")}${a.toString(16).padStart(2,"0")}${m.toString(16).padStart(2,"0")}`}kelvinToHsl(t){let n=t/100,i,a,m;n<=66?(i=255,a=Math.min(99.4708025861*Math.log(n)-161.1195681661,255),m=n<=19?0:Math.min(138.5177312231*Math.log(n-10)-305.0447927307,255)):(i=Math.min(329.698727446*(n-60)**-.1332047592,255),a=Math.min(288.1221695283*(n-60)**-.0755148492,255),m=255),i/=255,a/=255,m/=255;let A=Math.max(i,a,m),q=Math.min(i,a,m),z=A-q,ce=0;z!==0&&(A===i?ce=(a-m)/z%6:A===a?ce=(m-i)/z+2:ce=(i-a)/z+4,ce=Math.round(ce*60),ce<0&&(ce+=360));let ke=(A+q)/2,Ve=z===0?0:z/(1-Math.abs(2*ke-1));return`hsl(${Math.round(ce)}, ${Math.round(Ve*100)}%, ${Math.round(ke*100)}%)`}static \u0275fac=function(n){return new(n||e)};static \u0275prov=ii({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Mo=(e,r)=>({"fa-check-circle":e,"fa-blank":r}),zc=(e,r)=>({"off-text":e,"on-text":r}),Ni=(e,r)=>({"mb-1":e,"":r});function Yc(e,r){e&1&&f(0,"div")}function Kc(e,r){if(e&1&&(s(0,"div",11)(1,"div",13)(2,"div",7),f(3,"i",14),c(),p(4),l(5,"translate"),s(6,"div",9),f(7,"i",10),c()()()),e&2){let t=u();o(3),L(O(6,zc,!t.isAdaptiveLightingEnabled,t.isAdaptiveLightingEnabled)),o(),$(" ",d(5,4,"accessories.control.adaptive_lighting"),": ",t.isAdaptiveLightingEnabled?"ON":"OFF"," ")}}function Zc(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),c(),s(3,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetBrightness.value,i)||(a.targetBrightness.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onBrightnessStateChange())}),c()}if(e&2){let t=u();o(),$("",d(2,6,"accessories.control.brightness"),": ",t.targetBrightness.value,"%"),o(2),T("min",t.targetBrightness.min)("max",t.targetBrightness.max)("step",t.targetBrightness.step),Z("ngModel",t.targetBrightness.value)}}function Qc(e,r){e&1&&(s(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function Jc(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),c(),s(3,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetHue.value,i)||(a.targetHue.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onHueStateChange())}),c(),h(4,Qc,4,3,"div",17)}if(e&2){let t=u();o(),$("",d(2,9,"accessories.control.hue"),": ",t.targetHue.value,"\xB0"),o(2),L(O(11,Ni,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",360)("step",1),Z("ngModel",t.targetHue.value),o(),C(t.isAdaptiveLightingEnabled?4:-1)}}function Xc(e,r){e&1&&(s(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function ed(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),c(),s(3,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetSaturation.value,i)||(a.targetSaturation.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onSaturationStateChange())}),c(),h(4,Xc,4,3,"div",17)}if(e&2){let t=u();o(),$("",d(2,9,"accessories.control.saturation"),": ",t.targetSaturation.value,"%"),o(2),L(O(11,Ni,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",0)("max",100)("step",1),Z("ngModel",t.targetSaturation.value),o(),C(t.isAdaptiveLightingEnabled?4:-1)}}function td(e,r){e&1&&(s(0,"div",17)(1,"span",18),p(2),l(3,"translate"),c()()),e&2&&(o(2),v(d(3,1,"accessories.control.adaptive_lighting_note")))}function id(e,r){if(e&1){let t=G();s(0,"h6",15),p(1),l(2,"translate"),l(3,"convertMired"),c(),s(4,"nouislider",16),J("ngModelChange",function(i){V(t);let a=u();return Q(a.targetColorTemperature.value,i)||(a.targetColorTemperature.value=i),P(i)}),S("ngModelChange",function(){V(t);let i=u();return P(i.onColorTemperatureStateChange())}),c(),h(5,td,4,3,"div",17)}if(e&2){let t=u();o(),$(" ",d(2,9,"accessories.control.color_temperature"),": ",d(3,11,t.targetColorTemperature.mired)," "),o(3),L(O(13,Ni,t.isAdaptiveLightingEnabled,!t.isAdaptiveLightingEnabled)),T("min",t.targetColorTemperature.min)("max",t.targetColorTemperature.max)("step",t.targetColorTemperature.step),Z("ngModel",t.targetColorTemperature.value),o(),C(t.isAdaptiveLightingEnabled?5:-1)}}var Hi=new ni("LightbulbAdaptiveLighting",{factory:()=>{}}),Bo=(()=>{class e extends he{$colour=k(lt);isAdaptiveLightingEnabled$=k(Hi);targetMode;targetBrightness;targetBrightnessChanged=new ee;targetHue;targetHueChanged=new ee;targetSaturation;targetSaturationChanged=new ee;targetColorTemperature;targetColorTemperatureChanged=new ee;hasAdaptiveLighting=!1;isAdaptiveLightingEnabled=!1;sliderIndex=0;setupComponent(){this.createDebouncedSubscription(this.targetBrightnessChanged,()=>{this.service.getCharacteristic("Brightness").setValue(this.targetBrightness.value),this.targetBrightness.value&&!this.service.values.On?(this.targetMode=!0,this.service.getCharacteristic("On").setValue(this.targetMode)):!this.targetBrightness.value&&this.service.values.On&&(this.targetMode=!1,this.service.getCharacteristic("On").setValue(this.targetMode))}),this.createDebouncedSubscription(this.targetHueChanged,()=>{this.service.getCharacteristic("Hue").setValue(this.targetHue.value)}),this.createDebouncedSubscription(this.targetSaturationChanged,()=>{this.service.getCharacteristic("Saturation").setValue(this.targetSaturation.value)}),this.createDebouncedSubscription(this.targetColorTemperatureChanged,t=>{this.service.getCharacteristic("ColorTemperature").setValue(t)}),this.targetMode=this.service.values.On,this.loadTargetBrightness(),this.loadTargetHue(),this.loadTargetSaturation(),this.loadTargetColorTemperature()}handleAccessoryUpdate(){if(this.targetMode=this.service.values.On,this.targetBrightness&&(this.targetBrightness.value=this.service.getCharacteristic("Brightness")?.value),this.targetHue&&(this.targetHue.value=this.service.getCharacteristic("Hue")?.value),this.targetSaturation&&(this.targetSaturation.value=this.service.getCharacteristic("Saturation")?.value),this.targetColorTemperature){let t=this.service.getCharacteristic("ColorTemperature")?.value;this.targetColorTemperature.value=this.$colour.miredToKelvin(t),this.targetColorTemperature.mired=t}}setTargetMode(t,n){this.targetMode=t,this.service.getCharacteristic("On").setValue(this.targetMode),this.targetMode&&this.targetBrightness&&!this.targetBrightness.value&&(this.targetBrightness.value=this.service.getCharacteristic("Brightness").maxValue),this.blurTarget(n)}onBrightnessStateChange(){this.targetBrightnessChanged.next(this.targetBrightness.value)}onHueStateChange(){this.targetHueChanged.next(this.targetHue.value);let t=document.querySelectorAll(".noUi-target")[this.sliderIndex-1];if(t){let n=this.targetHue.value;t.style.background=`linear-gradient(to right,
2
2
  hsl(${n}, 0%, 50%),
3
3
  hsl(${n}, 100%, 50%))`}}onSaturationStateChange(){this.targetSaturationChanged.next(this.targetSaturation.value)}onColorTemperatureStateChange(){let t=this.$colour.kelvinToMired(this.targetColorTemperature.value);this.targetColorTemperature.mired=t,this.targetColorTemperatureChanged.next(t)}loadTargetBrightness(){let t=this.service.getCharacteristic("Brightness");t&&(this.targetBrightness={value:t.value,min:t.minValue,max:t.maxValue,step:t.minStep},this.applySliderGradient("linear-gradient(to right, #242424, #ffd6aa)",`.noUi-target:nth-of-type(${this.sliderIndex+1})`),this.sliderIndex+=1)}loadTargetHue(){let t=this.service.getCharacteristic("Hue");t&&(this.targetHue={value:t.value},this.applySliderGradient(`linear-gradient(to right,
4
4
  hsl(0, 100%, 50%),