homebridge-config-ui-x 5.3.1-beta.2 → 5.3.1-beta.21

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 (137) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/modules/platform-tools/terminal/terminal.service.js +26 -26
  3. package/dist/modules/platform-tools/terminal/terminal.service.js.map +1 -1
  4. package/dist/modules/status/status.controller.d.ts +0 -1
  5. package/dist/modules/status/status.gateway.d.ts +0 -1
  6. package/dist/modules/status/status.service.d.ts +0 -1
  7. package/dist/modules/status/status.service.js +0 -30
  8. package/dist/modules/status/status.service.js.map +1 -1
  9. package/package.json +2 -2
  10. package/public/assets/accessory-icons/air-purifier.svg +50 -0
  11. package/public/assets/accessory-icons/air-quality-sensor.svg +30 -0
  12. package/public/assets/accessory-icons/carbon-dioxide-sensor.svg +53 -0
  13. package/public/assets/accessory-icons/carbon-monoxide-sensor.svg +53 -0
  14. package/public/assets/accessory-icons/contact-sensor.svg +45 -0
  15. package/public/assets/accessory-icons/door.svg +28 -0
  16. package/public/assets/accessory-icons/doorbell.svg +7 -0
  17. package/public/assets/accessory-icons/garage-door.svg +120 -0
  18. package/public/assets/accessory-icons/microphone.svg +12 -0
  19. package/public/assets/{hap-icons/vacuum-on.svg → accessory-icons/robot-vacuum.svg} +27 -24
  20. package/public/assets/accessory-icons/smoke-sensor.svg +38 -0
  21. package/public/assets/hap-icons/speaker.svg +4 -4
  22. package/public/assets/monaco-0.21.3/LICENSE +21 -0
  23. package/public/assets/monaco-0.21.3/README.md +96 -0
  24. package/public/assets/monaco-0.21.3/ThirdPartyNotices.txt +283 -0
  25. package/public/assets/monaco-0.21.3/min/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  26. package/public/assets/monaco-0.21.3/package.json +38 -0
  27. package/public/{chunk-RUGXAJFG.js → chunk-266W2IXX.js} +1 -1
  28. package/public/{chunk-S7D4ALZN.js → chunk-2HQZ67OQ.js} +1 -1
  29. package/public/{chunk-RHCMG64A.js → chunk-4IO5CZNO.js} +1 -1
  30. package/public/{chunk-M5NQ4PPK.js → chunk-4VJBOLKN.js} +1 -1
  31. package/public/{chunk-Y2WR3DTD.js → chunk-5LZZ7QL3.js} +1 -1
  32. package/public/chunk-5NFFYPKF.js +1 -0
  33. package/public/{chunk-VPU5FNT3.js → chunk-5SOYD2TJ.js} +1 -1
  34. package/public/{chunk-QWFWYENA.js → chunk-65YEFWKG.js} +1 -1
  35. package/public/{chunk-MFAGY6KM.js → chunk-765D7VYU.js} +1 -1
  36. package/public/{chunk-LTNHCFVE.js → chunk-7FGHR4MI.js} +1 -1
  37. package/public/chunk-7I6N5VRM.js +1 -0
  38. package/public/{chunk-H337OZRD.js → chunk-AGG2PKOU.js} +1 -1
  39. package/public/chunk-ANMMY5CI.js +1 -0
  40. package/public/{chunk-IMT3YYMD.js → chunk-BICPFHAC.js} +1 -1
  41. package/public/{chunk-MEUQDXB4.js → chunk-BIK2UD4M.js} +1 -1
  42. package/public/{chunk-FDLD6PXT.js → chunk-BZMJIEWN.js} +1 -1
  43. package/public/{chunk-ZHHBQLMW.js → chunk-C2YY224G.js} +1 -1
  44. package/public/{chunk-2FTHA637.js → chunk-CWQ6ZSGE.js} +1 -1
  45. package/public/{chunk-UORORZRF.js → chunk-D3REX5AX.js} +2 -2
  46. package/public/{chunk-TGNWWUX2.js → chunk-E6O3ARSU.js} +1 -1
  47. package/public/{chunk-2SFFQU7E.js → chunk-EY6WW3AK.js} +1 -1
  48. package/public/{chunk-HWLFFU24.js → chunk-EYEQ6NN4.js} +1 -1
  49. package/public/{chunk-UBUPCIG7.js → chunk-F3BKNHYI.js} +2 -2
  50. package/public/{chunk-RPRM66DV.js → chunk-FLJ5YMEV.js} +1 -1
  51. package/public/chunk-FPC6DQKK.js +1 -0
  52. package/public/{chunk-F3MG6UU6.js → chunk-GH4LZN3L.js} +1 -1
  53. package/public/chunk-GLRIWBOZ.js +1 -0
  54. package/public/chunk-HCP4JDTX.js +1 -0
  55. package/public/{chunk-XMU54Z4I.js → chunk-HG72TAZA.js} +1 -1
  56. package/public/chunk-HLJ7HDRH.js +1 -0
  57. package/public/{chunk-FBUMZH3M.js → chunk-HPH2XH5T.js} +1 -1
  58. package/public/{chunk-3T5DWLEU.js → chunk-J4YU65LZ.js} +1 -1
  59. package/public/chunk-JHYSVQC3.js +1 -0
  60. package/public/{chunk-MG3W55EH.js → chunk-K55VCLYN.js} +1 -1
  61. package/public/chunk-KAW657JE.js +1 -0
  62. package/public/{chunk-5CJVTJIE.js → chunk-KLP4CBZ4.js} +1 -1
  63. package/public/{chunk-NO7RIAKI.js → chunk-KR2T7G6K.js} +1 -1
  64. package/public/{chunk-VW3OPYPI.js → chunk-KW2EE34I.js} +1 -1
  65. package/public/{chunk-7MIPVXLJ.js → chunk-L2MRC6AR.js} +1 -1
  66. package/public/{chunk-BSPKLFZ5.js → chunk-L34HBBHI.js} +2 -2
  67. package/public/{chunk-S7AIVWKK.js → chunk-L6QEXIU2.js} +1 -1
  68. package/public/chunk-LCTW2GII.js +1 -0
  69. package/public/{chunk-CTBYEKWZ.js → chunk-LURKJXHA.js} +1 -1
  70. package/public/{chunk-RMZGW2GZ.js → chunk-MF2XI7O3.js} +1 -1
  71. package/public/{chunk-QOUFFCXD.js → chunk-MV2TAERN.js} +1 -1
  72. package/public/{chunk-6KU2OSFL.js → chunk-NNXSRPDM.js} +2 -2
  73. package/public/chunk-NUAVF2CP.js +1 -0
  74. package/public/chunk-OQMXN2HP.js +1 -0
  75. package/public/chunk-OYUCEKDP.js +4 -0
  76. package/public/{chunk-LDDVDB32.js → chunk-PDDLHA2Z.js} +1 -1
  77. package/public/{chunk-25NXLXGL.js → chunk-QIW6M5VR.js} +1 -1
  78. package/public/chunk-QKVY4ZEN.js +12 -0
  79. package/public/{chunk-AKD24HZC.js → chunk-RCWSDUTV.js} +1 -1
  80. package/public/{chunk-GXKYHQPV.js → chunk-RHVXSVTG.js} +1 -1
  81. package/public/{chunk-O4DNLPYF.js → chunk-RORN44IG.js} +1 -1
  82. package/public/{chunk-E3QJRRZX.js → chunk-SS2MPODH.js} +1 -1
  83. package/public/{chunk-MJK6N6PA.js → chunk-SXLEIQ7L.js} +1 -1
  84. package/public/chunk-TIL3AXXZ.js +4 -0
  85. package/public/{chunk-KKMV35EJ.js → chunk-U3S5RZBK.js} +1 -1
  86. package/public/{chunk-UKEZ5GGN.js → chunk-UDZCOX6Z.js} +1 -1
  87. package/public/{chunk-FUQWPOJU.js → chunk-UPEVR422.js} +1 -1
  88. package/public/chunk-VLDEJRYU.js +1 -0
  89. package/public/{chunk-VZRW6ATJ.js → chunk-VQ6CMHDR.js} +1 -1
  90. package/public/{chunk-C2H4WU7E.js → chunk-VQFV46GS.js} +1 -1
  91. package/public/chunk-W2DFSRPJ.js +1 -0
  92. package/public/{chunk-V2JQMGNW.js → chunk-W7HZZAPO.js} +1 -1
  93. package/public/{chunk-RJOGO4M5.js → chunk-WBXDUV2S.js} +1 -1
  94. package/public/chunk-XEWNX5CX.js +1 -0
  95. package/public/{chunk-WX2DXDQP.js → chunk-ZWLJYFRW.js} +17 -15
  96. package/public/index.html +2 -2
  97. package/public/main-BXMYH6PX.js +1 -0
  98. package/public/{styles-LG2MDN7O.css → styles-COBBPQJD.css} +1 -1
  99. package/public/assets/hap-icons/air-purifier.svg +0 -50
  100. package/public/assets/hap-icons/air-quality-sensor.svg +0 -25
  101. package/public/assets/hap-icons/carbon-dioxide-sensor.svg +0 -72
  102. package/public/assets/hap-icons/carbon-monoxide-sensor.svg +0 -72
  103. package/public/assets/hap-icons/contact-sensor-closed.svg +0 -36
  104. package/public/assets/hap-icons/contact-sensor-open.svg +0 -81
  105. package/public/assets/hap-icons/door-closed.svg +0 -33
  106. package/public/assets/hap-icons/doorbell.svg +0 -17
  107. package/public/assets/hap-icons/garage-door.svg +0 -25
  108. package/public/assets/hap-icons/microphone.svg +0 -22
  109. package/public/assets/hap-icons/smoke-sensor.svg +0 -59
  110. package/public/assets/hap-icons/vacuum-off.svg +0 -34
  111. package/public/chunk-3T4CLJZB.js +0 -1
  112. package/public/chunk-57GCR4EG.js +0 -1
  113. package/public/chunk-AZGZHQ6H.js +0 -1
  114. package/public/chunk-B24CHCYQ.js +0 -4
  115. package/public/chunk-CPAHENLQ.js +0 -1
  116. package/public/chunk-EB55AKA5.js +0 -1
  117. package/public/chunk-GUMW23NO.js +0 -1
  118. package/public/chunk-JTGQF57R.js +0 -1
  119. package/public/chunk-LLUK2BKI.js +0 -1
  120. package/public/chunk-NBH3OPPF.js +0 -1
  121. package/public/chunk-PYHGTQGK.js +0 -1
  122. package/public/chunk-RRLXIJI2.js +0 -1
  123. package/public/chunk-SBRL5MLD.js +0 -1
  124. package/public/chunk-TU6EJB5I.js +0 -1
  125. package/public/chunk-UPWD7C23.js +0 -1
  126. package/public/chunk-WEVBEUAJ.js +0 -4
  127. package/public/chunk-ZSSKZOCU.js +0 -1
  128. package/public/chunk-ZUJKHS4Z.js +0 -12
  129. package/public/main-JC5QHSTM.js +0 -1
  130. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/base/worker/workerMain.js +0 -0
  131. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/basic-languages/shell/shell.js +0 -0
  132. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.css +0 -0
  133. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.js +0 -0
  134. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/editor/editor.main.nls.js +0 -0
  135. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/language/json/jsonMode.js +0 -0
  136. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/language/json/jsonWorker.js +0 -0
  137. /package/public/assets/{monaco → monaco-0.21.3}/min/vs/loader.js +0 -0
@@ -1 +1 @@
1
- import{g as i}from"./chunk-25NXLXGL.js";import"./chunk-RJOGO4M5.js";import{ha as t,nb as e}from"./chunk-WEVBEUAJ.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"docker",loadChildren:()=>import("./chunk-LTNHCFVE.js").then(o=>o.DockerModule)},{path:"linux",loadChildren:()=>import("./chunk-LDDVDB32.js").then(o=>o.LinuxModule)},{path:"terminal",loadChildren:()=>import("./chunk-FBUMZH3M.js").then(o=>o.TerminalModule)}],l=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(d),i]})}return o})();var p=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[l]})}return o})();export{p as PlatformToolsModule};
1
+ import{g as i}from"./chunk-QIW6M5VR.js";import"./chunk-WBXDUV2S.js";import{ha as t,nb as e}from"./chunk-TIL3AXXZ.js";var d=[{path:"",redirectTo:"/",pathMatch:"full"},{path:"docker",loadChildren:()=>import("./chunk-7FGHR4MI.js").then(o=>o.DockerModule)},{path:"linux",loadChildren:()=>import("./chunk-PDDLHA2Z.js").then(o=>o.LinuxModule)},{path:"terminal",loadChildren:()=>import("./chunk-HPH2XH5T.js").then(o=>o.TerminalModule)}],l=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[i.forChild(d),i]})}return o})();var p=(()=>{class o{static \u0275fac=function(r){return new(r||o)};static \u0275mod=e({type:o});static \u0275inj=t({imports:[l]})}return o})();export{p as PlatformToolsModule};
@@ -1 +1 @@
1
- import{Sb as t,Tb as i,Ub as o,mb as a,ta as r}from"./chunk-WEVBEUAJ.js";var l=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=a({type:e,selectors:[["app-spinner"]],decls:7,vars:0,consts:[[1,"app-spinner-container"],[1,"animate_loader"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","width","200px","height","200px","viewBox","0 0 100 100","preserveAspectRatio","xMidYMid",2,"margin","auto","display","block"],["cx","50","cy","50","r","32","stroke-width","8","stroke-dasharray","50.26548245743669 50.26548245743669","fill","none","stroke-linecap","round","transform","rotate(327.259 50 50)",1,"spinner_outer"],["attributeName","transform","type","rotate","dur","2s","repeatCount","indefinite","keyTimes","0;1","values","0 50 50;360 50 50"],["cx","50","cy","50","r","23","stroke-width","8","stroke","#f8b26a","stroke-dasharray","36.12831551628262 36.12831551628262","stroke-dashoffset","36.12831551628262","fill","none","stroke-linecap","round","transform","rotate(-327.259 50 50)",1,"spinner_inner"],["attributeName","transform","type","rotate","dur","2s","repeatCount","indefinite","keyTimes","0;1","values","0 50 50;-360 50 50"]],template:function(n,m){n&1&&(t(0,"div",0)(1,"div",1),r(),t(2,"svg",2)(3,"circle",3),o(4,"animateTransform",4),i(),t(5,"circle",5),o(6,"animateTransform",6),i()()()())},styles:[".app-spinner-container[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1000}.animate_loader[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;inset:0;margin:auto;width:200px;overflow:visible}"]})}return e})();export{l as a};
1
+ import{Sb as t,Tb as i,Ub as o,mb as a,ta as r}from"./chunk-TIL3AXXZ.js";var l=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=a({type:e,selectors:[["app-spinner"]],decls:7,vars:0,consts:[[1,"app-spinner-container"],[1,"animate_loader"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","width","200px","height","200px","viewBox","0 0 100 100","preserveAspectRatio","xMidYMid",2,"margin","auto","display","block"],["cx","50","cy","50","r","32","stroke-width","8","stroke-dasharray","50.26548245743669 50.26548245743669","fill","none","stroke-linecap","round","transform","rotate(327.259 50 50)",1,"spinner_outer"],["attributeName","transform","type","rotate","dur","2s","repeatCount","indefinite","keyTimes","0;1","values","0 50 50;360 50 50"],["cx","50","cy","50","r","23","stroke-width","8","stroke","#f8b26a","stroke-dasharray","36.12831551628262 36.12831551628262","stroke-dashoffset","36.12831551628262","fill","none","stroke-linecap","round","transform","rotate(-327.259 50 50)",1,"spinner_inner"],["attributeName","transform","type","rotate","dur","2s","repeatCount","indefinite","keyTimes","0;1","values","0 50 50;-360 50 50"]],template:function(n,m){n&1&&(t(0,"div",0)(1,"div",1),r(),t(2,"svg",2)(3,"circle",3),o(4,"animateTransform",4),i(),t(5,"circle",5),o(6,"animateTransform",6),i()()()())},styles:[".app-spinner-container[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:1000}.animate_loader[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;inset:0;margin:auto;width:200px;overflow:visible}"]})}return e})();export{l as a};
@@ -1,4 +1,4 @@
1
- import{a as we}from"./chunk-S7D4ALZN.js";import{b as A,e as ye,f as Ce,g as Re}from"./chunk-UBUPCIG7.js";import{a as fe,b as he}from"./chunk-F3MG6UU6.js";import{a as _e}from"./chunk-AKD24HZC.js";import{a as De}from"./chunk-IMT3YYMD.js";import{m as pe,n as ge,t as D}from"./chunk-MJK6N6PA.js";import{A as me,c as se,e as le,l as de,z as ce}from"./chunk-VPU5FNT3.js";import{b as ue,d as j}from"./chunk-25NXLXGL.js";import{b as be}from"./chunk-LLUK2BKI.js";import{k as I,n as H}from"./chunk-5CJVTJIE.js";import{a as R,b as P}from"./chunk-CPAHENLQ.js";import"./chunk-RJOGO4M5.js";import{Ec as z,Hb as C,Hc as s,Ib as w,Ic as d,Jb as v,Jc as K,Lb as Z,Mb as ee,Nb as te,Ob as f,Pb as a,Qb as l,Rb as p,_b as x,ab as r,bc as b,d as G,dc as m,fb as X,g as Q,h as E,id as re,la as g,mb as B,pd as ae,qc as _,ra as h,rc as k,sa as u,sc as M,w as $,xc as ie,yc as oe,zc as ne}from"./chunk-WEVBEUAJ.js";var ke=Q(Re(),1);var ve=Q(De(),1);var Ee=(n,y)=>({"fa-trash":n,"fa-cog fa-spin":y});function Ie(n,y){n&1&&(a(0,"div",13),p(1,"i",20),l())}function je(n,y){if(n&1){let e=x();a(0,"li",9)(1,"span"),_(2),s(3,"date"),p(4,"br"),a(5,"span",21),_(6),s(7,"date"),l()(),a(8,"span",22)(9,"button",25),s(10,"translate"),s(11,"translate"),b("click",function(){let i=h(e).$implicit,o=m(2);return u(o.restore(i.id))}),p(12,"i",26),l(),a(13,"button",27),s(14,"translate"),s(15,"translate"),b("click",function(){let i=h(e).$implicit,o=m(2);return u(o.download(i.id))}),p(16,"i",28),l(),a(17,"button",23),s(18,"translate"),s(19,"translate"),b("click",function(){let i=h(e).$implicit,o=m(2);return u(o.delete(i.id))}),p(20,"i",24),l()()()}if(n&2){let e=y.$implicit,t=m(2);r(2),M(" ",K(3,15,e.timestamp,"mediumDate")),r(4),k(K(7,18,e.timestamp,"shortTime")),r(3),f("disabled",t.clicked||t.deleting)("ngbTooltip",d(10,21,"config.restore.copy_to_editor"))("openDelay",150),C("aria-label",d(11,23,"config.restore.copy_to_editor")),r(4),f("disabled",t.clicked||t.deleting)("ngbTooltip",d(14,25,"form.button_download"))("openDelay",150),C("aria-label",d(15,27,"form.button_download")),r(4),f("disabled",t.clicked||t.deleting)("ngbTooltip",d(18,29,"form.button_delete"))("openDelay",150),C("aria-label",d(19,31,"form.button_delete")),r(3),f("ngClass",z(33,Ee,e.id!==t.deleting,e.id===t.deleting))}}function He(n,y){if(n&1){let e=x();a(0,"ul",14),ee(1,je,21,36,"li",9,Z),a(3,"li",9)(4,"span"),_(5),s(6,"translate"),p(7,"br"),a(8,"span",21),_(9),s(10,"translate"),l()(),a(11,"span",22)(12,"button",23),s(13,"translate"),s(14,"translate"),b("click",function(){h(e);let i=m();return u(i.deleteAllBackups())}),p(15,"i",24),l()()()()}if(n&2){let e=m();r(),te(e.backupList),r(4),M(" ",d(6,7,"form.button_delete_all")),r(4),M(" ",d(10,9,"common.labels.no_confirmation")," "),r(3),f("disabled",e.clicked||e.deleting)("ngbTooltip",d(13,11,"form.button_delete_all"))("openDelay",150),C("aria-label",d(14,13,"form.button_delete")),r(3),f("ngClass",z(15,Ee,e.deleting!=="all",e.deleting==="all"))}}var xe=(()=>{class n{$activeModal=g(pe);$api=g(H);$router=g(j);$toastr=g(I);$translate=g(R);currentConfig;fromSettings=!1;loading=!0;backupList=[];clicked=!1;deleting=null;ngOnInit(){this.getConfigBackups()}getConfigBackups(){return E(this,null,function*(){try{let e=yield $(this.$api.get("/config-editor/backups"));this.loading=!1,this.backupList=e}catch(e){this.loading=!1,console.error(e),this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),this.dismissModal()}})}restore(e){return this.$activeModal.close(e)}download(e){return E(this,null,function*(){this.clicked=!0;try{let t=yield $(this.$api.get(`/config-editor/backups/${e}`)),i=JSON.stringify(t,null,4),o=new Blob([i],{type:"application/json"}),T=`config-backup-${e}.json`;(0,ve.saveAs)(o,T),this.clicked=!1}catch(t){this.clicked=!1,this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),console.error(t)}})}downloadCurrentConfig(){let e=`data:text/json;charset=utf-8,${encodeURIComponent(this.currentConfig)}`,t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download","config.json"),document.body.appendChild(t),t.click(),t.remove()}delete(e){return E(this,null,function*(){this.deleting=e;try{yield $(this.$api.delete(`/config-editor/backups/${e}`)),yield this.getConfigBackups(),this.deleting=null}catch(t){this.deleting=null,this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),console.error(t)}})}deleteAllBackups(){return E(this,null,function*(){this.deleting="all";try{yield $(this.$api.delete("/config-editor/backups")),this.$toastr.success(this.$translate.instant("config.restore.toast_backups_deleted"),this.$translate.instant("toast.title_success")),this.backupList=[],this.deleting=null}catch(e){this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),console.error(e),this.deleting=null}})}dismissModal(){this.fromSettings&&this.$router.navigate(["/settings"]),this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],inputs:{currentConfig:"currentConfig",fromSettings:"fromSettings"},decls:40,vars:31,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-fw","fa-history","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"btn","btn-primary","m-0","ms-3",3,"click","disabled"],[1,"fas","fa-fw","fa-arrow-right"],[1,"text-center","primary-text"],[1,"list-group","list-group-box","mt-3"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-end"],[1,"fa","fa-fw","fa-cog","fa-spin","mt-3",2,"font-size","75px"],[1,"grey-text","small"],[2,"display","flex","flex-wrap","nowrap"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-danger","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-fw",3,"ngClass"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-3",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-fw","fa-history"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-fw","fa-download"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),_(3),s(4,"translate"),l(),a(5,"button",3),s(6,"translate"),b("click",function(){return i.dismissModal()}),l()(),a(7,"div",4)(8,"div",5),p(9,"i",6),l(),a(10,"ul",7)(11,"li"),_(12),s(13,"translate"),l(),a(14,"li"),_(15),s(16,"translate"),l()(),a(17,"ul",8)(18,"li",9)(19,"div")(20,"span"),_(21),s(22,"translate"),l(),p(23,"br"),a(24,"small",10),_(25),s(26,"translate"),l()(),a(27,"button",11),s(28,"translate"),b("click",function(){return i.downloadCurrentConfig()}),p(29,"i",12),l()()(),w(30,Ie,2,0,"div",13)(31,He,16,18,"ul",14),l(),a(32,"div",15),p(33,"div",16),a(34,"div",17)(35,"button",18),s(36,"translate"),b("click",function(){return i.dismissModal()}),_(37),s(38,"translate"),l()(),p(39,"div",19),l()()),t&2&&(r(3),k(d(4,13,"config.restore.title")),r(2),f("disabled",i.clicked||i.deleting),C("aria-label",d(6,15,"form.button_close")),r(7),k(d(13,17,"config.restore.help_1")),r(3),k(d(16,19,"config.restore.help_2")),r(6),k(d(22,21,"form.button_download")),r(4),k(d(26,23,"config.restore.download")),r(2),f("disabled",i.clicked||i.deleting),C("aria-label",d(28,25,"backup.backup_now")),r(3),v(i.loading?30:i.backupList.length?31:-1),r(5),f("disabled",i.clicked||i.deleting),C("aria-label",d(36,27,"form.button_close")),r(2),M(" ",d(38,29,"form.button_close")," "))},dependencies:[D,re,me,ae,P],encapsulation:2})}return n})();function Oe(n,y){if(n&1){let e=x();a(0,"button",13),s(1,"translate"),s(2,"translate"),b("click",function(){h(e);let i=m();return u(i.onCancelRestore())}),p(3,"i",14),l()}if(n&2){let e=m();f("disabled",e.saveInProgress)("openDelay",150)("ngbTooltip",d(1,4,"form.button_cancel")),C("aria-label",d(2,6,"form.button_cancel"))}}function Ne(n,y){if(n&1){let e=x();a(0,"button",15),s(1,"translate"),s(2,"translate"),b("click",function(){h(e);let i=m();return u(i.onRestore())}),p(3,"i",16),l()}n&2&&(f("openDelay",150)("ngbTooltip",d(1,3,"form.button_restore")),C("aria-label",d(2,5,"form.button_restore")))}function qe(n,y){n&1&&p(0,"i",8)}function Fe(n,y){n&1&&p(0,"i",9)}function Le(n,y){if(n&1){let e=x();a(0,"ngx-monaco-editor",17),b("onInit",function(i){h(e);let o=m();return u(o.onEditorInit(i))})("keydown.control.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())})("keydown.meta.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())}),l()}if(n&2){let e=m();f("options",e.editorOptions)("model",e.monacoEditorModel)}}function Je(n,y){if(n&1){let e=x();a(0,"ngx-monaco-diff-editor",18),b("onInit",function(i){h(e);let o=m();return u(o.onInitDiffEditor(i))})("keydown.control.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())})("keydown.meta.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())}),l()}if(n&2){let e=m();f("options",e.editorOptions)("originalModel",e.monacoEditorModel)("modifiedModel",e.monacoEditorModel)}}function ze(n,y){if(n&1){let e=x();a(0,"textarea",19),ne("ngModelChange",function(i){h(e);let o=m();return oe(o.homebridgeConfig,i)||(o.homebridgeConfig=i),u(i)}),_(1," "),l()}if(n&2){let e=m();ie("ngModel",e.homebridgeConfig)}}var xt=(()=>{class n{$api=g(H);$md=g(_e);$modal=g(ge);$monacoEditor=g(we);$route=g(ue);$renderer=g(X);$router=g(j);$settings=g(be);$toastr=g(I);$translate=g(R);editorDecorations=[];lastHeight;visualViewPortEventCallback;latestSavedConfig;childBridgesToRestart=[];hbPendingRestart=!1;homebridgeConfig;originalConfig;saveInProgress;isMobile=!1;monacoEditor;editorOptions;monacoEditorModel;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"json",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0};let e=document.querySelector(".content");this.$renderer.setStyle(e,"height","100%"),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(i=>{this.homebridgeConfig=i.config,this.latestSavedConfig=JSON.parse(i.config)}),this.monacoEditorModel={value:"{}",language:"json",uri:window.monaco?window.monaco.Uri.parse("a://homebridge/config.json"):void 0},window.monaco?this.setMonacoEditorModel():this.$monacoEditor.readyEvent.subscribe({next:()=>{this.setMonacoEditorModel()}});let{action:t}=this.$router.parseUrl(this.$router.url).queryParams;if(t){switch(t){case"restore":{this.onRestore(!0);break}}this.$router.navigate([],{queryParams:{},replaceUrl:!0,queryParamsHandling:""})}}onEditorInit(e){window.editor=e,this.monacoEditor=e,this.monacoEditor.getModel().setValue(this.homebridgeConfig)}onInitDiffEditor(e){this.monacoEditor=e.modifiedEditor,e.getModel().original.setValue(this.originalConfig),e.getModel().modified.setValue(this.homebridgeConfig),window.editor=e}onSave(){return E(this,null,function*(){if(!this.saveInProgress){this.monacoEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[])),this.saveInProgress=!0;try{if(!this.isMobile){yield this.monacoEditor.getAction("editor.action.formatDocument").run();let t=window.monaco.editor.getModelMarkers({owner:"json"});for(let i of t)if(i.message==="Duplicate object key"){this.saveInProgress=!1,this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"));return}this.homebridgeConfig=this.monacoEditor.getModel().getValue()}let e=this.parseConfigFromEditor();this.homebridgeConfig=JSON.stringify(e,null,4),typeof e.bridge!="object"?this.$toastr.error(this.$translate.instant("config.config_bridge_missing"),this.$translate.instant("toast.title_error")):/^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/i.test(e.bridge.username)?e.accessories&&!Array.isArray(e.accessories)?this.$toastr.error(this.$translate.instant("config.config_accessory_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&!Array.isArray(e.platforms)?this.$toastr.error(this.$translate.instant("config.config_platform_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&Array.isArray(e.platforms)&&!this.validateSection(e.platforms,"platform")||e.accessories&&Array.isArray(e.accessories)&&!this.validateSection(e.accessories,"accessory")||e.plugins&&Array.isArray(e.plugins)&&!this.validatePlugins(e.plugins,"plugins")||e.disabledPlugins&&Array.isArray(e.disabledPlugins)&&!this.validatePlugins(e.disabledPlugins,"disabledPlugins")||(yield this.saveConfig(e),this.originalConfig=""):this.$toastr.error(this.$translate.instant("config.config_username_error"),this.$translate.instant("toast.title_error"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}onRestore(e=!1){let t=this.$modal.open(xe,{size:"lg",backdrop:"static"});t.componentInstance.currentConfig=this.homebridgeConfig,t.componentInstance.fromSettings=e,t.result.then(i=>{this.originalConfig||(this.originalConfig=this.homebridgeConfig),this.$api.get(`/config-editor/backups/${i}`).subscribe({next:o=>{this.$toastr.info(this.$translate.instant("config.restore.confirm"),this.$translate.instant("config.title_backup_loaded")),this.homebridgeConfig=JSON.stringify(o,null,4),this.monacoEditor&&window.editor.modifiedEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[]),this.monacoEditor.executeEdits("beautifier",[{identifier:"delete",range:new monaco.Range(1,1,this.monacoEditor.getModel().getLineCount()+10,1),text:"",forceMoveMarkers:!0}]),this.monacoEditor.executeEdits("beautifier",[{identifier:"insert",range:new monaco.Range(1,1,1,1),text:this.homebridgeConfig,forceMoveMarkers:!0}]))},error:o=>{console.error(o),this.$toastr.error(o.error?.message||this.$translate.instant("backup.load_error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}onCancelRestore(){this.homebridgeConfig=this.originalConfig,this.originalConfig="",this.onRestore()}ngOnDestroy(){let e=document.querySelector(".content");this.$renderer.removeStyle(e,"height"),window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}validateSection(e,t){for(let i of e){if(typeof i!="object"||Array.isArray(i))return this.$toastr.error(this.$translate.instant("config.error_blocks_objects",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(!i[t])return this.$toastr.error(this.$translate.instant("config.error_blocks_type",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(typeof i[t]!="string")return this.$toastr.error(this.$translate.instant("config.error_string_type",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1}return!0}validatePlugins(e,t){for(let i of e)if(typeof i!="string")return this.$toastr.error(this.$translate.instant("config.error_string_array",{key:t}),this.$translate.instant("toast.title_error")),!1;return!0}highlightOffendingArrayItem(e){this.monacoEditor&&(e=JSON.stringify(e,null,4).split(`
1
+ import{a as ve}from"./chunk-2HQZ67OQ.js";import{b as A,e as ye,f as Ce,g as Re}from"./chunk-F3BKNHYI.js";import{a as fe,b as he}from"./chunk-GH4LZN3L.js";import{a as _e}from"./chunk-RCWSDUTV.js";import{a as De}from"./chunk-BICPFHAC.js";import{m as pe,n as ge,t as D}from"./chunk-SXLEIQ7L.js";import{A as me,c as se,e as le,l as de,z as ce}from"./chunk-5SOYD2TJ.js";import{b as ue,d as j}from"./chunk-QIW6M5VR.js";import{b as be}from"./chunk-HLJ7HDRH.js";import{k as I,n as H}from"./chunk-KLP4CBZ4.js";import{a as R,b as P}from"./chunk-HCP4JDTX.js";import"./chunk-WBXDUV2S.js";import{Ec as z,Hb as C,Ib as v,Ic as s,Jb as w,Jc as d,Kc as K,Lb as Z,Mb as ee,Nb as te,Ob as f,Pb as a,Qb as l,Rb as p,_b as x,ab as r,bc as b,d as G,dc as m,fb as X,g as Q,h as E,jd as re,la as g,mb as B,qc as _,qd as ae,ra as h,rc as k,sa as u,sc as M,w as $,xc as ie,yc as oe,zc as ne}from"./chunk-TIL3AXXZ.js";var ke=Q(Re(),1);var we=Q(De(),1);var Ee=(n,y)=>({"fa-trash":n,"fa-cog fa-spin":y});function Ie(n,y){n&1&&(a(0,"div",13),p(1,"i",20),l())}function je(n,y){if(n&1){let e=x();a(0,"li",9)(1,"span"),_(2),s(3,"date"),p(4,"br"),a(5,"span",21),_(6),s(7,"date"),l()(),a(8,"span",22)(9,"button",25),s(10,"translate"),s(11,"translate"),b("click",function(){let i=h(e).$implicit,o=m(2);return u(o.restore(i.id))}),p(12,"i",26),l(),a(13,"button",27),s(14,"translate"),s(15,"translate"),b("click",function(){let i=h(e).$implicit,o=m(2);return u(o.download(i.id))}),p(16,"i",28),l(),a(17,"button",23),s(18,"translate"),s(19,"translate"),b("click",function(){let i=h(e).$implicit,o=m(2);return u(o.delete(i.id))}),p(20,"i",24),l()()()}if(n&2){let e=y.$implicit,t=m(2);r(2),M(" ",K(3,15,e.timestamp,"mediumDate")),r(4),k(K(7,18,e.timestamp,"shortTime")),r(3),f("disabled",t.clicked||t.deleting)("ngbTooltip",d(10,21,"config.restore.copy_to_editor"))("openDelay",150),C("aria-label",d(11,23,"config.restore.copy_to_editor")),r(4),f("disabled",t.clicked||t.deleting)("ngbTooltip",d(14,25,"form.button_download"))("openDelay",150),C("aria-label",d(15,27,"form.button_download")),r(4),f("disabled",t.clicked||t.deleting)("ngbTooltip",d(18,29,"form.button_delete"))("openDelay",150),C("aria-label",d(19,31,"form.button_delete")),r(3),f("ngClass",z(33,Ee,e.id!==t.deleting,e.id===t.deleting))}}function He(n,y){if(n&1){let e=x();a(0,"ul",14),ee(1,je,21,36,"li",9,Z),a(3,"li",9)(4,"span"),_(5),s(6,"translate"),p(7,"br"),a(8,"span",21),_(9),s(10,"translate"),l()(),a(11,"span",22)(12,"button",23),s(13,"translate"),s(14,"translate"),b("click",function(){h(e);let i=m();return u(i.deleteAllBackups())}),p(15,"i",24),l()()()()}if(n&2){let e=m();r(),te(e.backupList),r(4),M(" ",d(6,7,"form.button_delete_all")),r(4),M(" ",d(10,9,"common.labels.no_confirmation")," "),r(3),f("disabled",e.clicked||e.deleting)("ngbTooltip",d(13,11,"form.button_delete_all"))("openDelay",150),C("aria-label",d(14,13,"form.button_delete")),r(3),f("ngClass",z(15,Ee,e.deleting!=="all",e.deleting==="all"))}}var xe=(()=>{class n{$activeModal=g(pe);$api=g(H);$router=g(j);$toastr=g(I);$translate=g(R);currentConfig;fromSettings=!1;loading=!0;backupList=[];clicked=!1;deleting=null;ngOnInit(){this.getConfigBackups()}getConfigBackups(){return E(this,null,function*(){try{let e=yield $(this.$api.get("/config-editor/backups"));this.loading=!1,this.backupList=e}catch(e){this.loading=!1,console.error(e),this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),this.dismissModal()}})}restore(e){return this.$activeModal.close(e)}download(e){return E(this,null,function*(){this.clicked=!0;try{let t=yield $(this.$api.get(`/config-editor/backups/${e}`)),i=JSON.stringify(t,null,4),o=new Blob([i],{type:"application/json"}),T=`config-backup-${e}.json`;(0,we.saveAs)(o,T),this.clicked=!1}catch(t){this.clicked=!1,this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),console.error(t)}})}downloadCurrentConfig(){let e=`data:text/json;charset=utf-8,${encodeURIComponent(this.currentConfig)}`,t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("download","config.json"),document.body.appendChild(t),t.click(),t.remove()}delete(e){return E(this,null,function*(){this.deleting=e;try{yield $(this.$api.delete(`/config-editor/backups/${e}`)),yield this.getConfigBackups(),this.deleting=null}catch(t){this.deleting=null,this.$toastr.error(t.error?.message||t.message,this.$translate.instant("toast.title_error")),console.error(t)}})}deleteAllBackups(){return E(this,null,function*(){this.deleting="all";try{yield $(this.$api.delete("/config-editor/backups")),this.$toastr.success(this.$translate.instant("config.restore.toast_backups_deleted"),this.$translate.instant("toast.title_success")),this.backupList=[],this.deleting=null}catch(e){this.$toastr.error(e.error?.message||e.message,this.$translate.instant("toast.title_error")),console.error(e),this.deleting=null}})}dismissModal(){this.fromSettings&&this.$router.navigate(["/settings"]),this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],inputs:{currentConfig:"currentConfig",fromSettings:"fromSettings"},decls:40,vars:31,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click","disabled"],[1,"modal-body"],[1,"text-center","mb-3"],[1,"fas","fa-history","primary-text",2,"font-size","75px"],[1,"mb-3"],[1,"list-group","list-group-box","mb-0"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"grey-text"],[1,"btn","btn-primary","m-0","ms-3",3,"click","disabled"],[1,"fas","fa-arrow-right"],[1,"text-center","primary-text"],[1,"list-group","list-group-box","mt-3"],[1,"modal-footer","justify-content-between"],[1,"text-start"],[1,"text-center"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click","disabled"],[1,"text-end"],[1,"fa","fa-cog","fa-spin","mt-3",2,"font-size","75px"],[1,"grey-text","small"],[2,"display","flex","flex-wrap","nowrap"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-danger","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas",3,"ngClass"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-3",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-history"],["placement","bottom","container","modal","triggers","hover",1,"btn","btn-primary","m-0","ms-2",3,"click","disabled","ngbTooltip","openDelay"],[1,"fas","fa-download"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1)(2,"h5",2),_(3),s(4,"translate"),l(),a(5,"button",3),s(6,"translate"),b("click",function(){return i.dismissModal()}),l()(),a(7,"div",4)(8,"div",5),p(9,"i",6),l(),a(10,"ul",7)(11,"li"),_(12),s(13,"translate"),l(),a(14,"li"),_(15),s(16,"translate"),l()(),a(17,"ul",8)(18,"li",9)(19,"div")(20,"span"),_(21),s(22,"translate"),l(),p(23,"br"),a(24,"small",10),_(25),s(26,"translate"),l()(),a(27,"button",11),s(28,"translate"),b("click",function(){return i.downloadCurrentConfig()}),p(29,"i",12),l()()(),v(30,Ie,2,0,"div",13)(31,He,16,18,"ul",14),l(),a(32,"div",15),p(33,"div",16),a(34,"div",17)(35,"button",18),s(36,"translate"),b("click",function(){return i.dismissModal()}),_(37),s(38,"translate"),l()(),p(39,"div",19),l()()),t&2&&(r(3),k(d(4,13,"config.restore.title")),r(2),f("disabled",i.clicked||i.deleting),C("aria-label",d(6,15,"form.button_close")),r(7),k(d(13,17,"config.restore.help_1")),r(3),k(d(16,19,"config.restore.help_2")),r(6),k(d(22,21,"form.button_download")),r(4),k(d(26,23,"config.restore.download")),r(2),f("disabled",i.clicked||i.deleting),C("aria-label",d(28,25,"backup.backup_now")),r(3),w(i.loading?30:i.backupList.length?31:-1),r(5),f("disabled",i.clicked||i.deleting),C("aria-label",d(36,27,"form.button_close")),r(2),M(" ",d(38,29,"form.button_close")," "))},dependencies:[D,re,me,ae,P],encapsulation:2})}return n})();function Oe(n,y){if(n&1){let e=x();a(0,"button",13),s(1,"translate"),s(2,"translate"),b("click",function(){h(e);let i=m();return u(i.onCancelRestore())}),p(3,"i",14),l()}if(n&2){let e=m();f("disabled",e.saveInProgress)("openDelay",150)("ngbTooltip",d(1,4,"form.button_cancel")),C("aria-label",d(2,6,"form.button_cancel"))}}function Ne(n,y){if(n&1){let e=x();a(0,"button",15),s(1,"translate"),s(2,"translate"),b("click",function(){h(e);let i=m();return u(i.onRestore())}),p(3,"i",16),l()}n&2&&(f("openDelay",150)("ngbTooltip",d(1,3,"form.button_restore")),C("aria-label",d(2,5,"form.button_restore")))}function qe(n,y){n&1&&p(0,"i",8)}function Fe(n,y){n&1&&p(0,"i",9)}function Le(n,y){if(n&1){let e=x();a(0,"ngx-monaco-editor",17),b("onInit",function(i){h(e);let o=m();return u(o.onEditorInit(i))})("keydown.control.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())})("keydown.meta.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())}),l()}if(n&2){let e=m();f("options",e.editorOptions)("model",e.monacoEditorModel)}}function Je(n,y){if(n&1){let e=x();a(0,"ngx-monaco-diff-editor",18),b("onInit",function(i){h(e);let o=m();return u(o.onInitDiffEditor(i))})("keydown.control.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())})("keydown.meta.s",function(i){h(e);let o=m();return i.preventDefault(),u(o.onSave())}),l()}if(n&2){let e=m();f("options",e.editorOptions)("originalModel",e.monacoEditorModel)("modifiedModel",e.monacoEditorModel)}}function ze(n,y){if(n&1){let e=x();a(0,"textarea",19),ne("ngModelChange",function(i){h(e);let o=m();return oe(o.homebridgeConfig,i)||(o.homebridgeConfig=i),u(i)}),_(1," "),l()}if(n&2){let e=m();ie("ngModel",e.homebridgeConfig)}}var xt=(()=>{class n{$api=g(H);$md=g(_e);$modal=g(ge);$monacoEditor=g(ve);$route=g(ue);$renderer=g(X);$router=g(j);$settings=g(be);$toastr=g(I);$translate=g(R);editorDecorations=[];lastHeight;visualViewPortEventCallback;latestSavedConfig;childBridgesToRestart=[];hbPendingRestart=!1;homebridgeConfig;originalConfig;saveInProgress;isMobile=!1;monacoEditor;editorOptions;monacoEditorModel;constructor(){this.isMobile=this.$md.detect.mobile()}ngOnInit(){this.editorOptions={language:"json",theme:this.$settings.actualLightingMode==="dark"?"vs-dark":"vs-light",automaticLayout:!0};let e=document.querySelector(".content");this.$renderer.setStyle(e,"height","100%"),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.visualViewPortEventCallback=()=>this.visualViewPortChanged(),this.lastHeight=window.innerHeight,window.visualViewport&&!this.isMobile&&(window.visualViewport.addEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.disableTouchMove()),this.$route.data.subscribe(i=>{this.homebridgeConfig=i.config,this.latestSavedConfig=JSON.parse(i.config)}),this.monacoEditorModel={value:"{}",language:"json",uri:window.monaco?window.monaco.Uri.parse("a://homebridge/config.json"):void 0},window.monaco?this.setMonacoEditorModel():this.$monacoEditor.readyEvent.subscribe({next:()=>{this.setMonacoEditorModel()}});let{action:t}=this.$router.parseUrl(this.$router.url).queryParams;if(t){switch(t){case"restore":{this.onRestore(!0);break}}this.$router.navigate([],{queryParams:{},replaceUrl:!0,queryParamsHandling:""})}}onEditorInit(e){window.editor=e,this.monacoEditor=e,this.monacoEditor.getModel().setValue(this.homebridgeConfig)}onInitDiffEditor(e){this.monacoEditor=e.modifiedEditor,e.getModel().original.setValue(this.originalConfig),e.getModel().modified.setValue(this.homebridgeConfig),window.editor=e}onSave(){return E(this,null,function*(){if(!this.saveInProgress){this.monacoEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[])),this.saveInProgress=!0;try{if(!this.isMobile){yield this.monacoEditor.getAction("editor.action.formatDocument").run();let t=window.monaco.editor.getModelMarkers({owner:"json"});for(let i of t)if(i.message==="Duplicate object key"){this.saveInProgress=!1,this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"));return}this.homebridgeConfig=this.monacoEditor.getModel().getValue()}let e=this.parseConfigFromEditor();this.homebridgeConfig=JSON.stringify(e,null,4),typeof e.bridge!="object"?this.$toastr.error(this.$translate.instant("config.config_bridge_missing"),this.$translate.instant("toast.title_error")):/^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/i.test(e.bridge.username)?e.accessories&&!Array.isArray(e.accessories)?this.$toastr.error(this.$translate.instant("config.config_accessory_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&!Array.isArray(e.platforms)?this.$toastr.error(this.$translate.instant("config.config_platform_must_be_array"),this.$translate.instant("toast.title_error")):e.platforms&&Array.isArray(e.platforms)&&!this.validateSection(e.platforms,"platform")||e.accessories&&Array.isArray(e.accessories)&&!this.validateSection(e.accessories,"accessory")||e.plugins&&Array.isArray(e.plugins)&&!this.validatePlugins(e.plugins,"plugins")||e.disabledPlugins&&Array.isArray(e.disabledPlugins)&&!this.validatePlugins(e.disabledPlugins,"disabledPlugins")||(yield this.saveConfig(e),this.originalConfig=""):this.$toastr.error(this.$translate.instant("config.config_username_error"),this.$translate.instant("toast.title_error"))}catch(e){console.error(e),this.$toastr.error(this.$translate.instant("config.config_invalid_json"),this.$translate.instant("toast.title_error"))}this.saveInProgress=!1}})}onRestore(e=!1){let t=this.$modal.open(xe,{size:"lg",backdrop:"static"});t.componentInstance.currentConfig=this.homebridgeConfig,t.componentInstance.fromSettings=e,t.result.then(i=>{this.originalConfig||(this.originalConfig=this.homebridgeConfig),this.$api.get(`/config-editor/backups/${i}`).subscribe({next:o=>{this.$toastr.info(this.$translate.instant("config.restore.confirm"),this.$translate.instant("config.title_backup_loaded")),this.homebridgeConfig=JSON.stringify(o,null,4),this.monacoEditor&&window.editor.modifiedEditor&&(this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[]),this.monacoEditor.executeEdits("beautifier",[{identifier:"delete",range:new monaco.Range(1,1,this.monacoEditor.getModel().getLineCount()+10,1),text:"",forceMoveMarkers:!0}]),this.monacoEditor.executeEdits("beautifier",[{identifier:"insert",range:new monaco.Range(1,1,1,1),text:this.homebridgeConfig,forceMoveMarkers:!0}]))},error:o=>{console.error(o),this.$toastr.error(o.error?.message||this.$translate.instant("backup.load_error"),this.$translate.instant("toast.title_error"))}})}).catch(()=>{})}onCancelRestore(){this.homebridgeConfig=this.originalConfig,this.originalConfig="",this.onRestore()}ngOnDestroy(){let e=document.querySelector(".content");this.$renderer.removeStyle(e,"height"),window.visualViewport&&(window.visualViewport.removeEventListener("resize",this.visualViewPortEventCallback,!0),this.$md.enableTouchMove()),this.monacoEditor&&this.monacoEditor.dispose()}validateSection(e,t){for(let i of e){if(typeof i!="object"||Array.isArray(i))return this.$toastr.error(this.$translate.instant("config.error_blocks_objects",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(!i[t])return this.$toastr.error(this.$translate.instant("config.error_blocks_type",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1;if(typeof i[t]!="string")return this.$toastr.error(this.$translate.instant("config.error_string_type",{type:t}),this.$translate.instant("toast.title_error")),this.highlightOffendingArrayItem(i),!1}return!0}validatePlugins(e,t){for(let i of e)if(typeof i!="string")return this.$toastr.error(this.$translate.instant("config.error_string_array",{key:t}),this.$translate.instant("toast.title_error")),!1;return!0}highlightOffendingArrayItem(e){this.monacoEditor&&(e=JSON.stringify(e,null,4).split(`
2
2
  `).map(t=>` ${t}`).join(`
3
3
  `),setTimeout(()=>{let t=this.monacoEditor.getModel().findMatches(e);if(t.length){let i=t[0].range,o=new monaco.Range(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn);this.editorDecorations=this.monacoEditor.deltaDecorations(this.editorDecorations,[{range:o,options:{isWholeLine:!0,linesDecorationsClassName:"hb-monaco-editor-line-error"}}])}},200))}setMonacoEditorModel(){if(window.monaco.languages.json.jsonDefaults.diagnosticsOptions.schemas.some(t=>t.uri==="http://homebridge/config.json"))return;let e=monaco.Uri.parse("a://homebridge/config.json");window.monaco.languages.json.jsonDefaults.setDiagnosticsOptions({allowComments:!1,validate:!0,schemas:[{uri:"http://homebridge/config.json",fileMatch:[e.toString()],schema:{type:"object",required:["bridge"],properties:{bridge:{type:"object",required:["name","username","port","pin"],properties:{name:{type:"string",description:`The Homebridge instance name.
4
4
  This should be unique if you are running multiple instances of Homebridge.`,default:"Homebridge"},username:{type:"string",description:`Homebridge username must be 6 pairs of colon-separated hexadecimal characters (A-F 0-9).
@@ -17,4 +17,4 @@ Requires Homebridge v1.3 or later.`,items:{type:"string",description:`The full p
17
17
  Example: homebridge-dummy`},default:[]},ports:{type:"object",description:"The range of ports that should be used for certain accessories like cameras and TVs",required:["start","end"],properties:{start:{type:"number",default:52100,minimum:1025,maximum:65534},end:{type:"number",default:52150,minimum:1025,maximum:65534}},default:{start:52100,end:52150}},platforms:{type:"array",description:`Any plugin that exposes a platform should have its config entered in this array.
18
18
  Separate each plugin config block using a comma.`,items:{type:"object",required:["platform"],anyOf:[{type:"object",required:["platform"],properties:{platform:{type:"string",description:"This is used by Homebridge to identify which plugin this platform belongs to.",not:{enum:["config"]}},name:{type:"string",description:"The name of the platform."}}},{type:"object",properties:{platform:{type:"string",description:`Homebridge UI platform name must be set to "config".
19
19
  Do Not Change!`,oneOf:[{enum:"config"}]},name:{type:"string",description:"The name used in the Homebridge log."}}}]}},accessories:{type:"array",description:`Any plugin that exposes an accessory should have its config entered in this array.
20
- Separate each plugin config block using a comma.`,items:{type:"object",required:["accessory","name"],properties:{accessory:{type:"string",description:"This is used by Homebridge to identify which plugin this accessory belongs to."},name:{type:"string",description:"The name of the accessory."}}}}}}}]}),this.monacoEditorModel.uri=monaco.Uri.parse("a://homebridge/config.json")}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}saveConfig(e){return E(this,null,function*(){try{let t=yield $(this.$api.post("/config-editor",e));this.homebridgeConfig=JSON.stringify(t,null,4),yield this.detectSavesChangesForRestart()}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("config.failed_to_save_config"),this.$translate.instant("toast.title_error"))}})}validateArraysEqual(e,t){if(e.length!==t.length)return!1;let i=[...e].sort(),o=[...t].sort();return i.every((T,O)=>T===o[O])}removePlatformsAndAccessories(e){let T=e,{accessories:t,platforms:i}=T;return G(T,["accessories","platforms"])}removeEmptyBridges(e){return e.filter(t=>t._bridge&&Object.keys(t._bridge).length>0).map(t=>t._bridge)}validateBridgesEqual(e,t){return e.length!==t.length?!1:e.every(i=>t.some(o=>A(i,o)))}detectSavesChangesForRestart(){return E(this,null,function*(){try{if(this.hbPendingRestart)throw new Error("homebridge already pending a restart");let e=this.latestSavedConfig,t=JSON.stringify(e,null,4),i=JSON.parse(this.homebridgeConfig),o=this.homebridgeConfig;if(t===o&&!this.childBridgesToRestart.length)this.$toastr.info(this.$translate.instant("config.no_restart"),this.$translate.instant("config.config_saved"));else{if(!this.validateArraysEqual(Object.keys(e),Object.keys(i)))throw new Error("top level keys have changed");if([...i.platforms||[],...i.accessories||[]].every(c=>!c._bridge||!Object.keys(c._bridge).length))throw new Error("All platforms and accessories are missing a valid _bridge property.");let O=this.removePlatformsAndAccessories(e),$e=this.removePlatformsAndAccessories(i);if(!A(O,$e))throw new Error("top level properties have changed (except accessories and platforms)");let N=e.platforms||[],q=i.platforms||[],Te=N.map(c=>c.platform),Se=q.map(c=>c.platform);if(!this.validateArraysEqual(Te,Se))throw new Error("platform keys have changed");let F=e.accessories||[],L=i.accessories||[],Me=F.map(c=>c.accessory),Ae=L.map(c=>c.accessory);if(!this.validateArraysEqual(Me,Ae))throw new Error("accessory keys have changed");if(!this.validateBridgesEqual(this.removeEmptyBridges(N),this.removeEmptyBridges(q)))throw new Error("platform bridges have changed");if(!this.validateBridgesEqual(this.removeEmptyBridges(F),this.removeEmptyBridges(L)))throw new Error("accessory bridges have changed");let U=N.filter(c=>!A(c,q.find(S=>S.platform===c.platform))),Ve=F.filter(c=>!A(c,L.find(S=>S.accessory===c.accessory))),W=[...U,...Ve];if(U.some(c=>c.platform==="config"))throw new Error("homebridge ui config has changed");if(W.some(c=>c.platform==="config"?!1:!c._bridge||Object.keys(c._bridge).length===0))throw new Error("some changed entry does not have a _bridge key");let Be=yield $(this.$api.get("/status/homebridge/child-bridges"));W.forEach(c=>{let S=c._bridge.username.toUpperCase(),V=Be.find(({username:J})=>J===S);if(V)this.childBridgesToRestart.some(J=>J.username===V.username)||this.childBridgesToRestart.push({name:V.name,username:V.username});else throw new Error(`no child bridge found for username: ${S}`)});let Y=this.$modal.open(ye,{size:"lg",backdrop:"static"});Y.componentInstance.bridges=this.childBridgesToRestart;try{yield Y.result,this.childBridgesToRestart=[]}catch{}}}catch(e){console.error(e);let t=this.$modal.open(Ce,{size:"lg",backdrop:"static"});try{yield t.result,this.hbPendingRestart=!1,this.childBridgesToRestart=[]}catch{this.hbPendingRestart=!0}}finally{this.latestSavedConfig=JSON.parse(this.homebridgeConfig)}})}parseConfigFromEditor(){try{return JSON.parse(this.homebridgeConfig)}catch{let t=ke.default.parse(this.homebridgeConfig);return this.homebridgeConfig=JSON.stringify(t,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig),t}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],decls:17,vars:18,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"disabled","openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-0",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-fw","fa-floppy-disk"],[1,"fas","fa-fw","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModel"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-fw","fa-times"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-fw","fa-history"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModelChange","ngModel"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),_(4),s(5,"translate"),l()(),a(6,"div",4),w(7,Oe,4,8,"button",5),w(8,Ne,4,7,"button",6),a(9,"button",7),s(10,"translate"),s(11,"translate"),b("click",function(){return i.onSave()}),w(12,qe,1,0,"i",8),w(13,Fe,1,0,"i",9),l()()(),w(14,Le,1,2,"ngx-monaco-editor",10),w(15,Je,1,3,"ngx-monaco-diff-editor",11),w(16,ze,2,1,"textarea",12),l()),t&2&&(r(4),k(d(5,12,"menu.config_json_editor")),r(3),v(i.originalConfig?7:-1),r(),v(i.originalConfig?-1:8),r(),f("disabled",i.saveInProgress)("openDelay",150)("ngbTooltip",d(10,14,"form.button_save")),C("aria-label",d(11,16,"form.button_save")),r(3),v(i.saveInProgress?-1:12),r(),v(i.saveInProgress?13:-1),r(),v(!i.isMobile&&!i.originalConfig?14:-1),r(),v(!i.isMobile&&i.originalConfig?15:-1),r(),v(i.isMobile?16:-1))},dependencies:[D,fe,he,ce,se,le,de,P],encapsulation:2})}return n})();export{xt as ConfigEditorComponent};
20
+ Separate each plugin config block using a comma.`,items:{type:"object",required:["accessory","name"],properties:{accessory:{type:"string",description:"This is used by Homebridge to identify which plugin this accessory belongs to."},name:{type:"string",description:"The name of the accessory."}}}}}}}]}),this.monacoEditorModel.uri=monaco.Uri.parse("a://homebridge/config.json")}visualViewPortChanged(){this.lastHeight<window.visualViewport.height&&document.activeElement.blur(),window.visualViewport.height<window.innerHeight?(this.$md.enableTouchMove(),this.lastHeight=window.visualViewport.height):window.visualViewport.height===window.innerHeight&&(this.$md.disableTouchMove(),this.lastHeight=window.visualViewport.height)}saveConfig(e){return E(this,null,function*(){try{let t=yield $(this.$api.post("/config-editor",e));this.homebridgeConfig=JSON.stringify(t,null,4),yield this.detectSavesChangesForRestart()}catch(t){console.error(t),this.$toastr.error(this.$translate.instant("config.failed_to_save_config"),this.$translate.instant("toast.title_error"))}})}validateArraysEqual(e,t){if(e.length!==t.length)return!1;let i=[...e].sort(),o=[...t].sort();return i.every((T,O)=>T===o[O])}removePlatformsAndAccessories(e){let T=e,{accessories:t,platforms:i}=T;return G(T,["accessories","platforms"])}removeEmptyBridges(e){return e.filter(t=>t._bridge&&Object.keys(t._bridge).length>0).map(t=>t._bridge)}validateBridgesEqual(e,t){return e.length!==t.length?!1:e.every(i=>t.some(o=>A(i,o)))}detectSavesChangesForRestart(){return E(this,null,function*(){try{if(this.hbPendingRestart)throw new Error("homebridge already pending a restart");let e=this.latestSavedConfig,t=JSON.stringify(e,null,4),i=JSON.parse(this.homebridgeConfig),o=this.homebridgeConfig;if(t===o&&!this.childBridgesToRestart.length)this.$toastr.info(this.$translate.instant("config.no_restart"),this.$translate.instant("config.config_saved"));else{if(!this.validateArraysEqual(Object.keys(e),Object.keys(i)))throw new Error("top level keys have changed");if([...i.platforms||[],...i.accessories||[]].every(c=>!c._bridge||!Object.keys(c._bridge).length))throw new Error("All platforms and accessories are missing a valid _bridge property.");let O=this.removePlatformsAndAccessories(e),$e=this.removePlatformsAndAccessories(i);if(!A(O,$e))throw new Error("top level properties have changed (except accessories and platforms)");let N=e.platforms||[],q=i.platforms||[],Te=N.map(c=>c.platform),Se=q.map(c=>c.platform);if(!this.validateArraysEqual(Te,Se))throw new Error("platform keys have changed");let F=e.accessories||[],L=i.accessories||[],Me=F.map(c=>c.accessory),Ae=L.map(c=>c.accessory);if(!this.validateArraysEqual(Me,Ae))throw new Error("accessory keys have changed");if(!this.validateBridgesEqual(this.removeEmptyBridges(N),this.removeEmptyBridges(q)))throw new Error("platform bridges have changed");if(!this.validateBridgesEqual(this.removeEmptyBridges(F),this.removeEmptyBridges(L)))throw new Error("accessory bridges have changed");let U=N.filter(c=>!A(c,q.find(S=>S.platform===c.platform))),Ve=F.filter(c=>!A(c,L.find(S=>S.accessory===c.accessory))),W=[...U,...Ve];if(U.some(c=>c.platform==="config"))throw new Error("homebridge ui config has changed");if(W.some(c=>c.platform==="config"?!1:!c._bridge||Object.keys(c._bridge).length===0))throw new Error("some changed entry does not have a _bridge key");let Be=yield $(this.$api.get("/status/homebridge/child-bridges"));W.forEach(c=>{let S=c._bridge.username.toUpperCase(),V=Be.find(({username:J})=>J===S);if(V)this.childBridgesToRestart.some(J=>J.username===V.username)||this.childBridgesToRestart.push({name:V.name,username:V.username});else throw new Error(`no child bridge found for username: ${S}`)});let Y=this.$modal.open(ye,{size:"lg",backdrop:"static"});Y.componentInstance.bridges=this.childBridgesToRestart;try{yield Y.result,this.childBridgesToRestart=[]}catch{}}}catch(e){console.error(e);let t=this.$modal.open(Ce,{size:"lg",backdrop:"static"});try{yield t.result,this.hbPendingRestart=!1,this.childBridgesToRestart=[]}catch{this.hbPendingRestart=!0}}finally{this.latestSavedConfig=JSON.parse(this.homebridgeConfig)}})}parseConfigFromEditor(){try{return JSON.parse(this.homebridgeConfig)}catch{let t=ke.default.parse(this.homebridgeConfig);return this.homebridgeConfig=JSON.stringify(t,null,4),this.monacoEditor&&this.monacoEditor.getModel().setValue(this.homebridgeConfig),t}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=B({type:n,selectors:[["ng-component"]],decls:17,vars:18,consts:[[1,"flex-column","d-flex","align-items-stretch","h-100"],[1,"row"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"disabled","openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"openDelay","ngbTooltip"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-0",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-floppy-disk"],[1,"fas","fa-spinner","fa-pulse"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModel"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-danger","waves-effect","my-0","me-2",3,"click","disabled","openDelay","ngbTooltip"],[1,"fas","fa-times"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","waves-effect","my-0","me-2",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-history"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","model"],[1,"flex-grow-1","h-100","w-100","mt-3","mb-0",3,"onInit","keydown.control.s","keydown.meta.s","options","originalModel","modifiedModel"],["wrap","off","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"hb-plain-text-editor","align-self-end","h-100","w-100","my-3",3,"ngModelChange","ngModel"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),_(4),s(5,"translate"),l()(),a(6,"div",4),v(7,Oe,4,8,"button",5),v(8,Ne,4,7,"button",6),a(9,"button",7),s(10,"translate"),s(11,"translate"),b("click",function(){return i.onSave()}),v(12,qe,1,0,"i",8),v(13,Fe,1,0,"i",9),l()()(),v(14,Le,1,2,"ngx-monaco-editor",10),v(15,Je,1,3,"ngx-monaco-diff-editor",11),v(16,ze,2,1,"textarea",12),l()),t&2&&(r(4),k(d(5,12,"menu.config_json_editor")),r(3),w(i.originalConfig?7:-1),r(),w(i.originalConfig?-1:8),r(),f("disabled",i.saveInProgress)("openDelay",150)("ngbTooltip",d(10,14,"form.button_save")),C("aria-label",d(11,16,"form.button_save")),r(3),w(i.saveInProgress?-1:12),r(),w(i.saveInProgress?13:-1),r(),w(!i.isMobile&&!i.originalConfig?14:-1),r(),w(!i.isMobile&&i.originalConfig?15:-1),r(),w(i.isMobile?16:-1))},dependencies:[D,fe,he,ce,se,le,de,P],encapsulation:2})}return n})();export{xt as ConfigEditorComponent};
@@ -1 +1 @@
1
- import{d as u,g as s}from"./chunk-25NXLXGL.js";import{k as l,n as d}from"./chunk-5CJVTJIE.js";import{a as p}from"./chunk-CPAHENLQ.js";import"./chunk-RJOGO4M5.js";import{ga as c,h as f,ha as i,la as e,nb as n,w as m}from"./chunk-WEVBEUAJ.js";var a=(()=>{class t{$api=e(d);$router=e(u);$toastr=e(l);$translate=e(p);resolve(){return f(this,null,function*(){try{let o=yield m(this.$api.get("/config-editor"));return JSON.stringify(o,null,4)}catch(o){console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(r){return new(r||t)};static \u0275prov=c({token:t,factory:t.\u0275fac})}return t})();var y=[{path:"",loadComponent:()=>import("./chunk-UORORZRF.js").then(t=>t.ConfigEditorComponent),resolve:{config:a}}],v=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=n({type:t});static \u0275inj=i({imports:[s.forChild(y),s]})}return t})();var T=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=n({type:t});static \u0275inj=i({providers:[a],imports:[v]})}return t})();export{T as ConfigEditorModule};
1
+ import{d as u,g as s}from"./chunk-QIW6M5VR.js";import{k as l,n as d}from"./chunk-KLP4CBZ4.js";import{a as p}from"./chunk-HCP4JDTX.js";import"./chunk-WBXDUV2S.js";import{ga as c,h as f,ha as i,la as e,nb as n,w as m}from"./chunk-TIL3AXXZ.js";var a=(()=>{class t{$api=e(d);$router=e(u);$toastr=e(l);$translate=e(p);resolve(){return f(this,null,function*(){try{let o=yield m(this.$api.get("/config-editor"));return JSON.stringify(o,null,4)}catch(o){console.error(o),this.$toastr.error(o.message,this.$translate.instant("toast.title_error")),this.$router.navigate(["/"])}})}static \u0275fac=function(r){return new(r||t)};static \u0275prov=c({token:t,factory:t.\u0275fac})}return t})();var y=[{path:"",loadComponent:()=>import("./chunk-D3REX5AX.js").then(t=>t.ConfigEditorComponent),resolve:{config:a}}],v=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=n({type:t});static \u0275inj=i({imports:[s.forChild(y),s]})}return t})();var T=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=n({type:t});static \u0275inj=i({providers:[a],imports:[v]})}return t})();export{T as ConfigEditorModule};
@@ -1 +1 @@
1
- import{a as w}from"./chunk-RMZGW2GZ.js";import"./chunk-E3QJRRZX.js";import{d as $}from"./chunk-25NXLXGL.js";import{b as S}from"./chunk-LLUK2BKI.js";import{k as E,n as y}from"./chunk-5CJVTJIE.js";import{a as g,b as _}from"./chunk-CPAHENLQ.js";import"./chunk-RJOGO4M5.js";import{Hc as m,Ib as c,Ic as l,Jb as d,Sb as r,Tb as i,Ub as f,ab as n,dc as v,la as o,mb as h,qc as a,rc as s}from"./chunk-WEVBEUAJ.js";function T(t,u){if(t&1&&(r(0,"div",7),a(1),i()),t&2){let e=v();n(),s(e.error)}}function C(t,u){t&1&&(r(0,"p",9),a(1),m(2,"translate"),i(),r(3,"div",10)(4,"div",11),f(5,"i",12),i()()),t&2&&(n(),s(l(2,1,"restart.please_wait_while_server_restarts")))}function k(t,u){t&1&&(r(0,"div",8),a(1),m(2,"translate"),i()),t&2&&(n(),s(l(2,1,"platform.linux.long_time")))}var z=(()=>{class t{$api=o(y);$router=o($);$settings=o(S);$toastr=o(E);$translate=o(g);$ws=o(w);checkTimeout;checkDelay;io;resp={};timeout=!1;error=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=h({type:t,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-fw","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-fw","fa-spinner","fa-spin"]],template:function(p,x){p&1&&(r(0,"div",0)(1,"h3",1),a(2),m(3,"translate"),i()(),r(4,"div",2)(5,"div",3),f(6,"i",4),i(),r(7,"div",5)(8,"h4",6),a(9),m(10,"translate"),i(),c(11,T,2,1,"div",7)(12,C,6,3),c(13,k,3,3,"div",8),i()()),p&2&&(n(2),s(l(3,4,"menu.restart.title")),n(7),s(l(10,6,"platform.linux.restarting_server")),n(2),d(x.error?11:12),n(2),d(x.timeout?13:-1))},dependencies:[_],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{z as RestartLinuxComponent};
1
+ import{a as T}from"./chunk-MF2XI7O3.js";import"./chunk-SS2MPODH.js";import{d as $}from"./chunk-QIW6M5VR.js";import{b as S}from"./chunk-HLJ7HDRH.js";import{k as E,n as y}from"./chunk-KLP4CBZ4.js";import{a as g,b as _}from"./chunk-HCP4JDTX.js";import"./chunk-WBXDUV2S.js";import{Ib as c,Ic as m,Jb as d,Jc as l,Sb as r,Tb as i,Ub as u,ab as n,dc as v,la as o,mb as h,qc as a,rc as s}from"./chunk-TIL3AXXZ.js";function C(t,f){if(t&1&&(r(0,"div",7),a(1),i()),t&2){let e=v();n(),s(e.error)}}function w(t,f){t&1&&(r(0,"p",9),a(1),m(2,"translate"),i(),r(3,"div",10)(4,"div",11),u(5,"i",12),i()()),t&2&&(n(),s(l(2,1,"restart.please_wait_while_server_restarts")))}function k(t,f){t&1&&(r(0,"div",8),a(1),m(2,"translate"),i()),t&2&&(n(),s(l(2,1,"platform.linux.long_time")))}var z=(()=>{class t{$api=o(y);$router=o($);$settings=o(S);$toastr=o(E);$translate=o(g);$ws=o(T);checkTimeout;checkDelay;io;resp={};timeout=!1;error=!1;ngOnInit(){this.io=this.$ws.connectToNamespace("status"),this.io.connected.subscribe(()=>{this.io.socket.emit("monitor-server-status"),this.$settings.getAppSettings().catch(()=>{})}),this.$api.put("/platform-tools/linux/restart-host",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{console.error(e),this.error=this.$translate.instant("platform.linux.server_restart_error"),this.$toastr.error(this.$translate.instant("platform.linux.server_restart_error"),this.$translate.instant("toast.title_error"))}})}ngOnDestroy(){this.io.end(),clearTimeout(this.checkDelay),clearTimeout(this.checkTimeout)}checkIfServerUp(){this.checkDelay=setTimeout(()=>{this.io.socket.on("homebridge-status",e=>{(e.status==="up"||e.status==="pending")&&(this.$toastr.success(this.$translate.instant("platform.linux.server_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},3e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("platform.linux.server_taking_long_time"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},12e4)}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=h({type:t,selectors:[["ng-component"]],decls:14,vars:8,consts:[[1,"d-flex","justify-content-between"],[1,"primary-text","m-0"],[1,"my-4","align-items-center",2,"max-width","1000px","margin","auto"],[1,"w-100","text-center","primary-text","mb-5"],[1,"fas","fa-power-off",2,"font-size","75px"],[1,"text-center"],[1,"primary-text","mb-4"],[1,"alert","alert-error","my-4"],[1,"alert","alert-warning","my-4"],[1,"grey-text"],[1,"justify-content-center","my-4"],[1,"restart-progress-box","primary-text"],[1,"fas","fa-spinner","fa-spin"]],template:function(p,x){p&1&&(r(0,"div",0)(1,"h3",1),a(2),m(3,"translate"),i()(),r(4,"div",2)(5,"div",3),u(6,"i",4),i(),r(7,"div",5)(8,"h4",6),a(9),m(10,"translate"),i(),c(11,C,2,1,"div",7)(12,w,6,3),c(13,k,3,3,"div",8),i()()),p&2&&(n(2),s(l(3,4,"menu.restart.title")),n(7),s(l(10,6,"platform.linux.restarting_server")),n(2),d(x.error?11:12),n(2),d(x.timeout?13:-1))},dependencies:[_],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{z as RestartLinuxComponent};
@@ -1 +1 @@
1
- import{c as t}from"./chunk-C2H4WU7E.js";import{b as i}from"./chunk-S7AIVWKK.js";import{ha as o,nb as r}from"./chunk-WEVBEUAJ.js";var f=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=r({type:e});static \u0275inj=o({providers:[t],imports:[i]})}return e})();export{f as a};
1
+ import{c as t}from"./chunk-VQFV46GS.js";import{b as i}from"./chunk-L6QEXIU2.js";import{ha as o,nb as r}from"./chunk-TIL3AXXZ.js";var f=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=r({type:e});static \u0275inj=o({providers:[t],imports:[i]})}return e})();export{f as a};
@@ -1,4 +1,4 @@
1
- import{m as Bt}from"./chunk-MJK6N6PA.js";import{d as hu}from"./chunk-25NXLXGL.js";import{k as Bu,n as yu}from"./chunk-5CJVTJIE.js";import{a as gu,b as ht}from"./chunk-CPAHENLQ.js";import{Hb as qe,Hc as Q,Ic as k,Lb as Fu,Mb as Eu,Nb as xu,Sb as H,Tb as X,Ub as Ve,ab as U,cc as ye,e as da,h as Au,la as he,mb as gt,qc as ue,rc as Le,sc as Me,w as Cu}from"./chunk-WEVBEUAJ.js";var eD=da((iu,fu)=>{(function(e,t){typeof iu=="object"&&typeof fu<"u"?fu.exports=t():typeof define=="function"&&define.amd?define(t):e.JSON5=t()})(iu,function(){"use strict";function e(r,a){return a={exports:{}},r(a,a.exports),a.exports}var t=e(function(r){var a=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)}),u=e(function(r){var a=r.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)}),o=u.version,f=function(r){return typeof r=="object"?r!==null:typeof r=="function"},i=function(r){if(!f(r))throw TypeError(r+" is not an object!");return r},D=function(r){try{return!!r()}catch{return!0}},l=!D(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),m=t.document,g=f(m)&&f(m.createElement),B=function(r){return g?m.createElement(r):{}},h=!l&&!D(function(){return Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a!=7}),b=function(r,a){if(!f(r))return r;var p,s;if(a&&typeof(p=r.toString)=="function"&&!f(s=p.call(r))||typeof(p=r.valueOf)=="function"&&!f(s=p.call(r))||!a&&typeof(p=r.toString)=="function"&&!f(s=p.call(r)))return s;throw TypeError("Can't convert object to primitive value")},M=Object.defineProperty,I=l?Object.defineProperty:function(a,p,s){if(i(a),p=b(p,!0),i(s),h)try{return M(a,p,s)}catch{}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(a[p]=s.value),a},$={f:I},j=function(r,a){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:a}},T=l?function(r,a,p){return $.f(r,a,j(1,p))}:function(r,a,p){return r[a]=p,r},pe={}.hasOwnProperty,nt=function(r,a){return pe.call(r,a)},Ge=0,Ue=Math.random(),Ro=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++Ge+Ue).toString(36))},Go=!1,Uo=e(function(r){var a="__core-js_shared__",p=t[a]||(t[a]={});(r.exports=function(s,d){return p[s]||(p[s]=d!==void 0?d:{})})("versions",[]).push({version:u.version,mode:Go?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Yt=Uo("native-function-to-string",Function.toString),Ho=e(function(r){var a=Ro("src"),p="toString",s=(""+Yt).split(p);u.inspectSource=function(d){return Yt.call(d)},(r.exports=function(d,F,x,J){var N=typeof x=="function";N&&(nt(x,"name")||T(x,"name",F)),d[F]!==x&&(N&&(nt(x,a)||T(x,a,d[F]?""+d[F]:s.join(String(F)))),d===t?d[F]=x:J?d[F]?d[F]=x:T(d,F,x):(delete d[F],T(d,F,x)))})(Function.prototype,p,function(){return typeof this=="function"&&this[a]||Yt.call(this)})}),$o=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r},su=function(r,a,p){if($o(r),a===void 0)return r;switch(p){case 1:return function(s){return r.call(a,s)};case 2:return function(s,d){return r.call(a,s,d)};case 3:return function(s,d,F){return r.call(a,s,d,F)}}return function(){return r.apply(a,arguments)}},Xt="prototype",z=function(r,a,p){var s=r&z.F,d=r&z.G,F=r&z.S,x=r&z.P,J=r&z.B,N=d?t:F?t[a]||(t[a]={}):(t[a]||{})[Xt],Ie=d?u:u[a]||(u[a]={}),He=Ie[Xt]||(Ie[Xt]={}),ae,ie,Y,$e;d&&(p=a);for(ae in p)ie=!s&&N&&N[ae]!==void 0,Y=(ie?N:p)[ae],$e=J&&ie?su(Y,t):x&&typeof Y=="function"?su(Function.call,Y):Y,N&&Ho(N,ae,Y,r&z.U),Ie[ae]!=Y&&T(Ie,ae,$e),x&&He[ae]!=Y&&(He[ae]=Y)};t.core=u,z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128;var it=z,qo=Math.ceil,Vo=Math.floor,Du=function(r){return isNaN(r=+r)?0:(r>0?Vo:qo)(r)},Wo=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r},zo=function(r){return function(a,p){var s=String(Wo(a)),d=Du(p),F=s.length,x,J;return d<0||d>=F?r?"":void 0:(x=s.charCodeAt(d),x<55296||x>56319||d+1===F||(J=s.charCodeAt(d+1))<56320||J>57343?r?s.charAt(d):x:r?s.slice(d,d+2):(x-55296<<10)+(J-56320)+65536)}},Ko=zo(!1);it(it.P,"String",{codePointAt:function(a){return Ko(this,a)}});var tD=u.String.codePointAt,Jo=Math.max,Yo=Math.min,Xo=function(r,a){return r=Du(r),r<0?Jo(r+a,0):Yo(r,a)},pu=String.fromCharCode,lu=String.fromCodePoint;it(it.S+it.F*(!!lu&&lu.length!=1),"String",{fromCodePoint:function(a){for(var p=arguments,s=[],d=arguments.length,F=0,x;d>F;){if(x=+p[F++],Xo(x,1114111)!==x)throw RangeError(x+" is not a valid code point");s.push(x<65536?pu(x):pu(((x-=65536)>>10)+55296,x%1024+56320))}return s.join("")}});var uD=u.String.fromCodePoint,Zo=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qo=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ko=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Zt={Space_Separator:Zo,ID_Start:Qo,ID_Continue:ko},O={isSpaceSeparator:function(a){return typeof a=="string"&&Zt.Space_Separator.test(a)},isIdStartChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a==="$"||a==="_"||Zt.ID_Start.test(a))},isIdContinueChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"||a==="$"||a==="_"||a==="\u200C"||a==="\u200D"||Zt.ID_Continue.test(a))},isDigit:function(a){return typeof a=="string"&&/[0-9]/.test(a)},isHexDigit:function(a){return typeof a=="string"&&/[0-9A-Fa-f]/.test(a)}},Qt,K,le,At,ge,oe,R,kt,ft,ea=function(a,p){Qt=String(a),K="start",le=[],At=0,ge=1,oe=0,R=void 0,kt=void 0,ft=void 0;do R=ta(),oa[K]();while(R.type!=="eof");return typeof p=="function"?eu({"":ft},"",p):ft};function eu(r,a,p){var s=r[a];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(var d=0;d<s.length;d++){var F=String(d),x=eu(s,F,p);x===void 0?delete s[F]:Object.defineProperty(s,F,{value:x,writable:!0,enumerable:!0,configurable:!0})}else for(var J in s){var N=eu(s,J,p);N===void 0?delete s[J]:Object.defineProperty(s,J,{value:N,writable:!0,enumerable:!0,configurable:!0})}return p.call(r,a,s)}var C,c,st,me,E;function ta(){for(C="default",c="",st=!1,me=1;;){E=de();var r=mu[C]();if(r)return r}}function de(){if(Qt[At])return String.fromCodePoint(Qt.codePointAt(At))}function n(){var r=de();return r===`
1
+ import{m as Bt}from"./chunk-SXLEIQ7L.js";import{d as hu}from"./chunk-QIW6M5VR.js";import{k as Bu,n as yu}from"./chunk-KLP4CBZ4.js";import{a as gu,b as ht}from"./chunk-HCP4JDTX.js";import{Hb as qe,Ic as Q,Jc as k,Lb as Fu,Mb as Eu,Nb as xu,Sb as H,Tb as X,Ub as Ve,ab as U,cc as ye,e as da,h as Au,la as he,mb as gt,qc as ue,rc as Le,sc as Me,w as Cu}from"./chunk-TIL3AXXZ.js";var eD=da((iu,fu)=>{(function(e,t){typeof iu=="object"&&typeof fu<"u"?fu.exports=t():typeof define=="function"&&define.amd?define(t):e.JSON5=t()})(iu,function(){"use strict";function e(r,a){return a={exports:{}},r(a,a.exports),a.exports}var t=e(function(r){var a=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)}),u=e(function(r){var a=r.exports={version:"2.6.5"};typeof __e=="number"&&(__e=a)}),o=u.version,f=function(r){return typeof r=="object"?r!==null:typeof r=="function"},i=function(r){if(!f(r))throw TypeError(r+" is not an object!");return r},D=function(r){try{return!!r()}catch{return!0}},l=!D(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),m=t.document,g=f(m)&&f(m.createElement),B=function(r){return g?m.createElement(r):{}},h=!l&&!D(function(){return Object.defineProperty(B("div"),"a",{get:function(){return 7}}).a!=7}),b=function(r,a){if(!f(r))return r;var p,s;if(a&&typeof(p=r.toString)=="function"&&!f(s=p.call(r))||typeof(p=r.valueOf)=="function"&&!f(s=p.call(r))||!a&&typeof(p=r.toString)=="function"&&!f(s=p.call(r)))return s;throw TypeError("Can't convert object to primitive value")},M=Object.defineProperty,I=l?Object.defineProperty:function(a,p,s){if(i(a),p=b(p,!0),i(s),h)try{return M(a,p,s)}catch{}if("get"in s||"set"in s)throw TypeError("Accessors not supported!");return"value"in s&&(a[p]=s.value),a},$={f:I},j=function(r,a){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:a}},T=l?function(r,a,p){return $.f(r,a,j(1,p))}:function(r,a,p){return r[a]=p,r},pe={}.hasOwnProperty,nt=function(r,a){return pe.call(r,a)},Ge=0,Ue=Math.random(),Ro=function(r){return"Symbol(".concat(r===void 0?"":r,")_",(++Ge+Ue).toString(36))},Go=!1,Uo=e(function(r){var a="__core-js_shared__",p=t[a]||(t[a]={});(r.exports=function(s,d){return p[s]||(p[s]=d!==void 0?d:{})})("versions",[]).push({version:u.version,mode:Go?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})}),Yt=Uo("native-function-to-string",Function.toString),Ho=e(function(r){var a=Ro("src"),p="toString",s=(""+Yt).split(p);u.inspectSource=function(d){return Yt.call(d)},(r.exports=function(d,F,x,J){var N=typeof x=="function";N&&(nt(x,"name")||T(x,"name",F)),d[F]!==x&&(N&&(nt(x,a)||T(x,a,d[F]?""+d[F]:s.join(String(F)))),d===t?d[F]=x:J?d[F]?d[F]=x:T(d,F,x):(delete d[F],T(d,F,x)))})(Function.prototype,p,function(){return typeof this=="function"&&this[a]||Yt.call(this)})}),$o=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r},su=function(r,a,p){if($o(r),a===void 0)return r;switch(p){case 1:return function(s){return r.call(a,s)};case 2:return function(s,d){return r.call(a,s,d)};case 3:return function(s,d,F){return r.call(a,s,d,F)}}return function(){return r.apply(a,arguments)}},Xt="prototype",z=function(r,a,p){var s=r&z.F,d=r&z.G,F=r&z.S,x=r&z.P,J=r&z.B,N=d?t:F?t[a]||(t[a]={}):(t[a]||{})[Xt],Ie=d?u:u[a]||(u[a]={}),He=Ie[Xt]||(Ie[Xt]={}),ae,ie,Y,$e;d&&(p=a);for(ae in p)ie=!s&&N&&N[ae]!==void 0,Y=(ie?N:p)[ae],$e=J&&ie?su(Y,t):x&&typeof Y=="function"?su(Function.call,Y):Y,N&&Ho(N,ae,Y,r&z.U),Ie[ae]!=Y&&T(Ie,ae,$e),x&&He[ae]!=Y&&(He[ae]=Y)};t.core=u,z.F=1,z.G=2,z.S=4,z.P=8,z.B=16,z.W=32,z.U=64,z.R=128;var it=z,qo=Math.ceil,Vo=Math.floor,Du=function(r){return isNaN(r=+r)?0:(r>0?Vo:qo)(r)},Wo=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r},zo=function(r){return function(a,p){var s=String(Wo(a)),d=Du(p),F=s.length,x,J;return d<0||d>=F?r?"":void 0:(x=s.charCodeAt(d),x<55296||x>56319||d+1===F||(J=s.charCodeAt(d+1))<56320||J>57343?r?s.charAt(d):x:r?s.slice(d,d+2):(x-55296<<10)+(J-56320)+65536)}},Ko=zo(!1);it(it.P,"String",{codePointAt:function(a){return Ko(this,a)}});var tD=u.String.codePointAt,Jo=Math.max,Yo=Math.min,Xo=function(r,a){return r=Du(r),r<0?Jo(r+a,0):Yo(r,a)},pu=String.fromCharCode,lu=String.fromCodePoint;it(it.S+it.F*(!!lu&&lu.length!=1),"String",{fromCodePoint:function(a){for(var p=arguments,s=[],d=arguments.length,F=0,x;d>F;){if(x=+p[F++],Xo(x,1114111)!==x)throw RangeError(x+" is not a valid code point");s.push(x<65536?pu(x):pu(((x-=65536)>>10)+55296,x%1024+56320))}return s.join("")}});var uD=u.String.fromCodePoint,Zo=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Qo=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ko=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Zt={Space_Separator:Zo,ID_Start:Qo,ID_Continue:ko},O={isSpaceSeparator:function(a){return typeof a=="string"&&Zt.Space_Separator.test(a)},isIdStartChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a==="$"||a==="_"||Zt.ID_Start.test(a))},isIdContinueChar:function(a){return typeof a=="string"&&(a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"||a==="$"||a==="_"||a==="\u200C"||a==="\u200D"||Zt.ID_Continue.test(a))},isDigit:function(a){return typeof a=="string"&&/[0-9]/.test(a)},isHexDigit:function(a){return typeof a=="string"&&/[0-9A-Fa-f]/.test(a)}},Qt,K,le,At,ge,oe,R,kt,ft,ea=function(a,p){Qt=String(a),K="start",le=[],At=0,ge=1,oe=0,R=void 0,kt=void 0,ft=void 0;do R=ta(),oa[K]();while(R.type!=="eof");return typeof p=="function"?eu({"":ft},"",p):ft};function eu(r,a,p){var s=r[a];if(s!=null&&typeof s=="object")if(Array.isArray(s))for(var d=0;d<s.length;d++){var F=String(d),x=eu(s,F,p);x===void 0?delete s[F]:Object.defineProperty(s,F,{value:x,writable:!0,enumerable:!0,configurable:!0})}else for(var J in s){var N=eu(s,J,p);N===void 0?delete s[J]:Object.defineProperty(s,J,{value:N,writable:!0,enumerable:!0,configurable:!0})}return p.call(r,a,s)}var C,c,st,me,E;function ta(){for(C="default",c="",st=!1,me=1;;){E=de();var r=mu[C]();if(r)return r}}function de(){if(Qt[At])return String.fromCodePoint(Qt.codePointAt(At))}function n(){var r=de();return r===`
2
2
  `?(ge++,oe=0):r?oe+=r.length:oe++,r&&(At+=r.length),r}var mu={default:function(){switch(E){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
3
3
  `:case"\r":case"\u2028":case"\u2029":n();return;case"/":n(),C="comment";return;case void 0:return n(),_("eof")}if(O.isSpaceSeparator(E)){n();return}return mu[K]()},comment:function(){switch(E){case"*":n(),C="multiLineComment";return;case"/":n(),C="singleLineComment";return}throw S(n())},multiLineComment:function(){switch(E){case"*":n(),C="multiLineCommentAsterisk";return;case void 0:throw S(n())}n()},multiLineCommentAsterisk:function(){switch(E){case"*":n();return;case"/":n(),C="default";return;case void 0:throw S(n())}n(),C="multiLineComment"},singleLineComment:function(){switch(E){case`
4
4
  `:case"\r":case"\u2028":case"\u2029":n(),C="default";return;case void 0:return n(),_("eof")}n()},value:function(){switch(E){case"{":case"[":return _("punctuator",n());case"n":return n(),Oe("ull"),_("null",null);case"t":return n(),Oe("rue"),_("boolean",!0);case"f":return n(),Oe("alse"),_("boolean",!1);case"-":case"+":n()==="-"&&(me=-1),C="sign";return;case".":c=n(),C="decimalPointLeading";return;case"0":c=n(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":c=n(),C="decimalInteger";return;case"I":return n(),Oe("nfinity"),_("numeric",1/0);case"N":return n(),Oe("aN"),_("numeric",NaN);case'"':case"'":st=n()==='"',c="",C="string";return}throw S(n())},identifierNameStartEscape:function(){if(E!=="u")throw S(n());n();var a=tu();switch(a){case"$":case"_":break;default:if(!O.isIdStartChar(a))throw du();break}c+=a,C="identifierName"},identifierName:function(){switch(E){case"$":case"_":case"\u200C":case"\u200D":c+=n();return;case"\\":n(),C="identifierNameEscape";return}if(O.isIdContinueChar(E)){c+=n();return}return _("identifier",c)},identifierNameEscape:function(){if(E!=="u")throw S(n());n();var a=tu();switch(a){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!O.isIdContinueChar(a))throw du();break}c+=a,C="identifierName"},sign:function(){switch(E){case".":c=n(),C="decimalPointLeading";return;case"0":c=n(),C="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":c=n(),C="decimalInteger";return;case"I":return n(),Oe("nfinity"),_("numeric",me*(1/0));case"N":return n(),Oe("aN"),_("numeric",NaN)}throw S(n())},zero:function(){switch(E){case".":c+=n(),C="decimalPoint";return;case"e":case"E":c+=n(),C="decimalExponent";return;case"x":case"X":c+=n(),C="hexadecimal";return}return _("numeric",me*0)},decimalInteger:function(){switch(E){case".":c+=n(),C="decimalPoint";return;case"e":case"E":c+=n(),C="decimalExponent";return}if(O.isDigit(E)){c+=n();return}return _("numeric",me*Number(c))},decimalPointLeading:function(){if(O.isDigit(E)){c+=n(),C="decimalFraction";return}throw S(n())},decimalPoint:function(){switch(E){case"e":case"E":c+=n(),C="decimalExponent";return}if(O.isDigit(E)){c+=n(),C="decimalFraction";return}return _("numeric",me*Number(c))},decimalFraction:function(){switch(E){case"e":case"E":c+=n(),C="decimalExponent";return}if(O.isDigit(E)){c+=n();return}return _("numeric",me*Number(c))},decimalExponent:function(){switch(E){case"+":case"-":c+=n(),C="decimalExponentSign";return}if(O.isDigit(E)){c+=n(),C="decimalExponentInteger";return}throw S(n())},decimalExponentSign:function(){if(O.isDigit(E)){c+=n(),C="decimalExponentInteger";return}throw S(n())},decimalExponentInteger:function(){if(O.isDigit(E)){c+=n();return}return _("numeric",me*Number(c))},hexadecimal:function(){if(O.isHexDigit(E)){c+=n(),C="hexadecimalInteger";return}throw S(n())},hexadecimalInteger:function(){if(O.isHexDigit(E)){c+=n();return}return _("numeric",me*Number(c))},string:function(){switch(E){case"\\":n(),c+=ua();return;case'"':if(st)return n(),_("string",c);c+=n();return;case"'":if(!st)return n(),_("string",c);c+=n();return;case`
@@ -11,4 +11,4 @@ import{m as Bt}from"./chunk-MJK6N6PA.js";import{d as hu}from"./chunk-25NXLXGL.js
11
11
  `+q+"}"}}return d.pop(),F=q,Ne}function pa(y){if(y.length===0)return Et(y,!0);var q=String.fromCodePoint(y.codePointAt(0));if(!O.isIdStartChar(q))return Et(y,!0);for(var A=q.length;A<y.length;A++)if(!O.isIdContinueChar(String.fromCodePoint(y.codePointAt(A))))return Et(y,!0);return y}function la(y){if(d.indexOf(y)>=0)throw TypeError("Converting circular structure to JSON5");d.push(y);var q=F;F=F+N;for(var A=[],G=0;G<y.length;G++){var ne=$e(String(G),y);A.push(ne!==void 0?ne:"null")}var V;if(A.length===0)V="[]";else if(N===""){var je=A.join(",");V="["+je+"]"}else{var ce=`,
12
12
  `+F,Be=A.join(ce);V=`[
13
13
  `+F+Be+`,
14
- `+q+"]"}return d.pop(),F=q,V}},ia={parse:ea,stringify:na},fa=ia,sa=fa;return sa})});function ca(){this.__data__=[],this.size=0}var bu=ca;function Aa(e,t){return e===t||e!==e&&t!==t}var fe=Aa;function Ca(e,t){for(var u=e.length;u--;)if(fe(e[u][0],t))return u;return-1}var be=Ca;var Fa=Array.prototype,Ea=Fa.splice;function xa(e){var t=this.__data__,u=be(t,e);if(u<0)return!1;var o=t.length-1;return u==o?t.pop():Ea.call(t,u,1),--this.size,!0}var vu=xa;function ga(e){var t=this.__data__,u=be(t,e);return u<0?void 0:t[u][1]}var _u=ga;function Ba(e){return be(this.__data__,e)>-1}var Su=Ba;function ha(e,t){var u=this.__data__,o=be(u,e);return o<0?(++this.size,u.push([e,t])):u[o][1]=t,this}var wu=ha;function We(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}We.prototype.clear=bu;We.prototype.delete=vu;We.prototype.get=_u;We.prototype.has=Su;We.prototype.set=wu;var ve=We;function ya(){this.__data__=new ve,this.size=0}var Tu=ya;function ba(e){var t=this.__data__,u=t.delete(e);return this.size=t.size,u}var Ou=ba;function va(e){return this.__data__.get(e)}var Pu=va;function _a(e){return this.__data__.has(e)}var Iu=_a;var Sa=typeof global=="object"&&global&&global.Object===Object&&global,yt=Sa;var wa=typeof self=="object"&&self&&self.Object===Object&&self,Ta=yt||wa||Function("return this")(),P=Ta;var Oa=P.Symbol,Z=Oa;var ju=Object.prototype,Pa=ju.hasOwnProperty,Ia=ju.toString,Dt=Z?Z.toStringTag:void 0;function ja(e){var t=Pa.call(e,Dt),u=e[Dt];try{e[Dt]=void 0;var o=!0}catch{}var f=Ia.call(e);return o&&(t?e[Dt]=u:delete e[Dt]),f}var Nu=ja;var Na=Object.prototype,La=Na.toString;function Ma(e){return La.call(e)}var Lu=Ma;var Ra="[object Null]",Ga="[object Undefined]",Mu=Z?Z.toStringTag:void 0;function Ua(e){return e==null?e===void 0?Ga:Ra:Mu&&Mu in Object(e)?Nu(e):Lu(e)}var re=Ua;function Ha(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=Ha;var $a="[object AsyncFunction]",qa="[object Function]",Va="[object GeneratorFunction]",Wa="[object Proxy]";function za(e){if(!W(e))return!1;var t=re(e);return t==qa||t==Va||t==$a||t==Wa}var ze=za;var Ka=P["__core-js_shared__"],bt=Ka;var Ru=function(){var e=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ja(e){return!!Ru&&Ru in e}var Gu=Ja;var Ya=Function.prototype,Xa=Ya.toString;function Za(e){if(e!=null){try{return Xa.call(e)}catch{}try{return e+""}catch{}}return""}var Ae=Za;var Qa=/[\\^$.*+?()[\]{}|]/g,ka=/^\[object .+?Constructor\]$/,en=Function.prototype,tn=Object.prototype,un=en.toString,rn=tn.hasOwnProperty,on=RegExp("^"+un.call(rn).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function an(e){if(!W(e)||Gu(e))return!1;var t=ze(e)?on:ka;return t.test(Ae(e))}var Uu=an;function nn(e,t){return e?.[t]}var Hu=nn;function fn(e,t){var u=Hu(e,t);return Uu(u)?u:void 0}var ee=fn;var sn=ee(P,"Map"),_e=sn;var Dn=ee(Object,"create"),Ce=Dn;function pn(){this.__data__=Ce?Ce(null):{},this.size=0}var $u=pn;function ln(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qu=ln;var mn="__lodash_hash_undefined__",dn=Object.prototype,cn=dn.hasOwnProperty;function An(e){var t=this.__data__;if(Ce){var u=t[e];return u===mn?void 0:u}return cn.call(t,e)?t[e]:void 0}var Vu=An;var Cn=Object.prototype,Fn=Cn.hasOwnProperty;function En(e){var t=this.__data__;return Ce?t[e]!==void 0:Fn.call(t,e)}var Wu=En;var xn="__lodash_hash_undefined__";function gn(e,t){var u=this.__data__;return this.size+=this.has(e)?0:1,u[e]=Ce&&t===void 0?xn:t,this}var zu=gn;function Ke(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}Ke.prototype.clear=$u;Ke.prototype.delete=qu;Ke.prototype.get=Vu;Ke.prototype.has=Wu;Ke.prototype.set=zu;var ru=Ke;function Bn(){this.size=0,this.__data__={hash:new ru,map:new(_e||ve),string:new ru}}var Ku=Bn;function hn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ju=hn;function yn(e,t){var u=e.__data__;return Ju(t)?u[typeof t=="string"?"string":"hash"]:u.map}var Se=yn;function bn(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t}var Yu=bn;function vn(e){return Se(this,e).get(e)}var Xu=vn;function _n(e){return Se(this,e).has(e)}var Zu=_n;function Sn(e,t){var u=Se(this,e),o=u.size;return u.set(e,t),this.size+=u.size==o?0:1,this}var Qu=Sn;function Je(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}Je.prototype.clear=Ku;Je.prototype.delete=Yu;Je.prototype.get=Xu;Je.prototype.has=Zu;Je.prototype.set=Qu;var vt=Je;var wn=200;function Tn(e,t){var u=this.__data__;if(u instanceof ve){var o=u.__data__;if(!_e||o.length<wn-1)return o.push([e,t]),this.size=++u.size,this;u=this.__data__=new vt(o)}return u.set(e,t),this.size=u.size,this}var ku=Tn;function Ye(e){var t=this.__data__=new ve(e);this.size=t.size}Ye.prototype.clear=Tu;Ye.prototype.delete=Ou;Ye.prototype.get=Pu;Ye.prototype.has=Iu;Ye.prototype.set=ku;var we=Ye;var On="__lodash_hash_undefined__";function Pn(e){return this.__data__.set(e,On),this}var er=Pn;function In(e){return this.__data__.has(e)}var tr=In;function _t(e){var t=-1,u=e==null?0:e.length;for(this.__data__=new vt;++t<u;)this.add(e[t])}_t.prototype.add=_t.prototype.push=er;_t.prototype.has=tr;var ur=_t;function jn(e,t){for(var u=-1,o=e==null?0:e.length;++u<o;)if(t(e[u],u,e))return!0;return!1}var rr=jn;function Nn(e,t){return e.has(t)}var or=Nn;var Ln=1,Mn=2;function Rn(e,t,u,o,f,i){var D=u&Ln,l=e.length,m=t.length;if(l!=m&&!(D&&m>l))return!1;var g=i.get(e),B=i.get(t);if(g&&B)return g==t&&B==e;var h=-1,b=!0,M=u&Mn?new ur:void 0;for(i.set(e,t),i.set(t,e);++h<l;){var I=e[h],$=t[h];if(o)var j=D?o($,I,h,t,e,i):o(I,$,h,e,t,i);if(j!==void 0){if(j)continue;b=!1;break}if(M){if(!rr(t,function(T,pe){if(!or(M,pe)&&(I===T||f(I,T,u,o,i)))return M.push(pe)})){b=!1;break}}else if(!(I===$||f(I,$,u,o,i))){b=!1;break}}return i.delete(e),i.delete(t),b}var St=Rn;var Gn=P.Uint8Array,Xe=Gn;function Un(e){var t=-1,u=Array(e.size);return e.forEach(function(o,f){u[++t]=[f,o]}),u}var ar=Un;function Hn(e){var t=-1,u=Array(e.size);return e.forEach(function(o){u[++t]=o}),u}var nr=Hn;var $n=1,qn=2,Vn="[object Boolean]",Wn="[object Date]",zn="[object Error]",Kn="[object Map]",Jn="[object Number]",Yn="[object RegExp]",Xn="[object Set]",Zn="[object String]",Qn="[object Symbol]",kn="[object ArrayBuffer]",ei="[object DataView]",ir=Z?Z.prototype:void 0,ou=ir?ir.valueOf:void 0;function ti(e,t,u,o,f,i,D){switch(u){case ei:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kn:return!(e.byteLength!=t.byteLength||!i(new Xe(e),new Xe(t)));case Vn:case Wn:case Jn:return fe(+e,+t);case zn:return e.name==t.name&&e.message==t.message;case Yn:case Zn:return e==t+"";case Kn:var l=ar;case Xn:var m=o&$n;if(l||(l=nr),e.size!=t.size&&!m)return!1;var g=D.get(e);if(g)return g==t;o|=qn,D.set(e,t);var B=St(l(e),l(t),o,f,i,D);return D.delete(e),B;case Qn:if(ou)return ou.call(e)==ou.call(t)}return!1}var fr=ti;function ui(e,t){for(var u=-1,o=t.length,f=e.length;++u<o;)e[f+u]=t[u];return e}var wt=ui;var ri=Array.isArray,te=ri;function oi(e,t,u){var o=t(e);return te(e)?o:wt(o,u(e))}var Tt=oi;function ai(e,t){for(var u=-1,o=e==null?0:e.length,f=0,i=[];++u<o;){var D=e[u];t(D,u,e)&&(i[f++]=D)}return i}var sr=ai;function ni(){return[]}var Ot=ni;var ii=Object.prototype,fi=ii.propertyIsEnumerable,Dr=Object.getOwnPropertySymbols,si=Dr?function(e){return e==null?[]:(e=Object(e),sr(Dr(e),function(t){return fi.call(e,t)}))}:Ot,Ze=si;function Di(e,t){for(var u=-1,o=Array(e);++u<e;)o[u]=t(u);return o}var pr=Di;function pi(e){return e!=null&&typeof e=="object"}var L=pi;var li="[object Arguments]";function mi(e){return L(e)&&re(e)==li}var au=mi;var lr=Object.prototype,di=lr.hasOwnProperty,ci=lr.propertyIsEnumerable,Ai=au(function(){return arguments}())?au:function(e){return L(e)&&di.call(e,"callee")&&!ci.call(e,"callee")},pt=Ai;function Ci(){return!1}var mr=Ci;var Ar=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dr=Ar&&typeof module=="object"&&module&&!module.nodeType&&module,Fi=dr&&dr.exports===Ar,cr=Fi?P.Buffer:void 0,Ei=cr?cr.isBuffer:void 0,xi=Ei||mr,Fe=xi;var gi=9007199254740991,Bi=/^(?:0|[1-9]\d*)$/;function hi(e,t){var u=typeof e;return t=t??gi,!!t&&(u=="number"||u!="symbol"&&Bi.test(e))&&e>-1&&e%1==0&&e<t}var Pt=hi;var yi=9007199254740991;function bi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yi}var It=bi;var vi="[object Arguments]",_i="[object Array]",Si="[object Boolean]",wi="[object Date]",Ti="[object Error]",Oi="[object Function]",Pi="[object Map]",Ii="[object Number]",ji="[object Object]",Ni="[object RegExp]",Li="[object Set]",Mi="[object String]",Ri="[object WeakMap]",Gi="[object ArrayBuffer]",Ui="[object DataView]",Hi="[object Float32Array]",$i="[object Float64Array]",qi="[object Int8Array]",Vi="[object Int16Array]",Wi="[object Int32Array]",zi="[object Uint8Array]",Ki="[object Uint8ClampedArray]",Ji="[object Uint16Array]",Yi="[object Uint32Array]",w={};w[Hi]=w[$i]=w[qi]=w[Vi]=w[Wi]=w[zi]=w[Ki]=w[Ji]=w[Yi]=!0;w[vi]=w[_i]=w[Gi]=w[Si]=w[Ui]=w[wi]=w[Ti]=w[Oi]=w[Pi]=w[Ii]=w[ji]=w[Ni]=w[Li]=w[Mi]=w[Ri]=!1;function Xi(e){return L(e)&&It(e.length)&&!!w[re(e)]}var Cr=Xi;function Zi(e){return function(t){return e(t)}}var Qe=Zi;var Fr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lt=Fr&&typeof module=="object"&&module&&!module.nodeType&&module,Qi=lt&&lt.exports===Fr,nu=Qi&&yt.process,ki=function(){try{var e=lt&&lt.require&&lt.require("util").types;return e||nu&&nu.binding&&nu.binding("util")}catch{}}(),Ee=ki;var Er=Ee&&Ee.isTypedArray,ef=Er?Qe(Er):Cr,ke=ef;var tf=Object.prototype,uf=tf.hasOwnProperty;function rf(e,t){var u=te(e),o=!u&&pt(e),f=!u&&!o&&Fe(e),i=!u&&!o&&!f&&ke(e),D=u||o||f||i,l=D?pr(e.length,String):[],m=l.length;for(var g in e)(t||uf.call(e,g))&&!(D&&(g=="length"||f&&(g=="offset"||g=="parent")||i&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Pt(g,m)))&&l.push(g);return l}var jt=rf;var of=Object.prototype;function af(e){var t=e&&e.constructor,u=typeof t=="function"&&t.prototype||of;return e===u}var et=af;function nf(e,t){return function(u){return e(t(u))}}var Nt=nf;var ff=Nt(Object.keys,Object),xr=ff;var sf=Object.prototype,Df=sf.hasOwnProperty;function pf(e){if(!et(e))return xr(e);var t=[];for(var u in Object(e))Df.call(e,u)&&u!="constructor"&&t.push(u);return t}var gr=pf;function lf(e){return e!=null&&It(e.length)&&!ze(e)}var Te=lf;function mf(e){return Te(e)?jt(e):gr(e)}var tt=mf;function df(e){return Tt(e,tt,Ze)}var mt=df;var cf=1,Af=Object.prototype,Cf=Af.hasOwnProperty;function Ff(e,t,u,o,f,i){var D=u&cf,l=mt(e),m=l.length,g=mt(t),B=g.length;if(m!=B&&!D)return!1;for(var h=m;h--;){var b=l[h];if(!(D?b in t:Cf.call(t,b)))return!1}var M=i.get(e),I=i.get(t);if(M&&I)return M==t&&I==e;var $=!0;i.set(e,t),i.set(t,e);for(var j=D;++h<m;){b=l[h];var T=e[b],pe=t[b];if(o)var nt=D?o(pe,T,b,t,e,i):o(T,pe,b,e,t,i);if(!(nt===void 0?T===pe||f(T,pe,u,o,i):nt)){$=!1;break}j||(j=b=="constructor")}if($&&!j){var Ge=e.constructor,Ue=t.constructor;Ge!=Ue&&"constructor"in e&&"constructor"in t&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof Ue=="function"&&Ue instanceof Ue)&&($=!1)}return i.delete(e),i.delete(t),$}var Br=Ff;var Ef=ee(P,"DataView"),Lt=Ef;var xf=ee(P,"Promise"),Mt=xf;var gf=ee(P,"Set"),Rt=gf;var Bf=ee(P,"WeakMap"),Gt=Bf;var hr="[object Map]",hf="[object Object]",yr="[object Promise]",br="[object Set]",vr="[object WeakMap]",_r="[object DataView]",yf=Ae(Lt),bf=Ae(_e),vf=Ae(Mt),_f=Ae(Rt),Sf=Ae(Gt),Re=re;(Lt&&Re(new Lt(new ArrayBuffer(1)))!=_r||_e&&Re(new _e)!=hr||Mt&&Re(Mt.resolve())!=yr||Rt&&Re(new Rt)!=br||Gt&&Re(new Gt)!=vr)&&(Re=function(e){var t=re(e),u=t==hf?e.constructor:void 0,o=u?Ae(u):"";if(o)switch(o){case yf:return _r;case bf:return hr;case vf:return yr;case _f:return br;case Sf:return vr}return t});var xe=Re;var wf=1,Sr="[object Arguments]",wr="[object Array]",Ut="[object Object]",Tf=Object.prototype,Tr=Tf.hasOwnProperty;function Of(e,t,u,o,f,i){var D=te(e),l=te(t),m=D?wr:xe(e),g=l?wr:xe(t);m=m==Sr?Ut:m,g=g==Sr?Ut:g;var B=m==Ut,h=g==Ut,b=m==g;if(b&&Fe(e)){if(!Fe(t))return!1;D=!0,B=!1}if(b&&!B)return i||(i=new we),D||ke(e)?St(e,t,u,o,f,i):fr(e,t,m,u,o,f,i);if(!(u&wf)){var M=B&&Tr.call(e,"__wrapped__"),I=h&&Tr.call(t,"__wrapped__");if(M||I){var $=M?e.value():e,j=I?t.value():t;return i||(i=new we),f($,j,u,o,i)}}return b?(i||(i=new we),Br(e,t,u,o,f,i)):!1}var Or=Of;function Pr(e,t,u,o,f){return e===t?!0:e==null||t==null||!L(e)&&!L(t)?e!==e&&t!==t:Or(e,t,u,o,Pr,f)}var Ir=Pr;function Pf(e,t){return Ir(e,t)}var If=Pf;var jf="[object Symbol]";function Nf(e){return typeof e=="symbol"||L(e)&&re(e)==jf}var jr=Nf;function Lf(e,t){for(var u=-1,o=e==null?0:e.length,f=Array(o);++u<o;)f[u]=t(e[u],u,e);return f}var Nr=Lf;var Mf=1/0,Lr=Z?Z.prototype:void 0,Mr=Lr?Lr.toString:void 0;function Rr(e){if(typeof e=="string")return e;if(te(e))return Nr(e,Rr)+"";if(jr(e))return Mr?Mr.call(e):"";var t=e+"";return t=="0"&&1/e==-Mf?"-0":t}var Gr=Rr;function Rf(e){return e}var Ht=Rf;var Ur=Object.create,Gf=function(){function e(){}return function(t){if(!W(t))return{};if(Ur)return Ur(t);e.prototype=t;var u=new e;return e.prototype=void 0,u}}(),Hr=Gf;function Uf(e,t,u){switch(u.length){case 0:return e.call(t);case 1:return e.call(t,u[0]);case 2:return e.call(t,u[0],u[1]);case 3:return e.call(t,u[0],u[1],u[2])}return e.apply(t,u)}var $r=Uf;function Hf(e,t){var u=-1,o=e.length;for(t||(t=Array(o));++u<o;)t[u]=e[u];return t}var $t=Hf;var $f=800,qf=16,Vf=Date.now;function Wf(e){var t=0,u=0;return function(){var o=Vf(),f=qf-(o-u);if(u=o,f>0){if(++t>=$f)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var qr=Wf;function zf(e){return function(){return e}}var Vr=zf;var Kf=function(){try{var e=ee(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ut=Kf;var Jf=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:Vr(t),writable:!0})}:Ht,Wr=Jf;var Yf=qr(Wr),zr=Yf;function Xf(e,t){for(var u=-1,o=e==null?0:e.length;++u<o&&t(e[u],u,e)!==!1;);return e}var Kr=Xf;function Zf(e,t,u){t=="__proto__"&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:u,writable:!0}):e[t]=u}var rt=Zf;var Qf=Object.prototype,kf=Qf.hasOwnProperty;function e0(e,t,u){var o=e[t];(!(kf.call(e,t)&&fe(o,u))||u===void 0&&!(t in e))&&rt(e,t,u)}var qt=e0;function t0(e,t,u,o){var f=!u;u||(u={});for(var i=-1,D=t.length;++i<D;){var l=t[i],m=o?o(u[l],e[l],l,u,e):void 0;m===void 0&&(m=e[l]),f?rt(u,l,m):qt(u,l,m)}return u}var se=t0;var Jr=Math.max;function u0(e,t,u){return t=Jr(t===void 0?e.length-1:t,0),function(){for(var o=arguments,f=-1,i=Jr(o.length-t,0),D=Array(i);++f<i;)D[f]=o[t+f];f=-1;for(var l=Array(t+1);++f<t;)l[f]=o[f];return l[t]=u(D),$r(e,this,l)}}var Yr=u0;function r0(e,t){return zr(Yr(e,t,Ht),e+"")}var Xr=r0;function o0(e,t,u){if(!W(u))return!1;var o=typeof t;return(o=="number"?Te(u)&&Pt(t,u.length):o=="string"&&t in u)?fe(u[t],e):!1}var Zr=o0;function a0(e){return Xr(function(t,u){var o=-1,f=u.length,i=f>1?u[f-1]:void 0,D=f>2?u[2]:void 0;for(i=e.length>3&&typeof i=="function"?(f--,i):void 0,D&&Zr(u[0],u[1],D)&&(i=f<3?void 0:i,f=1),t=Object(t);++o<f;){var l=u[o];l&&e(t,l,o,i)}return t})}var Qr=a0;function n0(e){var t=[];if(e!=null)for(var u in Object(e))t.push(u);return t}var kr=n0;var i0=Object.prototype,f0=i0.hasOwnProperty;function s0(e){if(!W(e))return kr(e);var t=et(e),u=[];for(var o in e)o=="constructor"&&(t||!f0.call(e,o))||u.push(o);return u}var eo=s0;function D0(e){return Te(e)?jt(e,!0):eo(e)}var De=D0;function p0(e){return e==null?"":Gr(e)}var to=p0;var l0=Nt(Object.getPrototypeOf,Object),ot=l0;var m0="[object Object]",d0=Function.prototype,c0=Object.prototype,uo=d0.toString,A0=c0.hasOwnProperty,C0=uo.call(Object);function F0(e){if(!L(e)||re(e)!=m0)return!1;var t=ot(e);if(t===null)return!0;var u=A0.call(t,"constructor")&&t.constructor;return typeof u=="function"&&u instanceof u&&uo.call(u)==C0}var ro=F0;function E0(e,t){return e&&se(t,tt(t),e)}var oo=E0;function x0(e,t){return e&&se(t,De(t),e)}var ao=x0;var so=typeof exports=="object"&&exports&&!exports.nodeType&&exports,no=so&&typeof module=="object"&&module&&!module.nodeType&&module,g0=no&&no.exports===so,io=g0?P.Buffer:void 0,fo=io?io.allocUnsafe:void 0;function B0(e,t){if(t)return e.slice();var u=e.length,o=fo?fo(u):new e.constructor(u);return e.copy(o),o}var Vt=B0;function h0(e,t){return se(e,Ze(e),t)}var Do=h0;var y0=Object.getOwnPropertySymbols,b0=y0?function(e){for(var t=[];e;)wt(t,Ze(e)),e=ot(e);return t}:Ot,Wt=b0;function v0(e,t){return se(e,Wt(e),t)}var po=v0;function _0(e){return Tt(e,De,Wt)}var lo=_0;var S0=Object.prototype,w0=S0.hasOwnProperty;function T0(e){var t=e.length,u=new e.constructor(t);return t&&typeof e[0]=="string"&&w0.call(e,"index")&&(u.index=e.index,u.input=e.input),u}var mo=T0;function O0(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}var at=O0;function P0(e,t){var u=t?at(e.buffer):e.buffer;return new e.constructor(u,e.byteOffset,e.byteLength)}var co=P0;var I0=/\w*$/;function j0(e){var t=new e.constructor(e.source,I0.exec(e));return t.lastIndex=e.lastIndex,t}var Ao=j0;var Co=Z?Z.prototype:void 0,Fo=Co?Co.valueOf:void 0;function N0(e){return Fo?Object(Fo.call(e)):{}}var Eo=N0;function L0(e,t){var u=t?at(e.buffer):e.buffer;return new e.constructor(u,e.byteOffset,e.length)}var zt=L0;var M0="[object Boolean]",R0="[object Date]",G0="[object Map]",U0="[object Number]",H0="[object RegExp]",$0="[object Set]",q0="[object String]",V0="[object Symbol]",W0="[object ArrayBuffer]",z0="[object DataView]",K0="[object Float32Array]",J0="[object Float64Array]",Y0="[object Int8Array]",X0="[object Int16Array]",Z0="[object Int32Array]",Q0="[object Uint8Array]",k0="[object Uint8ClampedArray]",es="[object Uint16Array]",ts="[object Uint32Array]";function us(e,t,u){var o=e.constructor;switch(t){case W0:return at(e);case M0:case R0:return new o(+e);case z0:return co(e,u);case K0:case J0:case Y0:case X0:case Z0:case Q0:case k0:case es:case ts:return zt(e,u);case G0:return new o;case U0:case q0:return new o(e);case H0:return Ao(e);case $0:return new o;case V0:return Eo(e)}}var xo=us;function rs(e){return typeof e.constructor=="function"&&!et(e)?Hr(ot(e)):{}}var Kt=rs;var os="[object Map]";function as(e){return L(e)&&xe(e)==os}var go=as;var Bo=Ee&&Ee.isMap,ns=Bo?Qe(Bo):go,ho=ns;var is="[object Set]";function fs(e){return L(e)&&xe(e)==is}var yo=fs;var bo=Ee&&Ee.isSet,ss=bo?Qe(bo):yo,vo=ss;var Ds=1,ps=2,ls=4,_o="[object Arguments]",ms="[object Array]",ds="[object Boolean]",cs="[object Date]",As="[object Error]",So="[object Function]",Cs="[object GeneratorFunction]",Fs="[object Map]",Es="[object Number]",wo="[object Object]",xs="[object RegExp]",gs="[object Set]",Bs="[object String]",hs="[object Symbol]",ys="[object WeakMap]",bs="[object ArrayBuffer]",vs="[object DataView]",_s="[object Float32Array]",Ss="[object Float64Array]",ws="[object Int8Array]",Ts="[object Int16Array]",Os="[object Int32Array]",Ps="[object Uint8Array]",Is="[object Uint8ClampedArray]",js="[object Uint16Array]",Ns="[object Uint32Array]",v={};v[_o]=v[ms]=v[bs]=v[vs]=v[ds]=v[cs]=v[_s]=v[Ss]=v[ws]=v[Ts]=v[Os]=v[Fs]=v[Es]=v[wo]=v[xs]=v[gs]=v[Bs]=v[hs]=v[Ps]=v[Is]=v[js]=v[Ns]=!0;v[As]=v[So]=v[ys]=!1;function Jt(e,t,u,o,f,i){var D,l=t&Ds,m=t&ps,g=t&ls;if(u&&(D=f?u(e,o,f,i):u(e)),D!==void 0)return D;if(!W(e))return e;var B=te(e);if(B){if(D=mo(e),!l)return $t(e,D)}else{var h=xe(e),b=h==So||h==Cs;if(Fe(e))return Vt(e,l);if(h==wo||h==_o||b&&!f){if(D=m||b?{}:Kt(e),!l)return m?po(e,ao(D,e)):Do(e,oo(D,e))}else{if(!v[h])return f?e:{};D=xo(e,h,l)}}i||(i=new we);var M=i.get(e);if(M)return M;i.set(e,D),vo(e)?e.forEach(function(j){D.add(Jt(j,t,u,j,e,i))}):ho(e)&&e.forEach(function(j,T){D.set(T,Jt(j,t,u,T,e,i))});var I=g?m?lo:mt:m?De:tt,$=B?void 0:I(e);return Kr($||e,function(j,T){$&&(T=j,j=e[T]),qt(D,T,Jt(j,t,u,T,e,i))}),D}var To=Jt;var Ls=1,Ms=4;function Rs(e){return To(e,Ls|Ms)}var Gs=Rs;function Us(e){return function(t,u,o){for(var f=-1,i=Object(t),D=o(t),l=D.length;l--;){var m=D[e?l:++f];if(u(i[m],m,i)===!1)break}return t}}var Oo=Us;var Hs=Oo(),Po=Hs;function $s(e,t,u){(u!==void 0&&!fe(e[t],u)||u===void 0&&!(t in e))&&rt(e,t,u)}var dt=$s;function qs(e){return L(e)&&Te(e)}var Io=qs;function Vs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ct=Vs;function Ws(e){return se(e,De(e))}var jo=Ws;function zs(e,t,u,o,f,i,D){var l=ct(e,u),m=ct(t,u),g=D.get(m);if(g){dt(e,u,g);return}var B=i?i(l,m,u+"",e,t,D):void 0,h=B===void 0;if(h){var b=te(m),M=!b&&Fe(m),I=!b&&!M&&ke(m);B=m,b||M||I?te(l)?B=l:Io(l)?B=$t(l):M?(h=!1,B=Vt(m,!0)):I?(h=!1,B=zt(m,!0)):B=[]:ro(m)||pt(m)?(B=l,pt(l)?B=jo(l):(!W(l)||ze(l))&&(B=Kt(m))):h=!1}h&&(D.set(m,B),f(B,m,o,i,D),D.delete(m)),dt(e,u,B)}var No=zs;function Lo(e,t,u,o,f){e!==t&&Po(t,function(i,D){if(f||(f=new we),W(i))No(e,t,D,u,Lo,o,f);else{var l=o?o(ct(e,D),i,D+"",e,t,f):void 0;l===void 0&&(l=i),dt(e,D,l)}},De)}var Mo=Lo;var Ks=Qr(function(e,t,u){Mo(e,t,u)}),Js=Ks;var Ys=0;function Xs(e){var t=++Ys;return to(e)+t}var Zs=Xs;function ks(e,t){if(e&1&&(H(0,"li"),ue(1),H(2,"span",14),ue(3),X(),ue(4,")"),X()),e&2){let u=t.$implicit;U(),Me("",u.name," ("),U(2),Le(u.username)}}var ZA=(()=>{class e{$activeModal=he(Bt);$api=he(yu);$toastr=he(Bu);$translate=he(gu);bridges=[];onRestartChildBridgeClick(){return Au(this,null,function*(){try{for(let u of this.bridges)yield Cu(this.$api.put(`/server/restart/${u.username}`,{}));this.$toastr.success(this.$translate.instant("plugins.manage.child_bridge_restart"),this.$translate.instant("toast.title_success"))}catch(u){console.error(u),this.$toastr.error(this.$translate.instant("plugins.manage.child_bridge_restart_failed"),this.$translate.instant("toast.title_error"))}finally{this.$activeModal.close()}})}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],inputs:{bridges:"bridges"},decls:27,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-fw","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"w-100"],[1,"text-center"],[1,"d-inline-block","text-start","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"],[1,"font-monospace"]],template:function(o,f){o&1&&(H(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),H(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),H(7,"div",4),Ve(8,"i",5),H(9,"p",6),ue(10),Q(11,"translate"),X(),H(12,"div",7)(13,"ul",8),Eu(14,ks,5,2,"li",null,Fu),X()()(),H(16,"div",9)(17,"div",10)(18,"button",11),Q(19,"translate"),ye("click",function(){return f.dismissModal()}),ue(20),Q(21,"translate"),X()(),Ve(22,"div",7),H(23,"div",12)(24,"button",13),ye("click",function(){return f.onRestartChildBridgeClick()}),ue(25),Q(26,"translate"),X()()()()),o&2&&(U(3),Le(k(4,6,"platform.version.service_restart_required")),U(2),qe("aria-label",k(6,8,"form.button_close")),U(5),Le(k(11,10,"restart.child_bridge_list")),U(4),xu(f.bridges),U(4),qe("aria-label",k(19,12,"form.button_close")),U(2),Me(" ",k(21,14,"form.button_close")," "),U(5),Me(" ",k(26,16,"menu.tooltip_restart")," "))},dependencies:[ht],encapsulation:2})}return e})();var aC=(()=>{class e{$activeModal=he(Bt);$router=he(hu);onRestartHomebridgeClick(){this.$router.navigate(["/restart"]),this.$activeModal.close()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],decls:23,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-fw","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(o,f){o&1&&(H(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),H(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),H(7,"div",4),Ve(8,"i",5),H(9,"p",6),ue(10),Q(11,"translate"),X()(),H(12,"div",7)(13,"div",8)(14,"button",9),Q(15,"translate"),ye("click",function(){return f.dismissModal()}),ue(16),Q(17,"translate"),X()(),Ve(18,"div",10),H(19,"div",11)(20,"button",12),ye("click",function(){return f.onRestartHomebridgeClick()}),ue(21),Q(22,"translate"),X()()()()),o&2&&(U(3),Le(k(4,6,"platform.version.service_restart_required")),U(2),qe("aria-label",k(6,8,"form.button_close")),U(5),Le(k(11,10,"plugins.settings.restart_required")),U(4),qe("aria-label",k(15,12,"form.button_close")),U(2),Me(" ",k(17,14,"form.button_close")," "),U(5),Me(" ",k(22,16,"menu.tooltip_restart")," "))},dependencies:[ht],encapsulation:2})}return e})();export{Gs as a,If as b,Js as c,Zs as d,ZA as e,aC as f,eD as g};
14
+ `+q+"]"}return d.pop(),F=q,V}},ia={parse:ea,stringify:na},fa=ia,sa=fa;return sa})});function ca(){this.__data__=[],this.size=0}var bu=ca;function Aa(e,t){return e===t||e!==e&&t!==t}var fe=Aa;function Ca(e,t){for(var u=e.length;u--;)if(fe(e[u][0],t))return u;return-1}var be=Ca;var Fa=Array.prototype,Ea=Fa.splice;function xa(e){var t=this.__data__,u=be(t,e);if(u<0)return!1;var o=t.length-1;return u==o?t.pop():Ea.call(t,u,1),--this.size,!0}var vu=xa;function ga(e){var t=this.__data__,u=be(t,e);return u<0?void 0:t[u][1]}var _u=ga;function Ba(e){return be(this.__data__,e)>-1}var Su=Ba;function ha(e,t){var u=this.__data__,o=be(u,e);return o<0?(++this.size,u.push([e,t])):u[o][1]=t,this}var wu=ha;function We(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}We.prototype.clear=bu;We.prototype.delete=vu;We.prototype.get=_u;We.prototype.has=Su;We.prototype.set=wu;var ve=We;function ya(){this.__data__=new ve,this.size=0}var Tu=ya;function ba(e){var t=this.__data__,u=t.delete(e);return this.size=t.size,u}var Ou=ba;function va(e){return this.__data__.get(e)}var Pu=va;function _a(e){return this.__data__.has(e)}var Iu=_a;var Sa=typeof global=="object"&&global&&global.Object===Object&&global,yt=Sa;var wa=typeof self=="object"&&self&&self.Object===Object&&self,Ta=yt||wa||Function("return this")(),P=Ta;var Oa=P.Symbol,Z=Oa;var ju=Object.prototype,Pa=ju.hasOwnProperty,Ia=ju.toString,Dt=Z?Z.toStringTag:void 0;function ja(e){var t=Pa.call(e,Dt),u=e[Dt];try{e[Dt]=void 0;var o=!0}catch{}var f=Ia.call(e);return o&&(t?e[Dt]=u:delete e[Dt]),f}var Nu=ja;var Na=Object.prototype,La=Na.toString;function Ma(e){return La.call(e)}var Lu=Ma;var Ra="[object Null]",Ga="[object Undefined]",Mu=Z?Z.toStringTag:void 0;function Ua(e){return e==null?e===void 0?Ga:Ra:Mu&&Mu in Object(e)?Nu(e):Lu(e)}var re=Ua;function Ha(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var W=Ha;var $a="[object AsyncFunction]",qa="[object Function]",Va="[object GeneratorFunction]",Wa="[object Proxy]";function za(e){if(!W(e))return!1;var t=re(e);return t==qa||t==Va||t==$a||t==Wa}var ze=za;var Ka=P["__core-js_shared__"],bt=Ka;var Ru=function(){var e=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ja(e){return!!Ru&&Ru in e}var Gu=Ja;var Ya=Function.prototype,Xa=Ya.toString;function Za(e){if(e!=null){try{return Xa.call(e)}catch{}try{return e+""}catch{}}return""}var Ae=Za;var Qa=/[\\^$.*+?()[\]{}|]/g,ka=/^\[object .+?Constructor\]$/,en=Function.prototype,tn=Object.prototype,un=en.toString,rn=tn.hasOwnProperty,on=RegExp("^"+un.call(rn).replace(Qa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function an(e){if(!W(e)||Gu(e))return!1;var t=ze(e)?on:ka;return t.test(Ae(e))}var Uu=an;function nn(e,t){return e?.[t]}var Hu=nn;function fn(e,t){var u=Hu(e,t);return Uu(u)?u:void 0}var ee=fn;var sn=ee(P,"Map"),_e=sn;var Dn=ee(Object,"create"),Ce=Dn;function pn(){this.__data__=Ce?Ce(null):{},this.size=0}var $u=pn;function ln(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qu=ln;var mn="__lodash_hash_undefined__",dn=Object.prototype,cn=dn.hasOwnProperty;function An(e){var t=this.__data__;if(Ce){var u=t[e];return u===mn?void 0:u}return cn.call(t,e)?t[e]:void 0}var Vu=An;var Cn=Object.prototype,Fn=Cn.hasOwnProperty;function En(e){var t=this.__data__;return Ce?t[e]!==void 0:Fn.call(t,e)}var Wu=En;var xn="__lodash_hash_undefined__";function gn(e,t){var u=this.__data__;return this.size+=this.has(e)?0:1,u[e]=Ce&&t===void 0?xn:t,this}var zu=gn;function Ke(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}Ke.prototype.clear=$u;Ke.prototype.delete=qu;Ke.prototype.get=Vu;Ke.prototype.has=Wu;Ke.prototype.set=zu;var ru=Ke;function Bn(){this.size=0,this.__data__={hash:new ru,map:new(_e||ve),string:new ru}}var Ku=Bn;function hn(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ju=hn;function yn(e,t){var u=e.__data__;return Ju(t)?u[typeof t=="string"?"string":"hash"]:u.map}var Se=yn;function bn(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t}var Yu=bn;function vn(e){return Se(this,e).get(e)}var Xu=vn;function _n(e){return Se(this,e).has(e)}var Zu=_n;function Sn(e,t){var u=Se(this,e),o=u.size;return u.set(e,t),this.size+=u.size==o?0:1,this}var Qu=Sn;function Je(e){var t=-1,u=e==null?0:e.length;for(this.clear();++t<u;){var o=e[t];this.set(o[0],o[1])}}Je.prototype.clear=Ku;Je.prototype.delete=Yu;Je.prototype.get=Xu;Je.prototype.has=Zu;Je.prototype.set=Qu;var vt=Je;var wn=200;function Tn(e,t){var u=this.__data__;if(u instanceof ve){var o=u.__data__;if(!_e||o.length<wn-1)return o.push([e,t]),this.size=++u.size,this;u=this.__data__=new vt(o)}return u.set(e,t),this.size=u.size,this}var ku=Tn;function Ye(e){var t=this.__data__=new ve(e);this.size=t.size}Ye.prototype.clear=Tu;Ye.prototype.delete=Ou;Ye.prototype.get=Pu;Ye.prototype.has=Iu;Ye.prototype.set=ku;var we=Ye;var On="__lodash_hash_undefined__";function Pn(e){return this.__data__.set(e,On),this}var er=Pn;function In(e){return this.__data__.has(e)}var tr=In;function _t(e){var t=-1,u=e==null?0:e.length;for(this.__data__=new vt;++t<u;)this.add(e[t])}_t.prototype.add=_t.prototype.push=er;_t.prototype.has=tr;var ur=_t;function jn(e,t){for(var u=-1,o=e==null?0:e.length;++u<o;)if(t(e[u],u,e))return!0;return!1}var rr=jn;function Nn(e,t){return e.has(t)}var or=Nn;var Ln=1,Mn=2;function Rn(e,t,u,o,f,i){var D=u&Ln,l=e.length,m=t.length;if(l!=m&&!(D&&m>l))return!1;var g=i.get(e),B=i.get(t);if(g&&B)return g==t&&B==e;var h=-1,b=!0,M=u&Mn?new ur:void 0;for(i.set(e,t),i.set(t,e);++h<l;){var I=e[h],$=t[h];if(o)var j=D?o($,I,h,t,e,i):o(I,$,h,e,t,i);if(j!==void 0){if(j)continue;b=!1;break}if(M){if(!rr(t,function(T,pe){if(!or(M,pe)&&(I===T||f(I,T,u,o,i)))return M.push(pe)})){b=!1;break}}else if(!(I===$||f(I,$,u,o,i))){b=!1;break}}return i.delete(e),i.delete(t),b}var St=Rn;var Gn=P.Uint8Array,Xe=Gn;function Un(e){var t=-1,u=Array(e.size);return e.forEach(function(o,f){u[++t]=[f,o]}),u}var ar=Un;function Hn(e){var t=-1,u=Array(e.size);return e.forEach(function(o){u[++t]=o}),u}var nr=Hn;var $n=1,qn=2,Vn="[object Boolean]",Wn="[object Date]",zn="[object Error]",Kn="[object Map]",Jn="[object Number]",Yn="[object RegExp]",Xn="[object Set]",Zn="[object String]",Qn="[object Symbol]",kn="[object ArrayBuffer]",ei="[object DataView]",ir=Z?Z.prototype:void 0,ou=ir?ir.valueOf:void 0;function ti(e,t,u,o,f,i,D){switch(u){case ei:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kn:return!(e.byteLength!=t.byteLength||!i(new Xe(e),new Xe(t)));case Vn:case Wn:case Jn:return fe(+e,+t);case zn:return e.name==t.name&&e.message==t.message;case Yn:case Zn:return e==t+"";case Kn:var l=ar;case Xn:var m=o&$n;if(l||(l=nr),e.size!=t.size&&!m)return!1;var g=D.get(e);if(g)return g==t;o|=qn,D.set(e,t);var B=St(l(e),l(t),o,f,i,D);return D.delete(e),B;case Qn:if(ou)return ou.call(e)==ou.call(t)}return!1}var fr=ti;function ui(e,t){for(var u=-1,o=t.length,f=e.length;++u<o;)e[f+u]=t[u];return e}var wt=ui;var ri=Array.isArray,te=ri;function oi(e,t,u){var o=t(e);return te(e)?o:wt(o,u(e))}var Tt=oi;function ai(e,t){for(var u=-1,o=e==null?0:e.length,f=0,i=[];++u<o;){var D=e[u];t(D,u,e)&&(i[f++]=D)}return i}var sr=ai;function ni(){return[]}var Ot=ni;var ii=Object.prototype,fi=ii.propertyIsEnumerable,Dr=Object.getOwnPropertySymbols,si=Dr?function(e){return e==null?[]:(e=Object(e),sr(Dr(e),function(t){return fi.call(e,t)}))}:Ot,Ze=si;function Di(e,t){for(var u=-1,o=Array(e);++u<e;)o[u]=t(u);return o}var pr=Di;function pi(e){return e!=null&&typeof e=="object"}var L=pi;var li="[object Arguments]";function mi(e){return L(e)&&re(e)==li}var au=mi;var lr=Object.prototype,di=lr.hasOwnProperty,ci=lr.propertyIsEnumerable,Ai=au(function(){return arguments}())?au:function(e){return L(e)&&di.call(e,"callee")&&!ci.call(e,"callee")},pt=Ai;function Ci(){return!1}var mr=Ci;var Ar=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dr=Ar&&typeof module=="object"&&module&&!module.nodeType&&module,Fi=dr&&dr.exports===Ar,cr=Fi?P.Buffer:void 0,Ei=cr?cr.isBuffer:void 0,xi=Ei||mr,Fe=xi;var gi=9007199254740991,Bi=/^(?:0|[1-9]\d*)$/;function hi(e,t){var u=typeof e;return t=t??gi,!!t&&(u=="number"||u!="symbol"&&Bi.test(e))&&e>-1&&e%1==0&&e<t}var Pt=hi;var yi=9007199254740991;function bi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yi}var It=bi;var vi="[object Arguments]",_i="[object Array]",Si="[object Boolean]",wi="[object Date]",Ti="[object Error]",Oi="[object Function]",Pi="[object Map]",Ii="[object Number]",ji="[object Object]",Ni="[object RegExp]",Li="[object Set]",Mi="[object String]",Ri="[object WeakMap]",Gi="[object ArrayBuffer]",Ui="[object DataView]",Hi="[object Float32Array]",$i="[object Float64Array]",qi="[object Int8Array]",Vi="[object Int16Array]",Wi="[object Int32Array]",zi="[object Uint8Array]",Ki="[object Uint8ClampedArray]",Ji="[object Uint16Array]",Yi="[object Uint32Array]",w={};w[Hi]=w[$i]=w[qi]=w[Vi]=w[Wi]=w[zi]=w[Ki]=w[Ji]=w[Yi]=!0;w[vi]=w[_i]=w[Gi]=w[Si]=w[Ui]=w[wi]=w[Ti]=w[Oi]=w[Pi]=w[Ii]=w[ji]=w[Ni]=w[Li]=w[Mi]=w[Ri]=!1;function Xi(e){return L(e)&&It(e.length)&&!!w[re(e)]}var Cr=Xi;function Zi(e){return function(t){return e(t)}}var Qe=Zi;var Fr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lt=Fr&&typeof module=="object"&&module&&!module.nodeType&&module,Qi=lt&&lt.exports===Fr,nu=Qi&&yt.process,ki=function(){try{var e=lt&&lt.require&&lt.require("util").types;return e||nu&&nu.binding&&nu.binding("util")}catch{}}(),Ee=ki;var Er=Ee&&Ee.isTypedArray,ef=Er?Qe(Er):Cr,ke=ef;var tf=Object.prototype,uf=tf.hasOwnProperty;function rf(e,t){var u=te(e),o=!u&&pt(e),f=!u&&!o&&Fe(e),i=!u&&!o&&!f&&ke(e),D=u||o||f||i,l=D?pr(e.length,String):[],m=l.length;for(var g in e)(t||uf.call(e,g))&&!(D&&(g=="length"||f&&(g=="offset"||g=="parent")||i&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||Pt(g,m)))&&l.push(g);return l}var jt=rf;var of=Object.prototype;function af(e){var t=e&&e.constructor,u=typeof t=="function"&&t.prototype||of;return e===u}var et=af;function nf(e,t){return function(u){return e(t(u))}}var Nt=nf;var ff=Nt(Object.keys,Object),xr=ff;var sf=Object.prototype,Df=sf.hasOwnProperty;function pf(e){if(!et(e))return xr(e);var t=[];for(var u in Object(e))Df.call(e,u)&&u!="constructor"&&t.push(u);return t}var gr=pf;function lf(e){return e!=null&&It(e.length)&&!ze(e)}var Te=lf;function mf(e){return Te(e)?jt(e):gr(e)}var tt=mf;function df(e){return Tt(e,tt,Ze)}var mt=df;var cf=1,Af=Object.prototype,Cf=Af.hasOwnProperty;function Ff(e,t,u,o,f,i){var D=u&cf,l=mt(e),m=l.length,g=mt(t),B=g.length;if(m!=B&&!D)return!1;for(var h=m;h--;){var b=l[h];if(!(D?b in t:Cf.call(t,b)))return!1}var M=i.get(e),I=i.get(t);if(M&&I)return M==t&&I==e;var $=!0;i.set(e,t),i.set(t,e);for(var j=D;++h<m;){b=l[h];var T=e[b],pe=t[b];if(o)var nt=D?o(pe,T,b,t,e,i):o(T,pe,b,e,t,i);if(!(nt===void 0?T===pe||f(T,pe,u,o,i):nt)){$=!1;break}j||(j=b=="constructor")}if($&&!j){var Ge=e.constructor,Ue=t.constructor;Ge!=Ue&&"constructor"in e&&"constructor"in t&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof Ue=="function"&&Ue instanceof Ue)&&($=!1)}return i.delete(e),i.delete(t),$}var Br=Ff;var Ef=ee(P,"DataView"),Lt=Ef;var xf=ee(P,"Promise"),Mt=xf;var gf=ee(P,"Set"),Rt=gf;var Bf=ee(P,"WeakMap"),Gt=Bf;var hr="[object Map]",hf="[object Object]",yr="[object Promise]",br="[object Set]",vr="[object WeakMap]",_r="[object DataView]",yf=Ae(Lt),bf=Ae(_e),vf=Ae(Mt),_f=Ae(Rt),Sf=Ae(Gt),Re=re;(Lt&&Re(new Lt(new ArrayBuffer(1)))!=_r||_e&&Re(new _e)!=hr||Mt&&Re(Mt.resolve())!=yr||Rt&&Re(new Rt)!=br||Gt&&Re(new Gt)!=vr)&&(Re=function(e){var t=re(e),u=t==hf?e.constructor:void 0,o=u?Ae(u):"";if(o)switch(o){case yf:return _r;case bf:return hr;case vf:return yr;case _f:return br;case Sf:return vr}return t});var xe=Re;var wf=1,Sr="[object Arguments]",wr="[object Array]",Ut="[object Object]",Tf=Object.prototype,Tr=Tf.hasOwnProperty;function Of(e,t,u,o,f,i){var D=te(e),l=te(t),m=D?wr:xe(e),g=l?wr:xe(t);m=m==Sr?Ut:m,g=g==Sr?Ut:g;var B=m==Ut,h=g==Ut,b=m==g;if(b&&Fe(e)){if(!Fe(t))return!1;D=!0,B=!1}if(b&&!B)return i||(i=new we),D||ke(e)?St(e,t,u,o,f,i):fr(e,t,m,u,o,f,i);if(!(u&wf)){var M=B&&Tr.call(e,"__wrapped__"),I=h&&Tr.call(t,"__wrapped__");if(M||I){var $=M?e.value():e,j=I?t.value():t;return i||(i=new we),f($,j,u,o,i)}}return b?(i||(i=new we),Br(e,t,u,o,f,i)):!1}var Or=Of;function Pr(e,t,u,o,f){return e===t?!0:e==null||t==null||!L(e)&&!L(t)?e!==e&&t!==t:Or(e,t,u,o,Pr,f)}var Ir=Pr;function Pf(e,t){return Ir(e,t)}var If=Pf;var jf="[object Symbol]";function Nf(e){return typeof e=="symbol"||L(e)&&re(e)==jf}var jr=Nf;function Lf(e,t){for(var u=-1,o=e==null?0:e.length,f=Array(o);++u<o;)f[u]=t(e[u],u,e);return f}var Nr=Lf;var Mf=1/0,Lr=Z?Z.prototype:void 0,Mr=Lr?Lr.toString:void 0;function Rr(e){if(typeof e=="string")return e;if(te(e))return Nr(e,Rr)+"";if(jr(e))return Mr?Mr.call(e):"";var t=e+"";return t=="0"&&1/e==-Mf?"-0":t}var Gr=Rr;function Rf(e){return e}var Ht=Rf;var Ur=Object.create,Gf=function(){function e(){}return function(t){if(!W(t))return{};if(Ur)return Ur(t);e.prototype=t;var u=new e;return e.prototype=void 0,u}}(),Hr=Gf;function Uf(e,t,u){switch(u.length){case 0:return e.call(t);case 1:return e.call(t,u[0]);case 2:return e.call(t,u[0],u[1]);case 3:return e.call(t,u[0],u[1],u[2])}return e.apply(t,u)}var $r=Uf;function Hf(e,t){var u=-1,o=e.length;for(t||(t=Array(o));++u<o;)t[u]=e[u];return t}var $t=Hf;var $f=800,qf=16,Vf=Date.now;function Wf(e){var t=0,u=0;return function(){var o=Vf(),f=qf-(o-u);if(u=o,f>0){if(++t>=$f)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var qr=Wf;function zf(e){return function(){return e}}var Vr=zf;var Kf=function(){try{var e=ee(Object,"defineProperty");return e({},"",{}),e}catch{}}(),ut=Kf;var Jf=ut?function(e,t){return ut(e,"toString",{configurable:!0,enumerable:!1,value:Vr(t),writable:!0})}:Ht,Wr=Jf;var Yf=qr(Wr),zr=Yf;function Xf(e,t){for(var u=-1,o=e==null?0:e.length;++u<o&&t(e[u],u,e)!==!1;);return e}var Kr=Xf;function Zf(e,t,u){t=="__proto__"&&ut?ut(e,t,{configurable:!0,enumerable:!0,value:u,writable:!0}):e[t]=u}var rt=Zf;var Qf=Object.prototype,kf=Qf.hasOwnProperty;function e0(e,t,u){var o=e[t];(!(kf.call(e,t)&&fe(o,u))||u===void 0&&!(t in e))&&rt(e,t,u)}var qt=e0;function t0(e,t,u,o){var f=!u;u||(u={});for(var i=-1,D=t.length;++i<D;){var l=t[i],m=o?o(u[l],e[l],l,u,e):void 0;m===void 0&&(m=e[l]),f?rt(u,l,m):qt(u,l,m)}return u}var se=t0;var Jr=Math.max;function u0(e,t,u){return t=Jr(t===void 0?e.length-1:t,0),function(){for(var o=arguments,f=-1,i=Jr(o.length-t,0),D=Array(i);++f<i;)D[f]=o[t+f];f=-1;for(var l=Array(t+1);++f<t;)l[f]=o[f];return l[t]=u(D),$r(e,this,l)}}var Yr=u0;function r0(e,t){return zr(Yr(e,t,Ht),e+"")}var Xr=r0;function o0(e,t,u){if(!W(u))return!1;var o=typeof t;return(o=="number"?Te(u)&&Pt(t,u.length):o=="string"&&t in u)?fe(u[t],e):!1}var Zr=o0;function a0(e){return Xr(function(t,u){var o=-1,f=u.length,i=f>1?u[f-1]:void 0,D=f>2?u[2]:void 0;for(i=e.length>3&&typeof i=="function"?(f--,i):void 0,D&&Zr(u[0],u[1],D)&&(i=f<3?void 0:i,f=1),t=Object(t);++o<f;){var l=u[o];l&&e(t,l,o,i)}return t})}var Qr=a0;function n0(e){var t=[];if(e!=null)for(var u in Object(e))t.push(u);return t}var kr=n0;var i0=Object.prototype,f0=i0.hasOwnProperty;function s0(e){if(!W(e))return kr(e);var t=et(e),u=[];for(var o in e)o=="constructor"&&(t||!f0.call(e,o))||u.push(o);return u}var eo=s0;function D0(e){return Te(e)?jt(e,!0):eo(e)}var De=D0;function p0(e){return e==null?"":Gr(e)}var to=p0;var l0=Nt(Object.getPrototypeOf,Object),ot=l0;var m0="[object Object]",d0=Function.prototype,c0=Object.prototype,uo=d0.toString,A0=c0.hasOwnProperty,C0=uo.call(Object);function F0(e){if(!L(e)||re(e)!=m0)return!1;var t=ot(e);if(t===null)return!0;var u=A0.call(t,"constructor")&&t.constructor;return typeof u=="function"&&u instanceof u&&uo.call(u)==C0}var ro=F0;function E0(e,t){return e&&se(t,tt(t),e)}var oo=E0;function x0(e,t){return e&&se(t,De(t),e)}var ao=x0;var so=typeof exports=="object"&&exports&&!exports.nodeType&&exports,no=so&&typeof module=="object"&&module&&!module.nodeType&&module,g0=no&&no.exports===so,io=g0?P.Buffer:void 0,fo=io?io.allocUnsafe:void 0;function B0(e,t){if(t)return e.slice();var u=e.length,o=fo?fo(u):new e.constructor(u);return e.copy(o),o}var Vt=B0;function h0(e,t){return se(e,Ze(e),t)}var Do=h0;var y0=Object.getOwnPropertySymbols,b0=y0?function(e){for(var t=[];e;)wt(t,Ze(e)),e=ot(e);return t}:Ot,Wt=b0;function v0(e,t){return se(e,Wt(e),t)}var po=v0;function _0(e){return Tt(e,De,Wt)}var lo=_0;var S0=Object.prototype,w0=S0.hasOwnProperty;function T0(e){var t=e.length,u=new e.constructor(t);return t&&typeof e[0]=="string"&&w0.call(e,"index")&&(u.index=e.index,u.input=e.input),u}var mo=T0;function O0(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}var at=O0;function P0(e,t){var u=t?at(e.buffer):e.buffer;return new e.constructor(u,e.byteOffset,e.byteLength)}var co=P0;var I0=/\w*$/;function j0(e){var t=new e.constructor(e.source,I0.exec(e));return t.lastIndex=e.lastIndex,t}var Ao=j0;var Co=Z?Z.prototype:void 0,Fo=Co?Co.valueOf:void 0;function N0(e){return Fo?Object(Fo.call(e)):{}}var Eo=N0;function L0(e,t){var u=t?at(e.buffer):e.buffer;return new e.constructor(u,e.byteOffset,e.length)}var zt=L0;var M0="[object Boolean]",R0="[object Date]",G0="[object Map]",U0="[object Number]",H0="[object RegExp]",$0="[object Set]",q0="[object String]",V0="[object Symbol]",W0="[object ArrayBuffer]",z0="[object DataView]",K0="[object Float32Array]",J0="[object Float64Array]",Y0="[object Int8Array]",X0="[object Int16Array]",Z0="[object Int32Array]",Q0="[object Uint8Array]",k0="[object Uint8ClampedArray]",es="[object Uint16Array]",ts="[object Uint32Array]";function us(e,t,u){var o=e.constructor;switch(t){case W0:return at(e);case M0:case R0:return new o(+e);case z0:return co(e,u);case K0:case J0:case Y0:case X0:case Z0:case Q0:case k0:case es:case ts:return zt(e,u);case G0:return new o;case U0:case q0:return new o(e);case H0:return Ao(e);case $0:return new o;case V0:return Eo(e)}}var xo=us;function rs(e){return typeof e.constructor=="function"&&!et(e)?Hr(ot(e)):{}}var Kt=rs;var os="[object Map]";function as(e){return L(e)&&xe(e)==os}var go=as;var Bo=Ee&&Ee.isMap,ns=Bo?Qe(Bo):go,ho=ns;var is="[object Set]";function fs(e){return L(e)&&xe(e)==is}var yo=fs;var bo=Ee&&Ee.isSet,ss=bo?Qe(bo):yo,vo=ss;var Ds=1,ps=2,ls=4,_o="[object Arguments]",ms="[object Array]",ds="[object Boolean]",cs="[object Date]",As="[object Error]",So="[object Function]",Cs="[object GeneratorFunction]",Fs="[object Map]",Es="[object Number]",wo="[object Object]",xs="[object RegExp]",gs="[object Set]",Bs="[object String]",hs="[object Symbol]",ys="[object WeakMap]",bs="[object ArrayBuffer]",vs="[object DataView]",_s="[object Float32Array]",Ss="[object Float64Array]",ws="[object Int8Array]",Ts="[object Int16Array]",Os="[object Int32Array]",Ps="[object Uint8Array]",Is="[object Uint8ClampedArray]",js="[object Uint16Array]",Ns="[object Uint32Array]",v={};v[_o]=v[ms]=v[bs]=v[vs]=v[ds]=v[cs]=v[_s]=v[Ss]=v[ws]=v[Ts]=v[Os]=v[Fs]=v[Es]=v[wo]=v[xs]=v[gs]=v[Bs]=v[hs]=v[Ps]=v[Is]=v[js]=v[Ns]=!0;v[As]=v[So]=v[ys]=!1;function Jt(e,t,u,o,f,i){var D,l=t&Ds,m=t&ps,g=t&ls;if(u&&(D=f?u(e,o,f,i):u(e)),D!==void 0)return D;if(!W(e))return e;var B=te(e);if(B){if(D=mo(e),!l)return $t(e,D)}else{var h=xe(e),b=h==So||h==Cs;if(Fe(e))return Vt(e,l);if(h==wo||h==_o||b&&!f){if(D=m||b?{}:Kt(e),!l)return m?po(e,ao(D,e)):Do(e,oo(D,e))}else{if(!v[h])return f?e:{};D=xo(e,h,l)}}i||(i=new we);var M=i.get(e);if(M)return M;i.set(e,D),vo(e)?e.forEach(function(j){D.add(Jt(j,t,u,j,e,i))}):ho(e)&&e.forEach(function(j,T){D.set(T,Jt(j,t,u,T,e,i))});var I=g?m?lo:mt:m?De:tt,$=B?void 0:I(e);return Kr($||e,function(j,T){$&&(T=j,j=e[T]),qt(D,T,Jt(j,t,u,T,e,i))}),D}var To=Jt;var Ls=1,Ms=4;function Rs(e){return To(e,Ls|Ms)}var Gs=Rs;function Us(e){return function(t,u,o){for(var f=-1,i=Object(t),D=o(t),l=D.length;l--;){var m=D[e?l:++f];if(u(i[m],m,i)===!1)break}return t}}var Oo=Us;var Hs=Oo(),Po=Hs;function $s(e,t,u){(u!==void 0&&!fe(e[t],u)||u===void 0&&!(t in e))&&rt(e,t,u)}var dt=$s;function qs(e){return L(e)&&Te(e)}var Io=qs;function Vs(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ct=Vs;function Ws(e){return se(e,De(e))}var jo=Ws;function zs(e,t,u,o,f,i,D){var l=ct(e,u),m=ct(t,u),g=D.get(m);if(g){dt(e,u,g);return}var B=i?i(l,m,u+"",e,t,D):void 0,h=B===void 0;if(h){var b=te(m),M=!b&&Fe(m),I=!b&&!M&&ke(m);B=m,b||M||I?te(l)?B=l:Io(l)?B=$t(l):M?(h=!1,B=Vt(m,!0)):I?(h=!1,B=zt(m,!0)):B=[]:ro(m)||pt(m)?(B=l,pt(l)?B=jo(l):(!W(l)||ze(l))&&(B=Kt(m))):h=!1}h&&(D.set(m,B),f(B,m,o,i,D),D.delete(m)),dt(e,u,B)}var No=zs;function Lo(e,t,u,o,f){e!==t&&Po(t,function(i,D){if(f||(f=new we),W(i))No(e,t,D,u,Lo,o,f);else{var l=o?o(ct(e,D),i,D+"",e,t,f):void 0;l===void 0&&(l=i),dt(e,D,l)}},De)}var Mo=Lo;var Ks=Qr(function(e,t,u){Mo(e,t,u)}),Js=Ks;var Ys=0;function Xs(e){var t=++Ys;return to(e)+t}var Zs=Xs;function ks(e,t){if(e&1&&(H(0,"li"),ue(1),H(2,"span",14),ue(3),X(),ue(4,")"),X()),e&2){let u=t.$implicit;U(),Me("",u.name," ("),U(2),Le(u.username)}}var ZA=(()=>{class e{$activeModal=he(Bt);$api=he(yu);$toastr=he(Bu);$translate=he(gu);bridges=[];onRestartChildBridgeClick(){return Au(this,null,function*(){try{for(let u of this.bridges)yield Cu(this.$api.put(`/server/restart/${u.username}`,{}));this.$toastr.success(this.$translate.instant("plugins.manage.child_bridge_restart"),this.$translate.instant("toast.title_success"))}catch(u){console.error(u),this.$toastr.error(this.$translate.instant("plugins.manage.child_bridge_restart_failed"),this.$translate.instant("toast.title_error"))}finally{this.$activeModal.close()}})}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],inputs:{bridges:"bridges"},decls:27,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"w-100"],[1,"text-center"],[1,"d-inline-block","text-start","mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"],[1,"font-monospace"]],template:function(o,f){o&1&&(H(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),H(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),H(7,"div",4),Ve(8,"i",5),H(9,"p",6),ue(10),Q(11,"translate"),X(),H(12,"div",7)(13,"ul",8),Eu(14,ks,5,2,"li",null,Fu),X()()(),H(16,"div",9)(17,"div",10)(18,"button",11),Q(19,"translate"),ye("click",function(){return f.dismissModal()}),ue(20),Q(21,"translate"),X()(),Ve(22,"div",7),H(23,"div",12)(24,"button",13),ye("click",function(){return f.onRestartChildBridgeClick()}),ue(25),Q(26,"translate"),X()()()()),o&2&&(U(3),Le(k(4,6,"platform.version.service_restart_required")),U(2),qe("aria-label",k(6,8,"form.button_close")),U(5),Le(k(11,10,"restart.child_bridge_list")),U(4),xu(f.bridges),U(4),qe("aria-label",k(19,12,"form.button_close")),U(2),Me(" ",k(21,14,"form.button_close")," "),U(5),Me(" ",k(26,16,"menu.tooltip_restart")," "))},dependencies:[ht],encapsulation:2})}return e})();var aC=(()=>{class e{$activeModal=he(Bt);$router=he(hu);onRestartHomebridgeClick(){this.$router.navigate(["/restart"]),this.$activeModal.close()}dismissModal(){this.$activeModal.dismiss("Dismiss")}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=gt({type:e,selectors:[["ng-component"]],decls:23,vars:18,consts:[[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-bs-dismiss","modal",1,"btn-close",3,"click"],[1,"modal-body","text-center"],[1,"fas","fa-power-off","primary-text","mb-3",2,"font-size","75px"],[1,"mb-0"],[1,"modal-footer","justify-content-between"],[1,"text-start"],["type","button","data-bs-dismiss","modal",1,"btn","btn-elegant",3,"click"],[1,"text-center"],[1,"text-end"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(o,f){o&1&&(H(0,"div",0)(1,"div",1)(2,"h5",2),ue(3),Q(4,"translate"),X(),H(5,"button",3),Q(6,"translate"),ye("click",function(){return f.dismissModal()}),X()(),H(7,"div",4),Ve(8,"i",5),H(9,"p",6),ue(10),Q(11,"translate"),X()(),H(12,"div",7)(13,"div",8)(14,"button",9),Q(15,"translate"),ye("click",function(){return f.dismissModal()}),ue(16),Q(17,"translate"),X()(),Ve(18,"div",10),H(19,"div",11)(20,"button",12),ye("click",function(){return f.onRestartHomebridgeClick()}),ue(21),Q(22,"translate"),X()()()()),o&2&&(U(3),Le(k(4,6,"platform.version.service_restart_required")),U(2),qe("aria-label",k(6,8,"form.button_close")),U(5),Le(k(11,10,"plugins.settings.restart_required")),U(4),qe("aria-label",k(15,12,"form.button_close")),U(2),Me(" ",k(17,14,"form.button_close")," "),U(5),Me(" ",k(22,16,"menu.tooltip_restart")," "))},dependencies:[ht],encapsulation:2})}return e})();export{Gs as a,If as b,Js as c,Zs as d,ZA as e,aC as f,eD as g};