@camstack/addon-admin-ui 0.1.47 → 0.2.0

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 (70) hide show
  1. package/dist/assets/_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DhUskkLv.js +1 -0
  2. package/dist/assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-1rzf3QZV.js +1 -0
  3. package/dist/assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-CSJxMxg6.js +6 -0
  4. package/dist/assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-CPJ7iclX.js +1 -0
  5. package/dist/assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare__konva__loadShare__.js-B7XYY0cV.js +15 -0
  6. package/dist/assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare__react_mf_2_dom__loadShare__.js-C2cB5JUo.js +1 -0
  7. package/dist/assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-CXx5u_N6.js +9 -0
  8. package/dist/assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare__react_mf_2_konva__loadShare__.js-B2sDsXg0.js +19 -0
  9. package/dist/assets/browser-BHo8W_uH.js +8 -0
  10. package/dist/assets/dist-CGRDjIOZ.js +1 -0
  11. package/dist/assets/dist-mzJ_Pmak.js +1 -0
  12. package/dist/assets/dist-q2poCTnb.js +75 -0
  13. package/dist/assets/hostInit-BKCH_xPO.js +1 -0
  14. package/dist/assets/index-CYoeHsdE.js +82 -0
  15. package/dist/assets/index-D2K_AdnO.css +2 -0
  16. package/dist/{mf-entry-bootstrap-0.js → assets/mf-entry-bootstrap-0-adeca54a.js} +7 -5
  17. package/dist/assets/remoteEntry-aR0pkhzt.js +1 -0
  18. package/dist/assets/rolldown-runtime-Cyuzqnbw.js +1 -0
  19. package/dist/assets/schemas-CuE8EXQ7.js +64 -0
  20. package/dist/assets/src-BE2rTAMO.js +1 -0
  21. package/dist/assets/src-CrhOk7JL.js +1 -0
  22. package/dist/assets/virtualExposes-SIMIW5lI.js +1 -0
  23. package/dist/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BU185vSK.js +5 -0
  24. package/dist/assets/virtual_mf-exposes___mfe_internal__admin_ui_host__remoteEntry-_hash_-DnnXQRkG.js +1 -0
  25. package/dist/assets/vite-preload-helper-zJ_50EbN.js +1 -0
  26. package/dist/index.html +6 -9
  27. package/dist/server/addon.js +19793 -16322
  28. package/dist/sw.js +1 -1
  29. package/package.json +10 -9
  30. package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs-CawbgE5L.js +0 -1
  31. package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs_commonjs-proxy-GKALXIcl.js +0 -1
  32. package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-DIkg6-MH.js +0 -6
  33. package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs_commonjs-proxy-WD2WouMQ.js +0 -1
  34. package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs-JVZxVBTk.js +0 -1
  35. package/dist/assets/__mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.mjs_commonjs-proxy-fDAP1KhM.js +0 -1
  36. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__konva__loadShare__.mjs-g85Oidc0.js +0 -15
  37. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__konva__loadShare__.mjs_commonjs-proxy-Bqeq2Zwj.js +0 -1
  38. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs-hk6goaRc.js +0 -9
  39. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react__loadShare__.mjs_commonjs-proxy-CKOygvIQ.js +0 -1
  40. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js +0 -9
  41. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs_commonjs-proxy-DrLZNXOX.js +0 -1
  42. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom__loadShare__.mjs-DGvrhOC3.js +0 -9
  43. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-DG9hE2tk.js +0 -1
  44. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-ByazpYAv.js +0 -25
  45. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs_commonjs-proxy-CxaW4xr1.js +0 -1
  46. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_konva__loadShare__.mjs-BLBZm4ju.js +0 -35
  47. package/dist/assets/__mfe_internal__admin_ui_host__loadShare__react_mf_2_konva__loadShare__.mjs_commonjs-proxy-LyTotJxo.js +0 -1
  48. package/dist/assets/_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-C3ppGtyE.js +0 -1
  49. package/dist/assets/browser-BXdiCFWD.js +0 -8
  50. package/dist/assets/devices-DmCyuEuQ.js +0 -1
  51. package/dist/assets/hostInit-BhyqZ3AI.js +0 -1
  52. package/dist/assets/index-BH5Ezf7x.js +0 -1
  53. package/dist/assets/index-BPRNeJ5M.js +0 -126
  54. package/dist/assets/index-BViRW9IB.js +0 -1
  55. package/dist/assets/index-BpGkKz46.js +0 -1
  56. package/dist/assets/index-C2d2NdfQ.css +0 -1
  57. package/dist/assets/index-C9MS3ovr.js +0 -1
  58. package/dist/assets/index-CAZNi1Jm.js +0 -1
  59. package/dist/assets/index-CDGj60rb.js +0 -190
  60. package/dist/assets/index-DBG7Fygw.js +0 -1
  61. package/dist/assets/index-DeFTFjpg.js +0 -1514
  62. package/dist/assets/index-DuP0eN9F.js +0 -1
  63. package/dist/assets/index-na_oszC9.js +0 -1
  64. package/dist/assets/method-access-map-BCPBTC0g.js +0 -1
  65. package/dist/assets/preload-helper-BlTxHScW.js +0 -1
  66. package/dist/assets/remoteEntry-0I-ik-5b.js +0 -1
  67. package/dist/assets/schemas-DSjJ1TGP.js +0 -64
  68. package/dist/assets/virtualExposes-_ivNhQLP.js +0 -1
  69. package/dist/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-ChhI9HQF.js +0 -8
  70. package/dist/server/addon.js.map +0 -1
@@ -1 +0,0 @@
1
- import{s as r}from"./index-na_oszC9.js";import{b as e}from"./__mfe_internal__admin_ui_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-C_6K4VBY.js";const o=e(r);export{o as r};
@@ -1 +0,0 @@
1
- import{l as D,z,n as K,o as j,w as H,p as V,v as W,q as G,r as q,u as Z,t as Y,s as Q,x as J,y as X,A as ee,B as te,C as ae,F as se,G as ne,H as ie,I as re,J as oe,K as ce,L as le,O as de,P as ue,Q as he,T as me,U as pe,V as fe,X as Se,Y as ge,Z as be,_ as ye,$ as Ce,a0 as N,a1 as ve,a2 as we,a3 as Ie,a4 as Ae,a5 as O,a6 as ke,a7 as Ee,a8 as Pe,a9 as _e,aa as Re,ab as De,ac as Me,ad as xe,ae as Te,af as Ne,ag as Oe,ah as Be,ai as Le,aj as $e,ak as Fe,al as Ue,am as ze,an as Ke,ao as je,ap as He,aq as Ve,ar as We,as as Ge,at as It,au as At,av as kt,aw as Et,ax as Pt,ay as _t,az as Rt,aA as Dt,aB as Mt,aC as xt,aD as Tt,aE as Nt,aF as Ot,aG as Bt,aH as Lt,aI as $t,aJ as Ft,aK as Ut,aL as zt,aM as Kt,aN as jt,aO as Ht,aP as Vt,aQ as Wt,aR as Gt,aS as qt,aT as Zt,aU as Yt,aV as Qt,aW as Jt,aX as Xt,aY as ea,aZ as ta,a_ as aa,a$ as sa,b0 as na,b1 as ia,b2 as ra,b3 as oa,b4 as ca,b5 as la,b6 as da,b7 as ua,b8 as ha,b9 as ma,ba as pa,bb as fa,bc as Sa,bd as ga,be as ba,bf as ya,bg as Ca,bh as va,bi as wa,bj as Ia,bk as Aa,bl as ka,bm as Ea,bn as Pa,bo as _a,bp as Ra,bq as Da,br as Ma,bs as xa,bt as Ta,bu as Na,bv as Oa,bw as Ba,bx as La,by as $a,bz as Fa,bA as Ua,bB as za,i as Ka,bC as ja,bD as Ha,bE as Va,bF as Wa,bG as Ga,bH as qa,bI as Za,bJ as Ya,bK as Qa,bL as Ja,bM as Xa,bN as es,bO as ts,bP as as,bQ as ss,bR as ns,bS as is,bT as rs,bU as os,bV as cs,bW as ls,bX as ds,bY as us,bZ as hs,b_ as ms,b$ as ps,c0 as fs,c1 as Ss,c2 as gs,c3 as bs,c4 as ys,c5 as Cs,c6 as vs,c7 as ws,c8 as Is,c9 as As,ca as ks,cb as Es,cc as Ps,cd as _s,ce as Rs,cf as Ds,cg as Ms,ch as xs,ci as Ts,cj as Ns,ck as Os,cl as Bs,cm as Ls,cn as $s,co as Fs,cp as Us,cq as zs,cr as Ks,cs as js,ct as Hs,cu as Vs,cv as Ws,cw as Gs,cx as qs,cy as Zs,cz as Ys,e as Qs,cA as Js,b as Xs,cB as en,cC as tn,a as an,cD as sn,D as nn,cE as rn,cF as on,cG as cn,cH as ln,cI as dn,cJ as un,cK as hn,cL as mn,cM as pn,cN as fn,cO as Sn,cP as gn,cQ as bn,cR as yn,cS as Cn,cT as vn,cU as wn,cV as In,E as An,cW as kn,cX as En,cY as Pn,cZ as _n,c_ as Rn,c$ as Dn,d0 as Mn,d1 as xn,d2 as Tn,d3 as Nn,d4 as On,d5 as Bn,d6 as Ln,d7 as $n,d8 as Fn,d9 as Un,da as zn,db as Kn,dc as jn,dd as Hn,de as Vn,df as Wn,dg as Gn,dh as qn,di as Zn,dj as Yn,dk as Qn,dl as Jn,dm as Xn,dn as ei,dp as ti,dq as ai,dr as si,M as ni,ds as ii,dt as ri,du as oi,dv as ci,dw as li,dx as di,dy as ui,dz as hi,dA as mi,dB as pi,dC as fi,dD as Si,dE as gi,dF as bi,h as yi,dG as Ci,dH as vi,dI as wi,dJ as Ii,dK as Ai,dL as ki,dM as Ei,dN as Pi,dO as _i,dP as Ri,dQ as Di,dR as Mi,dS as xi,dT as Ti,dU as Ni,dV as Oi,dW as Bi,dX as Li,dY as $i,N as Fi,dZ as Ui,d_ as zi,d$ as Ki,e0 as ji,e1 as Hi,e2 as Vi,e3 as Wi,e4 as Gi,e5 as qi,e6 as Zi,e7 as Yi,e8 as Qi,e9 as Ji,ea as Xi,eb as er,ec as tr,ed as ar,ee as sr,ef as nr,eg as ir,eh as rr,ei as or,ej as cr,ek as lr,el as dr,em as ur,en as hr,eo as mr,ep as pr,eq as fr,er as Sr,es as gr,et as br,eu as yr,ev as Cr,ew as vr,ex as wr,ey as Ir,ez as Ar,eA as kr,eB as Er,eC as Pr,eD as _r,eE as Rr,eF as Dr,eG as Mr,eH as xr,eI as Tr,eJ as Nr,eK as Or,eL as Br,eM as Lr,eN as $r,eO as Fr,eP as Ur,d as zr,eQ as Kr,eR as jr,eS as Hr,eT as Vr,eU as Wr,eV as Gr,eW as qr,eX as Zr,R as Yr,eY as Qr,eZ as Jr,e_ as Xr,e$ as eo,f0 as to,f1 as ao,f2 as so,f3 as no,f4 as io,f5 as ro,f6 as oo,f7 as co,f8 as lo,f9 as uo,fa as ho,fb as mo,fc as po,fd as fo,fe as So,ff as go,fg as bo,fh as yo,fi as Co,fj as vo,S as wo,fk as Io,fl as Ao,fm as ko,fn as Eo,fo as Po,fp as _o,fq as Ro,fr as Do,fs as Mo,ft as xo,fu as To,fv as No,fw as Oo,fx as Bo,fy as Lo,fz as $o,fA as Fo,fB as Uo,fC as zo,fD as Ko,fE as jo,fF as Ho,fG as Vo,fH as Wo,fI as Go,fJ as qo,fK as Zo,fL as Yo,fM as Qo,fN as Jo,fO as Xo,fP as ec,fQ as tc,fR as ac,fS as sc,fT as nc,k as ic,fU as rc,fV as oc,fW as cc,fX as lc,fY as dc,fZ as uc,f_ as hc,f$ as mc,g0 as pc,g1 as fc,g2 as Sc,g3 as gc,g4 as bc,g5 as yc,g6 as Cc,g7 as vc,g8 as wc,g9 as Ic,ga as Ac,gb as kc,gc as Ec,gd as Pc,ge as _c,gf as Rc,gg as Dc,gh as Mc,W as xc,gi as Tc,gj as Nc,gk as Oc,gl as Bc,gm as Lc,gn as $c,go as Fc,gp as Uc,gq as zc,gr as Kc,gs as jc,gt as Hc,gu as Vc,gv as Wc,gw as Gc,gx as qc,gy as Zc,gz as Yc,gA as Qc,gB as Jc,gC as Xc,gD as el,gE as tl,gF as al,gG as sl,gH as nl,gI as il,gJ as rl,gK as ol,gL as cl,gM as ll,gN as dl,gO as ul,gP as hl,gQ as ml,gR as pl,gS as fl,c as Sl,f as gl,gT as bl,g as yl,j as Cl,gU as vl,gV as wl,gW as Il,gX as Al,gY as kl,gZ as El,g_ as Pl,g$ as _l,h0 as Rl,h1 as Dl,h2 as Ml,h3 as xl,h4 as Tl,h5 as Nl,h6 as Ol,h7 as Bl,h8 as Ll,h9 as $l,ha as Fl,hb as Ul,m as zl,hc as Kl,hd as jl,he as Hl,hf as Vl,hg as Wl,hh as Gl,hi as ql,hj as Zl,hk as Yl,hl as Ql,hm as Jl,hn as Xl,ho as ed,hp as td,hq as ad,hr as sd,hs as nd,ht as id,hu as rd,hv as od,hw as cd,hx as ld,hy as dd,hz as ud,hA as hd,hB as md,hC as pd,hD as fd,hE as Sd,hF as gd,hG as bd,hH as yd,hI as Cd,hJ as vd,hK as wd,hL as Id,hM as Ad,hN as kd,hO as Ed,hP as Pd,hQ as _d,hR as Rd,hS as Dd,hT as Md,hU as xd,hV as Td,hW as Nd,hX as Od,hY as Bd}from"./index-BViRW9IB.js";import{E as I,A as Ld,C as $d,a as Fd,D as Ud,K as zd,M as Kd,S as jd,T as Hd,f as Vd}from"./method-access-map-BCPBTC0g.js";import{A as qe,z as Ze,B as Ye,y as Qe,C as Wd,Z as M,x as B,w as Je,v as Xe}from"./schemas-DSjJ1TGP.js";class Gd{disposers=[];disposed=!1;onError;constructor(e={}){this.onError=e.onError??((t,s)=>{console.error(`[DisposerChain] disposer #${s} threw`,t)})}add(e){if(this.disposed){try{const t=e();t&&typeof t.then=="function"&&t.catch(s=>this.onError(s,-1))}catch(t){this.onError(t,-1)}return()=>{}}return this.disposers.push(e),()=>{const t=this.disposers.indexOf(e);t>=0&&this.disposers.splice(t,1)}}get isDisposed(){return this.disposed}get size(){return this.disposers.length}async dispose(){if(this.disposed)return;this.disposed=!0;const e=this.disposers.slice().reverse();this.disposers=[];for(let t=0;t<e.length;t++){const s=e[t];try{const n=s();n&&typeof n.then=="function"&&await n}catch(n){this.onError(n,e.length-1-t)}}}}const et="hub-only";function w(a){return{placement:a.execution?.placement??et,group:a.execution?.group}}function qd(a){const e=w(a).placement;return e==="any-node"||e==="agent-only"}function Zd(a){return w(a).placement==="agent-only"}function Yd(a){return w(a).group}function Qd(a,e){return a.execution?.group??e}function Jd(a){return w(a).placement}function Xd(a,e){return a.category===e}function E(a,e,t){return{id:typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2),timestamp:new Date,source:e,category:a,data:t}}function tt(a,e){const t=e.ts??Date.now();a.emit(E("system.ready-state",{type:"capability",id:e.capName,nodeId:e.sourceNodeId},{capName:e.capName,scope:e.scope,state:e.state,generation:e.generation,sourceNodeId:e.sourceNodeId,ts:t}))}function x(a){const e=async()=>{const i=(await a.read())[a.key];if(i===void 0)return a.fallback;const r=a.schema.safeParse(i);return r.success?r.data:(a.onParseError?.(a.key,r.error),a.fallback)},t=async n=>{const i=a.schema.parse(n);await a.write({[a.key]:i})};return{get:e,set:t,update:async n=>{await t(n(await e()))}}}class at{_ctx=null;_config;_readinessGeneration=typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2,14);_registeredCapNames=[];defaults;constructor(e){this.defaults=e,this._config={...e}}get autoEmitReadiness(){return!0}get ctx(){if(!this._ctx)throw new Error(`${this.constructor.name}: ctx accessed before initialize()`);return this._ctx}get ctxIfReady(){return this._ctx}get config(){return this._config}async initialize(e){this._ctx=e,await this.resolveConfig();const t=await this.onInitialize();this.emitLifecycle(I.AddonStarted);const s=st(t),n=s&&"providers"in s&&s.providers?s.providers:[];return this._registeredCapNames=n.map(i=>i.capability.name),s}postBrokerStart(){this.autoEmitReadiness&&this._registeredCapNames.length>0&&this.emitReadinessForProviders("ready")}async onHubReachable(){}async shutdown(){this.emitLifecycle(I.AddonStopped),this.autoEmitReadiness&&this.emitReadinessForProviders("down"),await this.onShutdown();for(const e of this._subscriptions)e();this._subscriptions=[],this._ctx=null}async onShutdown(){}async onConfigChanged(){}field(e){return e}schema(e){return e}globalSettingsSchema(e){return null}deviceSettingsSchema(){return null}async getGlobalSettings(e,t){const s=this.globalSettingsSchema(t);if(!s)return{sections:[]};const n=await this._ctx?.settings?.readAddonStore()??{};return D(s,e?{...n,...e}:n)}async updateGlobalSettings(e){await this._ctx?.settings?.writeAddonStore(e),await this.resolveConfig(),await this.onConfigChanged(),this.emitLifecycle(I.AddonUpdated,{level:"global"}),this.maybeAutoRestart(e,this.globalSettingsSchema())}maybeAutoRestart(e,t){if(!t)return;const s=new Set;for(const c of t.sections)for(const o of c.fields)o.type==="separator"||o.type==="info"||o.requiresRestart&&s.add(o.key);if(s.size===0||!Object.keys(e).some(c=>s.has(c)))return;const i=this._ctx;if(!i)return;const r=i.id;setImmediate(()=>{i.api.addons?.restartAddon?.mutate({addonId:r}).then(()=>{i.logger.info("addon auto-restart triggered by restart-required setting change",{meta:{changedFields:Object.keys(e).filter(o=>s.has(o))}})}).catch(o=>{i.logger.error("addon auto-restart failed",{meta:{error:o instanceof Error?o.message:String(o)}})})})}async getDeviceSettings(e){const t=this.deviceSettingsSchema();if(!t)return{sections:[]};const s=await this._ctx?.settings?.readDeviceStore(e)??{};return D(t,s)}async updateDeviceSettings(e,t){await this._ctx?.settings?.writeDeviceStore(e,t)}_subscriptions=[];watchCapability(e,t){const s=Array.isArray(e)?e:[e],n=new Set(s);this.subscribe({category:"system.ready-state"},i=>{const r=i.data;if(typeof r.capName!="string"||!n.has(r.capName)||r.scope?.type!=="node")return;const c=r.scope.nodeId;if(typeof c!="string"||c.length===0)return;const o=r.capName;r.state==="down"?t.onDown?.(c,o):r.state==="ready"&&t.onReady?.(c,o)})}subscribe(e,t){const s=this.ctx.eventBus.subscribe(e,t);this._subscriptions.push(s)}emitLifecycle(e,t){try{const s=this._ctx;if(!s)return;s.eventBus.emit({id:`${s.id}-${Date.now()}`,timestamp:new Date,source:{type:"addon",id:s.id,nodeId:s.kernel.localNodeId??"hub"},category:e,data:{addonId:s.id,...t??{}}})}catch{}}emitReadinessForProviders(e){const t=this._ctx;if(!t||this._registeredCapNames.length===0)return;const s=t.kernel?.localNodeId??"hub",n=s.includes("/")?s.split("/")[0]:s;for(const i of this._registeredCapNames)try{tt(t.eventBus,{capName:i,scope:{type:"node",nodeId:n},state:e,generation:this._readinessGeneration,sourceNodeId:n})}catch{}}async resolveModelsDir(){return this.ctx.api.storage.resolve.query({location:"models",relativePath:""}).catch(()=>"camstack-data/models")}get capabilities(){return this.ctx.capabilities??null}async resolveConfig(){const e=await this.readAddonStoreWithRetry(),t={...this.defaults};for(const s of Object.keys(this.defaults)){const n=e[s];if(n!=null){const i=typeof this.defaults[s];typeof n===i&&(t[s]=n)}}this._config=t}state(e,t,s){return x({key:e,schema:t,fallback:s,read:()=>this.readAddonStoreWithRetry(),write:async n=>{await this._ctx?.settings?.writeAddonStore(n)},onParseError:(n,i)=>this._ctx?.logger?.warn?.(`durable-state: stored "${n}" failed validation — using fallback`,{meta:{addonId:this._ctx?.id,key:n,error:String(i)}})})}deviceState(e,t,s,n){return x({key:t,schema:s,fallback:n,read:async()=>await this._ctx?.settings?.readDeviceStore(e)??{},write:async i=>{await this._ctx?.settings?.writeDeviceStore(e,i)},onParseError:(i,r)=>this._ctx?.logger?.warn?.(`durable-state: stored device ${e} "${i}" failed validation — using fallback`,{meta:{addonId:this._ctx?.id,deviceId:e,key:i,error:String(r)}})})}async readAddonStoreWithRetry(){const e=this._ctx?.settings;if(!e)return{};const t=[150,350,600,900];let s;for(let n=0;n<=t.length;n++)try{return await e.readAddonStore()??{}}catch(i){s=i;const r=i instanceof Error?i.message:String(i);if(!(r.includes("SqliteSettingsBackend not initialized")||r.includes("provider not available")))throw i;if(n===t.length)break;await new Promise(o=>setTimeout(o,t[n]))}return this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults",{meta:{error:s instanceof Error?s.message:String(s)}}),{}}}function st(a){if(a!=null)return Array.isArray(a)?{providers:a}:a}function eu(a,e){return{id:a,getRoutes:()=>e,invoke:async t=>{const s=tu(e,t.method,t.path);if(!s)return{status:404,headers:{},redirectUrl:null,body:{error:`No route matches ${t.method} ${t.path}`}};const n={status:200,headers:{},redirectUrl:null},i=su(n),r={params:{...t.params,...s.params},query:t.query,body:t.body,headers:t.headers,...t.user?{user:t.user}:{},...t.scopedToken!==void 0?{scopedToken:t.scopedToken}:{}};return await s.route.handler(r,i),n}}}function tu(a,e,t){const s=e.toUpperCase();for(const n of a){if(n.method!==s)continue;const i=au(n.path,t);if(i!==null)return{route:n,params:i}}return null}function au(a,e){const t=a.split("/").filter(Boolean),s=e.split("/").filter(Boolean);if(t.length!==s.length)return null;const n={};for(let i=0;i<t.length;i++){const r=t[i],c=s[i];if(r.startsWith(":"))n[r.slice(1)]=c;else if(r!==c)return null}return n}function su(a){const e={status(t){return a.status=t,e},code(t){return a.status=t,e},send(t){a.body=t},redirect(t){a.redirectUrl=t,a.status===200&&(a.status=302)},header(t,s){return a.headers[t.toLowerCase()]=s,e},type(t){return a.contentType=t,e}};return e}class nt extends Error{capName;scope;waitedMs;constructor(e,t,s){super(`Timed out waiting for ${e} (${y(t)}) to become ready after ${s}ms`),this.name="ReadinessTimeoutError",this.capName=e,this.scope=t,this.waitedMs=s}}function A(a,e){return`${a}|${y(e)}`}function y(a){switch(a.type){case"global":return"global";case"node":return`node:${a.nodeId}`;case"device":return`device:${a.deviceId}`}}function _(a,e){return a.type!==e.type?!1:a.type==="global"||e.type==="global"?!0:a.type==="node"&&e.type==="node"?a.nodeId===e.nodeId:a.type==="device"&&e.type==="device"?a.deviceId===e.deviceId:!1}class nu{bus;sourceNodeId;logger;now;generation;snapshot=new Map;subscriptions=new Set;unsubscribeBus;unsubscribeAgentOffline;constructor(e){if(this.bus=e.eventBus,this.sourceNodeId=e.sourceNodeId,this.logger=e.logger,this.now=e.now??(()=>Date.now()),this.generation=e.generation??iu(),this.unsubscribeBus=this.bus.subscribe({category:"system.ready-state"},t=>this.ingest(t.data)),this.unsubscribeAgentOffline=this.bus.subscribe({category:"agent.offline"},t=>this.synthesizeDownForNode(t.data.agentId)),typeof this.bus.getRecent=="function")try{const t=this.bus.getRecent({category:"system.ready-state"});for(const s of t)this.ingest(s.data)}catch{}}close(){this.unsubscribeBus(),this.unsubscribeAgentOffline(),this.subscriptions.clear()}get(e,t){return this.snapshot.get(A(e,t))??null}getSnapshotForTransport(){return Array.from(this.snapshot.values())}hydrate(e){const t=this.now();for(const s of e){const n=A(s.capName,s.scope);if(this.snapshot.has(n))continue;const i={capName:s.capName,scope:s.scope,state:s.state,generation:s.generation,epoch:1,lastChange:t,sourceNodeId:s.sourceNodeId};this.snapshot.set(n,i),this.logger&&this.logger.debug(`readiness: ${s.capName} (${y(s.scope)}) → ${s.state} (hydrated, gen=${s.generation.slice(0,6)})`);const r={capName:s.capName,scope:s.scope,state:s.state,epoch:1,generation:s.generation,sourceNodeId:"hydrated",ts:t,durationInPrevState:0};for(const c of this.subscriptions)if(c.capName===s.capName&&_(c.scope,s.scope))try{c.handler(r)}catch(o){this.logger?.warn(`readiness hydrate handler threw for ${s.capName}: ${o.message??String(o)}`)}}}getAll(){return new Map(this.snapshot)}emitReady(e,t){this.emitTransition(e,t,"ready")}emitStarting(e,t){this.emitTransition(e,t,"starting")}emitDown(e,t){this.emitTransition(e,t,"down")}awaitReady(e,t,s={}){const n=s.timeoutMs??Number.POSITIVE_INFINITY,i=this.now();return this.get(e,t)?.state==="ready"?Promise.resolve():s.signal?.aborted?Promise.reject(s.signal.reason??new Error("aborted")):new Promise((c,o)=>{let l=!1;const u=this.onReadyState(e,t,S=>{S.state==="ready"&&(l||(l=!0,p(),c()))}),h=!Number.isFinite(n)?null:setTimeout(()=>{l||(l=!0,p(),o(new nt(e,t,this.now()-i)))},n),f=setInterval(()=>{l||this.logger?.warn(`readiness: still awaiting ${e} (${y(t)}) after ${this.now()-i}ms`)},3e4);typeof f.unref=="function"&&f.unref();const m=()=>{l||(l=!0,p(),o(s.signal?.reason??new Error("aborted")))};s.signal?.addEventListener("abort",m,{once:!0});function p(){u(),h!==null&&clearTimeout(h),clearInterval(f),s.signal?.removeEventListener("abort",m)}})}onReadyState(e,t,s){const n={capName:e,scope:t,handler:s};this.subscriptions.add(n);const i=this.get(e,t);return i!==null&&queueMicrotask(()=>{this.subscriptions.has(n)&&s({capName:e,scope:t,state:i.state,epoch:i.epoch,generation:i.generation,sourceNodeId:this.sourceNodeId,ts:i.lastChange,durationInPrevState:0})}),()=>{this.subscriptions.delete(n)}}emitTransition(e,t,s){const n=this.now();this.bus.emit(E("system.ready-state",{type:"capability",id:e,nodeId:this.sourceNodeId},{capName:e,scope:t,state:s,generation:this.generation,sourceNodeId:this.sourceNodeId,ts:n}))}ingest(e){if(typeof e?.capName!="string"||e.state!=="ready"&&e.state!=="starting"&&e.state!=="down"||typeof e.generation!="string"||e.scope?.type!=="global"&&e.scope?.type!=="node"&&e.scope?.type!=="device")return;const t=A(e.capName,e.scope),s=this.snapshot.get(t)??null,n=this.now();let i;if(s===null?i=e.state==="ready"?1:0:s.generation!==e.generation&&e.state==="ready"?i=s.epoch+1:i=s.epoch,s!==null&&s.generation===e.generation&&s.state===e.state)return;const r=s===null?0:Math.max(0,n-s.lastChange),c={capName:e.capName,scope:e.scope,state:e.state,generation:e.generation,epoch:i,lastChange:n,sourceNodeId:e.sourceNodeId};this.snapshot.set(t,c);const o={capName:e.capName,scope:e.scope,state:e.state,epoch:i,generation:e.generation,sourceNodeId:e.sourceNodeId,ts:e.ts,durationInPrevState:r};this.logger&&this.logger.debug(`readiness: ${e.capName} (${y(e.scope)}) → ${e.state} epoch=${i} gen=${e.generation.slice(0,6)} (prev ${r}ms)`);for(const l of this.subscriptions)if(l.capName===e.capName&&_(l.scope,e.scope))try{l.handler(o)}catch(u){this.logger?.warn(`readiness handler threw for ${e.capName}: ${u.message??String(u)}`)}}synthesizeDownForNode(e){const t=this.now();for(const[s,n]of this.snapshot){if(n.state==="down"||!(n.scope.type==="node"&&n.scope.nodeId===e||n.scope.type==="device"&&n.sourceNodeId===e))continue;const r=Math.max(0,t-n.lastChange),c={...n,state:"down",lastChange:t};this.snapshot.set(s,c);const o={capName:n.capName,scope:n.scope,state:"down",epoch:n.epoch,generation:n.generation,sourceNodeId:this.sourceNodeId,ts:t,durationInPrevState:r};this.logger&&this.logger.debug(`readiness: ${n.capName} (${y(n.scope)}) → down (synthesized from agent.offline ${e})`);for(const l of this.subscriptions)if(l.capName===n.capName&&_(l.scope,n.scope))try{l.handler(o)}catch(u){this.logger?.warn(`readiness handler threw during agent.offline demux for ${n.capName}: ${u.message??String(u)}`)}}}}function iu(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2,14)}function ru(a,e){for(const{capName:t,scope:s}of e)a.emitDown(t,s)}const ou="x-camstack-dataplane-secret",it={high:"High",mid:"Mid",low:"Low"};function cu(a){return it[a]??a.charAt(0).toUpperCase()+a.slice(1)}function rt(a){return(a.width??0)*(a.height??0)}function ot(a){if(a.length===0)return[];const e=a.map((s,n)=>({s,i:n,px:rt(s.metadata??{})})).sort((s,n)=>n.px-s.px),t=Array.from({length:a.length});for(let s=0;s<e.length;s++){const{s:n,i}=e[s];let r;s===0?r="high":s===e.length-1?r="low":r="mid",t[i]={...n,quality:r}}return t}function lu(a){const e=a.height??0,t=a.width??0;return e>=1080||t>=1920?"high":e>=480||t>=640?"mid":"low"}function du(a){const e=a.protocols.find(n=>n.type==="rtsp"&&n.url)??a.protocols.find(n=>n.url),t=e?.type,s=t==="rtsp"?"rtsp":t==="http"||t==="flv"?"http-mjpeg":"custom";return{id:a.id,label:a.label??a.id,protocol:s,url:e?.url,profileHint:a.quality}}function g(a){return typeof a=="string"}function uu(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function hu(a){return g(a)&&a.trim()?{url:a}:uu(a)&&g(a.url)&&a.url.trim()?{url:a.url,label:g(a.label)?a.label:void 0}:null}function mu(a){const e=g(a.snapshot_url)?a.snapshot_url:void 0;if(Array.isArray(a.streams)){const r=[];for(const c of a.streams){const o=hu(c);o&&r.push(o)}return{streams:r,snapshot_url:e}}const t=[],s=g(a.main_stream_url)?a.main_stream_url:void 0;s&&t.push({url:s,label:g(a.main_stream_name)?a.main_stream_name:void 0});const n=g(a.sub_stream_url)?a.sub_stream_url:void 0;n&&t.push({url:n,label:g(a.sub_stream_name)?a.sub_stream_name:void 0});const i=g(a.third_stream_url)?a.third_stream_url:void 0;return i&&t.push({url:i,label:g(a.third_stream_name)?a.third_stream_name:void 0}),{streams:t,snapshot_url:e}}function pu(a){if(a.length===0)return{};const e=ot(a),t={},s=e.find(c=>c.quality==="high"),n=e.find(c=>c.quality==="mid"),i=e.find(c=>c.quality==="low");s&&(t.high=s.id),n&&(t.mid=n.id),i&&(t.low=i.id);const r=s??n??i??e[0];return r&&(t.high||(t.high=r.id),t.mid||(t.mid=r.id),t.low||(t.low=r.id)),t}const fu={streaming:!0,notifications:!0,objectDetection:!1,remoteAccess:!0,agentCluster:!1,smartHome:!0,recordings:!0,backup:!0,repl:!0},Su=["face","plate"],gu=["face","plate","clip","custom"];function bu(a,e,t,s={}){if(a.length===0)return null;const n=`${t}/`,i=o=>({brokerId:o.brokerId,profileId:o.brokerId.startsWith(n)?o.brokerId.slice(n.length):o.brokerId,url:o.url,mutedUrl:o.mutedUrl,enabled:o.enabled,...o.codec!==void 0?{codec:o.codec}:{},...o.resolution!==void 0?{resolution:o.resolution}:{}});if(e!=="auto"){const o=a.find(l=>l.enabled&&l.url.length>0&&(l.profile===e||l.brokerId===`${n}${e}`));if(o)return i(o)}const r=a.filter(o=>o.enabled&&o.url.length>0);if(r.length===0)return null;const c=s.targetResolution;if(c){const o=r.filter(l=>l.resolution!==void 0);if(o.length>0){const l=yu(o,c);if(l)return i(l)}}return i(r[0])}function yu(a,e){const t=e.width*e.height;let s,n;for(const i of a){if(i.resolution===void 0)continue;const r=i.resolution.width*i.resolution.height;r>=t?(!s||r<s.pixels)&&(s={entry:i,pixels:r}):(!n||r>n.pixels)&&(n={entry:i,pixels:r})}return s?.entry??n?.entry}const Cu={cleanupIntervalMs:3600*1e3,detectionEventsDays:30,audioLevelsDays:7,snapshotsDays:14};var ct=(a=>(a.Addon="addon",a.Core="core",a.Device="device",a.Provider="provider",a.System="system",a))(ct||{});const lt="camstack/camstack-models",vu=`https://huggingface.co/${lt}/resolve/main`,wu={"features.streaming":!0,"features.notifications":!0,"features.objectDetection":!1,"features.remoteAccess":!0,"features.agentCluster":!1,"features.smartHome":!0,"features.recordings":!0,"features.backup":!0,"features.repl":!0,"retention.detectionEventsDays":30,"retention.audioLevelsDays":7,"logging.level":"info","logging.retentionDays":30,"eventBus.ringBufferSize":1e4,"storage.provider":"sqlite-storage","storage.locations":{data:"camstack-data/data",media:"camstack-data/media",recordings:"camstack-data/recordings",cache:"/tmp/camstack-cache",logs:"camstack-data/logs",models:"camstack-data/models"},providers:[],"ffmpeg.binaryPath":"ffmpeg","ffmpeg.hwAccel":"auto","ffmpeg.threadCount":0,"auth.tokenExpiry":"24h"};function L(a){return JSON.parse(a)}function dt(a){return a===null||typeof a!="object"||Array.isArray(a)?null:{...a}}function Iu(a){return Array.isArray(a)?a:[]}function Au(a,e=""){return typeof a=="string"?a:e}function ku(a,e=0){return typeof a=="number"?a:e}function Eu(a,e=!1){return typeof a=="boolean"?a:e}function Pu(a){try{return dt(L(a))}catch{return null}}function _u(a){try{const e=L(a);return Array.isArray(e)?e:null}catch{return null}}function Ru(a,e){return`https://huggingface.co/${a}/resolve/main/${e}`}function Du(a,e){if(a.length!==e.length)return 0;let t=0,s=0,n=0;for(let r=0;r<a.length;r++)t+=a[r]*e[r],s+=a[r]*a[r],n+=e[r]*e[r];const i=Math.sqrt(s)*Math.sqrt(n);return i===0?0:t/i}class Mu{constructor(e,t){this.elementId=e,this.getBackend=typeof t=="function"?t:()=>t}cache={};listeners=new Set;loaded=!1;getBackend;async ensureLoaded(){if(this.loaded)return;const e=this.getBackend();if(!e)throw new Error(`ElementConfigStore(${this.elementId}): settings backend not available`);const t=await e.query({collection:"config",filter:{where:{id:this.elementId},limit:1}});t.length>0&&(this.cache=t[0].data??{}),this.loaded=!0}getAll(){return{...this.cache}}get(e){const t=e.split(".");let s=this.cache;for(const n of t){if(s===null||typeof s!="object"||Array.isArray(s))return;s=Reflect.get(s,n)}return s}async set(e,t){await this.ensureLoaded(),xu(this.cache,e,t),await this.persist(),this.notifyListeners()}async setAll(e){await this.ensureLoaded(),this.cache={...e},await this.persist(),this.notifyListeners()}onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}async load(){await this.ensureLoaded()}async loadDefaults(e){await this.ensureLoaded(),Object.keys(this.cache).length===0&&(this.cache={...e},await this.persist())}async persist(){const e=this.getBackend();if(!e)throw new Error(`ElementConfigStore(${this.elementId}): settings backend not available — cannot persist config`);await e.set({collection:"config",key:this.elementId,value:this.cache})}notifyListeners(){const e=this.getAll();for(const t of this.listeners)try{t(e)}catch{}}}function xu(a,e,t){const s=e.split(".");let n=a;for(let i=0;i<s.length-1;i++){const r=s[i],c=n[r];if(c===null||typeof c!="object"||Array.isArray(c)){const o={};n[r]=o,n=o}else n=c}n[s[s.length-1]]=t}const $={cpu:"onnx",coreml:"onnx",cuda:"onnx",tensorrt:"onnx","onnx-py":"onnx",pytorch:"pt",openvino:"openvino"},ut={onnx:"onnx",coreml:"coreml",openvino:"openvino",tflite:"tflite",pytorch:"pt"},ht={coreml:"coreml_inference.py",pytorch:"pytorch_inference.py",openvino:"openvino_inference.py"};function mt(a,e){return a==="node"?"onnx":{coreml:"coreml",openvino:"openvino",pytorch:"pytorch","onnx-py":"onnx",cpu:"onnx"}[e]??e}function Tu(a,e){return a==="node"?$[e]??"onnx":{coreml:"coreml",openvino:"openvino",pytorch:"pt","onnx-py":"onnx",cpu:"onnx"}[e]??"onnx"}function Nu(a,e){return!a||a==="auto"?"auto":mt(a,e??"cpu")}function Ou(a){return $[a]??"onnx"}function Bu(a){return ut[a]}function Lu(a){return ht[a]}function $u(a){return a==="coreml"||a==="pytorch"||a==="openvino"}function pt(a){return a instanceof Error?a.message:typeof a=="string"?a:String(a)}async function Fu(a,e){const t=performance.now();try{return{output:e!==void 0?await Uu(a(),e):await a(),durationMs:F(performance.now()-t),ok:!0}}catch(s){return{output:void 0,durationMs:F(performance.now()-t),ok:!1,error:pt(s)}}}function F(a){return Math.round(a*100)/100}function Uu(a,e){return new Promise((t,s)=>{const n=setTimeout(()=>s(new Error(`Inference timeout after ${e}ms`)),e);a.then(i=>{clearTimeout(n),t(i)}).catch(i=>{clearTimeout(n),s(i)})})}const zu=[{id:"person",name:"Person"},{id:"bicycle",name:"Bicycle"},{id:"car",name:"Car"},{id:"motorcycle",name:"Motorcycle"},{id:"airplane",name:"Airplane"},{id:"bus",name:"Bus"},{id:"train",name:"Train"},{id:"truck",name:"Truck"},{id:"boat",name:"Boat"},{id:"traffic light",name:"Traffic Light"},{id:"fire hydrant",name:"Fire Hydrant"},{id:"stop sign",name:"Stop Sign"},{id:"parking meter",name:"Parking Meter"},{id:"bench",name:"Bench"},{id:"bird",name:"Bird"},{id:"cat",name:"Cat"},{id:"dog",name:"Dog"},{id:"horse",name:"Horse"},{id:"sheep",name:"Sheep"},{id:"cow",name:"Cow"},{id:"elephant",name:"Elephant"},{id:"bear",name:"Bear"},{id:"zebra",name:"Zebra"},{id:"giraffe",name:"Giraffe"},{id:"backpack",name:"Backpack"},{id:"umbrella",name:"Umbrella"},{id:"handbag",name:"Handbag"},{id:"tie",name:"Tie"},{id:"suitcase",name:"Suitcase"},{id:"frisbee",name:"Frisbee"},{id:"skis",name:"Skis"},{id:"snowboard",name:"Snowboard"},{id:"sports ball",name:"Sports Ball"},{id:"kite",name:"Kite"},{id:"baseball bat",name:"Baseball Bat"},{id:"baseball glove",name:"Baseball Glove"},{id:"skateboard",name:"Skateboard"},{id:"surfboard",name:"Surfboard"},{id:"tennis racket",name:"Tennis Racket"},{id:"bottle",name:"Bottle"},{id:"wine glass",name:"Wine Glass"},{id:"cup",name:"Cup"},{id:"fork",name:"Fork"},{id:"knife",name:"Knife"},{id:"spoon",name:"Spoon"},{id:"bowl",name:"Bowl"},{id:"banana",name:"Banana"},{id:"apple",name:"Apple"},{id:"sandwich",name:"Sandwich"},{id:"orange",name:"Orange"},{id:"broccoli",name:"Broccoli"},{id:"carrot",name:"Carrot"},{id:"hot dog",name:"Hot Dog"},{id:"pizza",name:"Pizza"},{id:"donut",name:"Donut"},{id:"cake",name:"Cake"},{id:"chair",name:"Chair"},{id:"couch",name:"Couch"},{id:"potted plant",name:"Potted Plant"},{id:"bed",name:"Bed"},{id:"dining table",name:"Dining Table"},{id:"toilet",name:"Toilet"},{id:"tv",name:"TV"},{id:"laptop",name:"Laptop"},{id:"mouse",name:"Mouse"},{id:"remote",name:"Remote"},{id:"keyboard",name:"Keyboard"},{id:"cell phone",name:"Cell Phone"},{id:"microwave",name:"Microwave"},{id:"oven",name:"Oven"},{id:"toaster",name:"Toaster"},{id:"sink",name:"Sink"},{id:"refrigerator",name:"Refrigerator"},{id:"book",name:"Book"},{id:"clock",name:"Clock"},{id:"vase",name:"Vase"},{id:"scissors",name:"Scissors"},{id:"teddy bear",name:"Teddy Bear"},{id:"hair drier",name:"Hair Drier"},{id:"toothbrush",name:"Toothbrush"}],Ku=[{id:"person",name:"Person"},{id:"vehicle",name:"Vehicle"},{id:"animal",name:"Animal"}],ju={mapping:{person:"person",bicycle:"vehicle",car:"vehicle",motorcycle:"vehicle",airplane:"vehicle",bus:"vehicle",train:"vehicle",truck:"vehicle",boat:"vehicle",bird:"animal",cat:"animal",dog:"animal",horse:"animal",sheep:"animal",cow:"animal",elephant:"animal",bear:"animal",zebra:"animal",giraffe:"animal"},preserveOriginal:!1},Hu={camera:{type:"camera",label:"Camera",icon:"camera"}};class C{schema;data;persistFn;constructor(e,t,s){this.schema=e,this.data=t,this.persistFn=s}static fromSchema(e,t,s={},n){const i=e.safeParse(s);if(i.success)return new C(e,i.data,t);const r=new Set;for(const u of i.error.issues){const d=u.path[0];typeof d=="string"&&r.add(d)}const c={...s};for(const u of r)delete c[u];const o=e.safeParse(c);if(n?.({droppedKeys:[...r],issues:i.error.issues}),o.success)return t(o.data).catch(()=>{}),new C(e,o.data,t);const l=e.parse({});return new C(e,l,t)}get values(){return this.data}get(e){return this.data[e]}async set(e,t){const s=this.schema.parse({...this.data,[e]:t});this.data=s,await this.persistFn(this.data)}async setAll(e){const t=this.schema.parse({...this.data,...e});this.data=t,await this.persistFn(this.data)}async deleteKey(e){const{[e]:t,...s}=this.data,n=this.schema.parse(s);this.data=n,await this.persistFn(this.data)}entries(){const e=this.schema.shape;return Object.entries(e).map(([t,s])=>({key:t,schema:s,value:this.data[t],description:s.description}))}}class P{writer;pendingWrites=new Set;slices;schemas=new Map;listeners=new Set;capListeners=new Map;constructor(e,t){this.writer=t,this.slices=new Map;for(const[s,n]of Object.entries(e))n&&typeof n=="object"&&!Array.isArray(n)&&this.slices.set(s,{...n})}static fromInitial(e,t){return new P(e,t)}installCapSchema(e,t){const s=this.schemas.get(e);if(s){if(s!==t)throw new Error(`[DeviceRuntimeState] capability "${e}" registered a different runtime-state schema; each cap must declare ONE shape across every provider`);return}this.schemas.set(e,t);const n=this.slices.get(e);if(n){const i=t.safeParse(n);i.success?this.slices.set(e,i.data):this.slices.delete(e)}}getCapState(e){const t=this.slices.get(e);if(t)return Object.freeze({...t})}getCapField(e,t){return this.slices.get(e)?.[t]}setCapState(e,t){this.applyCapWrite(e,t,!1)}patchCapState(e,t){this.applyCapWrite(e,t,!0)}applyCapWrite(e,t,s){const n=this.schemas.get(e);if(!n)throw new Error(`[DeviceRuntimeState] no schema registered for cap "${e}" — did the device register it via ctx.registerNativeCap before writing?`);const i=this.slices.get(e)??{},r=s?{...i,...t}:{...t},c=n.parse(r);if(Vu(i,c))return;this.slices.set(e,c),this.fireListeners([e]);const o=this.writer(e,{...c}).catch(()=>{});this.pendingWrites.add(o),o.finally(()=>{this.pendingWrites.delete(o)})}fireListeners(e){const t=this.snapshot();for(const s of this.listeners)try{s(e,t)}catch{}for(const s of e){const n=this.capListeners.get(s);if(!n)continue;const i=this.getCapState(s);for(const r of n)try{r(i)}catch{}}}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}subscribeCap(e,t){let s=this.capListeners.get(e);s||(s=new Set,this.capListeners.set(e,s));const n=i=>{t(i)};return s.add(n),()=>{const i=this.capListeners.get(e);i&&(i.delete(n),i.size===0&&this.capListeners.delete(e))}}snapshot(){const e={};for(const[t,s]of this.slices)e[t]=Object.freeze({...s});return Object.freeze(e)}async flush(){if(this.pendingWrites.size===0)return;const e=[...this.pendingWrites];await Promise.allSettled(e)}}function Vu(a,e){const t=Object.keys(a),s=Object.keys(e);if(t.length!==s.length)return!1;for(const n of t)if(a[n]!==e[n])return!1;return!0}const R="lastFetchedAt";function Wu(a){const{runtimeState:e,cap:t,ownDeviceId:s,refresh:n,staleMs:i,empty:r}=a,c=async()=>{const u=e.getCapState(t.name),d=typeof u?.[R]=="number"?u[R]:0;(!u||Date.now()-d>i)&&await n()},o=()=>{const u=e.getCapState(t.name);if(!u)return r();const{[R]:d,...h}=u;return h};return{ensureFresh:c,getStatus:async({deviceId:u})=>{if(u!==s)throw new Error(`${t.name}: deviceId mismatch, expected ${s}, got ${u}`);return await c(),o()}}}const Gu={airQualitySensor:Ke,alarmPanel:ze,ambientLightSensor:Ue,audioMetrics:Fe,automationControl:$e,battery:Le,binary:Be,brightness:Oe,cameraStreams:Ne,carbonMonoxide:Te,climateControl:xe,color:Me,connectivity:De,consumables:Re,contact:_e,control:Pe,cover:Ee,deviceDiscovery:ke,deviceStatus:O,doorbell:Ae,enumSensor:Ie,eventEmitter:we,fanControl:ve,featureProbe:N,flood:Ce,gas:ye,humidifier:be,humiditySensor:ge,image:Se,lawnMowerControl:fe,lockControl:pe,mediaPlayer:me,motion:he,motionTrigger:ue,motionZones:de,nativeObjectDetection:le,notifier:ce,numericSensor:oe,powerMeter:re,presence:ie,pressureSensor:ne,privacyMask:se,ptzAutotrack:ae,scriptRunner:te,smoke:ee,streamParams:X,switch:J,tamper:Q,temperatureSensor:Y,update:Z,vacuumControl:q,valve:G,vibration:W,waterHeater:V,weather:H,zoneAnalytics:j,zoneRules:K,zones:z};class qu{id;stableId;type;name;parentDeviceId;role;get online(){return this.runtimeState.getCapState("device-status")?.online??!1}set online(e){this.markOnline(e)}get state(){if(!this._stateProxyCache){const e={},t={get:(s,n)=>{const i=n;if(i in e)return e[i];const r=Gu[i];if(!r)return;const c=this.sliceProxy(r);return e[i]=c,c}};this._stateProxyCache=new Proxy(e,t)}return this._stateProxyCache}_stateProxyCache;config;runtimeState;ctx;location;disabled;_sourceInfoCache=null;constructor(e,t,s){if(this.ctx=e,this.id=e.id,this.stableId=e.stableId,this.type=s.type,!e.deviceMeta)throw new Error(`BaseDevice constructor: ctx.deviceMeta is required (id=${e.id} stableId=${e.stableId})`);this.name=e.deviceMeta.name,this.location=e.deviceMeta.location,this.disabled=e.deviceMeta.disabled,this.role=s.role,this.parentDeviceId=e.parentDeviceId;const n=e.persistedConfig??{};this.config=C.fromSchema(t,u=>e.persistConfig(u),n,({droppedKeys:u,issues:d})=>{e.logger.warn("Device config recovery: dropping invalid persisted fields",{tags:{deviceId:e.id,stableId:e.stableId},meta:{droppedKeys:[...u],firstIssue:d[0]?.message??null}})});let i=null;const r=async(u,d)=>{i||(i=e.fetchDevice(e.id)),await(await i).deviceState.setCapSlice({capName:u,slice:d})},c=e.initialRuntimeState??{};this.runtimeState=P.fromInitial(c,r),e.bindRuntimeState?.(this.runtimeState),e.registerNativeCap?.(O,{});const o={online:!0,lastChangedAt:Date.now()};this.runtimeState.setCapState("device-status",o),e.registerNativeCap?.(N,{});const l={flags:{},deviceType:null,model:null,channelCount:null,lastProbedAt:0,lastFetchedAt:0};this.runtimeState.setCapState("feature-probe",l)}deviceActions=new Map;registerDeviceAction(e,t,s){this.deviceActions.set(e,{spec:t,handler:s})}async runDeviceAction(e,t){const s=this.deviceActions.get(e);if(!s)throw new Error(`unknown device action "${e}" on device ${this.id}`);const n=s.spec.input.parse(t);return s.handler(n)}async removeDevice(){}markOnline(e){if(this.online===e)return;const t={online:e,lastChangedAt:Date.now()};this.runtimeState.setCapState("device-status",t)}get sourceInfo(){if(this._sourceInfoCache)return this._sourceInfoCache;const t=je(this.ctx.deviceMeta.metadata)??He({stableId:this.stableId,addonId:this.ctx.deviceMeta.addonId});return this._sourceInfoCache=Object.freeze({...t}),this._sourceInfoCache}get sourceId(){return this.sourceInfo.id}async updateSourceInfo(e){const t=Ve(this.sourceInfo,e);this._sourceInfoCache=Object.freeze({...t});const n=this.ctx.api?.deviceManager?.setMetadata;if(n)try{await n.mutate({deviceId:this.id,patch:{[We]:t}})}catch{}this.ctx.eventBus.emit(E("device.source-info-changed",{type:"device",id:this.stableId},{deviceId:this.id,sourceInfo:t}))}async refreshFeatures(){const t=this.ctx.api?.deviceManager?.registerDevice;if(t)try{await t.mutate({addonId:this.ctx.deviceMeta.addonId,stableId:this.stableId,id:this.id,type:this.type,name:this.name,parentDeviceId:this.parentDeviceId,features:[...this.features],config:{}})}catch{}}getCapSlice(e){return this.runtimeState.getCapState(e.name)??null}setCapSlice(e,t){this.runtimeState.setCapState(e.name,t)}sliceProxy(e){const t={},s={get:(n,i)=>this.runtimeState.getCapState(e.name)?.[i],set:(n,i,r)=>(this.runtimeState.patchCapState(e.name,{[i]:r}),!0),has:(n,i)=>{const r=this.runtimeState.getCapState(e.name);return r?i in r:!1},ownKeys:()=>{const n=this.runtimeState.getCapState(e.name);return n?Object.keys(n):[]},getOwnPropertyDescriptor:(n,i)=>{const r=this.runtimeState.getCapState(e.name);if(!(!r||!(i in r)))return{configurable:!0,enumerable:!0,value:r[i]}}};return new Proxy(t,s)}getSettingsUISchema(){return{sections:[]}}async applySettingsPatch(e){await this.config.setAll(e)}async onProbe(){}async onActivate(){}async reprobe(){this._kernelReprobe?await this._kernelReprobe():await this.onProbe()}_kernelReprobe;getAccessoryChildren(){return[]}getProbeFlags(){return this.runtimeState.getCapState("feature-probe")?.flags??{}}hasProbed(){return(this.runtimeState.getCapState("feature-probe")?.lastProbedAt??0)>0}}function ft(a,e){const t={};for(const s of a.config.entries())t[s.key]=s.value;return{id:a.id,stableId:a.stableId,addonId:e,type:String(a.type),name:a.name,parentDeviceId:a.parentDeviceId,online:a.online,features:[...a.features],config:t,sourceInfo:a.sourceInfo}}class Zu extends at{async onInitialize(){return this.ctx.logger.info(`${this.providerName} Provider initialized`),[{capability:Ge,provider:this}]}async onShutdown(){const e=await this.ctx.kernel.devices?.getAll()??[];for(const t of e)try{await this.ctx.kernel.devices?.decommission(t.id)}catch(s){this.ctx.logger.warn(`${this.providerName}: decommission failed`,{tags:{deviceId:t.id,stableId:t.stableId},meta:{error:s instanceof Error?s.message:String(s)}})}this.ctx.logger.info(`${this.providerName} Provider shut down`,{meta:{decommissionedCount:e.length}})}async start(){}async stop(){}async getStatus(){return{connected:!0,deviceCount:(await this.ctx.kernel.devices?.getAll()??[]).length}}async getDevices(){return(await this.ctx.kernel.devices?.getAll()??[]).map(t=>({id:t.stableId,name:t.name,type:String(t.type)}))}async supportsDiscovery(){return!1}async discoverDevices(){return[]}async adoptDiscoveredDevice(e){throw new Error(`${this.providerName} provider does not support discovery-based adoption`)}async supportsManualCreation(){return!0}async getChildCreationSchema(e){return this.onGetCreationSchema(e.type)}async createDevice(e){const t=await this.onCreateDevice(e.type,e.config),s=this.deviceClasses[t.meta.type];if(!s)throw new Error(`${this.providerName} provider: no device class registered for type "${t.meta.type}" — add it to the deviceClasses map`);const n=this.generateStableId(t.meta.type,t.config),i=await this.ctx.kernel.devices.create(n,s,t.config,null,t.meta);if(t.onAfterCreate)try{await t.onAfterCreate(i)}catch(r){this.ctx.logger.warn("createDevice: onAfterCreate hook threw — device is already registered",{tags:{deviceId:i.id,stableId:n},meta:{error:r instanceof Error?r.message:String(r)}})}return this.toSummary(i)}generateStableId(e,t){return`${this.addonId}-${Date.now()}`}async testCreationField(e){return{status:"ok",labels:["probe not implemented"]}}async restoreDevices(e){await this.onRestoreDevices(e),e.length>0&&this.ctx.logger.info(`Restored ${e.length} ${this.providerName} device(s)`)}async onRestoreDevices(e){const t=new Set;for(const n of e){if(n.parentDeviceId!==null)continue;const i=this.deviceClasses[n.type];if(!i){this.ctx.logger.warn("No device class registered for restored type — skipping",{tags:{stableId:n.stableId},meta:{type:n.type}});continue}try{await this.ctx.kernel.devices.create(n.stableId,i,{}),t.add(n.id)}catch(r){this.ctx.logger.warn("Failed to restore device",{tags:{stableId:n.stableId},meta:{type:n.type,error:r instanceof Error?r.message:String(r)}})}}const s=e.filter(n=>n.parentDeviceId!==null);for(const n of s){const i=this.deviceClasses[n.type];if(i&&n.parentDeviceId!==null&&t.has(n.parentDeviceId))try{await this.ctx.kernel.devices.create(n.stableId,i,{},n.parentDeviceId),t.add(n.id)}catch(r){this.ctx.logger.warn("Failed to restore hub-adopted child",{tags:{stableId:n.stableId,parentDeviceId:n.parentDeviceId},meta:{type:n.type,error:r instanceof Error?r.message:String(r)}})}}}toSummary(e){return ft(e,this.addonId)}}function v(a){return a.def}function Yu(a,e="Configuration",t="main"){const s=a.map(n=>Qu(n.key,n.schema,n.description));return{sections:[{id:t,title:e,fields:s}]}}function Qu(a,e,t){const s=k(e),n=ah(e),i=t??St(a),r={key:a,label:i,description:t,default:n};return s instanceof qe?Ju(a,r):s instanceof Ze?Xu(s,r):s instanceof Ye?{...r,type:"boolean"}:s instanceof Qe?th(s,r):s instanceof Wd||s instanceof M?{...r,type:"textarea",rows:6,isJson:!0}:{...r,type:"text"}}function Ju(a,e){const t=a.toLowerCase();return t.includes("password")||t.includes("secret")||t.includes("token")||t.includes("apikey")||t.includes("api_key")?{...e,type:"password",showToggle:!0}:{...e,type:"text"}}function Xu(a,e){const t=a,s=t.minValue,n=t.maxValue,i=s!=null&&isFinite(s)?s:void 0,r=n!=null&&isFinite(n)?n:void 0,c=eh(a);return{...e,type:"number",...i!==void 0?{min:i}:{},...r!==void 0?{max:r}:{},...c!==void 0?{step:c}:{}}}function eh(a){const t=v(a).checks??[];for(const s of t)if(s._zod?.def?.check==="multiple_of"&&s._zod.def.value!==void 0)return s._zod.def.value}function th(a,e){const t=a.options.map(n=>String(n));return{...e,type:"select",options:t.map(n=>({label:St(n),value:n}))}}function k(a){return a instanceof B||a instanceof Je||a instanceof Xe?k(v(a).innerType):a}function ah(a){if(a instanceof B)return v(a).defaultValue}function St(a){return a.replace(/([A-Z])/g," $1").replace(/[_-]/g," ").replace(/^\w/,e=>e.toUpperCase()).trim()}function gt(a){return a!==null&&typeof a=="object"&&!Array.isArray(a)}function sh(a,e){const t=e.split(".");let s=a;for(const n of t){if(!gt(s))return;s=s[n]}return s}function bt(a,e,t){const s=e.indexOf(".");if(s===-1)return{...a,[e]:t};const n=e.slice(0,s),i=e.slice(s+1),r=a[n],c=gt(r)?r:{};return{...a,[n]:bt(c,i,t)}}function nh(a,e){if(!e||e.kind==="identity")return a;if(e.kind==="enum-map"){const t=String(a);return Object.prototype.hasOwnProperty.call(e.mapping,t)?e.mapping[t]:e.fallback??null}if(e.kind==="linear"){if(typeof a!="number"||Number.isNaN(a))return null;let t=a*e.scale+e.offset;if(e.clamp){const s=e.clamp[0],n=e.clamp[1];t=Math.min(n,Math.max(s,t))}return t}return a}function T(a){let e=a;for(;e instanceof Xe||e instanceof Je||e instanceof B;)e=e.unwrap();return e}function ih(a){const e=T(a);return e instanceof Qe?{kind:"enum",enumValues:e.options}:e instanceof Ze?{kind:"number"}:e instanceof qe?{kind:"string"}:e instanceof Ye?{kind:"boolean"}:null}function yt(a,e=""){const t=T(a);if(!(t instanceof M))return[];const s=[],n=t.shape;for(const[i,r]of Object.entries(n)){const c=e?`${e}.${i}`:i,o=T(r);if(o instanceof M){s.push(...yt(o,c));continue}const l=ih(r);l&&s.push({path:c,kind:l.kind,...l.enumValues?{enumValues:l.enumValues}:{}})}return s}function rh(a,e,t,s,n){if(t.length===0||e.length===0)return{passed:a,excluded:[]};const i=t.filter(h=>h.enabled!==!1),r=i.filter(h=>h.mode==="include"),c=i.filter(h=>h.mode==="exclude"),o=r.length>0,l=new Map(e.map(h=>[h.id,h])),u=[],d=[];for(const h of a){const b=s(h),f=n?.(h),m=r.some(S=>U(S,b,f,l)),p=c.some(S=>U(S,b,f,l));o?m&&!p?u.push(h):d.push(h):p?d.push(h):u.push(h)}return{passed:u,excluded:d}}function U(a,e,t,s){if(a.classFilter&&a.classFilter.length>0&&t!==void 0&&!a.classFilter.includes(t))return!1;for(const n of a.zoneIds){const i=s.get(n);if(i&&oh(e,i.polygon))return!0}return!1}function oh(a,e){if(e.length<3)return!1;let t=!1;const{x:s,y:n}=a;for(let i=0,r=e.length-1;i<e.length;r=i++){const c=e[i],o=e[r];c.y>n!=o.y>n&&s<(o.x-c.x)*(n-c.y)/(o.y-c.y||Number.EPSILON)+c.x&&(t=!t)}return t}function ch(a){return a}function lh(a,e,t){return{input:a,output:e,kind:t?.kind??"query",auth:t?.auth??"protected",scope:t?.scope??{kind:"system"}}}function dh(a,e,t){return{input:a,output:e,kind:t?.kind??"query",auth:t?.auth??"protected",scope:{kind:"device",...t?.deviceTypes?{deviceTypes:t.deviceTypes}:{}}}}const Ct=[{profile:"main",prefix:"streamMain",label:"Main stream"},{profile:"sub",prefix:"streamSub",label:"Sub stream"},{profile:"ext",prefix:"streamExt",label:"Third stream"}];function uh(a,e,t){const s=[];if(e.resolutions.length>0){const n=e.resolutions.map(r=>({value:`${String(r.width)}x${String(r.height)}`,label:`${String(r.width)}×${String(r.height)}`})),i=t?`${String(t.width)}x${String(t.height)}`:void 0;i&&!n.some(r=>r.value===i)&&n.unshift({value:i,label:`${i.replace("x","×")} (current)`}),s.push({type:"select",key:`${a.prefix}_resolution`,label:"Resolution",options:n,default:i??n[0]?.value??""})}if(e.codecs.length>0&&s.push({type:"select",key:`${a.prefix}_codec`,label:"Codec",options:e.codecs.map(n=>({value:n,label:n==="h264"?"H.264":"H.265"})),default:t?.codec??e.codecs[0]}),e.framerates.length>0){const n=e.framerates.map(r=>({value:String(r),label:`${String(r)} fps`})),i=t?.framerate;i!==void 0&&!e.framerates.includes(i)&&n.unshift({value:String(i),label:`${String(i)} fps (current)`}),s.push({type:"select",key:`${a.prefix}_framerate`,label:"Frame rate",options:n,default:i!==void 0?String(i):n[0]?.value??""})}if(e.bitrates.length>0){const n=e.bitrates.map(r=>({value:String(r),label:`${String(r)} kbps`})),i=t?.bitrate;i!==void 0&&!e.bitrates.includes(i)&&n.unshift({value:String(i),label:`${String(i)} kbps (current)`}),s.push({type:"select",key:`${a.prefix}_bitrate`,label:"Bitrate",options:n,default:i!==void 0?String(i):n[0]?.value??""})}else{const n=e.bitrateRange;s.push({type:"number",key:`${a.prefix}_bitrate`,label:"Bitrate",unit:"kbps",...n?{min:n[0],max:n[1]}:{},default:t?.bitrate??n?.[0]??0})}if(e.supportsBitrateMode&&s.push({type:"select",key:`${a.prefix}_bitrateMode`,label:"Bitrate mode",options:[{value:"vbr",label:"VBR (variable)"},{value:"cbr",label:"CBR (constant)"}],default:t?.bitrateMode??"vbr"}),e.supportsEncoderProfile&&s.push({type:"select",key:`${a.prefix}_encoderProfile`,label:"Encoder profile",options:[{value:"baseline",label:"Baseline"},{value:"main",label:"Main"},{value:"high",label:"High"}],default:t?.encoderProfile??"main"}),e.supportsGop){const n=e.gop;if(n){const i=[];for(let c=n.min;c<=n.max;c+=n.step)i.push({value:String(c),label:`${String(c)} s`});const r=t?.gop;r!==void 0&&!i.some(c=>c.value===String(r))&&i.unshift({value:String(r),label:`${String(r)} s (current)`}),s.push({type:"select",key:`${a.prefix}_gop`,label:"I-frame interval (GOP)",options:i,default:r!==void 0?String(r):i[0]?.value??""})}else s.push({type:"number",key:`${a.prefix}_gop`,label:"I-frame interval (GOP)",unit:"s",min:1,default:t?.gop??1})}return s.length===0?null:{id:`stream-${a.profile}`,tab:"streaming",title:a.label,description:"Encoder parameters pushed to the camera. Option lists are read live from the camera — fields the firmware doesn't expose are hidden.",columns:2,fields:s}}function hh(a,e){const t=[];for(const s of Ct){const n=a[s.profile];if(!n)continue;const i=uh(s,n,e?.[s.profile]);i&&t.push(i)}return t.length===0?null:{sections:t}}function mh(a,e){const t={};let s=!1;const n=`${e}_resolution`;if(n in a&&typeof a[n]=="string"){const[d,h]=a[n].split("x").map(Number);Number.isFinite(d)&&Number.isFinite(h)&&(t.width=d,t.height=h,s=!0)}const i=`${e}_codec`;i in a&&(a[i]==="h264"||a[i]==="h265")&&(t.codec=a[i],s=!0);const r=`${e}_framerate`;if(r in a){const d=Number(a[r]);Number.isFinite(d)&&(t.framerate=d,s=!0)}const c=`${e}_bitrate`;if(c in a){const d=Number(a[c]);Number.isFinite(d)&&(t.bitrate=d,s=!0)}const o=`${e}_bitrateMode`;o in a&&(a[o]==="vbr"||a[o]==="cbr")&&(t.bitrateMode=a[o],s=!0);const l=`${e}_encoderProfile`;l in a&&(a[l]==="high"||a[l]==="main"||a[l]==="baseline")&&(t.encoderProfile=a[l],s=!0);const u=`${e}_gop`;if(u in a){const d=Number(a[u]);Number.isFinite(d)&&(t.gop=d,s=!0)}return s?t:null}const ph=["accessories","air-quality-sensor","alarm-panel","ambient-light-sensor","automation-control","battery","binary","brightness","broker","camera-credentials","carbon-monoxide","climate-control","color","connectivity","consumables","contact","control","cover","device-adoption","device-discovery","device-export","device-status","doorbell","enum-sensor","event-emitter","fan-control","feature-probe","flood","gas","humidifier","humidity-sensor","image","intercom","lawn-mower-control","lock-control","media-player","motion","motion-trigger","motion-zones","mqtt-broker","native-object-detection","notifier","numeric-sensor","osd","power-meter","presence","pressure-sensor","privacy-mask","ptz","ptz-autotrack","recording","script-runner","smoke","snapshot","stream-params","switch","tamper","temperature-sensor","update","vacuum-control","valve","vibration","water-heater","weather"],fh=[{id:"camera-viewer",label:"Camera viewer",description:"Read-only over every device — live streams, recordings, motion events, battery state. Combine with `allowedDevices` to restrict to specific cameras.",rows:[{type:"category",target:"device",access:["view"]}]},{id:"camera-operator",label:"Camera operator",description:"Everything `camera-viewer` does plus PTZ control, intercom, snapshots and recording start/stop. Cannot delete devices or recordings.",rows:[{type:"category",target:"device",access:["view","create"]}]},{id:"cli-deployer",label:"CLI deployer",description:"Push addons to the hub and tail their logs. Used by the `camstack` CLI on dev machines. No delete access — a stolen token cannot uninstall.",rows:[{type:"capability",target:"addons",access:["view","create"]}]},{id:"event-listener",label:"Event listener",description:"Subscribe to motion / audio events. Used by webhook bridges and Home Assistant integrations.",rows:[{type:"capability",target:"events",access:["view"]},{type:"capability",target:"motion-detection",access:["view"]},{type:"capability",target:"audio-analysis",access:["view"]}]}],vt=Object.freeze({broker:"broker","device-export":"device-export","mesh-network":"mesh","mqtt-broker":"broker","network-access":"ingress","smtp-provider":"email"}),Sh=["broker","device-export","mesh-network","mqtt-broker","network-access","smtp-provider"];function gh(a){const e=[];for(const[t,s]of Object.entries(vt))s===a&&e.push(t);return e}function bh(a,e){const t=a.length,s=e.length;if(t===0)return s;if(s===0)return t;const n=Array.from({length:s+1},(r,c)=>c),i=Array.from({length:s+1},()=>0);for(let r=1;r<=t;r++){i[0]=r;let c=n[0]??0;for(let o=1;o<=s;o++){const l=n[o]??0,u=i[o-1]??0,d=a.charCodeAt(r-1)===e.charCodeAt(o-1)?0:1;i[o]=Math.min(l+1,u+1,c+d),c=l}for(let o=0;o<=s;o++)n[o]=i[o]??0}return n[s]??0}function wt(a,e){const t=a.trim().toLowerCase(),s=e.trim().toLowerCase();return t===s?1:t.length===0||s.length===0?0:1-bh(t,s)/Math.max(t.length,s.length)}function yh(a,e,t=.8){let s=null,n=0;for(const i of e){const r=wt(a,i);r>=t&&r>n&&(s=i,n=r)}return s}const Ch=[/^user$/i,/^usr$/i,/^username$/i,/^password$/i,/^pwd$/i,/^pass$/i,/^passwd$/i,/^secret$/i,/^token$/i,/^auth$/i,/^auth[_-]?token$/i,/^bearer$/i,/^api[_-]?key$/i,/^access[_-]?token$/i,/^refresh[_-]?token$/i];function vh(a){return Ch.some(e=>e.test(a))}function wh(a){try{const e=new URL(a);let t=!1;(e.username||e.password)&&(e.username="",e.password="",t=!0);for(const s of[...e.searchParams.keys()])vh(s)&&(e.searchParams.set(s,"***"),t=!0);return t?e.toString():a}catch{return a}}class Ih{constructor(e){this.capacity=e,this.items=Array.from({length:e})}items;head=0;tail=0;count=0;get size(){return this.count}push(e){this.items[this.tail]=e,this.tail=(this.tail+1)%this.capacity,this.count<this.capacity?this.count++:this.head=(this.head+1)%this.capacity}drain(e){const t=[],s=Math.min(e,this.count);for(let n=0;n<s;n++)t.push(this.items[this.head]),this.items[this.head]=void 0,this.head=(this.head+1)%this.capacity;return this.count-=s,t}}function Ah(a,e,t){const s=e*t;if(s<=0||a.length===0)return new Array(Math.max(0,s)).fill(!1);const n=new Array(s).fill(!1);for(let i=0;i<t;i++)for(let r=0;r<e;r++){const c=(r+.5)/e,o=(i+.5)/t;for(const l of a)if(c>=l.x&&c<=l.x+l.w&&o>=l.y&&o<=l.y+l.h){n[i*e+r]=!0;break}}return n}function kh(a,e,t,s){if(e<=0||t<=0||s<=0)return[];const n=e*t,i=new Array(n).fill(!1),r=Math.min(a.length,n);for(let d=0;d<r;d++)i[d]=a[d]===!0;const c=[],o=[];for(let d=0;d<=t;d++){const h=[];if(d<t){let m=-1;for(let p=0;p<=e;p++){const S=p<e&&i[d*e+p]===!0;S&&m===-1?m=p:!S&&m!==-1&&(h.push({colStart:m,colEnd:p-1}),m=-1)}}const b=new Set,f=[];for(const m of o){const p=h.findIndex(S=>S.colStart===m.colStart&&S.colEnd===m.colEnd);p>=0?(f.push(m),b.add(p)):c.push({...m,rowEnd:d-1})}for(let m=0;m<h.length;m++)if(!b.has(m)){const p=h[m];f.push({colStart:p.colStart,colEnd:p.colEnd,rowStart:d})}o.length=0;for(const m of f)o.push(m)}if(c.length===0)return[];const l=c.slice().sort((d,h)=>{const b=(d.colEnd-d.colStart+1)*(d.rowEnd-d.rowStart+1);return(h.colEnd-h.colStart+1)*(h.rowEnd-h.rowStart+1)-b});return(s>0?l.slice(0,s):l).map(d=>({x:d.colStart/e,y:d.rowStart/t,w:(d.colEnd-d.colStart+1)/e,h:(d.rowEnd-d.rowStart+1)/t}))}function Eh(a){return new Promise(e=>setTimeout(e,Math.max(0,a)))}function Ph(a,e){return e.aborted?Promise.resolve():new Promise(t=>{const s=setTimeout(()=>{e.removeEventListener("abort",n),t()},Math.max(0,a)),n=()=>{clearTimeout(s),e.removeEventListener("abort",n),t()};e.addEventListener("abort",n,{once:!0})})}function _h(a,e,t){const s={};for(const n of Object.keys(t))s[n]=i=>a.addons.custom.mutate({addonId:e,action:n,input:i});return s}const xh=Object.freeze(Object.defineProperty({__proto__:null,ACCESSORY_LABEL:It,ALL_CAPABILITY_DEFINITIONS:Ld,APPLE_SA_TO_MACRO:At,AUDIO_BACKEND_CHOICES:kt,AUDIO_MACRO_LABELS:Et,AccessoriesStatusSchema:Pt,AccessoryKind:_t,AddBrokerInputSchema:Rt,AddonAutoUpdateSchema:Dt,AddonListItemSchema:Mt,AddonPageDeclarationSchema:xt,AddonPageInfoSchema:Tt,AdoptionAdoptInputSchema:Nt,AdoptionAdoptResultSchema:Ot,AdoptionFilterSchema:Bt,AdoptionGetCandidateInputSchema:Lt,AdoptionListCandidatesInputSchema:$t,AdoptionListCandidatesOutputSchema:Ft,AdoptionReleaseInputSchema:Ut,AdoptionStatusSchema:zt,AgentLoadSummarySchema:Kt,AirQualitySensorStatusSchema:jt,AlarmArmModeSchema:Ht,AlarmPanelStatusSchema:Vt,AlarmStateSchema:Wt,AlertSchema:Gt,AlertSeveritySchema:qt,AlertSourceSchema:Zt,AlertStatusSchema:Yt,AmbientLightSensorStatusSchema:Qt,ApiKeyRecordSchema:Jt,ApiKeySummarySchema:Xt,ArchiveEntrySchema:ea,ArchiveManifestSchema:ta,AudioAnalysisResultSchema:aa,AudioAnalysisSettingsSchema:sa,AudioChunkInputSchema:na,AudioClassSummarySchema:ia,AudioClassificationLabelSchema:ra,AudioClassificationResultSchema:oa,AudioCodecInfoSchema:ca,AudioDecodeSessionConfigSchema:la,AudioEncodeSchema:da,AudioEncodeSessionConfigSchema:ua,AudioEncodedChunkSchema:ha,AudioEventSchema:ma,AudioLevelSchema:pa,AudioMetricsHistoryPointSchema:fa,AudioMetricsHistorySchema:Sa,AudioMetricsSnapshotSchema:ga,AudioPcmChunkSchema:ba,AuthResultSchema:ya,AutoUpdateSettingsSchema:Ca,AutomationControlStatusSchema:va,AvailableIntegrationTypeSchema:wa,BACKEND_TO_FORMAT:$,BATTERY_DEVICE_PROFILE:Ia,BackupDestinationInfoSchema:Aa,BackupEntrySchema:ka,BaseAddon:at,BaseDevice:qu,BaseDeviceProvider:Zu,BatteryStatusSchema:Ea,BinaryStatusSchema:Pa,BoundingBoxSchema:_a,BrightnessStatusSchema:Ra,BrokerAddInputSchema:Da,BrokerAudioClientSchema:Ma,BrokerClientsSchema:xa,BrokerConnectionDetailsSchema:Ta,BrokerConsumerAttributionSchema:Na,BrokerConsumerKindSchema:Oa,BrokerDecodedClientSchema:Ba,BrokerEncodedClientSchema:La,BrokerGetStateInputSchema:$a,BrokerInfoSchema:Fa,BrokerProviderInfoSchema:Ua,BrokerPublishInputSchema:za,BrokerRegistryStatusSchema:Ka,BrokerRtspClientSchema:ja,BrokerStatsSchema:Ha,BrokerStatusEnum:Va,BrokerStatusSchema:Wa,BrokerSubscribeInputSchema:Ga,BrokerSubscribeResultSchema:qa,BrokerTestConnectionResultSchema:Za,BrokerUnsubscribeInputSchema:Ya,CAM_PROFILE_ORDER:Qa,CAPABILITY_NAMES:$d,CAPABILITY_ROUTER_KEYS:Fd,CAP_NAMES_WITH_STATUS:ph,CAP_PROVIDER_KIND_MAP:vt,COCO_80_LABELS:zu,COCO_TO_MACRO:ju,CamProfileSchema:Ja,CamStreamDescriptorSchema:Xa,CamStreamKindSchema:es,CamStreamResolutionSchema:ts,CameraCredentialsSchema:as,CameraCredentialsStatusSchema:ss,CameraMetricsSchema:ns,CameraMetricsWithDeviceIdSchema:is,CameraStreamSchema:rs,CandidateQueryFilterSchema:os,CapScopeSchema:cs,CapabilityBindingsSchema:ls,CarbonMonoxideStatusSchema:ds,ChargingStatus:us,ClientNetworkStatsSchema:hs,ClimateControlStatusSchema:ms,ClusterAddonNodeDeploymentSchema:ps,ClusterAddonStatusEntrySchema:fs,CollectionColumnSchema:Ss,CollectionIndexSchema:gs,ColorStatusSchema:bs,ConfigEntrySchema:ys,ConfigSectionWithValuesSchema:Cs,ConfigTabDeclarationSchema:vs,ConnectivityStatusSchema:ws,ConsumableItemSchema:Is,ConsumablesStatusSchema:As,ContactStatusSchema:ks,ControlKindSchema:Es,ControlStatusSchema:Ps,CoverStateSchema:_s,CoverStatusSchema:Rs,CreateApiKeyInputSchema:Ds,CreateApiKeyResultSchema:Ms,CreateIntegrationInputSchema:xs,CreateScopedTokenInputSchema:Ts,CreateScopedTokenResultSchema:Ns,CreateUserInputSchema:Os,CustomActionInputSchema:Bs,DATAPLANE_SECRET_HEADER:ou,DEFAULT_ADDON_PLACEMENT:et,DEFAULT_AUDIO_ANALYZER_CONFIG:Ls,DEFAULT_DECODER_HWACCEL_CONFIG:$s,DEFAULT_FEATURES:fu,DEFAULT_RETENTION:Cu,DEVICE_CAP_NAMES:Ud,DEVICE_PROFILES:Fs,DEVICE_SETTINGS_CONTRIBUTION_METHODS:Us,DEVICE_STATUS_METHOD:zs,DEVICE_TYPE_INFO:Hu,DecodedAudioChunkSchema:Ks,DecodedFrameSchema:js,DecoderAssignmentSchema:Hs,DecoderSessionConfigSchema:Vs,DecoderStatsSchema:Ws,DeleteIntegrationResultSchema:Gs,DetectorOutputSchema:qs,DeviceConfig:C,DeviceDiscoveryStatusSchema:Zs,DeviceExportExposeInputSchema:Ys,DeviceExportStatusSchema:Qs,DeviceExportUnexposeInputSchema:Js,DeviceFeature:Xs,DeviceInfoSchema:en,DeviceNetworkStatsSchema:tn,DeviceRole:an,DeviceRuntimeState:P,DeviceStatusSchema:sn,DeviceType:nn,DiscoveredChildDeviceSchema:rn,DiscoveredChildStatusSchema:on,DiscoveredDeviceSchema:cn,DisposerChain:Gd,DoorbellPressEventSchema:ln,DoorbellStatusSchema:dn,ElementConfigStore:Mu,EmbeddingInfoSchema:un,EmbeddingResultSchema:hn,EncodeProfileSchema:mn,EncodedPacketSchema:pn,EnrichedWidgetMetadataSchema:fn,EnumSensorDateTimeFormatSchema:Sn,EnumSensorStatusSchema:gn,EventCategory:I,EventEmitterStatusSchema:bn,EventFireSchema:yn,EventItemSchema:Cn,EventKindSchema:vn,EventSourceType:ct,ExportSetupFieldSchema:wn,ExportSetupSchema:In,ExposedDeviceSchema:An,ExposedResourceSchema:kn,FanControlStatusSchema:En,FanDirectionSchema:Pn,FeatureManifestSchema:_n,FeatureProbeStatusSchema:Rn,FloodStatusSchema:Dn,FrameHandleFormatSchema:Mn,FrameHandleSchema:xn,FrameInputSchema:Tn,GasStatusSchema:Nn,GetStreamWithCodecInputSchema:On,GlobalMetricsSchema:Bn,HF_BASE_URL:vu,HF_REPO:lt,HWACCEL_OPTIONS:Ln,HealthStatusSchema:$n,HistoryPointSchema:Fn,HistoryResolutionEnum:Un,HumidifierStatusSchema:zn,HumiditySensorStatusSchema:Kn,HvacModeSchema:jn,ImageStatusSchema:Hn,InstalledPackageSchema:Vn,IntegrationLiteSchema:Wn,IntegrationWithStateSchema:Gn,IntercomAbilitySchema:qn,IntercomStatusSchema:Zn,KNOWN_CAP_NAMES:zd,LawnMowerActivitySchema:Yn,LawnMowerControlStatusSchema:Qn,LocationStatSchema:Jn,LockControlStatusSchema:Xn,LockStateSchema:ei,LogEntrySchema:ti,LogLevelSchema:ai,LogStreamEntrySchema:si,MACRO_LABELS:Ku,METHOD_ACCESS_MAP:Kd,MODEL_FORMATS:ni,MaskGridDimsSchema:ii,MaskGridShapeSchema:ri,MaskLineShapeSchema:oi,MaskPointSchema:ci,MaskPolygonShapeSchema:li,MaskPolygonVerticesSchema:di,MaskRectShapeSchema:ui,MaskShapeKindSchema:hi,MaskShapeSchema:mi,MediaFileSchema:pi,MediaPlayerRepeatSchema:fi,MediaPlayerStateSchema:Si,MediaPlayerStatusSchema:gi,MeshPeerSchema:bi,MeshStatusSchema:yi,MethodAccessSchema:Ci,MotionAnalysisResultSchema:vi,MotionEventSchema:wi,MotionOnMotionChangedDataSchema:Ii,MotionRegionSchema:Ai,MotionSourceEnum:ki,MotionSourcesSchema:Ei,MotionStatusSchema:Pi,MotionTriggerRuntimeStateSchema:_i,MotionTriggerStatusSchema:Ri,MotionZoneOptionsSchema:Di,MotionZonePatchSchema:Mi,MotionZoneRegionSchema:xi,MotionZoneStatusSchema:Ti,MqttBrokerStatusSchema:Ni,NativeDetectionSchema:Oi,NativeObjectClassEnum:Bi,NativeObjectDetectionRuntimeStateSchema:Li,NativeObjectDetectionStatusSchema:$i,NetworkAccessStatusSchema:Fi,NetworkAddressSchema:Ui,NetworkEndpointSchema:zi,NotificationHistoryEntrySchema:Ki,NotificationRuleSchema:ji,NotificationSchema:Hi,NotifierStatusSchema:Vi,NumericSensorStatusSchema:Wi,OauthIntegrationDescriptorSchema:Gi,ObjectEventSchema:qi,OrchestratorMetricsSchema:Zi,OsdOverlayKindEnum:Yi,OsdOverlayPatchSchema:Qi,OsdOverlaySchema:Ji,OsdPositionEnum:Xi,OsdStatusSchema:er,PIPELINE_FLOW_CAPABILITY_NAMES:tr,PIPELINE_OWNER_CAPABILITY_NAMES:ar,PROVIDER_KIND_CAP_NAMES:Sh,PYTHON_SCRIPT:ht,PackageUpdateSchema:sr,PackageVersionInfoSchema:nr,PasskeySummarySchema:ir,PcmSampleFormatSchema:rr,PerScopeBreakdownSchema:or,PickStreamPreferencesSchema:cr,PickStreamRequirementsSchema:lr,PickedCamStreamSchema:dr,PipelineAssignmentSchema:ur,PipelineDefaultStepSchema:hr,PipelineEngineChoiceSchema:mr,PipelineRunResultBridge:pr,PipelineStepInputSchema:fr,PlaceholderReasonSchema:Sr,PolygonPointSchema:gr,PowerMeterStatusSchema:br,PresenceStatusSchema:yr,PressureSensorStatusSchema:Cr,PrivacyMaskOptionsSchema:vr,PrivacyMaskPatchSchema:wr,PrivacyMaskRegionSchema:Ir,PrivacyMaskShapeSchema:Ar,PrivacyMaskStatusSchema:kr,ProfileRtspEntrySchema:Er,ProfileSlotSchema:Pr,ProfileSlotStatusSchema:_r,ProviderStatusSchema:Rr,PtzAutotrackRuntimeStateSchema:Dr,PtzAutotrackSettingsSchema:Mr,PtzAutotrackStatusSchema:xr,PtzAutotrackTargetOptionSchema:Tr,PtzMoveCommandSchema:Nr,PtzPositionSchema:Or,PtzPresetSchema:Br,PtzStatusSchema:Lr,QueryFilterSchema:$r,RECOGNITION_TYPES:gu,RUNTIME_DEFAULTS:wu,RUNTIME_TO_FORMAT:ut,RawStateResultSchema:Fr,ReadinessRegistry:nu,ReadinessTimeoutError:nt,RecordingAvailabilitySchema:Ur,RecordingConfigSchema:zr,RecordingDeviceUsageSchema:Kr,RecordingLocationUsageSchema:jr,RecordingManifestSchema:Hr,RecordingModeSchema:Vr,RecordingRangeSchema:Wr,RecordingRetentionSchema:Gr,RecordingRuleSchema:qr,RecordingScheduleSchema:Zr,RecordingStatusSchema:Yr,RecordingStorageUsageSchema:Qr,RecordingWeekdaySchema:Jr,RegisteredStreamSchema:Xr,ReportMotionInputSchema:eo,RingBuffer:Ih,RtpSourceSchema:to,RtspRestreamEntrySchema:ao,RunnerCameraConfigSchema:so,RunnerCameraDeviceUIFields:no,RunnerLocalLoadSchema:io,RunnerLocalMetricsSchema:ro,SCOPE_PRESETS:fh,SOURCE_INFO_METADATA_KEY:We,STREAM_PROFILE_META:Ct,STREAM_QUALITY_LABELS:it,SUB_DETECTION_TYPES:Su,SYSTEM_CAP_NAMES:jd,ScopedTokenSchema:oo,ScopedTokenSummarySchema:co,ScriptRunnerStatusSchema:lo,SearchResultSchema:uo,SendEmailInputSchema:ho,SendEmailResultSchema:mo,SettingsPatchSchema:po,SettingsRecordSchema:fo,SettingsSchemaWithValuesSchema:So,SettingsUpdateResultSchema:go,ShmRingStatsSchema:bo,SmokeStatusSchema:yo,SmtpStatusSchema:Co,SnapshotImageSchema:vo,SourceInfoSchema:wo,SpatialDetectionSchema:Io,SsoBridgeClaimsSchema:Ao,StartEmbeddedInputSchema:ko,StorageAbortUploadInputSchema:Eo,StorageBeginDownloadInputSchema:Po,StorageBeginDownloadResultSchema:_o,StorageBeginUploadInputSchema:Ro,StorageBeginUploadResultSchema:Do,StorageEndDownloadInputSchema:Mo,StorageFinalizeUploadInputSchema:xo,StorageLocationDeclarationSchema:To,StorageLocationRefSchema:No,StorageLocationSchema:Oo,StorageLocationTypeSchema:Bo,StorageProviderInfoSchema:Lo,StorageReadChunkInputSchema:$o,StorageTestLocationResultSchema:Fo,StorageWriteChunkInputSchema:Uo,StreamCodecSchema:zo,StreamFormatSchema:Ko,StreamInfoSchema:jo,StreamNetworkStatsSchema:Ho,StreamParamsOptionsSchema:Vo,StreamParamsStatusSchema:Wo,StreamProfileConfigSchema:Go,StreamProfileOptionsSchema:qo,StreamProfilePatchSchema:Zo,StreamProfileSchema:Yo,StreamSourceEntrySchema:Qo,StreamSourceSchema:Jo,SubscribeAudioChunksInputSchema:Xo,SubscribeAudioChunksResultSchema:ec,SubscribeFramesInputSchema:tc,SubscribeFramesResultSchema:ac,SwitchStatusSchema:sc,SystemMetricsSchema:nc,SystemMirror:ic,TIMEZONES:Hd,TamperStatusSchema:rc,TankStatusSchema:oc,TemperatureSensorStatusSchema:cc,TestConnectionResultSchema:lc,ToastSchema:dc,TokenScopeSchema:uc,TopologyNodeSchema:hc,TopologyProcessSchema:mc,TopologyServiceSchema:pc,TrackSchema:fc,TrackStateSchema:Sc,TrackedDetectionSchema:gc,TurnServerSchema:bc,UnifiedBrokerInfoSchema:yc,UpdateIntegrationInputSchema:Cc,UpdateStatusSchema:vc,UpdateUserInputSchema:wc,UserRecordSchema:Ic,UserSummarySchema:Ac,VacuumControlStatusSchema:kc,VacuumStateSchema:Ec,ValveStateSchema:Pc,ValveStatusSchema:_c,VibrationStatusSchema:Rc,VideoEncodeSchema:Dc,WELL_KNOWN_TABS:Mc,WELL_KNOWN_TAB_MAP:xc,WaterHeaterStatusSchema:Tc,WeatherStatusSchema:Nc,WebrtcStreamChoiceSchema:Oc,WebrtcStreamTargetSchema:Bc,WidgetHostEnum:Lc,WidgetMetadataSchema:$c,WidgetRemoteSchema:Fc,WidgetSizeEnum:Uc,YAMNET_TO_MACRO:zc,ZoneKindEnum:Kc,ZoneRuleModeEnum:jc,ZoneRuleSchema:Hc,ZoneRuleStageEnum:Vc,ZoneRulesArraySchema:Wc,ZoneSchema:Gc,ZoneScopeBreakdownSchema:qc,accessoriesCapability:Zc,accessoryStableId:Yc,addonPagesCapability:Qc,addonPagesSourceCapability:Jc,addonRoutesCapability:Xc,addonSettingsCapability:el,addonWidgetsCapability:tl,addonWidgetsSourceCapability:al,addonsCapability:sl,adminUiCapability:nl,advancedNotifierCapability:il,airQualitySensorCapability:Ke,alarmPanelCapability:ze,alertsCapability:rl,ambientLightSensorCapability:Ue,applyTransform:nh,asBoolean:Eu,asJsonArray:Iu,asJsonObject:dt,asNumber:ku,asString:Au,audioAnalysisCapability:ol,audioAnalyzerCapability:cl,audioCodecCapability:ll,audioMetricsCapability:Fe,authProviderCapability:dl,autoAssignProfiles:pu,automationControlCapability:$e,backupCapability:ul,batteryCapability:Le,bestLocationMatch:yh,binaryCapability:Be,bindAddonActions:_h,brightnessCapability:Oe,brokerCapability:hl,buildAddonRouteProvider:eu,buildStreamParamsConfigSchema:hh,buttonCapability:ml,cameraCredentialsCapability:pl,cameraPipelineConfigCapability:fl,cameraStreamsCapability:Ne,carbonMonoxideCapability:Te,cellsToRects:kh,classifyStream:lu,classifyStreams:ot,climateControlCapability:xe,colorCapability:Me,connectivityCapability:De,consumablesCapability:Re,contactCapability:_e,controlCapability:Pe,cosineSimilarity:Du,coverCapability:Ee,createDeviceProxy:Sl,createDurableState:x,createEvent:E,createLazyTrpcSource:gl,createMirrorSource:bl,createRuntimeStateBridge:Wu,createSliceHandle:yl,createSystemProxy:Cl,customAction:lh,decoderCapability:vl,defineCustomActions:ch,detectionPipelineCapability:wl,deviceAdoptionCapability:Il,deviceCustomAction:dh,deviceDiscoveryCapability:ke,deviceExportCapability:Al,deviceManagerCapability:kl,deviceMatchesProfile:El,deviceOpsCapability:Pl,deviceProviderCapability:Ge,deviceStateCapability:_l,deviceStatusCapability:O,doorbellCapability:Ae,embeddingEncoderCapability:Rl,emitDownForOwnedCaps:ru,emitReadiness:tt,encodeProfileFromStreamShape:Dl,enumSensorCapability:Ie,enumerateSchemaFields:yt,errMsg:pt,evaluateZoneRules:rh,event:Ml,eventEmitterCapability:we,eventsCapability:xl,expandCapMethods:Tl,extractSourceInfoFromMetadata:je,fanControlCapability:ve,featureProbeCapability:N,findTimezone:Vd,floodCapability:Ce,formatForBackend:Ou,formatForRuntime:Bu,gasCapability:ye,getAudioMacroClassIds:Nl,getByPath:sh,getCapsByProviderKind:gh,hfModelUrl:Ru,humidifierCapability:be,humiditySensorCapability:ge,hydrateSchema:D,imageCapability:Se,integrationsCapability:Ol,intercomCapability:Bl,isAgentOnlyPlacement:Zd,isDeployableToAgent:qd,isDeviceConfigCap:Ll,isEvent:Xd,lawnMowerControlCapability:fe,localNetworkCapability:$l,locationSimilarity:wt,lockControlCapability:pe,logDestinationCapability:Fl,makeProfileBrokerId:Ul,makeSourceBrokerId:zl,mapAudioLabelToMacro:Kl,maskUrlCredentials:wh,mediaPlayerCapability:me,mergeSourceInfo:Ve,meshNetworkCapability:jl,method:Hl,metricsProviderCapability:Vl,motionCapability:he,motionDetectionCapability:Wl,motionTriggerCapability:ue,motionZonesCapability:de,mqttBrokerCapability:Gl,nativeObjectDetectionCapability:le,networkAccessCapability:ql,networkQualityCapability:Zl,nodesCapability:Yl,normalizeAddonInitResult:st,normalizeUnit:Ql,notificationOutputCapability:Jl,notifierCapability:ce,numericSensorCapability:oe,oauthIntegrationCapability:Xl,osdCapability:ed,parseCameraStreamConfig:mu,parseJsonArray:_u,parseJsonObject:Pu,parseJsonUnknown:L,parseProfileBrokerId:td,parseStreamParamsFormPatch:mh,pickPreferredRtspEntry:bu,pipelineAnalyticsCapability:ad,pipelineExecutorCapability:sd,pipelineOrchestratorCapability:nd,pipelineRunnerCapability:id,platformProbeCapability:rd,powerMeterCapability:re,presenceCapability:ie,pressureSensorCapability:ne,privacyMaskCapability:se,ptzAutotrackCapability:ae,ptzCapability:od,pythonScriptForBackend:Lu,readinessKey:A,rebootCapability:cd,recordingCapability:ld,rectsToCells:Ah,requiresPython:$u,resolveAddonExecution:w,resolveAddonGroup:Yd,resolveAddonPlacement:Jd,resolveAddonRuntime:Nu,resolveDetectionRuntime:mt,resolveDeviceProfile:dd,resolveModelFormat:Tu,resolveRunnerId:Qd,restreamerCapability:ud,runInferenceStep:Fu,scopeKey:y,scriptRunnerCapability:te,selectAssignedProfileSlots:hd,setByPath:bt,settingsStoreCapability:md,sleep:Eh,sleepCancellable:Ph,smokeCapability:ee,smtpProviderCapability:pd,snapshotCapability:fd,snapshotProviderCapability:Sd,ssoBridgeCapability:gd,storageCapability:bd,storageEvictableCapability:yd,storageProviderCapability:Cd,streamBrokerCapability:vd,streamCatalogCapability:wd,streamParamsCapability:X,streamPixels:rt,streamQualityLabel:cu,streamingEngineCapability:Id,switchCapability:J,synthesizeSourceInfo:He,systemCapability:Ad,tamperCapability:Q,temperatureSensorCapability:Y,toDeviceSummary:ft,toStreamSourceEntry:du,toastCapability:kd,turnProviderCapability:Ed,updateCapability:Z,userManagementCapability:Pd,userPasskeysCapability:_d,vacuumControlCapability:q,valveCapability:G,vibrationCapability:W,waterHeaterCapability:V,weatherCapability:H,webrtcCapability:Rd,webrtcClientHintsSchema:Dd,webrtcSessionCapability:Md,wiringAddonHealthSchema:xd,wiringHealthSnapshotSchema:Td,wiringNodeHealthSchema:Nd,wiringProbeKindSchema:Od,wiringProbeResultSchema:Bd,zodEntriesToConfigUI:Yu,zoneAnalyticsCapability:j,zoneRulesCapability:K,zonesCapability:z},Symbol.toStringTag,{value:"Module"}));export{vt as C,sh as g,xh as s};
@@ -1 +0,0 @@
1
- import{gy as d,gA as t,gB as o,gC as n,gD as i,gE as r,gF as p,gG as l,gH as m,gI as u,an as v,am as S,gJ as y,al as g,gK as I,gL as N,gM as k,ak as w,gN as b,aj as h,gO as f,ai as A,ah as P,ag as C,gP as M,gQ as D,gR as x,gS as T,af as z,ae as O,ad as R,ac as B,ab as U,aa as L,a9 as E,a8 as H,a7 as W,gU as q,gV as F,gW as _,a6 as j,gX as Z,gY as K,g_ as Q,as as G,g$ as V,a5 as Y,a4 as J,h0 as X,a3 as $,a2 as ee,h3 as ae,a1 as ce,a0 as se,$ as de,_ as te,Z as oe,Y as ne,X as ie,h6 as re,h7 as pe,V as le,h9 as me,U as ue,ha as ve,T as Se,hd as ye,hf as ge,Q as Ie,hg as Ne,P as ke,O as we,hh as be,L as he,hi as fe,hj as Ae,hk as Pe,hm as Ce,K as Me,J as De,hn as xe,ho as Te,hq as ze,hr as Oe,hs as Re,ht as Be,hu as Ue,I as Le,H as Ee,G as He,F as We,hv as qe,C as Fe,hw as _e,hx as je,hz as Ze,B as Ke,hB as Qe,A as Ge,hC as Ve,hD as Ye,hE as Je,hF as Xe,hG as $e,hH as ea,hI as aa,hJ as ca,hK as sa,y as da,hL as ta,x as oa,hM as na,s as ia,t as ra,hN as pa,hO as la,u as ma,hP as ua,hQ as va,r as Sa,q as ya,v as ga,p as Ia,w as Na,hR as ka,hT as wa,o as ba,n as ha,z as fa}from"./index-BViRW9IB.js";var Aa=(e=>(e.SystemBoot="system.boot",e.SystemAddonsReady="system.addons-ready",e.SystemRestarting="system.restarting",e.SystemRestartCompleted="system.restart-completed",e.SystemReadyState="system.ready-state",e.AddonStarted="addon.started",e.AddonStopped="addon.stopped",e.AddonRestarted="addon.restarted",e.AddonUpdated="addon.updated",e.AddonInstalled="addon.installed",e.AddonUninstalled="addon.uninstalled",e.AddonCrashed="addon.crashed",e.AddonError="addon.error",e.AddonPageReady="addon.page-ready",e.AddonWidgetReady="addon.widget-ready",e.AddonLoadFailed="addon.load-failed",e.AddonLoadRecovered="addon.load-recovered",e.AddonRetryScheduled="addon.retry-scheduled",e.AddonRetryAttempting="addon.retry-attempting",e.DeviceRegistered="device.registered",e.DeviceUnregistered="device.unregistered",e.DeviceEnabled="device.enabled",e.DeviceDisabled="device.disabled",e.DeviceSettingsUpdated="device.settings-updated",e.DeviceBindingsChanged="device.bindings-changed",e.DeviceMetaChanged="device.meta-changed",e.DeviceSourceInfoChanged="device.source-info-changed",e.DeviceStreamsRegistered="device.streams-registered",e.DeviceProvisioned="device.provisioned",e.DeviceReady="device.ready",e.IntegrationEnabled="integration.enabled",e.IntegrationDisabled="integration.disabled",e.IntegrationDeleted="integration.deleted",e.BrokerStatusChanged="broker.status-changed",e.BrokerMessage="broker.message",e.ProviderStarted="provider.started",e.ProviderStopped="provider.stopped",e.ProcessCrashed="process.crashed",e.ProcessRestartScheduled="process.restart_scheduled",e.ProcessRestarted="process.restarted",e.RecordingStarted="recording.started",e.RecordingStopped="recording.stopped",e.RecordingError="recording.error",e.RecordingHealthDegraded="recording.health.degraded",e.RecordingStorageCritical="recording.storage.critical",e.RecordingSegmentWritten="recording.segment.written",e.RecordingPolicyFallback="recording.policy.fallback",e.RecordingRetentionCompleted="recording.retention.completed",e.DetectionEvent="detection.event",e.SessionTrackNew="session.track.new",e.SessionTrackExpired="session.track.expired",e.BenchmarkProgress="benchmark.progress",e.PlatformProbePhase="platform-probe.phase",e.PipelineProgress="pipeline.progress",e.PipelineTrace="pipeline.trace",e.PipelineInferenceResult="pipeline.inference-result",e.PipelineCameraAssigned="pipeline.camera-assigned",e.PipelineCameraUnassigned="pipeline.camera-unassigned",e.PipelineCameraUpdated="pipeline.camera-updated",e.PipelineRunnerLoadSnapshot="pipeline.runner-load-snapshot",e.PipelineCameraMetricsSnapshot="pipeline.camera-metrics-snapshot",e.StreamBrokerMetricsSnapshot="stream-broker.metrics-snapshot",e.StreamBrokerOnCamStreamDemand="stream-broker.onCamStreamDemand",e.StreamBrokerOnCamStreamIdle="stream-broker.onCamStreamIdle",e.StreamBrokerOnRequestStreamSourceRefresh="stream-broker.onRequestStreamSourceRefresh",e.StreamParamsChanged="stream-params.changed",e.DeviceStateChanged="device.state-changed",e.BatteryOnStatusChanged="battery.onStatusChanged",e.BatteryOnWakeStarted="battery.onWakeStarted",e.DoorbellOnPressed="doorbell.onPressed",e.EventEmitted="event-emitter.event",e.PipelineEngineMetricsSnapshot="pipeline.engine-metrics-snapshot",e.ClusterTopologySnapshot="cluster.topology-snapshot",e.MetricsNodeResourcesSnapshot="metrics.node-resources-snapshot",e.MetricsNodeProcessesSnapshot="metrics.node-processes-snapshot",e.CapabilityBindingChanged="capability.binding-changed",e.ModelDownloadProgress="model.download.progress",e.AgentRegistered="agent.registered",e.AgentUnregistered="agent.unregistered",e.AgentOnline="agent.online",e.AgentOffline="agent.offline",e.WorkerOnline="worker.online",e.WorkerOffline="worker.offline",e.AgentTaskDispatched="agent.task.dispatched",e.AgentTaskAssigned="agent.task.assigned",e.AgentTrpcConnected="agent.trpc.connected",e.AgentWsConnected="agent.ws.connected",e.AgentWsDisconnected="agent.ws.disconnected",e.AgentBackupActivated="agent.backup.activated",e.OrchestrationSettingsUpdated="orchestration.settings-updated",e.PipelineAgentHwaccelChanged="pipeline.agent-hwaccel-changed",e.MotionAnalysis="detection.motion-analysis",e.MotionZonesRaw="detection.motion-zones-raw",e.MotionOnMotionChanged="motion.on-motion-changed",e.DetectionResult="detection.result",e.DetectionRaw="detection.raw",e.DetectionCameraNative="detection.camera-native",e.PipelineAudioInferenceResult="pipeline.audio-inference-result",e.DetectionPhaseTransition="detection.phase-transition",e.ProviderMotion="provider.motion",e.ProviderDetection="provider.detection",e.EnrichmentEmbeddingStored="enrichment.embedding.stored",e.EnrichmentSceneStateChanged="enrichment.scene.state-changed",e.EnrichmentActivitySummary="enrichment.activity.summary",e.PipelineAnalyticsTrackStarted="pipeline-analytics.track-started",e.PipelineAnalyticsTrackEnded="pipeline-analytics.track-ended",e.PipelineAnalyticsDetectionEvent="pipeline-analytics.detection-event",e.PipelineAnalyticsFrameTracked="pipeline-analytics.frame-tracked",e.FrigateLiveEvent="frigate.live-event",e.CameraStreamsProfileSlotsChanged="camera-streams.onProfileSlotsChanged",e.StreamOnline="stream.online",e.StreamOffline="stream.offline",e.NetworkTunnelStarted="network.tunnel.started",e.NetworkTunnelStopped="network.tunnel.stopped",e.LocalNetworkChanged="network.local.changed",e.MeshNetworkChanged="network.mesh.changed",e.BackupCompleted="backup.completed",e.BackupRestored="backup.restored",e.NotificationDispatched="notification.dispatched",e.NotificationFailed="notification.failed",e.DeviceUpdated="device.updated",e.DeviceOnline="device.online",e.DeviceOffline="device.offline",e.DeviceAwake="device.awake",e.DeviceSleeping="device.sleeping",e.RetentionCleanup="retention.cleanup",e.AddonsBulkUpdateProgress="addons.bulk-update-progress",e))(Aa||{});const a={offsetHours:1,startMonth:3,startWeekIndex:5,startWeekday:"Sunday",startHour:2,endMonth:10,endWeekIndex:5,endWeekday:"Sunday",endHour:3},c={offsetHours:1,startMonth:3,startWeekIndex:2,startWeekday:"Sunday",startHour:2,endMonth:11,endWeekIndex:1,endWeekday:"Sunday",endHour:2},Pa={offsetHours:1,startMonth:10,startWeekIndex:1,startWeekday:"Sunday",startHour:2,endMonth:4,endWeekIndex:1,endWeekday:"Sunday",endHour:3},Ca=[{id:"UTC",label:"UTC (UTC+0)",region:"Universal",stdOffsetMinutes:0,dst:null},{id:"Europe/London",label:"Europe/London (UTC+0 / BST)",region:"Europe",stdOffsetMinutes:0,dst:a},{id:"Europe/Rome",label:"Europe/Rome (UTC+1 / CEST)",region:"Europe",stdOffsetMinutes:60,dst:a},{id:"Europe/Paris",label:"Europe/Paris (UTC+1 / CEST)",region:"Europe",stdOffsetMinutes:60,dst:a},{id:"Europe/Berlin",label:"Europe/Berlin (UTC+1 / CEST)",region:"Europe",stdOffsetMinutes:60,dst:a},{id:"Europe/Madrid",label:"Europe/Madrid (UTC+1 / CEST)",region:"Europe",stdOffsetMinutes:60,dst:a},{id:"Europe/Amsterdam",label:"Europe/Amsterdam (UTC+1 / CEST)",region:"Europe",stdOffsetMinutes:60,dst:a},{id:"Europe/Istanbul",label:"Europe/Istanbul (UTC+3)",region:"Europe",stdOffsetMinutes:180,dst:null},{id:"America/New_York",label:"America/New York (UTC−5 / EDT)",region:"Americas",stdOffsetMinutes:-300,dst:c},{id:"America/Chicago",label:"America/Chicago (UTC−6 / CDT)",region:"Americas",stdOffsetMinutes:-360,dst:c},{id:"America/Denver",label:"America/Denver (UTC−7 / MDT)",region:"Americas",stdOffsetMinutes:-420,dst:c},{id:"America/Los_Angeles",label:"America/Los Angeles (UTC−8 / PDT)",region:"Americas",stdOffsetMinutes:-480,dst:c},{id:"America/Sao_Paulo",label:"America/Sao Paulo (UTC−3)",region:"Americas",stdOffsetMinutes:-180,dst:null},{id:"Asia/Dubai",label:"Asia/Dubai (UTC+4)",region:"Asia",stdOffsetMinutes:240,dst:null},{id:"Asia/Kolkata",label:"Asia/Kolkata (UTC+5:30)",region:"Asia",stdOffsetMinutes:330,dst:null},{id:"Asia/Singapore",label:"Asia/Singapore (UTC+8)",region:"Asia",stdOffsetMinutes:480,dst:null},{id:"Asia/Shanghai",label:"Asia/Shanghai (UTC+8)",region:"Asia",stdOffsetMinutes:480,dst:null},{id:"Asia/Tokyo",label:"Asia/Tokyo (UTC+9)",region:"Asia",stdOffsetMinutes:540,dst:null},{id:"Australia/Sydney",label:"Australia/Sydney (UTC+10 / AEDT)",region:"Oceania",stdOffsetMinutes:600,dst:Pa}];function Da(e){return Ca.find(s=>s.id===e)}const xa={accessories:"accessories",addonPages:"addon-pages",addonPagesSource:"addon-pages-source",addonRoutes:"addon-routes",addonSettings:"addon-settings",addonWidgets:"addon-widgets",addonWidgetsSource:"addon-widgets-source",addons:"addons",adminUi:"admin-ui",advancedNotifier:"advanced-notifier",airQualitySensor:"air-quality-sensor",alarmPanel:"alarm-panel",alerts:"alerts",ambientLightSensor:"ambient-light-sensor",audioAnalysis:"audio-analysis",audioAnalyzer:"audio-analyzer",audioCodec:"audio-codec",audioMetrics:"audio-metrics",authProvider:"auth-provider",automationControl:"automation-control",backup:"backup",battery:"battery",binary:"binary",brightness:"brightness",broker:"broker",button:"button",cameraCredentials:"camera-credentials",cameraPipelineConfig:"camera-pipeline-config",cameraStreams:"camera-streams",carbonMonoxide:"carbon-monoxide",climateControl:"climate-control",color:"color",connectivity:"connectivity",consumables:"consumables",contact:"contact",control:"control",cover:"cover",decoder:"decoder",detectionPipeline:"detection-pipeline",deviceAdoption:"device-adoption",deviceDiscovery:"device-discovery",deviceExport:"device-export",deviceManager:"device-manager",deviceOps:"device-ops",deviceProvider:"device-provider",deviceState:"device-state",deviceStatus:"device-status",doorbell:"doorbell",embeddingEncoder:"embedding-encoder",enumSensor:"enum-sensor",eventEmitter:"event-emitter",events:"events",fanControl:"fan-control",featureProbe:"feature-probe",flood:"flood",gas:"gas",humidifier:"humidifier",humiditySensor:"humidity-sensor",image:"image",integrations:"integrations",intercom:"intercom",lawnMowerControl:"lawn-mower-control",localNetwork:"local-network",lockControl:"lock-control",logDestination:"log-destination",mediaPlayer:"media-player",meshNetwork:"mesh-network",metricsProvider:"metrics-provider",motion:"motion",motionDetection:"motion-detection",motionTrigger:"motion-trigger",motionZones:"motion-zones",mqttBroker:"mqtt-broker",nativeObjectDetection:"native-object-detection",networkAccess:"network-access",networkQuality:"network-quality",nodes:"nodes",notificationOutput:"notification-output",notifier:"notifier",numericSensor:"numeric-sensor",oauthIntegration:"oauth-integration",osd:"osd",pipelineAnalytics:"pipeline-analytics",pipelineExecutor:"pipeline-executor",pipelineOrchestrator:"pipeline-orchestrator",pipelineRunner:"pipeline-runner",platformProbe:"platform-probe",powerMeter:"power-meter",presence:"presence",pressureSensor:"pressure-sensor",privacyMask:"privacy-mask",ptz:"ptz",ptzAutotrack:"ptz-autotrack",reboot:"reboot",recording:"recording",restreamer:"restreamer",scriptRunner:"script-runner",settingsStore:"settings-store",smoke:"smoke",smtpProvider:"smtp-provider",snapshot:"snapshot",snapshotProvider:"snapshot-provider",ssoBridge:"sso-bridge",storage:"storage",storageEvictable:"storage-evictable",storageProvider:"storage-provider",streamBroker:"stream-broker",streamCatalog:"stream-catalog",streamParams:"stream-params",streamingEngine:"streaming-engine",switch:"switch",system:"system",tamper:"tamper",temperatureSensor:"temperature-sensor",toast:"toast",turnProvider:"turn-provider",update:"update",userManagement:"user-management",userPasskeys:"user-passkeys",vacuumControl:"vacuum-control",valve:"valve",vibration:"vibration",waterHeater:"water-heater",weather:"weather",webrtc:"webrtc",webrtcSession:"webrtc-session",zoneAnalytics:"zone-analytics",zoneRules:"zone-rules",zones:"zones"},Ta=[{key:"accessories",name:"accessories"},{key:"addonPages",name:"addon-pages"},{key:"addonPagesSource",name:"addon-pages-source"},{key:"addonRoutes",name:"addon-routes"},{key:"addonSettings",name:"addon-settings"},{key:"addonWidgets",name:"addon-widgets"},{key:"addonWidgetsSource",name:"addon-widgets-source"},{key:"addons",name:"addons"},{key:"adminUi",name:"admin-ui"},{key:"advancedNotifier",name:"advanced-notifier"},{key:"airQualitySensor",name:"air-quality-sensor"},{key:"alarmPanel",name:"alarm-panel"},{key:"alerts",name:"alerts"},{key:"ambientLightSensor",name:"ambient-light-sensor"},{key:"audioAnalysis",name:"audio-analysis"},{key:"audioAnalyzer",name:"audio-analyzer"},{key:"audioCodec",name:"audio-codec"},{key:"audioMetrics",name:"audio-metrics"},{key:"authProvider",name:"auth-provider"},{key:"automationControl",name:"automation-control"},{key:"backup",name:"backup"},{key:"battery",name:"battery"},{key:"binary",name:"binary"},{key:"brightness",name:"brightness"},{key:"broker",name:"broker"},{key:"button",name:"button"},{key:"cameraCredentials",name:"camera-credentials"},{key:"cameraPipelineConfig",name:"camera-pipeline-config"},{key:"cameraStreams",name:"camera-streams"},{key:"carbonMonoxide",name:"carbon-monoxide"},{key:"climateControl",name:"climate-control"},{key:"color",name:"color"},{key:"connectivity",name:"connectivity"},{key:"consumables",name:"consumables"},{key:"contact",name:"contact"},{key:"control",name:"control"},{key:"cover",name:"cover"},{key:"decoder",name:"decoder"},{key:"detectionPipeline",name:"detection-pipeline"},{key:"deviceAdoption",name:"device-adoption"},{key:"deviceDiscovery",name:"device-discovery"},{key:"deviceExport",name:"device-export"},{key:"deviceManager",name:"device-manager"},{key:"deviceOps",name:"device-ops"},{key:"deviceProvider",name:"device-provider"},{key:"deviceState",name:"device-state"},{key:"deviceStatus",name:"device-status"},{key:"doorbell",name:"doorbell"},{key:"embeddingEncoder",name:"embedding-encoder"},{key:"enumSensor",name:"enum-sensor"},{key:"eventEmitter",name:"event-emitter"},{key:"events",name:"events"},{key:"fanControl",name:"fan-control"},{key:"featureProbe",name:"feature-probe"},{key:"flood",name:"flood"},{key:"gas",name:"gas"},{key:"humidifier",name:"humidifier"},{key:"humiditySensor",name:"humidity-sensor"},{key:"image",name:"image"},{key:"integrations",name:"integrations"},{key:"intercom",name:"intercom"},{key:"lawnMowerControl",name:"lawn-mower-control"},{key:"localNetwork",name:"local-network"},{key:"lockControl",name:"lock-control"},{key:"logDestination",name:"log-destination"},{key:"mediaPlayer",name:"media-player"},{key:"meshNetwork",name:"mesh-network"},{key:"metricsProvider",name:"metrics-provider"},{key:"motion",name:"motion"},{key:"motionDetection",name:"motion-detection"},{key:"motionTrigger",name:"motion-trigger"},{key:"motionZones",name:"motion-zones"},{key:"mqttBroker",name:"mqtt-broker"},{key:"nativeObjectDetection",name:"native-object-detection"},{key:"networkAccess",name:"network-access"},{key:"networkQuality",name:"network-quality"},{key:"nodes",name:"nodes"},{key:"notificationOutput",name:"notification-output"},{key:"notifier",name:"notifier"},{key:"numericSensor",name:"numeric-sensor"},{key:"oauthIntegration",name:"oauth-integration"},{key:"osd",name:"osd"},{key:"pipelineAnalytics",name:"pipeline-analytics"},{key:"pipelineExecutor",name:"pipeline-executor"},{key:"pipelineOrchestrator",name:"pipeline-orchestrator"},{key:"pipelineRunner",name:"pipeline-runner"},{key:"platformProbe",name:"platform-probe"},{key:"powerMeter",name:"power-meter"},{key:"presence",name:"presence"},{key:"pressureSensor",name:"pressure-sensor"},{key:"privacyMask",name:"privacy-mask"},{key:"ptz",name:"ptz"},{key:"ptzAutotrack",name:"ptz-autotrack"},{key:"reboot",name:"reboot"},{key:"recording",name:"recording"},{key:"restreamer",name:"restreamer"},{key:"scriptRunner",name:"script-runner"},{key:"settingsStore",name:"settings-store"},{key:"smoke",name:"smoke"},{key:"smtpProvider",name:"smtp-provider"},{key:"snapshot",name:"snapshot"},{key:"snapshotProvider",name:"snapshot-provider"},{key:"ssoBridge",name:"sso-bridge"},{key:"storage",name:"storage"},{key:"storageEvictable",name:"storage-evictable"},{key:"storageProvider",name:"storage-provider"},{key:"streamBroker",name:"stream-broker"},{key:"streamCatalog",name:"stream-catalog"},{key:"streamParams",name:"stream-params"},{key:"streamingEngine",name:"streaming-engine"},{key:"switch",name:"switch"},{key:"system",name:"system"},{key:"tamper",name:"tamper"},{key:"temperatureSensor",name:"temperature-sensor"},{key:"toast",name:"toast"},{key:"turnProvider",name:"turn-provider"},{key:"update",name:"update"},{key:"userManagement",name:"user-management"},{key:"userPasskeys",name:"user-passkeys"},{key:"vacuumControl",name:"vacuum-control"},{key:"valve",name:"valve"},{key:"vibration",name:"vibration"},{key:"waterHeater",name:"water-heater"},{key:"weather",name:"weather"},{key:"webrtc",name:"webrtc"},{key:"webrtcSession",name:"webrtc-session"},{key:"zoneAnalytics",name:"zone-analytics"},{key:"zoneRules",name:"zone-rules"},{key:"zones",name:"zones"}],za=[d,t,o,n,i,r,p,l,m,u,v,S,y,g,I,N,k,w,b,h,f,A,P,C,M,D,x,T,z,O,R,B,U,L,E,H,W,q,F,_,j,Z,K,Q,G,V,Y,J,X,$,ee,ae,ce,se,de,te,oe,ne,ie,re,pe,le,me,ue,ve,Se,ye,ge,Ie,Ne,ke,we,be,he,fe,Ae,Pe,Ce,Me,De,xe,Te,ze,Oe,Re,Be,Ue,Le,Ee,He,We,qe,Fe,_e,je,Ze,Ke,Qe,Ge,Ve,Ye,Je,Xe,$e,ea,aa,ca,sa,da,ta,oa,na,ia,ra,pa,la,ma,ua,va,Sa,ya,ga,Ia,Na,ka,wa,ba,ha,fa],Oa=Object.freeze({"accessories.setChildHidden":{capName:"accessories",capScope:"device",addonId:null,access:"create"},"addonPages.listPages":{capName:"addon-pages",capScope:"system",addonId:null,access:"view"},"addonPagesSource.listPages":{capName:"addon-pages-source",capScope:"system",addonId:null,access:"view"},"addonRoutes.getRoutes":{capName:"addon-routes",capScope:"system",addonId:null,access:"view"},"addonRoutes.invoke":{capName:"addon-routes",capScope:"system",addonId:null,access:"create"},"addons.applyAutoUpdateToAll":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.cancelBulkUpdate":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.custom":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.forceRefresh":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.getAddonAutoUpdate":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.getAutoUpdateSettings":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.getBulkUpdateState":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.getLastRestart":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.getLogs":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.getVersions":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.installFromWorkspace":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.installPackage":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.isWorkspaceAvailable":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.list":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.listActiveBulkUpdates":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.listCapabilityProviders":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.listFrameworkPackages":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.listPackages":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.listUpdates":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.listWorkspacePackages":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.onAddonLogs":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.reloadPackages":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.restartAddon":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.restartServer":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.retryLoad":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.rollbackPackage":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.searchAvailable":{capName:"addons",capScope:"system",addonId:null,access:"view"},"addons.setAddonAutoUpdate":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.setAutoUpdateSettings":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.setCapabilityProviderEnabled":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.startBulkUpdate":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.uninstallPackage":{capName:"addons",capScope:"system",addonId:null,access:"delete"},"addons.updateFrameworkPackage":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addons.updatePackage":{capName:"addons",capScope:"system",addonId:null,access:"create"},"addonSettings.getDeviceSettings":{capName:"addon-settings",capScope:"system",addonId:null,access:"view"},"addonSettings.getGlobalSettings":{capName:"addon-settings",capScope:"system",addonId:null,access:"view"},"addonSettings.updateDeviceSettings":{capName:"addon-settings",capScope:"system",addonId:null,access:"create"},"addonSettings.updateGlobalSettings":{capName:"addon-settings",capScope:"system",addonId:null,access:"create"},"addonWidgets.listWidgets":{capName:"addon-widgets",capScope:"system",addonId:null,access:"view"},"addonWidgetsSource.listWidgets":{capName:"addon-widgets-source",capScope:"system",addonId:null,access:"view"},"adminUi.getStaticDir":{capName:"admin-ui",capScope:"system",addonId:null,access:"view"},"adminUi.getVersion":{capName:"admin-ui",capScope:"system",addonId:null,access:"view"},"advancedNotifier.deleteRule":{capName:"advanced-notifier",capScope:"system",addonId:null,access:"delete"},"advancedNotifier.getHistory":{capName:"advanced-notifier",capScope:"system",addonId:null,access:"view"},"advancedNotifier.getRules":{capName:"advanced-notifier",capScope:"system",addonId:null,access:"view"},"advancedNotifier.testRule":{capName:"advanced-notifier",capScope:"system",addonId:null,access:"create"},"advancedNotifier.upsertRule":{capName:"advanced-notifier",capScope:"system",addonId:null,access:"create"},"alarmPanel.arm":{capName:"alarm-panel",capScope:"device",addonId:null,access:"create"},"alarmPanel.disarm":{capName:"alarm-panel",capScope:"device",addonId:null,access:"create"},"alarmPanel.trigger":{capName:"alarm-panel",capScope:"device",addonId:null,access:"create"},"alerts.dismiss":{capName:"alerts",capScope:"system",addonId:null,access:"create"},"alerts.emit":{capName:"alerts",capScope:"system",addonId:null,access:"create"},"alerts.getUnreadCount":{capName:"alerts",capScope:"system",addonId:null,access:"view"},"alerts.list":{capName:"alerts",capScope:"system",addonId:null,access:"view"},"alerts.markAllRead":{capName:"alerts",capScope:"system",addonId:null,access:"create"},"alerts.markRead":{capName:"alerts",capScope:"system",addonId:null,access:"create"},"alerts.update":{capName:"alerts",capScope:"system",addonId:null,access:"create"},"audioAnalysis.resolveDeviceSettings":{capName:"audio-analysis",capScope:"device",addonId:null,access:"view"},"audioAnalyzer.analyseChunk":{capName:"audio-analyzer",capScope:"system",addonId:null,access:"create"},"audioAnalyzer.classify":{capName:"audio-analyzer",capScope:"system",addonId:null,access:"view"},"audioAnalyzer.dispose":{capName:"audio-analyzer",capScope:"system",addonId:null,access:"create"},"audioAnalyzer.isReady":{capName:"audio-analyzer",capScope:"system",addonId:null,access:"view"},"audioAnalyzer.reprobeAudioEngine":{capName:"audio-analyzer",capScope:"system",addonId:null,access:"create"},"audioCodec.canHandle":{capName:"audio-codec",capScope:"system",addonId:null,access:"view"},"audioCodec.closeSession":{capName:"audio-codec",capScope:"system",addonId:null,access:"create"},"audioCodec.createDecodeSession":{capName:"audio-codec",capScope:"system",addonId:null,access:"create"},"audioCodec.createEncodeSession":{capName:"audio-codec",capScope:"system",addonId:null,access:"create"},"audioCodec.flushEncode":{capName:"audio-codec",capScope:"system",addonId:null,access:"create"},"audioCodec.listActiveSessions":{capName:"audio-codec",capScope:"system",addonId:null,access:"view"},"audioCodec.listSupportedCodecs":{capName:"audio-codec",capScope:"system",addonId:null,access:"view"},"audioCodec.pullEncoded":{capName:"audio-codec",capScope:"system",addonId:null,access:"view"},"audioCodec.pullPcm":{capName:"audio-codec",capScope:"system",addonId:null,access:"view"},"audioCodec.pushEncodedFrame":{capName:"audio-codec",capScope:"system",addonId:null,access:"create"},"audioCodec.pushPcm":{capName:"audio-codec",capScope:"system",addonId:null,access:"create"},"audioMetrics.getCurrentSnapshot":{capName:"audio-metrics",capScope:"device",addonId:null,access:"view"},"audioMetrics.getHistory":{capName:"audio-metrics",capScope:"device",addonId:null,access:"view"},"authProvider.getLoginUrl":{capName:"auth-provider",capScope:"system",addonId:null,access:"view"},"authProvider.handleCallback":{capName:"auth-provider",capScope:"system",addonId:null,access:"create"},"authProvider.validateCredentials":{capName:"auth-provider",capScope:"system",addonId:null,access:"create"},"authProvider.validateToken":{capName:"auth-provider",capScope:"system",addonId:null,access:"view"},"automationControl.disable":{capName:"automation-control",capScope:"device",addonId:null,access:"create"},"automationControl.enable":{capName:"automation-control",capScope:"device",addonId:null,access:"create"},"automationControl.trigger":{capName:"automation-control",capScope:"device",addonId:null,access:"create"},"backup.delete":{capName:"backup",capScope:"system",addonId:null,access:"delete"},"backup.getEntries":{capName:"backup",capScope:"system",addonId:null,access:"view"},"backup.list":{capName:"backup",capScope:"system",addonId:null,access:"view"},"backup.listArchives":{capName:"backup",capScope:"system",addonId:null,access:"view"},"backup.listDestinations":{capName:"backup",capScope:"system",addonId:null,access:"view"},"backup.listLocations":{capName:"backup",capScope:"system",addonId:null,access:"view"},"backup.previewSchedule":{capName:"backup",capScope:"system",addonId:null,access:"view"},"backup.restore":{capName:"backup",capScope:"system",addonId:null,access:"create"},"backup.trigger":{capName:"backup",capScope:"system",addonId:null,access:"create"},"backup.upsertDestinationPolicy":{capName:"backup",capScope:"system",addonId:null,access:"create"},"battery.wakeForStream":{capName:"battery",capScope:"device",addonId:null,access:"create"},"brightness.setBrightness":{capName:"brightness",capScope:"device",addonId:null,access:"create"},"broker.add":{capName:"broker",capScope:"system",addonId:null,access:"create"},"broker.get":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.getBrokerConfig":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.getSettings":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.getSettingsSchema":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.getState":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.getStatus":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.list":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.listProviders":{capName:"broker",capScope:"system",addonId:null,access:"view"},"broker.publish":{capName:"broker",capScope:"system",addonId:null,access:"create"},"broker.remove":{capName:"broker",capScope:"system",addonId:null,access:"delete"},"broker.setSettings":{capName:"broker",capScope:"system",addonId:null,access:"create"},"broker.subscribe":{capName:"broker",capScope:"system",addonId:null,access:"create"},"broker.testConnection":{capName:"broker",capScope:"system",addonId:null,access:"create"},"broker.testSettings":{capName:"broker",capScope:"system",addonId:null,access:"create"},"broker.unsubscribe":{capName:"broker",capScope:"system",addonId:null,access:"create"},"button.press":{capName:"button",capScope:"device",addonId:null,access:"create"},"cameraCredentials.getCredentials":{capName:"camera-credentials",capScope:"device",addonId:null,access:"view"},"cameraStreams.getBrokerStreams":{capName:"camera-streams",capScope:"device",addonId:null,access:"view"},"cameraStreams.getCameraStreams":{capName:"camera-streams",capScope:"device",addonId:null,access:"view"},"cameraStreams.getProfileRtspEntries":{capName:"camera-streams",capScope:"device",addonId:null,access:"view"},"cameraStreams.getRtspEntries":{capName:"camera-streams",capScope:"device",addonId:null,access:"view"},"cameraStreams.pickStream":{capName:"camera-streams",capScope:"device",addonId:null,access:"view"},"climateControl.setFanMode":{capName:"climate-control",capScope:"device",addonId:null,access:"create"},"climateControl.setMode":{capName:"climate-control",capScope:"device",addonId:null,access:"create"},"climateControl.setPreset":{capName:"climate-control",capScope:"device",addonId:null,access:"create"},"climateControl.setTarget":{capName:"climate-control",capScope:"device",addonId:null,access:"create"},"climateControl.setTargetHumidity":{capName:"climate-control",capScope:"device",addonId:null,access:"create"},"climateControl.setTargetRange":{capName:"climate-control",capScope:"device",addonId:null,access:"create"},"color.setColor":{capName:"color",capScope:"device",addonId:null,access:"create"},"consumables.reset":{capName:"consumables",capScope:"device",addonId:null,access:"delete"},"control.setValue":{capName:"control",capScope:"device",addonId:null,access:"create"},"cover.close":{capName:"cover",capScope:"device",addonId:null,access:"create"},"cover.open":{capName:"cover",capScope:"device",addonId:null,access:"create"},"cover.setPosition":{capName:"cover",capScope:"device",addonId:null,access:"create"},"cover.setTiltPosition":{capName:"cover",capScope:"device",addonId:null,access:"create"},"cover.stop":{capName:"cover",capScope:"device",addonId:null,access:"create"},"decoder.createSession":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.destroySession":{capName:"decoder",capScope:"system",addonId:null,access:"delete"},"decoder.getFrame":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.getInfo":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.getShmStats":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.getStats":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.listActiveSessions":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.openStream":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.pullFrames":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.pullHandles":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.pushPacket":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.reprobeHwaccel":{capName:"decoder",capScope:"system",addonId:null,access:"create"},"decoder.supportsCodec":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"decoder.updateConfig":{capName:"decoder",capScope:"system",addonId:null,access:"view"},"deviceAdoption.adopt":{capName:"device-adoption",capScope:"system",addonId:null,access:"create"},"deviceAdoption.getCandidate":{capName:"device-adoption",capScope:"system",addonId:null,access:"view"},"deviceAdoption.listCandidateFilters":{capName:"device-adoption",capScope:"system",addonId:null,access:"view"},"deviceAdoption.listCandidates":{capName:"device-adoption",capScope:"system",addonId:null,access:"view"},"deviceAdoption.refresh":{capName:"device-adoption",capScope:"system",addonId:null,access:"create"},"deviceAdoption.release":{capName:"device-adoption",capScope:"system",addonId:null,access:"create"},"deviceAdoption.resync":{capName:"device-adoption",capScope:"system",addonId:null,access:"create"},"deviceDiscovery.adoptDevice":{capName:"device-discovery",capScope:"device",addonId:null,access:"create"},"deviceDiscovery.listDiscovered":{capName:"device-discovery",capScope:"device",addonId:null,access:"view"},"deviceDiscovery.refreshDiscovery":{capName:"device-discovery",capScope:"device",addonId:null,access:"create"},"deviceDiscovery.releaseDevice":{capName:"device-discovery",capScope:"device",addonId:null,access:"create"},"deviceExport.exposeDevice":{capName:"device-export",capScope:"system",addonId:null,access:"create"},"deviceExport.getStatus":{capName:"device-export",capScope:"system",addonId:null,access:"view"},"deviceExport.listExposedDevices":{capName:"device-export",capScope:"system",addonId:null,access:"view"},"deviceExport.listSupportedDeviceKinds":{capName:"device-export",capScope:"system",addonId:null,access:"view"},"deviceExport.unexposeDevice":{capName:"device-export",capScope:"system",addonId:null,access:"create"},"deviceManager.addLocation":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.adoptDevice":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.adoptionAdopt":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.adoptionListCandidates":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.adoptionRefresh":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.adoptionRelease":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.allocateDeviceId":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.applyInitialMeta":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.createDevice":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.disable":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.discoverDevices":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.enable":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.getAllBindings":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getBindings":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getChildren":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getConfigSchema":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getCreationSchema":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getDevice":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getDeviceAggregate":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getDeviceLiveInfoAggregate":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getDeviceSettingsAggregate":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getDeviceStatusAggregate":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getSettingsSchema":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getStreamProfileMap":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getStreamSources":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.getWireableFields":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.listAll":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.listBindableCapsForDeviceType":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.listLocations":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.listPersistedByAddon":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.listWrappersForCap":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.loadConfig":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.loadMeta":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.loadRuntimeState":{capName:"device-manager",capScope:"system",addonId:null,access:"view"},"deviceManager.persistConfig":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.probeStreams":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.registerDevice":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.remove":{capName:"device-manager",capScope:"system",addonId:null,access:"delete"},"deviceManager.removeByIntegration":{capName:"device-manager",capScope:"system",addonId:null,access:"delete"},"deviceManager.removeDevice":{capName:"device-manager",capScope:"system",addonId:null,access:"delete"},"deviceManager.removeLocation":{capName:"device-manager",capScope:"system",addonId:null,access:"delete"},"deviceManager.runDeviceAction":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setChildLayout":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setDeviceLinks":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setDisabled":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setIntegrationId":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setLinkDeviceId":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setLocation":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setMetadata":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setName":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setPrimaryChildEntityId":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setRole":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setStreamProfileMap":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setType":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.setWrapperActive":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.testCreationField":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.testField":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.updateConfig":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.updateDeviceField":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceManager.updateDeviceFieldsBatch":{capName:"device-manager",capScope:"system",addonId:null,access:"create"},"deviceOps.getConfigEntries":{capName:"device-ops",capScope:"device",addonId:null,access:"view"},"deviceOps.getRawState":{capName:"device-ops",capScope:"device",addonId:null,access:"view"},"deviceOps.getSettingsSchema":{capName:"device-ops",capScope:"device",addonId:null,access:"view"},"deviceOps.getStreamSources":{capName:"device-ops",capScope:"device",addonId:null,access:"view"},"deviceOps.removeDevice":{capName:"device-ops",capScope:"device",addonId:null,access:"delete"},"deviceOps.runAction":{capName:"device-ops",capScope:"device",addonId:null,access:"create"},"deviceOps.setConfig":{capName:"device-ops",capScope:"device",addonId:null,access:"create"},"deviceProvider.adoptDiscoveredDevice":{capName:"device-provider",capScope:"system",addonId:null,access:"create"},"deviceProvider.createDevice":{capName:"device-provider",capScope:"system",addonId:null,access:"create"},"deviceProvider.discoverDevices":{capName:"device-provider",capScope:"system",addonId:null,access:"create"},"deviceProvider.getChildCreationSchema":{capName:"device-provider",capScope:"system",addonId:null,access:"view"},"deviceProvider.getDevices":{capName:"device-provider",capScope:"system",addonId:null,access:"view"},"deviceProvider.getStatus":{capName:"device-provider",capScope:"system",addonId:null,access:"view"},"deviceProvider.start":{capName:"device-provider",capScope:"system",addonId:null,access:"create"},"deviceProvider.stop":{capName:"device-provider",capScope:"system",addonId:null,access:"create"},"deviceProvider.supportsDiscovery":{capName:"device-provider",capScope:"system",addonId:null,access:"view"},"deviceProvider.supportsManualCreation":{capName:"device-provider",capScope:"system",addonId:null,access:"view"},"deviceProvider.testCreationField":{capName:"device-provider",capScope:"system",addonId:null,access:"create"},"deviceState.getAllSnapshots":{capName:"device-state",capScope:"system",addonId:null,access:"view"},"deviceState.getCapSlice":{capName:"device-state",capScope:"system",addonId:null,access:"view"},"deviceState.getSnapshot":{capName:"device-state",capScope:"system",addonId:null,access:"view"},"deviceState.setCapSlice":{capName:"device-state",capScope:"system",addonId:null,access:"create"},"embeddingEncoder.encode":{capName:"embedding-encoder",capScope:"system",addonId:null,access:"view"},"embeddingEncoder.encodeText":{capName:"embedding-encoder",capScope:"system",addonId:null,access:"view"},"embeddingEncoder.getInfo":{capName:"embedding-encoder",capScope:"system",addonId:null,access:"view"},"events.getEventClipUrl":{capName:"events",capScope:"device",addonId:null,access:"view"},"events.getEvents":{capName:"events",capScope:"device",addonId:null,access:"view"},"events.getEventThumbnail":{capName:"events",capScope:"device",addonId:null,access:"view"},"fanControl.setDirection":{capName:"fan-control",capScope:"device",addonId:null,access:"create"},"fanControl.setOscillating":{capName:"fan-control",capScope:"device",addonId:null,access:"create"},"fanControl.setPercentage":{capName:"fan-control",capScope:"device",addonId:null,access:"create"},"fanControl.setPreset":{capName:"fan-control",capScope:"device",addonId:null,access:"create"},"humidifier.setMode":{capName:"humidifier",capScope:"device",addonId:null,access:"create"},"humidifier.setOn":{capName:"humidifier",capScope:"device",addonId:null,access:"create"},"humidifier.setTargetHumidity":{capName:"humidifier",capScope:"device",addonId:null,access:"create"},"integrations.create":{capName:"integrations",capScope:"system",addonId:null,access:"create"},"integrations.delete":{capName:"integrations",capScope:"system",addonId:null,access:"delete"},"integrations.get":{capName:"integrations",capScope:"system",addonId:null,access:"view"},"integrations.getAvailableTypes":{capName:"integrations",capScope:"system",addonId:null,access:"view"},"integrations.getByAddonId":{capName:"integrations",capScope:"system",addonId:null,access:"view"},"integrations.getSettings":{capName:"integrations",capScope:"system",addonId:null,access:"view"},"integrations.list":{capName:"integrations",capScope:"system",addonId:null,access:"view"},"integrations.setSettings":{capName:"integrations",capScope:"system",addonId:null,access:"create"},"integrations.testConnection":{capName:"integrations",capScope:"system",addonId:null,access:"create"},"integrations.update":{capName:"integrations",capScope:"system",addonId:null,access:"create"},"intercom.endTalkSession":{capName:"intercom",capScope:"device",addonId:null,access:"create"},"intercom.handleAnswer":{capName:"intercom",capScope:"device",addonId:null,access:"create"},"intercom.pushTalkAudio":{capName:"intercom",capScope:"device",addonId:null,access:"create"},"intercom.startSession":{capName:"intercom",capScope:"device",addonId:null,access:"create"},"intercom.startTalkSession":{capName:"intercom",capScope:"device",addonId:null,access:"create"},"intercom.stopSession":{capName:"intercom",capScope:"device",addonId:null,access:"create"},"lawnMowerControl.dock":{capName:"lawn-mower-control",capScope:"device",addonId:null,access:"create"},"lawnMowerControl.pause":{capName:"lawn-mower-control",capScope:"device",addonId:null,access:"create"},"lawnMowerControl.startMowing":{capName:"lawn-mower-control",capScope:"device",addonId:null,access:"create"},"localNetwork.getAllowedAddresses":{capName:"local-network",capScope:"system",addonId:null,access:"view"},"localNetwork.getConnectionEndpoints":{capName:"local-network",capScope:"system",addonId:null,access:"view"},"localNetwork.getPreferred":{capName:"local-network",capScope:"system",addonId:null,access:"view"},"localNetwork.list":{capName:"local-network",capScope:"system",addonId:null,access:"view"},"localNetwork.resetAllowlistToBestMatch":{capName:"local-network",capScope:"system",addonId:null,access:"delete"},"localNetwork.setAllowedAddresses":{capName:"local-network",capScope:"system",addonId:null,access:"create"},"lockControl.lock":{capName:"lock-control",capScope:"device",addonId:null,access:"create"},"lockControl.open":{capName:"lock-control",capScope:"device",addonId:null,access:"create"},"lockControl.unlock":{capName:"lock-control",capScope:"device",addonId:null,access:"create"},"logDestination.query":{capName:"log-destination",capScope:"system",addonId:null,access:"view"},"logDestination.write":{capName:"log-destination",capScope:"system",addonId:null,access:"create"},"mediaPlayer.next":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.pause":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.play":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.playMedia":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.previous":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.seek":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.selectSource":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.setMute":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.setRepeat":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.setShuffle":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.setVolume":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"mediaPlayer.stop":{capName:"media-player",capScope:"device",addonId:null,access:"create"},"meshNetwork.getStatus":{capName:"mesh-network",capScope:"system",addonId:null,access:"view"},"meshNetwork.join":{capName:"mesh-network",capScope:"system",addonId:null,access:"create"},"meshNetwork.leave":{capName:"mesh-network",capScope:"system",addonId:null,access:"create"},"meshNetwork.listPeers":{capName:"mesh-network",capScope:"system",addonId:null,access:"view"},"meshNetwork.logout":{capName:"mesh-network",capScope:"system",addonId:null,access:"create"},"meshNetwork.startLogin":{capName:"mesh-network",capScope:"system",addonId:null,access:"create"},"meshNetwork.testConnection":{capName:"mesh-network",capScope:"system",addonId:null,access:"create"},"metricsProvider.collectSnapshot":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.getAddonStats":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.getCached":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.getCpuTemperature":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.getCurrent":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.getDiskSpace":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.getGpuInfo":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.getProcessStats":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.killProcess":{capName:"metrics-provider",capScope:"system",addonId:null,access:"create"},"metricsProvider.listAddonInstances":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"metricsProvider.listNodeProcesses":{capName:"metrics-provider",capScope:"system",addonId:null,access:"view"},"motion.isDetected":{capName:"motion",capScope:"device",addonId:null,access:"view"},"motionDetection.analyze":{capName:"motion-detection",capScope:"device",addonId:null,access:"create"},"motionDetection.removeCamera":{capName:"motion-detection",capScope:"device",addonId:null,access:"delete"},"motionDetection.reset":{capName:"motion-detection",capScope:"device",addonId:null,access:"delete"},"motionTrigger.setMotionTrigger":{capName:"motion-trigger",capScope:"device",addonId:null,access:"create"},"motionZones.getOptions":{capName:"motion-zones",capScope:"device",addonId:null,access:"view"},"motionZones.setZone":{capName:"motion-zones",capScope:"device",addonId:null,access:"create"},"mqttBroker.addBroker":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"create"},"mqttBroker.getBrokerConfig":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"view"},"mqttBroker.getStatus":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"view"},"mqttBroker.listBrokers":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"view"},"mqttBroker.removeBroker":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"delete"},"mqttBroker.startEmbeddedBroker":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"create"},"mqttBroker.stopEmbeddedBroker":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"create"},"mqttBroker.testConnection":{capName:"mqtt-broker",capScope:"system",addonId:null,access:"create"},"nativeObjectDetection.setEnabled":{capName:"native-object-detection",capScope:"device",addonId:null,access:"create"},"networkAccess.getEndpoint":{capName:"network-access",capScope:"system",addonId:null,access:"view"},"networkAccess.getStatus":{capName:"network-access",capScope:"system",addonId:null,access:"view"},"networkAccess.listEndpoints":{capName:"network-access",capScope:"system",addonId:null,access:"view"},"networkAccess.start":{capName:"network-access",capScope:"system",addonId:null,access:"create"},"networkAccess.stop":{capName:"network-access",capScope:"system",addonId:null,access:"create"},"networkQuality.getAllStats":{capName:"network-quality",capScope:"system",addonId:null,access:"view"},"networkQuality.getDeviceStats":{capName:"network-quality",capScope:"system",addonId:null,access:"view"},"networkQuality.reportClientStats":{capName:"network-quality",capScope:"system",addonId:null,access:"create"},"nodes.clusterAddonStatus":{capName:"nodes",capScope:"system",addonId:null,access:"view"},"nodes.deployAddon":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.executeQuery":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.getCapUsageGraph":{capName:"nodes",capScope:"system",addonId:null,access:"view"},"nodes.getNodeAddons":{capName:"nodes",capScope:"system",addonId:null,access:"view"},"nodes.renameNode":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.restartAddon":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.restartNode":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.restartProcess":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.setProcessLogLevel":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.shutdownNode":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"nodes.topology":{capName:"nodes",capScope:"system",addonId:null,access:"view"},"nodes.undeployAddon":{capName:"nodes",capScope:"system",addonId:null,access:"create"},"notificationOutput.send":{capName:"notification-output",capScope:"system",addonId:null,access:"create"},"notificationOutput.sendTest":{capName:"notification-output",capScope:"system",addonId:null,access:"create"},"notifier.cancel":{capName:"notifier",capScope:"device",addonId:null,access:"create"},"notifier.send":{capName:"notifier",capScope:"device",addonId:null,access:"create"},"oauthIntegration.getDescriptor":{capName:"oauth-integration",capScope:"system",addonId:null,access:"view"},"osd.setOverlay":{capName:"osd",capScope:"device",addonId:null,access:"create"},"pipelineAnalytics.clearTracks":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"delete"},"pipelineAnalytics.getActiveTracks":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.getAudioEvents":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.getEventDensity":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.getEventMedia":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.getMotionEvents":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.getObjectEvents":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.getTrack":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.getTrackMedia":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.listTracks":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"view"},"pipelineAnalytics.pruneEventsBefore":{capName:"pipeline-analytics",capScope:"device",addonId:null,access:"create"},"pipelineExecutor.cacheFrameInPool":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.deleteModel":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"delete"},"pipelineExecutor.deleteTemplate":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"delete"},"pipelineExecutor.detect":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.downloadModel":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.getAddonModels":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getAudioCapabilities":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getAvailableEngines":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getCapabilities":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getDefaultSteps":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getDetectionConfigSchema":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getEffectiveTuning":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getGlobalPipelineConfig":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getGlobalSteps":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getOrchestratorConfigSchema":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getReferenceAudio":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getReferenceAudioFiles":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getReferenceImage":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getSchema":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getSelectedEngine":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.getVideoPipelineSteps":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.inferCached":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.killEngine":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.listLoadedEngines":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.listReferenceImages":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.listTemplates":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"view"},"pipelineExecutor.reprobeEngine":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.runAudioTest":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.runPipeline":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.runPipelineBatch":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.saveTemplate":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.setVideoPipelineSteps":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.spinEngine":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.uncacheFrame":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineExecutor.updateTemplate":{capName:"pipeline-executor",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.assignAudio":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.assignDecoder":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.assignPipeline":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.deleteTemplate":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"delete"},"pipelineOrchestrator.getAgentLoad":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getAgentSettings":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getAudioAssignment":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getAudioAssignments":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getAudioNodeLoad":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getCameraMetrics":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getCameraSettings":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getCameraStepOverrides":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getCapabilityBindings":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getDecoderAssignment":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getDecoderAssignments":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getGlobalMetrics":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getPipelineAssignment":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.getPipelineAssignments":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.listAgentSettings":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.listTemplates":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.rebalance":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.removeAgentSettings":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"delete"},"pipelineOrchestrator.resolvePipeline":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"view"},"pipelineOrchestrator.saveTemplate":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.setAgentAddonDefaults":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.setCameraPipelineForAgent":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.setCameraStepOverride":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.setCameraStepToggle":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.setCapabilityBinding":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.unassignAudio":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.unassignDecoder":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.unassignPipeline":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineOrchestrator.updateTemplate":{capName:"pipeline-orchestrator",capScope:"system",addonId:null,access:"create"},"pipelineRunner.attachCamera":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"create"},"pipelineRunner.detachCamera":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"create"},"pipelineRunner.getAllCameraMetrics":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"view"},"pipelineRunner.getCameraMetrics":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"view"},"pipelineRunner.getLocalCameras":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"view"},"pipelineRunner.getLocalLoad":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"view"},"pipelineRunner.getLocalMetrics":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"view"},"pipelineRunner.reportMotion":{capName:"pipeline-runner",capScope:"system",addonId:null,access:"create"},"platformProbe.getCapabilities":{capName:"platform-probe",capScope:"system",addonId:null,access:"view"},"platformProbe.getHardware":{capName:"platform-probe",capScope:"system",addonId:null,access:"view"},"platformProbe.getHardwareDecodeAccels":{capName:"platform-probe",capScope:"system",addonId:null,access:"view"},"platformProbe.getHardwareEncoders":{capName:"platform-probe",capScope:"system",addonId:null,access:"view"},"platformProbe.refreshHardwareDecodeAccels":{capName:"platform-probe",capScope:"system",addonId:null,access:"create"},"platformProbe.refreshHardwareEncoders":{capName:"platform-probe",capScope:"system",addonId:null,access:"create"},"platformProbe.resolveHwAccel":{capName:"platform-probe",capScope:"system",addonId:null,access:"view"},"platformProbe.resolveInferenceConfig":{capName:"platform-probe",capScope:"system",addonId:null,access:"view"},"privacyMask.getOptions":{capName:"privacy-mask",capScope:"device",addonId:null,access:"view"},"privacyMask.setMask":{capName:"privacy-mask",capScope:"device",addonId:null,access:"create"},"ptz.continuousMove":{capName:"ptz",capScope:"device",addonId:null,access:"create"},"ptz.deletePreset":{capName:"ptz",capScope:"device",addonId:null,access:"delete"},"ptz.getOptions":{capName:"ptz",capScope:"device",addonId:null,access:"view"},"ptz.getPosition":{capName:"ptz",capScope:"device",addonId:null,access:"view"},"ptz.getPresets":{capName:"ptz",capScope:"device",addonId:null,access:"view"},"ptz.goHome":{capName:"ptz",capScope:"device",addonId:null,access:"create"},"ptz.goToPreset":{capName:"ptz",capScope:"device",addonId:null,access:"create"},"ptz.move":{capName:"ptz",capScope:"device",addonId:null,access:"create"},"ptz.savePreset":{capName:"ptz",capScope:"device",addonId:null,access:"create"},"ptz.setAutofocus":{capName:"ptz",capScope:"device",addonId:null,access:"create"},"ptz.stop":{capName:"ptz",capScope:"device",addonId:null,access:"create"},"ptzAutotrack.getSettings":{capName:"ptz-autotrack",capScope:"device",addonId:null,access:"view"},"ptzAutotrack.getStatus":{capName:"ptz-autotrack",capScope:"device",addonId:null,access:"view"},"ptzAutotrack.setEnabled":{capName:"ptz-autotrack",capScope:"device",addonId:null,access:"create"},"ptzAutotrack.setSettings":{capName:"ptz-autotrack",capScope:"device",addonId:null,access:"create"},"reboot.reboot":{capName:"reboot",capScope:"device",addonId:null,access:"create"},"recording.getAvailability":{capName:"recording",capScope:"system",addonId:null,access:"view"},"recording.getDeviceConfig":{capName:"recording",capScope:"system",addonId:null,access:"view"},"recording.getPlaybackManifest":{capName:"recording",capScope:"system",addonId:null,access:"view"},"recording.getStorageUsage":{capName:"recording",capScope:"system",addonId:null,access:"view"},"recording.pruneFootage":{capName:"recording",capScope:"system",addonId:null,access:"create"},"recording.rescanStorage":{capName:"recording",capScope:"system",addonId:null,access:"create"},"recording.setDeviceConfig":{capName:"recording",capScope:"system",addonId:null,access:"create"},"restreamer.getExposedResources":{capName:"restreamer",capScope:"system",addonId:null,access:"view"},"restreamer.registerDevice":{capName:"restreamer",capScope:"system",addonId:null,access:"create"},"restreamer.unregisterDevice":{capName:"restreamer",capScope:"system",addonId:null,access:"delete"},"scriptRunner.run":{capName:"script-runner",capScope:"device",addonId:null,access:"create"},"scriptRunner.stop":{capName:"script-runner",capScope:"device",addonId:null,access:"create"},"settingsStore.count":{capName:"settings-store",capScope:"system",addonId:null,access:"view"},"settingsStore.declareCollection":{capName:"settings-store",capScope:"system",addonId:null,access:"create"},"settingsStore.delete":{capName:"settings-store",capScope:"system",addonId:null,access:"delete"},"settingsStore.get":{capName:"settings-store",capScope:"system",addonId:null,access:"view"},"settingsStore.histogram":{capName:"settings-store",capScope:"system",addonId:null,access:"view"},"settingsStore.insert":{capName:"settings-store",capScope:"system",addonId:null,access:"create"},"settingsStore.isEmpty":{capName:"settings-store",capScope:"system",addonId:null,access:"view"},"settingsStore.query":{capName:"settings-store",capScope:"system",addonId:null,access:"view"},"settingsStore.set":{capName:"settings-store",capScope:"system",addonId:null,access:"create"},"settingsStore.update":{capName:"settings-store",capScope:"system",addonId:null,access:"create"},"smtpProvider.getStatus":{capName:"smtp-provider",capScope:"system",addonId:null,access:"view"},"smtpProvider.sendEmail":{capName:"smtp-provider",capScope:"system",addonId:null,access:"create"},"smtpProvider.verify":{capName:"smtp-provider",capScope:"system",addonId:null,access:"view"},"snapshot.getSnapshot":{capName:"snapshot",capScope:"device",addonId:null,access:"view"},"snapshot.invalidateCache":{capName:"snapshot",capScope:"device",addonId:null,access:"create"},"snapshotProvider.getSnapshot":{capName:"snapshot-provider",capScope:"system",addonId:null,access:"view"},"snapshotProvider.supportsDevice":{capName:"snapshot-provider",capScope:"system",addonId:null,access:"view"},"ssoBridge.signBridgeToken":{capName:"sso-bridge",capScope:"system",addonId:null,access:"view"},"ssoBridge.verifyBridgeToken":{capName:"sso-bridge",capScope:"system",addonId:null,access:"view"},"storage.abortUpload":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storage.beginDownload":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storage.beginUpload":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storage.delete":{capName:"storage",capScope:"system",addonId:null,access:"delete"},"storage.deleteLocation":{capName:"storage",capScope:"system",addonId:null,access:"delete"},"storage.endDownload":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storage.exists":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.finalizeUpload":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storage.getAvailableSpace":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.getDefaultLocation":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.list":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.listLocationDeclarations":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.listLocations":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.listProviders":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.read":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.readChunk":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.resolve":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.testConfig":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.testLocation":{capName:"storage",capScope:"system",addonId:null,access:"view"},"storage.upsertLocation":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storage.write":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storage.writeChunk":{capName:"storage",capScope:"system",addonId:null,access:"create"},"storageEvictable.evict":{capName:"storage-evictable",capScope:"system",addonId:null,access:"create"},"storageEvictable.getEvictableUsage":{capName:"storage-evictable",capScope:"system",addonId:null,access:"view"},"storageProvider.abortUpload":{capName:"storage-provider",capScope:"system",addonId:null,access:"create"},"storageProvider.beginDownload":{capName:"storage-provider",capScope:"system",addonId:null,access:"create"},"storageProvider.beginUpload":{capName:"storage-provider",capScope:"system",addonId:null,access:"create"},"storageProvider.delete":{capName:"storage-provider",capScope:"system",addonId:null,access:"delete"},"storageProvider.endDownload":{capName:"storage-provider",capScope:"system",addonId:null,access:"create"},"storageProvider.exists":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.finalizeUpload":{capName:"storage-provider",capScope:"system",addonId:null,access:"create"},"storageProvider.getAvailableSpace":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.getProviderInfo":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.list":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.read":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.readChunk":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.resolve":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.testLocation":{capName:"storage-provider",capScope:"system",addonId:null,access:"view"},"storageProvider.write":{capName:"storage-provider",capScope:"system",addonId:null,access:"create"},"storageProvider.writeChunk":{capName:"storage-provider",capScope:"system",addonId:null,access:"create"},"streamBroker.assignProfile":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.getAllRtspEntries":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.getBrokerStats":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.getPreBufferInfo":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.getRtspEntry":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.getRtspPort":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.getStreamUrl":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.getStreamWithCodec":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.isRtspEnabled":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.killClient":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.listAllCameraStreams":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.listAllProfileSlots":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.listClients":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.publishCameraStream":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.pullAudioChunks":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.pullFrameHandles":{capName:"stream-broker",capScope:"system",addonId:null,access:"view"},"streamBroker.regenerateRtspToken":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.releaseStreamWithCodec":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.restartProfile":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.retractCameraStream":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.setPreBufferDuration":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.setRtspEnabled":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.subscribeAudioChunks":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.subscribeFrames":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.unassignProfile":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.unsubscribeAudioChunks":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamBroker.unsubscribeFrames":{capName:"stream-broker",capScope:"system",addonId:null,access:"create"},"streamCatalog.getCatalog":{capName:"stream-catalog",capScope:"device",addonId:null,access:"view"},"streamingEngine.getStreamUrl":{capName:"streaming-engine",capScope:"system",addonId:null,access:"view"},"streamingEngine.listStreams":{capName:"streaming-engine",capScope:"system",addonId:null,access:"view"},"streamingEngine.registerStream":{capName:"streaming-engine",capScope:"system",addonId:null,access:"create"},"streamingEngine.unregisterStream":{capName:"streaming-engine",capScope:"system",addonId:null,access:"delete"},"streamParams.getConfigSchema":{capName:"stream-params",capScope:"device",addonId:null,access:"view"},"streamParams.getOptions":{capName:"stream-params",capScope:"device",addonId:null,access:"view"},"streamParams.setProfile":{capName:"stream-params",capScope:"device",addonId:null,access:"create"},"switch.setState":{capName:"switch",capScope:"device",addonId:null,access:"create"},"system.featureFlags":{capName:"system",capScope:"system",addonId:null,access:"view"},"system.forceRetentionCleanup":{capName:"system",capScope:"system",addonId:null,access:"create"},"system.getRetentionConfig":{capName:"system",capScope:"system",addonId:null,access:"view"},"system.health":{capName:"system",capScope:"system",addonId:null,access:"view"},"system.info":{capName:"system",capScope:"system",addonId:null,access:"view"},"system.networkAddresses":{capName:"system",capScope:"system",addonId:null,access:"view"},"system.setRetentionConfig":{capName:"system",capScope:"system",addonId:null,access:"create"},"toast.onToast":{capName:"toast",capScope:"system",addonId:null,access:"view"},"turnProvider.getTurnServers":{capName:"turn-provider",capScope:"system",addonId:null,access:"view"},"update.installUpdate":{capName:"update",capScope:"device",addonId:null,access:"create"},"userManagement.confirmTotp":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.createApiKey":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.createScopedToken":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.createUser":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.deleteUser":{capName:"user-management",capScope:"system",addonId:null,access:"delete"},"userManagement.disableTotp":{capName:"user-management",capScope:"system",addonId:null,access:"delete"},"userManagement.getTotpStatus":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.listApiKeys":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.listOauthSessions":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.listScopedTokens":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.listUsers":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.oauthExchangeCode":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.oauthIssueCode":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.oauthRefresh":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.oauthVerifyAccessToken":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.resetPassword":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.revokeApiKey":{capName:"user-management",capScope:"system",addonId:null,access:"delete"},"userManagement.revokeOauthSession":{capName:"user-management",capScope:"system",addonId:null,access:"delete"},"userManagement.revokeScopedToken":{capName:"user-management",capScope:"system",addonId:null,access:"delete"},"userManagement.setupTotp":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.setUserScopes":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.updateUser":{capName:"user-management",capScope:"system",addonId:null,access:"create"},"userManagement.validateApiKey":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.validateCredentials":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.validateScopedToken":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userManagement.verifyTotp":{capName:"user-management",capScope:"system",addonId:null,access:"view"},"userPasskeys.beginAuthentication":{capName:"user-passkeys",capScope:"system",addonId:null,access:"view"},"userPasskeys.beginRegistration":{capName:"user-passkeys",capScope:"system",addonId:null,access:"create"},"userPasskeys.finishAuthentication":{capName:"user-passkeys",capScope:"system",addonId:null,access:"view"},"userPasskeys.finishRegistration":{capName:"user-passkeys",capScope:"system",addonId:null,access:"create"},"userPasskeys.listPasskeys":{capName:"user-passkeys",capScope:"system",addonId:null,access:"view"},"userPasskeys.removePasskey":{capName:"user-passkeys",capScope:"system",addonId:null,access:"delete"},"vacuumControl.locate":{capName:"vacuum-control",capScope:"device",addonId:null,access:"create"},"vacuumControl.pause":{capName:"vacuum-control",capScope:"device",addonId:null,access:"create"},"vacuumControl.returnToBase":{capName:"vacuum-control",capScope:"device",addonId:null,access:"create"},"vacuumControl.setFanSpeed":{capName:"vacuum-control",capScope:"device",addonId:null,access:"create"},"vacuumControl.start":{capName:"vacuum-control",capScope:"device",addonId:null,access:"create"},"vacuumControl.stop":{capName:"vacuum-control",capScope:"device",addonId:null,access:"create"},"valve.close":{capName:"valve",capScope:"device",addonId:null,access:"create"},"valve.open":{capName:"valve",capScope:"device",addonId:null,access:"create"},"valve.setPosition":{capName:"valve",capScope:"device",addonId:null,access:"create"},"valve.stop":{capName:"valve",capScope:"device",addonId:null,access:"create"},"waterHeater.setAway":{capName:"water-heater",capScope:"device",addonId:null,access:"create"},"waterHeater.setOperationMode":{capName:"water-heater",capScope:"device",addonId:null,access:"create"},"waterHeater.setTargetTemp":{capName:"water-heater",capScope:"device",addonId:null,access:"create"},"webrtc.closeSession":{capName:"webrtc",capScope:"system",addonId:null,access:"create"},"webrtc.createSession":{capName:"webrtc",capScope:"system",addonId:null,access:"create"},"webrtc.handleAnswer":{capName:"webrtc",capScope:"system",addonId:null,access:"create"},"webrtc.handleOffer":{capName:"webrtc",capScope:"system",addonId:null,access:"create"},"webrtc.hasAdaptiveBitrate":{capName:"webrtc",capScope:"system",addonId:null,access:"view"},"webrtc.registerStream":{capName:"webrtc",capScope:"system",addonId:null,access:"create"},"webrtc.supportsStream":{capName:"webrtc",capScope:"system",addonId:null,access:"view"},"webrtc.unregisterStream":{capName:"webrtc",capScope:"system",addonId:null,access:"delete"},"webrtcSession.addIceCandidate":{capName:"webrtc-session",capScope:"device",addonId:null,access:"create"},"webrtcSession.closeSession":{capName:"webrtc-session",capScope:"device",addonId:null,access:"create"},"webrtcSession.createSession":{capName:"webrtc-session",capScope:"device",addonId:null,access:"create"},"webrtcSession.getIceCandidates":{capName:"webrtc-session",capScope:"device",addonId:null,access:"view"},"webrtcSession.getSessionState":{capName:"webrtc-session",capScope:"device",addonId:null,access:"view"},"webrtcSession.handleAnswer":{capName:"webrtc-session",capScope:"device",addonId:null,access:"create"},"webrtcSession.handleOffer":{capName:"webrtc-session",capScope:"device",addonId:null,access:"create"},"webrtcSession.hasAdaptiveBitrate":{capName:"webrtc-session",capScope:"device",addonId:null,access:"view"},"webrtcSession.listStreams":{capName:"webrtc-session",capScope:"device",addonId:null,access:"view"},"zoneAnalytics.getCameraHistory":{capName:"zone-analytics",capScope:"device",addonId:null,access:"view"},"zoneAnalytics.getCurrentSnapshot":{capName:"zone-analytics",capScope:"device",addonId:null,access:"view"},"zoneAnalytics.getUnzonedHistory":{capName:"zone-analytics",capScope:"device",addonId:null,access:"view"},"zoneAnalytics.getZoneHistory":{capName:"zone-analytics",capScope:"device",addonId:null,access:"view"},"zoneRules.listRules":{capName:"zone-rules",capScope:"device",addonId:null,access:"view"},"zoneRules.setRules":{capName:"zone-rules",capScope:"device",addonId:null,access:"create"},"zones.addZone":{capName:"zones",capScope:"device",addonId:null,access:"create"},"zones.listZones":{capName:"zones",capScope:"device",addonId:null,access:"view"},"zones.removeZone":{capName:"zones",capScope:"device",addonId:null,access:"delete"},"zones.updateZone":{capName:"zones",capScope:"device",addonId:null,access:"create"}}),Ra=["accessories","addon-pages","addon-pages-source","addon-routes","addon-settings","addon-widgets","addon-widgets-source","addons","admin-ui","advanced-notifier","alarm-panel","alerts","audio-analysis","audio-analyzer","audio-codec","audio-metrics","auth-provider","automation-control","backup","battery","brightness","broker","button","camera-credentials","camera-streams","climate-control","color","consumables","control","cover","decoder","device-adoption","device-discovery","device-export","device-manager","device-ops","device-provider","device-state","embedding-encoder","events","fan-control","humidifier","integrations","intercom","lawn-mower-control","local-network","lock-control","log-destination","media-player","mesh-network","metrics-provider","motion","motion-detection","motion-trigger","motion-zones","mqtt-broker","native-object-detection","network-access","network-quality","nodes","notification-output","notifier","oauth-integration","osd","pipeline-analytics","pipeline-executor","pipeline-orchestrator","pipeline-runner","platform-probe","privacy-mask","ptz","ptz-autotrack","reboot","recording","restreamer","script-runner","settings-store","smtp-provider","snapshot","snapshot-provider","sso-bridge","storage","storage-evictable","storage-provider","stream-broker","stream-catalog","stream-params","streaming-engine","switch","system","toast","turn-provider","update","user-management","user-passkeys","vacuum-control","valve","water-heater","webrtc","webrtc-session","zone-analytics","zone-rules","zones"],Ba=["accessories","alarm-panel","audio-analysis","audio-metrics","automation-control","battery","brightness","button","camera-credentials","camera-streams","climate-control","color","consumables","control","cover","device-discovery","device-ops","events","fan-control","humidifier","intercom","lawn-mower-control","lock-control","media-player","motion","motion-detection","motion-trigger","motion-zones","native-object-detection","notifier","osd","pipeline-analytics","privacy-mask","ptz","ptz-autotrack","reboot","script-runner","snapshot","stream-catalog","stream-params","switch","update","vacuum-control","valve","water-heater","webrtc-session","zone-analytics","zone-rules","zones"],Ua=["addon-pages","addon-pages-source","addon-routes","addon-settings","addon-widgets","addon-widgets-source","addons","admin-ui","advanced-notifier","alerts","audio-analyzer","audio-codec","auth-provider","backup","broker","decoder","device-adoption","device-export","device-manager","device-provider","device-state","embedding-encoder","integrations","local-network","log-destination","mesh-network","metrics-provider","mqtt-broker","network-access","network-quality","nodes","notification-output","oauth-integration","pipeline-executor","pipeline-orchestrator","pipeline-runner","platform-probe","recording","restreamer","settings-store","smtp-provider","snapshot-provider","sso-bridge","storage","storage-evictable","storage-provider","stream-broker","streaming-engine","system","toast","turn-provider","user-management","user-passkeys","webrtc"];export{za as A,xa as C,Ba as D,Aa as E,Ra as K,Oa as M,Ua as S,Ca as T,Ta as a,Da as f};
@@ -1 +0,0 @@
1
- const p="modulepreload",v=function(l){return"/"+l},d={},y=function(f,c,E){let i=Promise.resolve();if(c&&c.length>0){let r=function(e){return Promise.all(e.map(o=>Promise.resolve(o).then(s=>({status:"fulfilled",value:s}),s=>({status:"rejected",reason:s}))))};document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),u=t?.nonce||t?.getAttribute("nonce");i=r(c.map(e=>{if(e=v(e),e in d)return;d[e]=!0;const o=e.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${s}`))return;const n=document.createElement("link");if(n.rel=o?"stylesheet":p,o||(n.as="script"),n.crossOrigin="",n.href=e,u&&n.setAttribute("nonce",u),document.head.appendChild(n),o)return new Promise((m,h)=>{n.addEventListener("load",m),n.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${e}`)))})}))}function a(r){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=r,window.dispatchEvent(t),!t.defaultPrevented)throw r}return i.then(r=>{for(const t of r||[])t.status==="rejected"&&a(t.reason);return f().catch(a)})};export{y as _};
@@ -1 +0,0 @@
1
- import"./preload-helper-BlTxHScW.js";import{g as r,i as a}from"./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-ChhI9HQF.js";export{r as get,a as init};