homebridge-config-ui-x 5.4.2-beta.12 → 5.4.2-beta.14
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.
- package/package.json +1 -1
- package/public/{chunk-YOX7N4V6.js → chunk-2WLKTKU6.js} +1 -1
- package/public/{chunk-P43CEBLR.js → chunk-2X5NHVAQ.js} +1 -1
- package/public/{chunk-7C5HDKQS.js → chunk-3KCQABGP.js} +1 -1
- package/public/{chunk-VUNTORHU.js → chunk-3SQGWZZO.js} +1 -1
- package/public/{chunk-IGDZWQEL.js → chunk-3T3AJIQT.js} +1 -1
- package/public/{chunk-QBO4F2IJ.js → chunk-43ETGNZQ.js} +1 -1
- package/public/{chunk-Q3BGDEMO.js → chunk-5CA3MED6.js} +1 -1
- package/public/{chunk-XEOHFK6V.js → chunk-5PH22YXA.js} +1 -1
- package/public/{chunk-7I2GAFZ7.js → chunk-5UR27XVM.js} +1 -1
- package/public/{chunk-DDFRRBKP.js → chunk-5YZEGYGL.js} +1 -1
- package/public/{chunk-HIDQPNDY.js → chunk-7LXBH2ZN.js} +1 -1
- package/public/{chunk-ZTWMCKZD.js → chunk-7SSNSU6L.js} +1 -1
- package/public/{chunk-LPWUZ6NA.js → chunk-AI4ZF655.js} +1 -1
- package/public/{chunk-GXGROUZ2.js → chunk-ARD5PVDM.js} +1 -1
- package/public/{chunk-TJXKRNRU.js → chunk-B5KPMKS2.js} +1 -1
- package/public/{chunk-D6IGPJRB.js → chunk-BONGSGMK.js} +1 -1
- package/public/{chunk-RPZECBKI.js → chunk-DASA3ITN.js} +1 -1
- package/public/{chunk-V3DSFNWC.js → chunk-DJFRGVJ2.js} +1 -1
- package/public/{chunk-2ZGALYYQ.js → chunk-DZLH6YGL.js} +1 -1
- package/public/{chunk-M7AW7XUQ.js → chunk-EBKZHKMM.js} +1 -1
- package/public/{chunk-FEGO2KPB.js → chunk-EBZFOBWI.js} +1 -1
- package/public/{chunk-NRI3IRD6.js → chunk-F3S23WH6.js} +1 -1
- package/public/{chunk-ZXT56I4P.js → chunk-FWA227YZ.js} +1 -1
- package/public/{chunk-PNSL45GV.js → chunk-G64KECMC.js} +1 -1
- package/public/{chunk-BLWH7RYS.js → chunk-GVB6U6G3.js} +1 -1
- package/public/{chunk-EJ2Y6AS3.js → chunk-HJVFQ77C.js} +1 -1
- package/public/{chunk-HHFXR3BW.js → chunk-ICDWI3OZ.js} +1 -1
- package/public/{chunk-V3CUTMXJ.js → chunk-J27JPRNU.js} +1 -1
- package/public/{chunk-O6PEZBMS.js → chunk-J6DP6X4W.js} +1 -1
- package/public/{chunk-EFLDLDGD.js → chunk-KOM3JYEA.js} +1 -1
- package/public/{chunk-2EOXAFS7.js → chunk-LHDULTKW.js} +1 -1
- package/public/{chunk-GG3H364L.js → chunk-MHFBZ7KK.js} +1 -1
- package/public/{chunk-Z36XSTDC.js → chunk-N54VNLKH.js} +1 -1
- package/public/{chunk-T6AVFQSB.js → chunk-N5M2S7IU.js} +1 -1
- package/public/{chunk-KXVNSESM.js → chunk-NMGMAWFD.js} +1 -1
- package/public/{chunk-KDO45RFG.js → chunk-ONJ4LQZ5.js} +1 -1
- package/public/{chunk-AKK5FMC3.js → chunk-PI7Y3RTK.js} +1 -1
- package/public/{chunk-XQQDURYW.js → chunk-Q7IDCUR6.js} +1 -1
- package/public/{chunk-SNLXNSWH.js → chunk-ROCWLE23.js} +1 -1
- package/public/{chunk-5SY6S2S7.js → chunk-THEAOBMG.js} +1 -1
- package/public/{chunk-WU7CW6VG.js → chunk-TJEN572W.js} +1 -1
- package/public/{chunk-6XKO6GB5.js → chunk-VUWMCBKO.js} +1 -1
- package/public/{chunk-Y5YBUW2H.js → chunk-XFSXYMIG.js} +1 -1
- package/public/{chunk-5UZWVDTS.js → chunk-XTQSZDRZ.js} +1 -1
- package/public/{chunk-NDSMHRGJ.js → chunk-YJOBR2J5.js} +1 -1
- package/public/{chunk-7A3AKCKT.js → chunk-YPPW7XBA.js} +1 -1
- package/public/{chunk-AFBOGFH3.js → chunk-ZJ5IAMYN.js} +1 -1
- package/public/index.html +1 -1
- package/public/{main-ZNP5PRRT.js → main-2S6WK2RR.js} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ag}from"./chunk-D6IGPJRB.js";import{a as tl,c as Tg,d as Pg,e as Ds,f as ri,g as CS}from"./chunk-VUNTORHU.js";import{a as kg}from"./chunk-YI7M7OR5.js";import{a as Ig}from"./chunk-77JZBWAC.js";import{a as jg}from"./chunk-Y5YBUW2H.js";import{a as Sg,b as Cg,c as xg}from"./chunk-AE7VAWOU.js";import{a as ko}from"./chunk-V2P2FPJ7.js";import{a as zg}from"./chunk-BU65ZOCD.js";import{a as gn,b as _n}from"./chunk-YATJTZML.js";import{a as mn,b as pn}from"./chunk-ZHPB347D.js";import{a as Hg}from"./chunk-4WAU3AJS.js";import{a as nn,b as an,c as ln,d as cn,e as dn,f as un,g as Ns,m as Re,n as et,o as bg,p as fg,q as yg,r as vg,s as wg,t as Ei}from"./chunk-EA3EXGPZ.js";import{A as wo,a as cg,b as Ni,c as js,e as yt,f as dg,h as ug,i as gg,j as mg,k as pg,l as Di,m as _g,o as Bi,r as As,s as ns,t as as,y as hg,z as Wt}from"./chunk-CNMM42I5.js";import{a as Ri}from"./chunk-DDFRRBKP.js";import{d as oi}from"./chunk-UOLP7IQJ.js";import{b as Me}from"./chunk-ZTWMCKZD.js";import{k as He,m as Ui,n as ve}from"./chunk-IGDZWQEL.js";import{a as ke,b as Fe}from"./chunk-G7FA4DP4.js";import{d as lg}from"./chunk-6GMXEQVA.js";import{$ as vo,$a as Qu,Ac as og,Bc as rg,Ca as Ti,Cc as Pe,D as Gu,Da as Zu,Dc as Gt,Ec as os,Fa as Ts,Fc as Et,Gc as zs,Hb as W,Ib as I,Jb as T,Jc as H,Kc as C,Lb as ut,Lc as Ke,M as xs,Mb as gt,Nb as mt,Ob as y,Pb as p,Qb as m,Rb as x,Sb as Xr,Sc as pt,Tb as en,Tc as V,Ub as tn,Uc as Ai,Vb as tg,Wb as ig,Wc as ng,Xa as _e,Y as Za,_b as $,a as J,ab as u,b as xe,bc as R,c as qu,cc as sn,dc as b,e as h,ea as Wu,fa as Pt,fb as Zr,g as je,ga as Is,gb as mi,h as G,hc as Qa,ia as Yu,ib as ts,ic as Xa,id as Ut,ja as Ju,jc as el,jd as rs,k as Ku,ka as z,kc as Pi,kd as _t,lc as zi,mb as Q,mc as sg,n as Tt,nb as Ps,nc as Lt,o as Ja,ob as is,oc as ji,pb as Xu,pc as Z,q as Vu,qa as E,qc as w,ra as U,rc as K,rd as rn,sb as ce,sc as M,tc as ss,ub as eg,uc as on,v as $u,vb as Qr,w as le,x as Lu,xc as Ae,yc as Ne,yd as ag,za as Jr,zc as De}from"./chunk-H36QJYLQ.js";var Co=h(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.regexpCode=ye.getEsmExportName=ye.getProperty=ye.safeStringify=ye.stringify=ye.strConcat=ye.addCodeArg=ye.str=ye._=ye.nil=ye._Code=ye.Name=ye.IDENTIFIER=ye._CodeOrName=void 0;var Ho=class{};ye._CodeOrName=Ho;ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ls=class extends Ho{constructor(i){if(super(),!ye.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ye.Name=ls;var Rt=class extends Ho{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof ls&&(t[s.str]=(t[s.str]||0)+1),t),{})}};ye._Code=Rt;ye.nil=new Rt("");function Ng(e,...i){let t=[e[0]],s=0;for(;s<i.length;)sl(t,i[s]),t.push(e[++s]);return new Rt(t)}ye._=Ng;var il=new Rt("+");function Dg(e,...i){let t=[So(e[0])],s=0;for(;s<i.length;)t.push(il),sl(t,i[s]),t.push(il,So(e[++s]));return xS(t),new Rt(t)}ye.str=Dg;function sl(e,i){i instanceof Rt?e.push(...i._items):i instanceof ls?e.push(i):e.push(PS(i))}ye.addCodeArg=sl;function xS(e){let i=1;for(;i<e.length-1;){if(e[i]===il){let t=IS(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function IS(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof ls||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof ls))return`"${e}${i.slice(1)}`}function TS(e,i){return i.emptyStr()?e:e.emptyStr()?i:Dg`${e}${i}`}ye.strConcat=TS;function PS(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:So(Array.isArray(e)?e.join(","):e)}function zS(e){return new Rt(So(e))}ye.stringify=zS;function So(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ye.safeStringify=So;function jS(e){return typeof e=="string"&&ye.IDENTIFIER.test(e)?new Rt(`.${e}`):Ng`[${e}]`}ye.getProperty=jS;function AS(e){if(typeof e=="string"&&ye.IDENTIFIER.test(e))return new Rt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ye.getEsmExportName=AS;function NS(e){return new Rt(e.toString())}ye.regexpCode=NS});var nl=h(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.ValueScope=wt.ValueScopeName=wt.Scope=wt.varKinds=wt.UsedValueState=void 0;var vt=Co(),ol=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},hn=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(hn||(wt.UsedValueState=hn={}));wt.varKinds={const:new vt.Name("const"),let:new vt.Name("let"),var:new vt.Name("var")};var bn=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof vt.Name?i:this.name(i)}name(i){return new vt.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};wt.Scope=bn;var fn=class extends vt.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,vt._)`.${new vt.Name(t)}[${s}]`}};wt.ValueScopeName=fn;var DS=(0,vt._)`\n`,rl=class extends bn{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=xe(J({},i),{_n:i.lines?DS:vt.nil})}get(){return this._scope}name(i){return new fn(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(i),{prefix:r}=o,n=(s=t.key)!==null&&s!==void 0?s:t.ref,a=this._values[r];if(a){let d=a.get(n);if(d)return d}else a=this._values[r]=new Map;a.set(n,o);let l=this._scope[r]||(this._scope[r]=[]),c=l.length;return l[c]=t.ref,o.setValue(t,{property:r,itemIndex:c}),o}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,vt._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let r=vt.nil;for(let n in i){let a=i[n];if(!a)continue;let l=s[n]=s[n]||new Map;a.forEach(c=>{if(l.has(c))return;l.set(c,hn.Started);let d=t(c);if(d){let g=this.opts.es5?wt.varKinds.var:wt.varKinds.const;r=(0,vt._)`${r}${g} ${c} = ${d};${this.opts._n}`}else if(d=o?.(c))r=(0,vt._)`${r}${d}${this.opts._n}`;else throw new ol(c);l.set(c,hn.Completed)})}return r}};wt.ValueScope=rl});var ee=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.or=de.and=de.not=de.CodeGen=de.operators=de.varKinds=de.ValueScopeName=de.ValueScope=de.Scope=de.Name=de.regexpCode=de.stringify=de.getProperty=de.nil=de.strConcat=de.str=de._=void 0;var he=Co(),Yt=nl(),Fi=Co();Object.defineProperty(de,"_",{enumerable:!0,get:function(){return Fi._}});Object.defineProperty(de,"str",{enumerable:!0,get:function(){return Fi.str}});Object.defineProperty(de,"strConcat",{enumerable:!0,get:function(){return Fi.strConcat}});Object.defineProperty(de,"nil",{enumerable:!0,get:function(){return Fi.nil}});Object.defineProperty(de,"getProperty",{enumerable:!0,get:function(){return Fi.getProperty}});Object.defineProperty(de,"stringify",{enumerable:!0,get:function(){return Fi.stringify}});Object.defineProperty(de,"regexpCode",{enumerable:!0,get:function(){return Fi.regexpCode}});Object.defineProperty(de,"Name",{enumerable:!0,get:function(){return Fi.Name}});var Hn=nl();Object.defineProperty(de,"Scope",{enumerable:!0,get:function(){return Hn.Scope}});Object.defineProperty(de,"ValueScope",{enumerable:!0,get:function(){return Hn.ValueScope}});Object.defineProperty(de,"ValueScopeName",{enumerable:!0,get:function(){return Hn.ValueScopeName}});Object.defineProperty(de,"varKinds",{enumerable:!0,get:function(){return Hn.varKinds}});de.operators={GT:new he._Code(">"),GTE:new he._Code(">="),LT:new he._Code("<"),LTE:new he._Code("<="),EQ:new he._Code("==="),NEQ:new he._Code("!=="),NOT:new he._Code("!"),OR:new he._Code("||"),AND:new he._Code("&&"),ADD:new he._Code("+")};var pi=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},al=class extends pi{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?Yt.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Bs(this.rhs,i,t)),this}get names(){return this.rhs instanceof he._CodeOrName?this.rhs.names:{}}},vn=class extends pi{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof he.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=Bs(this.rhs,i,t),this}get names(){let i=this.lhs instanceof he.Name?{}:J({},this.lhs.names);return kn(i,this.rhs)}},ll=class extends vn{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},cl=class extends pi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},dl=class extends pi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},ul=class extends pi{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},gl=class extends pi{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=Bs(this.code,i,t),this}get names(){return this.code instanceof he._CodeOrName?this.code.names:{}}},xo=class extends pi{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,o=s.length;for(;o--;){let r=s[o];r.optimizeNames(i,t)||(BS(i,r.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>cs(i,t.names),{})}},_i=class extends xo{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},ml=class extends xo{},pl=(()=>{class e extends _i{}return e.kind="else",e})(),yn=(()=>{class e extends _i{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let o=s.optimizeNodes();s=this.else=Array.isArray(o)?new pl(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Fg(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Bs(this.condition,t,s),this}get names(){let t=super.names;return kn(t,this.condition),this.else&&cs(t,this.else.names),t}}return e.kind="if",e})(),Sn=(()=>{class e extends _i{}return e.kind="for",e})(),_l=class extends Sn{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=Bs(this.iteration,i,t),this}get names(){return cs(super.names,this.iteration.names)}},hl=class extends Sn{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?Yt.varKinds.var:this.varKind,{name:s,from:o,to:r}=this;return`for(${t} ${s}=${o}; ${s}<${r}; ${s}++)`+super.render(i)}get names(){let i=kn(super.names,this.from);return kn(i,this.to)}},wn=class extends Sn{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=Bs(this.iterable,i,t),this}get names(){return cs(super.names,this.iterable.names)}},Bg=(()=>{class e extends _i{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Eg=(()=>{class e extends xo{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),bl=class extends _i{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&cs(i,this.catch.names),this.finally&&cs(i,this.finally.names),i}},Ug=(()=>{class e extends _i{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),Rg=(()=>{class e extends _i{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),fl=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=xe(J({},t),{_n:t.lines?`
|
|
1
|
+
import{a as Ag}from"./chunk-BONGSGMK.js";import{a as tl,c as Tg,d as Pg,e as Ds,f as ri,g as CS}from"./chunk-3SQGWZZO.js";import{a as kg}from"./chunk-YI7M7OR5.js";import{a as Ig}from"./chunk-77JZBWAC.js";import{a as jg}from"./chunk-XFSXYMIG.js";import{a as Sg,b as Cg,c as xg}from"./chunk-AE7VAWOU.js";import{a as ko}from"./chunk-V2P2FPJ7.js";import{a as zg}from"./chunk-BU65ZOCD.js";import{a as gn,b as _n}from"./chunk-YATJTZML.js";import{a as mn,b as pn}from"./chunk-ZHPB347D.js";import{a as Hg}from"./chunk-4WAU3AJS.js";import{a as nn,b as an,c as ln,d as cn,e as dn,f as un,g as Ns,m as Re,n as et,o as bg,p as fg,q as yg,r as vg,s as wg,t as Ei}from"./chunk-EA3EXGPZ.js";import{A as wo,a as cg,b as Ni,c as js,e as yt,f as dg,h as ug,i as gg,j as mg,k as pg,l as Di,m as _g,o as Bi,r as As,s as ns,t as as,y as hg,z as Wt}from"./chunk-CNMM42I5.js";import{a as Ri}from"./chunk-5YZEGYGL.js";import{d as oi}from"./chunk-UOLP7IQJ.js";import{b as Me}from"./chunk-7SSNSU6L.js";import{k as He,m as Ui,n as ve}from"./chunk-3T3AJIQT.js";import{a as ke,b as Fe}from"./chunk-G7FA4DP4.js";import{d as lg}from"./chunk-6GMXEQVA.js";import{$ as vo,$a as Qu,Ac as og,Bc as rg,Ca as Ti,Cc as Pe,D as Gu,Da as Zu,Dc as Gt,Ec as os,Fa as Ts,Fc as Et,Gc as zs,Hb as W,Ib as I,Jb as T,Jc as H,Kc as C,Lb as ut,Lc as Ke,M as xs,Mb as gt,Nb as mt,Ob as y,Pb as p,Qb as m,Rb as x,Sb as Xr,Sc as pt,Tb as en,Tc as V,Ub as tn,Uc as Ai,Vb as tg,Wb as ig,Wc as ng,Xa as _e,Y as Za,_b as $,a as J,ab as u,b as xe,bc as R,c as qu,cc as sn,dc as b,e as h,ea as Wu,fa as Pt,fb as Zr,g as je,ga as Is,gb as mi,h as G,hc as Qa,ia as Yu,ib as ts,ic as Xa,id as Ut,ja as Ju,jc as el,jd as rs,k as Ku,ka as z,kc as Pi,kd as _t,lc as zi,mb as Q,mc as sg,n as Tt,nb as Ps,nc as Lt,o as Ja,ob as is,oc as ji,pb as Xu,pc as Z,q as Vu,qa as E,qc as w,ra as U,rc as K,rd as rn,sb as ce,sc as M,tc as ss,ub as eg,uc as on,v as $u,vb as Qr,w as le,x as Lu,xc as Ae,yc as Ne,yd as ag,za as Jr,zc as De}from"./chunk-H36QJYLQ.js";var Co=h(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.regexpCode=ye.getEsmExportName=ye.getProperty=ye.safeStringify=ye.stringify=ye.strConcat=ye.addCodeArg=ye.str=ye._=ye.nil=ye._Code=ye.Name=ye.IDENTIFIER=ye._CodeOrName=void 0;var Ho=class{};ye._CodeOrName=Ho;ye.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ls=class extends Ho{constructor(i){if(super(),!ye.IDENTIFIER.test(i))throw new Error("CodeGen: name must be a valid identifier");this.str=i}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ye.Name=ls;var Rt=class extends Ho{constructor(i){super(),this._items=typeof i=="string"?[i]:i}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let i=this._items[0];return i===""||i==='""'}get str(){var i;return(i=this._str)!==null&&i!==void 0?i:this._str=this._items.reduce((t,s)=>`${t}${s}`,"")}get names(){var i;return(i=this._names)!==null&&i!==void 0?i:this._names=this._items.reduce((t,s)=>(s instanceof ls&&(t[s.str]=(t[s.str]||0)+1),t),{})}};ye._Code=Rt;ye.nil=new Rt("");function Ng(e,...i){let t=[e[0]],s=0;for(;s<i.length;)sl(t,i[s]),t.push(e[++s]);return new Rt(t)}ye._=Ng;var il=new Rt("+");function Dg(e,...i){let t=[So(e[0])],s=0;for(;s<i.length;)t.push(il),sl(t,i[s]),t.push(il,So(e[++s]));return xS(t),new Rt(t)}ye.str=Dg;function sl(e,i){i instanceof Rt?e.push(...i._items):i instanceof ls?e.push(i):e.push(PS(i))}ye.addCodeArg=sl;function xS(e){let i=1;for(;i<e.length-1;){if(e[i]===il){let t=IS(e[i-1],e[i+1]);if(t!==void 0){e.splice(i-1,3,t);continue}e[i++]="+"}i++}}function IS(e,i){if(i==='""')return e;if(e==='""')return i;if(typeof e=="string")return i instanceof ls||e[e.length-1]!=='"'?void 0:typeof i!="string"?`${e.slice(0,-1)}${i}"`:i[0]==='"'?e.slice(0,-1)+i.slice(1):void 0;if(typeof i=="string"&&i[0]==='"'&&!(e instanceof ls))return`"${e}${i.slice(1)}`}function TS(e,i){return i.emptyStr()?e:e.emptyStr()?i:Dg`${e}${i}`}ye.strConcat=TS;function PS(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:So(Array.isArray(e)?e.join(","):e)}function zS(e){return new Rt(So(e))}ye.stringify=zS;function So(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ye.safeStringify=So;function jS(e){return typeof e=="string"&&ye.IDENTIFIER.test(e)?new Rt(`.${e}`):Ng`[${e}]`}ye.getProperty=jS;function AS(e){if(typeof e=="string"&&ye.IDENTIFIER.test(e))return new Rt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ye.getEsmExportName=AS;function NS(e){return new Rt(e.toString())}ye.regexpCode=NS});var nl=h(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.ValueScope=wt.ValueScopeName=wt.Scope=wt.varKinds=wt.UsedValueState=void 0;var vt=Co(),ol=class extends Error{constructor(i){super(`CodeGen: "code" for ${i} not defined`),this.value=i.value}},hn=function(e){return e[e.Started=0]="Started",e[e.Completed=1]="Completed",e}(hn||(wt.UsedValueState=hn={}));wt.varKinds={const:new vt.Name("const"),let:new vt.Name("let"),var:new vt.Name("var")};var bn=class{constructor({prefixes:i,parent:t}={}){this._names={},this._prefixes=i,this._parent=t}toName(i){return i instanceof vt.Name?i:this.name(i)}name(i){return new vt.Name(this._newName(i))}_newName(i){let t=this._names[i]||this._nameGroup(i);return`${i}${t.index++}`}_nameGroup(i){var t,s;if(!((s=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||s===void 0)&&s.has(i)||this._prefixes&&!this._prefixes.has(i))throw new Error(`CodeGen: prefix "${i}" is not allowed in this scope`);return this._names[i]={prefix:i,index:0}}};wt.Scope=bn;var fn=class extends vt.Name{constructor(i,t){super(t),this.prefix=i}setValue(i,{property:t,itemIndex:s}){this.value=i,this.scopePath=(0,vt._)`.${new vt.Name(t)}[${s}]`}};wt.ValueScopeName=fn;var DS=(0,vt._)`\n`,rl=class extends bn{constructor(i){super(i),this._values={},this._scope=i.scope,this.opts=xe(J({},i),{_n:i.lines?DS:vt.nil})}get(){return this._scope}name(i){return new fn(i,this._newName(i))}value(i,t){var s;if(t.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(i),{prefix:r}=o,n=(s=t.key)!==null&&s!==void 0?s:t.ref,a=this._values[r];if(a){let d=a.get(n);if(d)return d}else a=this._values[r]=new Map;a.set(n,o);let l=this._scope[r]||(this._scope[r]=[]),c=l.length;return l[c]=t.ref,o.setValue(t,{property:r,itemIndex:c}),o}getValue(i,t){let s=this._values[i];if(s)return s.get(t)}scopeRefs(i,t=this._values){return this._reduceValues(t,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,vt._)`${i}${s.scopePath}`})}scopeCode(i=this._values,t,s){return this._reduceValues(i,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},t,s)}_reduceValues(i,t,s={},o){let r=vt.nil;for(let n in i){let a=i[n];if(!a)continue;let l=s[n]=s[n]||new Map;a.forEach(c=>{if(l.has(c))return;l.set(c,hn.Started);let d=t(c);if(d){let g=this.opts.es5?wt.varKinds.var:wt.varKinds.const;r=(0,vt._)`${r}${g} ${c} = ${d};${this.opts._n}`}else if(d=o?.(c))r=(0,vt._)`${r}${d}${this.opts._n}`;else throw new ol(c);l.set(c,hn.Completed)})}return r}};wt.ValueScope=rl});var ee=h(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.or=de.and=de.not=de.CodeGen=de.operators=de.varKinds=de.ValueScopeName=de.ValueScope=de.Scope=de.Name=de.regexpCode=de.stringify=de.getProperty=de.nil=de.strConcat=de.str=de._=void 0;var he=Co(),Yt=nl(),Fi=Co();Object.defineProperty(de,"_",{enumerable:!0,get:function(){return Fi._}});Object.defineProperty(de,"str",{enumerable:!0,get:function(){return Fi.str}});Object.defineProperty(de,"strConcat",{enumerable:!0,get:function(){return Fi.strConcat}});Object.defineProperty(de,"nil",{enumerable:!0,get:function(){return Fi.nil}});Object.defineProperty(de,"getProperty",{enumerable:!0,get:function(){return Fi.getProperty}});Object.defineProperty(de,"stringify",{enumerable:!0,get:function(){return Fi.stringify}});Object.defineProperty(de,"regexpCode",{enumerable:!0,get:function(){return Fi.regexpCode}});Object.defineProperty(de,"Name",{enumerable:!0,get:function(){return Fi.Name}});var Hn=nl();Object.defineProperty(de,"Scope",{enumerable:!0,get:function(){return Hn.Scope}});Object.defineProperty(de,"ValueScope",{enumerable:!0,get:function(){return Hn.ValueScope}});Object.defineProperty(de,"ValueScopeName",{enumerable:!0,get:function(){return Hn.ValueScopeName}});Object.defineProperty(de,"varKinds",{enumerable:!0,get:function(){return Hn.varKinds}});de.operators={GT:new he._Code(">"),GTE:new he._Code(">="),LT:new he._Code("<"),LTE:new he._Code("<="),EQ:new he._Code("==="),NEQ:new he._Code("!=="),NOT:new he._Code("!"),OR:new he._Code("||"),AND:new he._Code("&&"),ADD:new he._Code("+")};var pi=class{optimizeNodes(){return this}optimizeNames(i,t){return this}},al=class extends pi{constructor(i,t,s){super(),this.varKind=i,this.name=t,this.rhs=s}render({es5:i,_n:t}){let s=i?Yt.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${o};`+t}optimizeNames(i,t){if(i[this.name.str])return this.rhs&&(this.rhs=Bs(this.rhs,i,t)),this}get names(){return this.rhs instanceof he._CodeOrName?this.rhs.names:{}}},vn=class extends pi{constructor(i,t,s){super(),this.lhs=i,this.rhs=t,this.sideEffects=s}render({_n:i}){return`${this.lhs} = ${this.rhs};`+i}optimizeNames(i,t){if(!(this.lhs instanceof he.Name&&!i[this.lhs.str]&&!this.sideEffects))return this.rhs=Bs(this.rhs,i,t),this}get names(){let i=this.lhs instanceof he.Name?{}:J({},this.lhs.names);return kn(i,this.rhs)}},ll=class extends vn{constructor(i,t,s,o){super(i,s,o),this.op=t}render({_n:i}){return`${this.lhs} ${this.op}= ${this.rhs};`+i}},cl=class extends pi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`${this.label}:`+i}},dl=class extends pi{constructor(i){super(),this.label=i,this.names={}}render({_n:i}){return`break${this.label?` ${this.label}`:""};`+i}},ul=class extends pi{constructor(i){super(),this.error=i}render({_n:i}){return`throw ${this.error};`+i}get names(){return this.error.names}},gl=class extends pi{constructor(i){super(),this.code=i}render({_n:i}){return`${this.code};`+i}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(i,t){return this.code=Bs(this.code,i,t),this}get names(){return this.code instanceof he._CodeOrName?this.code.names:{}}},xo=class extends pi{constructor(i=[]){super(),this.nodes=i}render(i){return this.nodes.reduce((t,s)=>t+s.render(i),"")}optimizeNodes(){let{nodes:i}=this,t=i.length;for(;t--;){let s=i[t].optimizeNodes();Array.isArray(s)?i.splice(t,1,...s):s?i[t]=s:i.splice(t,1)}return i.length>0?this:void 0}optimizeNames(i,t){let{nodes:s}=this,o=s.length;for(;o--;){let r=s[o];r.optimizeNames(i,t)||(BS(i,r.names),s.splice(o,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((i,t)=>cs(i,t.names),{})}},_i=class extends xo{render(i){return"{"+i._n+super.render(i)+"}"+i._n}},ml=class extends xo{},pl=(()=>{class e extends _i{}return e.kind="else",e})(),yn=(()=>{class e extends _i{constructor(t,s){super(s),this.condition=t}render(t){let s=`if(${this.condition})`+super.render(t);return this.else&&(s+="else "+this.else.render(t)),s}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let s=this.else;if(s){let o=s.optimizeNodes();s=this.else=Array.isArray(o)?new pl(o):o}if(s)return t===!1?s instanceof e?s:s.nodes:this.nodes.length?this:new e(Fg(t),s instanceof e?[s]:s.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,s){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,s),!!(super.optimizeNames(t,s)||this.else))return this.condition=Bs(this.condition,t,s),this}get names(){let t=super.names;return kn(t,this.condition),this.else&&cs(t,this.else.names),t}}return e.kind="if",e})(),Sn=(()=>{class e extends _i{}return e.kind="for",e})(),_l=class extends Sn{constructor(i){super(),this.iteration=i}render(i){return`for(${this.iteration})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iteration=Bs(this.iteration,i,t),this}get names(){return cs(super.names,this.iteration.names)}},hl=class extends Sn{constructor(i,t,s,o){super(),this.varKind=i,this.name=t,this.from=s,this.to=o}render(i){let t=i.es5?Yt.varKinds.var:this.varKind,{name:s,from:o,to:r}=this;return`for(${t} ${s}=${o}; ${s}<${r}; ${s}++)`+super.render(i)}get names(){let i=kn(super.names,this.from);return kn(i,this.to)}},wn=class extends Sn{constructor(i,t,s,o){super(),this.loop=i,this.varKind=t,this.name=s,this.iterable=o}render(i){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(i)}optimizeNames(i,t){if(super.optimizeNames(i,t))return this.iterable=Bs(this.iterable,i,t),this}get names(){return cs(super.names,this.iterable.names)}},Bg=(()=>{class e extends _i{constructor(t,s,o){super(),this.name=t,this.args=s,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}}return e.kind="func",e})(),Eg=(()=>{class e extends xo{render(t){return"return "+super.render(t)}}return e.kind="return",e})(),bl=class extends _i{render(i){let t="try"+super.render(i);return this.catch&&(t+=this.catch.render(i)),this.finally&&(t+=this.finally.render(i)),t}optimizeNodes(){var i,t;return super.optimizeNodes(),(i=this.catch)===null||i===void 0||i.optimizeNodes(),(t=this.finally)===null||t===void 0||t.optimizeNodes(),this}optimizeNames(i,t){var s,o;return super.optimizeNames(i,t),(s=this.catch)===null||s===void 0||s.optimizeNames(i,t),(o=this.finally)===null||o===void 0||o.optimizeNames(i,t),this}get names(){let i=super.names;return this.catch&&cs(i,this.catch.names),this.finally&&cs(i,this.finally.names),i}},Ug=(()=>{class e extends _i{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}return e.kind="catch",e})(),Rg=(()=>{class e extends _i{render(t){return"finally"+super.render(t)}}return e.kind="finally",e})(),fl=class{constructor(i,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts=xe(J({},t),{_n:t.lines?`
|
|
2
2
|
`:""}),this._extScope=i,this._scope=new Yt.Scope({parent:i}),this._nodes=[new ml]}toString(){return this._root.render(this.opts)}name(i){return this._scope.name(i)}scopeName(i){return this._extScope.name(i)}scopeValue(i,t){let s=this._extScope.value(i,t);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(i,t){return this._extScope.getValue(i,t)}scopeRefs(i){return this._extScope.scopeRefs(i,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(i,t,s,o){let r=this._scope.toName(t);return s!==void 0&&o&&(this._constants[r.str]=s),this._leafNode(new al(i,r,s)),r}const(i,t,s){return this._def(Yt.varKinds.const,i,t,s)}let(i,t,s){return this._def(Yt.varKinds.let,i,t,s)}var(i,t,s){return this._def(Yt.varKinds.var,i,t,s)}assign(i,t,s){return this._leafNode(new vn(i,t,s))}add(i,t){return this._leafNode(new ll(i,de.operators.ADD,t))}code(i){return typeof i=="function"?i():i!==he.nil&&this._leafNode(new gl(i)),this}object(...i){let t=["{"];for(let[s,o]of i)t.length>1&&t.push(","),t.push(s),(s!==o||this.opts.es5)&&(t.push(":"),(0,he.addCodeArg)(t,o));return t.push("}"),new he._Code(t)}if(i,t,s){if(this._blockNode(new yn(i)),t&&s)this.code(t).else().code(s).endIf();else if(t)this.code(t).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(i){return this._elseNode(new yn(i))}else(){return this._elseNode(new pl)}endIf(){return this._endBlockNode(yn,pl)}_for(i,t){return this._blockNode(i),t&&this.code(t).endFor(),this}for(i,t){return this._for(new _l(i),t)}forRange(i,t,s,o,r=this.opts.es5?Yt.varKinds.var:Yt.varKinds.let){let n=this._scope.toName(i);return this._for(new hl(r,n,t,s),()=>o(n))}forOf(i,t,s,o=Yt.varKinds.const){let r=this._scope.toName(i);if(this.opts.es5){let n=t instanceof he.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,he._)`${n}.length`,a=>{this.var(r,(0,he._)`${n}[${a}]`),s(r)})}return this._for(new wn("of",o,r,t),()=>s(r))}forIn(i,t,s,o=this.opts.es5?Yt.varKinds.var:Yt.varKinds.const){if(this.opts.ownProperties)return this.forOf(i,(0,he._)`Object.keys(${t})`,s);let r=this._scope.toName(i);return this._for(new wn("in",o,r,t),()=>s(r))}endFor(){return this._endBlockNode(Sn)}label(i){return this._leafNode(new cl(i))}break(i){return this._leafNode(new dl(i))}return(i){let t=new Eg;if(this._blockNode(t),this.code(i),t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Eg)}try(i,t,s){if(!t&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new bl;if(this._blockNode(o),this.code(i),t){let r=this.name("e");this._currNode=o.catch=new Ug(r),t(r)}return s&&(this._currNode=o.finally=new Rg,this.code(s)),this._endBlockNode(Ug,Rg)}throw(i){return this._leafNode(new ul(i))}block(i,t){return this._blockStarts.push(this._nodes.length),i&&this.code(i).endBlock(t),this}endBlock(i){let t=this._blockStarts.pop();if(t===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-t;if(s<0||i!==void 0&&s!==i)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${i} expected`);return this._nodes.length=t,this}func(i,t=he.nil,s,o){return this._blockNode(new Bg(i,t,s)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Bg)}optimize(i=1){for(;i-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(i){return this._currNode.nodes.push(i),this}_blockNode(i){this._currNode.nodes.push(i),this._nodes.push(i)}_endBlockNode(i,t){let s=this._currNode;if(s instanceof i||t&&s instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${i.kind}/${t.kind}`:i.kind}"`)}_elseNode(i){let t=this._currNode;if(!(t instanceof yn))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=i,this}get _root(){return this._nodes[0]}get _currNode(){let i=this._nodes;return i[i.length-1]}set _currNode(i){let t=this._nodes;t[t.length-1]=i}};de.CodeGen=fl;function cs(e,i){for(let t in i)e[t]=(e[t]||0)+(i[t]||0);return e}function kn(e,i){return i instanceof he._CodeOrName?cs(e,i.names):e}function Bs(e,i,t){if(e instanceof he.Name)return s(e);if(!o(e))return e;return new he._Code(e._items.reduce((r,n)=>(n instanceof he.Name&&(n=s(n)),n instanceof he._Code?r.push(...n._items):r.push(n),r),[]));function s(r){let n=t[r.str];return n===void 0||i[r.str]!==1?r:(delete i[r.str],n)}function o(r){return r instanceof he._Code&&r._items.some(n=>n instanceof he.Name&&i[n.str]===1&&t[n.str]!==void 0)}}function BS(e,i){for(let t in i)e[t]=(e[t]||0)-(i[t]||0)}function Fg(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,he._)`!${yl(e)}`}de.not=Fg;var ES=Mg(de.operators.AND);function US(...e){return e.reduce(ES)}de.and=US;var RS=Mg(de.operators.OR);function FS(...e){return e.reduce(RS)}de.or=FS;function Mg(e){return(i,t)=>i===he.nil?t:t===he.nil?i:(0,he._)`${yl(i)} ${e} ${yl(t)}`}function yl(e){return e instanceof he.Name?e:(0,he._)`(${e})`}});var ge=h(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.checkStrictMode=ue.getErrorPath=ue.Type=ue.useFunc=ue.setEvaluated=ue.evaluatedPropsToName=ue.mergeEvaluated=ue.eachItem=ue.unescapeJsonPointer=ue.escapeJsonPointer=ue.escapeFragment=ue.unescapeFragment=ue.schemaRefOrVal=ue.schemaHasRulesButRef=ue.schemaHasRules=ue.checkUnknownRules=ue.alwaysValidSchema=ue.toHash=void 0;var Ie=ee(),MS=Co();function OS(e){let i={};for(let t of e)i[t]=!0;return i}ue.toHash=OS;function qS(e,i){return typeof i=="boolean"?i:Object.keys(i).length===0?!0:(Kg(e,i),!Vg(i,e.self.RULES.all))}ue.alwaysValidSchema=qS;function Kg(e,i=e.schema){let{opts:t,self:s}=e;if(!t.strictSchema||typeof i=="boolean")return;let o=s.RULES.keywords;for(let r in i)o[r]||Gg(e,`unknown keyword: "${r}"`)}ue.checkUnknownRules=Kg;function Vg(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(i[t])return!0;return!1}ue.schemaHasRules=Vg;function KS(e,i){if(typeof e=="boolean")return!e;for(let t in e)if(t!=="$ref"&&i.all[t])return!0;return!1}ue.schemaHasRulesButRef=KS;function VS({topSchemaRef:e,schemaPath:i},t,s,o){if(!o){if(typeof t=="number"||typeof t=="boolean")return t;if(typeof t=="string")return(0,Ie._)`${t}`}return(0,Ie._)`${e}${i}${(0,Ie.getProperty)(s)}`}ue.schemaRefOrVal=VS;function $S(e){return $g(decodeURIComponent(e))}ue.unescapeFragment=$S;function LS(e){return encodeURIComponent(wl(e))}ue.escapeFragment=LS;function wl(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ue.escapeJsonPointer=wl;function $g(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ue.unescapeJsonPointer=$g;function GS(e,i){if(Array.isArray(e))for(let t of e)i(t);else i(e)}ue.eachItem=GS;function Og({mergeNames:e,mergeToName:i,mergeValues:t,resultToName:s}){return(o,r,n,a)=>{let l=n===void 0?r:n instanceof Ie.Name?(r instanceof Ie.Name?e(o,r,n):i(o,r,n),n):r instanceof Ie.Name?(i(o,n,r),r):t(r,n);return a===Ie.Name&&!(l instanceof Ie.Name)?s(o,l):l}}ue.mergeEvaluated={props:Og({mergeNames:(e,i,t)=>e.if((0,Ie._)`${t} !== true && ${i} !== undefined`,()=>{e.if((0,Ie._)`${i} === true`,()=>e.assign(t,!0),()=>e.assign(t,(0,Ie._)`${t} || {}`).code((0,Ie._)`Object.assign(${t}, ${i})`))}),mergeToName:(e,i,t)=>e.if((0,Ie._)`${t} !== true`,()=>{i===!0?e.assign(t,!0):(e.assign(t,(0,Ie._)`${t} || {}`),kl(e,t,i))}),mergeValues:(e,i)=>e===!0?!0:J(J({},e),i),resultToName:Lg}),items:Og({mergeNames:(e,i,t)=>e.if((0,Ie._)`${t} !== true && ${i} !== undefined`,()=>e.assign(t,(0,Ie._)`${i} === true ? true : ${t} > ${i} ? ${t} : ${i}`)),mergeToName:(e,i,t)=>e.if((0,Ie._)`${t} !== true`,()=>e.assign(t,i===!0?!0:(0,Ie._)`${t} > ${i} ? ${t} : ${i}`)),mergeValues:(e,i)=>e===!0?!0:Math.max(e,i),resultToName:(e,i)=>e.var("items",i)})};function Lg(e,i){if(i===!0)return e.var("props",!0);let t=e.var("props",(0,Ie._)`{}`);return i!==void 0&&kl(e,t,i),t}ue.evaluatedPropsToName=Lg;function kl(e,i,t){Object.keys(t).forEach(s=>e.assign((0,Ie._)`${i}${(0,Ie.getProperty)(s)}`,!0))}ue.setEvaluated=kl;var qg={};function WS(e,i){return e.scopeValue("func",{ref:i,code:qg[i.code]||(qg[i.code]=new MS._Code(i.code))})}ue.useFunc=WS;var vl=function(e){return e[e.Num=0]="Num",e[e.Str=1]="Str",e}(vl||(ue.Type=vl={}));function YS(e,i,t){if(e instanceof Ie.Name){let s=i===vl.Num;return t?s?(0,Ie._)`"[" + ${e} + "]"`:(0,Ie._)`"['" + ${e} + "']"`:s?(0,Ie._)`"/" + ${e}`:(0,Ie._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return t?(0,Ie.getProperty)(e).toString():"/"+wl(e)}ue.getErrorPath=YS;function Gg(e,i,t=e.opts.strictSchema){if(t){if(i=`strict mode: ${i}`,t===!0)throw new Error(i);e.self.logger.warn(i)}}ue.checkStrictMode=Gg});var Ft=h(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var rt=ee(),JS={data:new rt.Name("data"),valCxt:new rt.Name("valCxt"),instancePath:new rt.Name("instancePath"),parentData:new rt.Name("parentData"),parentDataProperty:new rt.Name("parentDataProperty"),rootData:new rt.Name("rootData"),dynamicAnchors:new rt.Name("dynamicAnchors"),vErrors:new rt.Name("vErrors"),errors:new rt.Name("errors"),this:new rt.Name("this"),self:new rt.Name("self"),scope:new rt.Name("scope"),json:new rt.Name("json"),jsonPos:new rt.Name("jsonPos"),jsonLen:new rt.Name("jsonLen"),jsonPart:new rt.Name("jsonPart")};Hl.default=JS});var Io=h(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.extendErrors=nt.resetErrorsCount=nt.reportExtraError=nt.reportError=nt.keyword$DataError=nt.keywordError=void 0;var fe=ee(),Cn=ge(),ht=Ft();nt.keywordError={message:({keyword:e})=>(0,fe.str)`must pass "${e}" keyword validation`};nt.keyword$DataError={message:({keyword:e,schemaType:i})=>i?(0,fe.str)`"${e}" keyword must be ${i} ($data)`:(0,fe.str)`"${e}" keyword is invalid ($data)`};function ZS(e,i=nt.keywordError,t,s){let{it:o}=e,{gen:r,compositeRule:n,allErrors:a}=o,l=Jg(e,i,t);s??(n||a)?Wg(r,l):Yg(o,(0,fe._)`[${l}]`)}nt.reportError=ZS;function QS(e,i=nt.keywordError,t){let{it:s}=e,{gen:o,compositeRule:r,allErrors:n}=s,a=Jg(e,i,t);Wg(o,a),r||n||Yg(s,ht.default.vErrors)}nt.reportExtraError=QS;function XS(e,i){e.assign(ht.default.errors,i),e.if((0,fe._)`${ht.default.vErrors} !== null`,()=>e.if(i,()=>e.assign((0,fe._)`${ht.default.vErrors}.length`,i),()=>e.assign(ht.default.vErrors,null)))}nt.resetErrorsCount=XS;function eC({gen:e,keyword:i,schemaValue:t,data:s,errsCount:o,it:r}){if(o===void 0)throw new Error("ajv implementation error");let n=e.name("err");e.forRange("i",o,ht.default.errors,a=>{e.const(n,(0,fe._)`${ht.default.vErrors}[${a}]`),e.if((0,fe._)`${n}.instancePath === undefined`,()=>e.assign((0,fe._)`${n}.instancePath`,(0,fe.strConcat)(ht.default.instancePath,r.errorPath))),e.assign((0,fe._)`${n}.schemaPath`,(0,fe.str)`${r.errSchemaPath}/${i}`),r.opts.verbose&&(e.assign((0,fe._)`${n}.schema`,t),e.assign((0,fe._)`${n}.data`,s))})}nt.extendErrors=eC;function Wg(e,i){let t=e.const("err",i);e.if((0,fe._)`${ht.default.vErrors} === null`,()=>e.assign(ht.default.vErrors,(0,fe._)`[${t}]`),(0,fe._)`${ht.default.vErrors}.push(${t})`),e.code((0,fe._)`${ht.default.errors}++`)}function Yg(e,i){let{gen:t,validateName:s,schemaEnv:o}=e;o.$async?t.throw((0,fe._)`new ${e.ValidationError}(${i})`):(t.assign((0,fe._)`${s}.errors`,i),t.return(!1))}var ds={keyword:new fe.Name("keyword"),schemaPath:new fe.Name("schemaPath"),params:new fe.Name("params"),propertyName:new fe.Name("propertyName"),message:new fe.Name("message"),schema:new fe.Name("schema"),parentSchema:new fe.Name("parentSchema")};function Jg(e,i,t){let{createErrors:s}=e.it;return s===!1?(0,fe._)`{}`:tC(e,i,t)}function tC(e,i,t={}){let{gen:s,it:o}=e,r=[iC(o,t),sC(e,t)];return oC(e,i,r),s.object(...r)}function iC({errorPath:e},{instancePath:i}){let t=i?(0,fe.str)`${e}${(0,Cn.getErrorPath)(i,Cn.Type.Str)}`:e;return[ht.default.instancePath,(0,fe.strConcat)(ht.default.instancePath,t)]}function sC({keyword:e,it:{errSchemaPath:i}},{schemaPath:t,parentSchema:s}){let o=s?i:(0,fe.str)`${i}/${e}`;return t&&(o=(0,fe.str)`${o}${(0,Cn.getErrorPath)(t,Cn.Type.Str)}`),[ds.schemaPath,o]}function oC(e,{params:i,message:t},s){let{keyword:o,data:r,schemaValue:n,it:a}=e,{opts:l,propertyName:c,topSchemaRef:d,schemaPath:g}=a;s.push([ds.keyword,o],[ds.params,typeof i=="function"?i(e):i||(0,fe._)`{}`]),l.messages&&s.push([ds.message,typeof t=="function"?t(e):t]),l.verbose&&s.push([ds.schema,n],[ds.parentSchema,(0,fe._)`${d}${g}`],[ht.default.data,r]),c&&s.push([ds.propertyName,c])}});var Qg=h(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.boolOrEmptySchema=Es.topBoolOrEmptySchema=void 0;var rC=Io(),nC=ee(),aC=Ft(),lC={message:"boolean schema is false"};function cC(e){let{gen:i,schema:t,validateName:s}=e;t===!1?Zg(e,!1):typeof t=="object"&&t.$async===!0?i.return(aC.default.data):(i.assign((0,nC._)`${s}.errors`,null),i.return(!0))}Es.topBoolOrEmptySchema=cC;function dC(e,i){let{gen:t,schema:s}=e;s===!1?(t.var(i,!1),Zg(e)):t.var(i,!0)}Es.boolOrEmptySchema=dC;function Zg(e,i){let{gen:t,data:s}=e,o={gen:t,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,rC.reportError)(o,lC,void 0,i)}});var Sl=h(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.getRules=Us.isJSONType=void 0;var uC=["string","number","integer","boolean","null","object","array"],gC=new Set(uC);function mC(e){return typeof e=="string"&&gC.has(e)}Us.isJSONType=mC;function pC(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:xe(J({},e),{integer:!0,boolean:!0,null:!0}),rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Us.getRules=pC});var Cl=h(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.shouldUseRule=Mi.shouldUseGroup=Mi.schemaHasRulesForType=void 0;function _C({schema:e,self:i},t){let s=i.RULES.types[t];return s&&s!==!0&&Xg(e,s)}Mi.schemaHasRulesForType=_C;function Xg(e,i){return i.rules.some(t=>em(e,t))}Mi.shouldUseGroup=Xg;function em(e,i){var t;return e[i.keyword]!==void 0||((t=i.definition.implements)===null||t===void 0?void 0:t.some(s=>e[s]!==void 0))}Mi.shouldUseRule=em});var To=h(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.reportTypeError=at.checkDataTypes=at.checkDataType=at.coerceAndCheckDataType=at.getJSONTypes=at.getSchemaTypes=at.DataType=void 0;var hC=Sl(),bC=Cl(),fC=Io(),ne=ee(),tm=ge(),Rs=function(e){return e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong",e}(Rs||(at.DataType=Rs={}));function yC(e){let i=im(e.type);if(i.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!i.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&i.push("null")}return i}at.getSchemaTypes=yC;function im(e){let i=Array.isArray(e)?e:e?[e]:[];if(i.every(hC.isJSONType))return i;throw new Error("type must be JSONType or JSONType[]: "+i.join(","))}at.getJSONTypes=im;function vC(e,i){let{gen:t,data:s,opts:o}=e,r=wC(i,o.coerceTypes),n=i.length>0&&!(r.length===0&&i.length===1&&(0,bC.schemaHasRulesForType)(e,i[0]));if(n){let a=Il(i,s,o.strictNumbers,Rs.Wrong);t.if(a,()=>{r.length?kC(e,i,r):Tl(e)})}return n}at.coerceAndCheckDataType=vC;var sm=new Set(["string","number","integer","boolean","null"]);function wC(e,i){return i?e.filter(t=>sm.has(t)||i==="array"&&t==="array"):[]}function kC(e,i,t){let{gen:s,data:o,opts:r}=e,n=s.let("dataType",(0,ne._)`typeof ${o}`),a=s.let("coerced",(0,ne._)`undefined`);r.coerceTypes==="array"&&s.if((0,ne._)`${n} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>s.assign(o,(0,ne._)`${o}[0]`).assign(n,(0,ne._)`typeof ${o}`).if(Il(i,o,r.strictNumbers),()=>s.assign(a,o))),s.if((0,ne._)`${a} !== undefined`);for(let c of t)(sm.has(c)||c==="array"&&r.coerceTypes==="array")&&l(c);s.else(),Tl(e),s.endIf(),s.if((0,ne._)`${a} !== undefined`,()=>{s.assign(o,a),HC(e,a)});function l(c){switch(c){case"string":s.elseIf((0,ne._)`${n} == "number" || ${n} == "boolean"`).assign(a,(0,ne._)`"" + ${o}`).elseIf((0,ne._)`${o} === null`).assign(a,(0,ne._)`""`);return;case"number":s.elseIf((0,ne._)`${n} == "boolean" || ${o} === null
|
|
3
3
|
|| (${n} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,ne._)`+${o}`);return;case"integer":s.elseIf((0,ne._)`${n} === "boolean" || ${o} === null
|
|
4
4
|
|| (${n} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,ne._)`+${o}`);return;case"boolean":s.elseIf((0,ne._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,ne._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":s.elseIf((0,ne._)`${o} === "" || ${o} === 0 || ${o} === false`),s.assign(a,null);return;case"array":s.elseIf((0,ne._)`${n} === "string" || ${n} === "number"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-5YZEGYGL.js";import"./chunk-YPPW7XBA.js";import{d as k}from"./chunk-UOLP7IQJ.js";import{b as S}from"./chunk-7SSNSU6L.js";import{k as T,n as w}from"./chunk-3T3AJIQT.js";import{a as C,b as $}from"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{$b as E,Dc as g,Ib as d,Jb as f,Jc as m,Kc as c,Lc as y,Sb as r,Tb as i,Ub as l,Xa as x,ab as n,dc as h,ka as o,mb as _,qc as a,rc as s}from"./chunk-H36QJYLQ.js";var I=t=>({command:t});function D(t,u){if(t&1&&(r(0,"div",7),a(1),i()),t&2){let e=h();n(),s(e.error)}}function R(t,u){t&1&&(r(0,"p",9),a(1),m(2,"translate"),i(),r(3,"div",10)(4,"div",11),l(5,"i",12),i()()),t&2&&(n(),s(c(2,1,"restart.please_wait_while_server_restarts")))}function B(t,u){if(t&1&&(r(0,"div",8)(1,"p"),a(2),m(3,"translate"),i(),l(4,"p",13),m(5,"translate"),i()),t&2){let e=h();n(2),s(c(3,2,"platform.docker.server_long_time")),n(2),E("innerHTML",y(5,4,"platform.docker.run_with_restart",g(7,I,e.command)),x)}}var U=(()=>{class t{$api=o(w);$router=o(k);$settings=o(S);$toastr=o(T);$translate=o(C);$ws=o(b);checkTimeout;checkDelay;io;resp={};timeout=!1;error=!1;command='<span class="font-monospace">--restart=always</span>';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/docker/restart-container",{}).subscribe({next:e=>{this.resp=e,this.checkIfServerUp()},error:e=>{this.error=this.$translate.instant("restart.toast_server_restart_error"),console.error(e),this.$toastr.error(this.$translate.instant("restart.toast_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.docker.container_restarted"),this.$translate.instant("toast.title_success")),this.$router.navigate(["/"]))})},1e4),this.checkTimeout=setTimeout(()=>{this.$toastr.warning(this.$translate.instant("restart.toast_server_restart_timeout"),this.$translate.instant("toast.title_warning"),{timeOut:1e4}),this.timeout=!0},6e4)}static \u0275fac=function(p){return new(p||t)};static \u0275cmp=_({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,"fab","fa-fw","fa-docker",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"],[1,"grey-text","mb-0",3,"innerHTML"]],template:function(p,v){p&1&&(r(0,"div",0)(1,"h3",1),a(2),m(3,"translate"),i()(),r(4,"div",2)(5,"div",3),l(6,"i",4),i(),r(7,"div",5)(8,"h4",6),a(9),m(10,"translate"),i(),d(11,D,2,1,"div",7)(12,R,6,3),d(13,B,6,9,"div",8),i()()),p&2&&(n(2),s(c(3,4,"menu.restart.title")),n(7),s(c(10,6,"platform.docker.title_restarting")),n(2),f(v.error?11:12),n(2),f(v.timeout?13:-1))},dependencies:[$],styles:[".restart-progress-box[_ngcontent-%COMP%]{font-size:22px;font-weight:300;margin-top:15px}"]})}return t})();export{U as ContainerRestartComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as _,n as h}from"./chunk-
|
|
1
|
+
import{k as _,n as h}from"./chunk-3T3AJIQT.js";import{a as v,b as E}from"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{Ib as c,Jb as x,Jc as p,Kc as s,Sb as i,Tb as e,Ub as f,ab as n,dc as u,ka as l,mb as d,qc as o,rc as a}from"./chunk-H36QJYLQ.js";function y(t,w){if(t&1&&(i(0,"div",7),o(1),e()),t&2){let r=u();n(),a(r.error)}}function C(t,w){t&1&&(i(0,"p",8),o(1),p(2,"translate"),e()),t&2&&(n(),a(s(2,1,"platform.linux.server_will_power_down")))}var B=(()=>{class t{$api=l(h);$toastr=l(_);$translate=l(v);error=!1;ngOnInit(){this.$api.put("/platform-tools/linux/shutdown-host",{}).subscribe({error:r=>{console.error(r),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"))}})}static \u0275fac=function(m){return new(m||t)};static \u0275cmp=d({type:t,selectors:[["ng-component"]],decls:13,vars:7,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,"grey-text"]],template:function(m,S){m&1&&(i(0,"div",0)(1,"h3",1),o(2),p(3,"translate"),e()(),i(4,"div",2)(5,"div",3),f(6,"i",4),e(),i(7,"div",5)(8,"h4",6),o(9),p(10,"translate"),e(),c(11,y,2,1,"div",7)(12,C,3,3,"p",8),e()()),m&2&&(n(2),a(s(3,3,"menu.restart.title")),n(7),a(s(10,5,"platform.linux.shutting_down_server")),n(2),x(S.error?11:12))},dependencies:[E],encapsulation:2})}return t})();export{B as ShutdownLinuxComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as B}from"./chunk-4WAU3AJS.js";import{n as k,t as $}from"./chunk-EA3EXGPZ.js";import"./chunk-CNMM42I5.js";import{d as P}from"./chunk-UOLP7IQJ.js";import{b as V}from"./chunk-
|
|
1
|
+
import{a as B}from"./chunk-4WAU3AJS.js";import{n as k,t as $}from"./chunk-EA3EXGPZ.js";import"./chunk-CNMM42I5.js";import{d as P}from"./chunk-UOLP7IQJ.js";import{b as V}from"./chunk-7SSNSU6L.js";import{k as I,n as O}from"./chunk-3T3AJIQT.js";import{a as y,b as T}from"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{Ib as f,Jb as v,Jc as a,Kc as s,Ob as g,Pb as o,Qb as r,Rb as C,_b as b,ab as i,bc as m,dc as w,ka as p,mb as h,qa as d,qc as c,ra as _,rc as S,sc as u}from"./chunk-H36QJYLQ.js";function H(e,x){if(e&1){let t=b();o(0,"p",5)(1,"button",6),m("click",function(){d(t);let n=w();return _(n.restartServer())}),c(2),a(3,"translate"),r()()}e&2&&(i(2),u(" ",s(3,1,"menu.linux.label_restart_server")," "))}function D(e,x){if(e&1){let t=b();o(0,"p",5)(1,"button",6),m("click",function(){d(t);let n=w();return _(n.shutdownServer())}),c(2),a(3,"translate"),r()()}e&2&&(i(2),u(" ",s(3,1,"menu.linux.label_shutdown_server")," "))}function R(e,x){if(e&1){let t=b();o(0,"p",5)(1,"button",6),m("click",function(){d(t);let n=w();return _(n.dockerRestartContainer())}),c(2),a(3,"translate"),r()()}e&2&&(i(2),u(" ",s(3,1,"menu.docker.restart_container")," "))}var K=(()=>{class e{$api=p(O);$modal=p(k);$router=p(P);$settings=p(V);$toastr=p(I);$translate=p(y);canShutdownRestartHost=this.$settings.env.canShutdownRestartHost;runningInDocker=this.$settings.env.runningInDocker;restartHomebridge(){this.$router.navigate(["/restart"])}restartHomebridgeService(){this.$api.put("/platform-tools/hb-service/set-full-service-restart-flag",{}).subscribe({next:()=>{this.$router.navigate(["/restart"])},error:t=>{console.error(t),this.$toastr.error(t.message,this.$translate.instant("toast.title_error"))}})}restartServer(){this.$router.navigate(["/platform-tools/linux/restart-server"])}shutdownServer(){let t=this.$modal.open(B,{size:"lg",backdrop:"static"});t.componentInstance.title=this.$translate.instant("menu.linux.label_shutdown_server"),t.componentInstance.message=this.$translate.instant("menu.linux.label_shutdown_modal"),t.componentInstance.confirmButtonLabel=this.$translate.instant("form.button_continue"),t.componentInstance.faIconClass="fa fa-fw fa-power-off primary-text",t.result.then(()=>{this.$router.navigate(["/platform-tools/linux/shutdown-server"])}).catch(()=>{})}dockerRestartContainer(){this.$router.navigate(["/platform-tools/docker/restart-container"])}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=h({type:e,selectors:[["ng-component"]],decls:19,vars:16,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,"w-100","text-center","my-5"],["type","button",1,"btn","btn-primary","p-3","my-0",2,"width","85%",3,"click"],["type","button","container","body","triggers","hover",1,"btn","btn-primary","p-3","my-0",2,"width","85%",3,"click","openDelay","ngbTooltip"]],template:function(l,n){l&1&&(o(0,"div",0)(1,"h3",1),c(2),a(3,"translate"),r()(),o(4,"div",2)(5,"div",3),C(6,"i",4),r(),o(7,"p",5)(8,"button",6),m("click",function(){return n.restartHomebridge()}),c(9),a(10,"translate"),r()(),o(11,"p",5)(12,"button",7),a(13,"translate"),m("click",function(){return n.restartHomebridgeService()}),c(14),a(15,"translate"),r()(),f(16,H,4,3,"p",5),f(17,D,4,3,"p",5),f(18,R,4,3,"p",5),r()),l&2&&(i(2),S(s(3,8,"menu.restart.title")),i(7),u(" ",s(10,10,"menu.hbrestart.confirm_hb")," "),i(3),g("openDelay",150)("ngbTooltip",s(13,12,"reset.force_restart_hb_help_text")),i(2),u(" ",s(15,14,"menu.hbrestart.confirm_ui")," "),i(2),v(n.canShutdownRestartHost?16:-1),i(),v(n.canShutdownRestartHost?17:-1),i(),v(n.runningInDocker?18:-1))},dependencies:[$,T],encapsulation:2})}return e})();export{K as PowerOptionsComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-Q7IDCUR6.js";import{g as i}from"./chunk-UOLP7IQJ.js";import"./chunk-7SSNSU6L.js";import"./chunk-3T3AJIQT.js";import"./chunk-G7FA4DP4.js";import"./chunk-6GMXEQVA.js";import{ga as o,nb as r}from"./chunk-H36QJYLQ.js";var a=[{path:"",loadComponent:()=>import("./chunk-2X5NHVAQ.js").then(t=>t.SetupWizardComponent)}],u=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({imports:[i.forChild(a),i]})}return t})();var l=(()=>{class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=r({type:t});static \u0275inj=o({providers:[n],imports:[u]})}return t})();export{l as SetupWizardModule};
|