@camstack/addon-admin-ui 1.2.440 → 1.2.441

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 (112) hide show
  1. package/dist/assets/{AddonAssetIcon-DoCqXzAv.js → AddonAssetIcon-CCzVCA49.js} +1 -1
  2. package/dist/assets/{Addons-CrSVEbe3.js → Addons-CUPFTOFz.js} +1 -1
  3. package/dist/assets/{AdminPage-KGO_m_yt.js → AdminPage--m3xHpjx.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-BiMhPKOP.js → AdminSectionedPage-D5J86Kfp.js} +1 -1
  5. package/dist/assets/{AiProfiles-D8mKo1K9.js → AiProfiles-CEZqx-Sw.js} +1 -1
  6. package/dist/assets/{BrokerForm-yx58WRgh.js → BrokerForm-Cd5z8Mk0.js} +1 -1
  7. package/dist/assets/{Build-BArewEF3.js → Build-RW9SjiCM.js} +5 -5
  8. package/dist/assets/{Calendars-BdN8ZQmv.js → Calendars-CVnE0N6y.js} +1 -1
  9. package/dist/assets/{Cluster-Bn5YZafT.js → Cluster-DdgLAQcF.js} +1 -1
  10. package/dist/assets/{ClusterStepModel-DPmlzTfm.js → ClusterStepModel-BbVbEWqh.js} +1 -1
  11. package/dist/assets/CompositionEditor-BDEQF7e9.js +1 -0
  12. package/dist/assets/{CompositionEditorPage-BwqVkeY-.js → CompositionEditorPage-D3LiFLq4.js} +1 -1
  13. package/dist/assets/{Data-BvY-zVHv.js → Data-TI1fXQ8e.js} +1 -1
  14. package/dist/assets/DeviceDetail-Ry7b522t.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-C6f9gioM.js → DeviceDoActionFields-n2-NdVST.js} +1 -1
  16. package/dist/assets/{Devices-CtivG8K9.js → Devices-BacO9x6N.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-BD-Z7zz-.js → EmbedPlayerPage-DgFNOUrt.js} +1 -1
  18. package/dist/assets/{Identity-BQNP0wku.js → Identity-BPWd0o-B.js} +1 -1
  19. package/dist/assets/{IntegrationDetail-CzEG-I4B.js → IntegrationDetail-CFsboI2-.js} +1 -1
  20. package/dist/assets/{IntegrationHub-tqxee2Rm.js → IntegrationHub-BRMnV56J.js} +1 -1
  21. package/dist/assets/{Integrations-C7Ptcn3c.js → Integrations-Bf2SzcCT.js} +1 -1
  22. package/dist/assets/{Integrations-GZm_SrQK.js → Integrations-CBqnh8t8.js} +1 -1
  23. package/dist/assets/{Library-ToUHY4O3.js → Library-yKp-qGfV.js} +1 -1
  24. package/dist/assets/{Locations-CPFCvUKd.js → Locations-BCY7diBp.js} +1 -1
  25. package/dist/assets/{Logs-Ds6SPC6o.js → Logs-DWz6dVJo.js} +1 -1
  26. package/dist/assets/{MaskShapeCanvas-BoY32Qvt.js → MaskShapeCanvas-wkrQJhyN.js} +1 -1
  27. package/dist/assets/{MotionZonesSettings-DBW4jTEr.js → MotionZonesSettings-BZneggiu.js} +1 -1
  28. package/dist/assets/{MyAccess-2mSUBp14.js → MyAccess-DmuNu2nC.js} +1 -1
  29. package/dist/assets/{Network-BddKO6B1.js → Network-CMlIm20D.js} +1 -1
  30. package/dist/assets/{NodeAddonsSettingsPanel-CIISQuIL.js → NodeAddonsSettingsPanel-BxeQZ-hu.js} +1 -1
  31. package/dist/assets/Notifications-B0nD4977.js +1 -0
  32. package/dist/assets/{PrivacyMaskSettings-z8P3R0fA.js → PrivacyMaskSettings-CN2hF3qR.js} +1 -1
  33. package/dist/assets/{Recordings-g1Jxg_Lr.js → Recordings-CkHyBhqh.js} +1 -1
  34. package/dist/assets/{ScanNetworkModal-D7N2aC7y.js → ScanNetworkModal-CfHHLP_k.js} +1 -1
  35. package/dist/assets/{SceneMonitorEditor-CyjEekEM.js → SceneMonitorEditor-CU-Yj4Sw.js} +1 -1
  36. package/dist/assets/{SessionsList-bmTxxIOE.js → SessionsList-DrSkZMrj.js} +1 -1
  37. package/dist/assets/{Showroom-PlFtcQrL.js → Showroom-ChGRG_dB.js} +1 -1
  38. package/dist/assets/{System-DxszqVYV.js → System-GfppoElu.js} +1 -1
  39. package/dist/assets/{Terminal-BMG2w8DZ.js → Terminal-C7azorOj.js} +1 -1
  40. package/dist/assets/{Viewer-CRLD_tt7.js → Viewer-DWdf6_8H.js} +1 -1
  41. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-GapjKGVe.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CGI8Rmb1.js} +1 -1
  42. package/dist/assets/{addon-icons-context-BrgGsfoE.js → addon-icons-context-D3LZwxs2.js} +1 -1
  43. package/dist/assets/{archive-Dx-auPAN.js → archive-BOODG6Jz.js} +1 -1
  44. package/dist/assets/{authed-media-MhMmWNH3.js → authed-media-F_SweyTm.js} +1 -1
  45. package/dist/assets/{bell-off-BQQTURVF.js → bell-off-acWBqVHX.js} +1 -1
  46. package/dist/assets/{boxes-BIK98bHo.js → boxes-U2BARjlG.js} +1 -1
  47. package/dist/assets/circle-slash-90QkMLx4.js +1 -0
  48. package/dist/assets/client-yfOXPkcm.js +358 -0
  49. package/dist/assets/{cloud-upload-FvK6xW2I.js → cloud-upload-C12rtBFh.js} +1 -1
  50. package/dist/assets/crop-BjSJZpbg.js +1 -0
  51. package/dist/assets/{device-integration-icon-ClmWzwM_.js → device-integration-icon-BeeizbXV.js} +1 -1
  52. package/dist/assets/device-picker-model-CRpYde_B.js +1 -0
  53. package/dist/assets/dist-BfR6seq4.js +358 -0
  54. package/dist/assets/{dist-CEnfZ10I.js → dist-CQud2KJs.js} +1 -1
  55. package/dist/assets/{eraser-CUAqtnBD.js → eraser-BmJjK2wc.js} +1 -1
  56. package/dist/assets/{hard-drive-download-XGtks2vE.js → hard-drive-download-DfnBSa39.js} +1 -1
  57. package/dist/assets/{history-DqvhlzWX.js → history-CNfarVY1.js} +1 -1
  58. package/dist/assets/{hostInit-DzBGXsvZ.js → hostInit-Df4MAORd.js} +1 -1
  59. package/dist/assets/{icons-DNRi-jSy.js → icons-BLn-D-gO.js} +1 -1
  60. package/dist/assets/{index-yoPG03d0.js → index-CcAR8Rlk.js} +3 -3
  61. package/dist/assets/{key-bw9xhRgT.js → key-BF4fZLz_.js} +1 -1
  62. package/dist/assets/{key-round-BngMS2dZ.js → key-round-CjE9GF4T.js} +1 -1
  63. package/dist/assets/{layers-CIl8QXpN.js → layers-b-H6nVdd.js} +1 -1
  64. package/dist/assets/{linked-devices-model-CclOXMLj.js → linked-devices-model-BMUapBfD.js} +1 -1
  65. package/dist/assets/{list-ordered-_52_xrQ7.js → list-ordered-CxtL1h3H.js} +1 -1
  66. package/dist/assets/{location-owned-usage-5eb6nny3.js → location-owned-usage-DVh3ypCw.js} +1 -1
  67. package/dist/assets/{log-in-DH9Lu6bJ.js → log-in-D4y0eEu8.js} +1 -1
  68. package/dist/assets/{memory-stick-CzaP6KiN.js → memory-stick-jw7STOQc.js} +1 -1
  69. package/dist/assets/{message-square-plus-vMywres_.js → message-square-plus-EaPlmlsM.js} +1 -1
  70. package/dist/assets/{mf-entry-bootstrap-0-54468006.js → mf-entry-bootstrap-0-8a2679ae.js} +2 -2
  71. package/dist/assets/{mic-off-Da09u2hl.js → mic-off-DiEVWn3e.js} +1 -1
  72. package/dist/assets/{monitor-off-jOOWdiSg.js → monitor-off-bCAhCbCp.js} +1 -1
  73. package/dist/assets/{monitor-smartphone-D_W4zyWO.js → monitor-smartphone-ASdELIYw.js} +1 -1
  74. package/dist/assets/mount-CRpYde_B.js +1 -0
  75. package/dist/assets/{notification-schedule-field-LytDFkpQ.js → notification-schedule-field-BKROBLSv.js} +1 -1
  76. package/dist/assets/{player-overlays-CCZE3o8q.js → player-overlays-Fx6RE6kI.js} +1 -1
  77. package/dist/assets/{recycle-BVcCaHVd.js → recycle-twm2_92b.js} +1 -1
  78. package/dist/assets/remoteEntry-D-hdlf-C.js +1 -0
  79. package/dist/assets/{scan-eye-CHwWv39K.js → scan-eye-DuyDP-FQ.js} +1 -1
  80. package/dist/assets/{scissors-BrUBwnKn.js → scissors-BJ2tjgEs.js} +1 -1
  81. package/dist/assets/{search-x-BcR2pidC.js → search-x-C9z-zNBZ.js} +1 -1
  82. package/dist/assets/{send-8R5TbxHN.js → send-C_-A97md.js} +1 -1
  83. package/dist/assets/{settings-2-C4PaSGfb.js → settings-2-A0nya3CH.js} +1 -1
  84. package/dist/assets/{speaker-CBRM7GNH.js → speaker-C8juqhRE.js} +1 -1
  85. package/dist/assets/{src-Cw4W7OtK.js → src-AhVPNkCn.js} +7 -7
  86. package/dist/assets/{timer-reset-DlfKkTg_.js → timer-reset-DHBRudwU.js} +1 -1
  87. package/dist/assets/{ungroup-BzlNECzG.js → ungroup-BLEMoVnk.js} +1 -1
  88. package/dist/assets/{unlink-HIuzqEig.js → unlink-YiKNaJO_.js} +1 -1
  89. package/dist/assets/{usb-DqboQtO8.js → usb-DzR5JdOt.js} +1 -1
  90. package/dist/assets/{use-scenes-feed-Cnl4Is6T.js → use-scenes-feed-wz6RYR34.js} +1 -1
  91. package/dist/assets/{use-stationary-objects-DmFWTPK0.js → use-stationary-objects-ByxBafUy.js} +1 -1
  92. package/dist/assets/useEventInvalidation-CRpYde_B.js +1 -0
  93. package/dist/assets/{useNodeUrlSelection-CSh6gqLc.js → useNodeUrlSelection-v_RZ_Gxk.js} +1 -1
  94. package/dist/assets/user-round-CjXCVqIf.js +1 -0
  95. package/dist/assets/{user-x-ciro8k7Z.js → user-x-CY41cwk1.js} +1 -1
  96. package/dist/assets/{video-BJUj4GaK.js → video-BRgeujOO.js} +1 -1
  97. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-CwjeQPZx.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BrkS3kK7.js} +2 -2
  98. package/dist/index.html +9 -9
  99. package/dist/server/addon.js +230 -197
  100. package/package.json +1 -1
  101. package/dist/assets/CompositionEditor-BhL25d6e.js +0 -1
  102. package/dist/assets/DeviceDetail-g2esa6u-.js +0 -2
  103. package/dist/assets/Notifications-DWJcnXvV.js +0 -1
  104. package/dist/assets/circle-slash-DKE4hxbW.js +0 -1
  105. package/dist/assets/client-Cy6wyTLQ.js +0 -358
  106. package/dist/assets/crop-7vsE3Qcd.js +0 -1
  107. package/dist/assets/device-picker-model-DVvq9nYp.js +0 -1
  108. package/dist/assets/dist-BPMeH1J4.js +0 -358
  109. package/dist/assets/mount-DVvq9nYp.js +0 -1
  110. package/dist/assets/remoteEntry-BOaeaEWk.js +0 -1
  111. package/dist/assets/useEventInvalidation-DVvq9nYp.js +0 -1
  112. package/dist/assets/user-round-C4K7vDWN.js +0 -1
@@ -1,358 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./__vite-browser-external-BlMfPwfH.js","./rolldown-runtime-Cyuzqnbw.js"])))=>i.map(i=>d[i]);
2
- import{a as e,r as t}from"./rolldown-runtime-Cyuzqnbw.js";import{t as n}from"./vite-preload-helper-kNaey6uv.js";import{A as r,C as i,D as a,E as o,F as s,I as c,L as l,M as u,N as d,O as f,P as p,R as m,S as h,T as g,_ as ee,a as te,b as _,c as ne,d as re,f as ie,g as v,h as ae,i as oe,j as y,k as se,l as ce,m as b,n as le,o as ue,p as x,r as de,s as fe,t as pe,u as me,v as S,w as he,x as ge,y as C}from"./__vite-browser-external-BlMfPwfH.js";var _e=[`f32le`,`pcmu`,`pcma`];function ve(e){return typeof e==`string`&&_e.includes(e)}function ye(e){return e===`f32le`?4:1}function be(e,t){if(t===`f32le`){let t=new Uint8Array(e.byteLength);return t.set(e),t}let n=t===`pcmu`?Ce:we,r=new Float32Array(e.length);for(let t=0;t<e.length;t++)r[t]=n[e[t]];return new Uint8Array(r.buffer)}function xe(){let e=new Float32Array(256);for(let t=0;t<256;t++){let n=~t&255,r=n&128?-1:1,i=n>>4&7;e[t]=r*((8*(n&15)+132<<i)-132)/32768}return e}function Se(){let e=new Float32Array(256);for(let t=0;t<256;t++){let n=t^85,r=n&128?1:-1,i=n>>4&7,a=n&15;e[t]=r*(i===0?16*a+8:16*a+264<<i-1)/32768}return e}var Ce=xe(),we=Se(),Te=[`track`,`face`,`identity`,`plate`,`vehicle`,`scene`,`motion`,`object`,`audio`,`mosaic`],Ee=new Set(Te),De=/^\d+$/;function Oe(e){return Ee.has(e)}function ke(e){let t=e.split(`:`);if(t.length!==3&&t.length!==4)return null;let[n,r,i,a]=t;return n===void 0||!Oe(n)||r===void 0||r.length===0||i===void 0||i.length===0?null:a===void 0?{ownerType:n,ownerId:r,fileKind:i}:De.test(a)?{ownerType:n,ownerId:r,fileKind:i,timestampMs:Number(a)}:null}function Ae(e){let t=`${e.ownerType}:${e.ownerId}:${e.fileKind}`;return e.timestampMs===void 0?t:`${t}:${e.timestampMs}`}var je=[`motion`,`object`,`audio`],Me=x(je),Ne=[...je,`track`],Pe=x(Ne),Fe=new Set(je);function Ie(e){return Fe.has(e)}var w=function(e){return e.SystemBoot=`system.boot`,e.SystemAddonsReady=`system.addons-ready`,e.SystemRestarting=`system.restarting`,e.SystemRestartCompleted=`system.restart-completed`,e.SystemTlsCertChanged=`system.tls-cert-changed`,e.UpdateAvailable=`update.available`,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.AddonRunnerFailed=`addon.runner-failed`,e.AddonRunnerRefused=`addon.runner-refused`,e.ProcessStateChanged=`process.state-changed`,e.SystemRunnerCheck=`system.runner-check`,e.AlertEpisode=`alert.episode`,e.AddonError=`addon.error`,e.AddonPageReady=`addon.page-ready`,e.AddonWidgetReady=`addon.widget-ready`,e.AddonLoadFailed=`addon.load-failed`,e.KeychainChanged=`keychain.changed`,e.AddonLoadRecovered=`addon.load-recovered`,e.AddonRetryScheduled=`addon.retry-scheduled`,e.SystemLivenessFailed=`system.liveness-failed`,e.SystemLivenessRecovered=`system.liveness-recovered`,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.StorageLocationsChanged=`storage.locations-changed`,e.RecordingStarted=`recording.started`,e.RecordingStopped=`recording.stopped`,e.RecordingError=`recording.error`,e.RecordingHealthDegraded=`recording.health.degraded`,e.RecordingHealthStalled=`recording.health.stalled`,e.RecordingHealthOk=`recording.health.ok`,e.RecordingStorageCritical=`recording.storage.critical`,e.StorageLocationLow=`storage.location.low`,e.StorageLocationCritical=`storage.location.critical`,e.StorageLocationOk=`storage.location.ok`,e.RecordingSegmentWritten=`recording.segment.written`,e.RecordingPolicyFallback=`recording.policy.fallback`,e.RecordingRetentionCompleted=`recording.retention.completed`,e.RecordingExportProgress=`recording.export.progress`,e.RecordingExportCompleted=`recording.export.completed`,e.RecordingExportFailed=`recording.export.failed`,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.PipelineNodeInferenceUnavailable=`pipeline.node-inference-unavailable`,e.PipelineDetectionBlind=`pipeline.detection-blind`,e.PipelineCameraUpdated=`pipeline.camera-updated`,e.PipelineIngestOwnerChanged=`pipeline.ingest-owner-changed`,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.DeviceNativeShadowChanged=`device.native-shadow-changed`,e.ZoneAnalyticsOccupancyChanged=`zone-analytics.occupancy-changed`,e.BatteryOnStatusChanged=`battery.onStatusChanged`,e.NetworkLinkOnStatusChanged=`network-link.onStatusChanged`,e.BatteryOnWakeStarted=`battery.onWakeStarted`,e.DoorbellOnPressed=`doorbell.onPressed`,e.EventEmitted=`event-emitter.event`,e.PipelineEngineMetricsSnapshot=`pipeline.engine-metrics-snapshot`,e.PipelineEngineProvisioning=`pipeline.engine-provisioning`,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.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.PipelineAnalyticsTrackLifecycle=`pipeline-analytics.track-lifecycle`,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.PipelineAnalyticsStationaryChanged=`pipeline-analytics.stationary-changed`,e.PipelineAnalyticsPackageDelivered=`pipeline-analytics.package-delivered`,e.PipelineAnalyticsPackagePickedUp=`pipeline-analytics.package-picked-up`,e.PipelineAnalyticsFaceGalleryChanged=`pipeline-analytics.face-gallery-changed`,e.PipelineAnalyticsPlateGalleryChanged=`pipeline-analytics.plate-gallery-changed`,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.BackupRunCompleted=`backup.run-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.AddonsJobProgress=`addons.job-progress`,e.AddonsJobLog=`addons.job-log`,e.AccessoriesChildVisibilityChanged=`accessories.onChildVisibilityChanged`,e.AccessoriesChanged=`accessories.onAccessoriesChanged`,e.ModelConvertProgress=`model-convert.progress`,e}({}),Le=new Set([`device.native-shadow-changed`]);function Re(e){return Le.has(e)}function ze(){let e=Object.values(w).filter(e=>typeof e==`string`);return[...new Set(e)].filter(e=>!Re(e)).toSorted()}var Be=`__camstack_redacted__`;function Ve(e){return e.type===`password`?!0:`secret`in e&&e.secret===!0}function He(e){return!Ve(e)||e.type===`textarea`&&e.isJson===!0?!1:!(`storage`in e&&e.storage===`inline`)}function Ue(e){let t=new Set;for(let n of Xe(e))for(let e of Ze(n))Qe(e,t);return t}function We(e,t){let n=new Set;for(let t of Xe(e))for(let e of Ze(t))Ge(e,n);if(n.size===0)return t;let r={...t};for(let e of n)delete r[e];return r}function Ge(e,t){if(!Ye(e))return;let n=e.type,r=e.key;if(e.omitFromSettings===!0&&typeof r==`string`&&r.length>0&&t.add(r),n===`group`){for(let n of Ze(e))Ge(n,t);return}if(n===`sub-tabs`){let n=e.tabs;if(!Array.isArray(n))return;for(let e of n)for(let n of Ze(e))Ge(n,t)}}function Ke(e){let t=new Set;for(let n of Xe(e))for(let e of Ze(n))qe(e,t);return t}function qe(e,t){if(!Ye(e))return;let n=e.type,r=e.key,i=n===`password`||e.secret===!0,a=n===`textarea`&&e.isJson===!0;if(i&&!a&&e.storage!==`inline`&&typeof r==`string`&&r.length>0&&t.add(r),n===`group`){for(let n of Ze(e))qe(n,t);return}if(n===`sub-tabs`){let n=e.tabs;if(!Array.isArray(n))return;for(let e of n)for(let n of Ze(e))qe(n,t)}}function Je(e){for(let t of Xe(e))if(Ze(t).length>0)return!0;return!1}function Ye(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Xe(e){if(!Ye(e))return[];let t=e.sections;return Array.isArray(t)?t:[]}function Ze(e){if(!Ye(e))return[];let t=e.fields;return Array.isArray(t)?t:[]}function Qe(e,t){if(!Ye(e))return;let n=e.type,r=e.key;if((n===`password`||e.secret===!0)&&typeof r==`string`&&r.length>0&&t.add(r),n===`group`){for(let n of Ze(e))Qe(n,t);return}if(n===`sub-tabs`){let n=e.tabs;if(!Array.isArray(n))return;for(let e of n)for(let n of Ze(e))Qe(n,t)}}var $e={$secretClear:!0},et=`***`;function tt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function nt(e){return{$secret:e,v:1}}function T(e){if(!tt(e))return!1;let t=e.$secret;return typeof t==`string`&&t.length>0}function rt(e){return tt(e)&&Object.prototype.hasOwnProperty.call(e,`$secret`)}function it(e){return tt(e)&&e.$secretClear===!0}function at(e){return tt(e)&&e.set===!0&&rt(e)}function ot(e){return T(e)?{$secret:e.$secret,v:1,set:!0}:typeof e==`string`&&e.length>0?{$secret:null,v:1,set:!0,inline:!0}:null}function st(e){return it(e)?{kind:`clear`}:typeof e!=`string`||e.length===0||e===`__camstack_redacted__`||e===et?{kind:`keep`}:{kind:`set`,value:e}}var ct=[{id:`overview`,label:`Overview`,icon:`layout-dashboard`,order:-10},{id:`general`,label:`General`,icon:`settings`,order:0},{id:`image`,label:`Image`,icon:`image`,order:5},{id:`light`,label:`Light`,icon:`lightbulb`,order:7},{id:`motion`,label:`Motion`,icon:`activity`,order:10},{id:`audio`,label:`Audio`,icon:`mic`,order:12},{id:`alarms`,label:`Alarms`,icon:`bell-ring`,order:13},{id:`snapshot`,label:`Snapshot`,icon:`camera`,order:15},{id:`osd`,label:`OSD`,icon:`type`,order:18},{id:`stream-broker`,label:`Stream Broker`,icon:`radio`,order:20},{id:`streaming`,label:`Streaming`,icon:`video`,order:35},{id:`ptz`,label:`PTZ`,icon:`move`,order:40},{id:`navigation`,label:`Navigation`,icon:`compass`,order:41},{id:`consumables`,label:`Consumables`,icon:`recycle`,order:44},{id:`pipeline`,label:`Detection Pipeline`,icon:`cpu`,order:39},{id:`detection-pipeline`,label:`Detection pipeline`,icon:`cpu`,order:39},{id:`zones`,label:`Detection`,icon:`shapes`,order:38},{id:`analytics`,label:`Analytics`,icon:`activity`,order:37},{id:`live-stats`,label:`Live Stats`,icon:`activity`,order:39},{id:`recording`,label:`Recording`,icon:`circle-dot`,order:40},{id:`engine`,label:`Inference Engine`,icon:`zap`,order:41},{id:`scheduler`,label:`Scheduler`,icon:`list-checks`,order:42},{id:`decoder`,label:`Decoder`,icon:`film`,order:43},{id:`notifications`,label:`Notifications`,icon:`bell`,order:50},{id:`network`,label:`Network`,icon:`globe`,order:60},{id:`storage`,label:`Storage`,icon:`hard-drive`,order:70},{id:`advanced`,label:`Advanced`,icon:`wrench`,order:100}],lt=Object.fromEntries(ct.map(e=>[e.id,e]));function ut(e){return e.type===`separator`||e.type===`info`||e.type===`qr-code`||e.type===`button`||e.type===`object-array`||e.type===`widget`||e.type===`addon-action-button`||e.type===`device-action-button`}function dt(e){let t=new Map;if(typeof e!=`object`||!e)return t;let n=e.sections;if(!Array.isArray(n))return t;for(let e of n)typeof e==`object`&&e&&ft(e.fields,t);return t}function ft(e,t){if(Array.isArray(e))for(let n of e){if(typeof n!=`object`||!n)continue;let e=n.type;if(e===`group`){ft(n.fields,t);continue}if(e===`sub-tabs`){let e=n.tabs;if(Array.isArray(e))for(let n of e)typeof n==`object`&&n&&ft(n.fields,t);continue}let r=n.key;typeof r!=`string`||r.length===0||`value`in n&&t.set(r,{value:n.value,default:n.default})}}function pt(e){let t=new Map;for(let[n,r]of dt(e))t.set(n,r.value??r.default);return t}function mt(e,t){let n=dt(e).get(t);return n===void 0?void 0:n.value??n.default}function ht(e,t,n={}){return{...e.tabs?{tabs:[...e.tabs]}:{},sections:e.sections.map(e=>({...e,fields:e.fields.map(e=>gt(e,t,n))}))}}function gt(e,t,n){if(ut(e))return e;if(e.type===`group`){let r=e.fields.map(e=>gt(e,t,n));return{...e,fields:r}}if(e.type===`sub-tabs`){let r=e.tabs.map(e=>({...e,fields:e.fields.map(e=>gt(e,t,n))}));return{...e,tabs:r}}let r=e.key,i=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0,a=e.default,o=e=>T(e)||n.inlineSecretsAsViews===!0&&e!==void 0;if(He(e)&&o(i))return{...e,value:ot(i)};if(He(e)&&n.inlineSecretsAsViews===!0)return{...e,value:null};if(e.type===`editable-array`&&Array.isArray(i)){let t=e.itemFields.filter(e=>`key`in e&&He(e)).map(e=>`key`in e?e.key:``);if(t.length>0){let n=i.map(e=>{if(typeof e!=`object`||!e||Array.isArray(e))return e;let n={...e};for(let r of t){let t=Reflect.get(e,r);o(t)&&(n[r]=ot(t))}return n});return{...e,value:n}}}if(e.multiple){let t=Array.isArray(i)?i:i==null?[]:[i],n=e.multiple.itemDefault===void 0?a===void 0?_t(e)===`string`?``:null:a:e.multiple.itemDefault,r=Math.max(e.multiple.min,t.length),o=[];for(let e=0;e<r;e++)o.push(e<t.length?t[e]:n);return{...e,value:o}}let s=i===void 0?a===void 0?null:a:i,c=e.type===`textarea`&&e.isJson&&typeof s==`object`&&s?JSON.stringify(s,null,2):s;if(e.type===`tags`&&typeof e.suggestionsFrom==`string`){let n=t[e.suggestionsFrom],r=Array.isArray(n)?n.filter(e=>typeof e==`string`&&e.length>0):[],i=[...new Set([...e.suggestions??[],...r])];return{...e,suggestions:i,value:c}}if((e.type===`select`||e.type===`multiselect`)&&typeof e.optionsFrom==`string`){let n=t[e.optionsFrom],r=new Map;for(let t of e.options)r.set(t.value,t);if(Array.isArray(n))for(let e of n){if(typeof e==`string`&&e.length>0){r.has(e)||r.set(e,{value:e,label:e});continue}if(typeof e!=`object`||!e)continue;let t=Reflect.get(e,`value`),n=Reflect.get(e,`label`);typeof t!=`string`||t.length===0||r.has(t)||r.set(t,{value:t,label:typeof n==`string`&&n.length>0?n:t})}return{...e,options:[...r.values()],value:c}}return{...e,value:c}}function _t(e){switch(e.type){case`text`:case`textarea`:case`password`:case`color`:case`probe`:case`timezone`:case`datetime`:return`string`;case`number`:case`slider`:return`number`;case`boolean`:return`boolean`;default:return`other`}}function vt(e){if(e.type===`group`)return{...e,fields:e.fields.map(vt)};if(e.type===`sub-tabs`)return{...e,tabs:e.tabs.map(e=>({...e,fields:e.fields.map(vt)}))};if(ut(e))return e;let{value:t,...n}=e;return n}function yt(e){return{...e.tabs?{tabs:[...e.tabs]}:{},sections:e.sections.map(e=>({...e,fields:e.fields.map(vt)}))}}function bt(e,t){return e.category===t}function xt(e,t,n){return{id:typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2),timestamp:new Date,source:t,category:e,data:n}}function St(e,t){let n=t.ts??Date.now();e.emit(xt(`system.ready-state`,{type:`capability`,id:t.capName,nodeId:t.sourceNodeId},{capName:t.capName,scope:t.scope,state:t.state,generation:t.generation,sourceNodeId:t.sourceNodeId,ts:n}))}function Ct(e){let t=async()=>{let t=(await e.read())[e.key];if(t===void 0)return e.fallback;let n=e.schema.safeParse(t);return n.success?n.data:(e.onParseError?.(e.key,n.error),e.fallback)},n=async t=>{let n=e.schema.parse(t);await e.write({[e.key]:n})};return{get:t,set:n,update:async e=>{await n(e(await t()))}}}function wt(e){if(e==null||e===``)return`hub`;let t=e.indexOf(`/`);if(t<0)return e;let n=e.slice(0,t);return n===``?`hub`:n}function Tt(e,t){return`${e}@${wt(t)}`}function Et(e,t,n){return e[Tt(t,n)]}function Dt(e,t,n){let r={};for(let[i,a]of Object.entries(e))r[t.has(i)?Tt(i,n):i]=a;return r}function Ot(e,t,n){let r={};for(let[n,i]of Object.entries(e))n.includes(`@`)||t.has(n)||(r[n]=i);for(let i of t){let t=Et(e,i,n);t!==void 0&&(r[i]=t)}return r}var kt=`secret://`,At={kind:`global`};function jt(){return At}function Mt(e){return e.startsWith(`addon:`)?e.slice(6):e}function Nt(e){return encodeURIComponent(e)}function Pt(e){try{return decodeURIComponent(e)}catch{return null}}function Ft(e){switch(e.kind){case`global`:return`global`;case`node`:return`node/${Nt(e.nodeId)}`;case`device`:return`device/${e.deviceId}`;case`integration`:return`integration/${Nt(e.integrationId)}`;case`row`:return`row/${Nt(e.collection)}/${Nt(e.rowId)}`}}function It(e,t,n){return`${e}[${Nt(t)}].${n}`}function Lt(e){let t=Mt(e.owner);if(t.length===0)throw Error(`buildSecretRef: owner is empty`);if(e.fieldPath.length===0)throw Error(`buildSecretRef: fieldPath is empty`);return`${kt}${Nt(t)}/${Ft(e.scope)}/${e.fieldPath}`}function Rt(e){return typeof e==`string`&&Bt(e)!==null}function zt(e){switch(e[0]){case`global`:return{scope:At,used:1};case`node`:{let t=e[1]===void 0?null:Pt(e[1]);return t===null||t.length===0?null:{scope:{kind:`node`,nodeId:t},used:2}}case`device`:{let t=e[1];return t===void 0||!/^\d+$/.test(t)?null:{scope:{kind:`device`,deviceId:Number(t)},used:2}}case`integration`:{let t=e[1]===void 0?null:Pt(e[1]);return t===null||t.length===0?null:{scope:{kind:`integration`,integrationId:t},used:2}}case`row`:{let t=e[1]===void 0?null:Pt(e[1]),n=e[2]===void 0?null:Pt(e[2]);return t===null||n===null||t.length===0||n.length===0?null:{scope:{kind:`row`,collection:t,rowId:n},used:3}}default:return null}}function Bt(e){if(!e.startsWith(`secret://`))return null;let t=e.slice(9).split(`/`),n=t[0]===void 0?null:Pt(t[0]);if(n===null||n.length===0)return null;let r=zt(t.slice(1));if(r===null)return null;let i=t.slice(1+r.used).join(`/`);return i.length===0?null:{owner:n,scope:r.scope,fieldPath:i}}var Vt=class extends Error{fieldPath;constructor(e,t){super(`secret "${e}" was not saved: the keychain could not store it (${t instanceof Error?t.message:String(t)}). Nothing was written.`),this.fieldPath=e,this.name=`KeychainWriteRefusedError`}},Ht={kind:`keep`};function Ut(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Wt(){return globalThis.crypto.randomUUID()}function E(e,t=[]){if(T(e))return t.push(e.$secret),t;if(Array.isArray(e))for(let n of e)E(n,t);else if(Ut(e))for(let n of Object.values(e))E(n,t);return t}async function Gt(e,t,n){let r=(await e.resolve([t.$secret]))[t.$secret];return r?.kind===`value`&&r.value===n}async function Kt(e,t,n,r){let i=st(t),a=e.secrets.ref(e.scope,r),o=T(n)&&n.$secret===a;if(i.kind===`keep`||i.kind===`set`&&!e.operatorWrite&&typeof n==`string`&&n===i.value)return Ht;if(i.kind===`clear`)return o&&e.deletes.push(a),{kind:`value`,value:null};if(o&&await Gt(e.secrets,n,i.value))return{kind:`value`,value:n};try{await e.secrets.put(a,i.value)}catch(e){throw new Vt(r,e)}return{kind:`value`,value:nt(a)}}function qt(e,t,n,r){if(n.kind===`value`){e[t]=n.value;return}Object.prototype.hasOwnProperty.call(r,t)?e[t]=r[t]:delete e[t]}async function Jt(e,t,n,r,i){let a={...n};for(let[o,s]of t)qt(a,o,await Zt(e,s,n[o],r[o],i(o)),r);return a}function Yt(e,t){let n=e[t];return typeof n==`string`&&n.length>0?n:typeof n==`number`&&Number.isFinite(n)?String(n):null}async function Xt(e,t,n,r,i){let a=Array.isArray(r)?r.filter(Ut):[];if(!Array.isArray(n))return e.deletes.push(...E(a)),{kind:`value`,value:n};let o=new Map;for(let e of a){let n=Yt(e,t.idKey);n!==null&&o.set(n,e)}let s=new Set,c=[];for(let r of n){if(!Ut(r)){c.push(r);continue}let n=Yt(r,t.idKey)??e.mintId();s.add(n);let a={...r,[t.idKey]:r[t.idKey]??n};Yt(a,t.idKey)===null&&(a[t.idKey]=n);let l=o.get(n)??{};c.push(await Jt(e,t.item,a,l,e=>It(i,n,e)))}for(let[t,n]of o)s.has(t)||e.deletes.push(...E(n));return{kind:`value`,value:c}}async function Zt(e,t,n,r,i){switch(t.kind){case`leaf`:return Kt(e,n,r,i);case`array`:return Xt(e,t,n,r,i);case`object`:{if(!Ut(n))return n===void 0?Ht:(e.deletes.push(...E(r)),{kind:`value`,value:n});let a=Ut(r)?r:{};return{kind:`value`,value:await Jt(e,t.children,n,a,e=>`${i}.${e}`)}}}}function eee(e){let t=e.indexOf(`@`);return t<=0?{base:e,nodeId:null}:{base:e.slice(0,t),nodeId:e.slice(t+1)}}async function Qt(e){let t=[],n={secrets:e.secrets,mintId:e.mintId??Wt,deletes:t,operatorWrite:e.operatorWrite===!0},r={};for(let[t,i]of Object.entries(e.patch)){let{base:a,nodeId:o}=eee(t),s=e.tree.get(a);if(s===void 0){r[t]=i;continue}let c=o!==null&&o.length>0?{kind:`node`,nodeId:o}:e.scope??jt(),l=await Zt({...n,scope:c},s,i,e.stored[t],a);l.kind===`value`&&(r[t]=l.value)}return{patch:r,afterWrite:async()=>{if(t.length===0)return{orphaned:[]};try{return await e.secrets.delete([...new Set(t)]),{orphaned:[]}}catch{return{orphaned:[...new Set(t)]}}}}}function $t(e,t){return Bt(e)?.owner===t}async function en(e,t,n={}){let r=n.unresolved===`keep-marker`,i=n.ownedBy,a=e=>i===void 0||$t(e,i),o=E(e).filter(a);if(o.length===0)return{value:e,unresolved:[]};let s=await t.resolve(o),c=[];for(let e of new Set(o)){let t=s[e];t===void 0?c.push({ref:e,reason:`not-initialized`}):t.kind===`unavailable`?c.push({ref:e,reason:t.reason}):(t.kind===`missing`||t.kind===`forbidden`)&&c.push({ref:e,reason:t.kind})}let l=e=>{if(T(e)){if(!a(e.$secret))return{keep:!0,value:e};let t=s[e.$secret];return t?.kind===`value`?{keep:!0,value:t.value}:r?{keep:!0,value:e}:{keep:!1,value:void 0}}if(Array.isArray(e)){let t=[];for(let n of e){let e=l(n);e.keep&&t.push(e.value)}return{keep:!0,value:t}}if(Ut(e)){let t={};for(let[n,r]of Object.entries(e)){let e=l(r);e.keep&&(t[n]=e.value)}return{keep:!0,value:t}}return{keep:!0,value:e}};return{value:l(e).value,unresolved:c}}var tn=class extends Error{ref;reason;constructor(e,t){super(`secret ${e} was not replaced: its stored value cannot be read right now (${t}), and an addon may not overwrite a secret it cannot see. Nothing was written.`),this.ref=e,this.reason=t,this.name=`SecretOverwriteRefusedError`}};function nn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function rn(e,t){let n=e.answers[t.$secret];return n?.kind===`value`?n.value:null}async function an(e,t,n){if(t===null)return n;if(typeof t!=`string`)return t;if(t===rn(e,n))return n;let r=st(t);if(r.kind!==`set`)return n;let i=n.$secret;if(!$t(i,e.secrets.owner))return t;let a=e.answers[i];if((a===void 0||a.kind===`unavailable`||a.kind===`forbidden`)&&!e.operatorWrite)throw new tn(i,a===void 0?`not-initialized`:a.kind===`unavailable`?a.reason:a.kind);try{await e.secrets.put(i,r.value)}catch(e){throw new Vt(i,e)}return e.changedRefs.push(i),n}function on(e,t,n){return t.map((t,r)=>{let i=n[r];return T(i)?typeof t==`string`&&t===rn(e,i)?i:t:nn(t)&&nn(i)?sn(e,t,i):Array.isArray(t)&&Array.isArray(i)?on(e,t,i):t})}function sn(e,t,n){let r={...t};for(let[i,a]of Object.entries(t)){let t=n[i];T(t)?typeof a==`string`&&a===rn(e,t)&&(r[i]=t):nn(a)&&nn(t)?r[i]=sn(e,a,t):Array.isArray(a)&&Array.isArray(t)&&(r[i]=on(e,a,t))}return r}async function cn(e,t,n){if(T(n))return an(e,t,n);if(Array.isArray(t)&&Array.isArray(n))return on(e,t,n);if(!nn(t)||!nn(n))return t;let r={...t};for(let[i,a]of Object.entries(t))r[i]=await cn(e,a,n[i]);return r}async function ln(e){let t=[];for(let n of Object.keys(e.patch))E(e.stored[n],t);let n=t.filter(t=>$t(t,e.secrets.owner));if(n.length===0)return{patch:e.patch,changedRefs:[]};let r={secrets:e.secrets,answers:await e.secrets.resolve([...new Set(n)]),operatorWrite:e.operatorWrite,changedRefs:[]},i={};for(let[t,n]of Object.entries(e.patch))i[t]=await cn(r,n,e.stored[t]);return{patch:i,changedRefs:r.changedRefs}}function un(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>un(e,t[n]));if(nn(e)&&nn(t)){let n=Object.keys(e);return n.length===Object.keys(t).length?n.every(n=>Object.prototype.hasOwnProperty.call(t,n)&&un(e[n],t[n])):!1}return!1}function dn(e,t){let n={};for(let[r,i]of Object.entries(e))Object.prototype.hasOwnProperty.call(t,r)&&un(i,t[r])||(n[r]=i);return n}function fn(e,t){let n=new Set;for(let[r,i]of Object.entries(e))E(i).some(e=>$t(e,t))&&n.add(r);return n}function pn(e,t){if(T(e))return $t(e.$secret,t)?{kind:`leaf`}:null;if(!nn(e))return null;let n=new Map;for(let[r,i]of Object.entries(e)){let e=pn(i,t);e!==null&&n.set(r,e)}return n.size>0?{kind:`object`,children:n}:null}function mn(e,t,n,r){let i=new Map;for(let a of n){let n=a.indexOf(`@`),o=n>0?a.slice(0,n):a;if(e.has(o)||i.has(o))continue;let s=pn(t[a],r);s!==null&&i.set(o,s)}return i.size===0?e:new Map([...e,...i])}async function hn(e){let t=e.readAddonStoreResult;if(t===void 0)return e.readAddonStore();let n=await t.call(e);if(n.kind===`failed`)throw Error(`settings write refused: the stored blob could not be read (${n.error})`);return n.kind===`missing`?{}:n.value}function gn(e,t){if(e.size===0)return!1;for(let n of Object.keys(t)){let t=n.indexOf(`@`);if(e.has(t>0?n.slice(0,t):n))return!0}return!1}var _n=class{owner;byStore=new Map;constructor(e){this.owner=e}seen(e,t){this.byStore.set(e,fn(t,this.owner))}wrote(e,t){let n=this.byStore.get(e);if(n===void 0)return;let r=fn(t,this.owner);for(let e of Object.keys(t))r.has(e)?n.add(e):n.delete(e)}mayHoldMarkers(e,t){let n=this.byStore.get(e);return n===void 0?!0:Object.keys(t).some(e=>n.has(e))}};function vn(e,t){let n=new Map,r=(e,t)=>{let r=(n.get(e)??Promise.resolve()).then(t,t),i=r.catch(()=>void 0);return n.set(e,i),i.then(()=>{n.get(e)===i&&n.delete(e)}),r},i=new _n(t.secrets.owner),a=async(e,n)=>{i.seen(e,n);let{value:r,unresolved:a}=await en(n,t.secrets,{unresolved:`keep-marker`,ownedBy:t.secrets.owner});return a.length>0&&t.onUnresolved?.(a),r},o=async(e,n,a,o,s,c)=>!gn(n,o)&&!i.mayHoldMarkers(e,o)?(await c(o),i.wrote(e,o),{changed:!0}):r(e,async()=>{let r=await s();i.seen(e,r);let l=t.isOperatorWrite?.()===!0,u=await ln({patch:o,stored:r,secrets:t.secrets,operatorWrite:l}),d=await Qt({tree:mn(n,r,Object.keys(u.patch),t.secrets.owner),secrets:t.secrets,patch:u.patch,stored:r,...a===void 0?{}:{scope:a},operatorWrite:l}),f=dn(d.patch,r),p=Object.keys(f).length>0;p&&(await c(f),i.wrote(e,f));let{orphaned:m}=await d.afterWrite();return m.length>0&&t.onOrphaned(m),{changed:p||u.changedRefs.length>0}}),s=n=>o(`addon`,t.addonTree(),void 0,n,()=>hn(e),t=>e.writeAddonStore(t)),c=e.readAddonStoreResult,l=e.readAddonStoreKeyResult,u={readAddonStore:async()=>a(`addon`,await e.readAddonStore()),...c===void 0?{}:{readAddonStoreResult:async()=>{let t=await c.call(e);return t.kind===`value`?{kind:`value`,value:await a(`addon`,t.value)}:t}},...l===void 0?{}:{readAddonStoreKeyResult:async n=>{let r=await l.call(e,n);if(r.kind!==`present`)return r;let{value:i,unresolved:a}=await en({[n]:r.value},t.secrets,{unresolved:`keep-marker`,ownedBy:t.secrets.owner});return a.length>0&&t.onUnresolved?.(a),{kind:`present`,value:i[n]}}},readDeviceStore:async t=>a(`device:${t}`,await e.readDeviceStore(t)),readDeviceStoreBatch:async t=>{let n=await e.readDeviceStoreBatch(t),r=new Map;for(let[e,t]of n)r.set(e,await a(`device:${e}`,t));return r},writeAddonStore:async e=>{await s(e)},writeDeviceStore:async(n,r)=>{await o(`device:${n}`,t.deviceTree(),{kind:`device`,deviceId:n},r,()=>e.readDeviceStore(n),t=>e.writeDeviceStore(n,t))}};return{settings:new Proxy(e,{get(e,t,n){if(typeof t==`string`&&Object.prototype.hasOwnProperty.call(u,t))return Reflect.get(u,t);let r=Reflect.get(e,t,n);return typeof r==`function`?r.bind(e):r}}),raw:{readAddonStore:async()=>{let t=await e.readAddonStore();return i.seen(`addon`,t),t},readDeviceStore:async t=>{let n=await e.readDeviceStore(t);return i.seen(`device:${t}`,n),n}},writeAddonStore:s}}function yn(e,t){let n=e.settings;if(n===void 0)return{context:e,handle:null};let r=vn(n,t);return{context:new Proxy(e,{get(e,t,n){return t===`settings`?r.settings:Reflect.get(e,t,n)}}),handle:r}}var bn={kind:`leaf`},xn=`id`;function Sn(e,t){for(let n of e){if(n.type===`group`){Sn(n.fields,t);continue}if(n.type===`sub-tabs`){for(let e of n.tabs)Sn(e.fields,t);continue}if(n.type===`editable-array`){let e=new Map;for(let t of n.itemFields)`key`in t&&He(t)&&e.set(t.key,bn);e.size>0&&t.set(n.key,{kind:`array`,idKey:n.itemIdKey??xn,item:e});continue}!(`key`in n)||typeof n.key!=`string`||He(n)&&t.set(n.key,bn)}}function Cn(e){let t=new Map;if(e===null)return t;for(let n of e.sections)Sn(n.fields,t);return t}function wn(e){let t=[];for(let n of e.split(`.`)){let r=/^([^[\]]+)(?:\[([^[\]]+)\])?$/.exec(n);if(r===null||r[1]===void 0)throw Error(`secretStatePaths: malformed path "${e}"`);t.push(r[2]===void 0?{key:r[1]}:{key:r[1],idKey:r[2]})}if(t.length===0)throw Error(`secretStatePaths: empty path`);if(t[t.length-1]?.idKey!==void 0)throw Error(`secretStatePaths: "${e}" ends on an array — name the member that is secret`);return t}function Tn(e,t){let[n,...r]=t;if(n===void 0)return;if(r.length===0){e.set(n.key,bn);return}let i=e.get(n.key);if(n.idKey!==void 0){let t=new Map(i?.kind===`array`?i.item:[]);Tn(t,r),e.set(n.key,{kind:`array`,idKey:n.idKey,item:t});return}let a=new Map(i?.kind===`object`?i.children:[]);Tn(a,r),e.set(n.key,{kind:`object`,children:a})}function En(e,t){if(t.length===0)return e;let n=new Map(e);for(let e of t)Tn(n,wn(e));return n}function Dn(e){let t=new Map;for(let n of e)n.length!==0&&Tn(t,wn(n.replace(/\[\]/g,`[${xn}]`)));return t}var On=5e3,kn=5*6e4,An=250,jn=class{_ctx=null;_config;_readinessGeneration=typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2,14);_registeredCapNames=[];settingsStoreReady=!1;defaults;secretStatePaths=[];_addonSecretTree=null;_deviceSecretTree=null;_configSecretRefs=new Set;_unresolvedSecrets=[];_secretRetryTimer=null;_secretRetryDelayMs=On;_secretChangeTimer=null;_secretChangeUnsub=null;_operatorWriteDepth=0;_secretSettings=null;_loggedUnresolvedReads=new Set;constructor(e){this.defaults=e,this._config={...e}}get autoEmitReadiness(){return!0}get ctx(){if(!this._ctx)throw Error(`${this.constructor.name}: ctx accessed before initialize()`);return this._ctx}get ctxIfReady(){return this._ctx}get config(){return this._config}async initialize(e){let t=e.secrets;if(t!==void 0){let{context:n,handle:r}=yn(e,{secrets:t,addonTree:()=>this.addonSecretTree(),deviceTree:()=>this.deviceSecretTree(),onOrphaned:t=>e.logger.warn(`keychain refs dropped by a settings write could not be deleted`,{meta:{refs:[...t]}}),isOperatorWrite:()=>this._operatorWriteDepth>0,onUnresolved:e=>this.logUnresolvedRead(e)});this._ctx=n,this._secretSettings=r}else this._ctx=e,this._secretSettings=null;await this.resolveConfig(),t!==void 0&&(this._secretChangeUnsub=t.onChange(e=>{this._configSecretRefs.has(e)&&this.scheduleSecretReresolve(An)}));let n=await this.onInitialize();this.emitLifecycle(w.AddonStarted);let r=Wn(n),i=r&&`providers`in r&&r.providers?r.providers:[];return this._registeredCapNames=i.map(e=>e.capability.name),r}postBrokerStart(){this.autoEmitReadiness&&this._registeredCapNames.length>0&&this.emitReadinessForProviders(`ready`)}async onHubReachable(){}async shutdown(){this._secretChangeUnsub?.(),this._secretChangeUnsub=null,this._secretRetryTimer!==null&&clearTimeout(this._secretRetryTimer),this._secretChangeTimer!==null&&clearTimeout(this._secretChangeTimer),this._secretRetryTimer=null,this._secretChangeTimer=null,this.emitLifecycle(w.AddonStopped),this.autoEmitReadiness&&this.emitReadinessForProviders(`down`),await this.onShutdown();for(let 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}integrationSettingSections(){return[]}async getGlobalSettings(e,t,n){let r=this.globalSettingsSchema(t);if(!r)return{sections:[]};let i=await this.readRawProjectedStore(n,t);return ht(r,e?await this.overlayKeepingMarkers(i,e):i,{inlineSecretsAsViews:!0})}async getIntegrationSettings(e){let t=this.integrationSettingSections();if(t.length===0)return null;let n=this.globalSettingsSchema();if(!n)throw Error(`${this.constructor.name}: integrationSettingSections() names [${t.join(`, `)}] but globalSettingsSchema() returns null.`);let r=new Map(n.sections.map(e=>[e.id,e])),i=[];for(let e of t){let t=r.get(e);if(!t)throw Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${e}". Known sections: [${[...r.keys()].join(`, `)}].`);let n=Hn(t.fields);n.length!==0&&i.push({...t,fields:n})}if(i.length===0)return null;let a=await this.readRawProjectedStore(e);return ht({...n,sections:i},a,{inlineSecretsAsViews:!0})}async resolveGlobalStore(e,t){let n=await this._ctx?.settings?.readAddonStore()??{};return this.projectForNode(n,e,t)}projectForNode(e,t,n){let r=this.perNodeKeys(n),i=wt(t??this._ctx?.kernel?.localNodeId);return r.size>0?Ot(e,r,i):e}async readRawProjectedStore(e,t){let n=await this.rawSettings()?.readAddonStore()??{};return this.projectForNode(n,e,t)}async overlayKeepingMarkers(e,t){let n=this._ctx?.secrets,r={...e,...t};if(n===void 0||E(e).length===0)return r;let{value:i}=await en(e,n,{unresolved:`keep-marker`,ownedBy:n.owner});for(let n of Object.keys(t))E(e[n]).length!==0&&un(t[n],i[n])&&(r[n]=e[n]);return r}async readStoredGlobalKey(e){let t=this._ctx?.settings?.readAddonStoreResult;if(t===void 0)return{kind:`unreadable`,reason:`three-way-read-unavailable`};let n;try{n=await t.call(this._ctx?.settings)}catch(e){return{kind:`unreadable`,reason:`store-read-failed`,error:e instanceof Error?e.message:String(e)}}return n.kind===`failed`?{kind:`unreadable`,reason:`store-read-failed`,error:n.error}:n.kind===`missing`||!Object.prototype.hasOwnProperty.call(n.value,e)?{kind:`absent`}:{kind:`present`,value:n.value[e]}}async updateGlobalSettingsAsOperator(e,t){this._operatorWriteDepth++;try{await this.applyGlobalPatch(e,t)}finally{this._operatorWriteDepth--}}async updateGlobalSettings(e,t){await this.applyGlobalPatch(e,t)}async clearSecrets(e,t){let n=this.addonSecretTree(),r=this._ctx?.secrets!==void 0,i=r?await this.readAddonStoreWithRetry():{},a={};for(let t of e){let e=n.has(t)||E(i[t]).length>0;a[t]=r&&e?$e:``}await this.applyGlobalPatch(a,t)}async applyGlobalPatch(e,t){let n=this.perNodeKeys(),r=wt(this._ctx?.kernel?.localNodeId),i=wt(t??this._ctx?.kernel?.localNodeId),a=n.size>0?Dt(e,n,i):e,o=this._secretSettings;if(o!==null){let{changed:e}=await o.writeAddonStore(a);if(!e)return}else await this._ctx?.settings?.writeAddonStore(a);i===r&&(await this.resolveConfig(),await this.onConfigChanged(),this.emitLifecycle(w.AddonUpdated,{level:`global`}),this.maybeAutoRestart(Object.keys(e),this.globalSettingsSchema()))}_perNodeKeysCache=new Map;perNodeKeys(e){let t=e??``,n=this._perNodeKeysCache.get(t);if(n)return n;let r=this.globalSettingsSchema(e),i=new Set(r?r.sections.flatMap(e=>Un(e.fields)):[]);return this._perNodeKeysCache.set(t,i),i}maybeAutoRestart(e,t){if(!t)return;let n=new Set;for(let e of t.sections)for(let t of e.fields)t.type===`separator`||t.type===`info`||t.requiresRestart&&n.add(t.key);if(n.size===0||!e.some(e=>n.has(e)))return;let r=this._ctx;if(!r)return;let i=r.id;setImmediate(()=>{r.api.addons.restartAddon.mutate({addonId:i}).then(()=>{r.logger.info(`addon auto-restart triggered by restart-required setting change`,{meta:{changedFields:e.filter(e=>n.has(e))}})}).catch(e=>{r.logger.error(`addon auto-restart failed`,{meta:{error:e instanceof Error?e.message:String(e)}})})})}async getDeviceSettings(e){let t=this.deviceSettingsSchema();return t?ht(t,await this.rawSettings()?.readDeviceStore(e)??{},{inlineSecretsAsViews:!0}):{sections:[]}}async updateDeviceSettings(e,t){await this._ctx?.settings?.writeDeviceStore(e,t)}_subscriptions=[];watchCapability(e,t){let n=new Set(Array.isArray(e)?e:[e]);this.subscribe({category:`system.ready-state`},e=>{let r=e.data;if(typeof r.capName!=`string`||!n.has(r.capName)||r.scope?.type!==`node`)return;let i=r.scope.nodeId;if(typeof i!=`string`||i.length===0)return;let a=r.capName;r.state===`down`?t.onDown?.(i,a):r.state===`ready`&&t.onReady?.(i,a)})}subscribe(e,t){let n=this.ctx.eventBus.subscribe(e,t);this._subscriptions.push(n)}emitLifecycle(e,t){try{let n=this._ctx;if(!n)return;n.eventBus.emit({id:`${n.id}-${Date.now()}`,timestamp:new Date,source:{type:`addon`,id:n.id,nodeId:n.kernel.localNodeId??`hub`},category:e,data:{addonId:n.id,...t}})}catch{}}emitReadinessForProviders(e){let t=this._ctx;if(!t||this._registeredCapNames.length===0)return;let n=t.kernel?.localNodeId??`hub`,r=n.includes(`/`)?n.split(`/`)[0]:n;for(let n of this._registeredCapNames)try{St(t.eventBus,{capName:n,scope:{type:`node`,nodeId:r},state:e,generation:this._readinessGeneration,sourceNodeId:r})}catch{}}async resolveModelsDir(){let{join:t}=await n(async()=>{let{join:t}=await import(`./__vite-browser-external-BlMfPwfH.js`).then(t=>e(t.t()));return{join:t}},__vite__mapDeps([0,1]),import.meta.url),{promises:r}=await n(async()=>{let{promises:t}=await import(`./__vite-browser-external-BlMfPwfH.js`).then(t=>e(t.t()));return{promises:t}},__vite__mapDeps([0,1]),import.meta.url),i=t(this.ctx.nodeDataDir,`models`);return await r.mkdir(i,{recursive:!0}),i}get capabilities(){return this.ctx.capabilities??null}async resolveConfig(){let e=await this.resolveStoredSecrets(await this.readAddonStoreWithRetry()),t=this.perNodeKeys(),n=wt(this._ctx?.kernel?.localNodeId),r={...this.defaults};for(let i of Object.keys(this.defaults)){let a=t.has(i)?Et(e,i,n):e[i];if(a!=null){let e=typeof this.defaults[i];typeof a===e&&(r[i]=a)}}this._config=r}state(e,t,n){return Ct({key:e,schema:t,fallback:n,read:async()=>this.resolveStoredSecrets(await this.readAddonStoreWithRetry()),write:async e=>{await this._ctx?.settings?.writeAddonStore(e)},onParseError:(e,t)=>this._ctx?.logger?.warn?.(`durable-state: stored "${e}" failed validation — using fallback`,{meta:{addonId:this._ctx?.id,key:e,error:String(t)}})})}deviceState(e,t,n,r){return Ct({key:t,schema:n,fallback:r,read:async()=>this.resolveStoredSecrets(await this.rawSettings()?.readDeviceStore(e)??{},!1),write:async t=>{await this._ctx?.settings?.writeDeviceStore(e,t)},onParseError:(t,n)=>this._ctx?.logger?.warn?.(`durable-state: stored device ${e} "${t}" failed validation — using fallback`,{meta:{addonId:this._ctx?.id,deviceId:e,key:t,error:String(n)}})})}addonSecretTree(){return this._addonSecretTree??=En(Cn(this.globalSettingsSchema()),this.secretStatePaths),this._addonSecretTree}deviceSecretTree(){return this._deviceSecretTree??=En(Cn(this.deviceSettingsSchema()),this.secretStatePaths),this._deviceSecretTree}get unresolvedSecrets(){return this._unresolvedSecrets}async resolveStoredSecrets(e,t=!0){let n=this._ctx?.secrets;if(n===void 0)return e;let r=E(e);if(t&&(this._configSecretRefs=new Set(r)),r.length===0)return t&&(this._unresolvedSecrets=[]),e;let{value:i,unresolved:a}=await en(e,n);return t&&(this._unresolvedSecrets=a,a.length>0?(this._ctx?.logger?.error?.(`secret unavailable — running without it, will retry`,{meta:{secrets:a.map(e=>({ref:e.ref,reason:e.reason}))}}),a.some(e=>e.reason!==`missing`&&e.reason!==`forbidden`)&&(this.scheduleSecretReresolve(this._secretRetryDelayMs),this._secretRetryDelayMs=Math.min(this._secretRetryDelayMs*2,kn))):this._secretRetryDelayMs=On),i}rawSettings(){return this._secretSettings?.raw??this._ctx?.settings}logUnresolvedRead(e){let t=e.filter(e=>!this._loggedUnresolvedReads.has(e.ref));if(t.length!==0){for(let e of t)this._loggedUnresolvedReads.add(e.ref);this._ctx?.logger?.warn?.(`settings read: a stored secret is unavailable — it reads as its marker, not as a value`,{meta:{secrets:t.map(e=>({ref:e.ref,reason:e.reason}))}})}}scheduleSecretReresolve(e){let t=e===An?`_secretChangeTimer`:`_secretRetryTimer`;if(this[t]!==null)return;let n=setTimeout(()=>{this[t]=null,this._ctx!==null&&this.resolveConfig().then(()=>this.onConfigChanged()).catch(e=>{this._ctx?.logger?.error?.(`re-resolving secrets failed`,{meta:{error:e instanceof Error?e.message:String(e)}})})},e);n.unref?.(),this[t]=n}async readAddonStoreWithRetry(){let e=this.rawSettings();if(!e)return{};let t;for(let n=0;;n++)try{let t=await e.readAddonStore()??{};return this.settingsStoreReady=!0,t}catch(e){t=e;let r=Vn(e);if(r===`permanent`)throw e;let i=(r===`transport`?Nn:Mn)[n];if(i===void 0){if(r===`transport`)throw e;break}await new Promise(e=>setTimeout(e,i))}return this.settingsStoreReady=!1,this._ctx?.logger?.warn?.(`readAddonStore: settings-store unavailable after retries — using defaults`,{meta:{error:t instanceof Error?t.message:String(t)}}),{}}},Mn=[150,350,600,900],Nn=[150,350,600,900,2e3,5e3,1e4,2e4,3e4,3e4],Pn=[`SqliteSettingsBackend not initialized`,`provider not available`],Fn=new Set([`ECONNREFUSED`,`ECONNRESET`,`ETIMEDOUT`,`EPIPE`,`EHOSTUNREACH`,`ENETUNREACH`]),In=new Set([`TIMEOUT`,`SERVICE_UNAVAILABLE`,`BAD_GATEWAY`,`GATEWAY_TIMEOUT`]),Ln=[`discovery deadline exceeded`,`parent could not route child unowned cap call`,`UDS request timed out after`,`channel closed`],Rn=new Set([`REQUEST_TIMEOUT`,`SERVICE_NOT_FOUND`,`SERVICE_NOT_AVAILABLE`,`REQUEST_REJECTED`,`BROKER_DISCONNECTED`]);function zn(e,t){if(typeof e!=`object`||!e)return;let n=Reflect.get(e,t);return typeof n==`string`?n:void 0}function Bn(e){let t={},n=typeof e==`object`&&e?Reflect.get(e,`cause`):void 0,r=typeof e==`object`&&e?Reflect.get(e,`data`):void 0,i=zn(e,`code`)??zn(n,`code`);i!==void 0&&(t.node=i);let a=zn(r,`code`);return a!==void 0&&(t.trpc=a),t}function Vn(e){let t=e instanceof Error?e.message:String(e);if(Pn.some(e=>t.includes(e)))return`restart`;let n=Bn(e);if(n.node!==void 0&&Fn.has(n.node)||n.trpc!==void 0&&In.has(n.trpc))return`transport`;if(typeof e==`object`&&e){if(Reflect.get(e,`retryable`)===!0)return`transport`;let t=zn(e,`type`);if(t!==void 0&&Rn.has(t))return`transport`}return Ln.some(e=>t.includes(e))?`transport`:`permanent`}function Hn(e){let t=[];for(let n of e){if(n.type===`group`){let e=Hn(n.fields);e.length>0&&t.push({...n,fields:e});continue}if(n.type===`sub-tabs`){let e=n.tabs.map(e=>({...e,fields:Hn(e.fields)})).filter(e=>e.fields.length>0);e.length>0&&t.push({...n,tabs:e});continue}`perNode`in n&&n.perNode===!0||t.push(n)}return t}function Un(e){let t=[];for(let n of e){if(n.type===`group`){t.push(...Un(n.fields));continue}if(n.type===`sub-tabs`){for(let e of n.tabs)t.push(...Un(e.fields));continue}`perNode`in n&&n.perNode===!0&&t.push(n.key)}return t}function Wn(e){if(e!=null)return Array.isArray(e)?{providers:e}:e}function tee(e,t){return{id:e,getRoutes:()=>t,invoke:async e=>{let n=Gn(t,e.method,e.path);if(!n)return{status:404,headers:{},redirectUrl:null,body:{error:`No route matches ${e.method} ${e.path}`}};let r={status:200,headers:{},redirectUrl:null},i=qn(r),a={params:{...n.params,...e.params},query:e.query,body:e.body,headers:e.headers,...e.user?{user:e.user}:{},...e.scopedToken===void 0?{}:{scopedToken:e.scopedToken}};return await n.route.handler(a,i),r}}}function Gn(e,t,n){let r=t.toUpperCase();for(let t of e){if(t.method!==r)continue;let e=Kn(t.path,n);if(e!==null)return{route:t,params:e}}return null}function Kn(e,t){let n=e.split(`/`).filter(Boolean),r=t.split(`/`).filter(Boolean);if(n.length!==r.length)return null;let i={};for(let e=0;e<n.length;e++){let t=n[e],a=r[e];if(t.startsWith(`:`))i[t.slice(1)]=a;else if(t!==a)return null}return i}function qn(e){let t={status(n){return e.status=n,t},code(n){return e.status=n,t},send(t){e.body=t},redirect(t){e.redirectUrl=t,e.status===200&&(e.status=302)},header(n,r){return e.headers[n.toLowerCase()]=r,t},type(n){return e.contentType=n,t}};return t}var Jn=class{disposers=[];disposed=!1;onError;constructor(e={}){this.onError=e.onError??((e,t)=>{console.error(`[DisposerChain] disposer #${t} threw`,e)})}add(e){if(this.disposed){try{let t=e();t&&typeof t.then==`function`&&t.catch(e=>this.onError(e,-1))}catch(e){this.onError(e,-1)}return()=>void 0}return this.disposers.push(e),()=>{let 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;let e=this.disposers.slice().toReversed();this.disposers=[];for(let t=0;t<e.length;t++){let n=e[t];try{let e=n();e&&typeof e.then==`function`&&await e}catch(n){this.onError(n,e.length-1-t)}}}},Yn=f({codec:x([`h264`,`h265`,`copy`]),profile:x([`baseline`,`main`,`high`]).optional(),level:u().optional(),width:a().int().positive().optional(),height:a().int().positive().optional(),fps:a().positive().optional(),bitrateKbps:a().int().positive().optional(),gopFrames:a().int().positive().optional(),bf:a().int().min(0).optional(),preset:x([`ultrafast`,`superfast`,`veryfast`,`faster`,`fast`,`medium`]).optional(),tune:x([`zerolatency`,`film`,`animation`]).optional(),singleSlicePerFrame:C().optional()}),Xn=p([g(`passthrough`),f({codec:x([`opus`,`aac`,`pcmu`,`pcma`,`copy`]),bitrateKbps:a().int().positive().optional(),sampleRateHz:a().int().positive().optional(),channels:p([g(1),g(2)]).optional()})]),Zn=f({video:Yn,audio:Xn,inputArgs:S(u()).optional(),outputArgs:S(u()).optional()});function Qn(e){let t=e.codec?.toLowerCase().replace(/[.\s-]/g,``),n={codec:t===`h265`||t===`hevc`?`h265`:`h264`,...e.resolution?.width===void 0?{}:{width:e.resolution.width},...e.resolution?.height===void 0?{}:{height:e.resolution.height},...e.fps===void 0?{}:{fps:e.fps}};if(!(n.width===void 0&&n.height===void 0&&n.fps===void 0))return{video:n,audio:`passthrough`}}function $n(e,t,n){let r=e>=n;return r===t>=n?r?e-t:t-e:r?-1:1}function er(e){let t=e.toLowerCase().replace(/[.\s-]/g,``);return t===`hevc`||t===`hvc1`||t===`hev1`?`h265`:t===`avc`||t===`avc1`?`h264`:t}function tr(e,t){if(t.length===0)return!0;if(e===void 0)return!1;let n=er(e);return t.some(e=>er(e)===n)}function nr(e,t){for(let n=0;n<t.length;n+=1)if(e.startsWith(t[n]))return n;return t.length}function rr(e,t){let n=e.filter(e=>t.allowTranscode||tr(e.codec,t.acceptCodecs));if(n.length===0)return null;let r=t.targetHeight,i=n.map(e=>({candidate:e,transcodes:!tr(e.codec,t.acceptCodecs),provider:nr(e.camStreamId,t.preferredProviders),height:e.height??0}));i.sort((e,n)=>e.transcodes===n.transcodes?e.provider===n.provider?r===void 0?t.resolutionPreference===`highest`?n.height-e.height:e.height-n.height:$n(e.height,n.height,r):e.provider-n.provider:e.transcodes?1:-1);let a=i[0];return a===void 0?null:{candidate:a.candidate,transcodes:a.transcodes}}var ir={opus:`libopus`,aac:`aac`,pcmu:`pcm_mulaw`,pcma:`pcm_alaw`},ar={aac:{kind:`encode`,codec:`aac`,bitrateKbps:128,sampleRateHz:48e3,channels:1},opus:{kind:`encode`,codec:`opus`,bitrateKbps:64,sampleRateHz:48e3,channels:1},pcmu:{kind:`encode`,codec:`pcmu`,sampleRateHz:8e3,channels:1}};function or(e){return[`-hide_banner`,`-loglevel`,e]}function sr(e){return!e||e===`none`||e===`copy`}function cr(e,t){let n=[];if(sr(t)||n.push(`-hwaccel`,String(t)),e.extraArgs?.length&&n.push(...e.extraArgs),e.decodeThreadCount!==void 0&&e.decodeThreadCount>0&&n.push(`-threads`,String(e.decodeThreadCount)),e.analyzeDurationUs!==void 0&&n.push(`-analyzeduration`,String(e.analyzeDurationUs)),e.probeSizeBytes!==void 0&&n.push(`-probesize`,String(e.probeSizeBytes)),e.lowDelay===!0&&n.push(`-flags`,`low_delay`),e.useWallclockTimestamps===!0&&n.push(`-use_wallclock_as_timestamps`,`1`),e.fflags?.length)for(let t of e.fflags)n.push(`-fflags`,t);if(e.rtspTransport&&n.push(`-rtsp_transport`,e.rtspTransport),e.rawVideo!==void 0){let t=e.rawVideo;n.push(`-f`,`rawvideo`,`-pix_fmt`,t.pixelFormat,`-video_size`,`${String(t.width)}x${String(t.height)}`,`-framerate`,String(t.framerate))}return n.push(`-i`,e.url),n}function lr(e){let t=e.filterGraph;return t?{video:`[${t.videoOutLabel}]`,audio:t.audioOutLabel?`[${t.audioOutLabel}]`:`0:a:0?`}:e.extraInputs?.length?{video:`0:v:0`,audio:`0:a:0?`}:{video:null,audio:null}}function ur(e,t,n,r){if(n){if(e)throw Error(`FfmpegInvocation: video.scale cannot be combined with a filter graph — scale inside the graph instead (the -vf would feed an output the graph already feeds)`);if(t.some(e=>e===`-vf`))throw Error(`FfmpegInvocation: outputArgs carries a -vf while a filter graph feeds the same output — fold the filter into the graph`);return[]}if(t.some(e=>e===`-vf`))return[];if(!e)return r.length>0?[`-vf`,r]:[];let i=r.length>0?`,${r}`:``;return e.mode===`exact`?[`-vf`,`scale=${e.width}:${e.height}${i}`]:[`-vf`,`scale='min(${e.width},iw)':'min(${e.height},ih)':force_original_aspect_ratio=decrease:force_divisible_by=2${i}`]}function dr(e,t){return e===void 0||!sr(t)?``:`format=nv12,hwupload`}function fr(e){let t=e.bitrateKbps;if(t===void 0)return[];let n=e.rateControl??{kind:`cap`,vbvSeconds:2},r=Math.max(1,Math.round(t*n.vbvSeconds));return[...n.kind===`cbr`?[`-b:v`,`${t}k`]:[],`-maxrate`,`${t}k`,`-bufsize`,`${r}k`]}function pr(e,t,n,r){if(e.kind===`raw`){if(n&&e.filter!==void 0)throw Error(`FfmpegInvocation: video.filter cannot be combined with a filter graph — fold the filter into the graph`);return[...e.filter===void 0?[]:[`-vf`,e.filter],`-c:v`,`rawvideo`,`-pix_fmt`,e.pixelFormat,...e.fps===void 0?[]:[`-r`,String(e.fps)]]}if(e.kind===`copy`){if(n)throw Error("FfmpegInvocation: a filter graph produces a NEW picture, so video.kind must be `encode`");return[`-c:v`,`copy`,...e.bitstreamFilter?[`-bsf:v`,e.bitstreamFilter]:[]]}let i=r===void 0?``:dr(r.device,r.decodeHwAccel);if(r!==void 0&&n)throw Error(`FfmpegInvocation: a hardware encode fed by a filter graph must upload INSIDE the graph — hwEncodeDevice cannot be combined with filterGraph`);let a=[...ur(e.scale,t,n,i),`-c:v`,e.encoder];return e.preset!==void 0&&a.push(`-preset`,e.preset),e.tune!==void 0&&a.push(`-tune`,e.tune),e.singleSlicePerFrame===!0&&e.encoder===`libx264`&&a.push(`-x264-params`,`sliced-threads=0`),e.profile!==void 0&&a.push(`-profile:v`,e.profile),e.level!==void 0&&a.push(`-level`,e.level),e.pixelFormat!==void 0&&a.push(`-pix_fmt`,e.pixelFormat),e.fps!==void 0&&a.push(`-r`,String(e.fps)),e.gopFrames!==void 0&&a.push(`-g`,String(e.gopFrames)),e.forceKeyFramesSeconds!==void 0&&a.push(`-force_key_frames`,`expr:gte(t,n_forced*${e.forceKeyFramesSeconds})`),e.bf!==void 0&&a.push(`-bf`,String(e.bf)),a.push(...fr(e)),e.bitstreamFilter!==void 0&&a.push(`-bsf:v`,e.bitstreamFilter),a}function mr(e){if(e.kind===`none`)return[`-an`];if(e.kind===`copy`)return[`-c:a`,`copy`];let t=[];return e.filter!==void 0&&t.push(`-af`,e.filter),t.push(`-c:a`,ir[e.codec]),e.application!==void 0&&t.push(`-application`,e.application),e.frameDurationMs!==void 0&&t.push(`-frame_duration`,String(e.frameDurationMs)),e.globalHeader===!0&&t.push(`-flags`,`+global_header`),e.sampleRateHz!==void 0&&t.push(`-ar`,String(e.sampleRateHz)),e.bitrateKbps!==void 0&&t.push(`-b:a`,`${e.bitrateKbps}k`),e.vbvBufferKbits!==void 0&&t.push(`-bufsize`,`${e.vbvBufferKbits}k`),e.channels!==void 0&&t.push(`-ac`,String(e.channels)),t}function hr(e){let t=[];return e.payloadType!==void 0&&t.push(`-payload_type`,String(e.payloadType)),e.ssrc!==void 0&&t.push(`-ssrc`,String(e.ssrc)),e.sdpFile!==void 0&&t.push(`-sdp_file`,e.sdpFile),t.push(`-f`,`rtp`,e.url),t}function gr(e){return e.kind===`stdout`&&(e.container===`h264`||e.container===`hevc`)}var nee=`+frag_keyframe+empty_moov+default_base_moof`;function ree(e){return e.kind===`rtsp-listen`?[`-f`,`rtsp`,`-rtsp_transport`,`tcp`,`-rtsp_flags`,`listen`,e.url]:e.kind===`rtp-outputs`?[]:e.container===`mp4`?vr(e):[`-f`,e.container,`pipe:1`]}var _r=.9;function vr(e){return[`-movflags`,nee,`-min_frag_duration`,String(Math.max(0,Math.round(e.fragmentMs*_r*1e3))),`-f`,`mp4`,`pipe:1`]}function yr(e){return[`-map`,`0:a:0?`,...mr(e.codec===`pcma`?{kind:`encode`,codec:`pcma`,sampleRateHz:8e3,channels:1}:ar[e.codec]),...hr({url:e.rtpUrl,sdpFile:e.sdpFile})]}function br(e){return e.hwEncodeDevice===void 0?void 0:{device:e.hwEncodeDevice,decodeHwAccel:e.decodeHwAccel}}function xr(e){let t=e.filterGraph??null,n=[...or(e.logLevel),...e.hwEncodeDevice===void 0?[]:[`-vaapi_device`,e.hwEncodeDevice.renderNode],...cr(e.input,e.decodeHwAccel),...(e.extraInputs??[]).flatMap(t=>cr(t,e.decodeHwAccel)),...t?[`-filter_complex`,t.graph]:[]],r=[...e.threadCount>0?[`-threads`,String(e.threadCount)]:[],...e.filterThreadCount!==void 0&&e.filterThreadCount>0?[`-filter_threads`,String(e.filterThreadCount)]:[]],i=lr(e),a=i.video?[`-map`,i.video]:[],o=i.audio?[`-map`,i.audio]:[];if(e.sink.kind===`rtp-outputs`){let a=e.sink.video?[`-an`,`-map`,i.video??`0:v:0`,...pr(e.video,e.outputArgs,t,br(e)),...r,...e.outputArgs,...hr(e.sink.video)]:[],o=e.sink.audio?[`-vn`,`-map`,i.audio??`0:a:0?`,...mr(e.audio),...hr(e.sink.audio)]:[];return[...n,...a,...o]}let s=gr(e.sink)||e.audio.kind===`none`,c=gr(e.sink)?[`-an`]:mr(e.audio);return[...n,...a,...pr(e.video,e.outputArgs,t,br(e)),...r,...s?[]:o,...c,...e.outputArgs,...ree(e.sink),...e.audioSidecar?yr(e.audioSidecar):[]]}var Sr={videotoolbox:{h264:`h264_videotoolbox`,h265:`hevc_videotoolbox`},vaapi:{h264:`h264_vaapi`,h265:`hevc_vaapi`},qsv:{h264:`h264_qsv`,h265:`hevc_qsv`},cuda:{h264:`h264_nvenc`,h265:`hevc_nvenc`},nvdec:{h264:`h264_nvenc`,h265:`hevc_nvenc`},amf:{h264:`h264_amf`,h265:`hevc_amf`}};function Cr(e,t,n){let r=e===`h264`?`libx264`:`libx265`;if(!n||t===null||sr(t)||t===`auto`)return r;let i=Sr[t.toLowerCase()];return i?e===`h264`?i.h264:i.h265:r}function wr(e){return e===`passthrough`?{kind:`none`}:e.codec===`copy`?{kind:`copy`}:{kind:`encode`,codec:e.codec,...e.bitrateKbps===void 0?{}:{bitrateKbps:e.bitrateKbps},...e.sampleRateHz===void 0?{}:{sampleRateHz:e.sampleRateHz},...e.channels===void 0?{}:{channels:e.channels}}}function Tr(e){let t=e.profile.video,n=t.codec===`copy`||e.forceReencode!==!0&&t.codec===e.sourceCodec,r=t.width!==void 0&&t.height!==void 0?{mode:`fit`,width:t.width,height:t.height}:null,i=t.codec===`h265`?`h265`:`h264`,a=n?{kind:`copy`,...e.bitstreamFilter===void 0?{}:{bitstreamFilter:e.bitstreamFilter}}:{kind:`encode`,encoder:Cr(i,e.decodeHwAccel,e.hardwareEncoders===!0),scale:r,...t.preset===void 0?{}:{preset:t.preset},...t.tune===void 0?{}:{tune:t.tune},...t.singleSlicePerFrame===void 0?{}:{singleSlicePerFrame:t.singleSlicePerFrame},...t.profile===void 0?{}:{profile:t.profile},...t.level===void 0?{}:{level:t.level},...e.pixelFormat===void 0?{}:{pixelFormat:e.pixelFormat},...t.fps===void 0?{}:{fps:t.fps},...t.gopFrames===void 0?{}:{gopFrames:t.gopFrames},...e.forceKeyFramesSeconds===void 0?{}:{forceKeyFramesSeconds:e.forceKeyFramesSeconds},...t.bf===void 0?{}:{bf:t.bf},...t.bitrateKbps===void 0?{}:{bitrateKbps:t.bitrateKbps},...e.rateControl===void 0?{}:{rateControl:e.rateControl},...e.bitstreamFilter===void 0?{}:{bitstreamFilter:e.bitstreamFilter}};return{logLevel:e.logLevel??`error`,decodeHwAccel:e.decodeHwAccel,input:{url:e.sourceUrl,rtspTransport:`tcp`,fflags:[`+discardcorrupt`],...e.profile.inputArgs?.length?{extraArgs:e.profile.inputArgs}:{}},video:a,audio:wr(e.profile.audio),threadCount:e.threadCount??0,outputArgs:e.profile.outputArgs??[],sink:e.sink,...e.audioSidecar===void 0?{}:{audioSidecar:e.audioSidecar}}}var Er={video:{codec:`h264`,profile:`baseline`,level:`3.1`,width:1280,height:720,fps:25,bitrateKbps:2500,gopFrames:25,bf:0,preset:`veryfast`,tune:`zerolatency`},audio:`passthrough`},Dr={...Er,video:{...Er.video,bitrateKbps:3e3,gopFrames:30,preset:`ultrafast`},audio:`passthrough`},Or={...Er,audio:{codec:`opus`},video:{...Er.video,singleSlicePerFrame:!0}},kr={kind:`cbr`,vbvSeconds:1},Ar={kind:`cap`,vbvSeconds:2},jr={kind:`encode`,codec:`opus`,bitrateKbps:24,channels:1,application:`lowdelay`,globalHeader:!0,filter:`aresample=async=1000:first_pts=0`},Mr=16*1024*1024,Nr=8,Pr=16,Fr=class{maxUnitBytes;buffer=new Uint8Array;unitStart=0;cursor=0;state=`init`;nextSequence=0;faultReason=null;interstitial=new Set;constructor(e={}){this.maxUnitBytes=e.maxUnitBytes??Mr}get fault(){return this.faultReason}get pendingBytes(){return this.buffer.length-this.unitStart}get discardedInterstitialTypes(){return[...this.interstitial]}push(e){return this.faultReason!==null||e.length===0?[]:(this.append(e),this.pendingBytes>this.maxUnitBytes?this.fail(`a single fMP4 unit exceeded ${this.maxUnitBytes} bytes — this stream is not fragmented`):this.drainBoxes())}append(e){if(this.buffer.length===0){this.buffer=e.slice();return}let t=new Uint8Array(this.buffer.length+e.length);t.set(this.buffer,0),t.set(e,this.buffer.length),this.buffer=t}drainBoxes(){let e=[];for(;;){let t=this.readHeader();if(this.faultReason!==null)return e;if(t===null||this.cursor+t.totalBytes>this.buffer.length)break;let n=this.cursor,r=n+t.totalBytes;this.cursor=r;let i=this.consumeBox(t.type,n,r);if(this.faultReason!==null)return e;i!==null&&e.push(i)}return this.compact(),e}consumeBox(e,t,n){if(this.state===`init`){if(e!==`moof`)return null;if(t===this.unitStart)return this.fail(`a moof arrived before any initialisation box — there is no ftyp/moov to send`),null;let n=this.emit(`init`,this.unitStart,t);return this.unitStart=t,this.state=`fragment`,n}if(this.state===`idle`)return e===`moof`?(this.unitStart=t,this.state=`fragment`,null):(this.interstitial.add(e),this.unitStart=n,null);if(e!==`mdat`)return null;let r=this.emit(`fragment`,this.unitStart,n);return this.unitStart=n,this.state=`idle`,r}readHeader(){let e=this.buffer.length-this.cursor;if(e<Nr)return null;let t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=t.getUint32(this.cursor),r=String.fromCharCode(this.buffer[this.cursor+4]??0,this.buffer[this.cursor+5]??0,this.buffer[this.cursor+6]??0,this.buffer[this.cursor+7]??0);if(n===0)return this.fail(`box "${r}" declares size 0 (to EOF) — an unbounded box cannot be fragmented`),null;if(n===1){if(e<Pr)return null;let n=t.getBigUint64(this.cursor+Nr);return n>BigInt(this.maxUnitBytes)?(this.fail(`box "${r}" declares ${n} bytes, over the ${this.maxUnitBytes} byte bound`),null):{type:r,totalBytes:Number(n)}}return n<Nr?(this.fail(`box "${r}" declares an impossible size of ${n} bytes`),null):{type:r,totalBytes:n}}emit(e,t,n){let r=this.nextSequence;return this.nextSequence+=1,{kind:e,data:this.buffer.slice(t,n),sequence:r}}compact(){this.unitStart!==0&&(this.buffer=this.buffer.slice(this.unitStart),this.cursor-=this.unitStart,this.unitStart=0)}fail(e){return this.faultReason=e,this.buffer=new Uint8Array,this.unitStart=0,this.cursor=0,[]}};function Ir(e){let t=e.now??(()=>Date.now()),n=null,r=-1/0;return{read(){return t()-r<e.ttlMs?n:void 0},write(e){n=e,r=t()}}}function Lr(e){return!e||e===`none`||e===`copy`}async function iee(e){let t=e.override;if(t!=null&&t!==``)return Lr(t)?null:t;let n=e.cache?.read();if(n!==void 0)return n;let r;try{r=await e.readDecoderBackend()}catch(t){let n=await e.readKernelPreferred().catch(()=>[]);return e.onFallback({reason:`decoder-unreadable`,kernelPreferred:n,error:t instanceof Error?t.message:String(t)}),e.cache?.write(null),null}if(r===``){let t=await e.readKernelPreferred().catch(()=>[]);return e.onFallback({reason:`decoder-unprobed`,kernelPreferred:t}),e.cache?.write(null),null}let i=Lr(r)?null:r;return e.cache?.write(i),i}function Rr(e){return String(Math.round(e*1e3)/1e3)}function zr(e,t){return!Number.isFinite(t)||t<=0?e:e/t}function Br(e){let t=e.speed>0?e.speed:1;return t===1?`[0:v]fps=${Rr(e.fps)},scale=${e.maxWidth}:-2:flags=lanczos,split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle`:`[0:v]fps=${Rr(e.fps/t)},setpts=PTS/${t},fps=${Rr(e.fps)},scale=${e.maxWidth}:-2:flags=lanczos,split[a][b];[a]palettegen=stats_mode=diff[p];[b][p]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle`}function Vr(e){return[`-y`,`-v`,`error`,`-f`,`mp4`,`-i`,e.input??`pipe:0`,`-filter_complex`,Br(e),`-loop`,`0`,`-f`,`gif`,`pipe:1`]}var Hr=pe();function Ur(e){let t=JSON.stringify(e,Wr);return(0,Hr.createHash)(`sha256`).update(t??``).digest(`hex`)}function Wr(e,t){if(t&&typeof t==`object`&&!Array.isArray(t)){let e=t,n={};for(let t of Object.keys(e).toSorted())n[t]=e[t];return n}return t}function Gr(e){return{transport:e.publishLocally===!0?`push`:`dial`}}var Kr=`\0unset`;function qr(e){return{codec:e.codec,profile:e.profile??Kr,level:e.level??Kr,width:e.width??-1,height:e.height??-1,fps:e.fps??-1,bitrateKbps:e.bitrateKbps??-1,gopFrames:e.gopFrames??-1,bf:e.bf??-1,preset:e.preset??Kr,tune:e.tune??Kr,singleSlicePerFrame:e.singleSlicePerFrame===void 0?Kr:String(e.singleSlicePerFrame)}}function Jr(e){return e===`passthrough`?{codec:`passthrough`}:{codec:e.codec,bitrateKbps:e.bitrateKbps??-1,sampleRateHz:e.sampleRateHz??-1,channels:e.channels??-1}}function Yr(e,t=Gr(e)){return{deviceId:e.deviceId,source:e.source.kind===`profile`?`profile:${e.source.profile}`:`cam-stream:${e.source.camStreamId}`,transport:t.transport,fragmentMs:t.fragmentMs??-1,video:qr(e.encode.video),audio:Jr(e.encode.audio),rateControl:e.rateControl??`relaxed`,bitstreamFilter:e.bitstreamFilter??Kr,pixelFormat:e.pixelFormat??Kr,decodeHwAccel:e.decodeHwAccel??Kr}}function Xr(e,t=Gr(e)){return`egress:${Ur(Yr(e,t))}`}function Zr(e){let t=null;return()=>{if(t!==null)return t;let n=e();return t=n,n.catch(()=>{t===n&&(t=null)}),n}}var Qr=`8.1.2-5`,$r=`https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v${Qr}`;function ei(e){return`${$r}/jellyfin-ffmpeg_${Qr}_portable_${e}-gpl.tar.xz`}ei(`linux64`),ei(`linuxarm64`),ei(`macarm64`),ei(`mac64`),`${$r}${Qr}`;var ti=`CAMSTACK_FFMPEG_PATH`,ni=x([`singleton`,`device`,`widget`]),ri=f({capName:u(),kind:ni,deviceId:a().optional(),reachable:C(),latencyMs:a(),error:u().optional()}),ii=f({addonId:u(),caps:S(ri).readonly(),widgets:S(ri).readonly()}),ai=f({nodeId:u(),addons:S(ii).readonly()}),oi=f({ok:C(),degraded:C(),checkedAt:u(),nodes:S(ai).readonly(),summary:f({total:a(),reachable:a(),unreachable:a()})}),si=`hub-only`;function ci(e){return{placement:e.execution?.placement??`hub-only`,group:e.execution?.group}}function li(e){let t=ci(e).placement;return t===`any-node`||t===`agent-only`}function ui(e){return ci(e).placement===`agent-only`}function di(e){return ci(e).group}function fi(e,t){return e.execution?.group??t}function pi(e){return ci(e).placement}function mi(e){return e.execution?.isolate===!0}var hi=`x-camstack-dataplane-secret`,gi=[`grid-view`,`events-view`],_i=3e4,vi=15e3,yi=256*1024,bi=f({url:u().min(1),hostNodeId:u().min(1),expiresAtMs:a().int().nonnegative(),declaredBytes:a().int().nonnegative().nullable()}),xi=x([`running`,`done`,`failed`,`cancelled`]),Si=x([`adopted`,`already-adopted`,`failed`,`cancelled`]),Ci=f({childNativeId:u(),outcome:Si,parentDeviceId:a().int().nonnegative().nullable(),accessoryCount:a().int().nonnegative(),error:u().nullable()}),wi=f({jobId:u(),addonId:u(),integrationId:u(),state:xi,total:a().int().nonnegative(),processed:a().int().nonnegative(),adopted:a().int().nonnegative(),alreadyAdopted:a().int().nonnegative(),failed:a().int().nonnegative(),accessoriesCreated:a().int().nonnegative(),currentChildNativeId:u().nullable(),results:S(Ci).readonly(),startedAt:a(),finishedAt:a().nullable(),error:u().nullable()}),aee={cleanupIntervalMs:3600*1e3,detectionEventsDays:30,audioLevelsDays:7,snapshotsDays:14},Ti=x([`stream-broker`,`object-detection`,`privacy-mask`,`device-audio`,`broker-audio`,`audio-analysis`,`event-saving`,`recording`,`notifications`]),Ei=[`stream-broker`,`object-detection`,`privacy-mask`,`device-audio`,`broker-audio`,`audio-analysis`,`event-saving`,`recording`,`notifications`],Di=h(`kind`,[f({kind:g(`device-disabled`)}),f({kind:g(`wrapper-binding`),capName:u()}),f({kind:g(`recording-config`)}),f({kind:g(`notification-mute`)}),f({kind:g(`camera-audio`),capName:u()}),f({kind:g(`camera-mask`),capName:u()}),f({kind:g(`broker-audio-mute`)})]),Oi=x([`no-provider`,`source-unreachable`,`device-disabled`]),ki=x([`no-privacy-zones`]),Ai=f({id:Ti,label:u(),costWhenOff:u(),available:C(),unavailableReason:Oi.optional(),warning:ki.optional(),enabled:C(),authority:Di}),ji=f({deviceId:a().int(),switches:S(Ai).readonly(),fetchedAt:a()}),Mi=`detection-pipeline`,Ni=`audio-analysis`,Pi=`privacy-mask`,Fi=`pipeline-analytics`,Ii=[`motion-detection`,Mi,Ni,Fi,`scene-monitor`],Li={"stream-broker":{id:`stream-broker`,label:`Camera`,costWhenOff:`Off: the whole camera stops. No live view, no recording, no detection and no notifications — its streams are released and nothing dials it again until you turn it back on.`,authority:{kind:`device-disabled`},countsAsSwitchedOff:!0},"object-detection":{id:`object-detection`,label:`Object detection & tracking`,costWhenOff:`Off: nothing is detected or tracked on this camera, so it produces no events — and with no events there are no object notifications and no event-triggered recording. Live view and continuous recording are unaffected.`,authority:{kind:`wrapper-binding`,capName:Mi},countsAsSwitchedOff:!0},"privacy-mask":{id:`privacy-mask`,label:`Privacy mask`,costWhenOff:`On: the zones you drew on this camera are blacked out by the camera itself — live view, playback, exports and detection all see the black boxes, and nothing behind them was ever recorded. Off: the camera captures the whole frame, and your zones are kept for when you turn it back on.`,authority:{kind:`camera-mask`,capName:Pi},countsAsSwitchedOff:!1},"device-audio":{id:`device-audio`,label:`Camera microphone`,costWhenOff:`Off: the camera captures no sound at all. Live view and recordings become silent video, and audio detection and classification have nothing left to analyse — turning them back on will not recover it. The picture, motion and object detection are unaffected, and two-way talk still works. Applies at the camera, so every consumer sees the same silence.`,authority:{kind:`camera-audio`,capName:Pi},countsAsSwitchedOff:!0},"broker-audio":{id:`broker-audio`,label:`Audio distribution`,costWhenOff:`Off: this server distributes no sound for this camera — live view is silent and everything recorded while it is off is silent FOREVER, even after you turn it back on. Audio detection and classification also have nothing to analyse. The camera keeps capturing sound, so nothing about the camera changes and turning this back on is instant, with no interruption to the picture.`,authority:{kind:`broker-audio-mute`},countsAsSwitchedOff:!0},"audio-analysis":{id:`audio-analysis`,label:`Audio detection & classification`,costWhenOff:`Off: no audio is decoded or classified for this camera. Tracks carry no audio labels and no audio-triggered rule can fire. Audio recorded alongside video is unaffected.`,authority:{kind:`wrapper-binding`,capName:Ni},countsAsSwitchedOff:!0},"event-saving":{id:`event-saving`,label:`Event saving`,costWhenOff:`Off: nothing about this camera is written to its history — no tracks, no events and no event snapshots or clips. Detection keeps running and live boxes still appear, so the camera looks busy while its timeline stays empty, and anything that fires ON an event (notification rules, event-triggered recording) has nothing to fire on. Continuous recording is unaffected, and history already written is kept.`,authority:{kind:`wrapper-binding`,capName:Fi},countsAsSwitchedOff:!0},recording:{id:`recording`,label:`Recording`,costWhenOff:`Off: nothing new is written to disk. Footage already recorded stays, but retention keeps deleting it — so this camera’s history shrinks and is not replaced. Your recording schedule is kept and resumes when you turn it back on.`,authority:{kind:`recording-config`},countsAsSwitchedOff:!0},notifications:{id:`notifications`,label:`Notifications`,costWhenOff:`Off: this camera never notifies anyone, on any rule, with no expiry. Detection, events and recording carry on exactly as before — you simply stop being told about them.`,authority:{kind:`notification-mute`},countsAsSwitchedOff:!0}};function Ri(e,t){switch(e.authority.kind){case`device-disabled`:return{available:!0,enabled:!t.deviceDisabled};case`wrapper-binding`:{let n=e.authority.capName;return t.bindableCapNames===null||t.activeWrapperCapNames===null?{available:!1,enabled:!0,unavailableReason:`source-unreachable`}:t.bindableCapNames.includes(n)?{available:!0,enabled:t.activeWrapperCapNames.includes(n)}:{available:!1,enabled:!0,unavailableReason:`no-provider`}}case`recording-config`:return t.recordingEnabled===null?{available:!1,enabled:!0,unavailableReason:`source-unreachable`}:{available:!0,enabled:t.recordingEnabled};case`notification-mute`:return t.notificationsMuted===null?{available:!1,enabled:!0,unavailableReason:`source-unreachable`}:{available:!0,enabled:!t.notificationsMuted};case`camera-audio`:{let e=t.deviceAudio;return e===null?{available:!1,enabled:!0,unavailableReason:t.deviceDisabled?`device-disabled`:`source-unreachable`}:e.supported?e.enabled===null?{available:!1,enabled:!0,unavailableReason:`source-unreachable`}:{available:!0,enabled:e.enabled}:{available:!1,enabled:!0,unavailableReason:`no-provider`}}case`camera-mask`:{let e=t.privacyMask;return e===null?{available:!1,enabled:!1,unavailableReason:t.deviceDisabled?`device-disabled`:`source-unreachable`}:e.supported?e.configuredRegions===null||e.enabled===null?{available:!1,enabled:!1,unavailableReason:`source-unreachable`}:e.configuredRegions===0?{available:!0,enabled:e.enabled,warning:`no-privacy-zones`}:{available:!0,enabled:e.enabled}:{available:!1,enabled:!1,unavailableReason:`no-provider`}}case`broker-audio-mute`:{let e=t.brokerAudio;return e===null?{available:!1,enabled:!0,unavailableReason:`source-unreachable`}:{available:!0,enabled:!e.muted}}}}function zi(e){return Ei.map(t=>{let n=Li[t],r=Ri(n,e);return{id:n.id,label:n.label,costWhenOff:n.costWhenOff,available:r.available,...r.unavailableReason===void 0?{}:{unavailableReason:r.unavailableReason},...r.warning===void 0?{}:{warning:r.warning},enabled:r.enabled,authority:n.authority}})}function Bi(e){return e.filter(e=>Li[e.id].countsAsSwitchedOff&&e.available&&!e.enabled).map(e=>e.id)}function Vi(e){let t=[],n=[];for(let r of Ei){let i=Li[r];if(!i.countsAsSwitchedOff)continue;let a=Ri(i,e);a.unavailableReason===`source-unreachable`?n.push(r):a.available&&!a.enabled&&t.push(r)}return{switchedOff:t,unreadable:n}}var Hi=Symbol.for(`camstack.keychain.known-secrets`);function Ui(){let e=Reflect.get(globalThis,Hi);if(e!=null)return e;let t={values:new Map,compiled:null};return Reflect.set(globalThis,Hi,t),t}function Wi(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t.toString(16).padStart(8,`0`)}function Gi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ki(){let e=Ui();if(e.values.size===0){e.compiled=null;return}let t=[...e.values.keys()].toSorted((e,t)=>t.length-e.length);e.compiled=new RegExp(t.map(Gi).join(`|`),`g`)}function qi(e,t){if(e.length<8)return;let n=`‹secret:${Wi(t)}›`,r=Ui().values;r.get(e)!==n&&(r.set(e,n),Ki())}function Ji(e){Ui().values.delete(e)&&Ki()}function Yi(){return Ui().values.size}function Xi(){let e=Ui();e.values.clear(),e.compiled=null}function Zi(e){let t=Ui(),n=t.compiled;return n===null||e.length<8||(n.lastIndex=0,!n.test(e))?e:(n.lastIndex=0,e.replace(n,e=>t.values.get(e)??`‹secret›`))}var Qi=15*6e4;function $i(e){let t={};for(let n of e)t[n]={kind:`unavailable`,reason:`not-initialized`};return t}function ea(e){let t=Mt(e.owner),n=e.now??Date.now,r=new Map,i=new Set,a=new Map,o=e=>{let t=r.get(e);if(t!==void 0){r.delete(e),Ji(t.value);for(let t of i)try{t(e)}catch{}}};e.eventBus?.subscribe({category:w.KeychainChanged},e=>{let t=e.data;if(typeof t!=`object`||!t)return;let n=Reflect.get(t,`ref`),i=Reflect.get(t,`version`);if(typeof n!=`string`)return;let a=r.get(n);a!==void 0&&(typeof i==`number`&&i===a.version||o(n))});let s=(e,t,i)=>{let a=r.get(e);a!==void 0&&a.value!==t&&Ji(a.value),r.set(e,{value:t,version:i,fetchedAt:n()}),qi(t,e)};return{owner:t,ref:(e,n)=>Lt({owner:t,scope:e,fieldPath:n}),async resolve(t){let i={},a=[],c=n();for(let e of new Set(t)){let t=r.get(e);t!==void 0&&c-t.fetchedAt<9e5?i[e]={kind:`value`,value:t.value,version:t.version}:a.push(e)}if(a.length===0)return i;let l;try{l=await e.transport.resolve({refs:a})}catch{l=$i(a)}for(let e of a){let t=l[e]??{kind:`unavailable`,reason:`not-initialized`};if(t.kind===`value`){s(e,t.value,t.version),i[e]=t;continue}if(t.kind===`unavailable`){let n=r.get(e);i[e]=n===void 0?t:{kind:`value`,value:n.value,version:n.version};continue}r.has(e)&&o(e),i[e]=t}return i},async put(t,n){let r=await e.transport.put({ref:t,value:n});return s(t,n,r.version),r.version},async delete(t){if(t.length===0)return 0;let n=await e.transport.delete({refs:t});for(let e of t)o(e);return n.deleted},state:()=>e.transport.getState(),...e.transport.deleteDeviceScope===void 0?{}:{deleteDeviceScope:async t=>{let n=e.transport.deleteDeviceScope;if(n===void 0)return[];let{refs:r}=await n.call(e.transport,{deviceId:t});for(let e of r)o(e);return r}},onChange(e){return i.add(e),()=>{i.delete(e)}},forOwner:e.transportForOwner===void 0?null:t=>{let r=Mt(t),i=a.get(r);if(i!==void 0)return i;let o=e.transportForOwner;if(o===void 0)throw Error(`forOwner: no delegate transport`);let s=ea({owner:r,transport:o(r),...e.eventBus===void 0?{}:{eventBus:e.eventBus},now:n});return a.set(r,s),s}}}function ta(e){if(!rt(e))return null;let t=Reflect.get(e,`$secret`);return typeof t==`string`&&t.length>0?t:null}function na(e,t){if(it(e)||rt(e)){let n=ta(e);return n!==null&&t.add(n),!0}let n=!1;if(Array.isArray(e))for(let r of e)n=na(r,t)||n;else if(typeof e==`object`&&e)for(let r of Object.values(e))n=na(r,t)||n;return n}async function ra(e,t){let n=new Set;if(!na(e,n))return e;let r=t!==void 0&&n.size>0?await t.resolve([...n]):{},i=e=>{if(it(e)||rt(e)){let t=ta(e),n=t===null?void 0:r[t];return n?.kind===`value`?{keep:!0,value:n.value}:{keep:!1,value:void 0}}if(Array.isArray(e)){let t=[];for(let n of e){let e=i(n);e.keep&&t.push(e.value)}return{keep:!0,value:t}}if(typeof e==`object`&&e){let t={};for(let[n,r]of Object.entries(e)){let e=i(r);e.keep&&(t[n]=e.value)}return{keep:!0,value:t}}return{keep:!0,value:e}};return i(e).value}var ia=[`settings`,`events`],aa=[`config`,`ledger`,`audit`,`mirror`,`ephemeral`],oa=64*1024,sa=1024*1024,ca=1e3,la=4*1024*1024,ua=1e3,da=5e3,fa=5e4,pa=10*6e4,ma=`records:`,ha=[`rev-conflict`,`too-large`,`unindexed-filter`,`filter-required`,`unknown-kind`,`not-found`,`unique-violation`,`plaintext-secret`,`foreign-marker`,`secret-unavailable`,`invalid-record`,`declaration-refused`,`adoption-pending`,`no-caller`,`batch-too-large`],ga=`records/`,D=class extends Error{code;detail;constructor(e,t){super(`${ga}${e}: ${t}`),this.name=`RecordsError`,this.code=e,this.detail=t}},_a=class extends D{constructor(e){super(`rev-conflict`,e),this.name=`RevConflictError`}},va=class extends D{constructor(e){super(`too-large`,e),this.name=`RecordTooLargeError`}},ya=class extends D{constructor(e){super(`unindexed-filter`,e),this.name=`UnindexedFilterError`}},ba=class extends D{constructor(e){super(`filter-required`,e),this.name=`FilterRequiredError`}},xa=class extends D{constructor(e){super(`unknown-kind`,e),this.name=`UnknownRecordKindError`}},Sa=class extends D{constructor(e){super(`not-found`,e),this.name=`RecordNotFoundError`}},Ca=class extends D{constructor(e){super(`unique-violation`,e),this.name=`RecordUniqueViolationError`}},wa=class extends D{constructor(e){super(`plaintext-secret`,e),this.name=`PlaintextSecretError`}},Ta=class extends D{constructor(e){super(`foreign-marker`,e),this.name=`ForeignSecretMarkerError`}},Ea=class extends D{constructor(e){super(`secret-unavailable`,e),this.name=`RecordSecretUnavailableError`}},Da=class extends D{constructor(e){super(`invalid-record`,e),this.name=`InvalidRecordError`}},Oa=class extends D{constructor(e){super(`declaration-refused`,e),this.name=`DeclarationRefusedError`}},ka=class extends D{constructor(e){super(`adoption-pending`,e),this.name=`AdoptionPendingError`}},Aa=class extends D{constructor(e){super(`no-caller`,e),this.name=`NoCallerError`}},ja=class extends D{constructor(e){super(`batch-too-large`,e),this.name=`BatchTooLargeError`}},Ma={"rev-conflict":e=>new _a(e),"too-large":e=>new va(e),"unindexed-filter":e=>new ya(e),"filter-required":e=>new ba(e),"unknown-kind":e=>new xa(e),"not-found":e=>new Sa(e),"unique-violation":e=>new Ca(e),"plaintext-secret":e=>new wa(e),"foreign-marker":e=>new Ta(e),"secret-unavailable":e=>new Ea(e),"invalid-record":e=>new Da(e),"declaration-refused":e=>new Oa(e),"adoption-pending":e=>new ka(e),"no-caller":e=>new Aa(e),"batch-too-large":e=>new ja(e)};function Na(e){return ha.some(t=>t===e)}function Pa(e){if(!e.startsWith(ga))return null;let t=e.indexOf(`: `);if(t<0)return null;let n=e.slice(8,t);return Na(n)?Ma[n](e.slice(t+2)):null}function Fa(e){if(e instanceof D)return e;if(e instanceof Error){let t=Pa(e.message);if(t!==null)return t}return e}var Ia={secret:!0};function La(e){let t=Reflect.get(e,`_zod`);if(typeof t!=`object`||!t)return{};let n=Reflect.get(t,`def`);return typeof n!=`object`||!n?{}:n}function Ra(e){return m.get(e)?.secret===!0}var za=new Set([`optional`,`nullable`,`default`,`prefault`,`catch`,`readonly`,`nonoptional`]);function Ba(e){let t=[],n=[e];for(;n.length>0;){let e=n.shift();if(!e||t.includes(e))continue;t.push(e);let r=La(e);r.type!==void 0&&za.has(r.type)&&r.innerType&&n.push(r.innerType),r.type===`pipe`&&(r.in&&n.push(r.in),r.out&&n.push(r.out))}return t}function Va(e){return Ba(e).some(Ra)}function Ha(e,t=``){if(Va(e))return t.length>0?[t]:[];let n=[];for(let r of Ba(e)){let e=La(r);if(e.type===`object`&&e.shape)for(let[r,i]of Object.entries(e.shape))n.push(...Ha(i,t?`${t}.${r}`:r));else if(e.type===`array`&&e.element)n.push(...Ha(e.element,`${t}[]`));else if(e.type===`union`&&e.options)for(let r of e.options)n.push(...Ha(r,t));else e.type===`intersection`&&(e.left&&n.push(...Ha(e.left,t)),e.right&&n.push(...Ha(e.right,t)))}return[...new Set(n)]}function Ua(e){if(e.length===0)throw new Da(`an empty secret path`);return e.split(`.`).map(t=>{let n=t.endsWith(`[]`),r=n?t.slice(0,-2):t;if(r.length===0)throw new Da(`secret path "${e}" has an empty segment`);return{key:r,each:n}})}function Wa(e){let t=Ua(e),n=[],r=[];for(let e of t)r.push(e.key),e.each&&n.push(r.join(`.`));return n}function Ga(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function oee(e,t,n,r){let i=Ga(e)?e[t]:void 0;if(typeof i!=`string`||i.length===0)throw new Da(`"${n}": every element of "${r}" needs a non-empty string "${t}" to carry a secret`);return i}var Ka=Symbol(`remove-leaf`);function qa(e,t,n,r,i,a,o,s){if(!Ga(e))return e;let c=t[n];if(c===void 0||!Object.prototype.hasOwnProperty.call(e,c.key))return e;let l=e[c.key],u=[...r,c.key],d=n===t.length-1;if(c.each){if(!Array.isArray(l))return e;let r=u.join(`.`),f=o[r];if(f===void 0)throw new Da(`"${a}": no id key declared for the array "${r}"`);let p=l.map(e=>{let l=oee(e,f,a,r),p=`${i}${i.length>0?`.`:``}${c.key}[${encodeURIComponent(l)}]`;return d?e:qa(e,t,n+1,u,p,a,o,s)});return{...e,[c.key]:p}}let f=`${i}${i.length>0?`.`:``}${c.key}`;if(d){let t=s({declared:a,concrete:f,value:l});return t===Ka?Object.fromEntries(Object.entries(e).filter(([e])=>e!==c.key)):{...e,[c.key]:t}}return{...e,[c.key]:qa(l,t,n+1,u,f,a,o,s)}}function Ja(e,t,n,r){let i=e;for(let e of t)i=qa(i,Ua(e),0,[],``,e,n,r);return i}function Ya(e,t,n){let r=[];return Ja(e,t,n,e=>(r.push(e),e.value)),r}function Xa(e){return`${ma}${e}`}function Za(e,t,n,r){return Lt({owner:e,scope:{kind:`row`,collection:Xa(t),rowId:n},fieldPath:r})}var Qa=It,$a=u().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/),eo=f({name:u().regex(/^[a-z][a-z0-9_]{0,31}$/),fields:S($a).min(1).max(4),unique:C().optional()}).strict(),to=p([f({ttlMs:a().int().positive(),from:x([`at`,`write`])}).strict(),f({maxRows:a().int().positive().optional(),maxRowsPerDevice:a().int().positive().optional()}).strict().refine(e=>e.maxRows!==void 0||e.maxRowsPerDevice!==void 0,{message:`name maxRows, maxRowsPerDevice or both`}),f({owner:u().min(1),reason:u().min(1)}).strict(),f({none:u().min(1)}).strict()]),no=f({title:u().min(1),nameField:u().min(1),fields:y(u(),s())}).strict(),ro=f({database:x(ia).default(`settings`),class:x(aa),writeTrigger:u().min(1),device:x([`required`,`optional`,`none`]).default(`none`),at:x([`required`,`none`]).default(`none`),indexes:S(eo).max(8).default([]),retention:to,deviceRemoval:x([`delete`,`none`]).default(`none`),maxDataBytes:a().int().positive().max(sa).default(oa),secretPaths:S(u().min(1)).default([]),secretArrayKeys:y(u(),u()).default({}),adoptsFrom:u().min(1).optional(),transactFamily:u().min(1).optional(),entry:no.optional()}).strict(),io=u().regex(/^[a-z][a-z0-9-]{0,47}$/);function ao(e,t){let n=t=>{throw new Oa(`kind "${e}": ${t}`)};io.safeParse(e).success||n(`the name must be lower-case-dashed`);let r=new Set;for(let e of t.indexes)r.has(e.name)&&n(`index name "${e.name}" is declared twice`),r.add(e.name);let{retention:i}=t,a=t.secretPaths.length>0;if(`ttlMs`in i&&(i.from===`at`&&t.at!==`required`&&n(`a ttl from "at" needs at: "required"`),a&&n(`a kind with secret fields cannot use engine TTL (its keychain values would be orphaned)`)),`maxRows`in i||`maxRowsPerDevice`in i){i.maxRowsPerDevice!==void 0&&t.device!==`required`&&n(`maxRowsPerDevice needs device: "required"`),t.at!==`required`&&n(`a row bound trims the oldest "at": it needs at: "required"`),a&&n(`a kind with secret fields cannot use an engine row bound`);let e=Math.max(i.maxRows??0,i.maxRowsPerDevice??0);t.database===`settings`&&e>5e4&&n(`a row bound above ${fa} belongs in database: "events" (a big delete on the settings thread stalls every configuration read)`)}t.deviceRemoval===`delete`&&t.device===`none`&&n(`deviceRemoval: "delete" needs a device: "required" or "optional"`);for(let e of t.secretPaths)for(let r of Wa(e))t.secretArrayKeys[r]===void 0&&n(`secret path "${e}" crosses the array "${r}": declare its id key in secretArrayKeys`)}function oo(e){return{...l(e,{unrepresentable:`any`,io:`input`})}}function so(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function co(e,t){let n=e.oneOf??e.anyOf;if(Array.isArray(n))return n.length>0&&n.every(e=>so(e)&&co(e,t));let r=e.properties;return so(r)&&Object.prototype.hasOwnProperty.call(r,t)}function lo(e){let t={};for(let[n,r]of Object.entries(e)){let e=Ha(r.schema),i=r.entry?.nameField??`name`,a=oo(r.schema);if(r.entry!==void 0&&!co(a,i))throw new Oa(`kind "${n}": an entry kind's schema needs a "${i}" field`);let o=ro.parse({database:r.database,class:r.class,writeTrigger:r.writeTrigger,device:r.device,at:r.at,indexes:r.indexes===void 0?void 0:[...r.indexes],retention:r.retention,deviceRemoval:r.deviceRemoval,maxDataBytes:r.maxDataBytes,secretPaths:[...e],secretArrayKeys:r.secretArrayKeys===void 0?void 0:{...r.secretArrayKeys},adoptsFrom:r.adoptsFrom,transactFamily:r.transactFamily,entry:r.entry===void 0?void 0:{title:r.entry.title,nameField:i,fields:a}});ao(n,o),t[n]={name:n,schema:r.schema,declaration:o}}return t}function uo(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.declaration]))}function fo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}async function O(e){try{return await e()}catch(e){throw Fa(e)}}function po(e){return e.issues.slice(0,5).map(e=>`${e.path.join(`.`)||`(root)`}: ${e.message}`).join(`; `)}function mo(e,t){return{id:e.id,deviceId:e.deviceId,at:e.at,expiresAt:e.expiresAt,rev:e.rev,updatedAt:e.updatedAt,data:t}}var ho=class{def;o;name;decl;constructor(e,t){this.def=e,this.o=t,this.name=e.name,this.decl=e.declaration}get hasSecrets(){return this.decl.secretPaths.length>0}requireSecrets(){if(this.o.secrets===null)throw new Ea(`kind "${this.name}" has secret fields and this process has no keychain door`);return this.o.secrets}typed(e){return mo(e,e.data)}async storeSecrets(e,t,n){if(!this.hasSecrets)return{body:t,rollback:async()=>{}};let r=this.requireSecrets(),i=[],a=Ja(t,this.decl.secretPaths,this.decl.secretArrayKeys,t=>{let r=st(t.value);if(r.kind===`clear`)return Ka;if(r.kind===`keep`)return n===`put`?Be:t.value===null?null:t.concrete.includes(`[`)?Be:Ka;let a=Za(this.o.owner,this.name,e,t.concrete);return i.push({ref:a,value:r.value}),nt(a)}),o=[],s=async()=>{for(let{ref:e,previous:t}of o)try{t===void 0?await r.delete([e]):await r.put(e,t)}catch(e){this.o.logger?.warn(`records: could not restore a keychain value after a refused write`,{meta:{kind:this.name,error:e instanceof Error?e.message:`unknown`}})}};for(let t of i)try{let e=(await r.resolve([t.ref]))[t.ref],n=e?.kind===`value`?e.value:void 0;await r.put(t.ref,t.value),o.push({ref:t.ref,previous:n})}catch(t){throw await s(),new Ea(`cannot store a secret of ${this.name}/${e}: ${t instanceof Error?t.message:`the keychain refused`}. Unlock the keychain (System -> Secrets) and save again`)}return{body:a,rollback:s}}async releaseRefs(e){if(!(e.length===0||this.o.secrets===null))try{await this.o.secrets.delete(e)}catch(t){this.o.logger?.warn(`records: could not remove released keychain values`,{meta:{kind:this.name,count:e.length,error:t instanceof Error?t.message:`unknown`}})}}validate(e,t){let n=this.hasSecrets?Ja(e,this.decl.secretPaths,this.decl.secretArrayKeys,e=>{let t=st(e.value);return t.kind===`clear`?Ka:t.kind===`keep`?Be:e.value}):e,r=this.def.schema.safeParse(n);if(!r.success)throw new Da(`${this.name}/${t}: ${po(r.error)}`);if(!fo(r.data))throw new Da(`${this.name}/${t}: the body must be an object`);return r.data}async get(e){let t=await O(()=>this.o.transport.get({kind:this.name,id:e}));return t===null?null:this.typed(t)}async getMany(e){return e.length===0?[]:(await O(()=>this.o.transport.getMany({kind:this.name,ids:[...e]}))).map(e=>this.typed(e))}async getResolved(e){let t=await this.get(e);return t===null?null:(await this.resolveRows([t]))[0]??t}async resolveRows(e){if(!this.hasSecrets||e.length===0)return e;let t=this.requireSecrets(),n=await O(()=>this.o.transport.secretRefs({kind:this.name,ids:e.map(e=>e.id)})),r=Object.values(n).flatMap(e=>Object.values(e));if(r.length===0)return e;let i=await t.resolve(r);return e.map(e=>{let t=n[e.id]??{},r=Ja(e.data,this.decl.secretPaths,this.decl.secretArrayKeys,n=>{let r=t[n.concrete];if(r===void 0)return n.value;let a=i[r];if(a?.kind===`value`)return a.value;let o=a?.kind===`unavailable`?a.reason:a?.kind??`no answer`;throw new Ea(`the secret "${n.concrete}" of ${this.name}/${e.id} cannot be served (${o})`)});return{...e,data:r}})}async put(e,t={}){let n=this.validate(e.data,e.id),{body:r,rollback:i}=await this.storeSecrets(e.id,n,`put`),a=await O(()=>this.o.transport.put({kind:this.name,record:{...e,data:go(r)},...t.ifRev===void 0?{}:{ifRev:t.ifRev}})).catch(async e=>{throw await i(),e});return await this.releaseRefs(a.releasedRefs),{rev:a.rev}}async putMany(e){if(e.length===0)return{count:0};let t=[],n=[];try{for(let r of e){let e=this.validate(r.data,r.id),{body:i,rollback:a}=await this.storeSecrets(r.id,e,`put`);n.push(a),t.push({...r,data:go(i)})}}catch(e){for(let e of n)await e();throw e}let r=await O(()=>this.o.transport.putMany({kind:this.name,records:t})).catch(async e=>{for(let e of n)await e();throw e});return await this.releaseRefs(r.releasedRefs),{count:r.count}}async patch(e,t,n={}){let{body:r,rollback:i}=await this.storeSecrets(e,t,`patch`),a=await O(()=>this.o.transport.patch({kind:this.name,id:e,data:go(r),...n.at===void 0?{}:{at:n.at},...n.expiresAt===void 0?{}:{expiresAt:n.expiresAt},...n.ifRev===void 0?{}:{ifRev:n.ifRev}})).catch(async e=>{throw await i(),e});return await this.releaseRefs(a.releasedRefs),{rev:a.rev}}async delete(e){let t=await O(()=>this.o.transport.delete({kind:this.name,id:e}));return await this.releaseRefs(t.secretRefs),t.deleted}async deleteMany(e){if(e.length===0)return 0;let t=await O(()=>this.o.transport.deleteMany({kind:this.name,ids:[...e]}));return await this.releaseRefs(t.secretRefs),t.deleted}async query(e,t={}){let n=await O(()=>this.o.transport.query({...e,kind:this.name,limit:e.limit??100})),r=n.records.map(e=>this.typed(e));return{records:t.resolveSecrets===!0?await this.resolveRows(r):r,nextCursor:n.nextCursor}}async count(e){return(await O(()=>this.o.transport.count({...e,kind:this.name}))).count}async histogram(e){return(await O(()=>this.o.transport.histogram({...e,kind:this.name}))).buckets}async aggregate(e){return(await O(()=>this.o.transport.aggregate({...e,kind:this.name}))).rows}async deleteWhere(e){let t=await O(()=>this.o.transport.deleteWhere({...e,kind:this.name}));return await this.releaseRefs(t.secretRefs),t.deleted}async allocateId(){return(await O(()=>this.o.transport.allocateId({kind:this.name}))).id}};function go(e){if(!fo(e))throw new Da(`the record body must be an object`);return e}function _o(e){let t=new WeakMap,n=new Map;return{owner:e.owner,forOwner:e.transportForOwner===void 0?null:t=>{let r=n.get(t);if(r!==void 0)return r;let i=e.transportForOwner;if(i===void 0)throw Error(`forOwner: no delegate transport`);let a=_o({owner:t,transport:i(t),secrets:e.secrets?.forOwner?.(t)??null,...e.logger===void 0?{}:{logger:e.logger}});return n.set(t,a),a},async declare(t){let n=await O(()=>e.transport.declareKinds({kinds:{...uo(t)}})),r=Object.entries(n.kinds).filter(e=>e[1].adoptionPending!==null);if(r.length>0)throw new ka(`${r.map(([e,t])=>t.adoptionPending===null?e:`${e} (legacy table "${t.adoptionPending.legacyTable}" holds ${t.adoptionPending.legacyRows} rows)`).join(`, `)}. Stop the addon and run scripts/hub/records-adopt.ts --copy --apply before starting this build`);return n.kinds},kind(n){let r=t.get(n);if(r!==void 0)return r;let i=new ho(n,e);return t.set(n,i),i},async deleteDevice(t,n={}){let r=await O(()=>e.transport.deleteDevice({deviceId:t,...n.kinds===void 0?{}:{kinds:[...n.kinds]}}));if(r.secretRefs.length>0&&e.secrets!==null)try{await e.secrets.delete(r.secretRefs)}catch(t){e.logger?.warn(`records: could not remove released keychain values`,{meta:{count:r.secretRefs.length,error:t instanceof Error?t.message:`unknown`}})}return r.deleted}}}function vo(e){return f({name:u().min(1),...e})}function yo(e,t){let n=lo({[e]:{schema:t.schema,class:`config`,writeTrigger:t.writeTrigger??`an operator adds or edits an entry in the entries UI`,retention:{none:`an entry goes only when the operator deletes it`},...t.database===void 0?{}:{database:t.database},...t.indexes===void 0?{}:{indexes:t.indexes},...t.secretArrayKeys===void 0?{}:{secretArrayKeys:t.secretArrayKeys},...t.adoptsFrom===void 0?{}:{adoptsFrom:t.adoptsFrom},entry:{title:t.title,...t.nameField===void 0?{}:{nameField:t.nameField}}}})[e];if(n===void 0)throw new Oa(`entry kind "${e}" was not built`);return n}var bo=`@settings-brokers/`;function xo(e){return`${bo}${e}`}function So(e){if(!e.startsWith(`@settings-brokers/`))return null;let t=e.slice(18);return t.length>0?t:null}var Co=`@settings-array/`;function wo(e,t){return`${Co}${e}/${t}`}function To(e){if(!e.startsWith(`@settings-array/`))return null;let t=e.slice(16),n=t.indexOf(`/`);if(n<=0||n>=t.length-1)return null;let r=t.slice(0,n),i=t.slice(n+1);return r.length===0||i.length===0?null:{addonId:r,settingsKey:i}}function Eo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Do(e,t){let n=new Map;return Ja(t,e.secretPaths,e.secretArrayKeys,e=>(T(e.value)&&n.set(e.concrete,e.value.$secret),e.value)),n}function Oo(e){let t=new Map;return{access:{owner:e,ref:(t,n)=>Lt({owner:e,scope:t,fieldPath:n}),resolve:async e=>{let n={};for(let r of e){let e=t.get(r);n[r]=e===void 0?{kind:`missing`}:{kind:`value`,value:e,version:1}}return n},put:async(e,n)=>(t.set(e,n),1),delete:async e=>{let n=0;for(let r of e)t.delete(r)&&(n+=1);return n},state:async()=>({state:`ready`}),onChange:()=>()=>void 0,forOwner:null}}}function see(e=`spec`){let t=new Map,n=new Map,r=1,i=!1,a=!1,o=e=>{let t=n.get(e);return t===void 0&&(t=new Map,n.set(e,t)),t},s=e=>{let n=t.get(e);if(n===void 0)throw Error(`kind "${e}" is not declared`);return n},c=(e,t)=>{if(e.secretPaths.length===0)return t;let n=Ja(t,e.secretPaths,e.secretArrayKeys,e=>e.value===null?null:Be);return Eo(n)?n:t},l=(e,t)=>({id:t.id,deviceId:null,at:t.at,expiresAt:null,rev:t.rev,updatedAt:t.updatedAt,data:c(s(e),t.data)}),u=(t,n,r,i)=>{let a=s(t);if(a.secretPaths.length===0)return{body:r,released:[]};let o=i===null?new Map:Do(a,i),c=Ja(r,a.secretPaths,a.secretArrayKeys,r=>{let i=Za(e,t,n,r.concrete);if(T(r.value)){if(r.value.$secret!==i)throw Error(`foreign secret marker`);return r.value}if(r.value===`__camstack_redacted__`){let e=o.get(r.concrete);return e===void 0?Ka:{$secret:e,v:1}}if(r.value===null||r.value===void 0)return Ka;throw Error(`${t}/${n}: a secret field takes a keychain marker, never a value`)});if(!Eo(c))throw Error(`the body must be an object`);let l=Do(a,c);return{body:c,released:[...o.entries()].filter(([e,t])=>l.get(e)!==t).map(([,e])=>e)}},d=(e,t)=>{if(i)throw Error(`records engine unreachable`);if(s(e).at===`required`&&t.at===void 0)throw Error(`${e}/${t.id}: the kind needs "at" on every write`);let n=o(e).get(t.id),{body:a,released:c}=u(e,t.id,t.data,n?.data??null),l=(n?.rev??0)+1;return r+=1,o(e).set(t.id,{id:t.id,at:t.at??null,rev:l,updatedAt:r,data:a}),{rev:l,released:c}},f=e=>{throw Error(`the fake records transport does not implement ${e}`)};return{records:_o({owner:e,transport:{declareKinds:async({kinds:e})=>{let n={},r=0;for(let[i,a]of Object.entries(e))t.set(i,a),r+=1,n[i]={kindId:r,state:`created`,createdIndexes:a.indexes.map(e=>e.name),adoptionPending:null};return{kinds:n}},get:async({kind:e,id:t})=>{if(a)throw Error(`records engine unreachable`);let n=o(e).get(t);return n===void 0?null:l(e,n)},getMany:async({kind:e,ids:t})=>t.flatMap(t=>{let n=o(e).get(t);return n===void 0?[]:[l(e,n)]}),secretRefs:async({kind:e,ids:t})=>{let n=s(e),r={};for(let i of t){let t=o(e).get(i);t!==void 0&&(r[i]=Object.fromEntries(Do(n,t.data)))}return r},put:async({kind:e,record:t,ifRev:n})=>{if(n!==void 0&&(o(e).get(t.id)?.rev??0)!==n)throw Error(`stale ifRev`);let{rev:r,released:i}=d(e,t);return{rev:r,releasedRefs:i}},putMany:async({kind:e,records:t})=>{let n=[];for(let r of t)n.push(...d(e,r).released);return{count:t.length,releasedRefs:n}},patch:async()=>f(`patch`),delete:async({kind:e,id:t})=>{if(i)throw Error(`records engine unreachable`);let n=o(e).get(t);return n===void 0?{deleted:!1,secretRefs:[]}:(o(e).delete(t),{deleted:!0,secretRefs:[...Do(s(e),n.data).values()]})},deleteMany:async({kind:e,ids:t})=>{let n=0,r=[];for(let i of t){let t=o(e).get(i);t!==void 0&&(o(e).delete(i),n+=1,r.push(...Do(s(e),t.data).values()))}return{deleted:n,secretRefs:r}},query:async e=>{if(a)throw Error(`records engine unreachable`);let t=s(e.kind),n=Object.keys(e.where??{});if(n.length>0&&!t.indexes.some(e=>{let t=new Set(e.fields.slice(0,n.length));return n.length<=e.fields.length&&n.every(e=>t.has(e))}))throw Error(`${e.kind}: no declared index serves [${n.join(`, `)}]`);let r=[...o(e.kind).values()];for(let[t,n]of Object.entries(e.where??{}))r=r.filter(e=>e.data[t]===n);let i=e.order===`at`||e.order===void 0&&t.at===`required`;r.sort((e,t)=>i?(e.at??0)-(t.at??0):e.id<t.id?-1:+(e.id>t.id)),e.desc===!0&&r.reverse();let c=e.cursor===void 0?0:Number(e.cursor),u=r.slice(c,c+e.limit),d=c+e.limit<r.length;return{records:u.map(t=>l(e.kind,t)),nextCursor:d?String(c+e.limit):null}},count:async({kind:e})=>({count:o(e).size}),histogram:async()=>f(`histogram`),aggregate:async()=>f(`aggregate`),deleteWhere:async()=>f(`deleteWhere`),deleteDevice:async()=>f(`deleteDevice`),allocateId:async()=>f(`allocateId`)},secrets:Oo(e).access}),tables:n,failWrites:e=>{i=e},failReads:e=>{a=e},seed:(e,t)=>{o(e).set(t.id,{id:t.id,at:t.at??null,rev:1,updatedAt:1,data:t.data})}}}var ko=`camstack.training/v1`,Ao=`camstack.training-result/v1`,jo=`CAMSTACK_EVENT `,Mo=x([`onnx`,`openvino-fp16`,`openvino-int8`,`coreml-fp16`]),No=y(u(),a().min(0).max(1)),Po=f({schema:g(ko),jobKey:u().uuid(),target:f({kind:g(`detector`),step:g(`object-detection`)}),base:f({modelId:u().min(1),weights:u().min(1),imgsz:a().int().positive()}),baseline:f({modelId:u().min(1),onnxUrl:u().url(),imgsz:a().int().positive(),floors:No}),dataset:f({versionId:u().min(1),annotationHash:u(),sha256:u().regex(/^[0-9a-f]{64}$/)}),split:f({holdoutCameras:S(a().int()),holdoutLastDays:a().int().nonnegative(),valFraction:a().min(0).max(.5),seed:a().int()}),hyper:f({epochs:a().int().positive(),batch:a().int().positive(),lr0:a().positive(),freeze:a().int().nonnegative(),patience:a().int().nonnegative(),seed:a().int()}),replay:f({source:g(`coco2017`),count:a().int().nonnegative()}),exports:S(Mo).min(1),calibration:f({maxFrames:a().int().positive()}),floors:f({minSupport:a().int().positive(),clamp:a().min(0).max(1)}),int8Gate:f({maxMap50Drop:a().min(0).max(1)}),catalog:f({id:u().regex(/^[a-z0-9][a-z0-9-]{2,80}$/),name:u().min(1).max(160)})}),Fo=f({path:u().min(1),bytes:a().int().nonnegative(),sha256:u().regex(/^[0-9a-f]{64}$/),format:x([`onnx`,`openvino`,`coreml`,`pt`]),variant:x([`base`,`int8`])}),Io=f({url:u().min(1),sizeMB:a().nonnegative(),isDirectory:C().optional(),files:S(u()).optional(),runtimes:S(g(`python`)).optional(),revision:u().min(1)}),Lo=f({id:u().min(1),name:u().min(1),description:u(),labels:S(s()),inputSize:f({width:a().int().positive(),height:a().int().positive()}),preprocessMode:g(`letterbox`),defaultClassFloors:No,formats:f({onnx:Io.optional(),openvino:Io.optional(),coreml:Io.optional()})}),Ro=f({positives:a().int(),floor:a().nullable(),tp:a().int(),fp:a().int(),fn:a().int(),precision:a().nullable(),recall:a().nullable(),ap50:a().nullable(),recallByCamera:y(u(),a().nullable()).optional(),recallByLight:y(u(),a().nullable()).optional(),fpByCamera:y(u(),a()).optional(),smallFound:a().int().optional(),smallTotal:a().int().optional()}).passthrough(),zo=f({frames:a().int(),classes:y(u(),Ro)}).passthrough(),Bo=f({schema:g(Ao),jobKey:u(),status:x([`succeeded`,`failed`]),error:f({stage:u(),code:u(),message:u()}).nullable(),trainer:f({version:u(),revision:u()}),toolchain:y(u(),u().nullable()),dataset:f({versionId:u(),annotationHash:u(),sha256:u(),frames:f({train:a().int(),val:a().int(),holdout:a().int()}),holdoutCameras:S(a().int()),replayImages:a().int()}).optional(),training:f({epochsRun:a().int(),bestEpoch:a().int(),bestMap50:a(),bestMap50_95:a(),seconds:a()}).optional(),evaluation:f({holdoutFrames:a().int(),baseline:zo.nullable(),candidate:zo.nullable(),candidateInt8:zo.nullable(),recallDeltaByCamera:y(u(),y(u(),a())).nullable(),map50:y(u(),a().nullable())}).optional(),floors:f({baseline:No,candidate:No,candidateInt8:No.nullable(),notes:S(u())}).optional(),int8:f({kept:C(),map50Fp16:a().nullable(),map50Int8:a().nullable(),reason:u().nullable()}).optional(),exportsDropped:S(f({export:u(),reason:u()})).optional(),files:S(Fo).optional(),bundle:f({path:g(`bundle.tar`),bytes:a().int().nonnegative(),sha256:u().regex(/^[0-9a-f]{64}$/)}).nullable().optional(),catalogDraft:f({base:Lo,int8:Lo.nullable()}).nullable().optional(),licence:u()}),Vo=x([`prepare`,`replay`,`train`,`eval`,`export`,`package`]),Ho={v:g(1),ts:a()},Uo=h(`type`,[f({...Ho,type:g(`stage`),stage:Vo}),f({...Ho,type:g(`epoch`),epoch:a().int(),epochs:a().int(),boxLoss:a().nullable().optional(),map50:a().nullable().optional(),map50_95:a().nullable().optional(),etaSec:a().nullable().optional()}),f({...Ho,type:g(`metric`),name:u(),value:a()}),f({...Ho,type:g(`artifact`),path:u(),bytes:a(),sha256:u()}),f({...Ho,type:g(`done`),status:x([`succeeded`,`failed`]),resultSha256:u().nullable().optional()}),f({...Ho,type:g(`error`),stage:u(),code:u(),message:u()})]);function Wo(e){let t=e.indexOf(jo);if(t<0)return null;let n;try{n=JSON.parse(e.slice(t+15))}catch{return null}let r=Uo.safeParse(n);return r.success?r.data:null}var Go=[`unchanged`,`adjusted`,`reclassified`,`added`,`removed`,`model-error`],Ko=.5,qo=.95,Jo=1e-6,Yo=e=>e===void 0?{}:{label:e};function Xo(e,t){let n=Math.max(0,Math.min(e.x+e.w,t.x+t.w)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.h,t.y+t.h)-Math.max(e.y,t.y)),r=e.w*e.h+t.w*t.h-n;return r>0?n/r:0}function Zo(e,t){return Math.abs(e.x-t.x)<=Jo&&Math.abs(e.y-t.y)<=Jo&&Math.abs(e.w-t.w)<=Jo&&Math.abs(e.h-t.h)<=Jo}function Qo(e){return e?.trim()??``}function cee(e,t,n){let r=Xo(e.bbox,t.bbox);return e.macroClass!==t.macroClass||Qo(e.label)!==Qo(t.label)?{status:`reclassified`,iou:r}:{status:r<n?`adjusted`:`unchanged`,iou:r}}function $o(e,t,n,r){let i=[];for(let a of t){let t=e[a];t!==void 0&&n.forEach((e,n)=>{let o=Zo(t.bbox,e.bbox),s=o?1:Xo(t.bbox,e.bbox);(o||s>=r)&&i.push({savedIndex:a,originIndex:n,iou:s,exact:o})})}i.sort((e,t)=>Number(t.exact)-Number(e.exact)||t.iou-e.iou);let a=new Map,o=new Set;for(let e of i)a.has(e.savedIndex)||o.has(e.originIndex)||(a.set(e.savedIndex,e.originIndex),o.add(e.originIndex));return a}function es(e,t,n,r={}){let i=r.matchIou??.5,a=r.adjustedIou??.95,o=new Set,s=[],c=[];e.forEach((e,t)=>{e.origin===null?c.push(t):o.add(e.origin.ref)});for(let e of n)o.add(e.ref);let l=$o(e,c,t,i);for(let e of l.values()){let n=t[e];n!==void 0&&o.add(n.ref)}e.forEach((e,n)=>{let r=e.origin,i=r===null?t[l.get(n)??-1]:void 0,o=r??i??null,c=r===null;if(e.kind===`model_error`){s.push({ref:e.id,savedId:e.id,status:`model-error`,approximate:!1,macroClass:e.macroClass,...Yo(e.label),...o===null?{}:{origin:o,iou:Xo(e.bbox,o.bbox)}});return}if(o===null||o.source===`operator`){s.push({ref:e.id,savedId:e.id,status:`added`,approximate:c&&o===null,macroClass:e.macroClass,...Yo(e.label),...o===null?{}:{origin:o}});return}let u=cee(e,o,a);s.push({ref:e.id,savedId:e.id,status:u.status,approximate:c,macroClass:e.macroClass,...Yo(e.label),origin:o,iou:u.iou})});for(let e of n)s.push({ref:e.ref,status:`removed`,approximate:!1,macroClass:e.snapshot.macroClass,...Yo(e.snapshot.label),origin:e.snapshot});if(r.inferRemoved===!0)for(let e of t)o.has(e.ref)||s.push({ref:e.ref,status:`removed`,approximate:!0,macroClass:e.macroClass,...Yo(e.label),origin:e});return{boxes:s,approximate:s.some(e=>e.approximate)}}function ts(e){let t={unchanged:0,adjusted:0,reclassified:0,added:0,removed:0,"model-error":0};for(let n of e.boxes)t[n.status]+=1;return{counts:t,total:e.boxes.length,changed:e.boxes.length-t.unchanged,approximate:e.approximate}}var ns=`retrain-revision-conflict`;function rs(e,t){return`${ns}: frame ${e} moved on — it is at revision ${String(t.currentRevision)}, the save expected ${String(t.expectedRevision)} (current=${String(t.currentRevision)} expected=${String(t.expectedRevision)})`}function is(e){if(!e.includes(`retrain-revision-conflict`))return null;let t=/current=(\d+) expected=(\d+)/.exec(e);return t?.[1]===void 0||t[2]===void 0?null:{currentRevision:Number(t[1]),expectedRevision:Number(t[2])}}var as=3e4,os=6e4,ss=x([`confirmed`,`suppressed`,`exhausted-fallback`]),cs=f({id:u(),at:a().int(),deviceId:a().int(),sourceTrackId:u(),className:u(),verdict:ss,reason:u().nullable(),attempts:a().int(),deferredForMs:a().int(),decidedOnCoastedFrame:C(),birthEvidenceAvailable:C(),decidedByBirthEvidence:C(),bestScore:a().nullable(),appliedMinConfidence:a().nullable(),firstSeen:a().int().nullable(),motionOnsetAt:a().int().nullable(),birthLatencyMs:a().int().nullable(),birthIndexInBurst:a().int().nullable()}),ls=f({deviceId:a().int().optional(),since:a().int().optional(),verdict:ss.optional(),limit:a().int().min(1).max(5e3).optional()}),us=5e3,ds=f({id:u(),note:u(),deviceId:a().int(),sourceTrackId:u(),archivedAt:a().int(),trackStartedAt:a().int().nullable(),trackClass:u().nullable(),trackLabel:u().nullable()}),fs=f({deviceId:a().int().optional(),limit:a().int().min(1).max(1e3).optional()}),ps=2e4,ms=5e3,hs=x([`same-subject`,`different-subjects`]),gs=x([`before`,`after`]),_s=x([`mixed`,`not-a-subject`]),vs=f({id:u(),deviceId:a().int(),leftTrackId:u(),rightTrackId:u(),leftSide:gs.nullable(),rightSide:gs.nullable(),relation:hs,presence:g(`continuous`).nullable(),leftStartedAt:a().int().nullable(),rightStartedAt:a().int().nullable(),createdAt:a().int(),updatedAt:a().int(),author:u().nullable()}),ys=f({id:u(),deviceId:a().int(),sourceTrackId:u(),purity:_s,switchAtMs:a().int().nullable(),startedAt:a().int().nullable(),createdAt:a().int(),updatedAt:a().int(),author:u().nullable()}),bs=f({deviceId:a().int(),trackId:u().min(1),otherTrackId:u().min(1),relation:hs,presence:g(`continuous`).optional(),trackSide:gs.optional(),otherSide:gs.optional()}),xs=f({deviceId:a().int(),trackId:u().min(1),otherTrackId:u().min(1)}),Ss=f({cleared:C()}),Cs=f({deviceId:a().int(),trackId:u().min(1),purity:x([`pure`,`mixed`,`not-a-subject`]),switchAtMs:a().int().optional()}),ws=f({purity:ys.nullable()}),Ts=f({deviceId:a().int(),trackId:u().optional(),since:a().int().optional(),until:a().int().optional(),limit:a().int().min(1).max(5e3).optional()}),Es=f({relations:S(vs).readonly(),purities:S(ys).readonly(),truncated:C()}),Ds=x([`unknown-track`,`cross-device`,`self-relation`,`contradiction`,`switch-outside-track`,`switch-needs-mixed`]),Os={high:`High`,mid:`Mid`,low:`Low`};function ks(e){return Os[e]??e.charAt(0).toUpperCase()+e.slice(1)}function As(e){return(e.width??0)*(e.height??0)}function js(e){if(e.length===0)return[];let t=e.map((e,t)=>({s:e,i:t,px:As(e.metadata??{})})).toSorted((e,t)=>t.px-e.px),n=Array.from({length:e.length});for(let e=0;e<t.length;e++){let{s:r,i}=t[e],a;a=e===0?`high`:e===t.length-1?`low`:`mid`,n[i]={...r,quality:a}}return n}function Ms(e){let t=e.height??0,n=e.width??0;return t>=1080||n>=1920?`high`:t>=480||n>=640?`mid`:`low`}function Ns(e){let t=e.protocols.find(e=>e.type===`rtsp`&&e.url)??e.protocols.find(e=>e.url),n=t?.type,r=n===`rtsp`?`rtsp`:n===`http`||n===`flv`?`http-mjpeg`:`custom`;return{id:e.id,label:e.label??e.id,protocol:r,url:t?.url,profileHint:e.quality}}function Ps(e){return typeof e==`string`}function Fs(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Is(e){return Ps(e)&&e.trim()?{url:e}:Fs(e)&&Ps(e.url)&&e.url.trim()?{url:e.url,label:Ps(e.label)?e.label:void 0}:null}function Ls(e){let t=Ps(e.snapshot_url)?e.snapshot_url:void 0;if(Array.isArray(e.streams)){let n=[];for(let t of e.streams){let e=Is(t);e&&n.push(e)}return{streams:n,snapshot_url:t}}let n=[],r=Ps(e.main_stream_url)?e.main_stream_url:void 0;r&&n.push({url:r,label:Ps(e.main_stream_name)?e.main_stream_name:void 0});let i=Ps(e.sub_stream_url)?e.sub_stream_url:void 0;i&&n.push({url:i,label:Ps(e.sub_stream_name)?e.sub_stream_name:void 0});let a=Ps(e.third_stream_url)?e.third_stream_url:void 0;return a&&n.push({url:a,label:Ps(e.third_stream_name)?e.third_stream_name:void 0}),{streams:n,snapshot_url:t}}function Rs(e){if(e.length===0)return{};let t=js(e),n={},r=t.find(e=>e.quality===`high`),i=t.find(e=>e.quality===`mid`),a=t.find(e=>e.quality===`low`);r&&(n.high=r.id),i&&(n.mid=i.id),a&&(n.low=a.id);let o=r??i??a??t[0];return o&&(n.high||=o.id,n.mid||=o.id,n.low||=o.id),n}var zs={streaming:!0,notifications:!0,objectDetection:!1,remoteAccess:!0,agentCluster:!1,smartHome:!0,recordings:!0,backup:!0,repl:!0},Bs={debug:0,info:1,warn:2,error:3};function Vs(e,t){return Bs[e]<=Bs[t]}var Hs=x([`recording`,`events`]),Us=x([`prune`,`manual-delete`,`rescan`,`retention-run`,`relocate`,`orphan-audit`]),Ws=x([`retention`,`quota`,`manual`,`operator`,`maintenance`,`orphaned-device`]),Gs=f({id:u(),at:a(),domain:Hs,op:Us,reason:Ws,deviceId:a().nullable(),nodeId:u(),itemsAffected:a(),bytesReclaimed:a(),detail:u().nullable(),actor:u()}),Ks=f({deviceId:a().optional(),limit:a().int().min(1).max(1e3).optional()}),k=x([`high`,`mid`,`low`]),qs=[`high`,`mid`,`low`],Js=p([k,g(`auto`)]),Ys=x([`pull-rtsp`,`pull-rtmp`,`pull-http`,`pull-flv`,`pull-rfc4571`,`push-annexb`,`derived`]),Xs=f({width:a().int().positive(),height:a().int().positive()}),Zs=f({camStreamId:u().min(1),deviceId:a().int().nonnegative(),kind:Ys,url:u().optional(),codec:u().optional(),resolution:Xs.optional(),fps:a().positive().optional(),label:u().optional(),deviceFeatures:S(u()).optional(),autoEligible:C().optional(),profileHint:k.optional(),metadata:y(u(),s()).optional()}),Qs=x([`unassigned`,`idle`,`connecting`,`streaming`,`error`]),$s=f({deviceId:a().int().nonnegative(),profile:k,brokerId:u(),sourceCamStreamId:u().nullable(),status:Qs,resolution:Xs.optional(),codec:u().optional(),preBufferSec:a().nonnegative().optional(),errorMessage:u().optional()});function ec(e,t){return`${e}/${t}`}function tc(e,t){return`${e}/${t}`}function nc(e){let t=e.indexOf(`/`);if(t<=0)return null;let n=e.slice(0,t),r=e.slice(t+1);if(!/^\d+$/.test(n))return null;let i=k.safeParse(r);return i.success?{deviceId:Number(n),profile:i.data}:null}function rc(e,t){let n=[...e].filter(e=>t===void 0||e.deviceId===t).toSorted((e,t)=>qs.indexOf(e.profile)-qs.indexOf(t.profile)),r=new Set,i=[];for(let e of n){let t=e.sourceCamStreamId;t!==null&&(r.has(t)||(r.add(t),i.push(e)))}return i}var ic=f({id:u(),label:u(),protocol:x([`rtsp`,`rtmp`,`annexb`,`http-mjpeg`,`webrtc`,`custom`]),url:u().optional(),resolution:f({width:a(),height:a()}).readonly().optional(),fps:a().optional(),bitrate:a().optional(),codec:u().optional(),profileHint:k.optional()}),ac=f({type:u(),url:u(),videoCodec:u().optional(),audioCodec:u().optional(),metadata:y(u(),s()).readonly().optional()}),oc=f({shmId:u(),slot:a().int().nonnegative(),seq:a().int().nonnegative(),width:a().int().positive(),height:a().int().positive(),format:x([`jpeg`,`rgb`,`bgr`,`yuv420`,`gray`]),pts:a(),byteLength:a().int().nonnegative(),nodeId:u(),slotCount:a().int().positive()}),sc=x(_e),cc=f({data:b(Uint8Array),sampleRate:a().int().positive(),channels:a().int().positive(),timestamp:a(),format:sc.optional()}),lc=f({brokerId:u(),tag:u().optional(),accept:S(sc).readonly().optional()}),uc=f({subscriptionId:u()}),dc=x([`idle`,`connecting`,`streaming`,`error`,`stopped`]),fc=f({status:dc,inputFps:a(),encodedSubscribers:a(),uptimeMs:a(),bitrateKbps:a(),idrIntervalMs:a(),codec:u().optional(),totalBytes:a(),packetCount:a(),rtspClients:a(),pipeClients:a(),preBufferSec:a(),preBufferMs:a(),preBufferPackets:a(),audio:f({codec:u(),sampleRate:a(),channels:a(),supported:C()}).nullable().optional(),audioMuted:C().optional(),audioMutedDropped:a().optional()}),pc=f({profile:k,brokerId:u(),url:u(),mutedUrl:u(),enabled:C(),codec:u().optional(),resolution:Xs.optional()}),mc=f({id:u(),name:u(),category:u().optional(),description:u().optional(),icon:u().optional()}),hc=[`person`,`vehicle`,`animal`,`package`],gc=[`person`,`vehicle`,`animal`];function _c(e){return gc.some(t=>t===e)}var vc=f({mapping:y(u(),x(hc)),preserveOriginal:C()}),yc={preMs:5e3,postMs:1e4},bc=a().int().min(0).max(6),xc=/^([01]\d|2[0-3]):[0-5]\d$/,Sc=x([`off`,`events`,`continuous`,`on-device-decision`]),Cc=x(gc),wc=e=>new Set(e).size===e.length,Tc=f({motion:C().optional(),audioThresholdDbfs:a().optional(),objectClasses:S(Cc).min(1).refine(wc,{message:`objectClasses must not repeat a class`}).optional(),sensorDeviceIds:S(a().int().positive()).min(1).max(16).refine(wc,{message:`sensorDeviceIds must not repeat a device`}).optional()}),Ec=x([`continuous`,`events`]),Dc=Tc,Oc=x([`on`,`muted`]),kc=f({days:S(bc),start:u().regex(xc),end:u().regex(xc),mode:Ec,audio:Oc.optional(),triggers:Dc.optional(),preBufferSec:a().min(0).optional(),postBufferSec:a().min(0).optional()}),Ac={postBufferSec:30};function jc(e){let t=[],n=e.bands.map((e,n)=>{if(e.preBufferSec===void 0)return e;t.push(n);let{preBufferSec:r,...i}=e;return i});return t.length===0?{config:e,strippedBands:t}:{config:{...e,bands:n},strippedBands:t}}var lee=Ac.postBufferSec*1e3,Mc=f({maxAgeDays:a().min(0).optional(),maxSizeGb:a().min(0).optional()}),Nc=f({enabled:C(),mode:Sc.optional(),profiles:S(k).optional(),segmentSeconds:a().int().positive().optional(),bands:S(kc).default([]),deviceDecision:C().optional(),retention:Mc.optional()}).strict().refine(e=>e.deviceDecision!==!0||e.bands.length===0,{message:`deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands`,path:[`bands`]});function Pc(e){return e.enabled?e.deviceDecision===!0?`on-device-decision`:e.bands.length===0?`off`:e.bands.some(e=>e.mode===`continuous`)?`continuous`:`events`:`off`}var Fc=[`high`,`low`];function Ic(e,t){if(t!==void 0&&t.length>0){let n=e.filter(e=>t.includes(e));return n.length>0?n:[...e]}let n=e.filter(e=>Fc.includes(e));return n.length>0?n:[...e]}var Lc=[`motion`,`audioThresholdDbfs`,`objectClasses`,`sensorDeviceIds`];function Rc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function zc(e){return Rc(e)&&Rc(e.triggers)&&e.triggers.deviceSignal===!0}function Bc(e){let t=e.triggers;return Rc(t)?Lc.some(e=>t[e]!==void 0):!1}function Vc(e){let t=e.triggers;if(!Rc(t))return e;let{deviceSignal:n,...r}=t;return{...e,triggers:r}}function Hc(e){let t={value:e,migrated:!1,strippedOnly:!1};if(!Rc(e)||!Array.isArray(e.bands)||!e.bands.some(zc))return t;let n=[];for(let t of e.bands){if(!zc(t)||!Rc(t)){n.push(t);continue}Bc(t)&&n.push(Vc(t))}if(n.length>0)return{value:{...e,bands:n},migrated:!1,strippedOnly:!0};let{mode:r,...i}=e;return{value:{...i,bands:[],deviceDecision:!0},migrated:!0,strippedOnly:!1}}var Uc=x([`queued`,`running`,`done`,`failed`,`cancelled`]),Wc=f({jobId:u(),state:Uc,fromLocationId:u(),toLocationId:u(),deviceId:a().nullable(),entities:S(u()),filesMoved:a().int(),bytesMoved:a().int(),filesTotal:a().int().nullable(),rowsReconciled:a().int().nonnegative().optional(),rowsForgotten:a().int().nonnegative().optional(),startedAt:a(),finishedAt:a().nullable(),error:u().nullable()}),Gc=x([`recordings`,`recordingsLow`]),Kc=f({fromLocationId:u(),toLocationId:u(),entities:S(x([`segments`])).optional(),footageClass:Gc.optional(),deviceId:a().int().optional(),profiles:S(u()).optional(),throttleMbps:a().min(1).max(1e3).optional(),sinceMs:a().int().optional()}),qc=f({leaseId:u().min(1)}),Jc=Kc.extend({leaseId:u().min(1)}),Yc=x([`move`,`seal`,`gallery`]),Xc=f({toLocationId:u(),fromLocationId:u().optional(),throttleMbps:a().min(1).max(1e3).optional(),mode:Yc.optional()}),Zc=f({present:C(),rows:a().int().nonnegative().nullable()}),Qc=f({media:Zc,retrainFrames:Zc,anyPresent:C(),total:a().int().nonnegative().nullable()}).nullable(),$c=Xc.extend({leaseId:u().min(1)}),el=x([`recordings`,`recordingsLow`,`eventMedia`,`backups`,`galleryMedia`]),tl=f({recordings:u().min(1).optional(),recordingsLow:u().min(1).optional(),eventMedia:u().min(1).optional(),backups:u().min(1).optional(),galleryMedia:u().min(1).optional()}).refine(e=>Object.keys(e).length>0,{message:`select at least one storage class`}),nl=f({recordings:u().min(1).optional(),recordingsLow:u().min(1).optional(),eventMedia:u().min(1).optional(),backups:u().min(1).optional(),galleryMedia:u().min(1).optional()}).optional(),rl=x([`blocking`,`nonBlocking`]),il=f({destinations:tl,sources:nl,throttleMbps:a().min(1).max(1e3).optional(),mode:rl.optional()}),al=x([`planning`,`sealing`,`pausing`,`moving`,`draining`,`verifying`,`repointing`,`refreshing`,`resuming`,`done`,`failed`,`cancelled`]),ol=x([`pipeline`,`recorder`,`analytics`]),sl=f({filesMoved:a().int().nonnegative(),filesTotal:a().int().nonnegative().nullable(),bytesMoved:a().int().nonnegative(),rowsReconciled:a().int().nonnegative().optional(),startedAt:a(),observedAt:a()}),cl=f({storageClass:el,fromLocationId:u(),toLocationId:u(),freezeSource:C().optional(),moverJobId:u().nullable(),state:Uc.nullable(),error:u().nullable(),progress:sl.nullable()}),ll=f({jobId:u(),phase:al,mode:rl,destinations:tl,sources:nl,throttleMbps:a(),moves:S(cl),pauseLeaseId:u().nullable(),pausedParticipants:S(ol),repointed:C(),cancelRequested:C(),startedAt:a(),updatedAt:a(),finishedAt:a().nullable(),error:u().nullable()}),ul=x([`sharesDeviceWithSource`,`deviceIdentityUnknown`,`unstampedEventMediaRows`,`blockingOnly`,`noMover`]),dl=f({code:ul,storageClass:el,message:u()}),fl=f({destinations:tl,sources:nl,mode:rl,moves:S(f({storageClass:el,fromLocationId:u(),toLocationId:u(),freezeSource:C().optional()})),findings:S(dl)}),pl=x([`footage`,`media`]),ml=f({lane:pl,job:Wc,migrationJobId:u().nullable(),observedAt:a()}),hl=f({storageClass:el,fromLocationId:u(),toLocationId:u(),items:a().int().nonnegative().nullable(),bytes:a().int().nonnegative().nullable()}),gl=f({classes:S(el).min(1),throttleMbps:a().min(1).max(1e3).optional()}),_l=f({fromLocationId:u().min(1),footageClass:Gc.optional()}),vl=f({segments:a().int().nonnegative(),bytes:a().int().nonnegative()}).nullable(),yl=f({locationId:u().min(1),apply:C().optional(),deviceId:a().int().positive().optional(),profiles:S(u().min(1)).optional()}),bl=x([`location-unknown`,`source-writable`,`no-ledger`,`archive-unreadable`,`anchor-absent`,`anchor-unreadable`,`anchor-moved`]),xl=x([`live-tail`,`listing-error`,`path-mismatch`,`durable-refused`]),Sl=f({"live-tail":a().int().nonnegative(),"listing-error":a().int().nonnegative(),"path-mismatch":a().int().nonnegative(),"durable-refused":a().int().nonnegative()}),Cl=f({deviceId:a().int(),hoursWalked:a().int().nonnegative(),hoursMissing:a().int().nonnegative(),ghostSegments:a().int().nonnegative(),ghostBytes:a().int().nonnegative(),forgottenSegments:a().int().nonnegative(),orphanFiles:a().int().nonnegative()}),wl=f({locationId:u(),applied:C(),refused:bl.nullable(),archiveSegments:a().int().nonnegative().nullable(),archiveBytes:a().int().nonnegative().nullable(),hoursClaimed:a().int().nonnegative(),hoursWalked:a().int().nonnegative(),hoursMissing:a().int().nonnegative(),listings:a().int().nonnegative(),segmentsClaimed:a().int().nonnegative(),ghostSegments:a().int().nonnegative(),ghostBytes:a().int().nonnegative(),ghostHoursWhole:a().int().nonnegative(),forgottenSegments:a().int().nonnegative(),forgottenBytes:a().int().nonnegative(),orphanFiles:a().int().nonnegative(),orphanSample:S(u()).readonly(),hoursSkipped:a().int().nonnegative(),skippedByReason:Sl,bounded:C(),byDevice:S(Cl).readonly()}),Tl=f({rows:a().int().nonnegative()}).nullable(),El=f({toLocationId:u().min(1),fromLocationId:u().optional(),mode:Yc.optional()}),Dl=x([`orphans`,`debug-media`,`ghost-ledger`,`done`,`failed`,`cancelled`]),Ol=f({includeDebugMedia:C().optional()}),kl=f({jobId:u(),phase:Dl,includeDebugMedia:C(),orphansReclaimed:a().int().nonnegative(),orphanBytesReclaimed:a().int().nonnegative(),debugMediaReclaimed:a().int().nonnegative(),debugMediaBytesReclaimed:a().int().nonnegative(),ghostsForgotten:a().int().nonnegative(),ghostBytesForgotten:a().int().nonnegative(),detail:u().nullable(),cancelRequested:C(),startedAt:a(),updatedAt:a(),finishedAt:a().nullable(),error:u().nullable()}),Al=f({jobId:u().optional()});async function jl(e){let t=e=>{throw Error(`mover refused: ${e}`)},n=async()=>{try{return await e.clearance(e.locationIds)}catch(e){return t(`the storage orchestrator could not be asked (${e instanceof Error?e.message:String(e)})`)}},r=e=>`a re-point of "${e.repointLocationId??`a location`}" holds an overlapping storage root`,i=await n();if(!i.clear)return t(r(i));let a=e.start(),o=await n().catch(t=>{throw e.cancel(a),t});return o.clear?a:(e.cancel(a),t(r(o)))}var Ml=[`face`,`plate`],Nl=[`face`,`plate`,`clip`,`custom`],Pl=[`active`,`readonly`,`drain`,`disabled`],Fl=x(Pl),Il=x([`normal`,`never`,`drain`]),Ll=`readOnly`;function Rl(e){return e===`active`}function zl(e){return e!==`disabled`}function Bl(e){switch(e){case`active`:return`normal`;case`drain`:return`drain`;case`readonly`:case`disabled`:return`never`}}function Vl(e){return e.mode===void 0&&(e.config.readOnly===!0||e.enabled===!1)?`readonly`:null}function Hl(e){return(Ul(e.mode)?e.mode:void 0)??Vl(e)??`active`}function Ul(e){return Pl.some(t=>t===e)}function Wl(e){return Rl(Hl(e))}function Gl(e){return zl(Hl(e))}function Kl(e){return Bl(Hl(e))}function ql(e){if(!(`readOnly`in e))return e;let t={...e};return delete t[Ll],t}function Jl(e,t){return{...e,mode:t,enabled:Rl(t),config:ql(e.config)}}var Yl=u().regex(/^[a-z][a-zA-Z0-9-]*$/),A=f({id:u().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),type:u(),displayName:u().min(1),providerId:u().min(1),config:y(u(),s()),nodeId:u().optional(),isSystem:C().default(!1),enabled:C().optional(),mode:Fl.optional(),capacity:f({totalBytes:a(),availableBytes:a()}).nullable().optional(),owned:f({bytes:a().int().nonnegative(),measuredAtMs:a().int().nonnegative()}).optional(),createdAt:a(),updatedAt:a()}),Xl=f({isDefault:C().optional()});function Zl(e){return Wl({...e,config:e.config??{}})}var Ql=1024**3;function $l(e){return Math.floor(e*Ql)}var eu=f({locationId:u(),startedAtMs:a(),startBytes:a(),bytesRemaining:a(),drained:C(),estimatedEmptyAtMs:a().nullable()}),tu=p([Yl,u().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/)]),nu=x([`local-path`,`cap-mediated`]),ru=`local-path`,iu=f({id:u().regex(/^[a-z][a-zA-Z0-9-]*$/,{message:`id must start with a lowercase letter and contain only letters, digits, or hyphens`}),displayName:u().min(1,{message:`displayName must not be empty`}),description:u().optional(),cardinality:x([`single`,`multi`]),access:nu.optional(),defaultsTo:u().optional(),defaultRoot:x([`data`,`media`,`backup`]).optional()}),au={offsetHours:1,startMonth:3,startWeekIndex:5,startWeekday:`Sunday`,startHour:2,endMonth:10,endWeekIndex:5,endWeekday:`Sunday`,endHour:3},ou={offsetHours:1,startMonth:3,startWeekIndex:2,startWeekday:`Sunday`,startHour:2,endMonth:11,endWeekIndex:1,endWeekday:`Sunday`,endHour:2},su=[{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:au},{id:`Europe/Rome`,label:`Europe/Rome (UTC+1 / CEST)`,region:`Europe`,stdOffsetMinutes:60,dst:au},{id:`Europe/Paris`,label:`Europe/Paris (UTC+1 / CEST)`,region:`Europe`,stdOffsetMinutes:60,dst:au},{id:`Europe/Berlin`,label:`Europe/Berlin (UTC+1 / CEST)`,region:`Europe`,stdOffsetMinutes:60,dst:au},{id:`Europe/Madrid`,label:`Europe/Madrid (UTC+1 / CEST)`,region:`Europe`,stdOffsetMinutes:60,dst:au},{id:`Europe/Amsterdam`,label:`Europe/Amsterdam (UTC+1 / CEST)`,region:`Europe`,stdOffsetMinutes:60,dst:au},{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:ou},{id:`America/Chicago`,label:`America/Chicago (UTC−6 / CDT)`,region:`Americas`,stdOffsetMinutes:-360,dst:ou},{id:`America/Denver`,label:`America/Denver (UTC−7 / MDT)`,region:`Americas`,stdOffsetMinutes:-420,dst:ou},{id:`America/Los_Angeles`,label:`America/Los Angeles (UTC−8 / PDT)`,region:`Americas`,stdOffsetMinutes:-480,dst:ou},{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:{offsetHours:1,startMonth:10,startWeekIndex:1,startWeekday:`Sunday`,startHour:2,endMonth:4,endWeekIndex:1,endWeekday:`Sunday`,endHour:3}}];function cu(e){return su.find(t=>t.id===e)}var lu=x([`info`,`warn`,`error`]),uu=f({name:u().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/,`a channel name is dotted lower-kebab, e.g. area.thing`),description:u().min(1),defaultLevel:lu,perDevice:C()}),du=f({channel:u().min(1),armedUntilMs:a(),deviceIds:S(a().int()).readonly().nullable()}),fu=class{descriptor;on=!1;devices=null;level;closesAtMs=0;constructor(e){this.descriptor=e,this.level=e.defaultLevel}get armedUntilMs(){return this.on?this.closesAtMs:0}wants(e){return this.on?this.devices===null||this.devices.has(e):!1}log(e,t,n){if(!this.on)return;let r={...n.tags,logChannel:this.descriptor.name},i={...n,tags:r};this.level===`error`?e.error(t,i):this.level===`warn`?e.warn(t,i):e.info(t,i)}arm(e){let t=e.deviceIds;this.devices=t===null||t.length===0?null:new Set(t),this.closesAtMs=e.armedUntilMs,this.on=!0}disarm(){this.on=!1,this.devices=null,this.closesAtMs=0}},pu=class{gates=new Map;declare(e){let t=uu.parse(e);if(this.gates.get(t.name)!==void 0)throw Error(`log channel "${t.name}" is already declared in this process — two declarations of one name is a programming error, not a merge`);let n=new fu(t);return this.gates.set(t.name,n),n}list(){return[...this.gates.values()].map(e=>e.descriptor).sort((e,t)=>e.name.localeCompare(t.name))}gate(e){return this.gates.get(e)}apply(e,t){let n=new Map,r=[];for(let i of e)if(!(i.armedUntilMs<=t)){if(!this.gates.has(i.channel)){r.push(i.channel);continue}n.set(i.channel,i)}for(let[e,t]of this.gates){let r=n.get(e);r===void 0?t.disarm():t.arm(r)}return r}tick(e){let t=[];for(let[n,r]of this.gates)r.on&&r.armedUntilMs<=e&&(r.disarm(),t.push(n));return t}armed(){let e=[];for(let[t,n]of this.gates)n.on&&e.push({channel:t,armedUntilMs:n.armedUntilMs,deviceIds:null});return e}},mu=null;function hu(){return mu??=new pu,mu}function gu(e){return hu().declare(e)}function _u(){mu=null}var vu=5e3;function yu(e,t={}){let n=hu(),r=t.now??Date.now,i=t.tickMs??5e3,a=setInterval(()=>{let t=n.tick(r());for(let n of t)e.info(`log channel window closed`,{tags:{logChannel:n},meta:{channel:n}})},i);return a.unref?.(),{list:()=>n.list(),apply:t=>{let i=n.apply(t.windows,r()),a=n.armed();return e.info(`log channels applied`,{meta:{armed:a.map(e=>e.channel),unknown:i,declared:n.list().length}}),{armed:a.length,unknown:i}},stop:()=>{clearInterval(a)}}}var bu=1024,xu=`other`;function Su(e,t,n){return n===void 0?`${e}${t}`:`${e}${t}${n}`}var Cu=class{maxKeys;maxReasons;counters=new Map;refused=0;constructor(e=bu,t=16){this.maxKeys=e,this.maxReasons=t}get keysRefused(){return this.refused}get size(){return this.counters.size}note(e,t){if(!Number.isInteger(e.deviceId)||e.deviceId<=0)return;let n=Su(e.deviceId,e.family,e.variant),r=this.counters.get(n);if(r===void 0){if(this.counters.size>=this.maxKeys){this.refused+=1;return}r={deviceId:e.deviceId,family:e.family,variant:e.variant,sinceMs:t,attempts:0,succeeded:0,reasons:new Map},this.counters.set(n,r)}if(r.attempts+=1,e.reason===void 0){r.succeeded+=1;return}let i=r.reasons.has(e.reason)||r.reasons.size<this.maxReasons?e.reason:xu;r.reasons.set(i,(r.reasons.get(i)??0)+1)}snapshot(e){let t=[];for(let n of this.counters.values())t.push({deviceId:n.deviceId,family:n.family,...n.variant===void 0?{}:{variant:n.variant},sinceMs:n.sinceMs,atMs:e,attempts:n.attempts,succeeded:n.succeeded,reasons:[...n.reasons.entries()].map(([e,t])=>({reason:e,count:t})).toSorted((e,t)=>t.count-e.count)});return t}clear(){this.counters.clear()}};function wu(e){return e.attempts<=0?null:(e.attempts-e.succeeded)/e.attempts}var Tu=`__unattributed__`,Eu=`__root__`;function Du(e){return e.addonId===null?e.classification===`root`?{key:Eu,kind:`root`}:{key:Tu,kind:`unattributed`}:{key:e.addonId,kind:`addon`}}function Ou(e){return Math.round(e*10)/10}function ku(e,t){let n=new Map;for(let t of e){let{key:e,kind:r}=Du(t),i=n.get(e)??{kind:r,main:0,gc:0,lifetime:0,memory:0,count:0,splitKnown:!0},a=t.cpuMainPercent!==null&&t.cpuGcPercent!==null;n.set(e,{kind:i.kind,main:i.main+(t.cpuMainPercent??0),gc:i.gc+(t.cpuGcPercent??0),lifetime:i.lifetime+t.cpuPercent,memory:i.memory+t.memoryRssBytes,count:i.count+1,splitKnown:i.splitKnown&&a})}return[...n.entries()].map(([e,n])=>{let r=n.splitKnown?Ou(n.main):null,i=n.splitKnown?Ou(n.gc):null,a=Ou(n.lifetime);return{key:e,kind:n.kind,point:{atMs:t,samples:1,cpuMainPercent:r,cpuMainPercentMin:r,cpuGcPercent:i,cpuGcPercentMin:i,cpuLifetimePercent:a,cpuLifetimePercentMin:a,memoryRssBytes:n.memory,memoryRssBytesMin:n.memory,processCount:n.count,processCountMin:n.count}}})}function Au(e,t){return e===null||t===null?null:e<t?e:t}function ju(e,t){return e===null||t===null?null:e>t?e:t}function Mu(e,t,n){return{atMs:n,samples:e.samples+t.samples,cpuMainPercent:ju(e.cpuMainPercent,t.cpuMainPercent),cpuMainPercentMin:Au(e.cpuMainPercentMin,t.cpuMainPercentMin),cpuGcPercent:ju(e.cpuGcPercent,t.cpuGcPercent),cpuGcPercentMin:Au(e.cpuGcPercentMin,t.cpuGcPercentMin),cpuLifetimePercent:Math.max(e.cpuLifetimePercent,t.cpuLifetimePercent),cpuLifetimePercentMin:Math.min(e.cpuLifetimePercentMin,t.cpuLifetimePercentMin),memoryRssBytes:Math.max(e.memoryRssBytes,t.memoryRssBytes),memoryRssBytesMin:Math.min(e.memoryRssBytesMin,t.memoryRssBytesMin),processCount:Math.max(e.processCount,t.processCount),processCountMin:Math.min(e.processCountMin,t.processCountMin)}}function Nu(e,t,n){if(n<=0||t<=0||e<=0)return Math.max(t,1);let r=e/n;return r<=t?t:Math.ceil(r/t)*t}function Pu(e,t,n){if(t<=0||e.length===0)return e;let r=new Map;for(let i of e){let e=n+Math.floor((i.atMs-n)/t)*t,a=r.get(e);r.set(e,a===void 0?{...i,atMs:e}:Mu(a,i,e))}return[...r.values()].toSorted((e,t)=>e.atMs-t.atMs)}var Fu=class extends Error{capName;scope;waitedMs;constructor(e,t,n){super(`Timed out waiting for ${e} (${Lu(t)}) to become ready after ${n}ms`),this.name=`ReadinessTimeoutError`,this.capName=e,this.scope=t,this.waitedMs=n}};function Iu(e,t){return`${e}|${Lu(t)}`}function Lu(e){switch(e.type){case`global`:return`global`;case`node`:return`node:${e.nodeId}`;case`device`:return`device:${e.deviceId}`}}function Ru(e){switch(e){case`starting`:return 0;case`ready`:return 1;case`down`:return 2}}function zu(e,t){return e.type===t.type?e.type===`global`||t.type===`global`?!0:e.type===`node`&&t.type===`node`?e.nodeId===t.nodeId:e.type===`device`&&t.type===`device`?e.deviceId===t.deviceId:!1:!1}var Bu=class{bus;sourceNodeId;logger;now;generation;verboseDeviceScopeLogs;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??Vu(),this.verboseDeviceScopeLogs=e.verboseDeviceScopeLogs??!1,this.unsubscribeBus=this.bus.subscribe({category:`system.ready-state`},e=>this.ingest(e.data)),this.unsubscribeAgentOffline=this.bus.subscribe({category:`agent.offline`},e=>this.synthesizeDownForNode(e.data.agentId)),typeof this.bus.getRecent==`function`)try{let e=this.bus.getRecent({category:`system.ready-state`});for(let t of e)this.ingest(t.data)}catch{}}close(){this.unsubscribeBus(),this.unsubscribeAgentOffline(),this.subscriptions.clear()}get(e,t){return this.snapshot.get(Iu(e,t))??null}getSnapshotForTransport(){return Array.from(this.snapshot.values())}hydrate(e){let t=this.now(),n=0;for(let r of e){let e=Iu(r.capName,r.scope),i=this.snapshot.get(e)??null,a,o;if(i!==null){if(this.isLocallyAuthoritative(i))continue;let e=i.generation===r.generation;if(e&&Ru(r.state)<=Ru(i.state))continue;a=!e&&r.state===`ready`?i.epoch+1:i.epoch,o=Math.max(0,t-i.lastChange)}else a=1,o=0;let s={capName:r.capName,scope:r.scope,state:r.state,generation:r.generation,epoch:a,lastChange:t,sourceNodeId:r.sourceNodeId};this.snapshot.set(e,s),n++,this.logPerRecord(r.scope,`readiness: ${r.capName} (${Lu(r.scope)}) → ${r.state} (hydrated${i===null?``:` update`}, gen=${r.generation.slice(0,6)})`);let c={capName:r.capName,scope:r.scope,state:r.state,epoch:a,generation:r.generation,sourceNodeId:`hydrated`,ts:t,durationInPrevState:o};for(let e of this.subscriptions)if(e.capName===r.capName&&zu(e.scope,r.scope))try{e.handler(c)}catch(e){this.logger?.warn(`readiness hydrate handler threw for ${r.capName}: ${e.message??String(e)}`)}}return n}logPerRecord(e,t){if(this.logger){if(e.type===`device`){if(!this.verboseDeviceScopeLogs)return;this.logger.debug(t,{tags:{deviceId:e.deviceId}});return}this.logger.debug(t)}}isLocallyAuthoritative(e){return e.scope.type===`node`?e.scope.nodeId===this.sourceNodeId:e.sourceNodeId===this.sourceNodeId}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,n={}){let r=n.timeoutMs??1/0,i=this.now();return this.get(e,t)?.state===`ready`?Promise.resolve():n.signal?.aborted?Promise.reject(n.signal.reason??Error(`aborted`)):new Promise((a,o)=>{let s=!1,c=this.onReadyState(e,t,e=>{e.state===`ready`&&(s||(s=!0,f(),a()))}),l=Number.isFinite(r)?setTimeout(()=>{s||(s=!0,f(),o(new Fu(e,t,this.now()-i)))},r):null,u=setInterval(()=>{s||this.logger?.warn(`readiness: still awaiting ${e} (${Lu(t)}) after ${this.now()-i}ms`)},3e4);typeof u.unref==`function`&&u.unref();let d=()=>{s||(s=!0,f(),o(n.signal?.reason??Error(`aborted`)))};n.signal?.addEventListener(`abort`,d,{once:!0});function f(){c(),l!==null&&clearTimeout(l),clearInterval(u),n.signal?.removeEventListener(`abort`,d)}})}onReadyState(e,t,n){let r={capName:e,scope:t,handler:n};this.subscriptions.add(r);let i=this.get(e,t);return i!==null&&queueMicrotask(()=>{this.subscriptions.has(r)&&n({capName:e,scope:t,state:i.state,epoch:i.epoch,generation:i.generation,sourceNodeId:this.sourceNodeId,ts:i.lastChange,durationInPrevState:0})}),()=>{this.subscriptions.delete(r)}}emitTransition(e,t,n){let r=this.now();this.bus.emit(xt(`system.ready-state`,{type:`capability`,id:e,nodeId:this.sourceNodeId},{capName:e,scope:t,state:n,generation:this.generation,sourceNodeId:this.sourceNodeId,ts:r}))}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;let t=Iu(e.capName,e.scope),n=this.snapshot.get(t)??null,r=this.now(),i;if(i=n===null?+(e.state===`ready`):n.generation!==e.generation&&e.state===`ready`?n.epoch+1:n.epoch,n!==null&&n.generation===e.generation&&n.state===e.state)return;let a=n===null?0:Math.max(0,r-n.lastChange),o={capName:e.capName,scope:e.scope,state:e.state,generation:e.generation,epoch:i,lastChange:r,sourceNodeId:e.sourceNodeId};this.snapshot.set(t,o);let s={capName:e.capName,scope:e.scope,state:e.state,epoch:i,generation:e.generation,sourceNodeId:e.sourceNodeId,ts:e.ts,durationInPrevState:a};this.logPerRecord(e.scope,`readiness: ${e.capName} (${Lu(e.scope)}) → ${e.state} epoch=${i} gen=${e.generation.slice(0,6)} (prev ${a}ms)`);for(let t of this.subscriptions)if(t.capName===e.capName&&zu(t.scope,e.scope))try{t.handler(s)}catch(t){this.logger?.warn(`readiness handler threw for ${e.capName}: ${t.message??String(t)}`)}}synthesizeDownForNode(e){let t=this.now();for(let[n,r]of this.snapshot){if(r.state===`down`||!(r.scope.type===`node`&&r.scope.nodeId===e||r.scope.type===`device`&&r.sourceNodeId===e))continue;let i=Math.max(0,t-r.lastChange),a={...r,state:`down`,lastChange:t};this.snapshot.set(n,a);let o={capName:r.capName,scope:r.scope,state:`down`,epoch:r.epoch,generation:r.generation,sourceNodeId:this.sourceNodeId,ts:t,durationInPrevState:i};this.logPerRecord(r.scope,`readiness: ${r.capName} (${Lu(r.scope)}) → down (synthesized from agent.offline ${e})`);for(let e of this.subscriptions)if(e.capName===r.capName&&zu(e.scope,r.scope))try{e.handler(o)}catch(e){this.logger?.warn(`readiness handler threw during agent.offline demux for ${r.capName}: ${e.message??String(e)}`)}}}};function Vu(){return typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2,14)}function Hu(e,t){for(let{capName:n,scope:r}of t)e.emitDown(n,r)}function Uu(e,t,n,r={}){if(e.length===0)return null;let i=`${n}/`,a=e=>({brokerId:e.brokerId,profileId:e.brokerId.startsWith(i)?e.brokerId.slice(i.length):e.brokerId,url:e.url,mutedUrl:e.mutedUrl,enabled:e.enabled,...e.codec===void 0?{}:{codec:e.codec},...e.resolution===void 0?{}:{resolution:e.resolution}});if(t!==`auto`){let n=e.find(e=>e.enabled&&e.url.length>0&&(e.profile===t||e.brokerId===`${i}${t}`));if(n)return a(n)}let o=e.filter(e=>e.enabled&&e.url.length>0);if(o.length===0)return null;let s=r.targetResolution;if(s){let e=o.filter(e=>e.resolution!==void 0);if(e.length>0){let t=Wu(e,s);if(t)return a(t)}}return a(o[0])}function Wu(e,t){let n=t.width*t.height;return[...e.flatMap(e=>e.resolution===void 0?[]:[{entry:e,pixels:e.resolution.width*e.resolution.height}])].sort((e,t)=>$n(e.pixels,t.pixels,n))[0]?.entry}var Gu=[`node-a`,`node-b`,`node-c`,`node-d`,`node-e`,`node-f`,`node-g`,`node-h`],Ku=x(Gu);function qu(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function Ju(e){let t=Gu[qu(e)%Gu.length];return t===void 0?`node-a`:t}var Yu={upperHs:[0,32],upperV:[32,40],upperGrad:[40,48],lowerHs:[48,80],lowerV:[80,88],lowerGrad:[88,96]},Xu=[`motion`,`objects`,`discarded`,`stationary`],Zu=[`motion`,`objects`,`stationary`],Qu={borderWidth:2,dashed:!0,dashPattern:[6,4],opacity:1,borderRadius:2};function $u(e){return!Number.isFinite(e)||e<=0?`0 s`:e<6e4?`${String(Math.round(e/1e3))} s`:e<36e5?`${String(Math.round(e/6e4))} min`:`${String(Math.round(e/36e5))} h`}var ed=[`onnx`,`coreml`,`openvino`,`tflite`,`pt`],td={yolo26:`YOLO26`,"yolo26-seg":`YOLO26-seg`,yolov9:`YOLOv9`};function nd(e){return td[e]??e.toUpperCase()}var rd={"yolo26-seg":`detection + masks, slightly heavier`},id=/\s*@\s*\d+\s*(?:[x×]\s*\d+)?/gi;function ad(e,t){let n=nd(e),r=t.replace(RegExp(`^${n}\\s+`,`i`),``).replace(id,``).trim();return r.length>0?r:t}function od(e,t){let n=[];return t===`test`&&n.push(`Test`),n.push(e===`int8`?`Int8`:`Standard`),n.join(` · `)}function sd(e){return ed.filter(t=>e.formats[t]!==void 0)}function cd(e){let t=ed.map(t=>e.formats[t]?.sizeMB).filter(e=>typeof e==`number`);return t.length>0?Math.min(...t):0}var ld=[`t`,`n`,`s`,`m`,`c`,`l`,`x`],ud=[`fp32`,`int8`];function dd(e){let t=new Map;for(let n of e){if(n.legacy===!0||n.group===void 0)continue;let{family:e,tier:r}=n.group,i=t.get(e)??new Map,a=i.get(r)??[];a.push(n),i.set(r,a),t.set(e,i)}let n=[];for(let[e,r]of t){let t=[];for(let[n,i]of r){let r=i.map(e=>{let t=e.group?.precision??`fp32`,n=e.group?.optimization??`standard`;return{modelId:e.id,precision:t,optimization:n,resolution:e.group?.resolution,label:od(t,n),formats:sd(e),sizeMB:cd(e)}}).toSorted((e,t)=>e.resolution===t.resolution?e.optimization===t.optimization?ud.indexOf(e.precision)-ud.indexOf(t.precision):e.optimization===`test`?1:-1:(t.resolution??1/0)-(e.resolution??1/0)),a=r.find(e=>e.precision===`fp32`&&e.optimization===`standard`)??r[0];if(a===void 0)continue;let o=i.find(e=>e.id===a.modelId);t.push({tier:n,label:o?ad(e,o.name):n.toUpperCase(),baseModelId:a.modelId,options:r})}t.sort((e,t)=>{let n=ld.indexOf(e.tier),r=ld.indexOf(t.tier);return n!==-1&&r!==-1?n-r:n===-1?r===-1?e.tier.localeCompare(t.tier):1:-1});let i=rd[e];n.push({family:e,label:nd(e),...i===void 0?{}:{hint:i},tiers:t})}return n.sort((e,t)=>e.family.localeCompare(t.family)),n}function fd(e,t){let n=t.precision??`fp32`,r=t.optimization??`standard`,i=e.filter(e=>e.group!==void 0&&e.group.family===t.family&&e.group.tier===t.tier&&(e.group.precision??`fp32`)===n&&(e.group.optimization??`standard`)===r);return t.resolution===void 0?i.toSorted((e,t)=>(t.group?.resolution??1/0)-(e.group?.resolution??1/0))[0]?.id??null:i.find(e=>e.group?.resolution===t.resolution)?.id??null}function pd(e,t){let n=e.find(e=>e.id===t);return n?.group===void 0?null:{family:n.group.family,tier:n.group.tier,precision:n.group.precision??`fp32`,optimization:n.group.optimization??`standard`,resolution:n.group.resolution}}var md=/^object-clip-[a-z0-9][a-z0-9-]*$/,hd=f({textModelId:u().min(1),embeddingDim:a().int().positive(),vectorIndex:u().regex(md),tokenizerFile:u().min(1),contextLength:a().int().positive(),padId:a().int().nonnegative(),searchMinScore:a().min(0).max(1)}),gd=[`loose`,`balanced`,`strict`],_d=x(gd),vd={loose:1,balanced:1.25,strict:1.5};function yd(e,t){if(t.minScore!==void 0)return t.minScore;let n=vd[t.strictness??`loose`];return Math.min(1,Math.round(e.searchMinScore*n*1e3)/1e3)}var bd=[`animal-classifier`,`vehicle-classifier`,`package-detection`],xd=[`plate-detection`,`face-detection`],Sd=[`segmentation`],Cd=[...bd,...xd,...Sd];function wd(e){return Cd.some(t=>t===e)}function Td(e){return bd.some(t=>t===e)}var Ed={"animal-classifier":[`bird`,`cat`,`cow`,`deer`,`dog`,`horse`,`sheep`,`squirrel`],"vehicle-classifier":[`Ambulance`,`Bicycle`,`Bus`,`Car`,`Motorcycle`,`Taxi`,`Truck`,`Van`],"package-detection":[`package`]},Dd={"animal-classifier":`animal`,"vehicle-classifier":`vehicle`,"package-detection":`package`},Od={"animal-classifier":{},"vehicle-classifier":{school_bus:`Bus`,garbage_truck:`Truck`},"package-detection":{}},kd={"plate-detection":{rootLabels:[`license_plate`],parentMacro:`vehicle`,childClass:`plate`,servedChildSteps:[`plate-ocr`],use:`as-output`},"face-detection":{rootLabels:[`face`],parentMacro:`person`,childClass:`face`,servedChildSteps:[`face-embedding`],use:`refine`,minRootInputPx:640}},Ad={"animal-classifier":!0,"vehicle-classifier":!0,"package-detection":!0,"plate-detection":!1,"face-detection":!1,segmentation:!0},jd=`useRootModel`,Md=`labelLink`,Nd=`detector-link:`;function Pd(e){return`${Nd}${e}`}function Fd(e){if(e===void 0||!e.startsWith(`detector-link:`))return;let t=e.slice(14);return Td(t)?t:void 0}function Id(e,t){let n=Od[e][t];if(n!==void 0)return n;let r=t.toLowerCase();return Ed[e].find(e=>e.toLowerCase()===r)}function Ld(e,t){let n=[];if(t!==void 0)for(let r of bd){let i={};for(let n of e){if(t.mapping[n]!==Dd[r])continue;let e=Id(r,n);e!==void 0&&(i[n]=e)}let a=new Set(Object.values(i));if(a.size===0)continue;let o=Ed[r].filter(e=>!a.has(e));n.push({kind:`label`,stepId:r,labelToEffect:i,uncovered:o})}let r=new Set(e);for(let e of xd){let t=kd[e],i=t.rootLabels.filter(e=>r.has(e));i.length!==0&&n.push({kind:`crop`,stepId:e,rootLabels:i,parentMacro:t.parentMacro,childClass:t.childClass})}return n}var Rd=[`yolo-seg`];function zd(e){return e===void 0||!Rd.includes(e)?[]:Sd.map(e=>({kind:`mask`,stepId:e}))}function Bd(e,t){let n=e?.suppliesSteps??Ld(e!==void 0&&e.labels.length>0?e.labels.map(e=>e.id):t.labels,e?.classMap??t.classMap),r=zd(e?.postprocessor).filter(e=>!n.some(t=>t.stepId===e.stepId)),i=r.length>0?[...n,...r]:n,a=e===void 0?void 0:Math.min(e.inputSize.width,e.inputSize.height);return a===void 0?i:i.map(e=>e.kind===`crop`?{...e,rootInputPx:a}:e)}function Vd(e,t){return e?.find(e=>e.stepId===t)}function Hd(e,t){let n=t?.[jd];if(typeof n==`boolean`)return n;let r=t?.[Md];return r===`skip-when-filled`?!0:r===`run`?!1:Ad[e]}function Ud(e){if(e.kind!==`crop`)return;let t=kd[e.stepId].minRootInputPx;if(t!==void 0)return e.rootInputPx!==void 0&&e.rootInputPx>=t?void 0:`root-input-too-small`}function Wd(e,t,n){let r=Vd(n,e),i=Hd(e,t),a=r===void 0?`root-does-not-declare`:Ud(r);return{stepId:e,supply:r,intent:i,effective:i&&a===void 0,inactive:i&&a!==void 0,...i&&a!==void 0?{inactiveReason:a}:{}}}function Gd(e,t){let n=t?.enabledClasses;return!Array.isArray(n)||n.length===0?!0:n.some(t=>t===e)}function Kd(e){return kd[e].servedChildSteps}var qd=.9;function Jd(e,t){let n=e.w*e.h;if(!(n>0))return-1;let r=-1,i=1/0;return t.forEach((t,a)=>{if(Math.max(0,Math.min(e.x+e.w,t.x+t.w)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.h,t.y+t.h)-Math.max(e.y,t.y))/n<.9)return;let o=t.w*t.h;o<i&&(r=a,i=o)}),r}var Yd={"animal-classifier":`animals`,"vehicle-classifier":`vehicles`,"package-detection":`packages`,"plate-detection":`plates`,"face-detection":`faces`,segmentation:`masks`};function Xd(e){let t=Yd[e.stepId];if(e.kind!==`label`)return t;let n=Ed[e.stepId].length;return n<=1?t:`${t} ${String(n-e.uncovered.length)}/${String(n)}`}function Zd(e){return(e??[]).map(Xd).join(` · `)}var Qd=[`onnx`,`coreml`,`openvino`,`tflite`,`pt`,`gguf`],$d=f({url:u(),sizeMB:a(),isDirectory:C().optional(),files:S(u()).readonly().optional(),runtimes:S(x([`python`])).readonly().optional(),revision:u().min(1).optional()}),ef=x([`current`,`stale`,`missing`]),tf=x([`fp32`,`fp16`,`int8`]),nf=f({downloaded:C(),sizeMB:a(),onDisk:ef.optional(),precision:tf.optional()}),rf=f({url:u(),filename:u(),sizeMB:a()}),af=f({onnx:$d.optional(),coreml:$d.optional(),openvino:$d.optional(),tflite:$d.optional(),pt:$d.optional(),gguf:$d.optional()}),of=f({family:u(),tier:u(),precision:x([`fp32`,`int8`]).optional(),optimization:x([`standard`,`test`]).optional(),resolution:a().int().positive().optional()}),sf=[`camstack`,`frigate`,`scrypted`,`custom`],cf=x(sf);function lf(e){if(e.provider!==void 0)return e.provider;let t=`${e.id} ${e.description??``}`;return/scrypted/i.test(t)?`scrypted`:/frigate/i.test(t)?`frigate`:`custom`}var uf=[`camstack-hf`,`third-party`,`built-in`],df=r(e=>typeof e==`string`?{weights:e}:e,f({weights:u().min(1),code:u().min(1).optional(),data:f({name:u().min(1),terms:u().min(1),url:u().url().optional()}).optional(),upstream:f({name:u().min(1),url:u().url()}).optional(),url:u().url().optional(),attribution:u().min(1).optional(),modifications:u().min(1).optional(),hosting:x(uf).optional(),nonCommercial:C().optional()})),ff=h(`kind`,[f({kind:g(`label`),stepId:x(bd),labelToEffect:y(u(),u()),uncovered:S(u()).readonly()}),f({kind:g(`crop`),stepId:x(xd),rootLabels:S(u()).readonly(),parentMacro:x([`vehicle`,`person`]),childClass:x([`plate`,`face`]),rootInputPx:a().int().positive().optional()}),f({kind:g(`mask`),stepId:x(Sd)})]),pf=f({id:u(),name:u(),description:u(),formats:af,inputSize:f({width:a(),height:a()}),inputChannels:a().int().positive().optional(),labels:S(mc).readonly(),inputLayout:x([`nchw`,`nhwc`]).optional(),inputNormalization:x([`zero-one`,`imagenet`,`none`,`scrfd`]).optional(),outputProbabilities:C().optional(),preprocessMode:x([`letterbox`,`resize`]).optional(),postprocessor:_().optional(),defaultConfidence:a().min(0).max(1).optional(),defaultClassFloors:y(u(),a().min(0).max(1)).optional(),gpuInferencePrecision:x([`f32`,`f16`]).optional(),suppliedLabelFloors:y(u(),a().min(0).max(1)).optional(),faceAlignment:C().optional(),extraFiles:S(rf).readonly().optional(),legacy:C().optional(),metrics:f({map50:a().optional(),p95LatencyMs:y(u(),a()).optional()}).optional(),license:df.optional(),group:of.optional(),provider:cf.optional(),classMap:vc.optional(),suppliesSteps:S(ff).readonly().optional(),clip:hd.optional()}),mf=h(`format`,[f({format:g(`openvino`),precisions:S(x([`fp16`,`int8`])).min(1).readonly()}),f({format:g(`coreml`)})]),hf=f({id:u().regex(/^[a-zA-Z0-9._-]+$/),name:u(),labels:S(mc).readonly(),inputSize:f({width:a(),height:a()}),inputLayout:x([`nchw`,`nhwc`]).optional(),inputNormalization:x([`zero-one`,`imagenet`,`none`,`scrfd`]).optional(),preprocessMode:x([`letterbox`,`resize`]).optional(),outputFormat:x([`yolo`,`ssd`,`embedding`,`classification`,`ocr`,`segmentation`]),faceAlignment:C().optional(),classMap:vc.optional()}),gf=f({format:x(Qd),precision:x([`fp16`,`int8`]).optional(),sizeMB:a(),validated:C(),files:S(u()).readonly()}),_f=f({entry:pf,artifacts:S(gf).readonly()});function vf(e){switch(e.toUpperCase()){case`GET`:case`HEAD`:case`OPTIONS`:return`view`;case`POST`:case`PUT`:case`PATCH`:return`create`;default:return`delete`}}function yf(e,t){return e.some(e=>e.type===`category`&&e.target===`device`&&e.access.includes(t))}function bf(e,t,n){return e.some(e=>e.type===`addon`&&e.target===t&&e.access.includes(n))}function xf(e){let t=e.kind;if(t===void 0)return{kind:`session`};if(t!==`sso-bridge`)return{kind:`not-a-credential`,reason:`bridge token kind=${String(t)}`};let n=e.provider;return n===`oauth-access`?{kind:`integration`,provider:`oauth-access`}:{kind:`not-a-credential`,reason:`bridge token provider=${String(n)}`}}function Sf(e){let{principal:t}=e;if(t.kind===`not-a-credential`)return{allowed:!1,reason:t.reason};if(t.kind===`session`)return{allowed:!0};let n=vf(e.method);return bf(e.scopes,e.addonId,n)?{allowed:!0}:{allowed:!1,reason:`integration token holds no addon:${e.addonId}[${n}] grant`}}var Cf=[`camstack://auth-callback`,`camstack.dev://auth-callback`];function wf(e){return e.replace(/^([a-z][a-z0-9.+-]*):\/\/\/(?!\/)/i,`$1://`).replace(/\/$/,``)}function Tf(e){if(typeof e!=`string`||e.length===0||e.length>512)return null;let t=wf(e);return Cf.includes(t)?t:null}function Ef(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)}var Df=x([`new-session`,`step-up`]),Of=x([`en`,`it`]);function kf(e){let t=Of.safeParse(e);return t.success?t.data:void 0}var Af=`camstack://auth-callback`,jf=/^[A-Za-z0-9_-]{43}$/,Mf=/^[A-Za-z0-9._~-]{1,256}$/,Nf={"bad-challenge":`The sign-in request has no valid PKCE challenge (S256).`,"bad-challenge-method":`Only the S256 PKCE method is supported.`,"bad-state":`The sign-in request has no valid state.`,"bad-purpose":`The sign-in request names an unknown purpose.`,"bad-redirect":`The sign-in request names a return address this hub does not accept.`},Pf={...Nf,"combined-flow":`An app sign-in cannot be combined with linking or a popup.`},Ff=`/auth/app/refused`;function If(e){return typeof e==`string`&&Object.hasOwn(Pf,e)}function Lf(e){let t=e.code_challenge;if(t===void 0||!jf.test(t))return{ok:!1,reason:`bad-challenge`};if(e.code_challenge_method!==`S256`)return{ok:!1,reason:`bad-challenge-method`};let n=e.state;if(n===void 0||!Mf.test(n))return{ok:!1,reason:`bad-state`};let r=Df.safeParse(e.purpose);if(!r.success)return{ok:!1,reason:`bad-purpose`};let i=e.redirect,a=i===void 0?Af:Tf(i);if(a===null)return{ok:!1,reason:`bad-redirect`};let o=kf(e.lang);return{ok:!0,request:{codeChallenge:t,state:n,purpose:r.data,redirect:a,...o===void 0?{}:{lang:o}}}}function Rf(e,t,n){let r=new URLSearchParams;return`code`in t?r.set(`code`,t.code):r.set(`error`,t.error),n!==void 0&&r.set(`state`,n),`${e}?${r.toString()}`}var zf=h(`kind`,[f({kind:g(`native`)}),f({kind:g(`browser`),startPath:u().startsWith(`/`)})]),Bf=`camstack_sso_state`,Vf=`ecdsa-p256-sha256`,Hf=`camstack-device-cert-v1`,Uf=x([`login`,`renew`,`revoke`]),Wf=10*6e4,Gf=6e4,Kf=`camstack:credential:`,qf=`camstack:user:`;function Jf(e){return[Hf,e.purpose,e.origin,e.nonce].join(`
3
- `)}function Yf(e){let t=new URLSearchParams;return e.hub!==void 0&&t.set(`hub`,e.hub),t.set(`code`,e.code),`${e.scheme??`camstack`}://enroll?${t.toString()}`}function Xf(e){let t;try{t=new URL(e)}catch{return null}if(t.protocol!==`camstack:`&&t.protocol!==`camstack.dev:`||t.hostname!==`enroll`)return null;let n=t.searchParams.get(`code`);if(n===null||n===``)return null;let r=t.searchParams.get(`hub`);return{hub:r===null||r===``?null:r,code:n}}var Zf=x([`ios`,`android`,`web`,`other`]),Qf=u().min(1).max(4096).regex(/^[A-Za-z0-9_-]+$/),$f=u().min(1).max(16384),ep=x([`revoked`,`unknown-credential`,`expired`,`bad-signature`,`nonce-invalid`,`rate-limited`,`invalid-certificate`,`superseded`,`user-gone`,`unavailable`,`code-invalid`,`self-enrollment-disabled`,`step-up-required`,`bad-public-key`]),tp=[`revoked`,`unknown-credential`,`user-gone`];function np(e){return tp.includes(e)}var rp=f({ok:g(!1),reason:ep,definitive:C(),retryAfterSeconds:a().optional()}),ip=`device-credential:`;function ap(e){if(!e.startsWith(`device-credential:`))return null;let t=ep.safeParse(e.slice(18));return t.success?t.data:null}var op=f({code:u().min(1).max(256),publicKeySpki:Qf,deviceName:u().min(1).max(80).optional(),platform:Zf}),sp=f({credentialId:u(),certPem:$f,chainPem:$f,notAfter:a(),user:f({id:u(),username:u()})}),cp=h(`ok`,[sp.extend({ok:g(!0)}),rp]),lp=f({proof:u().min(1).max(512),publicKeySpki:Qf,deviceName:u().min(1).max(80),platform:Zf}),up=f({proof:u(),expiresAt:a()}),dp=f({nonce:u(),origin:u(),expiresAt:a(),signature:g(Vf)}),fp=h(`ok`,[dp.extend({ok:g(!0)}),rp]),pp=f({certPem:$f,nonce:u().min(1).max(256),signature:Qf}),mp=f({credentialId:u(),certPem:$f,chainPem:$f,notAfter:a()}),hp=h(`ok`,[mp.extend({ok:g(!0)}),rp]),gp=h(`ok`,[f({ok:g(!0),credentialId:u(),sessionsEnded:a().int()}),rp]);function _p(e){return e.kind===`device`?`device`:`${e.kind}:${e.userId}`}var vp=x([`active`,`expired`,`revoked`]),yp=f({id:u(),userId:u(),username:u().nullable(),deviceName:u(),platform:Zf,enrolledVia:x([`qr`,`self`]),fingerprint:u(),issuedAt:a(),expiresAt:a(),lastUsedAt:a().nullable(),lastUsedFrom:u().nullable(),revokedAt:a().nullable(),revokedBy:u().nullable(),status:vp}),bp=f({code:u(),expiresAt:a(),enrollUrl:u(),hubOrigin:u().nullable(),hubOrigins:S(u())}),xp=f({kind:g(`device-certificate`),id:g(`device-certificate`),label:u(),stage:g(`primary`),challengePath:g(`auth.getDeviceChallenge`),revokePath:g(`auth.revokeOwnDeviceCertificate`),enrollSelfPath:g(`auth.enrollSelf`),loginPath:g(`auth.loginWithDeviceCertificate`),renewPath:g(`auth.renewDeviceCertificate`),signature:g(Vf),messageVersion:g(Hf),clients:S(x([`native`,`web`])),app:zf.nullable()}),Sp=/^(?:[a-z0-9.-]+|\[[0-9a-f:.]+\])(?::\d{1,5})?$/i,Cp=/^\/[A-Za-z0-9_\-.]+(?:\/[A-Za-z0-9_\-.]+)*$/,wp=512;function Tp(e){if(e===void 0)return null;let t=e.split(`,`)[0]?.trim()??``;return t.length===0?null:t}function Ep(e){try{let t=new URL(e);return t.protocol!==`https:`&&t.protocol!==`http:`||t.username!==``||t.password!==``?null:t.origin}catch{return null}}function Dp(e){let t=e[`x-forwarded-prefix`];if(t===void 0||t.length===0||t.length>wp)return``;let n=t.endsWith(`/`)?t.slice(0,-1):t;return n===``||!Cp.test(n)||n.split(`/`).some(e=>e===`..`||e===`.`)?``:n}function Op(e){let t=Tp(e[`x-forwarded-host`])??Tp(e.host);if(t===null||!Sp.test(t))return[];let n=Tp(e[`x-forwarded-proto`])?.toLowerCase()??null,r=n===`https`||n===`http`?[n]:n===null?[`https`,`http`]:[],i=[];for(let e of r){let n=Ep(`${e}://${t}`);n!==null&&i.push(n)}return i}function kp(e){let t=[];for(let n of e.rows)n.kind===`app-link`||n.kind===`loopback`||t.push(n.baseUrl);let{publicEndpoint:n,internal:r,appConnections:i}=e.roles;n.resolved!==null&&t.push(n.resolved),r.resolved!==null&&t.push(r.resolved),t.push(...i.resolved),t.push(...e.listenerOrigins??[]);let a=new Set;for(let e of t){let t=Ep(e);t!==null&&a.add(t)}return a}function Ap(e,t){for(let n of Op(e))if(t.has(n))return n;return null}var jp={contact:`entryOpen`,binary:`on`,switch:`on`,motion:`detected`,flood:`flooded`,gas:`detected`,smoke:`detected`,"carbon-monoxide":`detected`,vibration:`detected`,tamper:`tampered`},Mp={contact:`lastChangedAt`,binary:`lastChangedAt`,switch:`lastChangedAt`,motion:`lastDetectedAt`,flood:`lastChangedAt`,gas:`lastChangedAt`,smoke:`lastChangedAt`,"carbon-monoxide":`lastChangedAt`,vibration:`lastChangedAt`,tamper:`lastChangedAt`},Np=Object.keys(jp),Pp=[`sensor`,`switch`,`control`];function Fp(e){return Object.prototype.hasOwnProperty.call(jp,e)}function Ip(e,t){let n=jp[e];if(n===void 0)return null;let r=t[n];return typeof r==`boolean`?r:null}function Lp(e,t){let n=Mp[e];if(n===void 0)return null;let r=t[n];return typeof r!=`number`||!Number.isFinite(r)||r<=0?null:r}var Rp=3e4;function zp(e){let t=e.changedAt,n=Math.max(e.startedAtMs,e.nowMs-e.firstSightingFreshnessMs),r=e.priorLevel===void 0&&e.level&&t!==null&&Number.isFinite(t)&&t>=n,i=e.priorLevel===!1&&e.level&&t!==null&&Number.isFinite(t);return(r||i)&&t!==null?{kind:`rise`,timestamp:t}:{kind:`none`,nextPriorLevel:e.level}}function Bp(e){let t=Ip(e.capName,e.slice);return t===null?{edge:`none`,value:null,reason:Fp(e.capName)?`non-boolean-value`:`unknown-cap`}:zp({level:t,changedAt:Lp(e.capName,e.slice),priorLevel:e.prior,startedAtMs:e.startedAtMs,nowMs:e.nowMs,firstSightingFreshnessMs:e.firstSightingFreshnessMs}).kind===`rise`?{edge:`rising`,value:!0}:e.prior===void 0?t?{edge:`none`,value:t,reason:`baseline-seeded-stale-active`}:{edge:`none`,value:t,reason:`baseline-seeded-inactive`}:e.prior===t?{edge:`none`,value:t,reason:`no-change`}:t?{edge:`none`,value:t,reason:`missing-timestamp`}:{edge:`none`,value:t,reason:`falling-edge`}}var j=class extends Error{position;constructor(e,t){super(e),this.name=`ExpressionParseError`,this.position=t}},M=class extends Error{constructor(e){super(e),this.name=`ExpressionEvalError`}};function Vp(e){return e===`rose`||e===`count`}function N(e,t,n){if(typeof e!=`number`||!Number.isFinite(e))throw new M(`${t}: argument ${n+1} must be a finite number`);return e}function Hp(e,t,n){if(typeof e!=`string`)throw new M(`${t}: argument ${n+1} must be a string`);return e}function P(e,t){if(!Number.isFinite(e))throw new M(`${t}: produced a non-finite result`);return e}function Up(e,t){return e.map((e,n)=>N(e,t,n))}function Wp(e,t,n){if(typeof e!=`boolean`)throw new M(`${t}: argument ${n+1} must be a boolean`);return e}var Gp=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/;function Kp(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;if(typeof e!=`string`)return null;let t=e.trim();if(!Gp.test(t))return null;let n=Number(t);return Number.isFinite(n)?n:null}var qp=2e3;function Jp(e,t,n,r,i,a){let o=Wp(e,`rose`,0),s=typeof t==`number`&&Number.isFinite(t)?t:null,c=n===void 0?qp:N(n,`rose`,2);if(c<0)throw new M(`rose: debounce must be a non-negative finite number`);if(r.disarmNext===!0||i.disarmRoseNext)return r.disarmNext=!1,r.priorLevel===void 0&&(r.priorLevel=o),a.currentOutput;let l=zp({level:o,changedAt:s,priorLevel:r.priorLevel,startedAtMs:a.startedAtMs,nowMs:a.nowMs,firstSightingFreshnessMs:Rp});return r.priorLevel=l.kind===`rise`?!0:l.nextPriorLevel,l.kind===`none`||i.acceptedEdgeAt!==null&&l.timestamp-i.acceptedEdgeAt<c?a.currentOutput:(i.acceptedEdgeAt=l.timestamp,l.timestamp)}function Yp(e){e.disarmRoseNext=!0;for(let[t,n]of e.calls)n.kind===`rose`&&e.calls.set(t,{...n,disarmNext:!0})}function Xp(e,t,n){let r=typeof n==`number`&&Number.isFinite(n)&&n>=0?n:0;return e===null?(t.primed=!0,r):typeof e!=`number`||!Number.isFinite(e)?r:t.primed?t.highWater!==null&&e<=t.highWater?r:(t.highWater=e,r+1):(t.primed=!0,t.highWater=e,r)}var Zp=1/0,Qp={min:{minArgs:1,maxArgs:Zp,apply:e=>P(Math.min(...Up(e,`min`)),`min`)},max:{minArgs:1,maxArgs:Zp,apply:e=>P(Math.max(...Up(e,`max`)),`max`)},abs:{minArgs:1,maxArgs:1,apply:e=>P(Math.abs(N(e[0],`abs`,0)),`abs`)},floor:{minArgs:1,maxArgs:1,apply:e=>P(Math.floor(N(e[0],`floor`,0)),`floor`)},ceil:{minArgs:1,maxArgs:1,apply:e=>P(Math.ceil(N(e[0],`ceil`,0)),`ceil`)},sqrt:{minArgs:1,maxArgs:1,apply:e=>P(Math.sqrt(N(e[0],`sqrt`,0)),`sqrt`)},round:{minArgs:1,maxArgs:2,apply:e=>{let t=N(e[0],`round`,0),n=e.length>1?Math.trunc(N(e[1],`round`,1)):0;if(n<0||n>100)throw new M(`round: digits must be between 0 and 100`);let r=10**n;return P(Math.round(t*r)/r,`round`)}},pow:{minArgs:2,maxArgs:2,apply:e=>P(N(e[0],`pow`,0)**N(e[1],`pow`,1),`pow`)},clamp:{minArgs:3,maxArgs:3,apply:e=>{let t=N(e[0],`clamp`,0),n=N(e[1],`clamp`,1),r=N(e[2],`clamp`,2);if(n>r)throw new M(`clamp: lower bound is greater than upper bound`);return P(Math.min(r,Math.max(n,t)),`clamp`)}},avg:{minArgs:1,maxArgs:Zp,apply:e=>{let t=Up(e,`avg`);return P(t.reduce((e,t)=>e+t,0)/t.length,`avg`)}},sum:{minArgs:1,maxArgs:Zp,apply:e=>P(Up(e,`sum`).reduce((e,t)=>e+t,0),`sum`)},coalesce:{minArgs:1,maxArgs:Zp,apply:e=>{for(let t of e)if(t!==null)return t;return null}},age:{minArgs:2,maxArgs:2,apply:e=>P(N(e[0],`age`,0)-N(e[1],`age`,1),`age`)},convert:{minArgs:3,maxArgs:3,apply:(e,t)=>{let n=N(e[0],`convert`,0),r=Hp(e[1],`convert`,1).trim(),i=Hp(e[2],`convert`,2).trim();if(t.convert){let e=t.convert(n,r,i);if(e===null)throw new M(`convert: cannot convert '${r}' to '${i}'`);return P(e,`convert`)}if(r===i)return n;throw new M(`convert: unit conversion table not installed`)}},any:{minArgs:1,maxArgs:Zp,apply:e=>e.map((e,t)=>Wp(e,`any`,t)).some(e=>e)},all:{minArgs:1,maxArgs:Zp,apply:e=>e.map((e,t)=>Wp(e,`all`,t)).every(e=>e)},within:{minArgs:2,maxArgs:2,apply:(e,t)=>{let n=N(e[1],`within`,1);if(n<0)throw new M(`within: the window must not be negative`);let r=e[0];if(r===null)return!1;let i=N(r,`within`,0),a=t.now;if(a===void 0||!Number.isFinite(a))throw new M(`within: no clock was supplied to this evaluation`);let o=a-i<=n;return o&&t.noteDeadline?.(i+n+1),o}},number:{minArgs:1,maxArgs:1,apply:e=>Kp(e[0])},latest:{minArgs:1,maxArgs:Zp,apply:e=>{let t=e.flatMap((e,t)=>e===null?[]:[N(e,`latest`,t)]);return t.length===0?null:P(Math.max(...t),`latest`)}},rose:{minArgs:2,maxArgs:3,apply:()=>{throw new M(`rose: stateful evaluation context is required`)}},count:{minArgs:1,maxArgs:1,apply:()=>{throw new M(`count: stateful evaluation context is required`)}}},$p=Object.freeze(Object.assign(Object.create(null),Qp)),em=new Set(Object.keys(Qp)),tm=2048,uee=4096,nm=/^[A-Za-z_][A-Za-z0-9_]*$/,rm=new Set([`now`,`true`,`false`,`null`]),im=new Set([`true`,`false`,`null`]);function am(e){return e>=`0`&&e<=`9`}function om(e){return e>=`A`&&e<=`Z`||e>=`a`&&e<=`z`||e===`_`}function sm(e){return om(e)||am(e)}function cm(e){return e===` `||e===` `||e===`
4
- `||e===`\r`||e===`\f`||e===`\v`}function lm(e){if(e.length>2048)throw new j(`expression too long (${e.length} > ${tm} chars)`,0);let t=[],n=0,r=e.length;for(;n<r;){let i=e[n];if(cm(i)){n+=1;continue}if(am(i)){let i=n;for(;n<r&&am(e[n]);)n+=1;if(n<r&&e[n]===`.`){if(n+1>=r||!am(e[n+1]))throw new j(`malformed number: decimal point needs a digit`,n);for(n+=1;n<r&&am(e[n]);)n+=1}let a=e.slice(i,n),o=Number(a);if(!Number.isFinite(o))throw new j(`malformed number: '${a}'`,i);t.push({type:`number`,value:o,pos:i});continue}if(i===`'`||i===`"`){let a=i,o=n;n+=1;let s=``,c=!1;for(;n<r;){let t=e[n];if(t===`\\`){let t=n+1<r?e[n+1]:``;if(t===`\\`||t===`'`||t===`"`){s+=t,n+=2;continue}throw new j(`invalid string escape: '\\${t}'`,n)}if(t===a){c=!0,n+=1;break}s+=t,n+=1}if(!c)throw new j(`unterminated string literal`,o);t.push({type:`string`,value:s,pos:o});continue}if(om(i)){let i=n;for(;n<r&&sm(e[n]);)n+=1;let a=e.slice(i,n);im.has(a)?t.push({type:`keyword`,keyword:um(a),pos:i}):t.push({type:`identifier`,name:a,pos:i});continue}let a=n+1<r?e.slice(n,n+2):``;if(a===`<=`||a===`>=`||a===`==`||a===`!=`||a===`&&`||a===`||`){t.push({type:`punct`,punct:a,pos:n}),n+=2;continue}if(dm(i)){t.push({type:`punct`,punct:i,pos:n}),n+=1;continue}throw new j(`unexpected character '${i}'`,n)}return t.push({type:`eof`,pos:r}),t}function um(e){return e===`true`?`true`:e===`false`?`false`:`null`}function dm(e){return e===`(`||e===`)`||e===`,`||e===`?`||e===`:`||e===`+`||e===`-`||e===`*`||e===`/`||e===`%`||e===`!`||e===`<`||e===`>`}var fm={"||":1,"&&":2,"==":3,"!=":3,"<":4,"<=":4,">":4,">=":4,"+":5,"-":5,"*":6,"/":6,"%":6};function pm(e){return e===`&&`||e===`||`}function mm(e){return e===`+`||e===`-`||e===`*`||e===`/`||e===`%`||e===`==`||e===`!=`||e===`<`||e===`<=`||e===`>`||e===`>=`}var hm=class{tokens;pos=0;nodeCount=0;identifiers=new Set;callees=new Set;constructor(e){this.tokens=e}parse(){let e=this.parseTernary(),t=this.peek();if(t.type!==`eof`)throw new j(`unexpected trailing input`,t.pos);return{ast:e,identifiers:this.identifiers,callees:this.callees,nodeCount:this.nodeCount}}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expectPunct(e){let t=this.peek();if(t.type!==`punct`||t.punct!==e)throw new j(`expected '${e}'`,t.pos);this.pos+=1}matchPunct(e){let t=this.peek();return t.type===`punct`&&t.punct===e?(this.pos+=1,!0):!1}countNode(){if(this.nodeCount+=1,this.nodeCount>256)throw new j(`expression too complex`,this.peek().pos)}parseTernary(){let e=this.parseBinary(1);if(this.matchPunct(`?`)){let t=this.parseTernary();this.expectPunct(`:`);let n=this.parseTernary();return this.countNode(),{kind:`conditional`,test:e,consequent:t,alternate:n}}return e}parseBinary(e){let t=this.parseUnary();for(;;){let n=this.peek();if(n.type!==`punct`)break;let r=fm[n.punct];if(r===void 0||r<e)break;let i=n.punct;this.pos+=1;let a=this.parseBinary(r+1);if(this.countNode(),pm(i))t={kind:`logical`,op:i,left:t,right:a};else if(mm(i))t={kind:`binary`,op:i,left:t,right:a};else throw new j(`unexpected operator '${i}'`,n.pos)}return t}parseUnary(){let e=this.peek();if(e.type===`punct`&&(e.punct===`!`||e.punct===`-`)){let t=e.punct;this.pos+=1;let n=this.parseUnary();return this.countNode(),{kind:`unary`,op:t,operand:n}}return this.parsePrimary()}parsePrimary(){let e=this.next();switch(e.type){case`number`:return this.countNode(),{kind:`literal`,value:e.value};case`string`:return this.countNode(),{kind:`literal`,value:e.value};case`keyword`:return this.countNode(),{kind:`literal`,value:e.keyword===`null`?null:e.keyword===`true`};case`identifier`:{let t=this.peek();return t.type===`punct`&&t.punct===`(`?this.parseCall(e.name,e.pos):(this.identifiers.add(e.name),this.countNode(),{kind:`identifier`,name:e.name})}case`punct`:if(e.punct===`(`){let e=this.parseTernary();return this.expectPunct(`)`),e}throw new j(`unexpected token '${e.punct}'`,e.pos);case`eof`:throw new j(`unexpected end of expression`,e.pos)}}parseCall(e,t){if(!em.has(e))throw new j(`unknown function '${e}'`,t);this.expectPunct(`(`);let n=[];if(!this.matchPunct(`)`))for(;;){if(n.push(this.parseTernary()),n.length>16)throw new j(`too many arguments to '${e}'`,t);if(!this.matchPunct(`,`)){this.expectPunct(`)`);break}}return this.callees.add(e),this.countNode(),{kind:`call`,callee:e,args:n}}};function gm(e){return new hm(lm(e)).parse()}var _m=new Map;function vm(e){let t=_m.get(e);if(t!==void 0)return _m.delete(e),_m.set(e,t),t;let n;try{n={ok:!0,parsed:gm(e)}}catch(e){n={ok:!1,error:e instanceof j?e.message:String(e)}}if(_m.set(e,n),_m.size>256){let e=_m.keys().next().value;e!==void 0&&_m.delete(e)}return n}function ym(e){let t=vm(e);if(t.ok)return t.parsed;throw new j(t.error)}function bm(e){return vm(e)}var xm=Object.freeze({});function Sm(e){let t=Object.create(null);for(let n of Object.keys(e))Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Cm(e){return typeof e==`number`&&Number.isFinite(e)}function wm(e){return!!e}function Tm(e,t){if(!Number.isFinite(e))throw new M(`${t} produced a non-finite result`);return e}function Em(e){if(e.steps+=1,e.steps>e.maxSteps)throw new M(`expression evaluation step budget exceeded`)}function Dm(e,t){return`${e}/${t}`}function F(e,t,n){switch(Em(t),e.kind){case`literal`:return e.value;case`identifier`:if(!(e.name in t.scope))throw new M(`unknown identifier: ${e.name}`);return t.scope[e.name];case`unary`:return Om(e.op,F(e.operand,t,Dm(n,`operand`)));case`binary`:return km(e.op,F(e.left,t,Dm(n,`left`)),F(e.right,t,Dm(n,`right`)));case`logical`:{let r=F(e.left,t,Dm(n,`left`));return e.op===`&&`?wm(r)?F(e.right,t,Dm(n,`right`)):r:wm(r)?r:F(e.right,t,Dm(n,`right`))}case`conditional`:return wm(F(e.test,t,Dm(n,`test`)))?F(e.consequent,t,Dm(n,`consequent`)):F(e.alternate,t,Dm(n,`alternate`));case`call`:{let r=e.args.map((e,r)=>F(e,t,Dm(n,`arg:${r}`)));return Am(e.callee,r,n,t)}}}function Om(e,t){if(e===`!`)return!wm(t);if(!Cm(t))throw new M(`unary "-" requires a finite number`);return Tm(-t,`unary "-"`)}function km(e,t,n){switch(e){case`==`:return t===n;case`!=`:return t!==n;case`+`:if(typeof t==`string`&&typeof n==`string`)return t+n;if(Cm(t)&&Cm(n))return Tm(t+n,`"+"`);throw new M(`"+" requires two numbers or two strings`);case`-`:case`*`:case`/`:case`%`:if(!Cm(t)||!Cm(n))throw new M(`"${e}" requires two finite numbers`);return Tm(e===`-`?t-n:e===`*`?t*n:e===`/`?t/n:t%n,`"${e}"`);case`<`:case`<=`:case`>`:case`>=`:if(Cm(t)&&Cm(n)||typeof t==`string`&&typeof n==`string`)return e===`<`?t<n:e===`<=`?t<=n:e===`>`?t>n:t>=n;throw new M(`"${e}" requires two numbers or two strings`)}}function Am(e,t,n,r){if(!Object.prototype.hasOwnProperty.call($p,e))throw new M(`unknown function: ${e}`);let i=$p[e];if(t.length<i.minArgs||t.length>i.maxArgs)throw new M(`${e}: wrong number of arguments (${t.length})`);if(Vp(e)){if(r.invokeStateful===void 0)throw new M(`${e}: stateful evaluation context is required`);return r.invokeStateful({name:e,path:n,args:t})}return i.apply(t,r.hooks)}function jm(e,t,n){return F(e,{scope:t,hooks:n?.hooks??xm,maxSteps:n?.maxSteps??4096,...n?.invokeStateful===void 0?{}:{invokeStateful:n.invokeStateful},steps:0},`root`)}function Mm(){return{calls:new Map,acceptedEdgeAt:null,disarmRoseNext:!1}}function Nm(e){return{calls:new Map([...e.calls].map(([e,t])=>[e,{...t}])),acceptedEdgeAt:e.acceptedEdgeAt,disarmRoseNext:e.disarmRoseNext}}function Pm(e,t,n){let r=t.calls.get(e.path);switch(e.name){case`rose`:{let i=r?.kind===`rose`?r:{kind:`rose`};t.calls.set(e.path,i);let a=n.currentOutput===null||typeof n.currentOutput==`number`&&Number.isFinite(n.currentOutput)?n.currentOutput:null;return Jp(e.args[0],e.args[1],e.args[2],i,t,{currentOutput:a,startedAtMs:n.startedAtMs,nowMs:n.nowMs})}case`count`:{let i=r?.kind===`count`?r:{kind:`count`,highWater:null,primed:!1};return t.calls.set(e.path,i),Xp(e.args[0],i,n.currentOutput)}}}function Fm(e){if(e===null)return null;if(typeof e==`string`||typeof e==`boolean`)return e;if(typeof e==`number`)return Number.isFinite(e)?e:void 0}function Im(e){let t=Object.keys(e.bindings);if(t.length>32)return`too many bindings (${t.length} > 32)`;for(let e of t){if(!nm.test(e))return`invalid binding name '${e}'`;if(rm.has(e))return`binding name '${e}' is reserved`;if(em.has(e))return`binding name '${e}' shadows a builtin function`}let n=bm(e.expr);if(!n.ok)return n.error;let r=new Set(t);for(let e of n.parsed.identifiers)if(e!==`now`&&!r.has(e))return`expression references unbound identifier '${e}'`;return null}function Lm(e,t,n,r){let i=bm(e);if(!i.ok)return{ok:!1,error:i.error};let a=Sm({...t,now:n}),o={...r?.hooks,now:n};try{return{ok:!0,value:jm(i.parsed.ast,a,{...r,hooks:o})}}catch(e){return{ok:!1,error:e instanceof M?e.message:String(e)}}}var Rm=f({kind:g(`field`).optional(),sourceKey:u(),cap:u(),fieldPath:u()}),zm=f({kind:g(`literal`),value:p([u(),a(),C(),ae()])}),Bm=f({kind:g(`global`),sourceStableId:u(),cap:u(),fieldPath:u()}),Vm=p([Rm,zm,Bm]),Hm=f({expr:u().min(1).max(tm),bindings:y(u().regex(nm),Vm)}).superRefine((e,t)=>{let n=Im(e);n!==null&&t.addIssue({code:`custom`,message:n,path:[`expr`]})}),Um=x([`eq`,`ne`,`gt`,`gte`,`lt`,`lte`,`contains`,`in`]),Wm=f({kind:g(`condition`),deviceId:a().int().nonnegative(),cap:u().min(1),fieldPath:u().min(1),operator:Um,value:p([u(),a(),C(),S(p([u(),a()]))])}),Gm=f({kind:g(`expression`),expr:u().min(1).max(tm),bindings:y(u().regex(nm),Vm)}).superRefine((e,t)=>{let n=Im(e);n!==null&&t.addIssue({code:`custom`,message:n,path:[`expr`]})}),Km=he(()=>h(`kind`,[f({kind:g(`all`),children:S(Km)}),f({kind:g(`any`),children:S(Km)}),f({kind:g(`not`),child:Km}),Wm,Gm])),qm=h(`kind`,[f({kind:g(`device-state`),deviceId:a().int().nonnegative(),cap:u().min(1),fieldPath:u().min(1),becomes:p([u(),a(),C()]).optional(),edge:C().optional(),forMs:a().int().min(0).max(864e5).optional(),debounceMs:a().int().min(0).max(6e5).optional()}),f({kind:g(`device-event`),category:u().min(1),deviceId:a().int().nonnegative().optional()}),f({kind:g(`schedule`),cron:u().min(1).max(120)}),f({kind:g(`manual`)})]),Jm=h(`kind`,[f({kind:g(`wait`),seconds:a().min(0).max(300)}),f({kind:g(`cap`),deviceId:p([a().int(),S(a().int()).min(1),f({$var:u().min(1)})]),cap:u().min(1),method:u().min(1),args:y(u(),s()).optional()}),f({kind:g(`code`),code:u().min(1).max(2e4)})]),Ym=f({triggers:S(qm),conditions:Km.optional(),actions:S(Jm)});function Xm(e){if(e.kind===`condition`||e.kind===`expression`)return 1;if(e.kind===`not`)return 1+Xm(e.child);let t=e.children;if(t.length===0)return 1;let n=0;for(let e of t){let t=Xm(e);t>n&&(n=t)}return 1+n}function Zm(e){if(e.kind===`condition`||e.kind===`expression`)return 1;if(e.kind===`not`)return Zm(e.child);let t=0;for(let n of e.children)t+=Zm(n);return t}function Qm(e){return e.kind===`condition`||e.kind===`expression`?!1:e.kind===`not`?Qm(e.child):e.children.length===0?!0:e.children.some(Qm)}function $m(e){if(e.triggers.length===0)return`an automation needs at least one trigger — without one nothing can start a run`;if(e.actions.length===0)return`an automation needs at least one action — a rule that does nothing is not a rule`;let t=e.conditions;if(t!==void 0){if(Qm(t))return`a condition group is empty — group existing rows instead of leaving a container to fill`;let e=Xm(t);if(e>3)return`conditions nest ${e} levels deep — the limit is 3. "not (any of …)" is the same as "all of (not …)", which is one level shallower`;let n=Zm(t);if(n>32)return`conditions use ${n} leaves — the limit is 32`}return null}var eh=15e3;function I(e){return JSON.stringify(e)}function th(e,t){switch(e.kind){case`all`:return`allOf([\n${e.children.map(e=>`${t} () => ${th(e,`${t} `)}`).join(`,
5
- `)}\n${t}])`;case`any`:return`anyOf([\n${e.children.map(e=>`${t} () => ${th(e,`${t} `)}`).join(`,
6
- `)}\n${t}])`;case`not`:return`notOf(() => ${th(e.child,t)})`;case`condition`:return`leaf(${I(e.deviceId)}, ${I(e.cap)}, ${I(e.fieldPath)}, ${I(e.operator)}, ${I(e.value)})`;case`expression`:return`exprLeaf(${I(e.expr)}, ${I(e.bindings)})`}}function nh(e,t){switch(e.kind){case`schedule`:return` // trigger ${t}: schedule — armed to the next minute boundary and
7
- // RE-ARMED from the wall clock every tick, so it cannot drift the way a
8
- // setInterval(24h) does. No cron library: a block cannot resolve one.
9
- {
10
- let timer: ReturnType<typeof setTimeout> | undefined
11
- const arm = (): void => {
12
- timer = setTimeout(() => {
13
- if (cronMatches(${I(e.cron)}, new Date())) {
14
- void run({ kind: 'schedule', at: Date.now() })
15
- }
16
- arm()
17
- }, nextMinuteBoundary())
18
- }
19
- arm()
20
- disposers.push(() => { if (timer !== undefined) clearTimeout(timer) })
21
- }`;case`device-event`:return` // trigger ${t}: device event
22
- disposers.push(
23
- ctx.eventBus.subscribe(
24
- { category: ${I(e.category)}${e.deviceId===void 0?``:`, deviceId: ${I(e.deviceId)}`} },
25
- (event) => {
26
- void run({
27
- kind: 'device-event',
28
- at: Date.now(),
29
- deviceId: event.deviceId,
30
- category: ${I(e.category)},
31
- })
32
- },
33
- ),
34
- )`;case`device-state`:{let n=e.becomes===void 0?`undefined`:I(e.becomes);return` // trigger ${t}: device state — the mirror is the authority, the
35
- // event only WAKES the evaluation, so a dropped event delays and never loses.
36
- {
37
- let previous: unknown = undefined
38
- let debounce: ReturnType<typeof setTimeout> | undefined
39
- let heldSince: number | undefined
40
- const check = async (): Promise<void> => {
41
- const value = await readField(${I(e.deviceId)}, ${I(e.cap)}, ${I(e.fieldPath)})
42
- const want = ${n}
43
- const matches = want === undefined ? value !== previous : value === want
44
- const changed = value !== previous
45
- previous = value
46
- if (!matches) { heldSince = undefined; return }
47
- if (${e.edge===!0?`true`:`false`} && !changed) return
48
- const forMs = ${I(e.forMs??0)}
49
- if (forMs > 0) {
50
- if (heldSince === undefined) { heldSince = Date.now(); return }
51
- if (Date.now() - heldSince < forMs) return
52
- }
53
- heldSince = undefined
54
- void run({
55
- kind: 'device-state',
56
- at: Date.now(),
57
- deviceId: ${I(e.deviceId)},
58
- cap: ${I(e.cap)},
59
- field: ${I(e.fieldPath)},
60
- to: value,
61
- })
62
- }
63
- const wake = (): void => {
64
- if (debounce !== undefined) clearTimeout(debounce)
65
- debounce = setTimeout(() => { void check() }, ${I(e.debounceMs??0)})
66
- }
67
- disposers.push(
68
- ctx.eventBus.subscribe({ category: 'device.state-changed', deviceId: ${I(e.deviceId)} }, wake),
69
- )
70
- const reconcile = setInterval(() => { void check() }, RECONCILE_MS)
71
- disposers.push(() => clearInterval(reconcile))
72
- }`}case`manual`:return` // trigger ${t}: manual — fired by automation-control.trigger
73
- // ("Run actions"), which runs the THEN half with an EMPTY vars bag.`}}function rh(e,t){switch(e.kind){case`wait`:return` case ${t}: await sleep(${I(e.seconds*1e3)}); break`;case`cap`:return Array.isArray(e.deviceId)?` case ${t}: {
74
- for (const deviceId of ${I(e.deviceId)}) {
75
- await actuate(deviceId, ${I(e.cap)}, ${I(e.method)}, ${I(e.args??{})}, vars)
76
- }
77
- break
78
- }`:` case ${t}: {
79
- const deviceId = ${typeof e.deviceId==`number`?I(e.deviceId):`resolveTarget(vars, ${I(e.deviceId.$var)})`}
80
- await actuate(deviceId, ${I(e.cap)}, ${I(e.method)}, ${I(e.args??{})}, vars)
81
- break
82
- }`;case`code`:return` case ${t}: {
83
- // inline code action — a fragment of THIS block, bundled by esbuild
84
- await (async () => {
85
- ${e.code.split(`
86
- `).map(e=>` ${e}`).join(`
87
- `)}
88
- })()
89
- break
90
- }`}}function ih(e){let t=$m(e.recipe);if(t!==null)throw Error(`cannot generate an automation from an invalid recipe: ${t}`);let{name:n,recipe:r}=e,i=r.conditions===void 0?`true`:`await ${th(r.conditions,` `)}`;return`import type { AddonContext } from '@camstack/types'
91
- import { evaluateExpressionSource, toExpressionValue } from '@camstack/types'
92
-
93
- /**
94
- * ${n}
95
- *
96
- * GENERATED FROM A RECIPE — do not edit by hand. Editing this file makes it a
97
- * script: the visual editor reads AUTOMATION_RECIPE below, and hand edits are
98
- * lost the next time the recipe is saved. Use "Eject to code" to take ownership
99
- * of it permanently (one way).
100
- */
101
-
102
- const AUTOMATION_RECIPE = ${JSON.stringify(r,null,2)} as const
103
-
104
- const RECONCILE_MS = ${eh}
105
-
106
- /** A cap is named \`alarm-panel\`; \`ctx.api\` is keyed by the ROUTER name,
107
- * \`alarmPanel\`. Indexing ctx.api with the cap name yields undefined and every
108
- * action throws, so the conversion is not cosmetic. */
109
- function capToRouterKey(cap: string): string {
110
- return cap.replace(/-([a-z0-9])/g, (_m, c: string) => c.toUpperCase())
111
- }
112
-
113
- /** Ms until the top of the next minute. Recomputed every tick so a long-lived
114
- * schedule cannot accumulate drift. */
115
- function nextMinuteBoundary(): number {
116
- const now = Date.now()
117
- return 60_000 - (now % 60_000)
118
- }
119
-
120
- /** Does \`when\` satisfy a 5-field cron expression (min hour dom mon dow)?
121
- * Supports wildcards, step syntax, ranges, comma lists and plain numbers —
122
- * the subset an operator can author, and nothing that needs a library. */
123
- function cronMatches(expr: string, when: Date): boolean {
124
- const fields = expr.trim().split(/\\s+/)
125
- if (fields.length !== 5) return false
126
- const actual = [
127
- when.getMinutes(),
128
- when.getHours(),
129
- when.getDate(),
130
- when.getMonth() + 1,
131
- when.getDay(),
132
- ]
133
- return fields.every((field, i) => matchField(field, actual[i]!))
134
- }
135
-
136
- function matchField(field: string, value: number): boolean {
137
- for (const part of field.split(',')) {
138
- const [range, stepRaw] = part.split('/')
139
- const step = stepRaw === undefined ? 1 : Number.parseInt(stepRaw, 10)
140
- if (!Number.isFinite(step) || step < 1) continue
141
- if (range === '*') {
142
- if (value % step === 0) return true
143
- continue
144
- }
145
- const bounds = range!.split('-')
146
- const lo = Number.parseInt(bounds[0]!, 10)
147
- const hi = bounds[1] === undefined ? lo : Number.parseInt(bounds[1], 10)
148
- if (!Number.isFinite(lo) || !Number.isFinite(hi)) continue
149
- if (value >= lo && value <= hi && (value - lo) % step === 0) return true
150
- }
151
- return false
152
- }
153
-
154
- export default function block(ctx: AddonContext) {
155
- const disposers: Array<() => void> = []
156
- const sleep = (ms: number): Promise<void> => new Promise((r) => setTimeout(r, ms))
157
-
158
- /** Read one cap field off the state mirror. Returns undefined when the device,
159
- * the cap or the field cannot be resolved — the caller decides what that
160
- * means, and it always logs. */
161
- async function readField(
162
- deviceId: number,
163
- cap: string,
164
- fieldPath: string,
165
- ): Promise<unknown> {
166
- try {
167
- const slice = await ctx.api.deviceState.getCapSlice.query({ deviceId, capName: cap })
168
- let cursor: unknown = slice
169
- for (const part of fieldPath.split('.')) {
170
- if (cursor === null || typeof cursor !== 'object') return undefined
171
- cursor = (cursor as Record<string, unknown>)[part]
172
- }
173
- return cursor
174
- } catch {
175
- return undefined
176
- }
177
- }
178
-
179
- function compare(actual: unknown, operator: string, expected: unknown): boolean {
180
- switch (operator) {
181
- case 'eq': return actual === expected
182
- case 'ne': return actual !== expected
183
- case 'gt': return typeof actual === 'number' && typeof expected === 'number' && actual > expected
184
- case 'gte': return typeof actual === 'number' && typeof expected === 'number' && actual >= expected
185
- case 'lt': return typeof actual === 'number' && typeof expected === 'number' && actual < expected
186
- case 'lte': return typeof actual === 'number' && typeof expected === 'number' && actual <= expected
187
- case 'contains': return typeof actual === 'string' && typeof expected === 'string' && actual.includes(expected)
188
- case 'in': return Array.isArray(expected) && expected.some((v) => v === actual)
189
- default: return false
190
- }
191
- }
192
-
193
- /** A leaf whose device or cap is currently unresolvable is FALSE and logs.
194
- * It never throws the pass away, and it never counts as true. */
195
- async function leaf(
196
- deviceId: number,
197
- cap: string,
198
- fieldPath: string,
199
- operator: string,
200
- expected: unknown,
201
- ): Promise<boolean> {
202
- const actual = await readField(deviceId, cap, fieldPath)
203
- if (actual === undefined) {
204
- ctx.logger.warn('condition leaf unresolvable — treated as false', {
205
- tags: { deviceId },
206
- cap,
207
- fieldPath,
208
- })
209
- return false
210
- }
211
- return compare(actual, operator, expected)
212
- }
213
-
214
- /** The expression leaf goes through the bounded engine — parsed AST, no
215
- * member access, no loops, hard step/node limits. Never inline JS. */
216
- async function exprLeaf(
217
- expr: string,
218
- bindings: Record<string, { kind?: string; cap?: string; fieldPath?: string; value?: unknown; sourceStableId?: string }>,
219
- ): Promise<boolean> {
220
- const values: Record<string, string | number | boolean | null> = {}
221
- for (const [alias, binding] of Object.entries(bindings)) {
222
- if (binding.kind === 'literal') {
223
- values[alias] = toExpressionValue(binding.value) ?? null
224
- continue
225
- }
226
- const deviceId = await stableIdToDeviceId(binding.sourceStableId)
227
- if (deviceId === undefined) {
228
- ctx.logger.warn('condition leaf unresolvable — treated as false', {
229
- tags: { deviceId: -1 },
230
- binding: alias,
231
- })
232
- return false
233
- }
234
- const raw = await readField(deviceId, binding.cap ?? '', binding.fieldPath ?? '')
235
- values[alias] = toExpressionValue(raw) ?? null
236
- }
237
- const result = evaluateExpressionSource(expr, values, Date.now())
238
- if (!result.ok) {
239
- ctx.logger.warn('expression leaf failed — treated as false', { expr, error: result.error })
240
- return false
241
- }
242
- return result.value === true
243
- }
244
-
245
- async function stableIdToDeviceId(stableId: string | undefined): Promise<number | undefined> {
246
- if (stableId === undefined) return undefined
247
- try {
248
- const all = await ctx.api.deviceManager.listAll.query({})
249
- const hit = all.devices.find((d: { stableId?: string; id: number }) => d.stableId === stableId)
250
- return hit?.id
251
- } catch {
252
- return undefined
253
- }
254
- }
255
-
256
- async function allOf(children: Array<() => Promise<boolean>>): Promise<boolean> {
257
- for (const c of children) { if (!(await c())) return false }
258
- return true
259
- }
260
- async function anyOf(children: Array<() => Promise<boolean>>): Promise<boolean> {
261
- for (const c of children) { if (await c()) return true }
262
- return false
263
- }
264
- async function notOf(child: () => Promise<boolean>): Promise<boolean> {
265
- return !(await child())
266
- }
267
-
268
- /** A {$var} action target, resolved from the run's bag BEFORE dispatch — the
269
- * action runner only ever sees a number. */
270
- function resolveTarget(vars: Record<string, unknown>, name: string): number {
271
- const raw = vars[name]
272
- if (typeof raw === 'number') return raw
273
- throw new Error('action target var "' + name + '" is not a device id')
274
- }
275
-
276
- /** Substitute {{vars.x}} slots. Substitution only — never evaluation. */
277
- function substitute(value: unknown, vars: Record<string, unknown>): unknown {
278
- if (typeof value !== 'string') return value
279
- return value.replace(/\\{\\{\\s*vars\\.([A-Za-z_][A-Za-z0-9_]*)\\s*\\}\\}/g, (_m, key: string) => {
280
- const v = vars[key]
281
- if (v === undefined) {
282
- ctx.logger.warn('template referenced a var that was never set', { var: key })
283
- return ''
284
- }
285
- return String(v)
286
- })
287
- }
288
-
289
- async function actuate(
290
- deviceId: number,
291
- cap: string,
292
- method: string,
293
- args: Record<string, unknown>,
294
- vars: Record<string, unknown>,
295
- ): Promise<void> {
296
- const resolved: Record<string, unknown> = {}
297
- for (const [k, v] of Object.entries(args)) resolved[k] = substitute(v, vars)
298
- // Forked-addon ctx.api namespaces are tRPC Proxies over a noop function
299
- // (typeof === 'function'), not plain objects — reject only null/undefined.
300
- const client: unknown = Reflect.get(ctx.api, capToRouterKey(cap))
301
- const proc: unknown =
302
- client !== null && client !== undefined ? Reflect.get(client as object, method) : undefined
303
- const mutate: unknown =
304
- proc !== null && proc !== undefined ? Reflect.get(proc as object, 'mutate') : undefined
305
- if (typeof mutate !== 'function') {
306
- throw new Error('no such device method: ' + cap + '.' + method)
307
- }
308
- await mutate({ ...resolved, deviceId })
309
- }
310
-
311
- async function evaluateConditions(): Promise<boolean> {
312
- return ${i}
313
- }
314
-
315
- /** The THEN half. Stops at the first failure — continuing past a failed step
316
- * executes an intent the operator never expressed. */
317
- async function runActions(vars: Record<string, unknown>): Promise<void> {
318
- for (let step = 0; step < ${r.actions.length}; step += 1) {
319
- try {
320
- switch (step) {
321
- ${r.actions.map((e,t)=>rh(e,t)).join(`
322
- `)}
323
- }
324
- } catch (err: unknown) {
325
- ctx.logger.warn('action failed — stopping the sequence', {
326
- step,
327
- error: err instanceof Error ? err.message : String(err),
328
- })
329
- return
330
- }
331
- }
332
- }
333
-
334
- async function run(trigger: Record<string, unknown>): Promise<void> {
335
- const vars: Record<string, unknown> = { ...trigger }
336
- const passed = await evaluateConditions()
337
- if (!passed) {
338
- ctx.logger.debug('automation did not run — conditions were false', { trigger })
339
- return
340
- }
341
- ctx.logger.info('automation running', { trigger })
342
- await runActions(vars)
343
- }
344
-
345
- ${r.triggers.map((e,t)=>nh(e,t)).join(`
346
-
347
- `)}
348
-
349
- return () => {
350
- for (const dispose of disposers) dispose()
351
- }
352
- }
353
- `}var ah=`__camstackNodePin`;function oh(e){return{context:{[ah]:sh(e)}}}function sh(e){let t=e.split(`/`)[0];return t===void 0||t.length===0?e:t}function ch(e){if(typeof e!=`object`||!e)return;let t=Reflect.get(e,ah);return typeof t==`string`?t:void 0}f({field:u().min(1),on:g(`advance`)});var lh=`session`,uh={"%":`%`,dBFS:`dBFS`,dBm:`dBm`,"°C":`°C`,W:`W`,kWh:`kWh`,V:`V`,A:`A`,VA:`VA`,lx:`lx`,ppm:`ppm`,ppb:`ppb`,"ug/m3":`µg/m³`,hPa:`hPa`,count:`count`,ratio:`ratio`,ms:`ms`,s:`s`,days:`days`,bytes:`bytes`},dh=1e4;function fh(e){return e.mount?e.mount:e.deviceNative===!0?{kind:`device-native`}:e.scope===`device`&&e.kind===`wrapper`?{kind:`device-scoped`}:e.mode===`collection`?{kind:`collection`}:{kind:`singleton`}}var ph=`provider`,mh=f({id:u(),title:u(),description:u().optional(),style:x([`card`,`accordion`]).optional(),defaultCollapsed:C().optional(),columns:p([g(1),g(2),g(3),g(4)]).optional(),tab:u().optional(),location:x([`settings`,`top-tab`]).optional(),order:a().optional(),fields:S(ee())}),hh=f({tabs:S(f({id:u(),label:u(),icon:u(),order:a().optional()})).optional(),sections:S(mh)}).nullable(),gh={getDeviceSettingsContribution:{input:f({deviceId:a()}),output:hh,kind:`query`,auth:`protected`},getDeviceLiveContribution:{input:f({deviceId:a()}),output:hh,kind:`query`,auth:`protected`},applyDeviceSettingsPatch:{input:f({deviceId:a(),patch:y(u(),s())}),output:f({success:g(!0)}),kind:`mutation`,auth:`admin`}},_h={getStatus:{input:f({deviceId:a()}),output:s().nullable(),kind:`query`,auth:`protected`}};function vh(e){let t=e.methods;return e.exposesDeviceSettings&&(t={...gh,...t}),e.status&&(t={..._h,...t}),t}function L(e,t,n){return{input:e,output:t,kind:n?.kind??`query`,...n?.auth===void 0?{}:{auth:n.auth},...n?.access===void 0?{}:{access:n.access},...n?.caller===void 0?{}:{caller:n.caller},timeoutMs:n?.timeoutMs}}function yh(e,t,n){return{...L(e,t,n),systemOnly:!0}}function bh(e,t,n){return{...L(e,t,n),providerOptional:!0}}function xh(e){return{data:e}}function Sh(e){return e?.deviceConfig!==void 0}var Ch=f({id:u(),label:u(),icon:u(),path:u(),remoteName:u(),bundle:u(),section:u().optional(),sectionLabel:u().optional()}),wh=f({addonId:u(),page:Ch,bundleUrl:u()}),Th={name:`addon-pages`,scope:`system`,mode:`singleton`,methods:{listPages:L(v(),S(wh).readonly())}},Eh=f({id:u(),label:u(),icon:u(),path:u(),remoteName:u(),bundle:u(),section:u().optional(),sectionLabel:u().optional()}),Dh={name:`addon-pages-source`,scope:`system`,mode:`collection`,internal:!0,methods:{listPages:L(v(),S(Eh).readonly(),{auth:`admin`})}},Oh=f({method:x([`GET`,`POST`,`PUT`,`DELETE`,`PATCH`]),path:u(),access:x([`public`,`authenticated`,`admin`]).optional(),description:u().optional(),rateLimit:x([`auth`]).optional()}),kh=f({method:u(),path:u(),params:y(u(),u()),query:y(u(),u()),body:s(),headers:y(u(),u()),user:f({id:u(),username:u(),isAdmin:C()}).optional(),scopedToken:s().optional()}),Ah=f({status:a().int(),headers:y(u(),u()),redirectUrl:u().nullable(),body:s().optional(),contentType:u().optional()}),jh={name:`addon-routes`,scope:`system`,mode:`collection`,internal:!0,methods:{getRoutes:L(v(),S(Oh)),invoke:L(kh,Ah,{kind:`mutation`})},mount:{kind:`skip`}},Mh=f({id:u(),label:u(),icon:u(),order:a().optional()}),Nh=f({id:u(),title:u(),titleKey:u().optional(),description:u().optional(),descriptionKey:u().optional(),style:x([`card`,`accordion`]).optional(),defaultCollapsed:C().optional(),columns:p([g(1),g(2),g(3),g(4)]).optional(),tab:u().optional(),location:x([`settings`,`top-tab`]).optional(),order:a().optional(),fields:S(ee())}),Ph=f({tabs:S(Mh).optional(),sections:S(Nh)}),Fh=y(u(),s()),Ih=f({success:g(!0)}),Lh={name:`addon-settings`,scope:`system`,mode:`singleton`,nodeIdMode:`data`,methods:{getGlobalSettings:L(f({addonId:u(),nodeId:u().optional(),overlay:y(u(),s()).optional(),cap:u().optional()}),Ph.nullable()),updateGlobalSettings:L(f({addonId:u(),nodeId:u().optional(),patch:Fh}),Ih,{kind:`mutation`,auth:`admin`}),getIntegrationSettings:L(f({addonId:u(),nodeId:u().optional()}),Ph.nullable()),getDeviceSettings:L(f({addonId:u(),deviceId:a(),nodeId:u().optional()}),Ph.nullable()),updateDeviceSettings:L(f({addonId:u(),deviceId:a(),nodeId:u().optional(),patch:Fh}),Ih,{kind:`mutation`,auth:`admin`})}},Rh=x([`device-tab`,`dashboard`,`integration-detail`]),zh=x([`xs`,`sm`,`md`,`lg`,`xl`]),Bh=f({remoteName:u(),exposedModule:u(),componentKey:u().optional()}),Vh=f({tab:u(),subTab:u().optional(),label:u(),order:a().optional(),kind:g(`remote`),remote:Bh,stableId:u(),description:u().optional(),icon:u().optional(),bundle:u(),hosts:S(Rh).readonly(),requires:f({deviceContext:C().default(!1),integrationContext:C().default(!1)}),preAuth:C().optional().default(!1),defaultSize:zh.default(`md`),allowedSizes:S(zh).readonly().default([`sm`,`md`,`lg`]),defaultColumns:a().int().min(1).max(12).default(6),defaultRows:a().int().min(1).max(12).default(1)}),Hh={name:`addon-widgets-source`,scope:`system`,mode:`collection`,internal:!0,methods:{listWidgets:L(v(),S(Vh).readonly(),{auth:`admin`})}},Uh=Vh.extend({addonId:u(),bundleUrl:u()}),Wh={name:`addon-widgets`,scope:`system`,mode:`singleton`,methods:{listWidgets:L(v(),S(Uh).readonly())}},Gh=f({staticDir:u()}),Kh=f({version:u()}),qh={name:`admin-ui`,scope:`system`,mode:`singleton`,internal:!0,methods:{getStaticDir:L(v(),Gh,{auth:`admin`}),getVersion:L(v(),Kh,{auth:`admin`})}},Jh=x([`info`,`success`,`warning`,`error`,`critical`]),Yh=f({label:u(),href:u().optional(),navigation:x([`app`,`server`]).optional()}),Xh=x([`active`,`in-progress`,`completed`,`failed`,`dismissed`]),Zh=f({type:u(),id:u()}),Qh=f({id:u(),category:u(),severity:Jh,title:u(),message:u(),action:Yh.optional(),status:Xh,progress:a().optional(),read:C(),createdAt:a(),updatedAt:a(),source:Zh.optional(),metadata:y(u(),s()).optional()}),$h={name:`alerts`,scope:`system`,mode:`singleton`,methods:{emit:L(Qh,v(),{kind:`mutation`}),update:L(f({alertId:u(),patch:Qh.partial()}),v(),{kind:`mutation`}),list:L(f({unreadOnly:C().optional(),limit:a().optional()}).optional(),S(Qh).readonly()),getUnreadCount:L(v(),a()),markRead:L(f({alertId:u()}),v(),{kind:`mutation`}),markAllRead:L(v(),v(),{kind:`mutation`}),dismiss:L(f({alertId:u()}),v(),{kind:`mutation`})}},R=function(e){return e.Camera=`camera`,e.Hub=`hub`,e.Light=`light`,e.Siren=`siren`,e.Switch=`switch`,e.Sensor=`sensor`,e.Thermostat=`thermostat`,e.Climate=`climate`,e.Button=`button`,e.EventEmitter=`event-emitter`,e.Update=`update`,e.Generic=`generic`,e.Notifier=`notifier`,e.Script=`script`,e.Automation=`automation`,e.Lock=`lock`,e.Cover=`cover`,e.Valve=`valve`,e.Humidifier=`humidifier`,e.WaterHeater=`water-heater`,e.Fan=`fan`,e.MediaPlayer=`media-player`,e.AlarmPanel=`alarm-panel`,e.Control=`control`,e.Presence=`presence`,e.Weather=`weather`,e.Vacuum=`vacuum`,e.LawnMower=`lawn-mower`,e.Container=`container`,e.Image=`image`,e.PetFeeder=`pet-feeder`,e.Dishwasher=`dishwasher`,e}({}),eg=function(e){return e.BatteryOperated=`battery-operated`,e.Rebootable=`rebootable`,e.Resyncable=`resyncable`,e.NativeSnapshot=`native-snapshot`,e.DoorbellButton=`doorbell-button`,e.TwoWayAudio=`two-way-audio`,e.PanTiltZoom=`pan-tilt-zoom`,e.PtzAutotrack=`ptz-autotrack`,e.MotionTrigger=`motion-trigger`,e.LightColorRgb=`light-color-rgb`,e.LightColorHsv=`light-color-hsv`,e.LightColorMired=`light-color-mired`,e.ClimateDualSetpoint=`climate-dual-setpoint`,e.ClimateHumidity=`climate-humidity`,e.ClimateFanMode=`climate-fan-mode`,e.ClimatePreset=`climate-preset`,e.ClimateSwingVertical=`climate-swing-vertical`,e.ClimateSwingHorizontal=`climate-swing-horizontal`,e.CoverPositionable=`cover-positionable`,e.CoverTilt=`cover-tilt`,e.ValvePositionable=`valve-positionable`,e.FanSpeed=`fan-speed`,e.FanPreset=`fan-preset`,e.FanDirection=`fan-direction`,e.FanOscillating=`fan-oscillating`,e.LockPinRequired=`lock-pin-required`,e.LockOpen=`lock-open`,e.MediaPlayerSeek=`media-player-seek`,e.MediaPlayerVolume=`media-player-volume`,e.MediaPlayerMute=`media-player-mute`,e.MediaPlayerShuffle=`media-player-shuffle`,e.MediaPlayerRepeat=`media-player-repeat`,e.MediaPlayerSelectSource=`media-player-select-source`,e.MediaPlayerPlayMedia=`media-player-play-media`,e.MediaPlayerNext=`media-player-next`,e.MediaPlayerPrevious=`media-player-previous`,e.MediaPlayerStop=`media-player-stop`,e.AlarmPinRequired=`alarm-pin-required`,e.PresenceGps=`presence-gps`,e.NotifierImage=`notifier-image`,e.NotifierPriority=`notifier-priority`,e.NotifierData=`notifier-data`,e.NotifierActions=`notifier-actions`,e.NotifierRecipients=`notifier-recipients`,e.ScriptVariables=`script-variables`,e.AutomationSkipCondition=`automation-skip-condition`,e.VacuumHasMap=`vacuum-has-map`,e.VacuumHasAi=`vacuum-has-ai`,e.MowerHasMap=`mower-has-map`,e.MowerHasTargetedMowing=`mower-has-targeted-mowing`,e}({}),tg=function(e){return e.ChargingDC=`charging-dc`,e.ChargingSolar=`charging-solar`,e.NotCharging=`not-charging`,e}({}),z=function(e){return e.Siren=`siren`,e.Floodlight=`floodlight`,e.Spotlight=`spotlight`,e.PirSensor=`pir-sensor`,e.Chime=`chime`,e.Autotrack=`autotrack`,e.Nightvision=`nightvision`,e.PrivacyMask=`privacy-mask`,e.Doorbell=`doorbell`,e.CoverBlind=`cover-blind`,e.CoverShutter=`cover-shutter`,e.CoverAwning=`cover-awning`,e.CoverCurtain=`cover-curtain`,e.CoverGarage=`cover-garage`,e.CoverGate=`cover-gate`,e.CoverDoor=`cover-door`,e.CoverWindow=`cover-window`,e.BinaryHelper=`binary-helper`,e.Outlet=`outlet`,e.MotionSensor=`motion-sensor`,e.ContactSensor=`contact-sensor`,e.LeakSensor=`leak-sensor`,e.SmokeSensor=`smoke-sensor`,e.COSensor=`co-sensor`,e.GasSensor=`gas-sensor`,e.TamperSensor=`tamper-sensor`,e.VibrationSensor=`vibration-sensor`,e.ConnectivitySensor=`connectivity-sensor`,e.SoundSensor=`sound-sensor`,e.BinarySensor=`binary-sensor`,e.TemperatureSensor=`temperature-sensor`,e.HumiditySensor=`humidity-sensor`,e.AmbientLightSensor=`ambient-light-sensor`,e.PressureSensor=`pressure-sensor`,e.WindSensor=`wind-sensor`,e.RainSensor=`rain-sensor`,e.UvSensor=`uv-sensor`,e.SolarRadiationSensor=`solar-radiation-sensor`,e.SoilMoistureSensor=`soil-moisture-sensor`,e.PowerSensor=`power-sensor`,e.EnergySensor=`energy-sensor`,e.VoltageSensor=`voltage-sensor`,e.CurrentSensor=`current-sensor`,e.AirQualitySensor=`air-quality-sensor`,e.BatterySensor=`battery-sensor`,e.NumericSensor=`numeric-sensor`,e.EnumSensor=`enum-sensor`,e.DateTimeSensor=`datetime-sensor`,e.GenericSensor=`generic-sensor`,e.NumericControl=`numeric-control`,e.SelectControl=`select-control`,e.TextControl=`text-control`,e.DateTimeControl=`datetime-control`,e.MobilePushNotifier=`mobile-push-notifier`,e.MessagingNotifier=`messaging-notifier`,e.EmailNotifier=`email-notifier`,e.GenericNotifier=`generic-notifier`,e}({}),ng={name:`audio-analysis`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],exposesDeviceSettings:!0,methods:{resolveDeviceSettings:L(f({deviceId:a()}),_())},events:{onAudioLevel:xh(f({deviceId:a(),rms:a(),dbfs:a()}))}},rg=x([`jpeg`,`rgb`,`bgr`,`yuv420`,`gray`]),ig=f({data:_(),format:rg,width:a(),height:a(),timestamp:a()}),ag=f({x:a(),y:a(),w:a(),h:a()}),og=f({class:u(),originalClass:u(),score:a(),bbox:ag}),sg=f({data:b(Uint8Array),sampleRate:a(),channels:a(),timestamp:a(),deviceId:a().optional()}),cg=f({rms:a(),dbfs:a()}),lg=f({className:u(),originalClass:u().optional(),score:a()}),ug=[`superseded`,`error`,`timeout`,`disposed`],dg=h(`state`,[f({state:g(`classified`)}),f({state:g(`not-classified`),reason:x(ug)})]),fg=f({level:cg,classification:f({labels:S(lg).readonly(),inferenceMs:a()}).optional(),classifyOutcome:dg,timestamp:a()}),pg=f({minConfidence:a().min(0).max(1).default(.3),allowedClasses:S(u()).default([])}),mg=f({deviceId:a(),brokerId:u(),ingestNodeId:u(),settings:pg}),hg=f({attached:C(),replaced:C()}),gg=f({detached:C()}),_g=f({labels:S(lg).readonly(),rawLabels:S(lg).readonly().optional(),inferenceMs:a()}),vg=[{value:`auto`,label:`Auto (platform default)`},{value:`apple-soundanalysis`,label:`Apple SoundAnalysis (macOS 12+)`},{value:`yamnet-onnx`,label:`YAMNet ONNX (cross-platform)`}],yg={audioBackend:`auto`,probedBestAudioBackend:``},bg={name:`audio-analyzer`,scope:`system`,mode:`singleton`,methods:{analyseChunk:L(f({chunk:sg,settings:pg}),fg.nullable(),{kind:`mutation`}),classify:L(sg,_g,{timeoutMs:3e4}),attachDevice:L(mg,hg,{kind:`mutation`}),detachDevice:L(f({deviceId:a()}),gg,{kind:`mutation`}),isReady:L(v(),C()),dispose:L(v(),v(),{kind:`mutation`}),reprobeAudioEngine:L(v(),f({backend:u()}),{kind:`mutation`,auth:`admin`})}},xg=x([`f32le`,`s16le`]),Sg=f({codec:u(),canDecode:C(),canEncode:C(),label:u().optional()}),Cg=f({codec:u(),sourceSampleRate:a().int().positive(),sourceChannels:a().int().positive(),extraData:b(Uint8Array).optional(),targetSampleRate:a().int().positive(),targetChannels:a().int().positive(),targetFormat:xg.optional(),idleMs:a().int().positive().optional(),tag:u().optional()}),wg=f({codec:u(),sourceSampleRate:a().int().positive(),sourceChannels:a().int().positive(),sourceFormat:xg.optional(),targetSampleRate:a().int().positive(),targetChannels:a().int().positive(),bitrateKbps:a().int().positive().optional(),idleMs:a().int().positive().optional(),tag:u().optional()}),Tg=f({data:b(Uint8Array),sampleRate:a().int().positive(),channels:a().int().positive(),format:xg,pts:a()}),Eg=f({data:b(Uint8Array),codec:u(),pts:a(),frameComplete:C()}),Dg=f({sessionId:u(),kind:x([`decode`,`encode`]),codec:u(),sourceSampleRate:a(),sourceChannels:a(),targetSampleRate:a(),targetChannels:a(),format:xg,tag:u().optional(),createdAtMs:a(),lastActivityMs:a(),framesIn:a(),framesOut:a()}),Og={name:`audio-codec`,scope:`system`,mode:`singleton`,preferredProvider:`decoder-nodeav`,methods:{listSupportedCodecs:L(v(),S(Sg).readonly()),canHandle:L(f({codec:u(),kind:x([`decode`,`encode`])}),C()),createDecodeSession:L(Cg,f({sessionId:u(),nodeId:u()}),{kind:`mutation`}),createEncodeSession:L(wg,f({sessionId:u(),nodeId:u()}),{kind:`mutation`}),closeSession:L(f({sessionId:u(),nodeId:u().optional()}),v(),{kind:`mutation`}),pushEncodedFrame:L(f({sessionId:u(),nodeId:u().optional(),data:b(Uint8Array),pts:a().optional()}),v(),{kind:`mutation`}),pullPcm:L(f({sessionId:u(),nodeId:u().optional(),maxCount:a().int().positive().default(8)}),S(Tg)),pushPcm:L(f({sessionId:u(),nodeId:u().optional(),data:b(Uint8Array),pts:a().optional()}),v(),{kind:`mutation`}),pullEncoded:L(f({sessionId:u(),nodeId:u().optional(),maxCount:a().int().positive().default(8)}),S(Eg)),flushEncode:L(f({sessionId:u(),nodeId:u().optional()}),S(Eg),{kind:`mutation`}),listActiveSessions:L(v(),S(Dg).readonly())}},kg=f({userId:u(),username:u(),email:u().optional(),displayName:u().optional(),isAdmin:C().default(!1)}),Ag={name:`auth-provider`,scope:`system`,mode:`collection`,internal:!0,methods:{validateCredentials:L(f({username:u(),password:u()}),kg.nullable(),{kind:`mutation`}),getLoginUrl:L(f({state:u()}),u()),handleCallback:L(y(u(),u()),kg,{kind:`mutation`}),validateToken:L(f({token:u()}),kg.nullable())},mount:{kind:`skip`}},jg=f({where:y(u(),s()).optional(),whereIn:y(u(),S(s())).optional(),whereBetween:y(u(),d([s(),s()])).optional(),whereNot:y(u(),s()).optional(),whereNotIn:y(u(),S(s())).optional(),orderBy:f({field:u(),direction:x([`asc`,`desc`])}).optional(),limit:a().optional(),offset:a().optional()}),Mg=f({where:y(u(),s()).optional(),whereIn:y(u(),S(s())).optional(),whereBetween:y(u(),d([s(),s()])).optional(),whereNot:y(u(),s()).optional(),whereNotIn:y(u(),S(s())).optional()}),Ng=f({as:u().min(1),field:u().min(1),op:x([`sum`,`min`,`max`])}),Pg=f({count:a().int(),values:y(u(),a().nullable())}),Fg=f({id:u(),data:y(u(),s())}),Ig=f({id:u().optional(),data:y(u(),s())}),B=x([`settings`,`events`,`history`]),Lg=B.options,Rg=h(`op`,[f({op:g(`deleteWhere`),collection:u(),filter:Mg}),f({op:g(`insertMany`),collection:u(),records:S(Ig).readonly()}),f({op:g(`update`),collection:u(),id:u(),data:y(u(),s())}),f({op:g(`upsertMany`),collection:u(),conflict:S(u()).readonly(),records:S(Ig).readonly()})]),zg=f({collection:u(),key:u(),column:u(),equals:s()}),Bg=f({name:u(),type:x([`TEXT`,`INTEGER`,`REAL`,`JSON`,`BOOLEAN`]),primaryKey:C().optional(),notNull:C().optional(),unique:C().optional(),defaultValue:p([u(),a(),C()]).optional()}),Vg=f({name:u(),columns:S(u()).readonly(),unique:C().optional()}),Hg=f({namespace:u().optional(),collection:u(),columns:S(Bg).readonly(),indexes:S(Vg).readonly().optional(),database:B.optional(),primaryKey:S(u()).readonly().optional(),withoutRowid:C().optional()}),Ug={name:`settings-store`,scope:`system`,mode:`singleton`,methods:{get:L(f({namespace:u().optional(),collection:u(),key:u()}),s(),{auth:`admin`}),set:L(f({namespace:u().optional(),collection:u(),key:u(),value:s()}),v(),{kind:`mutation`,auth:`admin`}),query:L(f({namespace:u().optional(),collection:u(),filter:jg.optional(),columns:S(u()).readonly().optional()}),S(Fg).readonly(),{auth:`admin`}),upsert:L(f({namespace:u().optional(),collection:u(),conflict:S(u()).readonly(),record:Ig}),f({id:p([u(),a()])}),{kind:`mutation`,auth:`admin`}),upsertMany:L(f({namespace:u().optional(),collection:u(),conflict:S(u()).readonly(),records:S(Ig).readonly()}),f({upserted:a().int()}),{kind:`mutation`,auth:`admin`}),insert:L(f({namespace:u().optional(),collection:u(),record:f({id:u().optional(),data:y(u(),s())})}),f({id:p([u(),a()])}),{kind:`mutation`,auth:`admin`}),insertMany:L(f({namespace:u().optional(),collection:u(),records:S(Ig).readonly()}),f({inserted:a().int()}),{kind:`mutation`,auth:`admin`}),transact:L(f({namespace:u().optional(),guard:zg.optional(),ops:S(Rg).readonly()}),f({applied:C(),current:s().optional()}),{kind:`mutation`,auth:`admin`}),update:L(f({namespace:u().optional(),collection:u(),id:u(),data:y(u(),s())}),v(),{kind:`mutation`,auth:`admin`}),delete:L(f({namespace:u().optional(),collection:u(),key:u()}),v(),{kind:`mutation`,auth:`admin`}),deleteWhere:L(f({namespace:u().optional(),collection:u(),filter:Mg}),f({deleted:a().int()}),{kind:`mutation`,auth:`admin`}),updateWhere:L(f({namespace:u().optional(),collection:u(),filter:Mg,data:y(u(),s())}),f({updated:a().int()}),{kind:`mutation`,auth:`admin`}),count:L(f({namespace:u().optional(),collection:u(),filter:jg.optional()}),a(),{auth:`admin`}),aggregate:L(f({namespace:u().optional(),collection:u(),fields:S(Ng).readonly(),filter:jg.optional()}),Pg,{auth:`admin`}),histogram:L(f({namespace:u().optional(),collection:u(),field:u(),bucketSize:a().int().positive(),origin:a().int(),filter:jg.optional()}),S(f({bucket:a().int(),count:a().int()})).readonly(),{auth:`admin`}),isEmpty:L(f({namespace:u().optional(),collection:u()}),C(),{auth:`admin`}),declareCollection:L(Hg,v(),{kind:`mutation`,auth:`admin`})}},Wg=`.backup-snapshot`,Gg=`.backup-snapshot-partial`,Kg=30*6e4,qg=f({databases:S(f({databaseId:B,livePath:u()}))}),Jg=f({name:u(),rows:a().int().nonnegative()}),Yg=f({livePath:u(),snapshotPath:u(),sizeBytes:a().int().nonnegative(),pageCount:a().int().nonnegative(),pageSize:a().int().positive(),tables:S(Jg),copyMs:a().nonnegative(),verifyMs:a().nonnegative(),takenAt:a()}),Xg=Yg.extend({databaseId:B}),Zg=f({databaseId:B}),Qg=Yg.extend({livePath:u(),snapshotPath:u(),databaseId:B.optional()}),$g={name:`database-snapshot`,scope:`system`,mode:`singleton`,internal:!0,methods:{listDatabases:L(f({}),qg,{auth:`admin`}),writeSnapshot:L(Zg,Xg,{kind:`mutation`,auth:`admin`,timeoutMs:Kg})}},e_=f({subId:u(),displayName:u(),description:u().optional(),kind:u(),triggerSupported:C(),restoreSupported:C()}).extend({id:u(),addonId:u(),enabled:C(),retentionCount:a(),label:u().optional(),lastSuccessAt:a().optional(),lastSuccessSizeBytes:a().optional(),cron:u().optional(),nextRunAt:a().optional(),lastAttemptAt:a().optional(),lastError:u().optional()}),t_=f({scheme:u(),keyId:u()}),n_=f({enabled:C(),active:f({keyId:u(),publicKey:u(),createdAt:a()}).nullable(),keys:S(f({keyId:u(),createdAt:a(),retiredAt:a().nullable()})).readonly()}),r_=f({id:u(),filename:u(),createdAt:a(),sizeBytes:a(),label:u().optional(),locations:S(u()).readonly(),encryption:t_.optional(),databases:S(B).readonly().optional()}),i_=f({id:u(),destinationId:u().optional(),label:u().optional(),createdAt:a(),sizeBytes:a(),locations:S(u()).optional(),encryption:t_.optional()}),a_=f({path:u(),kind:x([`file`,`dir`,`symlink`]),sizeBytes:a(),mtime:a()}),o_=f({archiveVersion:g(1),createdAt:a(),dataDir:u(),locations:S(u()),entries:S(a_),totalBytes:a(),totalFiles:a(),sqliteSnapshots:S(Qg).optional(),omittedDatabases:S(B).optional()}),s_=f({name:u(),sizeBytes:a(),fileCount:a(),present:C()}),c_=x([`queued`,`running`,`succeeded`,`failed`,`cancelled`]),l_=x([`queued`,`building`,`uploading`,`done`]),u_=f({id:u(),state:c_,phase:l_,destinationIds:S(u()).readonly(),label:u().optional(),requestedAt:a(),startedAt:a().optional(),finishedAt:a().optional(),stagedBytes:a(),archiveSizeBytes:a().optional(),uploadedBytes:a(),completedDestinationIds:S(u()).readonly(),failedDestinationIds:S(u()).readonly(),error:u().optional(),queuePosition:a().int().min(1).optional()}),d_=f({runId:u(),queued:C(),joined:C(),cancelled:C(),entries:S(i_).readonly()}),f_=f({id:u(),label:u(),cron:u(),enabled:C(),locationIds:S(u()).readonly(),retentionCount:a().int().min(1).max(1e3),dataSources:S(u()).readonly().optional(),databases:S(B).readonly().optional(),lastAttemptAt:a().optional(),lastSuccessAt:a().optional(),lastError:u().optional(),nextRunAt:a().optional()}),p_={name:`backup`,scope:`system`,mode:`singleton`,methods:{listDestinations:L(v(),S(e_).readonly(),{auth:`admin`}),trigger:L(f({destinations:S(u()).optional(),locations:S(u()).optional(),label:u().optional(),retentionCount:a().int().min(1).max(1e3).optional(),databases:S(B).optional()}).optional(),d_,{kind:`mutation`,auth:`admin`}),listRuns:L(v(),S(u_).readonly(),{auth:`admin`}),cancel:L(f({runId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),list:L(v(),S(i_).readonly(),{auth:`admin`}),listLocations:L(v(),S(s_).readonly(),{auth:`admin`}),getEntries:L(f({destinationId:u(),backupId:u()}),o_.nullable(),{auth:`admin`}),restore:L(f({destinationId:u(),backupId:u(),locations:S(u()).optional(),backupSecretKey:u().optional()}),v(),{kind:`mutation`,auth:`admin`}),getEncryption:L(v(),n_,{auth:`admin`}),setupEncryption:L(f({}),f({keyId:u(),secretKey:u(),publicKey:u(),createdAt:a(),replacedKeyId:u().nullable()}),{kind:`mutation`,auth:`admin`}),disableEncryption:L(f({}),f({disabledKeyId:u().nullable()}),{kind:`mutation`,auth:`admin`}),checkBackupKey:L(f({backupSecretKey:u()}),f({valid:C(),keyId:u().nullable(),known:C(),active:C(),error:u().optional()}),{kind:`mutation`,auth:`admin`}),delete:L(f({destinationId:u(),backupId:u()}),v(),{kind:`mutation`,auth:`admin`}),listArchives:L(f({destinationId:u()}),S(r_).readonly(),{auth:`admin`}),upsertDestinationPolicy:L(f({locationId:u(),enabled:C(),retentionCount:a().int().min(1).max(1e3),label:u().optional()}),v(),{kind:`mutation`,auth:`admin`}),previewSchedule:L(f({cron:u(),count:a().int().min(1).max(20).optional()}),f({ok:C(),error:u().optional(),nextRuns:S(a()).readonly()})),listSchedules:L(v(),S(f_).readonly(),{auth:`admin`}),listAvailableDatabases:L(v(),f({answered:C(),databases:S(B).readonly()}),{auth:`admin`}),upsertSchedule:L(f({id:u().optional(),label:u(),cron:u(),enabled:C(),locationIds:S(u()).readonly(),retentionCount:a().int().min(1).max(1e3),dataSources:S(u()).readonly().optional(),databases:S(B).readonly().optional()}),f_,{kind:`mutation`,auth:`admin`}),deleteSchedule:L(f({id:u()}),v(),{kind:`mutation`,auth:`admin`})}},m_=x([`connected`,`disconnected`,`connecting`,`auth-failed`,`unreachable`,`error`]),h_=f({id:u(),addonId:u(),name:u(),kind:u(),status:m_,info:y(u(),s()),lastCheckedAt:a().nullable(),error:u().nullable()}),g_=f({brokerCount:a().int().nonnegative(),connectedCount:a().int().nonnegative()}),__=f({addonId:u(),kinds:S(f({kind:u(),label:u(),interactiveConnectPath:u().min(1).optional(),interactiveDisconnectPath:u().min(1).optional()}))}),v_=f({kind:u().optional()}),y_=f({id:u()}),b_=f({kind:u().min(1),name:u().min(1),id:u().min(1).optional(),settings:y(u(),s())}),x_=f({id:u()}),S_=f({id:u()}),C_=h(`ok`,[f({ok:g(!0),latencyMs:a().nonnegative()}),f({ok:g(!1),error:u()})]),w_=y(u(),s()),T_=f({kind:u()}),E_=f({kind:u(),settings:w_}),D_=h(`ok`,[f({ok:g(!0),latencyMs:a().nonnegative().optional()}).strict(),f({ok:g(!1),error:u()})]),O_=s().nullable(),k_=f({brokerId:u(),target:y(u(),s()),payload:s().optional()}),A_=f({brokerId:u(),filter:y(u(),s())}),j_=f({subscriptionId:u()}),M_=f({brokerId:u(),subscriptionId:u()}),N_=f({brokerId:u(),key:u()}),P_={name:`broker`,scope:`system`,mode:`collection`,providerKind:`broker`,status:{schema:g_,kind:`poll`},methods:{list:L(v_,S(h_)),get:L(y_,h_.nullable()),listProviders:L(v(),S(__),{auth:`admin`}),add:L(b_,x_,{kind:`mutation`,auth:`admin`}),remove:L(S_,v(),{kind:`mutation`,auth:`admin`}),testConnection:L(y_,C_,{kind:`mutation`,auth:`admin`}),getSettings:L(y_,w_.nullable(),{auth:`admin`}),setSettings:L(f({id:u(),settings:w_}),v(),{kind:`mutation`,auth:`admin`}),getBrokerConfig:L(y_,w_.nullable(),{auth:`admin`}),getSettingsSchema:L(T_,O_,{auth:`admin`}),testSettings:L(E_,D_,{kind:`mutation`,auth:`admin`}),publish:L(k_,s(),{kind:`mutation`,auth:`admin`}),subscribe:L(A_,j_,{kind:`mutation`,auth:`admin`}),unsubscribe:L(M_,v(),{kind:`mutation`,auth:`admin`}),getState:L(N_,s().nullable(),{auth:`admin`}),getStatus:L(v(),g_)}},F_={name:`camera-pipeline-config`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],exposesDeviceSettings:!0,methods:{}},I_=x([`webrtc`,`hls`,`mjpeg`,`rtsp`]),L_=x([`mp4`,`gif`]),R_=f({kind:L_,handle:u(),nodeId:u(),mime:u(),bytes:a().int(),width:a().int(),height:a().int()}),z_=f({fromTs:a(),toTs:a(),packets:a().int()}),B_=f({media:S(R_).readonly(),coverage:z_,profile:k,video:x([`copy`,`encode`])}),V_=f({brokerId:u(),url:u(),mutedUrl:u(),enabled:C(),codec:u().optional(),resolution:f({width:a().int().positive(),height:a().int().positive()}).optional()}),H_=f({sessionId:u(),remoteAddr:u(),userAgent:u().nullish(),playing:C(),muted:C(),connectedAt:a(),lastRtpAt:a(),bytesSent:a()}),U_=f({tag:u(),subscribedAt:a(),chunksDelivered:a()}),W_=x([`alexa`,`homekit`,`webrtc-browser`,`webrtc-mobile`,`webrtc-whep`,`rtsp-listen`,`derived-broker`,`recording`,`pipeline`,`snapshot`,`warmup`,`unknown`]),G_=f({kind:W_,label:u().optional(),media:x([`audio`,`video`,`both`]).optional(),targetCodec:u().optional(),transport:x([`passthrough`,`repacketize`,`transcode`]).optional(),remoteAddr:u().optional(),userAgent:u().optional(),userId:u().optional(),sessionId:u().optional(),extra:y(u(),u()).optional()}).readonly(),K_=f({id:u(),channel:x([`annexb`,`rtp`]),attribution:G_,subscribedAt:a(),packetsDelivered:a()}),q_=f({rtsp:S(H_).readonly(),audio:S(U_).readonly(),encoded:S(K_).readonly(),pipeClients:a(),encodedSubscribers:a()}),J_=f({deviceId:a().int().nonnegative(),viewers:a().int().positive()}),Y_=x([`reconnecting`,`sleeping`,`offline`,`disabled`,`waking`]),X_=x([`h264`,`h265`,`copy`]),Z_=x([`aac`,`opus`,`pcmu`,`copy`,`none`]),Q_=f({deviceId:a().int().nonnegative(),video:X_,audio:Z_.optional(),profile:k.optional(),targetResolution:f({width:a().int().positive(),height:a().int().positive()}).optional(),outputArgs:S(u()).optional(),audioEgress:C().optional(),hostname:u().optional(),tag:u().optional()}),$_=f({url:u(),sentryUrl:u().nullable().optional(),videoCodec:x([`H264`,`H265`]),audioCodec:u(),resolution:f({width:a().int().positive(),height:a().int().positive()}),transcoded:C(),encoder:u(),pipelineKey:u()}),ev=Zn.omit({inputArgs:!0,outputArgs:!0}),tv=x([`tight`,`relaxed`]),nv=f({deviceId:a().int().nonnegative(),source:h(`kind`,[f({kind:g(`profile`),profile:k}),f({kind:g(`cam-stream`),camStreamId:u().min(1)})]),encode:ev,rateControl:tv.optional(),bitstreamFilter:x([`dump_extra`,`h264_mp4toannexb`,`hevc_mp4toannexb`]).optional(),publishLocally:C().optional(),pixelFormat:x([`yuv420p`,`nv12`]).optional(),decodeHwAccel:x([`auto`,`none`,`videotoolbox`,`vaapi`,`qsv`,`cuda`]).optional(),hostname:u().optional(),tag:u().optional()}),rv=f({url:u(),pipelineKey:u(),videoCodec:x([`H264`,`H265`]),resolution:f({width:a().int().positive(),height:a().int().positive()}),transcoded:C(),encoder:u(),decodeHwAccel:u().nullable(),camStreamId:u().nullable()}),iv={name:`stream-broker`,scope:`system`,mode:`singleton`,exposesDeviceSettings:!0,methods:{reportStreamSignal:L(f({deviceId:a().int().nonnegative(),code:u().min(1),at:a().optional()}),f({accepted:C(),reason:x([`woke`,`hold-extended`,`not-enabled`,`no-consumer`,`unknown-code`])}),{kind:`mutation`}),publishCameraStream:L(f({deviceId:a().int().nonnegative(),camStreamId:u().min(1),kind:Ys,url:u().optional(),codec:u().optional(),resolution:Xs.optional(),fps:a().positive().optional(),label:u().optional(),deviceFeatures:S(u()).optional(),autoEligible:C().optional(),profileHint:k.optional(),metadata:y(u(),s()).optional(),sourceCamStreamId:u().min(1).optional(),encodeProfile:Zn.optional()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),retractCameraStream:L(f({deviceId:a().int().nonnegative(),camStreamId:u().min(1)}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),assignProfile:L(f({deviceId:a().int().nonnegative(),profile:k,camStreamId:u().min(1)}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),unassignProfile:L(f({deviceId:a().int().nonnegative(),profile:k}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),forgetDeviceHardware:L(f({deviceId:a().int().nonnegative()}),f({derivedStreamsDeleted:S(u()).readonly(),assignmentsPurged:C(),probeSnapshotsDropped:a().int().nonnegative(),rtspTokenRowsDeleted:a().int().nonnegative()}),{kind:`mutation`,auth:`admin`}),renderPreBufferClip:L(f({deviceId:a(),profile:k.optional(),aroundMs:a(),preRollSec:a().min(0).max(20).default(3),postRollSec:a().min(0).max(20).default(5),format:x([`gif`,`mp4`]).default(`gif`),maxWidth:a().int().min(120).max(1920).default(480),fps:a().int().min(1).max(15).default(5),speed:a().min(1).max(8).default(2)}),f({base64:u(),mime:u(),bytes:a().int(),profile:k,durationMs:a()}),{kind:`mutation`,auth:`admin`}),produceEventMedia:L(f({deviceId:a(),profile:k.optional(),aroundMs:a(),preSeconds:a().min(0).max(20).default(4),postSeconds:a().min(0).max(20).default(6),kinds:S(L_).min(1).default([`mp4`]),gifMaxWidth:a().int().min(120).max(1280).default(640),gifFps:a().int().min(1).max(15).default(12),gifSpeed:a().min(1).max(8).default(4),speed:a().min(1).max(8).default(4)}),B_,{kind:`mutation`,auth:`admin`}),fetchEventMedia:L(f({handle:u()}),f({base64:u(),mime:u(),bytes:a().int()}).nullable(),{kind:`mutation`,auth:`admin`}),listAllCameraStreams:L(v(),S(Zs).readonly()),listAllProfileSlots:L(v(),S($s).readonly()),getBrokerStats:L(f({brokerId:u()}),fc),probeStream:L(f({brokerId:u()}),f({probed:C(),summary:u()}),{kind:`mutation`,auth:`admin`}),listClients:L(f({brokerId:u()}),q_),getLiveViewerCounts:L(v(),S(J_).readonly()),killClient:L(f({brokerId:u(),channel:x([`rtsp`,`audio`]),handle:u()}),f({killed:C()}),{kind:`mutation`,auth:`admin`}),restartProfile:L(f({deviceId:a().int().nonnegative(),profile:k}),f({success:C()}),{kind:`mutation`,auth:`admin`}),getStreamUrl:L(f({streamId:u(),format:I_}),f({url:u()})),getStreamWithCodec:L(Q_,$_,{kind:`mutation`,auth:`admin`}),releaseStreamWithCodec:L(f({pipelineKey:u()}),f({released:C(),refcount:a().int().nonnegative()}),{kind:`mutation`,auth:`admin`}),acquireEgressTranscode:L(nv,rv,{kind:`mutation`,auth:`admin`}),releaseEgressTranscode:L(f({pipelineKey:u()}),f({released:C(),refcount:a().int().nonnegative()}),{kind:`mutation`,auth:`admin`}),subscribeAudioChunks:L(lc,uc,{kind:`mutation`}),pullAudioChunks:L(f({subscriptionId:u(),maxCount:a().int().positive().default(8)}),S(cc).readonly()),unsubscribeAudioChunks:L(f({subscriptionId:u()}),f({released:C()}),{kind:`mutation`}),setPreBufferDuration:L(f({brokerId:u(),seconds:a().min(0).max(30)}),v(),{kind:`mutation`,auth:`admin`}),getPreBufferInfo:L(f({brokerId:u()}),f({configuredSec:a(),bufferedMs:a(),packetCount:a()})),getRtspPort:L(v(),a()),getAllRtspEntries:L(f({hostname:u().optional()}),S(V_).readonly()),getRtspEntry:L(f({brokerId:u(),hostname:u().optional()}),V_.nullable()),regenerateRtspToken:L(f({brokerId:u()}),u().nullable(),{kind:`mutation`,auth:`admin`}),setRtspEnabled:L(f({brokerId:u(),enabled:C()}),v(),{kind:`mutation`,auth:`admin`}),isRtspEnabled:L(f({brokerId:u()}),C()),getDeviceAudioMute:L(f({deviceId:a().int()}),f({muted:C(),appliedBrokers:a().int().nonnegative()})),setDeviceAudioMute:L(f({deviceId:a().int(),muted:C()}),f({muted:C(),appliedBrokers:a().int().nonnegative()}),{kind:`mutation`,auth:`admin`})},events:{onCamStreamDemand:xh(f({deviceId:a().int().nonnegative(),camStreamId:u(),profile:k})),onCamStreamIdle:xh(f({deviceId:a().int().nonnegative(),camStreamId:u()})),onRequestStreamSourceRefresh:xh(f({deviceId:a().int().nonnegative(),camStreamId:u(),brokerId:u()}))}},av=x([`h264`,`h265`,`hevc`,`av1`,`mjpeg`,`vp8`,`vp9`]),ov=f({acceptCodecs:S(av).readonly().optional(),minHeight:a().int().positive().optional(),maxHeight:a().int().positive().optional(),minWidth:a().int().positive().optional(),excludeDerived:C().optional(),requireSiblingCodec:S(av).readonly().optional(),allowTranscode:C().optional(),requireProfileBound:C().optional()}).readonly(),sv=f({preferredProviders:S(u()).readonly().optional(),resolutionPreference:x([`highest`,`lowest`]).optional(),targetHeight:a().int().positive().optional()}).readonly(),cv=f({camStreamId:u(),codec:u().optional(),resolution:Xs.optional(),transcodes:C(),reason:u(),profile:k.optional(),brokerId:u().optional(),url:u().optional(),fps:a().positive().optional(),fpsSource:x([`published`,`measured`]).optional()}),lv={name:`camera-streams`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],methods:{getCameraStreams:L(f({deviceId:a().int().nonnegative()}),S(Zs).readonly()),getBrokerStreams:L(f({deviceId:a().int().nonnegative()}),S($s).readonly()),getRtspEntries:L(f({deviceId:a().int().nonnegative(),hostname:u().optional()}),S(V_).readonly()),getProfileRtspEntries:L(f({deviceId:a().int().nonnegative(),hostname:u().optional()}),S(pc).readonly()),pickStream:L(f({deviceId:a().int().nonnegative(),requirements:ov,preferences:sv.optional()}),cv.nullable())},events:{onCamStreamsChanged:xh(f({deviceId:a().int().nonnegative(),camStreams:S(Zs).readonly()})),onProfileSlotsChanged:xh(f({deviceId:a().int().nonnegative(),profileSlots:S($s).readonly()}))},runtimeState:f({online:C(),slotStatuses:f({high:Qs.optional(),mid:Qs.optional(),low:Qs.optional()}),slotErrors:f({high:u().optional(),mid:u().optional(),low:u().optional()}),lastChangedAt:a()}),durability:`session`,history:`none`};function uv(e){let t=fh(e).kind;return t===`collection`?!0:t===`skip`&&e.mode===`collection`}function dv(e){let t=e._def;return e.constructor?.name===`ZodVoid`||t?.type===`void`||t?.typeName===`ZodVoid`}function fv(e){let t=e._def;return e.constructor?.name===`ZodObject`||t?.type===`object`||t?.typeName===`ZodObject`}function pv(e){let t=e;for(let e=0;e<8&&t!=null;e+=1){let e=t._def,n=t.constructor?.name;if(n===`ZodArray`||e?.type===`array`)return!0;if(!(n===`ZodReadonly`||e?.type===`readonly`||n===`ZodOptional`||e?.type===`optional`||n===`ZodNullable`||e?.type===`nullable`||n===`ZodDefault`||e?.type==="default")||e?.innerType==null)return!1;t=e.innerType}return!1}function mv(e,t){if(e===void 0||e.mode!==`collection`)return!1;let n=vh(e)[t];return n!==void 0&&n.kind!==`subscription`&&pv(n.output)}function hv(e){let t=e.loose;return typeof t==`function`?t.call(e):e}function gv(e){if(!(typeof e!=`object`||!e)){for(let t of Object.values(e))if(typeof t==`object`&&t){let e=t.addonId;if(typeof e==`string`)return e}}}function _v(e){if(e===null||typeof e!=`object`&&typeof e!=`function`)return!1;let t=e.shape??yv(e._def?.shape);return typeof t==`object`&&!!t&&Object.prototype.hasOwnProperty.call(t,`addonId`)}function vv(e){if(e===null||typeof e!=`object`&&typeof e!=`function`)return!1;let t=e.shape??yv(e._def?.shape);if(typeof t!=`object`||!t)return!1;let n=t.deviceId;if(n==null)return!1;let r=n._def;return n.constructor?.name===`ZodNumber`||r?.type===`number`||r?.typeName===`ZodNumber`}function yv(e){return typeof e==`function`?e():e}function bv(e,t){return t.auth===void 0?e.internal===!0?`admin`:`protected`:t.auth}function xv(e){return e===`public`?`public`:e===`admin`||e===`superAdmin`?`admin`:`protected`}function Sv(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}var Cv=`composer`,wv=`customize:`,Tv=`composed-`,Ev=2e4,Dv=f({addonId:u().min(1),stableId:u().min(1)}),Ov=f({source:Dv,cap:u().min(1),fieldPath:u().min(1)}),kv=Ov.extend({kind:g(`from`)}),Av=f({kind:g(`literal`),value:p([u(),a(),C(),ae()])}),jv=h(`kind`,[kv,Av]),Mv=f({kind:g(`expression`),expr:u().min(1).max(tm),bindings:y(u().regex(nm),jv)}).superRefine((e,t)=>{let n=Im(e);n!==null&&t.addIssue({code:`custom`,message:n,path:[`expr`]})}),Nv=f({kind:g(`code`),code:u().min(1).max(Ev)}),Pv=h(`kind`,[kv,Mv,Nv]),Fv=f({kind:g(`forward`),source:Dv,cap:u().min(1),method:u().min(1)}),Iv=h(`kind`,[Fv,Nv]),Lv=/^[a-z0-9][a-z0-9-]{0,47}$/,Rv=`items`,zv=f({label:u().min(1).max(80),fields:y(u().min(1),Pv)}),Bv=f({kind:g(`fields`),cap:u().min(1),enabled:C().optional(),fields:y(u().min(1),Pv).refine(e=>Object.keys(e).length<=32,{message:`at most 32 fields per capability`}),items:y(u().regex(Lv),zv).refine(e=>Object.keys(e).length<=16,{message:`at most 16 items`}).optional(),commands:y(u().min(1),Iv).optional()}),Vv=f({kind:g(`passthrough`),cap:u().min(1),enabled:C().optional(),source:Dv}),Hv=h(`kind`,[Bv,Vv]);function Uv(e){return e.enabled!==!1}var Wv=f({kind:g(`new`),type:x(R),role:x(z).optional()}),Gv=f({kind:g(`existing`),device:Dv}),Kv=h(`kind`,[Wv,Gv]),qv=f({target:Kv,features:S(Hv).min(1).max(16)}).superRefine((e,t)=>{let n=new Set;e.features.forEach((e,r)=>{n.has(e.cap)&&t.addIssue({code:`custom`,message:`capability \`${e.cap}\` is composed twice — one feature per capability`,path:[`features`,r,`cap`]}),n.add(e.cap)})});function V(e){return`${e.addonId}/${e.stableId}`}function Jv(e,t){return`${V(e)}#${t}`}function Yv(e){return`${Jv(e.source,e.cap)}.${e.fieldPath}`}function Xv(e){return`${Tv}${e}`}function Zv(e){return{addonId:Cv,stableId:Xv(e)}}function Qv(e){switch(e.kind){case`from`:return[{source:e.source,cap:e.cap,fieldPath:e.fieldPath}];case`expression`:return Object.values(e.bindings).flatMap(e=>e.kind===`from`?[{source:e.source,cap:e.cap,fieldPath:e.fieldPath}]:[]);case`code`:return[]}}function $v(e,t,n){return`${e}[${t}].${n}`}function ey(e,t=Rv){return[...Object.entries(e.fields).map(([e,t])=>({fieldPath:e,source:t})),...Object.entries(e.items??{}).flatMap(([e,n])=>Object.entries(n.fields).map(([n,r])=>({fieldPath:$v(t,e,n),source:r})))]}function ty(e){return ey(e).map(e=>e.source)}function ny(e){let t=e;for(;t instanceof fe||t instanceof me||t instanceof te;)t=t.unwrap();return t}function ry(e){let t=ny(e);return t instanceof ue?{kind:`enum`,enumValues:t.options}:t instanceof ne?{kind:`number`}:t instanceof re?{kind:`string`}:t instanceof oe?{kind:`boolean`}:null}function iy(e,t=``){let n=ny(e);if(!(n instanceof ce))return[];let r=[],i=n.shape;for(let[e,n]of Object.entries(i)){let i=t?`${t}.${e}`:e,a=ny(n);if(a instanceof ce){r.push(...iy(a,i));continue}let o=ry(n);o&&r.push({path:i,kind:o.kind,...o.enumValues?{enumValues:o.enumValues}:{}})}return r}function ay(e){return iy(e.itemSchema).filter(t=>t.path!==e.keyField).map(e=>({...e,item:!0}))}function oy(e,t){let n=e;for(let e of t.split(`.`)){let t=ny(n);if(!(t instanceof ce))return null;let r=t.shape[e];if(!(r instanceof ie))return null;n=r}return n}function sy(e,t){let n=iy(e).find(e=>e.path===t);if(n===void 0)return null;let r=oy(e,t);return r===null?null:{path:t,kind:n.kind,nullable:r.safeParse(null).success,required:!r.safeParse(void 0).success,...n.enumValues===void 0?{}:{enumValues:n.enumValues}}}function cy(e){return new Map(iy(e).filter(e=>!e.path.includes(`.`)).flatMap(t=>{let n=sy(e,t.path);return n===null?[]:[[t.path,n]]}))}function ly(e){let t=ny(e);return t instanceof ce?Object.entries(t.shape).flatMap(([e,t])=>t instanceof ie&&!t.safeParse(void 0).success?[e]:[]):[]}function uy(e,t){let n=t.split(`.`);return n.slice(0,-1).flatMap((t,r)=>{let i=n.slice(0,r+1).join(`.`),a=oy(e,i);return a!==null&&a.safeParse(void 0).success?[i]:[]})}var dy={"doorbell.onPressed":w.DoorbellOnPressed},fy=dy,py=f({featureIndex:a().int().nonnegative(),cap:u(),eventName:u(),category:x(w),stateField:u(),fieldKey:u()});function my(e,t,n){return{code:e,path:t,message:n}}function hy(e){return e.issues.map(e=>`${e.path.length===0?`payload`:e.path.join(`.`)}: ${e.message}`).join(`; `)}function gy(e,t,n){if(t.mode===`replace`)return{problems:[],events:[]};let r=[],i=[];for(let[a,o]of Object.entries(e.events??{})){let s=o.fromState;if(s===void 0)continue;let c=`features[${t.featureIndex}].fields.${s.field}`,l=e.runtimeState?sy(e.runtimeState,s.field):null;if(l===null){r.push(my(`unknown-field`,c,`\`${e.name}.${a}\` derives from missing state field \`${s.field}\``));continue}if(l.kind!==`number`){r.push(my(`kind-mismatch`,c,`\`${e.name}.${a}\` needs a numeric state field; \`${s.field}\` is ${l.kind}`));continue}let u=`${e.name}.${a}`,d=fy[u];if(d===void 0){r.push(my(`not-composable`,`features[${t.featureIndex}].cap`,`\`${u}\` has no explicit composition event-category mapping`));continue}let f=o.data.safeParse({deviceId:1,timestamp:1});if(!f.success){r.push(my(`not-composable`,`features[${t.featureIndex}].cap`,`\`${u}\` cannot be derived from { deviceId, timestamp }: ${hy(f.error)}`));continue}let p=n.find(n=>n.featureIndex===t.featureIndex&&n.cap===e.name&&n.path===s.field&&n.item===void 0);if(p===void 0){r.push(my(`unknown-field`,c,`\`${u}\` derives from \`${s.field}\`, but that field is not composed`));continue}i.push({featureIndex:t.featureIndex,cap:e.name,eventName:a,category:d,stateField:s.field,fieldKey:`${p.cap}.${p.path}`})}return{problems:r,events:i}}var _y=x([`reserved-variant`,`unknown-capability`,`not-composable`,`wrong-device-type`,`has-commands`,`unknown-field`,`nested-field`,`missing-field`,`kind-mismatch`,`may-be-null`,`source-missing`,`source-unreadable`,`source-capability-missing`,`source-field-unknown`,`expression-invalid`,`cycle`,`duplicate-target`,`not-item-array`,`item-field-reserved`,`target-missing`,`target-unreadable`,`not-replaceable`]),vy=f({code:_y,path:u(),message:u()}),yy=x([`string`,`number`,`boolean`,`enum`]),by=x([`null`,`offline`,`unknown`,`release`]),xy=x([`derived`,`clock`,`constant`,`accumulator`]),Sy=f({arrayPath:u(),key:u(),label:u()}),Cy=f({cap:u(),path:u(),item:Sy.optional(),featureIndex:a().int().nonnegative(),kind:yy,nullable:C(),required:C(),unavailable:by,role:xy,source:Pv,reads:S(Ov)});function wy(e){let t=e.item===void 0?e.path:$v(e.item.arrayPath,e.item.key,e.path);return`${e.cap}.${t}`}var Ty=x([`new`,`add`,`replace`]),Ey=f({featureIndex:a().int().nonnegative(),cap:u(),mode:Ty}),Dy=f({ok:C(),problems:S(vy),fields:S(Cy),features:S(Ey),events:S(py)}),Oy=x([`stopped`,`starting`,`running`,`degraded`,`failed`]),ky=x([`fresh`,`stale`,`unavailable`]),Ay=f({cap:u(),path:u(),item:Sy.optional(),state:ky,value:p([u(),a(),C(),ae()]),reason:u().optional()}),jy=f({blockId:u(),deviceId:a().nullable(),status:Oy,reason:u().optional(),fields:S(Ay)}),My=Cv,Ny=f({id:u().min(1),name:u().min(1).max(120),enabled:C(),updatedAt:a(),composition:qv}),Py=f({id:u().min(1),name:u().nullable(),error:u()}),Fy=f({integrationId:u().nullable(),storeLoaded:C(),blocks:S(Ny),restartBlockIds:S(u()),unreadableBlocks:S(Py)}),Iy=f({blockId:u(),status:Oy,reason:u().optional()}),Ly=f({blocks:S(Iy),acted:C()}),Ry={name:`composer`,scope:`system`,mode:`singleton`,internal:!0,methods:{applyBlocks:L(Fy,Ly,{kind:`mutation`,auth:`admin`}),getStates:L(f({blockIds:S(u())}),f({states:S(jy)}),{auth:`admin`})}};function H(e,t,n){return{code:e,path:t,message:n}}function U(...e){return{problems:e,fields:[],features:[],events:[]}}function zy(e){let t=e.item===void 0?`fields`:`items.${e.item.key}.fields`;return`features[${e.featureIndex}].${t}.${e.path}`}var W={kind:`fixed`,result:[`number`]},By={kind:`fixed`,result:[`boolean`]},Vy=Object.freeze({min:W,max:W,abs:W,floor:W,ceil:W,sqrt:W,round:W,pow:W,clamp:W,avg:W,sum:W,age:W,convert:W,coalesce:{kind:`coalesce`},any:By,all:By,within:By,latest:{kind:`fixed`,result:[`number`,`null`]},number:{kind:`fixed`,result:[`number`,`null`]},rose:{kind:`fixed`,result:[`number`,`null`]},count:W}),Hy=class extends Error{};function Uy(e){return e===null?`null`:typeof e==`number`?`number`:typeof e==`string`?`string`:`boolean`}function Wy(e){return new Set([e])}function Gy(...e){return new Set(e.flatMap(e=>[...e]))}function Ky(e){return new Set([...e].filter(e=>e!==`null`))}function qy(e,t,n){if(e===`+`){let e=[...t,...n];return e.every(e=>e===`string`)?Wy(`string`):e.every(e=>e===`number`)?Wy(`number`):new Set([`number`,`string`])}return Wy(e===`-`||e===`*`||e===`/`||e===`%`?`number`:`boolean`)}function Jy(e){return e.minArgs===e.maxArgs?`exactly ${e.minArgs}`:e.maxArgs===1/0?`at least ${e.minArgs}`:`${e.minArgs}–${e.maxArgs}`}function Yy(e,t){let n=$p[e];if(n!==void 0&&(t.length<n.minArgs||t.length>n.maxArgs))throw new Hy(`${e}: wrong number of arguments (${t.length}); expected ${Jy(n)}`);let r=Vy[e];if(r===void 0)throw new Hy(`no result-kind rule for builtin '${e}'`);if(r.kind===`fixed`)return new Set(r.result);let i=Gy(...t.map(Ky));return t.every(e=>e.has(`null`))?Gy(i,Wy(`null`)):i}function Xy(e,t){switch(e.kind){case`literal`:return Wy(Uy(e.value));case`identifier`:{if(e.name===`now`)return Wy(`number`);let n=t.get(e.name);if(n===void 0)throw new Hy(`unbound identifier '${e.name}'`);return n}case`unary`:return Wy(e.op===`!`?`boolean`:`number`);case`binary`:return qy(e.op,Xy(e.left,t),Xy(e.right,t));case`logical`:return Gy(Xy(e.left,t),Xy(e.right,t));case`conditional`:return Gy(Xy(e.consequent,t),Xy(e.alternate,t));case`call`:return Yy(e.callee,e.args.map(e=>Xy(e,t)))}}function Zy(e,t){switch(e.kind){case`literal`:case`identifier`:return!1;case`unary`:return Zy(e.operand,t);case`binary`:case`logical`:return Zy(e.left,t)||Zy(e.right,t);case`conditional`:return Zy(e.test,t)||Zy(e.consequent,t)||Zy(e.alternate,t);case`call`:return e.callee===t||e.args.some(e=>Zy(e,t))}}function Qy(e,t){let n=bm(e);return n.ok&&Zy(n.parsed.ast,t)}function $y(e){let t=bm(e.expr);if(!t.ok)return{ok:!1,error:t.error};try{return{ok:!0,kinds:Xy(t.parsed.ast,e.bindingKinds)}}catch(e){if(e instanceof Hy)return{ok:!1,error:e.message};throw e}}function eb(e,t){let n=t(e.cap),r=n?.runtimeState??n?.status?.schema;if(n===null||r===void 0)return{ok:!1,code:`source-field-unknown`,message:`no capability \`${e.cap}\` with state to read`};let i=sy(r,e.fieldPath);if(i===null)return{ok:!1,code:`source-field-unknown`,message:`\`${e.cap}\` has no field \`${e.fieldPath}\``};let a=i.kind===`enum`?`string`:i.kind;return{ok:!0,kinds:new Set(i.nullable?[a,`null`]:[a])}}function tb(e,t){if(e.kind===`from`)return eb(e,t);if(e.kind===`code`)return{ok:!1,code:`reserved-variant`,message:`code fields arrive in slice 4`};let n=new Map;for(let[r,i]of Object.entries(e.bindings)){if(i.kind===`literal`){n.set(r,new Set([Uy(i.value)]));continue}let e=eb(i,t);if(!e.ok)return{...e,message:`binding \`${r}\`: ${e.message}`};n.set(r,e.kinds)}let r=$y({expr:e.expr,bindingKinds:n});return r.ok?{ok:!0,kinds:r.kinds}:{ok:!1,code:`expression-invalid`,message:r.error}}function nb(e,t,n,r){let i=t.kind===`enum`?`string`:t.kind,a=[...n].filter(e=>e!==`null`&&e!==i),o=[];return a.length>0&&o.push(H(`kind-mismatch`,r,`\`${e}.${t.path}\` is a ${t.kind}; this source can produce ${a.join(` or `)}`)),n.has(`null`)&&!t.nullable&&o.push(H(`may-be-null`,r,`\`${e}.${t.path}\` cannot be null and this source can produce null — wrap it in coalesce(…) or pick a non-null source`)),o}function rb(e){if(e.kind!==`expression`)return null;let t=bm(e.expr);if(!t.ok)return null;let n=t.parsed.ast;return n.kind===`literal`&&typeof n.value==`string`?n.value:null}function ib(e,t,n,r){if(t.kind!==`enum`||t.enumValues===void 0)return null;let i=rb(n);if(i===null||t.enumValues.includes(i))return null;let a=t.enumValues.map(e=>`\`${e}\``).join(`, `);return H(`kind-mismatch`,r,`\`${e}.${t.path}\` accepts only ${a}; this source is the literal \`${i}\``)}function ab(e){if(e.kind!==`expression`)return`derived`;if(Qy(e.expr,`count`))return`accumulator`;if(Qv(e).length>0)return`derived`;let t=bm(e.expr);return t.ok&&t.parsed.identifiers.has(`now`)?`clock`:`constant`}function ob(e,t,n,r,i){return n===`replace`&&(t===`derived`||t===`accumulator`)?{ok:!0,unavailable:`release`}:n===`new`||t!==`derived`?{ok:!0,unavailable:e.nullable?`null`:`offline`}:e.nullable?{ok:!0,unavailable:`null`}:e.enumValues?.includes(`unknown`)===!0?{ok:!0,unavailable:`unknown`}:{ok:!1,problem:H(`not-replaceable`,i,`\`${r}.${e.path}\` reads a source but can say neither null nor 'unknown', and an ADDED capability has no native reading to fall back to`)}}var sb={resettable:!1};function cb(e){return new Set([e.keyField,...e.labelField===void 0?[]:[e.labelField],...Object.keys(sb)])}function dee(e,t,n){let r=sy(e.itemSchema,t);return r===null||!r.required?!1:uy(e.itemSchema,t).every(e=>n.some(t=>t.startsWith(`${e}.`)))}function fee({capName:e,itemArray:t,reserved:n},r,i){let a=Object.keys(r.fields);return iy(t.itemSchema).flatMap(o=>{if(n.has(o.path)||o.path in r.fields||!dee(t,o.path,a))return[];let s=sy(t.itemSchema,o.path);return s===null||s.nullable?[]:[H(`missing-field`,`${i}.fields.${o.path}`,`\`${e}.${t.path}[].${o.path}\` is required and has no source`)]})}function pee(e,t){let{capName:n,itemArray:r,featureIndex:i,lookupCap:a}=e,{key:o,label:s,path:c,source:l}=t,u=`features[${i}].items.${o}.fields.${c}`;if(e.reserved.has(c))return U(H(`item-field-reserved`,u,`\`${n}.${r.path}[].${c}\` is set by the composer itself — it takes no source`));let d=sy(r.itemSchema,c);if(d===null)return U(H(`unknown-field`,u,`a \`${n}\` item has no field \`${c}\``));let f=tb(l,a);if(!f.ok)return U(H(f.code,u,f.message));let p=ab(l),m=ob(d,p,e.mode,n,u);if(!m.ok)return U(m.problem);let h={cap:n,path:c,item:{arrayPath:r.path,key:o,label:s},featureIndex:i,kind:d.kind,nullable:d.nullable,required:d.required,unavailable:m.unavailable,role:p,source:l,reads:[...Qv(l)]},g=ib(n,d,l,u);return{problems:[...nb(n,d,f.kinds,u),...g===null?[]:[g]],fields:[h],features:[],events:[]}}function lb(e,t,n,r,i=`new`){let a=`features[${n}].items`,o=e.status?.itemArray;if(o===void 0)return U(H(`not-item-array`,a,`\`${e.name}\` has no item array — it takes no \`items\``));if(o.path!==`items`)return U(H(`not-item-array`,a,`\`${e.name}\`'s item array is at \`${o.path}\`, not \`${Rv}\` — not composable yet`));let s={capName:e.name,itemArray:o,reserved:cb(o),featureIndex:n,lookupCap:r,mode:i},c=Object.entries(t.items??{}).flatMap(([e,t])=>[{problems:fee(s,t,`${a}.${e}`),fields:[],features:[],events:[]},...Object.entries(t.fields).map(([n,r])=>pee(s,{key:e,label:t.label,path:n,source:r}))]);return{problems:c.flatMap(e=>e.problems),fields:c.flatMap(e=>e.fields),features:[],events:[]}}var ub=class extends Error{};function db(e){return new Set(e.composition.features.flatMap(e=>!Uv(e)||e.kind!==`fields`?[]:ey(e).map(({fieldPath:t})=>`${e.cap}.${t}`)))}function fb(e,t,n){if(V(n.source)!==V(e.target))return!0;let r=`${n.cap}.${n.fieldPath}`;return t.has(r)&&e.replaced?.has(r)!==!0}function pb(e){let t=db(e);return e.composition.features.flatMap(n=>!Uv(n)||n.kind!==`fields`?[]:ey(n).map(({fieldPath:r,source:i})=>[Yv({source:e.target,cap:n.cap,fieldPath:r}),Qv(i).filter(n=>fb(e,t,n)).map(Yv)]))}function mb(e,t){let n=V(e.target),r=new Map;for(let i of t){if(i.blockId===e.blockId)continue;let t=V(i.target);if(t===n)throw new ub(`block \`${i.blockId}\` and block \`${e.blockId}\` both target device \`${t}\` — one composition per device; delete or edit the existing one`);let a=r.get(t);if(a!==void 0)throw new ub(`two stored compositions (\`${a.blockId}\`, \`${i.blockId}\`) both target device \`${t}\` — refusing to build the field graph`);r.set(t,i)}return[...r.values(),e]}function hb(e,t){let n=mb(e,t).flatMap(pb);return new Map(n)}function gb(e,t){let n=hb(e,t),r=new Map,i=new Map,a=(e,t)=>{let o=r.get(e);if(o!==`done`){if(o===`visiting`){let n=[...t.slice(t.indexOf(e)),e],r=[...new Set(n)].toSorted().join(`|`);i.has(r)||i.set(r,{path:n});return}r.set(e,`visiting`);for(let r of n.get(e)??[])a(r,[...t,e]);r.set(e,`done`)}};for(let e of n.keys())a(e,[]);return[...i.values()]}function _b(e){let t=new Map,n=new Map,r=new Set,i=[],a=[],o=s=>{t.set(s,t.size),n.set(s,t.get(s)??0),i.push(s),r.add(s);for(let i of e.get(s)??[])t.has(i)?r.has(i)&&n.set(s,Math.min(n.get(s)??0,t.get(i)??0)):(o(i),n.set(s,Math.min(n.get(s)??0,n.get(i)??0)));if(n.get(s)!==t.get(s))return;let c=[];for(let e=i.pop();e!==void 0&&(r.delete(e),c.push(e),e!==s);e=i.pop());a.push(c)};for(let n of e.keys())t.has(n)||o(n);return a}function vb(e,t,n){let r=new Map,i=[e];for(let a=0;a<i.length;a+=1){let o=i[a];if(o===void 0)break;for(let a of n.get(o)??[]){if(a===e){let t=[];for(let n=o;n!==void 0&&n!==e;n=r.get(n))t.push(n);return[e,...t.reverse(),e]}!t.has(a)||r.has(a)||(r.set(a,o),i.push(a))}}return[e,e]}function yb(e,t){let n=hb(e,t),r=`${V(e.target)}#`;return _b(n).flatMap(e=>{let t=e.find(e=>e.startsWith(r));if(t===void 0)return[];let i=new Set(e),a=e.length===1&&(n.get(t)??[]).includes(t);return e.length===1&&!a?[]:[{path:vb(t,i,n),component:i}]})}function bb(e){let t=new Map(e.map(e=>[e.name,e]));return e=>t.get(e)??null}var xb=new Set([`device-status`,`feature-probe`]),Sb={addonId:Cv,stableId:`${Tv}(unsaved)`},Cb=`(unsaved)`;function wb(e,t,n){let r=n(e.cap);if(r===null)return H(`unknown-capability`,`${t}.cap`,`no capability is named \`${e.cap}\``);if(xb.has(r.name))return H(`not-composable`,`${t}.cap`,`\`${r.name}\` is registered by every device itself — it cannot be composed`);let i=r.runtimeState;return r.scope!==`device`||i===void 0?H(`not-composable`,`${t}.cap`,`\`${r.name}\` has no per-device state to compose`):{def:r,state:i,fields:cy(i)}}function Tb({def:e,state:t,fields:n},r,i,a){let o=[];e.deviceTypes!==void 0&&!e.deviceTypes.includes(a)&&o.push(H(`wrong-device-type`,`${i}.cap`,`\`${e.name}\` is not offered on a \`${a}\` device (it allows ${e.deviceTypes.join(`, `)})`));let s=Object.entries(e.methods).filter(([t,n])=>n.systemOnly!==!0&&e.composedMethods?.[t]===void 0).map(([e])=>`\`${e}\``);s.length>0&&o.push(H(`has-commands`,`${i}.cap`,`\`${e.name}\` has ${s.join(`, `)}, which a composed device cannot serve until commands arrive (slice 3)`));let c=r.items===void 0?null:e.status?.itemArray?.path??null;for(let a of ly(t))a!==c&&(n.has(a)?a in r.fields||o.push(H(`missing-field`,`${i}.fields.${a}`,`\`${e.name}.${a}\` is required and has no source`)):o.push(H(`not-composable`,`${i}.fields`,`\`${e.name}.${a}\` is not a scalar — nested fields arrive in a later slice`)));return o}function Eb({def:e,fields:t},n,r,i){let{featureIndex:a,path:o,source:s}=n,c=`features[${a}].fields.${o}`;if(o.includes(`.`))return U(H(`nested-field`,c,`\`${o}\` is nested — nested fields arrive in a later slice`));let l=t.get(o);if(l===void 0)return U(H(`unknown-field`,c,`\`${e.name}\` has no field \`${o}\``));let u=tb(s,i);if(!u.ok)return U(H(u.code,c,u.message));let d=ab(s),f=ob(l,d,r,e.name,c);if(!f.ok)return U(f.problem);let p={cap:e.name,path:o,featureIndex:a,kind:l.kind,nullable:l.nullable,required:l.required,unavailable:f.unavailable,role:d,source:s,reads:[...Qv(s)]},m=ib(e.name,l,s,c);return{problems:[...nb(e.name,l,u.kinds,c),...m===null?[]:[m]],fields:[p],features:[],events:[]}}function Db(e,t,n,r){let i=`features[${t}]`,a=wb(e,i,r);if(`code`in a)return U(a);let o=n.mode===`replace`?[]:[...Tb(a,e,i,n.deviceType)];e.commands!==void 0&&Object.keys(e.commands).length>0&&o.push(H(`reserved-variant`,`${i}.commands`,"commands (`forward`) arrive in slice 3"));let s=Object.entries(e.fields).map(([e,i])=>Eb(a,{featureIndex:t,path:e,source:i},n.mode,r)),c=e.items===void 0?[]:[lb(a.def,e,t,r,n.mode)],l=[...s,...c],u=l.flatMap(e=>e.fields),d={featureIndex:t,cap:a.def.name,mode:n.mode},f=gy(a.def,d,u);return{problems:[...o,...l.flatMap(e=>e.problems),...f.problems],fields:u,features:[d],events:f.events}}function Ob(e,t){let n=e.nativeCaps.get(t);return n!==void 0&&n!==`composer`}function kb(e,t){if(e.target.kind===`new`)return{kind:`new`,type:e.target.type};let n=V(e.target.device);return t===void 0?H(`target-unreadable`,`target`,`target device \`${n}\` was not read — the save is refused rather than stored unchecked`):t.kind===`absent`?H(`target-missing`,`target`,`target device \`${n}\` does not exist`):t.kind===`unreadable`?H(`target-unreadable`,`target`,`could not read target device \`${n}\` (${t.error}) — the save is refused rather than stored unchecked`):{kind:`existing`,found:t}}function Ab(e,t){return e.kind===`new`?{mode:`new`,deviceType:e.type}:{mode:Ob(e.found,t)?`replace`:`add`,deviceType:e.found.type}}function jb(e,t,n){let r=kb(e,n);if(`code`in r)return U(r);let i=e.features.map((e,n)=>{let i=e.kind===`passthrough`?U(H(`reserved-variant`,`features[${n}]`,`whole-capability passthrough of \`${e.cap}\` arrives in slice 3`)):Db(e,n,Ab(r,e.cap),t);return Uv(e)?i:{problems:i.problems,fields:[],features:[],events:[]}});return{problems:i.flatMap(e=>e.problems),fields:i.flatMap(e=>e.fields),features:i.flatMap(e=>e.features),events:i.flatMap(e=>e.events)}}function Mb(e){let t=e.features.flatMap(e=>Uv(e)&&e.kind===`fields`?ty(e).flatMap(Qv).map(e=>e.source):[]);return[...new Map(t.map(e=>[V(e),e])).values()]}function Nb(e,t,n){return{ref:e.target.kind===`existing`?e.target.device:t.self??Sb,native:e.target.kind===`existing`&&t.target?.kind===`found`?t.target:null,replaced:Pb(n)}}function Pb(e){let t=new Set(e.features.filter(e=>e.mode===`replace`).map(e=>e.featureIndex));return new Set(e.fields.filter(e=>t.has(e.featureIndex)).map(wy))}function Fb(e,t,n,r){let i=`${e.cap}.${e.fieldPath}`;return n.some(e=>wy(e)===i&&!r.replaced.has(i))?[]:r.native===null?[H(`source-field-unknown`,t,`this device has no composed field \`${e.cap}.${e.fieldPath}\``)]:Ob(r.native,e.cap)?[]:[H(`source-capability-missing`,t,`the target device (device ${r.native.deviceId}) has no native \`${e.cap}\``)]}function Ib(e,t,n){let r=V(n.ref);return e.flatMap(i=>i.reads.flatMap(a=>{let o=zy(i),s=V(a.source);if(s===r)return Fb(a,o,e,n);let c=t.sources.get(s);return c===void 0||c.kind===`unreadable`?[H(`source-unreadable`,o,`could not read source \`${s}\` (${c===void 0?`it was not read`:c.error}) — the save is refused rather than stored unchecked`)]:c.kind===`absent`?[H(`source-missing`,o,`source \`${s}\` does not exist`)]:c.caps.has(a.cap)?[]:[H(`source-capability-missing`,o,`source \`${s}\` (device ${c.deviceId}) has no \`${a.cap}\``)]}))}function Lb(e,t){let n=`${t}#`;if(!e.startsWith(n))return null;let r=e.slice(n.length),i=r.indexOf(`.`);return i===-1?null:{cap:r.slice(0,i),fieldPath:r.slice(i+1)}}function Rb(e,t,n){for(let r of e){let e=Lb(r,t);if(e===null)continue;let i=`${e.cap}.${e.fieldPath}`,a=n.find(e=>wy(e)===i);if(a!==void 0)return zy(a)}return`features`}function zb(e,t){for(let[n,r]of t)if(e.some(e=>e.startsWith(`${n}#`)))return{key:n,error:r};return null}function Bb(e,t,n,r){let i={blockId:t.blockId??`(unsaved)`,target:r.ref,composition:e,replaced:r.replaced},a=V(i.target),o=t.unreadTargets??new Map;try{return yb(i,t.peers).map(e=>{let t=Rb(e.path,a,n),r=zb([...e.component],o);return r===null?H(`cycle`,t,`a field reads itself: ${e.path.join(` → `)}`):H(`cycle`,t,`possible cycle through \`${r.key}\` — its state could not be read (${r.error}): ${e.path.join(` → `)}`)})}catch(e){if(e instanceof ub)return[H(`duplicate-target`,`features`,e.message)];throw e}}function Vb(e,t){let n=jb(e,t.lookupCap,t.target??void 0),r=Nb(e,t,n),i=Bb(e,t,n.fields,r),a=[...n.problems,...Ib(n.fields,t,r),...i];return{ok:a.length===0,problems:a,fields:[...n.fields],features:[...n.features],events:[...n.events]}}var Hb=f({path:u(),kind:yy,nullable:C(),required:C(),enumValues:S(u()).optional()}),Ub=f({cap:u(),fields:S(Hb),itemArray:f({path:u(),keyField:u()}).optional()}),Wb=f({caps:S(Ub)});function Gb(e,t){if(xb.has(e.name))return[`not-composable`];let n=e.runtimeState;if(e.scope!==`device`||n===void 0)return[`not-composable`];let r=[];e.deviceTypes!==void 0&&!e.deviceTypes.includes(t)&&r.push(`wrong-device-type`),Object.entries(e.methods).filter(([t,n])=>n.systemOnly!==!0&&e.composedMethods?.[t]===void 0).length>0&&r.push(`has-commands`);let i=cy(n),a=e.status?.itemArray?.path??null;return ly(n).some(e=>e!==a&&!i.has(e))&&r.push(`not-composable`),gy(e,{featureIndex:0,cap:e.name,mode:`new`},[]).problems.some(e=>e.code===`not-composable`)&&!r.includes(`not-composable`)&&r.push(`not-composable`),r}function Kb(e,t){return e.filter(e=>Gb(e,t).length===0).map(e=>{let t=e.runtimeState,n=t===void 0?[]:[...cy(t).values()],r=e.status?.itemArray;return{cap:e.name,fields:n.map(e=>({path:e.path,kind:e.kind,nullable:e.nullable,required:e.required,...e.enumValues===void 0?{}:{enumValues:[...e.enumValues]}})),...r===void 0?{}:{itemArray:{path:r.path,keyField:r.keyField}}}}).toSorted((e,t)=>e.cap.localeCompare(t.cap))}var qb=f({apply:C()}),Jb=f({apply:C(),rows:a().int(),raw:a().int(),markers:a().int(),migrated:a().int(),failed:a().int(),remainingRaw:a().int(),unresolvedMarkers:a().int(),redundantCopies:a().int().optional(),verified:C()}),Yb=`core-block-`,Xb=`core-blocks`;function Zb(e){return`${Yb}${e}`}function Qb(e){if(!e.startsWith(`core-block-`))return null;let t=e.slice(11);return t.length>0?t:null}var $b=p([g(`hub`),u().min(1)]),ex=x([`stopped`,`starting`,`running`,`degraded`,`failed`]),tx=`main.ts`,nx=y(u().min(1).max(260),u().max(2e5)),rx=_(),ix=f({name:u().min(1).max(120),code:u().max(2e5).optional(),files:nx.optional(),entry:u().min(1).max(260).optional(),enabled:C(),placement:$b,integrationId:u().optional(),settingsSchema:rx.optional()}),ax=ix.superRefine((e,t)=>{let n=e.entry??`main.ts`;if(e.files!==void 0){e.files[n]===void 0&&t.addIssue({code:`custom`,message:`files must include the entry "${n}"`,path:[`files`]});return}e.code===void 0&&t.addIssue({code:`custom`,message:`code or files is required`,path:[`code`]})});function ox(e){return e!==void 0&&e.length>0?e:tx}function sx(e){let t=ox(e.entry);return e.files===void 0?{files:{[t]:e.code},entry:t}:{files:{...e.files},entry:t}}function cx(e){if(e.files!==void 0){let t=ox(e.entry);return{code:e.files[t]??e.code??``,files:{...e.files},entry:t}}return{code:e.code??``,...e.entry===void 0?{}:{entry:e.entry}}}var lx=h(`kind`,[f({kind:g(`code`)}),f({kind:g(`recipe`),recipe:Ym}),f({kind:g(`composition`),composition:qv})]),ux=f({name:u().min(1).max(120).optional(),enabled:C(),composition:qv}),dx=f({name:u().min(1).max(120),code:u().max(2e5),files:nx.optional(),entry:u().min(1).max(260).optional(),enabled:C(),placement:$b,integrationId:u().optional(),settingsSchema:rx.optional(),id:u(),createdAt:a(),updatedAt:a(),createdBy:u(),status:ex,lastError:u().optional(),lastChangedAt:a(),source:lx.optional()});function fx(e){return e.source?.kind??`code`}function px(e){return e.source?.kind===`composition`?e.source.composition:null}var mx=h(`kind`,[f({kind:g(`answered`),state:jy.nullable()}),f({kind:g(`unreachable`),error:u()})]),hx=f({block:dx,state:mx}),gx=f({state:g(`not-loaded`),reason:u()}),_x=h(`state`,[f({state:g(`loaded`),views:S(hx)}),gx]),vx=h(`state`,[f({state:g(`loaded`),view:hx.nullable()}),gx]),yx=h(`state`,[f({state:g(`loaded`),view:hx.nullable()}),gx]),bx=f({ok:C(),error:u().optional(),line:a().optional(),column:a().optional()}),xx=f({code:u().optional(),files:nx.optional(),entry:u().min(1).max(260).optional()}).superRefine((e,t)=>{if(e.files!==void 0){let n=e.entry??`main.ts`;e.files[n]===void 0&&t.addIssue({code:`custom`,message:`files must include the entry "${n}"`,path:[`files`]});return}e.code===void 0&&t.addIssue({code:`custom`,message:`code or files is required`,path:[`code`]})}),Sx={name:`core-blocks`,scope:`system`,mode:`singleton`,methods:{list:L(f({}),f({blocks:S(dx)}),{auth:`admin`}),get:L(f({blockId:u()}),f({block:dx.nullable()}),{auth:`admin`}),create:L(f({block:ax}),f({block:dx}),{kind:`mutation`,auth:`admin`,caller:`required`}),update:L(f({blockId:u(),block:ix.partial()}),f({block:dx}),{kind:`mutation`,auth:`admin`,caller:`required`}),delete:L(f({blockId:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setEnabled:L(f({blockId:u(),enabled:C()}),f({block:dx}),{kind:`mutation`,auth:`admin`}),restart:L(f({blockId:u()}),f({block:dx}),{kind:`mutation`,auth:`admin`}),compile:L(xx,bx,{kind:`mutation`,auth:`admin`}),getBlockSettings:L(f({blockId:u()}),Ph.nullable(),{auth:`admin`}),updateBlockSettings:L(f({blockId:u(),patch:Fh}),Ih,{kind:`mutation`,auth:`admin`}),migrateRawSecrets:L(qb,Jb,{kind:`mutation`,auth:`admin`}),getTypeDefs:L(f({}),f({libs:S(f({filePath:u(),content:u()}))}),{auth:`admin`}),createComposition:L(f({block:ux}),f({block:dx}),{kind:`mutation`,auth:`admin`,caller:`required`}),updateComposition:L(f({blockId:u(),expectedUpdatedAt:a(),block:ux.partial()}),f({block:dx}),{kind:`mutation`,auth:`admin`,caller:`required`}),getComposition:L(f({blockId:u()}),vx,{auth:`admin`}),listCompositions:L(f({}),_x,{auth:`admin`}),getCustomization:L(f({addonId:u().min(1),stableId:u().min(1)}),yx,{auth:`admin`}),listComposableCaps:L(f({deviceType:x(R)}),Wb,{auth:`admin`}),validateComposition:L(f({composition:qv,blockId:u().optional()}),Dy,{kind:`mutation`,auth:`admin`,access:`view`})}};function Cx(e){return e}function wx(e,t,n){return{input:e,output:t,kind:n?.kind??`query`,auth:n?.auth??`protected`,scope:n?.scope??{kind:`system`},...n?.caller?{caller:`required`}:{}}}function Tx(e,t,n){return{input:e,output:t,kind:n?.kind??`query`,auth:n?.auth??`protected`,scope:{kind:`device`,...n?.deviceTypes?{deviceTypes:n.deviceTypes}:{}}}}function Ex(e){let t={};for(let[n,r]of Object.entries(e))t[n]={kind:r.kind,auth:r.auth,scope:r.scope,...r.caller===`required`?{caller:`required`}:{}};return t}var Dx=f({stepId:u(),entry:pf}),Ox=f({path:u().min(1),bytes:a().int().nonnegative(),sha256:u().regex(/^[0-9a-f]{64}$/)}),kx=f({addonId:u(),stepId:u().min(1),entries:S(pf).min(1).max(4),bundle:f({ticket:bi,bytes:a().int().positive(),sha256:u().regex(/^[0-9a-f]{64}$/)}),files:S(Ox).min(1).max(64),distribute:C()}),Ax=h(`kind`,[f({kind:g(`imported`),modelIds:S(u()).readonly(),distributed:S(f({modelId:u(),nodeId:u(),format:x(Qd),ok:C(),error:u().optional()})).readonly()}),f({kind:g(`refused`),reason:x([`transfer-failed`,`checksum-mismatch`,`bundle-mismatch`,`invalid-entry`,`id-taken`]),detail:u()})]),jx={name:`custom-model-registry`,scope:`system`,mode:`collection`,internal:!0,methods:{listModels:L(v(),S(Dx).readonly(),{auth:`admin`}),importModelBundle:L(kx,Ax,{kind:`mutation`,auth:`admin`,timeoutMs:30*6e4})}},Mx=f({engineId:u(),kind:x([`relational`,`vector`]),displayName:u()}),Nx={name:`data-store-provider`,scope:`system`,mode:`collection`,internal:!0,methods:{getEngineInfo:L(v(),Mx,{auth:`admin`}),get:L(f({namespace:u().optional(),collection:u(),key:u()}),s(),{auth:`admin`}),set:L(f({namespace:u().optional(),collection:u(),key:u(),value:s()}),v(),{kind:`mutation`,auth:`admin`}),query:L(f({namespace:u().optional(),collection:u(),filter:jg.optional(),columns:S(u()).readonly().optional()}),S(Fg).readonly(),{auth:`admin`}),insert:L(f({namespace:u().optional(),collection:u(),record:f({id:u().optional(),data:y(u(),s())})}),f({id:p([u(),a()])}),{kind:`mutation`,auth:`admin`}),upsert:L(f({namespace:u().optional(),collection:u(),conflict:S(u()).readonly(),record:Ig}),f({id:p([u(),a()])}),{kind:`mutation`,auth:`admin`}),upsertMany:L(f({namespace:u().optional(),collection:u(),conflict:S(u()).readonly(),records:S(Ig).readonly()}),f({upserted:a().int()}),{kind:`mutation`,auth:`admin`}),insertMany:L(f({namespace:u().optional(),collection:u(),records:S(Ig).readonly()}),f({inserted:a().int()}),{kind:`mutation`,auth:`admin`}),transact:L(f({namespace:u().optional(),guard:zg.optional(),ops:S(Rg).readonly()}),f({applied:C(),current:s().optional()}),{kind:`mutation`,auth:`admin`}),update:L(f({namespace:u().optional(),collection:u(),id:u(),data:y(u(),s())}),v(),{kind:`mutation`,auth:`admin`}),delete:L(f({namespace:u().optional(),collection:u(),key:u()}),v(),{kind:`mutation`,auth:`admin`}),deleteWhere:L(f({namespace:u().optional(),collection:u(),filter:Mg}),f({deleted:a().int()}),{kind:`mutation`,auth:`admin`}),updateWhere:L(f({namespace:u().optional(),collection:u(),filter:Mg,data:y(u(),s())}),f({updated:a().int()}),{kind:`mutation`,auth:`admin`}),count:L(f({namespace:u().optional(),collection:u(),filter:jg.optional()}),a(),{auth:`admin`}),aggregate:L(f({namespace:u().optional(),collection:u(),fields:S(Ng).readonly(),filter:jg.optional()}),Pg,{auth:`admin`}),histogram:L(f({namespace:u().optional(),collection:u(),field:u(),bucketSize:a().int().positive(),origin:a().int(),filter:jg.optional()}),S(f({bucket:a().int(),count:a().int()})).readonly(),{auth:`admin`}),isEmpty:L(f({namespace:u().optional(),collection:u()}),C(),{auth:`admin`}),declareCollection:L(Hg,v(),{kind:`mutation`,auth:`admin`})}},Px=[`keychain`,`device-history`,`records`,`integrations`,`device-manager`];function Fx(e){return typeof e!=`object`||!e||Array.isArray(e)||!Object.prototype.hasOwnProperty.call(e,`callerAddonId`)?e:Object.fromEntries(Object.entries(e).filter(([e])=>e!==`callerAddonId`))}var Ix=u().min(1).max(256),Lx=y(u(),s()),Rx=f({id:Ix,deviceId:a().int().optional(),at:a().int().optional(),expiresAt:a().int().optional(),data:Lx}),zx=f({id:u(),deviceId:a().int().nullable(),at:a().nullable(),expiresAt:a().nullable(),rev:a().int(),updatedAt:a(),data:Lx}),Bx=y($a,p([u(),a(),C(),f({in:S(p([u(),a(),C()])).min(1).max(ca)}),f({gt:p([u(),a()]).optional(),gte:p([u(),a()]).optional(),lt:p([u(),a()]).optional(),lte:p([u(),a()]).optional()}).refine(e=>Object.keys(e).length>0,{message:`name at least one bound`})])),G={kind:io},Vx={deviceId:a().int().optional(),atFrom:a().optional(),atTo:a().optional()},Hx=f({...G,...Vx,where:Bx.optional(),order:x([`at`,`id`]).optional(),desc:C().optional(),limit:a().int().min(1).max(ua).default(100),cursor:u().min(1).optional()}),Ux=f({records:S(zx),nextCursor:u().nullable()}),Wx=x([`created`,`unchanged`,`updated`]),Gx=f({kindId:a().int(),state:Wx,createdIndexes:S(u()),adoptionPending:f({legacyTable:u(),legacyRows:a().int()}).nullable()}),Kx=S(u()),qx=y(u(),y(u(),u())),Jx={name:`records`,scope:`system`,mode:`singleton`,internal:!0,methods:{declareKinds:L(f({kinds:y(io,ro)}),f({kinds:y(u(),Gx)}),{kind:`mutation`,auth:`admin`}),get:L(f({...G,id:Ix}),zx.nullable(),{auth:`admin`}),getMany:L(f({...G,ids:S(Ix).min(1).max(ca)}),S(zx),{auth:`admin`}),secretRefs:L(f({...G,ids:S(Ix).min(1).max(ca)}),qx,{auth:`admin`}),put:L(f({...G,record:Rx,ifRev:a().int().min(0).optional()}),f({rev:a().int(),releasedRefs:Kx}),{kind:`mutation`,auth:`admin`}),putMany:L(f({...G,records:S(Rx).min(1).max(ca)}),f({count:a().int(),releasedRefs:Kx}),{kind:`mutation`,auth:`admin`}),patch:L(f({...G,id:Ix,data:Lx,at:a().int().nullable().optional(),expiresAt:a().int().nullable().optional(),ifRev:a().int().min(1).optional()}),f({rev:a().int(),releasedRefs:Kx}),{kind:`mutation`,auth:`admin`}),delete:L(f({...G,id:Ix}),f({deleted:C(),secretRefs:Kx}),{kind:`mutation`,auth:`admin`}),deleteMany:L(f({...G,ids:S(Ix).min(1).max(ca)}),f({deleted:a().int(),secretRefs:Kx}),{kind:`mutation`,auth:`admin`}),query:L(Hx,Ux,{auth:`admin`}),count:L(f({...G,...Vx,where:Bx.optional()}),f({count:a().int()}),{auth:`admin`}),histogram:L(f({...G,deviceId:a().int().optional(),from:a(),to:a(),bucketMs:a().int().positive()}),f({buckets:S(f({bucketStart:a(),count:a().int()}))}),{auth:`admin`}),aggregate:L(f({...G,op:x([`sum`,`min`,`max`,`count`]),field:$a.optional(),groupBy:$a.optional(),where:Bx.optional()}),f({rows:S(f({group:p([u(),a(),ae()]),value:a().nullable()}))}),{auth:`admin`}),deleteWhere:L(f({...G,deviceId:a().int().optional(),atBefore:a().optional(),where:Bx.optional()}),f({deleted:a().int(),secretRefs:Kx}),{kind:`mutation`,auth:`admin`}),deleteDevice:L(f({deviceId:a().int(),kinds:S(io).optional()}),f({deleted:y(u(),a().int()),secretRefs:Kx}),{kind:`mutation`,auth:`admin`}),allocateId:L(f(G),f({id:a().int()}),{kind:`mutation`,auth:`admin`})}},Yx=f({name:u(),owner:u().nullable(),rows:a().int().nonnegative(),bytes:a().int().nonnegative().nullable(),declaredThisBoot:C()}),Xx=f({owner:u(),kind:u(),database:x([`settings`,`events`]),class:u(),state:x([`declared`,`orphaned`,`dropped`]),rows:a().int().nonnegative().nullable(),bytesEstimate:a().int().nonnegative().nullable(),writeTrigger:u(),retention:to,entry:C(),declaration:ro}),Zx=[`stream-broker:probe-snapshots`,`stream-broker:profile-map`,`stream-broker:rtsp-tokens`,`notification-center:device-mutes`,`recorder:recording-configs`,`pipeline-orchestrator:device-features`,`pipeline-analytics:stats-5m`,`pipeline-orchestrator:stats-5m`,`vec_object_clip`,`addon-devices`,`sections`,`provider-settings`,`device-settings`,`ai:budgets`,`pipeline-analytics:retrain-dataset-versions`,`training:dataset-versions`,`benchmark:replay-runs`,`viewer-settings-snapshots`],Qx=[`addon-settings`,`addon-devices`,`sections`],$x={name:`storage-admin`,scope:`system`,mode:`singleton`,internal:!0,methods:{listTables:L(f({ownerPrefix:u().min(1).optional()}),f({tables:S(Yx)}),{auth:`admin`}),dropCollection:L(f({collection:u().min(1),expectRows:a().int().nonnegative()}),f({dropped:g(!0),rows:a().int().nonnegative()}),{kind:`mutation`,auth:`admin`}),listKinds:L(f({owner:u().min(1).optional(),counts:C().optional()}),f({kinds:S(Xx)}),{auth:`admin`}),readRecords:L(Hx.extend({owner:u().min(1),kind:io}),Ux,{auth:`admin`}),adoptRecords:L(f({owner:u().min(1),kind:io,records:S(Rx).max(ca),complete:C().optional()}).refine(e=>e.records.length>0||e.complete===!0,{message:`records must be non-empty unless complete is true`}),f({adopted:a().int()}),{kind:`mutation`,auth:`admin`}),readLegacyCollection:L(f({collection:u().min(1),cursor:u().optional(),limit:a().int().min(1).max(1e3).optional()}),f({rows:S(f({id:u(),data:y(u(),s())})),nextCursor:u().nullable()}),{auth:`admin`}),isAdoptedLegacyTable:L(f({collection:u().min(1)}),f({adopted:C()}),{auth:`admin`})}},eS=f({owner:u(),kind:io,title:u(),nameField:u(),fields:y(u(),s()),secretPaths:S(u()),rows:a().int().nonnegative()}),tS=f({id:Ix,name:u(),rev:a().int(),updatedAt:a(),data:Lx}),nS={owner:u().min(1),kind:io},rS={name:`record-entries`,scope:`system`,mode:`singleton`,methods:{listEntryKinds:L(f({}),f({kinds:S(eS)}),{auth:`admin`}),listEntries:L(f({...nS}),f({entries:S(tS)}),{auth:`admin`}),putEntry:L(f({...nS,id:Ix.optional(),data:Lx,ifRev:a().int().min(1).optional()}),f({id:u(),rev:a().int()}),{kind:`mutation`,auth:`admin`}),deleteEntry:L(f({...nS,id:Ix}),f({deleted:C()}),{kind:`mutation`,auth:`admin`})}},iS=x([`key-missing`,`wrong-key`,`key-file-unreadable`,`store-unavailable`,`not-initialized`,`decrypt-failed`]),aS=h(`state`,[f({state:g(`ready`)}),f({state:g(`locked`),reason:iS})]),oS=h(`kind`,[f({kind:g(`value`),value:u(),version:a().int()}),f({kind:g(`missing`)}),f({kind:g(`unavailable`),reason:iS}),f({kind:g(`forbidden`)})]),sS=y(u(),oS),cS=f({ref:u(),owner:u(),scope:u(),fieldPath:u(),version:a().int(),createdAt:a(),updatedAt:a(),updatedBy:u(),lastReadAt:a().nullable()}),lS=S(u().min(1)).max(512),uS={name:`keychain`,scope:`system`,mode:`singleton`,internal:!0,methods:{put:L(f({ref:u().min(1),value:u().min(1)}),f({ref:u(),version:a().int()}),{kind:`mutation`,auth:`admin`}),resolve:L(f({refs:lS}),sS,{auth:`admin`}),delete:L(f({refs:lS}),f({deleted:a().int()}),{kind:`mutation`,auth:`admin`}),deleteDeviceScope:L(f({deviceId:a().int()}),f({refs:S(u()).readonly()}),{kind:`mutation`,auth:`admin`}),listMeta:L(f({}),S(cS).readonly(),{auth:`admin`}),getState:L(f({}),aS,{auth:`admin`})}},dS=h(`kind`,[f({kind:g(`device`),deviceId:a().int()}),f({kind:g(`node`),nodeId:u().min(1)})]),fS=x([`gauge`,`counter`,`boolean`]),pS=x([`raw`,`5m`,`1h`,`1d`]),mS=x([`undeclared`,`not-owner`,`opted-out`,`not-a-real-device`,`rate`,`ingest-mismatch`,`out-of-range`]),hS=f({key:u(),reason:mS,count:a().int()}),gS=f({accepted:a().int(),refused:S(hS).readonly()}),_S=f({key:u(),scope:u(),kind:fS,unit:u().nullable(),displayName:u(),source:x([`cap`,`addon`]),firstTs:a(),lastTs:a()}),vS=f({t:a(),samples:a().int(),mean:a().nullable(),twMean:a().nullable(),min:a(),max:a(),last:a().nullable()}),yS=f({scope:u(),before:f({t:a(),value:a().nullable()}).nullable(),points:S(vS).readonly()}),bS={key:u(),scope:u().optional(),from:a(),to:a(),resolution:p([pS,g(`auto`)]).default(`auto`),maxPoints:a().int().positive().max(5e3).default(1e3)},xS=f({resolution:pS,series:S(yS).readonly(),truncated:C()}),SS=f({tier:pS,rows:a().int().nullable(),approxBytes:a().nullable(),countedAt:a().nullable()}),CS=f({startedAt:a(),ready:C(),series:a().int(),metrics:a().int(),optedOutDevices:a().int(),tiers:S(SS).readonly(),capture:f({eventsSeen:a().int(),pointsEmitted:a().int(),pointsWritten:a().int(),pointsDropped:a().int(),bufferDepth:a().int(),trailingEmitted:a().int(),reconciledPoints:a().int(),reconcileRuns:a().int(),reconcileFailures:a().int(),lastReconcileAt:a().nullable(),lastFlushAt:a().nullable(),flushFailures:a().int(),skipped:y(u(),a().int())}),ingest:f({accepted:a().int(),refused:y(u(),a().int())}),rollup:f({last5mAt:a().nullable(),last1hAt:a().nullable(),last1dAt:a().nullable(),errors:a().int(),dirty5m:a().int(),dirty1h:a().int(),dirty1d:a().int()}),retention:f({lastRunAt:a().nullable(),deleted:y(u(),a().int()),purgedSeries:a().int()}),directory:f({devices:a().int(),lastRefreshAt:a().nullable()})}),wS={name:`device-history`,scope:`system`,mode:`singleton`,methods:{listSeries:L(f({deviceId:a().int()}),S(_S).readonly()),listNodeSeries:L(f({nodeId:u().min(1)}),S(_S).readonly(),{auth:`admin`}),query:L(f({deviceId:a().int(),...bS}),xS),queryNode:L(f({nodeId:u().min(1),...bS}),xS,{auth:`admin`}),declareSeries:L(f({name:u().regex(/^[a-z0-9-]+$/),subjectKind:x([`device`,`node`]),kind:fS,unit:u().optional(),displayName:u().min(1),ingest:x([`points`,`buckets`])}),f({key:u()}),{kind:`mutation`,auth:`admin`}),record:L(f({points:S(f({key:u(),subject:dS,scope:u().default(``),ts:a(),value:a()})).max(5e3)}),gS,{kind:`mutation`,auth:`admin`}),recordBuckets:L(f({buckets:S(f({key:u(),subject:dS,scope:u().default(``),bucketStart:a(),samples:a().int().positive(),sum:a(),min:a(),max:a(),last:a().nullable(),lastTs:a().nullable()})).max(5e3)}),gS,{kind:`mutation`,auth:`admin`}),getDeviceEnabled:L(f({deviceId:a().int()}),f({enabled:C()})),setDeviceEnabled:L(f({deviceId:a().int(),enabled:C()}),f({enabled:C()}),{kind:`mutation`,auth:`admin`}),getStatus:L(f({}),CS,{auth:`admin`})}},TS=h(`state`,[f({state:g(`absent`)}),f({state:g(`ready`),subject:u(),fingerprintSha256:u(),validTo:u()}),f({state:g(`unavailable`),reason:u()})]),ES=f({selfEnrollment:x([`allowed`,`disabled`])}),DS={name:`device-credentials`,scope:`system`,mode:`singleton`,methods:{listDeviceCredentials:L(f({userId:u().min(1).optional(),includeRevoked:C().default(!1)}),S(yp).readonly(),{auth:`admin`}),startEnrollment:L(f({userId:u().min(1),deviceName:u().min(1).max(80)}),bp,{kind:`mutation`,auth:`admin`,caller:`required`}),revokeDeviceCredential:L(f({id:u().min(1)}),f({revoked:C(),sessionsEnded:a().int(),status:vp}),{kind:`mutation`,auth:`admin`,caller:`required`}),getDeviceCertificateSettings:L(f({}),ES,{auth:`admin`}),setDeviceCertificateSettings:L(ES,ES,{kind:`mutation`,auth:`admin`}),deleteDeviceCredential:L(f({id:u().min(1)}),f({result:x([`deleted`,`live`,`unknown`])}),{kind:`mutation`,auth:`admin`,caller:`required`}),getDeviceCaStatus:L(f({}),TS,{auth:`admin`}),renameDeviceCredential:L(f({id:u().min(1),deviceName:u().min(1).max(80)}),f({renamed:C()}),{kind:`mutation`,auth:`admin`})}},OS=f({cn:u(),serial:u(),fingerprintSha256:u(),notBefore:a(),notAfter:a()}),kS=f({fingerprintSha256:u(),issuer:u(),sans:S(u()),notBefore:a(),notAfter:a()}),AS=h(`state`,[f({state:g(`served`),leaf:kS}),f({state:g(`not-issued`),reason:u()})]),jS={name:`node-certificates`,scope:`system`,mode:`singleton`,internal:!0,methods:{getCertificates:L(f({}),f({nodeId:u(),mesh:OS.nullable(),https:AS}),{auth:`admin`}),prepareMeshRenewal:L(f({}),f({csrPem:u()}),{kind:`mutation`,auth:`admin`}),installMeshLeaf:L(f({certPem:u().min(1),caCertPem:u().min(1),confirmWithinMs:a().int().min(1e4).max(6e5)}),f({fingerprintSha256:u(),serial:u()}),{kind:`mutation`,auth:`admin`}),confirmMeshLeaf:L(f({fingerprintSha256:u()}),f({confirmed:C()}),{kind:`mutation`,auth:`admin`}),rollbackMeshLeaf:L(f({}),f({rolledBack:C()}),{kind:`mutation`,auth:`admin`}),prepareHttpsCertificate:L(f({}),f({csrPem:u(),hostnames:S(u()),addresses:S(u()),pinnedCaFingerprintSha256:u().nullable()}),{kind:`mutation`,auth:`admin`}),forgetHub:L(f({}),f({ok:g(!0)}),{kind:`mutation`,auth:`admin`}),installHttpsCertificate:L(f({certPem:u().min(1),caCertPem:u().min(1),caRotation:C().optional()}),kS,{kind:`mutation`,auth:`admin`})},mount:{kind:`skip`}},MS=x([`config-file`,`previous-config-file`,`platform`,`default-file`]),NS=f({kind:MS,path:u().optional(),sharesBackupWithDatabase:C()}),PS=`trigger-file`,FS=f({id:u(),at:a(),actor:u(),lockedReason:u().nullable(),archived:a().int(),archivedCollection:u().nullable(),archivedKeysCollection:u().nullable(),clearedSettingsKeys:S(u()).readonly(),acknowledgedAt:a().nullable()}),IS=f({keychain:aS,keySource:NS.nullable(),configuredSource:NS,fingerprint:u().nullable(),activeKeyId:u().nullable(),rotationPending:C(),retiredWraps:a().int(),recoveryKeyDownloadedAt:a().nullable(),secretCount:a().int(),lastReset:FS.nullable()}),LS=x([`in-use`,`orphan`,`unknown`]),RS=cS.extend({usage:LS}),zS=x([`put`,`delete`,`reveal`,`rotate-master-key`,`purge-retired-keys`,`download-recovery-key`,`delete-orphans`,`reset`,`acknowledge-reset`,`initialize`]),BS=f({id:u(),at:a(),action:zS,actor:u(),ref:u().nullable(),detail:u().nullable()}),VS=`RESET KEYCHAIN`,HS=x([`jwt-signing-key`]),US={name:`keychain-admin`,scope:`system`,mode:`singleton`,methods:{status:L(f({}),IS,{auth:`admin`}),listSecrets:L(f({}),S(RS).readonly(),{auth:`admin`}),listAudit:L(f({limit:a().int().min(1).max(500).optional()}),S(BS).readonly(),{auth:`admin`}),reveal:L(f({ref:u().min(1)}),f({value:u(),version:a().int()}),{kind:`mutation`,auth:`admin`,caller:`required`}),setSystemSecret:L(f({name:HS,value:u().min(16)}),f({ref:u(),version:a().int()}),{kind:`mutation`,auth:`admin`,caller:`required`}),importSecret:L(f({ref:u().min(1),value:u().min(1)}),f({ref:u(),version:a().int()}),{kind:`mutation`,auth:`admin`,caller:`required`}),deleteOrphans:L(f({refs:S(u().min(1)).max(1e3)}),f({deleted:S(u()).readonly(),kept:S(f({ref:u(),usage:LS})).readonly()}),{kind:`mutation`,auth:`admin`,caller:`required`}),rotateMasterKey:L(f({}),f({fingerprint:u(),keySource:NS}),{kind:`mutation`,auth:`admin`,caller:`required`}),purgeRetiredKeys:L(f({}),f({purged:a().int()}),{kind:`mutation`,auth:`admin`,caller:`required`}),downloadRecoveryKey:L(f({}),f({key:u(),fingerprint:u(),keySource:NS}),{kind:`mutation`,auth:`admin`,caller:`required`}),resetKeychain:L(f({confirm:g(VS)}),f({archivedCollection:u().nullable(),archived:a().int()}),{kind:`mutation`,auth:`admin`,caller:`required`}),resetReport:L(f({}),f({reset:FS.nullable(),pendingReentry:S(cS).readonly()}),{auth:`admin`}),acknowledgeReset:L(f({}),f({acknowledged:C()}),{kind:`mutation`,auth:`admin`,caller:`required`})}},mee=[{value:`auto`,label:`Auto (defer to probed best)`},{value:`none`,label:`Off (software)`},{value:`videotoolbox`,label:`VideoToolbox (macOS)`},{value:`cuda`,label:`CUDA (NVIDIA)`},{value:`nvdec`,label:`NVDEC (NVIDIA legacy)`},{value:`vaapi`,label:`VAAPI (Linux Intel/AMD)`},{value:`qsv`,label:`QuickSync (Intel)`},{value:`d3d11va`,label:`D3D11VA (Windows)`},{value:`dxva2`,label:`DXVA2 (Windows legacy)`},{value:`amf`,label:`AMF (AMD)`},{value:`vdpau`,label:`VDPAU (Linux NVIDIA legacy)`},{value:`drm`,label:`DRM (Linux generic)`}],WS={hwaccel:`auto`,probedBestHwaccel:``},GS={name:`decoder`,scope:`system`,mode:`singleton`,preferredProvider:`decoder-nodeav`,methods:{getInfo:L(v(),f({id:u(),name:u(),hwaccel:u().optional(),probedBestHwaccel:u().optional()})),reprobeHwaccel:L(v(),f({backend:u()}),{kind:`mutation`,auth:`admin`})}},KS={name:`detection-pipeline`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],exposesDeviceSettings:!0,methods:{}},qS=x([`device`,`integration`]),JS=f({url:u(),label:u(),target:qS,host:u()}),YS={name:`device-admin-link`,scope:`device`,deviceNative:!0,mode:`singleton`,methods:{getAdminLink:L(f({deviceId:a().int().nonnegative()}),JS.nullable(),{auth:`admin`})}},XS=[`password`,`passwd`,`pwd`,`pass`,`user`,`username`,`usr`,`login`,`token`,`access_token`,`auth`,`authorization`,`apikey`,`api_key`,`secret`,`credential`,`credentials`,`session`,`sessionid`,`key`],ZS=/[a-z][a-z0-9+.-]*:\/\/[^/\s:@'"]+:[^/\s:@'"]+@/i,QS=/^[a-zA-Z0-9._-]+$/,$S=/^\[[0-9a-fA-F:.]+\]$/;function eC(e){return e===`https`?443:80}function tC(e){let t=e.host.trim();if(t.length===0)return{ok:!1,reason:`empty-host`};if(t.includes(`@`))return{ok:!1,reason:`host-carries-userinfo`};if(!QS.test(t)&&!$S.test(t))return{ok:!1,reason:`host-not-plain`};if(e.port!==null&&(!Number.isInteger(e.port)||e.port<1||e.port>65535))return{ok:!1,reason:`port-out-of-range`};if(!e.path.startsWith(`/`))return{ok:!1,reason:`path-not-absolute`};let n=e.query??{};for(let e of Object.keys(n))if(XS.includes(e.toLowerCase()))return{ok:!1,reason:`credential-query-key`};let r=e.port===null||e.port===eC(e.scheme)?t:`${t}:${String(e.port)}`,i=new URLSearchParams;for(let[e,t]of Object.entries(n))i.append(e,t);let a=i.size>0?`?${i.toString()}`:``,o=`${e.scheme}://${r}${e.path}${a}`;return ZS.test(o)?{ok:!1,reason:`userinfo-in-result`}:{ok:!0,url:o}}function nC(e){let t=e.trim();if(t.length===0)return{ok:!1,reason:`empty`};let n;try{n=new URL(t)}catch{return{ok:!1,reason:`unparseable`}}if(n.username!==``||n.password!==``)return{ok:!1,reason:`base-carries-userinfo`};if(n.protocol!==`http:`&&n.protocol!==`https:`)return{ok:!1,reason:`scheme-not-http`};let r=n.protocol===`https:`?`https`:`http`,i=n.port===``?null:Number(n.port),a=n.pathname===`/`?``:n.pathname.replace(/\/+$/,``);return{ok:!0,host:n.hostname,port:i,scheme:r,basePath:a}}var rC=f({id:u(),system:u(),uniqueId:u().optional(),raw:y(u(),s()).optional()});function iC(e){return{id:e.stableId,system:e.addonId}}function aC(e,t){let n={...e};for(let[r,i]of Object.entries(t))if(i!==void 0){if(r===`raw`&&typeof i==`object`&&i){n.raw={...e.raw,...i};continue}n[r]=i}return n}function oC(e){if(e==null)return;let t=e.trim();if(t===``)return;let n=t.toLowerCase();return n===`°c`||n===`c`||n===`celsius`?`°C`:n===`°f`||n===`f`||n===`fahrenheit`?`°F`:n===`k`||n===`kelvin`?`K`:n===`%`||n===`percent`||n===`percentage`?`%`:n===`lx`||n===`lux`?`lx`:n===`hpa`||n===`hectopascal`?`hPa`:n===`kpa`?`kPa`:n===`pa`?`Pa`:n===`mbar`||n===`millibar`?`mbar`:n===`w`||n===`watt`?`W`:n===`kw`||n===`kilowatt`?`kW`:n===`wh`||n===`watt-hour`?`Wh`:n===`kwh`||n===`kilowatt-hour`?`kWh`:n===`v`||n===`volt`?`V`:n===`a`||n===`amp`||n===`ampere`?`A`:n===`ma`||n===`milliampere`?`mA`:n===`va`?`VA`:n===`ppm`?`ppm`:n===`ppb`?`ppb`:n===`µg/m³`||n===`ug/m3`||n===`µg/m3`?`µg/m³`:n===`km/h`||n===`kph`?`km/h`:n===`mph`?`mph`:n===`m/s`?`m/s`:n===`m`?`m`:n===`km`?`km`:n===`kg`?`kg`:n===`g`?`g`:t}var sC=`sourceInfo`;function cC(e){if(!e)return null;let t=e[sC];if(!t)return null;let n=rC.safeParse(t);return n.success?n.data:null}var lC=x([`online`,`sleeping`,`offline`,`unknown`]),uC=he(()=>f({childNativeId:u(),name:u(),type:x(R),status:lC,metadata:f({model:u().optional(),serialNumber:u().optional(),uid:u().optional(),rtspChannel:a().int().nonnegative().optional(),isBattery:C().optional(),isDoorbell:C().optional(),isMultifocal:C().optional(),externalLocation:u().optional(),manufacturer:u().optional(),integration:u().optional()}).default({}),alreadyAdopted:C(),adoptedDeviceId:a().int().nonnegative().nullable(),capabilities:S(u()).readonly().optional(),features:S(u()).readonly().optional(),sourceInfo:rC.optional(),children:S(uC).readonly().optional()})),dC=f({discovered:S(uC),lastDiscoveryAt:a().int().nonnegative().nullable(),lastError:u().nullable()}),fC={name:`device-discovery`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Hub],status:{schema:dC,kind:`poll`},runtimeState:dC.extend({lastFetchedAt:a().int().nonnegative()}),durability:`session`,history:`none`,methods:{listDiscovered:L(f({deviceId:a().int().nonnegative()}),S(uC).readonly()),refreshDiscovery:L(f({deviceId:a().int().nonnegative()}),S(uC).readonly(),{kind:`mutation`,auth:`admin`}),adoptDevice:L(f({deviceId:a().int().nonnegative(),childNativeId:u(),name:u().optional()}),f({deviceId:a().int().nonnegative(),stableId:u()}),{kind:`mutation`,auth:`admin`}),releaseDevice:L(f({deviceId:a().int().nonnegative(),childDeviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`admin`})}},pC=f({id:u(),label:u(),isDefault:C().optional()}),mC=f({search:u().optional(),area:u().optional(),manufacturer:u().optional(),adoptedOnly:C().optional(),unadoptedOnly:C().optional()}),hC=f({integrationId:u(),page:a().int().positive().default(1),pageSize:a().int().positive().max(2e4).default(50),filter:u().optional(),filterText:mC.optional()}),gC=f({candidates:S(uC).readonly(),totalCount:a().int().nonnegative(),page:a().int().positive(),pageSize:a().int().positive()}),_C=f({integrationId:u(),childNativeId:u()}),vC=f({lastDiscoveryAt:a().int().nonnegative().nullable(),candidateCount:a().int().nonnegative(),adoptedCount:a().int().nonnegative(),lastError:u().nullable()}),yC=f({name:u().min(1).optional(),hiddenChildIds:S(u()).optional()}),bC=f({integrationId:u(),childNativeIds:S(u()).min(1),filter:u().optional(),importLocations:C().optional(),perCandidate:y(u(),yC).optional()}),xC=f({adopted:S(f({childNativeId:u(),parentDeviceId:a().int().nonnegative(),accessoryDeviceIds:S(a().int().nonnegative()).readonly()})).readonly()}),SC=f({integrationId:u(),camDeviceId:a().int().nonnegative()}),CC=f({camDeviceId:a().int().nonnegative(),resetToSource:C().optional()}),wC=f({changed:C(),rebuiltChildren:a().int().nonnegative(),removedChildren:a().int().nonnegative().optional()}),TC={name:`device-adoption`,scope:`system`,mode:`collection`,status:{schema:vC,kind:`poll`},methods:{listCandidateFilters:L(f({integrationId:u()}),f({filters:S(pC)}),{auth:`admin`}),listCandidates:L(hC,gC,{auth:`admin`}),getCandidate:L(_C,uC.nullable(),{auth:`admin`}),refresh:L(f({integrationId:u()}),vC,{kind:`mutation`,auth:`admin`}),adopt:L(bC,xC,{kind:`mutation`,auth:`admin`}),release:L(SC,v(),{kind:`mutation`,auth:`admin`}),resync:L(CC,wC,{kind:`mutation`,auth:`admin`})}},EC=x([`unlinked`,`linked`,`error`]),DC=f({label:u(),value:u(),secret:C().optional()}),OC=f({qr:u().optional(),fields:S(DC).readonly().optional(),note:u().optional()}),kC=f({linkState:EC,exposedDeviceCount:a(),error:u().optional(),setup:OC.optional()}),AC=u(),jC=f({deviceId:u(),exposedAs:u().optional(),capabilities:S(u()).optional()}),MC=f({deviceId:u(),capabilities:S(u()).optional()}),NC=f({deviceId:u()}),PC={name:`device-export`,scope:`system`,mode:`collection`,providerKind:`device-export`,status:{schema:kC,kind:`poll`},exposesDeviceSettings:!0,methods:{getStatus:L(v(),kC),listSupportedDeviceKinds:L(v(),S(AC)),listExposedDevices:L(v(),S(jC)),exposeDevice:L(MC,v(),{kind:`mutation`,auth:`admin`}),unexposeDevice:L(NC,v(),{kind:`mutation`,auth:`admin`})}},FC={lucideReact:`0.576.0`,lucideReactNative:`1.24.0`,metadata:`lucide-icons/lucide@0.576.0 icons/*.json`},IC=`accessibility.account.animals.arrows.brands.buildings.charts.communication.connectivity.cursors.design.development.devices.emoji.files.finance.food-beverage.gaming.home.layout.mail.math.medical.multimedia.nature.navigation.notifications.people.photography.science.seasons.security.shapes.shopping.social.sports.sustainability.text.time.tools.transportation.travel.weather`.split(`.`),LC=`a-arrow-down.a-arrow-up.a-large-small.accessibility.activity.air-vent.airplay.alarm-clock.alarm-clock-check.alarm-clock-minus.alarm-clock-off.alarm-clock-plus.alarm-smoke.album.align-center-horizontal.align-center-vertical.align-end-horizontal.align-end-vertical.align-horizontal-distribute-center.align-horizontal-distribute-end.align-horizontal-distribute-start.align-horizontal-justify-center.align-horizontal-justify-end.align-horizontal-justify-start.align-horizontal-space-around.align-horizontal-space-between.align-start-horizontal.align-start-vertical.align-vertical-distribute-center.align-vertical-distribute-end.align-vertical-distribute-start.align-vertical-justify-center.align-vertical-justify-end.align-vertical-justify-start.align-vertical-space-around.align-vertical-space-between.ambulance.ampersand.ampersands.amphora.anchor.angry.annoyed.antenna.anvil.aperture.app-window.app-window-mac.apple.archive.archive-restore.archive-x.armchair.arrow-big-down.arrow-big-down-dash.arrow-big-left.arrow-big-left-dash.arrow-big-right.arrow-big-right-dash.arrow-big-up.arrow-big-up-dash.arrow-down.arrow-down-0-1.arrow-down-1-0.arrow-down-a-z.arrow-down-from-line.arrow-down-left.arrow-down-narrow-wide.arrow-down-right.arrow-down-to-dot.arrow-down-to-line.arrow-down-up.arrow-down-wide-narrow.arrow-down-z-a.arrow-left.arrow-left-from-line.arrow-left-right.arrow-left-to-line.arrow-right.arrow-right-from-line.arrow-right-left.arrow-right-to-line.arrow-up.arrow-up-0-1.arrow-up-1-0.arrow-up-a-z.arrow-up-down.arrow-up-from-dot.arrow-up-from-line.arrow-up-left.arrow-up-narrow-wide.arrow-up-right.arrow-up-to-line.arrow-up-wide-narrow.arrow-up-z-a.arrows-up-from-line.asterisk.at-sign.atom.audio-lines.audio-waveform.award.axe.axis-3d.baby.backpack.badge.badge-alert.badge-cent.badge-check.badge-dollar-sign.badge-euro.badge-indian-rupee.badge-info.badge-japanese-yen.badge-minus.badge-percent.badge-plus.badge-pound-sterling.badge-question-mark.badge-russian-ruble.badge-swiss-franc.badge-turkish-lira.badge-x.baggage-claim.balloon.ban.banana.bandage.banknote.banknote-arrow-down.banknote-arrow-up.banknote-x.barcode.barrel.baseline.bath.battery.battery-charging.battery-full.battery-low.battery-medium.battery-plus.battery-warning.beaker.bean.bean-off.bed.bed-double.bed-single.beef.beer.beer-off.bell.bell-dot.bell-electric.bell-minus.bell-off.bell-plus.bell-ring.between-horizontal-end.between-horizontal-start.between-vertical-end.between-vertical-start.biceps-flexed.bike.binary.binoculars.biohazard.bird.birdhouse.bitcoin.blend.blinds.blocks.bluetooth.bluetooth-connected.bluetooth-off.bluetooth-searching.bold.bolt.bomb.bone.book.book-a.book-alert.book-audio.book-check.book-copy.book-dashed.book-down.book-headphones.book-heart.book-image.book-key.book-lock.book-marked.book-minus.book-open.book-open-check.book-open-text.book-plus.book-search.book-text.book-type.book-up.book-up-2.book-user.book-x.bookmark.bookmark-check.bookmark-minus.bookmark-plus.bookmark-x.boom-box.bot.bot-message-square.bot-off.bottle-wine.bow-arrow.box.boxes.braces.brackets.brain.brain-circuit.brain-cog.brick-wall.brick-wall-fire.brick-wall-shield.briefcase.briefcase-business.briefcase-conveyor-belt.briefcase-medical.bring-to-front.brush.brush-cleaning.bubbles.bug.bug-off.bug-play.building.building-2.bus.bus-front.cable.cable-car.cake.cake-slice.calculator.calendar.calendar-1.calendar-arrow-down.calendar-arrow-up.calendar-check.calendar-check-2.calendar-clock.calendar-cog.calendar-days.calendar-fold.calendar-heart.calendar-minus.calendar-minus-2.calendar-off.calendar-plus.calendar-plus-2.calendar-range.calendar-search.calendar-sync.calendar-x.calendar-x-2.calendars.camera.camera-off.candy.candy-cane.candy-off.cannabis.cannabis-off.captions.captions-off.car.car-front.car-taxi-front.caravan.card-sim.carrot.case-lower.case-sensitive.case-upper.cassette-tape.cast.castle.cat.cctv.chart-area.chart-bar.chart-bar-big.chart-bar-decreasing.chart-bar-increasing.chart-bar-stacked.chart-candlestick.chart-column.chart-column-big.chart-column-decreasing.chart-column-increasing.chart-column-stacked.chart-gantt.chart-line.chart-network.chart-no-axes-column.chart-no-axes-column-decreasing.chart-no-axes-column-increasing.chart-no-axes-combined.chart-no-axes-gantt.chart-pie.chart-scatter.chart-spline.check.check-check.check-line.chef-hat.cherry.chess-bishop.chess-king.chess-knight.chess-pawn.chess-queen.chess-rook.chevron-down.chevron-first.chevron-last.chevron-left.chevron-right.chevron-up.chevrons-down.chevrons-down-up.chevrons-left.chevrons-left-right.chevrons-left-right-ellipsis.chevrons-right.chevrons-right-left.chevrons-up.chevrons-up-down.church.cigarette.cigarette-off.circle.circle-alert.circle-arrow-down.circle-arrow-left.circle-arrow-out-down-left.circle-arrow-out-down-right.circle-arrow-out-up-left.circle-arrow-out-up-right.circle-arrow-right.circle-arrow-up.circle-check.circle-check-big.circle-chevron-down.circle-chevron-left.circle-chevron-right.circle-chevron-up.circle-dashed.circle-divide.circle-dollar-sign.circle-dot.circle-dot-dashed.circle-ellipsis.circle-equal.circle-fading-arrow-up.circle-fading-plus.circle-gauge.circle-minus.circle-off.circle-parking.circle-parking-off.circle-pause.circle-percent.circle-pile.circle-play.circle-plus.circle-pound-sterling.circle-power.circle-question-mark.circle-slash.circle-slash-2.circle-small.circle-star.circle-stop.circle-user.circle-user-round.circle-x.circuit-board.citrus.clapperboard.clipboard.clipboard-check.clipboard-clock.clipboard-copy.clipboard-list.clipboard-minus.clipboard-paste.clipboard-pen.clipboard-pen-line.clipboard-plus.clipboard-type.clipboard-x.clock.clock-1.clock-10.clock-11.clock-12.clock-2.clock-3.clock-4.clock-5.clock-6.clock-7.clock-8.clock-9.clock-alert.clock-arrow-down.clock-arrow-up.clock-check.clock-fading.clock-plus.closed-caption.cloud.cloud-alert.cloud-backup.cloud-check.cloud-cog.cloud-download.cloud-drizzle.cloud-fog.cloud-hail.cloud-lightning.cloud-moon.cloud-moon-rain.cloud-off.cloud-rain.cloud-rain-wind.cloud-snow.cloud-sun.cloud-sun-rain.cloud-sync.cloud-upload.cloudy.clover.club.code.code-xml.coffee.cog.coins.columns-2.columns-3.columns-3-cog.columns-4.combine.command.compass.component.computer.concierge-bell.cone.construction.contact.contact-round.container.contrast.cookie.cooking-pot.copy.copy-check.copy-minus.copy-plus.copy-slash.copy-x.copyleft.copyright.corner-down-left.corner-down-right.corner-left-down.corner-left-up.corner-right-down.corner-right-up.corner-up-left.corner-up-right.cpu.creative-commons.credit-card.croissant.crop.cross.crosshair.crown.cuboid.cup-soda.currency.cylinder.dam.database.database-backup.database-search.database-zap.decimals-arrow-left.decimals-arrow-right.delete.dessert.diameter.diamond.diamond-minus.diamond-percent.diamond-plus.dice-1.dice-2.dice-3.dice-4.dice-5.dice-6.dices.diff.disc.disc-2.disc-3.disc-album.divide.dna.dna-off.dock.dog.dollar-sign.donut.door-closed.door-closed-locked.door-open.dot.download.drafting-compass.drama.drill.drone.droplet.droplet-off.droplets.drum.drumstick.dumbbell.ear.ear-off.earth.earth-lock.eclipse.egg.egg-fried.egg-off.ellipsis.ellipsis-vertical.equal.equal-approximately.equal-not.eraser.ethernet-port.euro.ev-charger.expand.external-link.eye.eye-closed.eye-off.factory.fan.fast-forward.feather.fence.ferris-wheel.file.file-archive.file-axis-3d.file-badge.file-box.file-braces.file-braces-corner.file-chart-column.file-chart-column-increasing.file-chart-line.file-chart-pie.file-check.file-check-corner.file-clock.file-code.file-code-corner.file-cog.file-diff.file-digit.file-down.file-exclamation-point.file-headphone.file-heart.file-image.file-input.file-key.file-lock.file-minus.file-minus-corner.file-music.file-output.file-pen.file-pen-line.file-play.file-plus.file-plus-corner.file-question-mark.file-scan.file-search.file-search-corner.file-signal.file-sliders.file-spreadsheet.file-stack.file-symlink.file-terminal.file-text.file-type.file-type-corner.file-up.file-user.file-video-camera.file-volume.file-x.file-x-corner.files.film.fingerprint-pattern.fire-extinguisher.fish.fish-off.fish-symbol.fishing-hook.fishing-rod.flag.flag-off.flag-triangle-left.flag-triangle-right.flame.flame-kindling.flashlight.flashlight-off.flask-conical.flask-conical-off.flask-round.flip-horizontal-2.flip-vertical-2.flower.flower-2.focus.fold-horizontal.fold-vertical.folder.folder-archive.folder-check.folder-clock.folder-closed.folder-code.folder-cog.folder-dot.folder-down.folder-git.folder-git-2.folder-heart.folder-input.folder-kanban.folder-key.folder-lock.folder-minus.folder-open.folder-open-dot.folder-output.folder-pen.folder-plus.folder-root.folder-search.folder-search-2.folder-symlink.folder-sync.folder-tree.folder-up.folder-x.folders.footprints.forklift.form.forward.frame.frown.fuel.fullscreen.funnel.funnel-plus.funnel-x.gallery-horizontal.gallery-horizontal-end.gallery-thumbnails.gallery-vertical.gallery-vertical-end.gamepad.gamepad-2.gamepad-directional.gauge.gavel.gem.georgian-lari.ghost.gift.git-branch.git-branch-minus.git-branch-plus.git-commit-horizontal.git-commit-vertical.git-compare.git-compare-arrows.git-fork.git-graph.git-merge.git-merge-conflict.git-pull-request.git-pull-request-arrow.git-pull-request-closed.git-pull-request-create.git-pull-request-create-arrow.git-pull-request-draft.glass-water.glasses.globe.globe-lock.globe-off.globe-x.goal.gpu.graduation-cap.grape.grid-2x2.grid-2x2-check.grid-2x2-plus.grid-2x2-x.grid-3x2.grid-3x3.grip.grip-horizontal.grip-vertical.group.guitar.ham.hamburger.hammer.hand.hand-coins.hand-fist.hand-grab.hand-heart.hand-helping.hand-metal.hand-platter.handbag.handshake.hard-drive.hard-drive-download.hard-drive-upload.hard-hat.hash.hat-glasses.haze.hd.hdmi-port.heading.heading-1.heading-2.heading-3.heading-4.heading-5.heading-6.headphone-off.headphones.headset.heart.heart-crack.heart-handshake.heart-minus.heart-off.heart-plus.heart-pulse.heater.helicopter.hexagon.highlighter.history.hop.hop-off.hospital.hotel.hourglass.house.house-heart.house-plug.house-plus.house-wifi.ice-cream-bowl.ice-cream-cone.id-card.id-card-lanyard.image.image-down.image-minus.image-off.image-play.image-plus.image-up.image-upscale.images.import.inbox.indian-rupee.infinity.info.inspection-panel.italic.iteration-ccw.iteration-cw.japanese-yen.joystick.kanban.kayak.key.key-round.key-square.keyboard.keyboard-music.keyboard-off.lamp.lamp-ceiling.lamp-desk.lamp-floor.lamp-wall-down.lamp-wall-up.land-plot.landmark.languages.laptop.laptop-minimal.laptop-minimal-check.lasso.lasso-select.laugh.layers.layers-2.layers-plus.layout-dashboard.layout-grid.layout-list.layout-panel-left.layout-panel-top.layout-template.leaf.leafy-green.lectern.lens-concave.lens-convex.library.library-big.life-buoy.ligature.lightbulb.lightbulb-off.line-dot-right-horizontal.line-squiggle.link.link-2.link-2-off.list.list-check.list-checks.list-chevrons-down-up.list-chevrons-up-down.list-collapse.list-end.list-filter.list-filter-plus.list-indent-decrease.list-indent-increase.list-minus.list-music.list-ordered.list-plus.list-restart.list-start.list-todo.list-tree.list-video.list-x.loader.loader-circle.loader-pinwheel.locate.locate-fixed.locate-off.lock.lock-keyhole.lock-keyhole-open.lock-open.log-in.log-out.logs.lollipop.luggage.magnet.mail.mail-check.mail-minus.mail-open.mail-plus.mail-question-mark.mail-search.mail-warning.mail-x.mailbox.mails.map.map-minus.map-pin.map-pin-check.map-pin-check-inside.map-pin-house.map-pin-minus.map-pin-minus-inside.map-pin-off.map-pin-pen.map-pin-plus.map-pin-plus-inside.map-pin-x.map-pin-x-inside.map-pinned.map-plus.mars.mars-stroke.martini.maximize.maximize-2.medal.megaphone.megaphone-off.meh.memory-stick.menu.merge.message-circle.message-circle-check.message-circle-code.message-circle-dashed.message-circle-heart.message-circle-more.message-circle-off.message-circle-plus.message-circle-question-mark.message-circle-reply.message-circle-warning.message-circle-x.message-square.message-square-check.message-square-code.message-square-dashed.message-square-diff.message-square-dot.message-square-heart.message-square-lock.message-square-more.message-square-off.message-square-plus.message-square-quote.message-square-reply.message-square-share.message-square-text.message-square-warning.message-square-x.messages-square.metronome.mic.mic-off.mic-vocal.microchip.microscope.microwave.milestone.milk.milk-off.minimize.minimize-2.minus.mirror-rectangular.mirror-round.monitor.monitor-check.monitor-cloud.monitor-cog.monitor-dot.monitor-down.monitor-off.monitor-pause.monitor-play.monitor-smartphone.monitor-speaker.monitor-stop.monitor-up.monitor-x.moon.moon-star.motorbike.mountain.mountain-snow.mouse.mouse-left.mouse-off.mouse-pointer.mouse-pointer-2.mouse-pointer-2-off.mouse-pointer-ban.mouse-pointer-click.mouse-right.move.move-3d.move-diagonal.move-diagonal-2.move-down.move-down-left.move-down-right.move-horizontal.move-left.move-right.move-up.move-up-left.move-up-right.move-vertical.music.music-2.music-3.music-4.navigation.navigation-2.navigation-2-off.navigation-off.network.newspaper.nfc.non-binary.notebook.notebook-pen.notebook-tabs.notebook-text.notepad-text.notepad-text-dashed.nut.nut-off.octagon.octagon-alert.octagon-minus.octagon-pause.octagon-x.omega.option.orbit.origami.package.package-2.package-check.package-minus.package-open.package-plus.package-search.package-x.paint-bucket.paint-roller.paintbrush.paintbrush-vertical.palette.panda.panel-bottom.panel-bottom-close.panel-bottom-dashed.panel-bottom-open.panel-left.panel-left-close.panel-left-dashed.panel-left-open.panel-left-right-dashed.panel-right.panel-right-close.panel-right-dashed.panel-right-open.panel-top.panel-top-bottom-dashed.panel-top-close.panel-top-dashed.panel-top-open.panels-left-bottom.panels-right-bottom.panels-top-left.paperclip.parentheses.parking-meter.party-popper.pause.paw-print.pc-case.pen.pen-line.pen-off.pen-tool.pencil.pencil-line.pencil-off.pencil-ruler.pentagon.percent.person-standing.philippine-peso.phone.phone-call.phone-forwarded.phone-incoming.phone-missed.phone-off.phone-outgoing.pi.piano.pickaxe.picture-in-picture.picture-in-picture-2.piggy-bank.pilcrow.pilcrow-left.pilcrow-right.pill.pill-bottle.pin.pin-off.pipette.pizza.plane.plane-landing.plane-takeoff.play.plug.plug-2.plug-zap.plus.pocket-knife.podcast.pointer.pointer-off.popcorn.popsicle.pound-sterling.power.power-off.presentation.printer.printer-check.printer-x.projector.proportions.puzzle.pyramid.qr-code.quote.rabbit.radar.radiation.radical.radio.radio-receiver.radio-tower.radius.rainbow.rat.ratio.receipt.receipt-cent.receipt-euro.receipt-indian-rupee.receipt-japanese-yen.receipt-pound-sterling.receipt-russian-ruble.receipt-swiss-franc.receipt-text.receipt-turkish-lira.rectangle-circle.rectangle-ellipsis.rectangle-goggles.rectangle-horizontal.rectangle-vertical.recycle.redo.redo-2.redo-dot.refresh-ccw.refresh-ccw-dot.refresh-cw.refresh-cw-off.refrigerator.regex.remove-formatting.repeat.repeat-1.repeat-2.replace.replace-all.reply.reply-all.rewind.ribbon.rocket.rocking-chair.roller-coaster.rose.rotate-3d.rotate-ccw.rotate-ccw-key.rotate-ccw-square.rotate-cw.rotate-cw-square.route.route-off.router.rows-2.rows-3.rows-4.rss.ruler.ruler-dimension-line.russian-ruble.sailboat.salad.sandwich.satellite.satellite-dish.saudi-riyal.save.save-all.save-off.scale.scale-3d.scaling.scan.scan-barcode.scan-eye.scan-face.scan-heart.scan-line.scan-qr-code.scan-search.scan-text.school.scissors.scissors-line-dashed.scooter.screen-share.screen-share-off.scroll.scroll-text.search.search-alert.search-check.search-code.search-slash.search-x.section.send.send-horizontal.send-to-back.separator-horizontal.separator-vertical.server.server-cog.server-crash.server-off.settings.settings-2.shapes.share.share-2.sheet.shell.shelving-unit.shield.shield-alert.shield-ban.shield-check.shield-ellipsis.shield-half.shield-minus.shield-off.shield-plus.shield-question-mark.shield-user.shield-x.ship.ship-wheel.shirt.shopping-bag.shopping-basket.shopping-cart.shovel.shower-head.shredder.shrimp.shrink.shrub.shuffle.sigma.signal.signal-high.signal-low.signal-medium.signal-zero.signature.signpost.signpost-big.siren.skip-back.skip-forward.skull.slash.slice.sliders-horizontal.sliders-vertical.smartphone.smartphone-charging.smartphone-nfc.smile.smile-plus.snail.snowflake.soap-dispenser-droplet.sofa.solar-panel.soup.space.spade.sparkle.sparkles.speaker.speech.spell-check.spell-check-2.spline.spline-pointer.split.spool.spotlight.spray-can.sprout.square.square-activity.square-arrow-down.square-arrow-down-left.square-arrow-down-right.square-arrow-left.square-arrow-out-down-left.square-arrow-out-down-right.square-arrow-out-up-left.square-arrow-out-up-right.square-arrow-right.square-arrow-right-enter.square-arrow-right-exit.square-arrow-up.square-arrow-up-left.square-arrow-up-right.square-asterisk.square-bottom-dashed-scissors.square-centerline-dashed-horizontal.square-centerline-dashed-vertical.square-chart-gantt.square-check.square-check-big.square-chevron-down.square-chevron-left.square-chevron-right.square-chevron-up.square-code.square-dashed.square-dashed-bottom.square-dashed-bottom-code.square-dashed-kanban.square-dashed-mouse-pointer.square-dashed-top-solid.square-divide.square-dot.square-equal.square-function.square-kanban.square-library.square-m.square-menu.square-minus.square-mouse-pointer.square-parking.square-parking-off.square-pause.square-pen.square-percent.square-pi.square-pilcrow.square-play.square-plus.square-power.square-radical.square-round-corner.square-scissors.square-sigma.square-slash.square-split-horizontal.square-split-vertical.square-square.square-stack.square-star.square-stop.square-terminal.square-user.square-user-round.square-x.squares-exclude.squares-intersect.squares-subtract.squares-unite.squircle.squircle-dashed.squirrel.stamp.star.star-half.star-off.step-back.step-forward.stethoscope.sticker.sticky-note.stone.store.stretch-horizontal.stretch-vertical.strikethrough.subscript.sun.sun-dim.sun-medium.sun-moon.sun-snow.sunrise.sunset.superscript.swatch-book.swiss-franc.switch-camera.sword.swords.syringe.table.table-2.table-cells-merge.table-cells-split.table-columns-split.table-of-contents.table-properties.table-rows-split.tablet.tablet-smartphone.tablets.tag.tags.tally-1.tally-2.tally-3.tally-4.tally-5.tangent.target.telescope.tent.tent-tree.terminal.test-tube.test-tube-diagonal.test-tubes.text-align-center.text-align-end.text-align-justify.text-align-start.text-cursor.text-cursor-input.text-initial.text-quote.text-search.text-select.text-wrap.theater.thermometer.thermometer-snowflake.thermometer-sun.thumbs-down.thumbs-up.ticket.ticket-check.ticket-minus.ticket-percent.ticket-plus.ticket-slash.ticket-x.tickets.tickets-plane.timer.timer-off.timer-reset.toggle-left.toggle-right.toilet.tool-case.toolbox.tornado.torus.touchpad.touchpad-off.towel-rack.tower-control.toy-brick.tractor.traffic-cone.train-front.train-front-tunnel.train-track.tram-front.transgender.trash.trash-2.tree-deciduous.tree-palm.tree-pine.trees.trending-down.trending-up.trending-up-down.triangle.triangle-alert.triangle-dashed.triangle-right.trophy.truck.truck-electric.turkish-lira.turntable.turtle.tv.tv-minimal.tv-minimal-play.type.type-outline.umbrella.umbrella-off.underline.undo.undo-2.undo-dot.unfold-horizontal.unfold-vertical.ungroup.university.unlink.unlink-2.unplug.upload.usb.user.user-check.user-cog.user-key.user-lock.user-minus.user-pen.user-plus.user-round.user-round-check.user-round-cog.user-round-key.user-round-minus.user-round-pen.user-round-plus.user-round-search.user-round-x.user-search.user-star.user-x.users.users-round.utensils.utensils-crossed.utility-pole.van.variable.vault.vector-square.vegan.venetian-mask.venus.venus-and-mars.vibrate.vibrate-off.video.video-off.videotape.view.voicemail.volleyball.volume.volume-1.volume-2.volume-off.volume-x.vote.wallet.wallet-cards.wallet-minimal.wallpaper.wand.wand-sparkles.warehouse.washing-machine.watch.waves.waves-arrow-down.waves-arrow-up.waves-ladder.waypoints.webcam.webhook.webhook-off.weight.weight-tilde.wheat.wheat-off.whole-word.wifi.wifi-cog.wifi-high.wifi-low.wifi-off.wifi-pen.wifi-sync.wifi-zero.wind.wind-arrow-down.wine.wine-off.workflow.worm.wrench.x.x-line-top.zap.zap-off.zodiac-aquarius.zodiac-aries.zodiac-cancer.zodiac-capricorn.zodiac-gemini.zodiac-leo.zodiac-libra.zodiac-ophiuchus.zodiac-pisces.zodiac-sagittarius.zodiac-scorpio.zodiac-taurus.zodiac-virgo.zoom-in.zoom-out`.split(`.`),RC=[[[37,10],[`letter`,`font size`,`text`,`formatting`,`smaller`]],[[37,10],[`letter`,`font size`,`text`,`formatting`,`larger`,`bigger`]],[[37,10],[`letter`,`font size`,`text`,`formatting`]],[[0,22],[`disability`,`disabled`,`dda`,`wheelchair`]],[[22,1,34,29,23],`pulse.action.motion.movement.exercise.fitness.healthcare.heart rate monitor.vital signs.vitals.emergency room.er.intensive care.hospital.defibrillator.earthquake.siesmic.magnitude.richter scale.aftershock.tremor.shockwave.audio.waveform.synthesizer.synthesiser.music`.split(`.`)],[[18],[`air conditioner`,`ac`,`central air`,`cooling`,`climate-control`]],[[23,8,12,4],[`stream`,`cast`,`mirroring`,`screen`,`monitor`,`macos`,`osx`]],[[12,26,38],[`morning`]],[[12,26,38],[`done`,`todo`,`tick`,`complete`,`task`]],[[12,26,38],[`remove`]],[[12,26,38],[`morning`,`turn-off`]],[[12,26,38],[`add`]],[[18,12,41],[`fire`,`alert`,`warning`,`detector`,`carbon monoxide`,`safety`,`equipment`,`amenities`]],[[28,23],[`photo`,`book`]],[[19],[`items`,`flex`,`justify`]],[[19],[`items`,`flex`,`justify`]],[[19],[`items`,`bottom`,`flex`,`justify`]],[[19],[`items`,`right`,`flex`,`justify`]],[[19],[`items`,`flex`,`justify`,`space`,`evenly`,`around`]],[[19],[`right`,`items`,`flex`,`justify`]],[[19],[`left`,`items`,`flex`,`justify`]],[[19],[`center`,`items`,`flex`,`justify`]],[[19],[`right`,`items`,`flex`,`justify`]],[[19],[`left`,`items`,`flex`,`justify`]],[[19],[`center`,`items`,`flex`,`justify`,`distribute`,`between`]],[[19],[`around`,`items`,`bottom`,`flex`,`justify`]],[[19],[`top`,`items`,`flex`,`justify`]],[[19],[`left`,`items`,`flex`,`justify`]],[[19],[`items`,`flex`,`justify`,`space`,`evenly`,`around`]],[[19],[`bottom`,`items`,`flex`,`justify`]],[[19],[`top`,`items`,`flex`,`justify`]],[[19],[`center`,`items`,`flex`,`justify`,`distribute`,`between`]],[[19],[`bottom`,`items`,`flex`,`justify`,`distribute`,`between`]],[[19],[`top`,`items`,`flex`,`justify`,`distribute`,`between`]],[[19],[`center`,`items`,`flex`,`justify`,`distribute`,`between`]],[[19],[`center`,`items`,`flex`,`justify`,`distribute`,`between`]],[[22,40],[`ambulance`,`emergency`,`medical`,`vehicle`,`siren`,`healthcare`,`transportation`,`rescue`,`urgent`,`first aid`]],[[37,11],[`and`,`typography`,`operator`,`join`,`concatenate`,`code`,`&`]],[[37,11],[`and`,`operator`,`then`,`code`,`&&`]],[[16,17],[`pottery`,`artifact`,`artefact`,`vase`,`ceramics`,`clay`,`archaeology`,`museum`,`wine`,`oil`]],[[40,37],[`ship`]],[[13],[`emoji`,`anger`,`face`,`emotion`]],[[13],[`emoji`,`nuisance`,`face`,`emotion`]],[[12,23,7],[`signal`,`connection`,`connectivity`,`tv`,`television`,`broadcast`,`live`,`frequency`,`tune`,`scan`,`channels`,`aerial`,`receiver`,`transmission`,`transducer`,`terrestrial`,`satellite`,`cable`]],[[5,39,17],[`metal`,`iron`,`alloy`,`materials`,`heavy`,`weight`,`blacksmith`,`forge`,`acme`]],[[28],[`camera`,`photo`,`pictures`,`shutter`,`exposure`]],[[19,10,11,14],[`application`,`menu bar`,`pane`,`executable`]],[[19,10,11,14],[`application`,`menu bar`,`pane`,`preferences`,`macos`,`osx`,`executable`]],[[16],[`fruit`,`food`,`healthy`,`snack`,`nutrition`,`fresh`,`produce`,`grocery`,`organic`,`harvest`,`vitamin`,`red`,`green`,`juicy`,`sweet`,`tart`,`bite`,`orchard`,`plant`,`core`,`raw`,`diet`]],[[14,20],[`index`,`backup`,`box`,`storage`,`records`]],[[14,20],[`unarchive`,`index`,`backup`,`box`,`storage`,`records`]],[[14,20],[`index`,`backup`,`box`,`storage`,`records`,`junk`]],[[18],[`sofa`,`furniture`,`leisure`,`lounge`,`loveseat`,`couch`]],[[3,17],[`backwards`,`reverse`,`direction`,`south`]],[[3,17,14],[`backwards`,`reverse`,`slow`,`direction`,`south`,`download`]],[[3,17],[`previous`,`back`,`direction`,`west`,`indicate turn`]],[[3,17],[`previous`,`back`,`direction`,`west`,`turn`,`corner`]],[[3,17],[`next`,`forward`,`direction`,`east`,`indicate turn`]],[[3,17],[`next`,`forward`,`direction`,`east`,`turn`,`corner`]],[[3,37,11,17],[`shift`,`keyboard`,`button`,`mac`,`capitalize`,`capitalise`,`forward`,`direction`,`north`]],[[3,37,11,17],[`caps lock`,`capitals`,`keyboard`,`button`,`mac`,`forward`,`direction`,`north`,`faster`,`speed`,`boost`]],[[3],[`backwards`,`reverse`,`direction`,`south`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`numerical`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`numerical`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`alphabetical`]],[[3,14],[`backwards`,`reverse`,`direction`,`south`,`download`,`expand`,`fold`,`vertical`]],[[3],[`direction`,`south-west`,`diagonal`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[3],[`direction`,`south-east`,`diagonal`]],[[3],[`direction`,`south`,`waypoint`,`location`,`step`,`into`]],[[3,14,11],[`behind`,`direction`,`south`,`download`,`save`,`git`,`version control`,`pull`,`collapse`,`fold`,`vertical`]],[[3],[`bidirectional`,`two-way`,`2-way`,`swap`,`switch`,`network`,`traffic`,`flow`,`mobile data`,`internet`,`sort`,`reorder`,`move`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`alphabetical`,`reverse`]],[[3],[`previous`,`back`,`direction`,`west`,`<-`]],[[3],[`previous`,`back`,`direction`,`west`,`expand`,`fold`,`horizontal`,`<-|`]],[[3],[`bidirectional`,`two-way`,`2-way`,`swap`,`switch`,`transaction`,`reorder`,`move`,`<-`,`->`]],[[3],[`previous`,`back`,`direction`,`west`,`collapse`,`fold`,`horizontal`,`|<-`]],[[3],[`forward`,`next`,`direction`,`east`,`->`]],[[3],[`next`,`forward`,`direction`,`east`,`export`,`expand`,`fold`,`horizontal`,`|->`]],[[3],[`bidirectional`,`two-way`,`2-way`,`swap`,`switch`,`transaction`,`reorder`,`move`,`<-`,`->`]],[[3,11],[`next`,`forward`,`direction`,`east`,`tab`,`keyboard`,`mac`,`indent`,`collapse`,`fold`,`horizontal`,`->|`]],[[3],[`forward`,`direction`,`north`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`numerical`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`numerical`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`alphabetical`]],[[3],[`bidirectional`,`two-way`,`2-way`,`swap`,`switch`,`network`,`mobile data`,`internet`,`sort`,`reorder`,`move`]],[[3],[`direction`,`north`,`step`,`out`]],[[3,14,11],[`forward`,`direction`,`north`,`upload`,`git`,`version control`,`push`,`expand`,`fold`,`vertical`]],[[3],[`direction`,`north-west`,`diagonal`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[3],[`direction`,`north-east`,`diagonal`]],[[3,14],[`forward`,`direction`,`north`,`upload`,`collapse`,`fold`,`vertical`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[37,19,3],[`filter`,`sort`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`,`alphabetical`,`reverse`]],[[3,40,20],[`direction`,`orientation`,`this way up`,`vertical`,`package`,`box`,`fragile`,`postage`,`shipping`]],[[37,21,11],[`reference`,`times`,`multiply`,`multiplication`,`operator`,`code`,`glob pattern`,`wildcard`,`*`]],[[37,1],[`mention`,`at`,`email`,`message`,`@`]],[[29],[`atomic`,`nuclear`,`physics`,`particle`,`element`,`molecule`,`electricity`,`energy`,`chemistry`]],[[23,7],[`graphic equaliser`,`sound`,`noise`,`listen`,`hearing`,`hertz`,`frequency`,`wavelength`,`vibrate`,`sine`,`synthesizer`,`synthesiser`,`levels`,`track`,`music`,`playback`,`radio`,`broadcast`,`airwaves`,`voice`,`vocals`,`singer`,`song`]],[[23,7],[`sound`,`noise`,`listen`,`hearing`,`hertz`,`frequency`,`wavelength`,`vibrate`,`sine`,`synthesizer`,`synthesiser`,`levels`,`track`,`music`,`playback`,`radio`,`broadcast`,`airwaves`,`voice`,`vocals`,`singer`,`song`]],[[1,35,17],[`achievement`,`badge`,`rosette`,`prize`,`winner`]],[[39,17],[`hatchet`,`weapon`,`chop`,`sharp`,`equipment`,`fireman`,`firefighter`,`brigade`,`lumberjack`,`woodcutter`,`logger`,`forestry`]],[[10],[`gizmo`,`coordinates`]],[[0,27],[`child`,`childproof`,`children`]],[[17,28,41],[`bag`,`hiking`,`travel`,`camping`,`school`,`childhood`]],[[1,34,32],[`check`,`verified`,`unverified`]],[[1,34],[`check`,`verified`,`unverified`,`security`,`safety`,`issue`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`cents`,`dollar`,`usd`,`$`,`¢`]],[[34],[`verified`,`check`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`usd`,`$`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`€`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`inr`,`₹`]],[[1,0,34],[`verified`,`unverified`,`help`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`jpy`,`¥`]],[[34],[`verified`,`unverified`,`delete`,`remove`,`erase`]],[[34,15,33,21],[`verified`,`unverified`,`sale`,`discount`,`offer`,`marketing`,`sticker`,`price tag`]],[[34],[`verified`,`unverified`,`add`,`create`,`new`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`british`,`gbp`,`£`]],[[0,34,32],[`verified`,`unverified`,`help`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`rub`,`₽`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`chf`,`₣`]],[[33,15],[`discount`,`offer`,`sale`,`voucher`,`tag`,`monetization`,`marketing`,`finance`,`financial`,`exchange`,`transaction`,`payment`,`try`,`₺`]],[[34],[`verified`,`unverified`,`lost`,`delete`,`remove`]],[[40,41],[`baggage`,`luggage`,`travel`,`cart`,`trolley`,`suitcase`]],[[13],[`party`,`festival`,`congratulations`,`celebration`,`decoration`,`colorful`,`floating`,`fun`,`birthday`,`event`,`entertainment`]],[[1],[`cancel`,`no`,`stop`,`forbidden`,`prohibited`,`error`,`incorrect`,`mistake`,`wrong`,`failure`,`circle`,`slash`,`null`,`void`]],[[16],[`fruit`,`food`]],[[22],[`plaster`,`band-aid`,`first aid`,`medical`,`health`,`wound`,`injury`,`care`,`treatment`,`healing`,`protection`,`emergency`,`aid`,`safety`,`patch`]],[[15],[`currency`,`money`,`payment`]],[[15],[`bill`,`currency`,`money`,`payment`,`funds`,`transaction`,`cash`,`finance`,`withdraw`,`expense`,`out`,`payout`,`refund`,`debit`,`spending`,`decrease`]],[[15],[`bill`,`currency`,`money`,`payment`,`funds`,`transaction`,`cash`,`finance`,`deposit`,`earnings`,`income`,`in`,`credit`,`prepaid`,`growth`,`increase`]],[[15],[`bill`,`currency`,`money`,`payment`,`funds`,`transaction`,`cash`,`finance`,`error`,`failed`,`rejected`,`canceled`,`declined`,`lost`,`delete`,`remove`]],[[33],[`scan`,`checkout`,`till`,`cart`,`transaction`,`purchase`,`buy`,`product`,`packaging`,`retail`,`consumer`]],[[16,25],[`keg`,`drum`,`tank`,`wine`,`beer`,`oak`,`wood`,`firkin`,`hogshead`,`kilderkin`,`barrique`,`solera`,`aging`,`whiskey`,`brewery`,`distillery`,`winery`,`vineyard`]],[[37],[`text`,`format`,`color`]],[[41],[`amenities`,`services`,`bathroom`,`shower`]],[[8,12],[`power`,`electricity`,`energy`,`accumulator`,`charge`]],[[8,12],[`power`,`electricity`,`energy`,`accumulator`,`charge`]],[[8,12],[`power`,`electricity`,`energy`,`accumulator`,`charge`]],[[8,12],[`power`,`electricity`,`energy`,`accumulator`,`charge`]],[[8,12],[`power`,`electricity`,`energy`,`accumulator`,`charge`]],[[12],[`power`,`electricity`,`energy`,`accumulator`,`charge`,`plus`,`economy`,`health`,`add`,`new`,`maximum`,`upgrade`,`extra`,`+`]],[[8,12],[`power`,`electricity`,`energy`,`accumulator`,`charge`,`exclamation mark`]],[[29,17],[`cup`,`lab`,`chemistry`,`experiment`,`test`]],[[16],[`legume`,`soy`,`food`,`seed`]],[[16],[`soy free`,`legume`,`soy`,`food`,`seed`,`allergy`,`intolerance`,`diet`]],[[18],[`sleep`,`hotel`,`furniture`]],[[18],[`sleep`,`hotel`,`furniture`]],[[18],[`sleep`,`hotel`,`furniture`]],[[16],[`food`,`dish`,`restaurant`,`course`,`meal`,`meat`,`bbq`,`steak`]],[[16],[`alcohol`,`bar`,`beverage`,`brewery`,`drink`]],[[16],[`alcohol`,`bar`,`beverage`,`brewery`,`drink`]],[[1,26],[`alarm`,`notification`,`sound`,`reminder`]],[[1,26],[`alarm`,`notification`,`sound`,`reminder`,`unread`]],[[12,26,18],[`fire alarm`,`flames`,`smoke`,`firefighter`,`fireman`,`department`,`brigade`,`station`,`emergency`,`alert`,`safety`,`school bell`,`period break`,`recess`,`doorbell`,`entrance`,`entry`,`ring`,`reception`]],[[26],[`alarm`,`notification`,`silent`,`reminder`,`delete`,`remove`,`erase`]],[[26],[`alarm`,`notification`,`silent`,`reminder`]],[[26],[`notification`,`silent`,`reminder`,`add`,`create`,`new`]],[[26],[`alarm`,`notification`,`sound`,`reminder`]],[[19,10,39],[`insert`,`add`,`left`,`slot`,`squeeze`,`space`,`vertical`,`grid`,`table`,`rows`,`cells`,`excel`,`spreadsheet`,`accountancy`,`data`,`enter`,`entry`,`entries`,`blocks`,`rectangles`,`chevron`]],[[19,10,39],[`insert`,`add`,`right`,`slot`,`squeeze`,`space`,`vertical`,`grid`,`table`,`rows`,`cells`,`excel`,`spreadsheet`,`accountancy`,`data`,`enter`,`entry`,`entries`,`blocks`,`rectangles`,`chevron`]],[[19,10,39],[`insert`,`add`,`top`,`slot`,`squeeze`,`space`,`vertical`,`grid`,`table`,`columns`,`cells`,`data`,`enter`,`entry`,`entries`,`blocks`,`rectangles`,`chevron`]],[[19,10,39],[`insert`,`add`,`bottom`,`slot`,`squeeze`,`space`,`vertical`,`grid`,`table`,`columns`,`cells`,`data`,`enter`,`entry`,`entries`,`blocks`,`rectangles`,`chevron`]],[[13],[`arm`,`muscle`,`strong`,`working out`,`athletic`,`toned`,`muscular`,`forelimb`,`curled`]],[[40],[`bicycle`,`transport`,`trip`]],[[37,11],[`code`,`digits`,`computer`,`zero`,`one`,`boolean`]],[[25,24,28,29,41,11],[`field glasses`,`lorgnette`,`pince-nez`,`observation`,`sightseeing`,`nature`,`wildlife`,`birdwatching`,`scouting`,`surveillance`,`search`,`discovery`,`monitoring`,`lookout`,`viewpoint`,`travel`,`tourism`,`research`]],[[29],[`fallout`,`waste`,`biology`,`chemistry`,`chemical`,`element`]],[[2],[`peace`,`freedom`,`wing`,`avian`,`tweet`]],[[24,2,25,18],[`birdhouse`,`bird`,`garden`,`home`,`house`,`woodwork`]],[[4,11,15],[`currency`,`money`,`payment`]],[[10,28,39,11],[`mode`,`overlay`,`multiply`,`screen`,`opacity`,`transparency`,`alpha`,`filters`,`lenses`,`mixed`,`shades`,`tints`,`hues`,`saturation`,`brightness`,`overlap`,`colors`,`colours`]],[[18],[`shades`,`screen`,`curtain`,`shutter`,`roller blind`,`window`,`lighting`,`household`,`home`]],[[11,19,32],[`addon`,`plugin`,`integration`,`extension`,`package`,`build`,`stack`,`toys`,`kids`,`children`,`learning`,`squares`,`corner`]],[[8,12],[`wireless`]],[[8,12],[`paired`]],[[8,12],[`lost`]],[[8,12],[`pairing`]],[[37],[`text`,`strong`,`format`]],[[39,18],[`nut`,`screw`,`settings`,`preferences`,`configuration`,`controls`,`edit`,`diy`,`fixed`,`build`,`construction`,`parts`]],[[31,39],[`fatal`,`error`,`crash`,`blockbuster`,`mine`,`explosion`,`explode`,`explosive`]],[[2,22,17],[`health`,`skeleton`,`skull`,`death`,`pets`,`dog`]],[[37,11,17],`reading.paperback.booklet.magazine.leaflet.pamphlet.tome.library.writing.written.writer.author.story.script.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.documentation`.split(`.`)],[[37,17],`dictionary.define.definition.thesaurus.encyclopedia.encyclopaedia.reading.booklet.magazine.leaflet.pamphlet.tome.library.writing.written.writer.author.story.script.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.language.translate.alphabetical.a-z.ordered`.split(`.`)],[[37,11,17],`reading.paperback.booklet.magazine.leaflet.pamphlet.tome.library.writing.written.writer.author.story.script.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.documentation.warning.alert.danger.exclamation mark`.split(`.`)],[[23,37],[`audiobook`,`reading`,`listening`,`sound`,`story`,`fiction`,`novel`,`information`,`knowledge`,`education`,`student`,`study`,`learning`,`research`]],[[37,11,17],`read.booklet.magazine.leaflet.pamphlet.library.written.authored.published.informed.knowledgeable.educated.schooled.homework.examined.tested.marked.passed.graduated.studied.learned.lesson.researched.documented.revealed.blank.plain language.true.truth.verified.corrected.task.todo.done.completed.finished.ticked`.split(`.`)],[[11,37,17],`code.coding.version control.git.repository.clone.fork.duplicate.multiple.books.library.copies.copied.plagiarism.plagiarised.plagiarized.reading list.information.informed.knowledge.knowledgeable.knowledgable.education.high school.university.college.academy.student.study.learning.research.smart.intelligent.intellectual`.split(`.`)],[[11],[`code`,`coding`,`version control`,`git`,`repository`,`template`,`draft`,`script`,`screenplay`,`writing`,`writer`,`author`,`unwritten`,`unpublished`,`untold`]],[[11],[`code`,`coding`,`version control`,`git`,`repository`,`pull`]],[[23,37],[`audiobook`,`reading`,`listening`,`sound`,`story`,`fiction`,`novel`,`information`,`knowledge`,`education`,`student`,`study`,`learning`,`research`]],[[34,37,17],`diary.romance.novel.journal.entry.entries.personal.private.secret.crush.like.love.emotion.feminine.girls.teens.teenager.therapy.theraputic.therapist.planner.organizer.organiser.notes.notepad.stationery.sketchbook.writing.written.reading.favorite.favourite.high school`.split(`.`)],[[28,37,23,14,34,33,41],[`images`,`pictures`,`photos`,`album`,`collection`,`event`,`magazine`,`catalog`,`catalogue`,`brochure`,`browse`,`gallery`]],[[11,31,17],[`code`,`coding`,`version control`,`git`,`repository`,`private`,`public`,`secret`,`unlocked`,`hidden`,`revealed`,`knowledge`,`learning`]],[[11,31,17],[`code`,`coding`,`version control`,`git`,`repository`,`private`,`secret`,`hidden`,`knowledge`]],[[37,11,17],`dictionary.reading.booklet.magazine.leaflet.pamphlet.tome.library.writing.written.writer.author.story.script.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.documentation.saved.later.future.reference.index.code.coding.version control.git.repository`.split(`.`)],[[11,37,17],[`code`,`coding`,`version control`,`git`,`repository`,`remove`,`delete`,`censor`,`cancel`,`forbid`,`prohibit`,`ban`,`uneducated`,`re-educate`,`unlearn`,`downgrade`]],[[37,11,17],`reading.pages.booklet.magazine.leaflet.pamphlet.library.writing.written.writer.author.story.script.screenplay.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.documentation.revealed.blank.plain`.split(`.`)],[[37,11,17],`read.pages.booklet.magazine.leaflet.pamphlet.library.written.authored.published.informed.knowledgeable.educated.schooled.homework.examined.tested.marked.passed.graduated.studied.learned.lesson.researched.documented.revealed.blank.plain language.true.truth.verified.corrected.task.todo.done.completed.finished.ticked`.split(`.`)],[[37,11],`reading.pages.booklet.magazine.leaflet.pamphlet.library.writing.written.writer.author.story.script.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.documentation.revealed`.split(`.`)],[[11,37,17],[`code`,`coding`,`version control`,`git`,`repository`,`remove`,`delete`,`read`,`write`,`author`,`publish`,`inform`,`graduate`,`re-educate`,`study`,`learn`,`research`,`knowledge`,`improve`,`upgrade`,`level up`]],[[37,11,17],[`reading`,`library`,`study`,`education`,`research`,`knowledge`,`discover`,`browsing`,`lookup`,`finding`,`scanning`]],[[37,17],`reading.booklet.magazine.leaflet.pamphlet.tome.library.writing.written.writer.author.story.script.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.documentation`.split(`.`)],[[37,10,17],`thesaurus.synonym.reading.booklet.magazine.leaflet.pamphlet.tome.library.writing.written.writer.author.story.script.fiction.novel.information.knowledge.education.high school.university.college.academy.student.study.learning.homework.research.language.translate.typography.fonts.collection`.split(`.`)],[[11],[`code`,`coding`,`version control`,`git`,`repository`,`push`]],[[11],[`code`,`coding`,`version control`,`git`,`repository`,`push`,`force`]],[[1,8,7,34],[`person`,`people`,`family`,`friends`,`acquaintances`,`contacts`,`details`,`addresses`,`phone numbers`,`directory`,`listing`,`networking`]],[[37,17],[`code`,`coding`,`version control`,`git`,`repository`,`remove`,`delete`,`reading`,`misinformation`,`disinformation`,`misinformed`,`charlatan`,`sophistry`,`false`,`lies`,`untruth`,`propaganda`,`censored`,`cancelled`,`forbidden`,`prohibited`,`banned`,`uneducated`,`re-education`,`unlearn`]],[[1],[`save`,`favorite`,`mark`,`label`,`attachment`,`file`,`stick`,`pin`,`read`,`clip`,`marker`,`tag`]],[[1],[`read`,`finished`,`complete`,`clip`,`marker`,`tag`,`task`,`todo`]],[[1],[`delete`,`remove`]],[[1],[`add`]],[[1],[`read`,`clip`,`marker`,`tag`,`cancel`,`close`,`delete`,`remove`,`clear`]],[[12,23,34],[`radio`,`speakers`,`audio`,`music`,`sound`,`broadcast`,`live`,`frequency`]],[[11,34],[`robot`,`ai`,`chat`,`assistant`]],[[11,34],[`robot`,`ai`,`chat`,`assistant`]],[[11,34],[`robot`,`ai`,`chat`,`assistant`]],[[16],[`alcohol`,`drink`,`glass`,`goblet`,`chalice`,`vineyard`,`winery`,`red`,`white`,`rose`,`dry`,`sparkling`,`bar`,`party`,`nightclub`,`nightlife`,`sommelier`,`restaurant`,`dinner`,`meal`]],[[17,39],[`archer`,`archery`,`game`,`war`,`weapon`]],[[32,17,11,21],[`cube`,`package`,`container`,`storage`,`geometry`,`3d`,`isometric`]],[[32,17,11],[`cubes`,`packages`,`parts`,`group`,`units`,`collection`,`cluster`,`geometry`]],[[11,14],[`json`,`code`,`token`,`curly brackets`,`data`,`{`,`}`]],[[11,14],[`code`,`token`,`array`,`list`,`square`,`[`,`]`]],[[22,29],[`medical`,`mind`,`mental`,`intellect`,`cerebral`,`consciousness`,`genius`,`artificial intelligence`,`ai`,`think`,`thought`,`insight`,`intelligent`,`smart`]],[[29,11],[`mind`,`intellect`,`artificial intelligence`,`ai`,`deep learning`,`machine learning`,`computing`]],[[29,11],[`mind`,`intellect`,`artificial intelligence`,`ai`,`deep learning`,`machine learning`,`computing`]],[[5,18],[`bricks`,`mortar`,`cement`,`materials`,`construction`,`builder`,`labourer`,`quantity surveyor`,`blocks`,`stone`]],[[31,18,8],[`firewall`,`security`,`bricks`,`mortar`,`cement`,`materials`,`construction`,`builder`,`labourer`,`quantity surveyor`,`blocks`,`stone`,`campfire`,`camping`,`wilderness`,`outdoors`,`lit`,`warmth`,`wood`,`twigs`,`sticks`]],[[31,18,8],`firewall.security.bricks.mortar.cement.materials.construction.builder.labourer.quantity surveyor.blocks.stone.cybersecurity.secure.safety.protection.guardian.armored.armoured.defense.defence.defender.block.threat.prevention.antivirus.vigilance.vigilant.detection.scan.find.strength.strong.tough.invincible.invincibility.invulnerable.undamaged.audit.admin.verification.crest.bravery.knight.foot soldier.infantry.trooper.pawn.battle.war.military.army.cadet.scout`.split(`.`)],[[40],[`work`,`bag`,`baggage`,`folder`]],[[40],[`work`,`bag`,`baggage`,`folder`,`portfolio`]],[[41,40],[`baggage`,`luggage`,`travel`,`suitcase`,`conveyor`,`carousel`]],[[22,40],[`doctor`,`medicine`,`first aid`]],[[10,19],[`bring`,`send`,`move`,`over`,`forward`,`front`,`overlap`,`layer`,`order`]],[[37,10,39],[`clean`,`sweep`,`refactor`,`remove`,`draw`,`paint`,`color`,`artist`]],[[18,39,10],`cleaning.utensil.housekeeping.tool.sweeping.scrubbing.hygiene.maintenance.household.cleaner.chores.equipment.sanitation.bristles.handle.home care.sanitize.purify.wash.disinfect.sterilize.scrub.polish.decontaminate.wipe.spotless.remove.empty.erase.purge.eliminate`.split(`.`)],[[42],[`water`,`cleaning`,`soap`,`bath`,`hygiene`,`freshness`,`wash`,`foam`,`cleanliness`,`shampoo`,`purity`,`splash`,`lightness`,`airy`,`relaxation`,`spa`,`bubbly`,`fluid`,`floating`,`drop`]],[[11,2],[`issue`,`error`,`defect`,`testing`,`troubleshoot`,`problem`,`report`,`debug`,`code`,`insect`,`beetle`]],[[11,2],[`issue`,`fixed`,`resolved`,`testing`,`debug`,`code`,`insect`,`kill`,`exterminate`,`pest control`]],[[11,2],[`issue`,`testing`,`debug`,`reproduce`,`code`,`insect`]],[[1,5],[`organisation`,`organization`]],[[1,5],[`business`,`company`,`enterprise`,`skyscraper`,`organisation`,`organization`,`city`]],[[40],[`bus`,`vehicle`,`transport`,`trip`]],[[40],[`coach`,`vehicle`,`trip`,`road`]],[[8,12,23],`cord.wire.connector.connection.link.signal.console.computer.equipment.electricity.energy.electronics.recharging.charger.power.supply.disconnected.unplugged.plugs.interface.input.output.audio video.av.rca.scart.tv.television.optical`.split(`.`)],[[40,41],[`ski lift`,`winter holiday`,`alpine`,`resort`,`mountains`]],[[16,34,1],[`birthday`,`birthdate`,`celebration`,`party`,`surprise`,`gateaux`,`dessert`,`fondant`,`icing sugar`,`sweet`,`baking`]],[[16,34],[`birthday`,`birthdate`,`celebration`,`party`,`surprise`,`gateaux`,`dessert`,`candles`,`wish`,`fondant`,`icing sugar`,`sweet`,`baking`]],[[21,12],[`count`,`calculating machine`]],[[38],[`date`,`month`,`year`,`event`,`birthday`,`birthdate`]],[[38],[`date`,`month`,`year`,`event`,`single`,`singular`,`once`,`1`,`first`]],[[38],[`date`,`month`,`year`,`event`,`sort`,`order`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[38],[`date`,`month`,`year`,`event`,`sort`,`order`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[38],[`date`,`day`,`month`,`year`,`event`,`confirm`,`subscribe`,`schedule`,`done`,`todo`,`tick`,`complete`,`task`]],[[38],[`date`,`day`,`month`,`year`,`event`,`confirm`,`subscribe`,`schedule`,`done`,`todo`,`tick`,`complete`,`task`]],[[38],[`date`,`day`,`month`,`year`,`event`,`clock`,`hour`]],[[38],[`date`,`day`,`month`,`year`,`events`,`settings`,`gear`,`cog`]],[[38],[`date`,`month`,`year`,`event`]],[[38,14],[`date`,`month`,`year`,`event`,`birthday`,`birthdate`,`ics`]],[[38],[`date`,`month`,`year`,`event`,`heart`,`favourite`,`subscribe`,`valentines day`]],[[38],[`date`,`day`,`month`,`year`,`event`,`delete`,`remove`]],[[38],[`date`,`day`,`month`,`year`,`event`,`delete`,`remove`]],[[38],[`date`,`day`,`month`,`year`,`event`,`delete`,`remove`]],[[38],[`date`,`day`,`month`,`year`,`event`,`add`,`subscribe`,`create`,`new`]],[[38],[`date`,`day`,`month`,`year`,`event`,`add`,`subscribe`,`create`,`new`]],[[38],[`date`,`day`,`month`,`year`,`event`,`range`,`period`]],[[38],[`date`,`day`,`month`,`year`,`events`,`search`,`lens`]],[[3,38],[`repeat`,`refresh`,`reconnect`,`transfer`,`backup`,`date`,`month`,`year`,`event`,`subscribe`,`recurring`,`schedule`,`reminder`,`automatic`,`auto`]],[[38],[`date`,`day`,`month`,`year`,`event`,`remove`,`busy`]],[[38],[`date`,`day`,`month`,`year`,`event`,`remove`]],[[38],[`date`,`month`,`year`,`event`,`dates`,`months`,`years`,`events`]],[[28,12,7],[`photography`,`lens`,`focus`,`capture`,`shot`,`visual`,`image`,`device`,`equipment`,`photo`,`webcam`,`video`]],[[28,12,7],[`photo`,`webcam`,`video`]],[[16],[`sugar`,`food`,`sweet`]],[[16],[`sugar`,`food`,`sweet`,`christmas`,`xmas`]],[[16],[`sugar free`,`food`,`sweet`,`allergy`,`intolerance`,`diet`]],[[24],[`cannabis`,`weed`,`leaf`]],[[24],[`cannabis`,`weed`,`leaf`]],[[23],[`closed captions`,`subtitles`,`subhead`,`transcription`,`transcribe`,`dialogue`,`accessibility`]],[[23],[`closed captions`,`subtitles`,`subhead`,`transcription`,`transcribe`,`dialogue`,`accessibility`]],[[40],[`vehicle`,`drive`,`trip`,`journey`]],[[40],[`vehicle`,`drive`,`trip`,`journey`]],[[40],[`cab`,`vehicle`,`drive`,`trip`,`journey`]],[[40,41,24],[`trailer`,`tow`,`camping`,`campsite`,`mobile home`,`holiday`,`nomadic`,`wilderness`,`outdoors`]],[[8,7,23,12],[`cellphone`,`smartphone`,`mobile`,`network`,`cellular`,`service`,`provider`,`signal`,`coverage`,`disk`,`data`,`format`,`storage`,`flash`,`digital`,`contacts`,`phone book`,`contractual`,`circuit board`,`chip`]],[[16],[`vegetable`,`food`,`eat`]],[[37,11],[`text`,`letters`,`characters`,`font`,`typography`]],[[37],[`text`,`letters`,`characters`,`font`,`typography`]],[[37,11],[`text`,`letters`,`characters`,`font`,`typography`]],[[8,12,23,7,14],[`audio`,`music`,`recording`,`play`]],[[12,8],[`chromecast`,`airplay`,`screen`]],[[5,17,25],[`fortress`,`stronghold`,`palace`,`chateau`,`building`]],[[2],[`animal`,`pet`,`kitten`,`feline`]],[[31,12,7,8,28],[`camera`,`surveillance`,`recording`,`film`,`videotape`,`crime`,`watching`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`area`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`trending down`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`trending up`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`multivariate`,`categorical`,`comparison`]],[[6,15],[`trading`,`trader`,`financial`,`markets`,`portfolio`,`assets`,`prices`,`value`,`valuation`,`commodities`,`currencies`,`currency`,`stocks`,`exchange`,`hedge fund`,`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`trending down`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`trending up`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`multivariate`,`categorical`,`comparison`]],[[6],[`diagram`,`graph`,`timeline`,`planning`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`topology`,`cluster`,`web`,`nodes`,`connections`,`edges`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`trending down`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`trending up`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`trending up`]],[[6,38,11,10],[`projects`,`manage`,`overview`,`roadmap`,`plan`,`intentions`,`timeline`,`deadline`,`date`,`event`,`range`,`period`,`productivity`,`work`,`agile`,`code`,`coding`]],[[6,14],[`statistics`,`analytics`,`diagram`,`presentation`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`]],[[6],[`statistics`,`analytics`,`diagram`,`graph`,`curve`,`continuous`,`smooth`,`polynomial`,`quadratic`,`function`,`interpolation`]],[[26],[`done`,`todo`,`tick`,`complete`,`task`]],[[26],[`done`,`received`,`double`,`todo`,`tick`,`complete`,`task`]],[[26],[`done`,`todo`,`tick`,`complete`,`task`]],[[16],[`cooking`,`food`,`kitchen`,`restaurant`]],[[16],[`fruit`,`food`]],[[17,13],[`mitre`,`miter`,`piece`,`board game`,`religion`]],[[17,13],[`ruler`,`crown`,`piece`,`board game`,`stalemate`]],[[17,13],[`piece`,`horse`,`board game`]],[[17,13],[`piece`,`board game`]],[[17,13],[`ruler`,`crown`,`piece`,`board game`,`stalemate`]],[[17,13],[`castle`,`piece`,`board game`]],[[3,17],[`backwards`,`reverse`,`slow`,`dropdown`]],[[3,23],[`previous`,`music`]],[[3,23],[`skip`,`next`,`music`]],[[3],[`back`,`previous`,`less than`,`fewer`,`menu`,`<`]],[[3,21,11],[`forward`,`next`,`more than`,`greater`,`menu`,`code`,`coding`,`command line`,`terminal`,`prompt`,`shell`,`>`]],[[3,21,17],[`caret`,`keyboard`,`mac`,`control`,`ctrl`,`superscript`,`exponential`,`power`,`ahead`,`fast`,`^`,`dropdown`]],[[3,17],[`backwards`,`reverse`,`slower`]],[[3],[`collapse`,`fold`,`vertical`]],[[3,17],[`turn`,`corner`]],[[3],[`expand`,`horizontal`,`unfold`]],[[7,12,23,17],[`internet`,`network`,`connection`,`cable`,`lan`,`port`,`router`,`switch`,`hub`,`modem`,`web`,`online`,`networking`,`communication`,`socket`,`plug`,`slot`,`controller`,`connector`,`interface`,`console`,`signal`,`data`,`input`,`output`]],[[3,17],[`turn`,`corner`]],[[3],[`collapse`,`fold`,`horizontal`]],[[3,17],[`forward`,`ahead`,`faster`,`speed`,`boost`]],[[3],[`expand`,`unfold`,`vertical`]],[[5,25],[`temple`,`building`]],[[41,40,22],[`smoking`]],[[41,40,22],[`smoking`,`no-smoking`]],[[32],[`off`,`zero`,`record`,`shape`]],[[26],[`warning`,`alert`,`danger`,`exclamation mark`]],[[3,17],[`backwards`,`reverse`,`direction`,`south`,`sign`,`button`]],[[3,17],[`previous`,`back`,`direction`,`west`,`sign`,`turn`,`button`,`<-`]],[[3],[`outwards`,`direction`,`south-west`,`diagonal`]],[[3],[`outwards`,`direction`,`south-east`,`diagonal`]],[[3,11],[`outwards`,`direction`,`north-west`,`diagonal`,`keyboard`,`button`,`escape`]],[[3],[`outwards`,`direction`,`north-east`,`diagonal`]],[[3,17],[`next`,`forward`,`direction`,`east`,`sign`,`turn`,`button`,`->`]],[[3,17],[`forward`,`direction`,`north`,`sign`,`button`]],[[26],[`done`,`todo`,`tick`,`complete`,`task`]],[[26],[`done`,`todo`,`tick`,`complete`,`task`]],[[3],[`back`,`menu`]],[[3],[`back`,`previous`,`less than`,`fewer`,`menu`,`<`]],[[3],[`back`,`more than`,`greater`,`menu`,`>`]],[[3],[`caret`,`ahead`,`menu`,`^`]],[[11,32],[`pending`,`dot`,`progress`,`issue`,`draft`,`code`,`coding`,`version control`]],[[21],[`calculate`,`math`,`÷`,`/`]],[[15],[`monetization`,`marketing`,`currency`,`money`,`payment`]],[[11,32],[`pending`,`dot`,`progress`,`issue`,`code`,`coding`,`version control`,`choices`,`multiple choice`,`choose`]],[[11,32],[`pending`,`dot`,`progress`,`issue`,`draft`,`code`,`coding`,`version control`]],[[19,11],[`ellipsis`,`et cetera`,`etc`,`loader`,`loading`,`progress`,`pending`,`throbber`,`menu`,`options`,`operator`,`code`,`spread`,`rest`,`more`,`further`,`extra`,`overflow`,`dots`,`…`,`...`]],[[21],[`calculate`,`shape`,`=`]],[[3,11],[`north`,`up`,`upgrade`,`improve`,`circle`,`button`]],[[7,34],[`stories`,`social media`,`instagram`,`facebook`,`meta`,`snapchat`,`sharing`,`content`]],[[40,35,29],[`dashboard`,`dial`,`meter`,`speed`,`pressure`,`measure`,`level`]],[[21],[`subtract`,`remove`,`decrease`,`reduce`,`calculate`,`line`,`operator`,`code`,`coding`,`minimum`,`downgrade`,`-`]],[[32],[`diameter`,`zero`,`ø`,`nothing`,`null`,`void`,`cancel`,`ban`,`no`,`stop`,`forbidden`,`prohibited`,`error`,`incorrect`,`mistake`,`wrong`,`failure`]],[[40,25],[`parking lot`,`car park`]],[[40,25],[`parking lot`,`car park`,`no parking`]],[[23],[`music`,`audio`,`stop`]],[[34,15,33,21],[`verified`,`unverified`,`sale`,`discount`,`offer`,`marketing`,`sticker`,`price tag`]],[[32],[`off`,`zero`,`record`,`shape`,`circle-pile`,`circle`,`pile`,`stack`,`layer`,`structure`,`form`,`group`,`collection`,`stock`,`inventory`,`materials`,`warehouse`]],[[23],[`music`,`start`,`run`]],[[21,11,9,17],[`add`,`new`,`increase`,`increment`,`positive`,`calculate`,`crosshair`,`aim`,`target`,`scope`,`sight`,`reticule`,`maximum`,`upgrade`,`extra`,`operator`,`join`,`concatenate`,`code`,`coding`,`+`]],[[15],[`monetization`,`coin`,`penny`,`marketing`,`currency`,`money`,`payment`,`british`,`gbp`,`£`]],[[8],[`on`,`off`,`device`,`switch`,`toggle`,`binary`,`boolean`,`reboot`,`restart`,`button`,`keyboard`,`troubleshoot`]],[[0,37,26],[`question mark`]],[[11,21],[`diameter`,`zero`,`ø`,`nothing`,`null`,`void`,`cancel`,`ban`,`no`,`stop`,`forbidden`,`prohibited`,`error`,`incorrect`,`mistake`,`wrong`,`failure`,`divide`,`division`,`or`,`/`]],[[32,21,11],[`diameter`,`zero`,`ø`,`nothing`,`null`,`void`,`ban`,`math`,`divide`,`division`,`half`,`split`,`/`,`average`,`avg`,`mean`,`median`,`normal`]],[[32,22],[`shape`,`bullet`,`gender`,`genderless`]],[[35,17],[`badge`,`medal`,`honour`,`decoration`,`order`,`pin`,`laurel`,`trophy`,`medallion`,`insignia`,`bronze`,`silver`,`gold`]],[[23],[`media`,`music`]],[[1],[`person`,`account`,`contact`]],[[1],[`person`,`account`,`contact`]],[[21,11],[`cancel`,`close`,`delete`,`remove`,`times`,`clear`,`error`,`incorrect`,`wrong`,`mistake`,`failure`,`linter`,`multiply`,`multiplication`]],[[29,11],[`computing`,`electricity`,`electronics`]],[[16],[`lemon`,`orange`,`grapefruit`,`fruit`]],[[23],[`movie`,`film`,`video`,`camera`,`cinema`,`cut`,`action`,`television`,`tv`,`show`,`entertainment`]],[[37],[`copy`,`paste`]],[[37],[`copied`,`pasted`,`done`,`todo`,`tick`,`complete`,`task`]],[[38,37],[`copy`,`paste`,`history`,`log`,`clock`,`time`,`watch`,`alarm`,`hour`,`minute`,`reminder`,`scheduled`,`deadline`,`pending`,`time tracking`,`timesheets`,`appointment`,`logbook`]],[[37,3],[`copy`,`paste`]],[[37],[`copy`,`paste`,`tasks`]],[[37,22],[`copy`,`delete`,`remove`,`erase`,`document`,`medical`,`report`,`doctor`]],[[37,3],[`copy`,`paste`]],[[37],[`paste`,`signature`]],[[37],[`paste`]],[[37,22],[`copy`,`paste`,`add`,`create`,`new`,`document`,`medical`,`report`,`doctor`]],[[37],[`paste`,`format`,`text`]],[[37],[`copy`,`paste`,`discard`,`remove`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`,`noon`,`midnight`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`,`warning`,`wrong`]],[[38],[`time`,`watch`,`alarm`,`sort`,`order`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[38],[`time`,`watch`,`alarm`,`sort`,`order`,`ascending`,`descending`,`increasing`,`decreasing`,`rising`,`falling`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`]],[[38],[`time`,`watch`,`alarm`,`add`,`create`,`new`]],[[0,23],[`tv`,`movie`,`video`,`closed captions`,`subtitles`,`subhead`,`transcription`,`transcribe`,`dialogue`,`accessibility`]],[[42],[`weather`]],[[11],[`weather`,`danger`,`warning`,`alert`,`error`,`sync`,`network`,`exclamation`]],[[3,14],[`storage`,`memory`,`bytes`,`servers`,`backup`,`timemachine`,`rotate`,`synchronize`,`synchronise`,`refresh`,`reconnect`,`transfer`,`data`,`security`,`upload`,`save`,`remote`,`safety`]],[[11],[`sync`,`network`,`success`,`done`,`completed`,`saved`,`persisted`]],[[11],[`computing`,`ai`,`cluster`,`network`]],[[3,14],[`import`]],[[42],[`weather`,`shower`]],[[42],[`weather`,`mist`]],[[42],[`weather`,`rainfall`]],[[42],[`weather`,`bolt`]],[[42],[`weather`,`night`]],[[42],[`weather`,`partly`,`night`,`rainfall`]],[[8,42],[`disconnect`]],[[42],[`weather`,`rainfall`]],[[42],[`weather`,`rainfall`]],[[42],[`weather`,`blizzard`]],[[42],[`weather`,`partly`]],[[42],[`weather`,`partly`,`rainfall`]],[[3,14],[`synchronize`,`synchronise`,`refresh`,`reconnect`,`transfer`,`backup`,`storage`,`upload`,`download`,`connection`,`network`,`data`]],[[3,14],[`file`]],[[42],[`weather`,`clouds`]],[[17],[`leaf`,`luck`,`plant`]],[[32,17],[`shape`,`suit`,`playing`,`cards`]],[[37,11],[`source`,`programming`,`html`,`xml`]],[[37,11],[`source`,`programming`,`html`,`xml`]],[[16],[`drink`,`cup`,`mug`,`tea`,`cafe`,`hot`,`beverage`]],[[1],[`computing`,`settings`,`cog`,`edit`,`gear`,`preferences`,`controls`,`configuration`,`fixed`,`build`,`construction`,`parts`]],[[17],[`money`,`cash`,`finance`,`gamble`]],[[19,10,37],[`lines`,`list`,`queue`,`preview`,`panel`,`parallel`,`series`,`split`,`vertical`,`horizontal`,`half`,`center`,`middle`,`even`,`sidebar`,`drawer`,`gutter`,`fold`,`reflow`,`typography`,`pagination`,`pages`]],[[19,10,37],[`lines`,`list`,`queue`,`preview`,`parallel`,`series`,`split`,`vertical`,`horizontal`,`thirds`,`triple`,`center`,`middle`,`alignment`,`even`,`sidebars`,`drawers`,`gutters`,`fold`,`reflow`,`typography`,`pagination`,`pages`]],[[19,10],[`columns`,`settings`,`customize`,`table`,`grid`,`adjust`,`configuration`,`panel`,`layout`]],[[19,10,37,31],`lines.list.queue.preview.parallel.series.split.vertical.horizontal.thirds.triple.center.middle.alignment.even.sidebars.drawers.gutters.fold.reflow.typography.pagination.pages.prison.jail.bars.sentence.police.cops.cell.crime.criminal.justice.law.enforcement.grill`.split(`.`)],[[11,14],[`cubes`,`packages`,`parts`,`units`,`collection`,`cluster`,`combine`,`gather`,`merge`]],[[11],[`keyboard`,`key`,`mac`,`cmd`,`button`]],[[25,41],[`direction`,`north`,`east`,`south`,`west`,`safari`,`browser`]],[[10,11],[`design`,`element`,`group`,`module`,`part`,`symbol`]],[[12,11,17],[`pc`,`chassis`,`codespaces`,`github`]],[[41],[`reception`,`bell`,`porter`]],[[32,21],[`conical`,`triangle`,`triangular`,`geometry`,`filter`,`funnel`,`hopper`,`spotlight`,`searchlight`]],[[11],[`roadwork`,`maintenance`,`blockade`,`barricade`]],[[1,8,7,34],[`user`,`person`,`family`,`friend`,`acquaintance`,`listing`,`networking`]],[[1,8,7,34],[`user`,`person`,`family`,`friend`,`acquaintance`,`listing`,`networking`]],[[11,40,20],[`storage`,`shipping`,`freight`,`supply chain`,`docker`,`environment`,`devops`,`code`,`coding`]],[[28,0,10],[`display`,`accessibility`]],[[1,16],[`biscuit`,`privacy`,`legal`,`food`]],[[16,18],[`pod`,`cooking`,`recipe`,`food`,`kitchen`,`chef`,`restaurant`,`dinner`,`lunch`,`breakfast`,`meal`,`eat`]],[[37],[`clone`,`duplicate`,`multiple`]],[[37,26],[`clone`,`duplicate`,`done`,`multiple`]],[[37,21],[`clone`,`duplicate`,`remove`,`delete`,`collapse`,`subtract`,`multiple`,`-`]],[[37,21],[`clone`,`duplicate`,`add`,`multiple`,`expand`,`+`]],[[37,11,21],[`clone`,`duplicate`,`cancel`,`ban`,`no`,`stop`,`forbidden`,`prohibited`,`error`,`multiple`,`divide`,`division`,`split`,`or`,`/`]],[[26,21],[`cancel`,`close`,`delete`,`remove`,`clear`,`multiple`,`multiply`,`multiplication`,`times`]],[[37],[`licence`]],[[37],[`licence`,`license`]],[[3],[`arrow`,`return`]],[[3,37,11],[`arrow`,`indent`,`tab`]],[[3],[`arrow`]],[[3],[`arrow`]],[[3],[`arrow`]],[[3],[`arrow`]],[[3],[`arrow`]],[[3],[`arrow`]],[[12],[`processor`,`cores`,`technology`,`computer`,`chip`,`circuit`,`memory`,`ram`,`specs`,`gigahertz`,`ghz`]],[[37],[`licence`,`license`]],[[1,15],[`bank`,`purchase`,`payment`,`cc`]],[[16],[`bakery`,`cooking`,`food`,`pastry`]],[[28,10],[`photo`,`image`]],[[32],[`healthcare`,`first aid`]],[[28],[`aim`,`target`]],[[17],[`diadem`,`tiara`,`circlet`,`corona`,`king`,`ruler`,`winner`,`favourite`]],[[32,21,16],[`brick`,`block`,`box`,`3d`,`solid`,`volume`,`container`,`storage`,`shipping`,`carton`,`geometry`,`rectangular`,`hexahedron`,`butter`,`tofu`,`soap`,`cheese`,`package`,`parcel`,`crate`]],[[16],[`beverage`,`cup`,`drink`,`soda`,`straw`,`water`]],[[15],[`finance`,`money`]],[[32,10,21],[`shape`,`elliptical`,`geometry`,`container`,`storage`,`tin`,`pot`]],[[5,36,25],[`electricity`,`energy`,`water`]],[[12,11],[`storage`,`memory`,`container`,`tin`,`pot`,`bytes`,`servers`]],[[12,3,10,11,28],[`storage`,`memory`,`bytes`,`servers`,`backup`,`timemachine`,`rotate`,`arrow`,`left`]],[[12,11],[`storage`,`memory`,`container`,`tin`,`pot`,`bytes`,`servers`]],[[12,11],[`cache busting`,`storage`,`memory`,`bytes`,`servers`,`power`,`crash`]],[[10,37,3,21],[`numerical`,`decimal`,`decrease`,`less`,`fewer`,`precision`,`rounding`,`digits`,`fraction`,`float`,`number`]],[[10,37,3,21],[`numerical`,`decimal`,`increase`,`more`,`precision`,`rounding`,`digits`,`fraction`,`float`,`number`]],[[37,3],[`backspace`,`remove`]],[[16],[`pudding`,`christmas`,`xmas`,`custard`,`iced bun`,`icing`,`fondant`,`cake`,`ice cream`,`gelato`,`sundae`,`scoop`,`dollop`,`sugar`,`food`,`sweet`]],[[32,21,10,39],[`shape`,`circle`,`geometry`,`trigonometry`,`width`,`height`,`size`,`calculate`,`measure`]],[[32,17],[`square`,`rectangle`,`oblique`,`rhombus`,`shape`,`suit`,`playing`,`cards`]],[[23,28,39,12],[`keyframe`,`subtract`,`remove`,`decrease`,`reduce`,`calculator`,`button`,`keyboard`,`line`,`divider`,`separator`,`horizontal rule`,`hr`,`html`,`markup`,`markdown`,`---`,`toolbar`,`operator`,`code`,`coding`,`minimum`,`downgrade`]],[[34,15,33,21],[`verified`,`unverified`,`sale`,`discount`,`offer`,`marketing`,`sticker`,`price tag`]],[[23,28,39,12],[`keyframe`,`add`,`new`,`increase`,`increment`,`positive`,`calculate`,`toolbar`,`crosshair`,`aim`,`target`,`scope`,`sight`,`reticule`,`maximum`,`upgrade`,`extra`,`+`]],[[17],[`dice`,`random`,`tabletop`,`1`,`board`,`game`]],[[17],[`dice`,`random`,`tabletop`,`2`,`board`,`game`]],[[17],[`dice`,`random`,`tabletop`,`3`,`board`,`game`]],[[17],[`dice`,`random`,`tabletop`,`4`,`board`,`game`]],[[17],[`dice`,`random`,`tabletop`,`5`,`board`,`game`]],[[17],[`dice`,`random`,`tabletop`,`6`,`board`,`game`]],[[17],[`dice`,`random`,`tabletop`,`board`,`game`]],[[11,14],[`patch`,`difference`,`compare`,`plus`,`minus`,`plus-minus`,`math`]],[[12,23],[`album`,`music`,`songs`,`format`,`cd`,`dvd`,`vinyl`,`sleeve`,`cover`,`platinum`,`compilation`,`ep`,`recording`,`playback`,`spin`,`rotate`,`rpm`,`dj`]],[[12,23],[`album`,`music`,`vinyl`,`record`,`cd`,`dvd`,`format`,`dj`,`spin`,`rotate`,`rpm`]],[[12,23],[`album`,`music`,`vinyl`,`record`,`cd`,`dvd`,`format`,`dj`,`spin`,`rotate`,`rpm`]],[[12,23],[`album`,`music`,`songs`,`format`,`cd`,`dvd`,`vinyl`,`sleeve`,`cover`,`platinum`,`compilation`,`ep`,`recording`,`playback`,`spin`,`rotate`,`rpm`,`dj`]],[[21,11],[`calculate`,`math`,`division`,`operator`,`code`,`÷`,`/`]],[[22],[`gene`,`gmo`,`helix`,`heredity`,`chromosome`,`nucleic acid`]],[[22,16],[`gene`,`gmo free`,`helix`,`heredity`,`chromosome`,`nucleic acid`]],[[19,10,11,14],[`desktop`,`applications`,`launch`,`home`,`menu bar`,`bottom`,`line`,`macos`,`osx`]],[[2],[`animal`,`pet`,`puppy`,`hound`,`canine`]],[[15],[`currency`,`money`,`payment`]],[[16],[`doughnut`,`sprinkles`,`topping`,`fast food`,`junk food`,`snack`,`treat`,`sweet`,`sugar`,`dessert`,`hollow`,`ring`]],[[18,41,31],[`entrance`,`entry`,`exit`,`ingress`,`egress`,`gate`,`gateway`,`emergency exit`]],[[18,41,31],[`entrance`,`entry`,`exit`,`ingress`,`egress`,`gate`,`gateway`,`emergency exit`,`lock`]],[[18,41,31],[`entrance`,`entry`,`exit`,`ingress`,`egress`,`gate`,`gateway`,`emergency exit`]],[[32,37],[`interpunct`,`interpoint`,`middot`,`step`,`punctuation`,`period`,`full stop`,`end`,`finish`,`final`,`characters`,`font`,`typography`,`type`,`center`,`.`]],[[3,14],[`import`,`export`,`save`]],[[21,10,39],[`geometry`,`trigonometry`,`radius`,`diameter`,`circumference`,`calculate`,`measure`,`arc`,`curve`,`draw`,`sketch`]],[[23],[`drama`,`masks`,`theater`,`theatre`,`entertainment`,`show`]],[[39,18,12],[`power`,`bit`,`head`,`hole`,`diy`,`toolbox`,`build`,`construction`]],[[40,12],[`quadcopter`,`uav`,`aerial`,`flight`,`flying`,`technology`,`airborne`,`robotics`]],[[42,17],[`water`,`weather`,`liquid`,`fluid`,`wet`,`moisture`,`damp`,`bead`,`globule`]],[[42,17],[`water`,`weather`,`liquid`,`fluid`,`wet`,`moisture`,`damp`,`bead`,`globule`]],[[42],[`water`,`weather`,`liquid`,`fluid`,`wet`,`moisture`,`damp`,`bead`,`globule`]],[[23,12],[`drummer`,`kit`,`sticks`,`instrument`,`beat`,`bang`,`bass`,`backing track`,`band`,`play`,`performance`,`concert`,`march`,`music`,`audio`,`sound`,`noise`,`loud`]],[[16],[`food`,`chicken`,`meat`]],[[25,35],[`barbell`,`weight`,`workout`,`gym`]],[[22,0],[`hearing`,`noise`,`audio`,`accessibility`]],[[22,0],[`hearing`,`hard of hearing`,`hearing loss`,`deafness`,`noise`,`silence`,`audio`,`accessibility`]],[[25],[`world`,`browser`,`language`,`translate`,`globe`]],[[31,11,12],[`vpn`,`private`,`privacy`,`network`,`world`,`browser`,`security`,`encryption`,`protection`,`connection`]],[[29,10,11,0,28],[`lunar`,`solar`,`crescent moon`,`sun`,`earth`,`day`,`night`,`planet`,`space`,`mode`,`dark`,`light`,`toggle`,`switch`,`color`,`css`,`styles`,`display`,`accessibility`,`contrast`,`brightness`,`blend`,`shade`]],[[16,2],[`bird`,`chicken`,`nest`,`hatch`,`shell`,`incubate`,`soft boiled`,`hard`,`breakfast`,`brunch`,`morning`,`easter`]],[[16],[`food`,`breakfast`]],[[16],[`egg free`,`vegan`,`hatched`,`bad egg`]],[[19,11],[`et cetera`,`etc`,`loader`,`loading`,`progress`,`pending`,`throbber`,`menu`,`options`,`operator`,`code`,`coding`,`spread`,`rest`,`more`,`further`,`extra`,`overflow`,`dots`,`…`,`...`]],[[19],[`menu`,`options`,`spread`,`more`,`further`,`extra`,`overflow`,`dots`,`…`,`...`]],[[21,11],[`calculate`,`math`,`operator`,`assignment`,`code`,`=`]],[[21],[`about`,`calculate`,`math`,`operater`]],[[21,11],[`calculate`,`off`,`math`,`operator`,`code`,`≠`]],[[37],[`pencil`,`drawing`,`undo`,`delete`,`clear`,`trash`,`remove`]],[[7,12,23,17],[`internet`,`network`,`connection`,`cable`,`lan`,`port`,`router`,`switch`,`hub`,`modem`,`web`,`online`,`networking`,`communication`,`socket`,`plug`,`slot`,`controller`,`connector`,`interface`,`console`,`signal`,`data`,`input`,`output`]],[[15],[`currency`,`money`,`payment`]],[[40,25],[`electric`,`charger`,`station`,`vehicle`,`fast`,`plug`,`ev`,`power`,`electricity`,`energy`,`accumulator`,`charge`]],[[37,3],[`scale`,`fullscreen`,`maximize`,`minimize`,`contract`]],[[3,37,34],[`outbound`,`open`,`share`]],[[0,28,10,31],[`view`,`watch`,`see`,`show`,`expose`,`reveal`,`display`,`visible`,`visibility`,`vision`,`preview`,`read`]],[[0,28,10,31],[`view`,`watch`,`see`,`hide`,`conceal`,`mask`,`hidden`,`visibility`,`vision`]],[[0,28,10,31],[`view`,`watch`,`see`,`hide`,`conceal`,`mask`,`hidden`,`visibility`,`vision`]],[[5,25],[`building`,`business`,`energy`,`industry`,`manufacture`,`sector`]],[[18],[`air`,`cooler`,`ventilation`,`ventilator`,`blower`]],[[23,3],[`music`]],[[17],[`logo`]],[[18,5],[`picket`,`panels`,`woodwork`,`diy`,`materials`,`suburban`,`garden`,`property`,`territory`]],[[25],[`big wheel`,`daisy wheel`,`observation`,`attraction`,`entertainment`,`amusement park`,`theme park`,`funfair`]],[[14],[`document`]],[[14],[`zip`,`package`,`archive`]],[[10,14],[`model`,`3d`,`axis`,`coordinates`]],[[14],[`award`,`achievement`,`badge`,`rosette`,`prize`,`winner`]],[[14],[`box`,`package`,`model`]],[[14,11],[`code`,`json`,`curly braces`,`curly brackets`]],[[14,11],[`code`,`json`,`curly braces`,`curly brackets`]],[[14],[`statistics`,`analytics`,`diagram`,`graph`,`presentation`]],[[14],[`statistics`,`analytics`,`diagram`,`graph`,`presentation`,`trending up`]],[[14],[`statistics`,`analytics`,`diagram`,`graph`,`presentation`]],[[14],[`statistics`,`analytics`,`diagram`,`graph`,`presentation`]],[[14],[`done`,`document`,`todo`,`tick`,`complete`,`task`]],[[14],[`done`,`document`,`todo`,`tick`,`complete`,`task`]],[[14,38],[`history`,`log`,`clock`]],[[14,11],[`script`,`document`,`gist`,`html`,`xml`,`property list`,`plist`]],[[14,11],[`script`,`document`,`html`,`xml`,`property list`,`plist`]],[[14],[`executable`,`settings`,`cog`,`edit`,`gear`]],[[14,11],[`diff`,`patch`]],[[14,11],[`number`,`document`]],[[14,3],[`download`,`import`,`export`]],[[14,26],[`hidden`,`warning`,`alert`,`danger`,`protected`,`exclamation mark`]],[[14],[`music`,`audio`,`sound`,`headphones`]],[[14],[`heart`,`favourite`,`bookmark`,`quick link`]],[[14],[`image`,`graphics`,`photo`,`picture`]],[[14,3],[`document`]],[[14,31],[`key`,`private`,`public`,`security`]],[[14,31],[`lock`,`password`,`security`]],[[14],[`delete`,`remove`,`erase`,`document`]],[[14],[`document`]],[[14,23],[`audio`,`sound`,`noise`,`track`,`digital`,`recording`,`playback`,`piano`,`keyboard`,`keys`,`notes`,`chord`,`midi`,`octave`]],[[14,3],[`document`]],[[14],[`signature`]],[[14],[`edit`]],[[14],[`movie`,`video`,`film`]],[[14],[`add`,`create`,`new`,`document`]],[[14],[`add`,`create`,`new`,`document`]],[[14],[`readme`,`help`,`question`]],[[14],[`scan`,`code`,`qr-code`]],[[14],[`lost`,`document`,`find`,`browser`,`lens`]],[[14],[`lost`,`document`,`find`,`browser`,`lens`]],[[14],[`audio`,`music`,`volume`]],[[14,11],[`cogged`,`gear`,`mechanical`,`machinery`,`configuration`,`controls`,`preferences`,`settings`,`system`,`admin`,`edit`,`executable`]],[[14],[`spreadsheet`,`sheet`,`table`]],[[14,11],[`versions`,`multiple`,`copy`,`documents`,`revisions`,`version control`,`history`]],[[14],[`symlink`,`symbolic`,`link`]],[[14,11],[`terminal`,`bash`,`script`,`executable`]],[[14,37],[`data`,`txt`,`pdf`,`document`]],[[14,37],[`font`,`text`,`typography`,`type`]],[[14,37],[`font`,`text`,`typography`,`type`]],[[14,3],[`upload`,`import`,`export`]],[[1,14],[`person`,`personal information`,`people`,`listing`,`networking`,`document`,`contact`,`cover letter`,`resume`,`cv`,`curriculum vitae`,`application form`]],[[14],[`movie`,`video`,`film`]],[[14],[`audio`,`music`,`volume`]],[[14],[`lost`,`delete`,`remove`,`document`]],[[14],[`lost`,`delete`,`remove`,`document`]],[[14],[`multiple`,`copy`,`documents`]],[[28,23],[`movie`,`video`,`reel`,`camera`,`cinema`,`entertainment`]],[[1,31,22,12],[`2fa`,`authentication`,`biometric`,`identity`,`security`]],[[18,39,41],[`flames`,`smoke`,`foam`,`water`,`spray`,`hose`,`firefighter`,`fireman`,`department`,`brigade`,`station`,`emergency`,`suppress`,`compressed`,`tank`,`cylinder`,`safety`,`equipment`,`amenities`]],[[16,2],[`dish`,`restaurant`,`course`,`meal`,`seafood`,`pet`,`sea`,`marine`]],[[16,2],[`food`,`dish`,`restaurant`,`course`,`meal`,`seafood`,`animal`,`pet`,`sea`,`marine`,`allergy`,`intolerance`,`diet`]],[[16,2],[`dish`,`restaurant`,`course`,`meal`,`seafood`,`pet`,`sea`,`marine`]],[[35,41],[`sea`,`boating`,`angler`,`bait`,`reel`,`tackle`,`marine`,`outdoors`,`fish`,`fishing`,`hook`,`sports`,`travel`]],[[35,41],[`fishing`,`rod`,`hobby`,`equipment`,`reel`]],[[1,34],[`report`,`marker`,`notification`,`warning`,`milestone`,`goal`,`notice`,`signal`,`attention`,`banner`]],[[1,34],[`unflag`,`unmark`,`report`,`marker`,`notification`,`warning`,`milestone`,`goal`,`notice`,`signal`,`attention`,`banner`]],[[11,25],[`report`,`timeline`,`marker`,`pin`]],[[11,25],[`report`,`timeline`,`marker`,`pin`]],[[42,34,17],[`heat`,`burn`,`light`,`glow`,`ignite`,`passion`,`ember`,`fire`,`lit`,`burning`,`spark`,`embers`,`smoke`,`firefighter`,`fireman`,`department`,`brigade`,`station`,`emergency`]],[[24,34,17],[`campfire`,`camping`,`wilderness`,`outdoors`,`lit`,`warmth`,`wood`,`twigs`,`sticks`]],[[28,12],[`torch`,`light`,`beam`,`emergency`,`safety`,`tool`,`bright`]],[[28,12],[`torch`,`light`,`beam`,`emergency`,`safety`,`tool`,`bright`]],[[29,17],[`beaker`,`erlenmeyer`,`lab`,`chemistry`,`experiment`,`test`]],[[29,17],[`beaker`,`erlenmeyer`,`non toxic`,`lab`,`chemistry`,`experiment`,`test`]],[[29,17],[`beaker`,`lab`,`chemistry`,`experiment`,`test`]],[[10,28],[`reflect`,`mirror`,`alignment`,`dashed`]],[[10,28],[`reflect`,`mirror`,`alignment`,`dashed`]],[[24,17,36],[`sustainability`,`nature`,`plant`,`spring`]],[[24,36,30],[`sustainability`,`nature`,`plant`]],[[28],[`camera`,`lens`,`photo`,`dashed`]],[[3,19],[`arrow`,`collapse`,`fold`,`vertical`,`dashed`]],[[3,19],[`arrow`,`collapse`,`fold`,`vertical`,`dashed`]],[[14],[`directory`]],[[14],[`archive`,`zip`,`package`]],[[14],[`done`,`directory`,`todo`,`tick`,`complete`,`task`]],[[14,38],[`history`,`directory`,`clock`]],[[14],[`directory`,`closed`]],[[14,11],[`directory`,`coding`,`develop`,`software`]],[[14],[`directory`,`settings`,`control`,`preferences`,`cog`,`edit`,`gear`]],[[14,11],[`directory`,`root`,`project`,`pinned`,`active`,`current`,`cogged`,`gear`,`mechanical`,`machinery`,`configuration`,`controls`,`preferences`,`settings`,`system`,`admin`,`edit`]],[[14,3],[`directory`,`download`,`import`,`export`]],[[14],[`directory`,`root`,`project`,`git`,`repo`]],[[14],[`directory`,`root`,`project`,`git`,`repo`]],[[14],[`directory`,`heart`,`favourite`,`bookmark`,`quick link`]],[[14,3],[`directory`,`import`,`export`]],[[6,11,10,14],[`projects`,`manage`,`overview`,`board`,`tickets`,`issues`,`roadmap`,`plan`,`intentions`,`productivity`,`work`,`agile`,`code`,`coding`,`directory`,`project`,`root`]],[[14,31],[`directory`,`key`,`private`,`security`,`protected`]],[[14,31],[`directory`,`lock`,`private`,`security`,`protected`]],[[14],[`directory`,`remove`,`delete`]],[[14],[`directory`]],[[14,11],[`directory`,`root`,`project`,`active`,`current`,`pinned`]],[[14,3],[`directory`,`import`,`export`]],[[14],[`directory`,`rename`]],[[14],[`directory`,`add`,`create`,`new`]],[[14,11],[`directory`,`root`,`project`,`git`,`repo`]],[[14],[`directory`,`search`,`find`,`lost`,`browser`,`lens`]],[[14],[`directory`,`search`,`find`,`lost`,`browser`,`lens`]],[[14],[`directory`,`symlink`,`symbolic`,`link`]],[[14,3],[`directory`,`synchronize`,`synchronise`,`refresh`,`reconnect`,`transfer`,`backup`]],[[14],[`directory`,`tree`,`browser`]],[[14,3],[`directory`,`upload`,`import`,`export`]],[[14],[`directory`,`remove`,`delete`]],[[14],[`multiple`,`copy`,`directories`]],[[25],[`steps`,`walking`,`foot`,`feet`,`trail`,`shoe`]],[[40],[`machinery`,`industrial`,`warehouse`,`lifting`,`storage`,`equipment`,`heavy-duty`,`moving`,`vehicle`,`transport`,`logistics`]],[[11],[`document`,`page`,`file`,`layout`,`paper`,`stub`,`formality`,`structure`,`template`,`inputs`,`design`,`components`]],[[20],[`send`,`share`,`email`]],[[10,28],[`logo`,`design`,`tool`]],[[13,1],[`emoji`,`face`,`bad`,`sad`,`emotion`]],[[40,25],[`filling-station`,`gas`,`petrol`,`tank`]],[[19,23,10,28],[`expand`,`zoom`,`preview`,`focus`,`camera`,`lens`,`image`]],[[19],[`filter`,`hopper`]],[[19],[`filter`,`hopper`,`add`,`create`,`new`]],[[19],[`filter`,`hopper`,`remove`,`delete`]],[[19,10,11,28,23],[`carousel`,`pictures`,`images`,`scroll`,`swipe`,`album`,`portfolio`]],[[19,10,11,28,23,14],[`carousel`,`pictures`,`images`,`scroll`,`swipe`,`album`,`portfolio`,`history`,`versions`,`backup`,`time machine`]],[[19,10,11,28,23],[`carousel`,`pictures`,`images`,`album`,`portfolio`,`preview`]],[[19,10,11,28,23],[`carousel`,`pictures`,`images`,`scroll`,`swipe`,`album`,`portfolio`]],[[19,10,11,28,23,14],[`carousel`,`pictures`,`images`,`scroll`,`swipe`,`album`,`portfolio`,`history`,`versions`,`backup`,`time machine`]],[[17,12],[`console`]],[[17,12],[`console`]],[[17,12],[`direction`,`arrow`,`controller`,`navigation`,`button`,`move`,`pointer`,`arrowhead`,`console`,`game`,`gaming`]],[[40,35,29],[`dashboard`,`dial`,`meter`,`speed`,`pressure`,`measure`,`level`]],[[25,39],[`justice`,`law`,`court`,`judgment`,`legal`,`hands`,`penalty`,`decision`,`authority`,`hammer`,`mallet`]],[[17,11,15],[`diamond`,`crystal`,`ruby`,`jewellery`,`price`,`special`,`present`,`gift`,`ring`,`wedding`,`proposal`,`marriage`,`rubygems`]],[[15],[`currency`,`money`,`payment`]],[[17],[`pac-man`,`spooky`]],[[17,1],[`present`,`box`,`birthday`,`party`]],[[11],[`code`,`version control`,`vcs`,`repository`]],[[11],[`code`,`version control`,`vcs`,`repository`,`delete`,`remove`,`-`]],[[11],[`code`,`version control`,`vcs`,`repository`,`add`,`create`,`+`]],[[11,25],[`code`,`version control`,`waypoint`,`stop`,`station`]],[[11,25],[`code`,`version control`,`waypoint`,`stop`,`station`]],[[11],[`code`,`version control`,`diff`]],[[11,3],[`code`,`version control`,`diff`]],[[11],[`code`,`version control`]],[[11],[`code`,`version control`,`commit graph`,`commits`,`gitlens`]],[[11],[`code`,`version control`]],[[11],[`code`,`version control`,`commits`,`diff`,`error`,`conflict`]],[[11],[`code`,`version control`,`open`]],[[11,3],[`code`,`version control`,`open`]],[[11],[`code`,`version control`,`rejected`,`closed`,`cancelled`,`x`]],[[11],[`code`,`version control`,`open`,`plus`,`add`,`+`]],[[11,3],[`code`,`version control`,`open`,`plus`,`add`,`+`]],[[11],[`code`,`version control`,`open`,`draft`,`dashed`]],[[16],[`beverage`,`drink`,`glass`,`water`]],[[0],[`glasses`,`spectacles`]],[[25],[`world`,`browser`,`language`,`translate`]],[[31,11,12],[`vpn`,`private`,`privacy`,`network`,`world`,`browser`,`security`,`encryption`,`protection`,`connection`]],[[25,8,12],[`globe`,`earth`,`planet`,`disable`,`mute`,`off`,`hide`,`avoid`,`world`,`browser`,`language`,`translate`,`internet`,`offline`,`disconnected`,`network`,`connection`,`no connection`,`network failure`,`signal off`]],[[8,12,25],[`globe`,`internet`,`offline`,`disconnected`,`network`,`connection`,`world`,`no connection`,`network failure`,`signal off`]],[[17],[`flag`,`bullseye`]],[[12,17],[`processor`,`cores`,`technology`,`computer`,`chip`,`circuit`,`specs`,`graphics processing unit`,`video card`,`display adapter`,`gddr`,`rendering`,`digital image processing`,`crypto mining`]],[[5],[`school`,`university`,`learn`,`study`,`mortarboard`,`education`,`ceremony`,`academic`,`hat`,`diploma`,`bachlor's`,`master's`,`doctorate`]],[[16],[`fruit`,`wine`,`food`]],[[37,19,10,21],[`table`,`rows`,`columns`,`blocks`,`plot`,`land`,`geometry`,`measure`,`size`,`width`,`height`,`distance`,`surface area`,`square meter`,`acre`,`window`,`skylight`]],[[37,19,21],[`table`,`rows`,`columns`,`blocks`,`plot`,`land`,`geometry`,`measure`,`data`,`size`,`width`,`height`,`distance`,`surface area`,`square meter`,`acre`]],[[37,19,21],[`table`,`rows`,`columns`,`blocks`,`plot`,`land`,`geometry`,`measure`,`data`,`size`,`width`,`height`,`distance`,`surface area`,`square meter`,`acre`]],[[37,19,21],[`table`,`rows`,`columns`,`data`,`blocks`,`plot`,`land`,`geometry`,`measure`,`size`,`width`,`height`,`distance`,`surface area`,`square meter`,`acre`]],[[37,21,19,10],[`table`,`rows`,`columns`,`blocks`,`plot`,`land`,`geometry`,`measure`,`size`,`width`,`height`,`distance`,`surface area`,`square meter`,`acre`,`window`]],[[37,19,10],[`table`,`rows`,`columns`]],[[19],[`grab`,`dots`,`handle`,`move`,`drag`]],[[19],[`grab`,`dots`,`handle`,`move`,`drag`]],[[19],[`grab`,`dots`,`handle`,`move`,`drag`]],[[14],[`cubes`,`packages`,`parts`,`units`,`collection`,`cluster`,`gather`,`dashed`]],[[23],[`acoustic`,`instrument`,`strings`,`riff`,`rock`,`band`,`country`,`concert`,`performance`,`play`,`lead`,`loud`,`music`,`audio`,`sound`,`noise`]],[[16],[`food`,`pork`,`pig`,`meat`,`bone`,`hock`,`knuckle`,`gammon`,`cured`]],[[16],`burger.cheeseburger.meat.beef.patty.bun.fast food.junk food.takeaway.takeout.snack.dish.restaurant.lunch.meal.savory.savoury.cookery.cooking.grilled.barbecue.barbeque.bbq.lettuce.tomato.relish.pickles.onions.ketchup.mustard.mayonnaise`.split(`.`)],[[39,18],[`mallet`,`nails`,`diy`,`toolbox`,`build`,`construction`]],[[9,0],[`wave`,`move`,`mouse`,`grab`]],[[15,1],[`savings`,`banking`,`money`,`finance`,`offers`,`mortgage`,`payment`,`received`,`wage`,`payroll`,`allowance`,`pocket money`,`handout`,`pennies`]],[[34,13,7,35],[`clench`,`strength`,`power`,`unity`,`solidarity`,`rebellion`,`victory`,`triumph`,`support`,`fight`,`combat`,`brawl`]],[[9,10,19],[`hand`]],[[34],[`love`,`like`,`emotion`]],[[13],[`agreement`,`help`,`proposal`,`charity`,`begging`,`terms`]],[[13,23],[`rock`]],[[16,27],[`waiter`,`waitress`,`restaurant`,`table service`,`served`,`dinner`,`dining`,`meal`,`course`,`luxury`]],[[33,40],[`bag`,`baggage`,`carry`,`clutch`,`fashion`,`luggage`,`purse`,`tote`,`travel`]],[[1,34,7,15,31],[`agreement`,`partnership`,`deal`,`business`,`assistance`,`cooperation`,`friendship`,`union`,`terms`]],[[11,12],[`computer`,`server`,`memory`,`data`,`ssd`,`disk`,`hard disk`,`storage`,`hardware`,`backup`,`media`]],[[11,12,3,14],[`computer`,`server`,`memory`,`data`,`ssd`,`disk`,`hard disk`,`save`]],[[11,12,3,14],[`computer`,`server`,`memory`,`data`,`ssd`,`disk`,`hard disk`,`save`]],[[39],[`helmet`,`construction`,`safety`,`savety`]],[[37,34],[`hashtag`,`number`,`pound`]],[[34,1,31],[`incognito`,`disguise`,`costume`,`masked`,`anonymous`,`anonymity`,`privacy`,`private browsing`,`stealth`,`hidden`,`undercover`,`cloak`,`invisible`,`ghost`,`spy`,`agent`,`detective`,`identity`,`cap`,`fedora`,`spectacles`,`shades`,`sunglasses`,`eyewear`]],[[42],[`mist`,`fog`]],[[12,23],[`tv`,`resolution`,`video`,`high definition`,`720p`,`1080p`]],[[12,23,17],[`socket`,`plug`,`slot`,`controller`,`connector`,`interface`,`console`,`signal`,`audio`,`video`,`visual`,`av`,`data`,`input`,`output`]],[[37],[`h1`,`html`,`markup`,`markdown`]],[[37],[`h1`,`html`,`markup`,`markdown`]],[[37],[`h2`,`html`,`markup`,`markdown`]],[[37],[`h3`,`html`,`markup`,`markdown`]],[[37],[`h4`,`html`,`markup`,`markdown`]],[[37],[`h5`,`html`,`markup`,`markdown`]],[[37],[`h6`,`html`,`markup`,`markdown`]],[[23,8,7,12,17],[`music`,`audio`,`sound`,`mute`,`off`]],[[23,8,12,14,17],[`music`,`audio`,`sound`]],[[23,8,12,14,17],[`music`,`audio`,`sound`,`gaming`,`headphones`,`headset`,`call`,`center`,`phone`,`telephone`,`voip`,`video`]],[[22,34,23,13,17,32],[`like`,`love`,`emotion`,`suit`,`playing`,`cards`]],[[13],[`heartbreak`,`sadness`,`emotion`]],[[13,1,31],[`agreement`,`charity`,`help`,`deal`,`terms`,`emotion`,`together`,`handshake`]],[[22,1,23,17,34],[`unlike`,`unfavorite`,`remove`,`damage`,`ui & ux`]],[[34,23],[`unlike`,`dislike`,`hate`,`emotion`]],[[22,1,23,17,34],[`plus`,`like`,`favorite`,`add`,`health`,`support`]],[[22],[`heartbeat`,`pulse`,`health`,`medical`,`blood pressure`,`cardiac`,`systole`,`diastole`]],[[18,12,41],[`heating`,`warmth`,`comfort`,`fire`,`stove`,`electric`,`electronics`,`amenities`]],[[40,41],[`transport`,`flying`,`rotor`,`aviation`,`helipad`,`gear`,`flyer`,`technology`,`helicopter`,`aircraft`,`vehicle`]],[[32,4,11],[`shape`,`node.js`,`logo`]],[[37,10],[`mark`,`text`]],[[3,38],[`time`,`redo`,`undo`,`rewind`,`timeline`,`version`,`time machine`,`backup`,`rotate`,`ccw`]],[[16],[`beer`,`brewery`,`drink`]],[[16],[`beer`,`brewery`,`drink`,`hop free`,`allergy`,`intolerance`,`diet`]],[[22,5,25,41],[`infirmary`,`sanatorium`,`healthcare`,`doctor`,`hospice`,`clinic`,`emergency room`,`ward`,`building`,`medical`,`vet`]],[[5,25,41],[`building`,`hostel`,`motel`,`inn`]],[[38,17],[`timer`,`time`,`sandglass`]],[[5,18,25],[`home`,`living`,`building`,`residence`,`architecture`]],[[18,5,22],[`home sweet home`,`abode`,`building`,`residence`,`healthy living`,`lifestyle`]],[[5,18,36],[`home`,`living`,`building`,`residence`,`architecture`,`autarky`,`energy`]],[[5,22],[`home`,`living`,`medical`,`new`,`addition`,`building`,`residence`,`architecture`]],[[18,5,8],[`home`,`living`,`building`,`wifi`,`connectivity`]],[[16],[`gelato`,`food`,`dessert`,`dish`,`restaurant`,`course`,`meal`]],[[16],[`gelato`,`food`]],[[31,1],[`card`,`badge`,`identity`,`authentication`,`secure`]],[[31,1],[`id-card`,`id-card-lanyard`,`identity`,`employee`,`gate-pass`,`badge`]],[[28,37,23,14],[`picture`,`photo`]],[[28,37,23,14],[`picture`,`photo`,`download`,`save`,`export`]],[[28,23,14],[`remove`,`delete`]],[[28,23,14],[`picture`,`photo`]],[[28,37,23,14],[`picture`,`gif`,`photo`]],[[28,23,14],[`add`,`create`,`picture`]],[[28,37,23,14],[`picture`,`photo`,`upload`,`import`]],[[28,23],[`resize`,`picture`,`sharpen`,`increase`]],[[28,37,23,14],[`picture`,`photo`,`multiple`,`copy`,`gallery`,`album`,`collection`,`slideshow`,`showcase`]],[[3,14],[`save`]],[[1,20],[`email`]],[[15],[`currency`,`money`,`payment`]],[[23],[`unlimited`,`forever`,`loop`,`math`]],[[0,26],[`about`,`advice`,`clue`,`details`,`help`,`hint`,`indicator`,`information`,`knowledge`,`notice`,`status`,`support`,`tooltip`]],[[39],[`access`,`cover`,`tile`,`metal`,`materials`,`screws`]],[[37],[`oblique`,`text`,`format`]],[[3,10],[`arrow`,`right`]],[[3,10],[`arrow`,`left`]],[[15],[`currency`,`money`,`payment`]],[[17,12],[`game`,`console`,`control stick`]],[[6,11,10],[`projects`,`manage`,`overview`,`board`,`tickets`,`issues`,`roadmap`,`plan`,`intentions`,`productivity`,`work`,`agile`,`code`,`coding`]],[[40],[`kayak`,`boat`,`paddle`,`water`,`sport`,`recreation`,`adventure`,`outdoors`,`equipment`,`lake`,`ocean`]],[[31,1],[`password`,`login`,`authentication`,`secure`,`unlock`,`keychain`,`key ring`,`fob`]],[[31,1],[`password`,`login`,`authentication`,`secure`,`unlock`]],[[31,1],[`password`,`login`,`authentication`,`secure`,`unlock`,`car key`]],[[37,12,11],[`layout`,`spell`,`settings`,`mouse`]],[[23,12],[`music`,`audio`,`sound`,`noise`,`notes`,`keys`,`chord`,`octave`,`midi`,`controller`,`instrument`,`electric`,`signal`,`digital`,`studio`,`production`,`producer`,`pianist`,`piano`,`play`,`performance`,`concert`]],[[12,37,11],[`unkeys`,`layout`,`spell`,`settings`,`mouse`]],[[18],[`lighting`,`household`,`home`,`furniture`]],[[18],[`lighting`,`household`,`home`,`furniture`]],[[18],[`lighting`,`household`,`office`,`desk`,`home`,`furniture`]],[[18],[`lighting`,`household`,`floor`,`home`,`furniture`]],[[18],[`lighting`,`household`,`wall`,`home`,`furniture`]],[[18],[`lighting`,`household`,`wall`,`home`,`furniture`]],[[10,39,21,35,17],[`area`,`surface`,`square metres`,`allotment`,`parcel`,`property`,`plane`,`acres`,`measure`,`distance`,`isometric`,`flag`,`golf course`,`hole`]],[[15,25,5],[`bank`,`building`,`capitol`,`finance`,`money`,`museum`,`art gallery`,`hall`,`institute`,`pediment`,`portico`,`columns`,`pillars`,`classical`,`architecture`,`government`,`institution`]],[[37],[`translate`]],[[12],[`computer`,`screen`,`remote`]],[[12],[`computer`,`screen`,`remote`]],[[12,26],[`computer`,`screen`,`remote`,`success`,`done`,`todo`,`tick`,`complete`,`task`]],[[10,9],[`select`,`cursor`]],[[3,10,9],[`select`,`cursor`]],[[13],[`emoji`,`face`,`happy`,`good`,`emotion`]],[[10,19],[`stack`,`pile`,`pages`,`sheets`,`paperwork`,`copies`,`copy`]],[[10,19],[`stack`,`pile`,`pages`,`sheets`,`paperwork`,`copies`,`copy`,`duplicate`,`double`,`shortcuts`]],[[10,19],[`stack`,`layers`,`add`,`new`,`increase`,`create`,`positive`,`copy`,`upgrade`]],[[10,19],[`masonry`,`brick`]],[[10,19],[`app`,`home`,`start`]],[[10,19,28,37],[`todo`,`tasks`,`items`,`pending`,`image`,`photo`]],[[10,19],[`app`,`home`,`start`,`grid`]],[[19],[`window`,`webpage`,`block`,`section`,`grid`,`template`,`structure`]],[[19],[`window`,`webpage`,`block`,`section`]],[[24,36,30],[`sustainability`,`nature`,`energy`,`plant`,`autumn`]],[[16,13,36],[`salad`,`lettuce`,`vegetable`,`chard`,`cabbage`,`bok choy`]],[[7,23],[`pulpit`,`podium`,`stand`]],[[29,39,32],[`concave`,`lens`,`optics`,`light`,`magnification`,`curved`,`focus`,`refraction`,`science`,`physics`,`eyeglass`,`telescope`,`microscope`]],[[29,39,32],[`convex`,`lens`,`optics`,`magnification`,`focus`,`light`,`refraction`,`physics`,`eyeglass`,`telescope`,`microscope`,`curved`,`science`]],[[37,28,23,25,11],[`books`,`reading`,`written`,`authors`,`stories`,`fiction`,`novels`,`information`,`knowledge`,`education`,`high school`,`university`,`college`,`academy`,`learning`,`study`,`research`,`collection`,`vinyl`,`records`,`albums`,`music`,`package`]],[[37,28,23,25,11],[`books`,`reading`,`written`,`authors`,`stories`,`fiction`,`novels`,`information`,`knowledge`,`education`,`high school`,`university`,`college`,`academy`,`learning`,`study`,`research`,`collection`,`vinyl`,`records`,`albums`,`music`,`package`]],[[0,22],[`preserver`,`life belt`,`lifesaver`,`help`,`rescue`,`ship`,`ring`,`raft`,`inflatable`,`wheel`,`donut`]],[[37],[`text`,`font`,`typography`,`alternates`,`alternatives`]],[[28],[`idea`,`bright`,`lights`]],[[28],[`lights`]],[[11,25],[`code`,`version control`,`waypoint`,`stop`,`station`,`last`,`end`]],[[32,21,10],[`line`,`snakes`,`annotate`,`curve`,`doodle`,`stroke`,`pen`,`tool`,`gesture`,`draw`,`wave`,`art`,`road`]],[[37,1],[`chain`,`url`]],[[37,1],[`chain`,`url`]],[[37],[`unchain`,`chain`]],[[37],[`options`]],[[37],[`done`,`check`,`tick`,`complete`,`list`,`to-do`,`bom`]],[[37],[`todo`,`done`,`check`,`tick`,`complete`,`tasks`,`items`,`pending`]],[[37,3],[`options`,`items`,`collapse`,`expand`,`details`,`disclosure`,`show`,`hide`,`toggle`,`accordion`,`more`,`less`,`fold`,`unfold`,`vertical`]],[[37,3],[`options`,`items`,`collapse`,`expand`,`details`,`disclosure`,`show`,`hide`,`toggle`,`accordion`,`more`,`less`,`fold`,`unfold`,`vertical`]],[[37],[`items`,`collapse`,`expand`,`details`,`disclosure`,`show`,`hide`,`toggle`,`accordion`,`more`,`less`,`fold`,`unfold`]],[[23,37],[`queue`,`bottom`,`end`,`playlist`]],[[37],[`options`]],[[37,19],[`filter`,`plus`,`options`,`add`]],[[37,11],[`text`,`tab`]],[[37,11],[`text`,`tab`]],[[23,37],[`playlist`,`remove`,`song`,`subtract`,`delete`,`unqueue`]],[[23],[`playlist`,`queue`,`music`,`audio`,`playback`]],[[37],[`number`,`order`,`queue`]],[[23,37],[`playlist`,`add`,`song`,`track`,`new`]],[[23,37],[`reset`,`refresh`,`reload`,`playlist`,`replay`]],[[23,37],[`queue`,`top`,`start`,`next`,`playlist`]],[[37],[`todo`,`done`,`check`,`tick`,`complete`,`tasks`,`items`,`pending`]],[[14,37,19],[`tree`,`browser`]],[[23],[`playlist`,`video`,`playback`]],[[23,37],[`playlist`,`subtract`,`remove`,`delete`,`unqueue`]],[[9,23,19,10],[`loading`,`wait`,`busy`,`progress`,`spinner`,`spinning`,`throbber`]],[[9,23,19],[`loading`,`wait`,`busy`,`progress`,`spinner`,`spinning`,`throbber`,`circle`]],[[9,10],[`loading`,`wait`,`busy`,`progress`,`throbber`,`spinner`,`spinning`,`beach ball`,`frozen`,`freeze`]],[[25],[`map`,`gps`,`location`,`cross`]],[[25],[`map`,`gps`,`location`,`cross`]],[[25],[`map`,`gps`,`location`,`cross`]],[[31],[`security`,`password`,`secure`,`admin`]],[[31],[`security`,`password`,`secure`,`admin`]],[[31],[`security`]],[[31],[`security`]],[[3,1],[`sign in`,`arrow`,`enter`,`auth`]],[[3,1],[`sign out`,`arrow`,`exit`,`auth`]],[[37],[`options`,`list`,`menu`,`order`,`queue`,`tasks`,`logs`]],[[16],[`lolly`,`candy`,`sugar`,`food`,`sweet`,`dessert`,`spiral`]],[[41,40],[`baggage`,`luggage`,`travel`,`suitcase`]],[[10],[`horseshoe`,`lock`,`science`,`snap`]],[[37,1,20],[`email`,`message`,`letter`,`unread`]],[[20],[`email`,`message`,`letter`,`subscribe`,`delivered`,`success`,`read`,`done`,`todo`,`tick`,`complete`,`task`]],[[20],[`email`,`message`,`letter`,`remove`,`delete`]],[[20],[`email`,`message`,`letter`,`read`]],[[20],[`email`,`message`,`letter`,`add`,`create`,`new`,`compose`]],[[20],[`email`,`message`,`letter`,`delivery`,`undelivered`]],[[20],[`email`,`message`,`letter`,`search`,`lens`]],[[20],[`email`,`message`,`letter`,`delivery error`,`exclamation mark`]],[[20],[`email`,`message`,`letter`,`remove`,`delete`]],[[20],[`emails`,`messages`,`letters`,`mailing list`,`newsletter`]],[[20],[`emails`,`messages`,`letters`,`multiple`,`mailing list`,`newsletter`,`copy`]],[[37,25],[`location`,`navigation`,`travel`]],[[25,41],[`location`,`navigation`,`travel`,`drop`,`delete`,`remove`,`erase`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`done`,`tick`,`complete`,`task`,`added`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`done`,`tick`,`complete`,`task`,`added`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`home`,`living`,`building`,`residence`,`architecture`,`address`,`poi`,`real estate`,`property`,`navigation`,`destination`,`geolocation`,`place`,`landmark`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`delete`,`remove`,`erase`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`delete`,`remove`,`erase`]],[[25,41],[`location`,`waypoint`,`marker`,`remove`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`edit`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`add`,`create`,`new`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`add`,`create`,`new`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`delete`,`remove`,`erase`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`,`delete`,`remove`,`erase`]],[[25,41,1],[`location`,`waypoint`,`marker`,`drop`]],[[25],[`location`,`navigation`,`travel`,`new`,`add`,`create`]],[[22],[`gender`,`sex`,`male`,`masculine`,`man`,`boy`]],[[22],[`gender`,`androgyne`,`transgender`]],[[16],[`cocktail`,`alcohol`,`beverage`,`bar`,`drink`,`glass`]],[[19,10],[`fullscreen`,`expand`,`dashed`]],[[3,19,10],[`fullscreen`,`arrows`,`expand`]],[[35,17],[`prize`,`sports`,`winner`,`trophy`,`award`,`achievement`]],[[23,26],[`advertisement`,`announcement`,`attention`,`alert`,`loudspeaker`,`megaphone`,`notification`]],[[23,26],[`advertisement`,`announcement`,`attention`,`alert`,`loudspeaker`,`megaphone`,`notification`,`disable`,`silent`]],[[13],[`emoji`,`face`,`neutral`,`emotion`]],[[12,17],[`ram`,`random access`,`technology`,`computer`,`chip`,`circuit`,`specs`,`capacity`,`gigabytes`,`gb`]],[[19,1],[`bars`,`navigation`,`hamburger`,`options`]],[[11,3],[`combine`,`join`,`unite`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`]],[[34,1],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`moderate`,`check`,`done`,`todo`,`complete`]],[[11,34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`code review`,`coding`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`draft`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`positive`,`like`,`love`,`interest`,`valentine`,`dating`,`date`,`speech bubble`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`typing`,`writing`,`responding`,`ellipsis`,`etc`,`et cetera`,`...`,`…`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`clear`,`close`,`delete`,`remove`,`cancel`,`silence`,`mute`,`moderate`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`add`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`help`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`reply`,`response`]],[[34,26],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`report`,`abuse`,`offense`,`alert`,`danger`,`caution`,`protected`,`exclamation mark`]],[[1,34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`clear`,`close`,`delete`,`remove`,`cancel`,`silence`,`mute`,`moderate`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`]],[[34,1],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`moderate`,`check`,`done`,`todo`,`complete`]],[[11,34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`code review`,`coding`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`draft`]],[[11,14,34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`add`,`patch`,`difference`,`plus`,`minus`,`plus-minus`,`math`,`code review`,`coding`,`version control`,`git`]],[[34,26],[`unread`,`unresolved`,`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`positive`,`like`,`love`,`interest`,`valentine`,`dating`,`date`,`speech bubble`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`secure`,`encrypted`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`typing`,`writing`,`responding`,`ellipsis`,`etc`,`et cetera`,`...`,`…`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`clear`,`close`,`delete`,`remove`,`cancel`,`silence`,`mute`,`moderate`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`add`]],[[34,37],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`blockquote`,`quotation`,`indent`,`reply`,`response`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`reply`,`response`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`network`,`forward`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`]],[[34,26],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`report`,`abuse`,`offense`,`alert`,`danger`,`caution`,`protected`,`exclamation mark`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubble`,`clear`,`close`,`delete`,`remove`,`cancel`,`silence`,`mute`,`moderate`]],[[34],[`comment`,`chat`,`conversation`,`dialog`,`feedback`,`speech bubbles`,`copy`,`multiple`,`discussion`,`interview`,`debate`]],[[23,38],[`metronome`,`tempo`,`rhythm`,`beat`,`bpm`,`music`,`audio`,`sound`,`practice`,`timing`,`timer`,`time`,`pulse`,`sync`,`cadence`,`control`,`playback`,`studio`,`tool`]],[[12,7,8,23],[`record`,`sound`,`listen`,`radio`,`podcast`,`microphone`]],[[12,7,8,23],[`record`,`sound`,`mute`,`microphone`]],[[12,23],[`lyrics`,`voice`,`listen`,`sound`,`music`,`radio`,`podcast`,`karaoke`,`singing`,`microphone`]],[[12],[`processor`,`cores`,`technology`,`computer`,`chip`,`integrated circuit`,`memory`,`ram`,`specs`,`gpu`,`gigahertz`,`ghz`]],[[29,22],[`medical`,`education`,`science`,`imaging`,`research`]],[[16,18],[`oven`,`cooker`,`toaster oven`,`bake`]],[[3,25,11,17],[`signpost`,`direction`,`right`,`east`,`forward`,`version control`,`waypoint`]],[[16],[`lactose`,`bottle`,`beverage`,`drink`,`water`,`diet`]],[[16],[`lactose free`,`bottle`,`beverage`,`drink`,`water`,`allergy`,`intolerance`,`diet`]],[[19,10],[`exit fullscreen`,`close`,`shrink`]],[[3,19,10],[`exit fullscreen`,`arrows`,`close`,`shrink`]],[[21,11,37,39],[`subtract`,`remove`,`decrease`,`decrement`,`reduce`,`negative`,`calculate`,`line`,`divider`,`separator`,`horizontal rule`,`hr`,`html`,`markup`,`markdown`,`---`,`toolbar`,`operator`,`code`,`coding`,`minimum`,`downgrade`]],[[29,18,39],[`reflection`,`optics`,`glass`,`surface`,`image`,`physics`,`science`,`bathroom`,`decor`,`cosmetic`,`shiny`,`periscope`,`vanity`]],[[29,18,39],[`reflection`,`optics`,`glass`,`surface`,`image`,`physics`,`science`,`bathroom`,`vanity`,`makeup`,`decor`,`cosmetic`,`shiny`,`periscope`]],[[8,12],[`tv`,`screen`,`display`,`virtual machine`,`vm`]],[[8,12],[`tv`,`screen`,`display`,`desktop`,`running`,`active`,`virtual machine`,`vm`]],[[8,12,11],[`virtual machine`,`virtual desktop`,`vm`,`vdi`,`computing`,`remote work`,`monitoring`,`infrastructure`,`software as a service`,`saas`,`workstation`,`environment`,`tv`,`screen`,`display`]],[[8,12],[`tv`,`screen`,`display`,`virtual machine`,`vm`,`executable`,`settings`,`cog`,`edit`,`gear`,`configuration`,`preferences`,`system`,`control panel`,`network`,`computing`]],[[8,12],[`tv`,`screen`,`display`,`desktop`,`running`,`active`,`virtual machine`,`vm`]],[[8,12],[`tv`,`screen`,`display`,`desktop`,`download`]],[[8,12],[`share`]],[[8,12,23],[`tv`,`screen`,`display`,`desktop`,`video`,`movie`,`film`,`suspend`,`hibernate`,`boot`,`virtual machine`,`vm`]],[[8,12,23],[`tv`,`screen`,`display`,`desktop`,`video`,`movie`,`film`,`running`,`start`,`boot`,`virtual machine`,`vm`]],[[8,12],[`smartphone`,`phone`,`cellphone`,`device`,`mobile`,`desktop`,`monitor`,`responsive`,`screens`]],[[8,12],[`devices`,`connect`,`cast`]],[[8,12,23],[`tv`,`screen`,`display`,`desktop`,`video`,`movie`,`film`,`stop`,`shutdown`,`virtual machine`,`vm`]],[[8,12],[`tv`,`screen`,`display`,`upload`,`connect`,`remote`,`screen share`]],[[8,12],[`tv`,`screen`,`display`,`desktop`,`virtual machine`,`vm`,`close`,`stop`,`suspend`,`remove`,`delete`]],[[0],[`dark`,`night`]],[[0,42],[`dark`,`night`,`star`]],[[40],[`moto`,`motorcycle`,`transport`,`vehicle`,`drive`,`ride`,`trip`,`race`,`racing`,`journey`,`delivery`]],[[24,17],[`climb`,`hike`,`rock`]],[[24],[`alpine`,`climb`,`snow`]],[[12],[`device`,`scroll`,`click`]],[[12],[`device`,`scroll`,`click`]],[[12],[`device`,`scroll`,`click`,`disabled`]],[[3,9],[`click`,`select`]],[[3,9],[`click`,`select`]],[[3,9],[`pointer`,`mouse`,`cursor`,`off`,`disable`,`arrow`,`navigation`,`selection`,`select`,`click`,`no-click`,`interaction`]],[[3,9],[`wait`,`busy`,`loading`,`blocked`,`frozen`,`freeze`]],[[3,9],[`click`,`select`]],[[12],[`device`,`scroll`,`click`]],[[3,9],[`arrows`]],[[10],[`arrows`,`axis`,`gizmo`,`coordinates`,`transform`,`translate`]],[[3,9],[`double`,`arrow`]],[[3,9],[`double`,`arrow`]],[[3],[`arrow`,`direction`,`downwards`,`south`]],[[3],[`arrow`,`direction`]],[[3],[`arrow`,`direction`]],[[3,9],[`double`,`arrow`]],[[3],[`arrow`,`direction`,`back`,`west`]],[[3],[`arrow`,`direction`,`trend flat`,`east`]],[[3],[`arrow`,`direction`,`upwards`,`north`]],[[3],[`arrow`,`direction`]],[[3],[`arrow`,`direction`]],[[3,9],[`double`,`arrow`]],[[23,14],[`note`,`quaver`,`eighth note`]],[[23,14],[`quaver`,`eighth note`,`note`]],[[23,14],[`crotchet`,`minim`,`quarter note`,`half note`,`note`]],[[23,14],[`semiquaver`,`sixteenth note`,`note`]],[[25],[`location`,`travel`]],[[25],[`location`,`travel`]],[[25],[`location`,`travel`]],[[25],[`location`,`travel`]],[[11],[`tree`]],[[23,7],[`news`,`feed`,`home`,`magazine`,`article`,`headline`]],[[7,15,12],[`contactless`,`payment`,`near-field communication`]],[[22],[`gender`,`nonbinary`,`enby`]],[[37,7,34,10],`notepad.notes.stationery.sketchbook.moleskine.closure.strap.band.elastic.organizer.organiser.planner.diary.journal.writing.written.writer.reading.high school.university.college.academy.student.study.homework.research`.split(`.`)],[[37,34],[`pencil`,`notepad`,`notes`,`noted`,`stationery`,`sketchbook`,`organizer`,`organiser`,`planner`,`diary`,`journal`,`writing`,`write`,`written`,`reading`,`high school`,`university`,`college`,`academy`,`student`,`study`,`research`,`homework`,`eraser`,`rubber`]],[[1,7,34],[`notepad`,`notes`,`people`,`family`,`friends`,`acquaintances`,`contacts`,`details`,`addresses`,`phone numbers`,`directory`,`listing`,`networking`,`alphabetical`,`a-z`,`organizer`,`organiser`,`planner`,`diary`,`stationery`]],[[37,34],[`notepad`,`notes`,`pages`,`paper`,`stationery`,`sketchbook`,`organizer`,`organiser`,`planner`,`diary`,`journal`,`writing`,`write`,`written`,`reading`,`high school`,`university`,`college`,`academy`,`student`,`study`,`research`,`homework`,`lines`,`opened`]],[[37,34],[`notebook`,`notes`,`pages`,`paper`,`stationery`,`sketchbook`,`organizer`,`organiser`,`planner`,`diary`,`journal`,`writing`,`write`,`written`,`reading`,`high school`,`university`,`college`,`academy`,`student`,`study`,`homework`,`research`,`lines`,`opened`]],[[37,34],[`notebook`,`notes`,`pages`,`paper`,`stationery`,`diary`,`journal`,`writing`,`write`,`written`,`draft`,`template`,`lines`]],[[16],[`hazelnut`,`acorn`,`food`,`diet`]],[[16],[`hazelnut`,`acorn`,`food`,`allergy`,`intolerance`,`diet`]],[[32],[`stop`,`shape`]],[[26,32],[`warning`,`alert`,`danger`,`exclamation mark`]],[[40],[`stop`,`forbidden`,`subtract`,`remove`,`decrease`,`reduce`,`-`,`traffic`,`halt`,`restricted`]],[[23,32],[`music`,`audio`,`stop`]],[[21,26],[`delete`,`stop`,`alert`,`warning`,`times`,`clear`,`math`]],[[21,11,37,29],[`greek`,`symbol`,`mathematics`,`education`,`physics`,`engineering`,`ohms`,`electrical resistance`,`angular frequency`,`dynamical systems`,`astronomy`,`constellations`,`philosophy`]],[[11],[`keyboard`,`key`,`mac`,`alt`,`button`]],[[29],[`planet`,`space`,`physics`,`satellites`,`moons`]],[[2,10],[`paper`,`bird`]],[[14,11],[`box`,`container`,`storage`,`sealed`,`delivery`,`undelivered`,`unopened`,`packed`,`archive`,`zip`,`module`]],[[14,11],[`box`,`container`,`storage`,`sealed`,`packed`,`unopened`,`undelivered`,`archive`,`zip`]],[[11],[`confirm`,`verified`,`done`,`todo`,`tick`,`complete`,`task`,`delivered`]],[[11],[`delete`,`remove`]],[[14,11],[`box`,`container`,`storage`,`unpack`,`unarchive`,`unzip`,`opened`,`delivered`]],[[11],[`new`,`add`,`create`]],[[14,11],[`find`,`product process`,`lens`]],[[11],[`delete`,`remove`]],[[10,39],[`fill`,`paint`,`bucket`,`color`,`colour`]],[[37,10,18,39],[`brush`,`color`,`colour`,`decoration`,`diy`]],[[37,10,28,18,39],[`brush`,`paintbrush`,`design`,`color`,`colour`,`decoration`,`diy`]],[[37,10,28,18,39],[`brush`,`paintbrush`,`design`,`color`,`colour`,`decoration`,`diy`]],[[37,10,28],[`colors`,`colours`,`theme`,`scheme`,`paint`,`watercolor`,`watercolour`,`artist`]],[[2],[`animal`,`wildlife`,`bear`,`zoo`,`bamboo`]],[[19],[`drawer`,`dock`]],[[19,3],[`drawer`,`dock`,`hide`,`chevron`,`down`]],[[19],[`drawer`,`dock`,`show`,`reveal`,`padding`,`margin`,`guide`,`layout`,`bleed`]],[[19,3],[`drawer`,`dock`,`show`,`reveal`,`chevron`,`up`]],[[19],[`primary`,`drawer`]],[[19,3],[`primary`,`drawer`,`hide`,`chevron`,`<`]],[[19],[`sidebar`,`primary`,`drawer`,`show`,`reveal`,`padding`,`margin`,`guide`,`layout`,`bleed`]],[[19,3],[`primary`,`drawer`,`show`,`reveal`,`chevron`,`right`,`>`]],[[19],[`sidebar`,`primary`,`drawer`,`show`,`reveal`,`padding`,`margin`,`guide`,`layout`,`vertical`,`bleed`]],[[19],[`sidebar`,`secondary`,`drawer`]],[[19,3],[`sidebar`,`secondary`,`drawer`,`hide`,`chevron`,`>`]],[[19],[`sidebar`,`secondary`,`drawer`,`show`,`reveal`,`padding`,`margin`,`guide`,`layout`,`bleed`]],[[19,3],[`sidebar`,`secondary`,`drawer`,`show`,`reveal`,`chevron`,`left`,`<`]],[[19,10,11],[`drawer`,`browser`,`webpage`]],[[19],[`sidebar`,`primary`,`drawer`,`show`,`reveal`,`padding`,`margin`,`guide`,`layout`,`horizontal`,`bleed`]],[[19,3],[`menu bar`,`drawer`,`hide`,`chevron`,`up`]],[[19],[`menu bar`,`drawer`,`show`,`reveal`,`padding`,`margin`,`guide`,`layout`,`bleed`]],[[19,3],[`menu bar`,`drawer`,`show`,`reveal`,`chevron`,`down`]],[[19],[`drawers`,`sidebar`,`primary`]],[[19],[`drawers`,`sidebar`,`secondary`]],[[19,10,11],[`menu bar`,`sidebar`,`primary`,`drawers`,`window`,`webpage`,`projects`,`overview`]],[[37,10,14,20],[`attachment`,`file`]],[[11,14,21],[`code`,`token`,`parenthesis`,`parens`,`brackets`,`parameters`,`arguments`,`args`,`input`,`call`,`math`,`formula`,`function`,`(`,`)`]],[[40,25],[`driving`,`car park`,`pay`,`sidewalk`,`pavement`]],[[13],[`emoji`,`congratulations`,`celebration`,`party`,`tada`,`🎉`,`🎊`,`excitement`,`exciting`,`excites`,`confetti`]],[[23],[`music`,`stop`]],[[2],[`pets`,`vets`,`veterinarian`,`domesticated`,`cat`,`dog`,`bear`]],[[12,17],[`computer`,`chassis`]],[[37,10,39],[`pencil`,`change`,`create`,`draw`,`writer`,`writing`,`biro`,`ink`,`marker`,`felt tip`,`stationery`,`artist`]],[[37,10,39],[`pencil`,`change`,`create`,`draw`,`writer`,`writing`,`biro`,`ink`,`marker`,`felt tip`,`stationery`,`artist`]],[[37,10,39],[`disabled`,`inactive`,`non-editable`,`locked`,`read-only`,`unmodifiable`,`frozen`,`restricted`,`pencil`,`change`,`create`,`draw`,`writer`,`writing`,`biro`,`ink`,`marker`,`felt tip`,`stationery`,`artist`]],[[37,10,9],[`vector`,`drawing`,`path`]],[[10,9,39,37],[`rubber`,`edit`,`create`,`draw`,`sketch`,`draft`,`writer`,`writing`,`stationery`,`artist`]],[[37,10,39],[`pencil`,`change`,`create`,`draw`,`sketch`,`draft`,`writer`,`writing`,`biro`,`ink`,`marker`,`felt tip`,`stationery`,`artist`]],[[10,9,39,37],[`disabled`,`inactive`,`non-editable`,`locked`,`read-only`,`unmodifiable`,`frozen`,`restricted`,`rubber`,`edit`,`create`,`draw`,`sketch`,`draft`,`writer`,`writing`,`stationery`,`artist`]],[[39,10,19,37],`edit.create.draw.sketch.draft.writer.writing.stationery.artist.measurements.centimeters.cm.millimeters.mm.metre.foot.feet.inches.units.size.length.width.height.dimensions.depth.breadth.extent`.split(`.`)],[[32],[`shape`]],[[21,11,15,33],[`percentage`,`modulo`,`modulus`,`remainder`,`%`,`sale`,`discount`,`offer`,`marketing`]],[[0,27],[`people`,`human`,`accessibility`,`stick figure`]],[[15],[`currency`,`peso`,`money`,`php`]],[[37,8,12,7],[`call`]],[[8,12,7],[`ring`]],[[3,8,12,7],[`call`]],[[3,8,12,7],[`call`]],[[8,12,7],[`call`]],[[8,12,7],[`call`,`mute`]],[[3,8,12,7],[`call`]],[[11,21],[`constant`,`code`,`coding`,`programming`,`symbol`,`trigonometry`,`geometry`,`formula`]],[[23,12],[`music`,`audio`,`sound`,`noise`,`notes`,`chord`,`keys`,`octave`,`acoustic`,`instrument`,`play`,`pianist`,`performance`,`concert`]],[[39,17],[`mining`,`mine`,`land worker`,`extraction`,`labor`,`construction`,`progress`,`advancement`,`crafting`,`building`,`creation`]],[[23],[`display`,`play`,`video`,`pop out`,`always on top`,`window`,`inset`,`multitask`]],[[23],[`display`,`play`,`video`,`pop out`,`always on top`,`window`,`inset`,`multitask`]],[[15],[`money`,`savings`]],[[37],[`paragraph`,`mark`,`paraph`,`blind`,`typography`,`type`,`text`,`prose`,`symbol`]],[[37],[`direction`,`paragraph`,`mark`,`paraph`,`blind`,`typography`,`type`,`text`,`prose`,`symbol`]],[[37],[`direction`,`paragraph`,`mark`,`paraph`,`blind`,`typography`,`type`,`text`,`prose`,`symbol`]],[[22],[`medicine`,`medication`,`drug`,`prescription`,`tablet`,`pharmacy`]],[[22],[`medicine`,`medication`,`prescription`,`drug`,`supplement`,`vitamin`,`capsule`,`jar`,`container`,`healthcare`,`pharmaceutical`,`tablet`]],[[25,1],[`save`,`map`,`lock`,`fix`]],[[25],[`unpin`,`map`,`unlock`,`unfix`,`unsave`,`remove`]],[[37,10,29],[`eye dropper`,`color picker`,`lab`,`chemistry`]],[[16],[`pie`,`quiche`,`food`]],[[40,41,25],[`plane`,`trip`,`airplane`]],[[40,41],[`arrival`,`plane`,`trip`,`airplane`,`landing`]],[[40,41],[`departure`,`plane`,`trip`,`airplane`,`takeoff`]],[[3,23],[`music`,`audio`,`video`,`start`,`run`]],[[12,11],[`electricity`,`energy`,`electronics`,`socket`,`outlet`,`power`,`voltage`,`current`,`charger`]],[[12,11],[`electricity`,`energy`,`socket`,`outlet`]],[[12],[`electricity`,`energy`,`electronics`,`charge`,`charging`,`battery`,`connect`]],[[21,39,11,37,9,17],[`add`,`new`,`increase`,`increment`,`positive`,`calculate`,`toolbar`,`crosshair`,`aim`,`target`,`scope`,`sight`,`reticule`,`maximum`,`upgrade`,`extra`,`+`]],[[39],[`swiss army knife`,`penknife`,`multi-tool`,`multitask`,`blade`,`cutter`,`gadget`,`corkscrew`]],[[23,34],[`audio`,`music`,`mic`,`talk`,`voice`,`subscribe`,`subscription`,`stream`]],[[9],[`mouse`]],[[9],[`mouse`]],[[16,23],[`cinema`,`movies`,`films`,`salted`,`sweet`,`sugar`,`candy`,`snack`]],[[16],[`ice lolly`,`ice cream`,`sweet`,`food`]],[[15],[`currency`,`money`,`payment`]],[[8],[`on`,`off`,`device`,`switch`,`toggle`,`binary`,`boolean`,`reboot`,`restart`,`button`,`keyboard`,`troubleshoot`]],[[8],[`on`,`off`,`device`,`switch`]],[[23,28,12,7,10],[`screen`,`whiteboard`,`marker pens`,`markers`,`blackboard`,`chalk`,`easel`,`school`,`learning`,`lesson`,`office`,`meeting`,`project`,`planning`]],[[12],[`fax`,`office`,`device`]],[[12],[`fax`,`office`,`device`,`success`,`printed`]],[[12],[`fax`,`office`,`device`,`cross`,`cancel`,`remove`,`error`]],[[23,28,12,7],[`cinema`,`film`,`movie`,`home video`,`presentation`,`slideshow`,`office`,`meeting`,`project`,`planning`]],[[19,10,28,12],[`screens`,`sizes`,`rotate`,`rotation`,`adjust`,`aspect ratio`,`16:9`,`widescreen`,`4:3`,`resolution`,`responsive`,`mobile`,`desktop`,`dimensions`,`monitor`,`orientation`,`portrait`,`landscape`]],[[11,17],[`component`,`module`,`part`,`piece`]],[[32,21,41],[`prism`,`triangle`,`triangular`,`hierarchy`,`structure`,`geometry`,`ancient`,`egyptian`,`landmark`,`tourism`]],[[11,34],[`barcode`,`scan`,`link`,`url`,`information`,`digital`]],[[37],[`quotation`]],[[2],[`animal`,`rodent`,`pet`,`pest`,`bunny`,`hare`,`fast`,`speed`,`hop`]],[[25,31,7],[`scan`,`sonar`,`detect`,`find`,`locate`]],[[29],[`radioactive`,`nuclear`,`fallout`,`waste`,`atomic`,`physics`,`particle`,`element`,`molecule`]],[[11,21],[`calculate`,`formula`,`math`,`operator`,`root`,`square`,`symbol`]],[[12,23,34],[`signal`,`broadcast`,`connectivity`,`live`,`frequency`]],[[12],[`device`,`music`,`connect`]],[[12,23,34],[`signal`,`broadcast`,`connectivity`,`live`,`frequency`]],[[32,21,10,39],[`shape`,`circle`,`geometry`,`trigonometry`,`radii`,`calculate`,`measure`,`size`]],[[42],[`colors`,`colours`,`spectrum`,`light`,`prism`,`arc`,`clear`,`sunshine`]],[[2],[`mouse`,`mice`,`gerbil`,`rodent`,`pet`,`pest`,`plague`,`disease`]],[[19,10,28],[`screens`,`sizes`,`rotate`,`rotation`,`adjust`,`aspect ratio`,`proportions`,`16:9`,`widescreen`,`4:3`,`resolution`,`responsive`,`mobile`,`desktop`,`dimensions`,`monitor`,`orientation`,`portrait`,`landscape`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`dollar`,`usd`,`$`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`cents`,`dollar`,`usd`,`$`,`¢`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`€`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`inr`,`₹`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`jpy`,`¥`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`british`,`currency`,`gbp`,`£`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`rub`,`₽`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`chf`,`₣`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`details`,`small print`,`terms`,`conditions`,`contract`]],[[15,41],[`bill`,`voucher`,`slip`,`check`,`counterfoil`,`currency`,`try`,`₺`]],[[11,37],[`compose`,`keyboard`,`key`,`button`]],[[37,11],`login,password,authenticate,2fa,field,fill,ellipsis,et cetera,etc,loader,loading,progress,pending,throbber,menu,options,operator,code,spread,rest,more,further,extra,overflow,dots,…,...`.split(`,`)],[[12,17,23,8],[`vr`,`virtual`,`augmented`,`reality`,`headset`,`goggles`]],[[32,10],[`rectangle`,`aspect ratio`,`16:9`,`horizontal`,`shape`]],[[32,10],[`rectangle`,`aspect ratio`,`9:16`,`vertical`,`shape`]],[[36],[`sustainability`,`salvage`,`arrows`]],[[37,3],[`undo`,`rerun`,`history`]],[[37,3],[`undo`,`rerun`,`history`]],[[37,3],[`redo`,`history`,`step`,`over`,`forward`]],[[3],[`arrows`,`rotate`,`reload`,`rerun`,`synchronise`,`synchronize`,`circular`,`cycle`]],[[3,11],[`arrows`,`rotate`,`reload`,`synchronise`,`synchronize`,`circular`,`cycle`,`issue`,`code`,`coding`,`version control`]],[[3],[`rotate`,`reload`,`rerun`,`synchronise`,`synchronize`,`arrows`,`circular`,`cycle`]],[[3],[`rotate`,`reload`,`rerun`,`synchronise`,`synchronize`,`arrows`,`circular`,`cycle`,`cancel`,`no`,`stop`,`error`,`disconnect`,`ignore`]],[[16,18],[`frigerator`,`fridge`,`freezer`,`cooler`,`icebox`,`chiller`,`cold storage`]],[[37,11],[`search`,`text`,`code`]],[[37],[`text`,`font`,`typography`,`format`,`x`,`remove`,`delete`,`times`,`clear`]],[[3,23],[`loop`,`arrows`]],[[23],[`replay`]],[[3,34,23],[`arrows`,`retweet`,`repost`,`share`,`repeat`,`loop`]],[[37],[`search`,`substitute`,`swap`,`change`]],[[37],[`search`,`substitute`,`swap`,`change`]],[[20],[`email`]],[[20],[`email`]],[[3,23],[`music`]],[[34,22,13],[`awareness`,`strip`,`band`,`tape`,`strap`,`cordon`]],[[17,11],[`release`,`boost`,`launch`,`space`,`version`]],[[18],[`chair`,`furniture`,`seat`,`comfort`,`relax`]],[[25],[`attraction`,`entertainment`,`amusement park`,`theme park`,`funfair`]],[[24,30,36,18,34],[`roses`,`thorns`,`petals`,`plant`,`stem`,`leaves`,`spring`,`bloom`,`blossom`,`gardening`,`botanical`,`flora`,`florist`,`bouquet`,`bunch`,`gift`,`date`,`romance`,`romantic`,`valentines day`,`special occasion`]],[[10],[`gizmo`,`transform`,`orientation`,`orbit`,`axis`]],[[3,10,28],[`arrow`,`left`,`counter-clockwise`,`restart`,`reload`,`rerun`,`refresh`,`backup`,`undo`,`replay`,`redo`,`retry`,`rewind`,`reverse`]],[[31,1],[`password`,`key`,`refresh`,`change`]],[[19,10,28,39,3],[`left`,`counter-clockwise`,`rotate`,`image`,`90`,`45`,`degrees`,`°`]],[[3,10,28],[`arrow`,`right`,`clockwise`,`refresh`,`reload`,`rerun`,`redo`]],[[19,10,28,39,3],[`right`,`clockwise`,`rotate`,`image`,`90`,`45`,`degrees`,`°`]],[[25],[`path`,`journey`,`planner`,`points`,`stops`,`stations`]],[[25],[`path`,`journey`,`planner`,`points`,`stops`,`stations`,`reset`,`clear`,`cancelled`,`closed`,`blocked`]],[[11,12,8,18],[`computer`,`server`,`cloud`]],[[19,10,37],[`lines`,`list`,`queue`,`preview`,`panel`,`paragraphs`,`parallel`,`series`,`split`,`vertical`,`horizontal`,`half`,`center`,`middle`,`even`,`drawer`]],[[19,10,37],[`lines`,`list`,`queue`,`preview`,`paragraphs`,`parallel`,`series`,`split`,`vertical`,`horizontal`,`half`,`center`,`middle`,`even`,`drawers`]],[[19,10,37],[`lines`,`list`,`queue`,`preview`,`paragraphs`,`parallel`,`series`,`split`,`vertical`,`horizontal`,`half`,`center`,`middle`,`even`,`drawers`,`grill`]],[[11,34],[`feed`,`subscribe`,`news`,`updates`,`notifications`,`content`,`blog`,`articles`,`broadcast`,`syndication`,`reader`,`channels`,`posts`,`publishing`,`digest`,`alert`,`following`,`inbox`,`newsletter`,`weblog`,`podcast`]],[[39,10,19],[`measurements`,`centimeters`,`cm`,`millimeters`,`mm`,`metre`,`foot`,`feet`,`inches`,`units`,`size`,`length`,`width`,`height`,`dimensions`,`depth`,`breadth`,`extent`,`stationery`]],[[39,10,19],[`measurements`,`centimeters`,`cm`,`millimeters`,`mm`,`metre`,`foot`,`feet`,`inches`,`units`,`size`,`length`,`width`,`height`,`dimensions`,`depth`,`breadth`,`extent`,`stationery`]],[[15],[`currency`,`money`,`payment`]],[[40,41],[`ship`,`boat`,`harbor`,`harbour`,`dock`]],[[16,13],[`food`,`vegetarian`,`dish`,`restaurant`,`course`,`meal`,`side`,`vegetables`,`health`]],[[16],[`food`,`snack`,`dish`,`restaurant`,`lunch`,`meal`]],[[8,29],[`space station`,`orbit`,`transmitter`]],[[8,12,23],[`antenna`,`receiver`,`dish aerial`,`saucer`]],[[15],[`currency`,`money`,`payment`]],[[37,14],[`floppy disk`]],[[37,14],[`floppy disks`,`copy`]],[[37,14],[`floppy disk`,`unsalvageable`]],[[25,29,15],[`balance`,`legal`,`license`,`right`,`rule`,`law`,`justice`,`weight`,`measure`,`compare`,`judge`,`fair`,`ethics`,`decision`]],[[10],[`gizmo`,`transform`,`size`,`axis`]],[[10],[`scale`,`resize`,`design`]],[[12,33,31,34,17],[`qr-code`,`barcode`,`checkout`,`augmented reality`,`ar`,`target`,`surveillance`,`camera`,`lens`,`focus`,`frame`,`select`,`box`,`boundary`,`bounds`,`area`,`square`,`dashed`]],[[33,12],[`checkout`,`till`,`cart`,`transaction`,`purchase`,`buy`,`product`,`packaging`,`retail`,`consumer`]],[[28,23,0,31,12,1],[`preview`,`zoom`,`expand`,`fullscreen`,`gallery`,`image`,`camera`,`watch`,`surveillance`,`retina`,`focus`,`lens`,`biometric`,`identification`,`authentication`,`access`,`login`]],[[1,31,12,34],[`face`,`biometric`,`identification`,`authentication`,`2fa`,`access`,`login`,`dashed`]],[[22],[`health`,`heart rate`,`pulse`,`monitoring`,`healthiness`,`screening`,`dashed`]],[[12,33],[`checkout`,`till`,`cart`,`transaction`,`purchase`,`buy`,`product`,`packaging`,`retail`,`consumer`,`qr-code`,`dashed`]],[[1,33,12,31],[`barcode`,`scan`,`qrcode`,`url`,`information`,`digital`,`scanner`]],[[28,23,0],[`preview`,`zoom`,`expand`,`fullscreen`,`gallery`,`image`,`focus`,`lens`]],[[37,12],[`recognition`,`read`,`translate`,`copy`,`lines`]],[[5,25],[`building`,`education`,`childhood`,`university`,`learning`,`campus`,`scholar`,`student`,`lecture`,`degree`,`course`,`academia`,`study`,`knowledge`,`classroom`,`research`,`diploma`,`graduation`,`professor`,`tutorial`,`homework`,`assignment`,`exam`]],[[37,10,39],[`cut`,`snip`,`chop`,`stationery`,`crafts`]],[[10,39],[`cut here`,`along`,`snip`,`chop`,`stationery`,`crafts`,`instructions`,`diagram`]],[[40],[`vehicle`,`drive`,`trip`,`journey`,`transport`,`electric`,`ride`,`urban`,`commute`,`speed`]],[[8,12,7],[`host`,`desktop`,`monitor`]],[[8,12,7],[`desktop`,`disconnect`,`monitor`]],[[17,11,37],[`paper`,`log`,`scripture`,`document`,`notes`,`parchment`,`list`,`long`,`script`,`story`,`code`,`coding`]],[[17,11,37],[`paper`,`log`,`scripture`,`document`,`notes`,`parchment`,`list`,`long`,`script`,`story`,`code`,`coding`]],[[37,34],[`find`,`scan`,`magnifier`,`magnifying glass`,`lens`]],[[37,34],[`find`,`scan`,`magnifier`,`magnifying glass`,`stop`,`warning`,`alert`,`error`,`anomaly`,`lens`]],[[37,34],[`find`,`scan`,`magnifier`,`magnifying glass`,`found`,`correct`,`complete`,`tick`,`lens`]],[[37,34,11],[`find`,`scan`,`magnifier`,`magnifying glass`,`grep`,`chevrons`,`<>`,`lens`]],[[37,34],[`find`,`scan`,`magnifier`,`magnifying glass`,`stop`,`clear`,`cancel`,`abort`,`/`,`lens`]],[[37,34],[`find`,`scan`,`magnifier`,`magnifying glass`,`stop`,`clear`,`cancel`,`abort`,`lens`]],[[37],[`mark`,`typography`,`punctuation`,`legal`,`type`,`text`,`prose`,`symbol`]],[[20,7,8],[`email`,`message`,`mail`,`paper airplane`,`paper aeroplane`,`submit`]],[[20,7,8],[`email`,`message`,`mail`,`paper airplane`,`paper aeroplane`,`submit`]],[[10,19],[`bring`,`send`,`move`,`under`,`back`,`backwards`,`overlap`,`layer`,`order`]],[[37,3,19],[`move`,`split`]],[[37,3,19],[`move`,`split`]],[[11,12],[`cloud`,`storage`]],[[11,12],[`cloud`,`storage`,`computing`,`cog`,`gear`]],[[11,12],[`cloud`,`storage`,`problem`,`error`]],[[11,12],[`cloud`,`storage`]],[[1],[`cog`,`edit`,`gear`,`preferences`]],[[1],[`cog`,`edit`,`gear`,`preferences`,`slider`]],[[32,17],[`triangle`,`equilateral`,`square`,`circle`,`classification`,`different`,`collection`,`toy`,`blocks`,`learning`]],[[1,34],[`network`,`connections`]],[[1,34],[`network`,`connections`]],[[37,14],[`spreadsheets`,`table`,`excel`]],[[2,11,24,29,41,16,18],`beach.sand.holiday.sealife.fossil.ammonite.biology.ocean.terminal.command line.session.bash.zsh.roll.wrap.chewing gum.bubble gum.sweet.sugar.hosepipe.carpet.string.spiral.spinner.hypnotise.hypnosis`.split(`.`)],[[18],[`ledge`,`rack`,`storage`,`inventory`,`furniture`,`sill`,`shelves`,`shelf`,`organize`,`display`,`store`,`arrange`,`unit`,`cabinet`,`fixture`,`retail`,`warehouse`]],[[1,31,11,17,32],`cybersecurity.secure.safety.protection.guardian.armored.armoured.defense.defence.defender.block.threat.prevention.antivirus.vigilance.vigilant.detection.scan.find.strength.strong.tough.invincible.invincibility.invulnerable.undamaged.audit.admin.verification.crest.bravery.knight.foot soldier.infantry.trooper.pawn.battle.war.military.army.cadet.scout`.split(`.`)],[[1,31,11,26,17],`unshielded.cybersecurity.insecure.unsecured.safety.unsafe.protection.unprotected.guardian.unguarded.unarmored.unarmoured.defenseless.defenceless.undefended.defender.blocked.stopped.intercepted.interception.saved.thwarted.threat.prevention.unprevented.antivirus.vigilance.vigilant.detection.detected.scanned.found.exploit.vulnerability.vulnerable.weakness.infection.infected.comprimised.data leak.audited.admin.verification.unverified.uncertified.warning.emergency.attention.urgent.alarm.crest.bravery.strength.tough.attacked.damaged.injured.hit.expired.disabled.inactive.error.exclamation mark.!`.split(`.`)],[[1,31,11,17],`unshielded.cybersecurity.insecure.unsecured.safety.unsafe.protection.unprotected.guardian.unguarded.unarmored.unarmoured.defenseless.defenceless.undefended.defender.blocked.stopped.intercepted.interception.saved.thwarted.threat.prevention.unprevented.antivirus.vigilance.vigilant.detection.detected.scanned.found.exploit.vulnerability.vulnerable.weakness.infection.infected.comprimised.data leak.audited.admin.verification.unverified.uncertified.cancel.error.crest.bravery.attacked.damaged.injured.hit.expired.eliminated.disabled.inactive./`.split(`.`)],[[1,31,11,17],`cybersecurity.secured.safety.protection.protected.guardian.guarded.armored.armoured.defense.defence.defended.blocked.threat.prevention.prevented.antivirus.vigilance.vigilant.active.activated.enabled.detection.scanned.found.strength.strong.tough.invincible.invincibility.invulnerable.undamaged.audited.admin.verification.verified.certification.certified.tested.passed.qualified.cleared.cleaned.disinfected.uninfected.task.completed.todo.done.ticked.checked.crest.bravery`.split(`.`)],[[1,31,11,17],`cybersecurity,securing,protecting,guarding,armoring,armouring,defending,blocking,preventing,antivirus,detecting,scanning,finding,auditing,admin,verifying,crest,upgrading,loader,loading,throbber,progress,dots,more,etc,...,…`.split(`,`)],[[1,31,11,17],`cybersecurity.secure.safety.protection.guardian.armored.armoured.defense.defence.defender.block.threat.prevention.antivirus.vigilance.vigilant.detection.scan.strength.strong.tough.invincible.invincibility.invulnerable.undamaged.audit.admin.verification.crest.logo.sigil.flag.team.faction.fraternity.university.college.academy.school.education.uniform.bravery.knight.foot soldier.infantry.trooper.pawn.battle.war.military.ranking.army.cadet.scout`.split(`.`)],[[1,31,11,17],`unshield.cybersecurity.unsecure.unguard.unblock.antivirus.clean.clear.disinfect.patch.fix.stop.cancel.remove.relax.admin.crest.bravery.weakened.damaged.hit.unarm.disable.deactivate.decommission.downgraded.minimum.-`.split(`.`)],[[1,31,11,17],`unshielded.cybersecurity.insecure.unsecured.safety.unsafe.protection.unprotected.guardian.unguarded.unarmored.unarmoured.defenseless.defenceless.undefended.defender.interception.threat.prevention.unprevented.antivirus.detection.undetected.exploit.vulnerability.vulnerable.weakness.infected.infection.comprimised.data leak.unaudited.admin.verification.unverified.inactive.cancelled.error.crest.bravery.damaged.injured.hit.expired.eliminated`.split(`.`)],[[1,31,11,17,22],`cybersecurity.secure.safety.protection.guardian.armored.armoured.defense.defence.defender.block.threat.prevention.antivirus.vigilance.vigilant.detection.scan.strength.strong.tough.invincible.invincibility.invulnerable.undamaged.extra.added.professional.enterprise.full.maximum.upgraded.ultra.activate.enable.audit.admin.verification.crest.medic.+`.split(`.`)],[[1,31,11,17],`unshielded.cybersecurity.insecure.unsecured.safety.unsafe.protection.unprotected.guardian.unguarded.unarmored.unarmoured.defenseless.defenceless.undefended.defender.threat.prevention.unprevented.antivirus.vigilance.vigilant.detection.undetected.scan.find.exploit.vulnerability.vulnerable.weakness.infection.comprimised.data leak.audit.admin.verification.unverified.uncertified.uncertain.unknown.inactive.crest.question mark.?`.split(`.`)],[[1,31,11],[`shield`,`user`,`admin`,`protection`,`protected`,`safety`,`guard`]],[[1,31,11,17],`unshielded.cybersecurity.insecure.unsecured.safety.unsafe.protection.unprotected.guardian.unguarded.unarmored.unarmoured.defenseless.defenceless.undefended.defender.blocked.stopped.intercepted.interception.saved.thwarted.threat.prevention.prevented.antivirus.vigilance.vigilant.detection.detected.scanned.found.exploit.vulnerability.vulnerable.weakness.infection.infected.comprimised.data leak.audited.admin.verification.unverified.inactive.cancel.error.wrong.false.crest.bravery.attacked.damaged.injured.hit.dead.deceased.expired.eliminated.exterminated`.split(`.`)],[[40,25,41],[`boat`,`knots`,`nautical mile`,`maritime`,`sailing`,`yacht`,`cruise`,`ocean liner`,`tanker`,`vessel`,`navy`,`trip`,`releases`]],[[40,25,41],[`steering`,`rudder`,`boat`,`knots`,`nautical mile`,`maritime`,`sailing`,`yacht`,`cruise`,`ocean liner`,`tanker`,`vessel`,`navy`,`trip`]],[[33],[`t-shirt`,`shopping`,`store`,`clothing`,`clothes`]],[[33],[`ecommerce`,`cart`,`purchase`,`store`]],[[33],[`cart`,`e-commerce`,`store`,`purchase`,`products`,`items`,`ingredients`]],[[33],[`trolley`,`cart`,`basket`,`e-commerce`,`store`,`purchase`,`products`,`items`,`ingredients`]],[[24,39,17],[`dig`,`spade`,`treasure`]],[[18,41],[`shower`,`bath`,`bathroom`,`amenities`,`services`]],[[20,14],[`file`,`paper`,`tear`,`cut`,`delete`,`destroy`,`remove`,`erase`,`document`,`destruction`,`secure`,`security`,`confidential`,`data`,`trash`,`dispose`,`disposal`,`information`,`waste`,`permanent`]],[[2],[`seafood`,`shellfish`,`crustacean`,`prawn`,`scallop`,`whelk`,`arthropod`,`littleneck`,`quahog`,`cherrystone`]],[[19,3],[`scale`,`fullscreen`]],[[24],[`forest`,`undergrowth`,`park`,`nature`]],[[23,3],[`music`,`random`,`reorder`]],[[37,21,29],[`sum`,`calculate`,`formula`,`math`,`enumeration`,`enumerate`]],[[8],[`connection`,`wireless`,`gsm`,`phone`,`2g`,`3g`,`4g`,`5g`]],[[8],[`connection`,`wireless`,`gsm`,`phone`,`2g`,`3g`,`4g`,`5g`]],[[8],[`connection`,`wireless`,`gsm`,`phone`,`2g`,`3g`,`4g`,`5g`]],[[8],[`connection`,`wireless`,`gsm`,`phone`,`2g`,`3g`,`4g`,`5g`]],[[8],[`connection`,`wireless`,`gsm`,`phone`,`2g`,`3g`,`4g`,`5g`,`lost`]],[[37],[`text`,`format`,`input`,`contract`,`autograph`,`handwriting`,`sign`,`cursive`,`ink`,`scribble`,`authorize`,`personal`,`agreement`,`legal`,`document`,`identity`,`authentic`,`approval`,`verification`,`unique`]],[[3,25,11,17],[`bidirectional`,`left`,`right`,`east`,`west`]],[[3,25,11,17],[`bidirectional`,`left`,`right`,`east`,`west`]],[[22],[`police`,`ambulance`,`emergency`,`security`,`alert`,`alarm`,`light`]],[[23,3],[`arrow`,`previous`,`music`]],[[23,3],[`arrow`,`skip`,`next`,`music`]],[[17],[`death`,`danger`,`bone`]],[[11,21],[`divide`,`division`,`or`,`/`]],[[10],[`cutter`,`scalpel`,`knife`]],[[1],[`settings`,`filters`,`controls`]],[[1],[`settings`,`controls`]],[[8,12],[`phone`,`cellphone`,`device`,`screen`]],[[8,12],[`phone`,`cellphone`,`device`,`power`,`screen`]],[[7,15,12],[`contactless`,`payment`,`near-field communication`,`screen`]],[[13,1],[`emoji`,`face`,`happy`,`good`,`emotion`]],[[13,34,26,7],[`emoji`,`face`,`happy`,`good`,`emotion`,`react`,`reaction`,`add`]],[[2,16],[`animal`,`insect`,`slow`,`speed`,`delicacy`,`spiral`]],[[42,30],[`cold`,`weather`,`freeze`,`snow`,`winter`]],[[18,41],[`wash`,`bath`,`water`,`liquid`,`fluid`,`wet`,`moisture`,`damp`,`bead`,`globule`]],[[18],[`armchair`,`furniture`,`leisure`,`lounge`,`loveseat`,`couch`]],[[18,29,36,42],[`solar panel`,`solar`,`panel`,`sun`,`energy`,`electricity`,`light`]],[[16],[`food`,`dish`,`restaurant`,`course`,`meal`,`bowl`,`starter`]],[[37],[`text`,`selection`,`letters`,`characters`,`font`,`typography`]],[[32,17],[`shape`,`suit`,`playing`,`cards`]],[[32],[`star`,`effect`,`filter`,`night`,`magic`,`shiny`,`glitter`,`twinkle`,`celebration`]],[[9,23,17,42],[`stars`,`effect`,`filter`,`night`,`magic`]],[[23,12],[`sound`,`audio`,`music`,`tweeter`,`subwoofer`,`bass`,`production`,`producer`,`dj`]],[[0,7],[`disability`,`disabled`,`dda`,`human`,`accessibility`,`people`,`sound`]],[[37,11],[`spelling`,`error`,`mistake`,`oversight`,`typo`,`correction`,`code`,`linter`,`a`]],[[37,11],[`spelling`,`error`,`mistake`,`oversight`,`typo`,`correction`,`code`,`linter`,`a`]],[[10],[`path`,`pen`,`tool`,`shape`,`curve`,`draw`]],[[3,9,10,39],[`path`,`tool`,`curve`,`node`,`click`,`pointer`,`target`,`vector`]],[[11,3],[`break`,`disband`,`divide`,`separate`,`branch`,`disunite`]],[[7,39,34],[`bobbin`,`spindle`,`yarn`,`thread`,`string`,`sewing`,`needlework`]],[[12,28,23,7],[`winner`,`soapbox`,`stage`,`entertainment`,`drama`,`podium`,`actor`,`actress`,`singer`,`light`,`beam`,`play`,`theatre`,`show`,`focus`,`concert`,`performance`,`lens`,`leaderboard`,`followspot`,`best`,`highlight`]],[[10,39],[`paint`,`color`,`graffiti`,`decoration`,`aerosol`,`deodorant`,`shaving foam`,`air freshener`]],[[24,17,36],[`eco`,`green`,`growth`,`leaf`,`nature`,`plant`,`seed`,`spring`,`sustainability`]],[[32,23],[`stop`,`playback`,`music`,`audio`,`video`,`rectangle`,`aspect ratio`,`1:1`,`shape`]],[[22,34,29,23],`pulse.action.motion.movement.exercise.fitness.healthcare.heart rate monitor.vital signs.vitals.emergency room.er.intensive care.hospital.defibrillator.earthquake.siesmic.magnitude.richter scale.aftershock.tremor.shockwave.audio.waveform.synthesizer.synthesiser.music`.split(`.`)],[[3,17],[`backwards`,`reverse`,`direction`,`south`,`sign`,`keyboard`,`button`]],[[3,17],[`direction`,`south-west`,`diagonal`,`sign`,`turn`,`keyboard`,`button`]],[[3,17],[`direction`,`south-east`,`diagonal`,`sign`,`turn`,`keyboard`,`button`]],[[3],[`previous`,`back`,`direction`,`west`,`sign`,`keyboard`,`button`,`<-`]],[[3],[`outwards`,`direction`,`south-west`,`diagonal`]],[[3],[`outwards`,`direction`,`south-east`,`diagonal`]],[[3],[`outwards`,`direction`,`north-west`,`diagonal`]],[[3,34],[`outwards`,`direction`,`north-east`,`diagonal`,`share`,`open`,`external`,`link`]],[[3],[`next`,`forward`,`direction`,`west`,`sign`,`keyboard`,`button`,`->`]],[[3,32,19,23],[`left`,`in`,`inside`,`input`,`insert`,`source`,`import`,`place`,`->`]],[[3,32,19,23],[`out`,`outside`,`output`,`export`,`->`]],[[3],[`forward`,`direction`,`north`,`sign`,`keyboard`,`button`]],[[3],[`direction`,`north-west`,`diagonal`,`sign`,`keyboard`,`button`]],[[3,34],[`direction`,`north-east`,`diagonal`,`sign`,`keyboard`,`button`,`share`]],[[37,31,21,11],[`password`,`secret`,`access`,`key`,`multiply`,`multiplication`,`glob pattern`,`wildcard`,`*`]],[[37,10,39,14,11],[`cut`,`snippet`,`chop`,`stationery`,`crafts`]],[[10,28],[`reflect`,`mirror`,`alignment`,`dashed`]],[[10,28],[`reflect`,`mirror`,`alignment`,`dashed`]],[[6,38,11,10],[`projects`,`manage`,`overview`,`roadmap`,`plan`,`intentions`,`timeline`,`deadline`,`date`,`event`,`range`,`period`,`productivity`,`work`,`agile`,`code`,`coding`,`toolbar`,`button`]],[[26],[`done`,`todo`,`tick`,`complete`,`task`]],[[26],[`done`,`todo`,`tick`,`complete`,`task`]],[[3,25],[`back`,`menu`,`panel`]],[[3,25],[`back`,`previous`,`less than`,`fewer`,`menu`,`panel`,`button`,`keyboard`,`<`]],[[3,25,11],[`forward`,`next`,`more than`,`greater`,`menu`,`panel`,`code`,`coding`,`command line`,`terminal`,`prompt`,`shell`,`console`,`>`]],[[3,25,21],[`caret`,`keyboard`,`button`,`mac`,`control`,`ctrl`,`superscript`,`exponential`,`power`,`ahead`,`menu`,`panel`,`^`]],[[37,11],[`gist`,`source`,`programming`,`html`,`xml`,`coding`]],[[37,10],[`selection`,`square`,`rectangular`,`marquee`,`tool`,`dashed`,`box`]],[[11,14],[`rectangle`,`aspect ratio`,`1:1`,`shape`,`snippet`,`code`,`coding`]],[[11,14],[`rectangle`,`aspect ratio`,`1:1`,`shape`,`snippet`,`code`,`coding`]],[[6,11,10],[`projects`,`manage`,`overview`,`board`,`tickets`,`issues`,`roadmap`,`plan`,`intentions`,`productivity`,`work`,`agile`,`draft`,`template`,`boilerplate`,`code`,`coding`]],[[3,9,11,39],[`inspector`,`element`,`mouse`,`click`,`pointer`,`box`,`browser`,`selector`,`target`,`dom`,`node`]],[[10,11,19],[`square`,`border`,`width`,`layout`,`style`,`design`,`rectangular`,`marquee`,`dashed`,`box`,`rectangle`,`aspect ratio`,`1:1`]],[[21],[`calculate`,`math`,`÷`,`/`]],[[11],[`git`,`diff`,`modified`,`.`]],[[21],[`calculate`,`=`]],[[11,21],[`programming`,`code`,`automation`,`math`]],[[6,11,10],[`projects`,`manage`,`overview`,`board`,`tickets`,`issues`,`roadmap`,`plan`,`intentions`,`productivity`,`work`,`agile`,`code`,`coding`,`toolbar`,`button`]],[[37,28,23,25,11],[`books`,`reading`,`written`,`authors`,`stories`,`fiction`,`novels`,`information`,`knowledge`,`education`,`high school`,`university`,`college`,`academy`,`learning`,`study`,`research`,`collection`,`vinyl`,`records`,`albums`,`music`,`package`]],[[40,25],[`metro`,`subway`,`underground`,`track`,`line`]],[[19],[`bars`,`navigation`,`hamburger`,`options`,`menu bar`,`panel`]],[[21,11,37,39,12],[`subtract`,`remove`,`decrease`,`reduce`,`calculator`,`button`,`keyboard`,`line`,`divider`,`separator`,`horizontal rule`,`hr`,`html`,`markup`,`markdown`,`---`,`toolbar`,`operator`,`code`,`coding`,`minimum`,`downgrade`]],[[3,9,11,39],[`inspector`,`element`,`mouse`,`click`,`pointer`,`box`,`browser`,`selector`,`target`,`dom`,`node`]],[[40,25],[`parking lot`,`car park`]],[[40,25],[`parking lot`,`car park`,`no parking`]],[[23],[`music`,`audio`,`stop`]],[[37],[`pencil`,`edit`,`change`,`create`,`draw`,`sketch`,`draft`,`writer`,`writing`,`biro`,`ink`,`marker`,`felt tip`,`stationery`,`artist`]],[[34,15,33,21],[`verified`,`unverified`,`sale`,`discount`,`offer`,`marketing`,`sticker`,`price tag`]],[[11,21],[`constant`,`code`,`coding`,`programming`,`symbol`,`trigonometry`,`geometry`,`formula`]],[[37],[`paragraph`,`mark`,`paraph`,`blind`,`typography`,`type`,`text`,`prose`,`symbol`]],[[3,23],[`music`,`audio`,`video`,`start`,`run`]],[[21,39,11,37],[`add`,`new`,`increase`,`increment`,`positive`,`calculate`,`calculator`,`button`,`keyboard`,`toolbar`,`maximum`,`upgrade`,`extra`,`operator`,`join`,`concatenate`,`code`,`coding`,`+`]],[[8],[`on`,`off`,`device`,`switch`,`toggle`,`binary`,`boolean`,`reboot`,`restart`,`button`,`keyboard`,`troubleshoot`]],[[11,21],[`calculate`,`formula`,`math`,`operator`,`root`,`square`,`symbol`]],[[10,11,19],[`border`,`radius`,`style`,`design`,`corner`,`layout`,`round`,`rounded`]],[[37,10,39,14,11],[`cut`,`snippet`,`chop`,`stationery`,`crafts`,`toolbar`,`button`]],[[37,21],[`sum`,`calculate`,`formula`,`math`,`enumeration`,`enumerate`]],[[11,21],[`git`,`diff`,`ignored`,`divide`,`division`,`shortcut`,`or`,`/`]],[[19],[`split`,`divide`]],[[19],[`split`,`divide`]],[[19],[`float`,`center`,`rectangle`]],[[37,14,11],[`versions`,`clone`,`copy`,`duplicate`,`multiple`,`revisions`,`version control`,`backup`,`history`]],[[35,17],[`badge`,`medal`,`honour`,`decoration`,`order`,`pin`,`laurel`,`trophy`,`medallion`,`insignia`,`bronze`,`silver`,`gold`]],[[23],[`media`,`music`]],[[11],[`code`,`command line`,`prompt`,`shell`]],[[1],[`person`,`account`,`contact`]],[[1],[`person`,`account`,`contact`]],[[21,26],[`cancel`,`close`,`delete`,`remove`,`times`,`clear`,`math`,`multiply`,`multiplication`]],[[10],[`square`,`pathfinder`,`path`,`exclude`,`invert`,`xor`,`shape`,`vector`]],[[10],[`square`,`pathfinder`,`path`,`intersect`,`shape`,`include`,`vector`]],[[10],[`square`,`pathfinder`,`path`,`minus`,`subtract`,`subtraction`,`shape`,`front`,`vector`]],[[10],[`square`,`pathfinder`,`path`,`unite`,`union`,`shape`,`merge`,`vector`]],[[32],[`shape`]],[[11,32,10],[`shape`,`pending`,`progress`,`issue`,`draft`,`code`,`coding`,`version control`]],[[2],[`animal`,`rodent`,`pet`,`pest`,`nuts`,`retrieve`,`updates`,`storage`,`stash`]],[[10,9,39],[`mark`,`print`,`clone`,`loyalty`,`library`]],[[1,34,32,23,42,13,17],[`bookmark`,`favorite`,`like`,`review`,`rating`]],[[34,23],[`bookmark`,`favorite`,`like`,`review`,`rating`]],[[23,34],[`dislike`,`unlike`,`remove`,`unrate`]],[[23,3],[`arrow`,`previous`,`music`,`left`,`reverse`]],[[23,3],[`arrow`,`next`,`music`,`right`,`continue`]],[[29,22],[`phonendoscope`,`medical`,`heart`,`lungs`,`sound`]],[[34],[`reaction`,`emotion`,`smile`,`happy`,`feedback`]],[[37,34],[`post-it`,`comment`,`annotation`,`reaction`,`memo`,`reminder`,`todo`,`task`,`idea`,`brainstorm`,`document`,`page`,`paper`,`sheet`,`stationary`,`office`]],[[24],[`mineral`,`geology`,`nature`,`solid`,`pebble`,`crystal`,`ore`,`hard`,`coal`,`stone`,`rock`,`boulder`]],[[5,25,33],[`shop`,`supermarket`,`stand`,`boutique`,`building`]],[[19],[`items`,`flex`,`justify`,`distribute`]],[[19],[`items`,`flex`,`justify`,`distribute`]],[[37],[`cross out`,`delete`,`remove`,`format`]],[[37],[`text`]],[[0,42,30,36],[`brightness`,`weather`,`light`,`summer`]],[[0,42],[`brightness`,`dim`,`low`,`brightness low`]],[[0,42],[`brightness`,`medium`]],[[0],[`dark`,`light`,`moon`,`sun`,`brightness`,`theme`,`auto theme`,`system theme`,`appearance`]],[[42],[`weather`,`air conditioning`,`temperature`,`hot`,`cold`,`seasons`]],[[3,42,38],[`weather`,`time`,`morning`,`day`]],[[3,42],[`weather`,`time`,`evening`,`night`]],[[37],[`text`,`exponent`]],[[10,18,28],[`colors`,`colours`,`swatches`,`pantone`,`shades`,`tint`,`hue`,`saturation`,`brightness`,`theme`,`scheme`,`palette`,`samples`,`textile`,`carpet`]],[[15],[`currency`,`money`,`payment`]],[[7,12],[`photo`,`selfie`,`front`,`back`]],[[17,39],[`battle`,`challenge`,`game`,`war`,`weapon`]],[[17,39],[`battle`,`challenge`,`game`,`war`,`weapon`]],[[29,22],[`medicine`,`medical`,`needle`,`pump`,`plunger`,`nozzle`,`blood`]],[[37,14],[`spreadsheet`,`grid`]],[[37,14],[`spreadsheet`,`grid`]],[[37,14],[`spreadsheet`,`grid`,`row`]],[[37,14],[`spreadsheet`,`grid`,`row`]],[[37,14],[`spreadsheet`,`grid`,`cut`,`break`,`divide`,`separate`,`segment`]],[[37],[`toc`,`outline`,`navigation`,`document structure`,`index`,`overview`,`sections`,`chapters`,`content`,`documentation`,`manual`,`knowledge base`,`faq`]],[[37,11,14],[`property list`,`plist`,`spreadsheet`,`grid`,`dictionary`,`object`,`hash`]],[[37,14],[`spreadsheet`,`grid`,`cut`,`break`,`divide`,`separate`,`segment`]],[[12],[`device`]],[[12,10,11,39],[`responsive`,`screens`,`browser`,`testing`,`mobile`]],[[22],[`medicine`,`medication`,`drug`,`prescription`,`pills`,`pharmacy`]],[[1],[`label`,`badge`,`ticket`,`mark`]],[[1],[`labels`,`badges`,`tickets`,`marks`,`copy`,`multiple`]],[[21,17],[`count`,`score`,`enumerate`,`days`,`one`,`1`,`first`,`bar`,`prison`,`cell`,`sentence`]],[[21,17],[`count`,`score`,`enumerate`,`days`,`two`,`2`,`second`,`double`,`bars`,`prison`,`cell`,`sentence`]],[[21,17],[`count`,`score`,`enumerate`,`days`,`three`,`3`,`third`,`triple`,`bars`,`prison`,`cell`,`sentence`]],[[21,17],[`count`,`score`,`enumerate`,`days`,`4`,`fourth`,`quadruple`,`bars`,`prison`,`cell`,`sentence`]],[[21,17],[`count`,`score`,`enumerate`,`days`,`five`,`5`,`fifth`,`bars`,`prison`,`cell`,`sentence`,`slash`,`/`]],[[32,21,10,39],[`tangential`,`shape`,`circle`,`geometry`,`trigonometry`,`bezier curve`]],[[4,17],[`logo`,`bullseye`,`deadline`,`projects`,`overview`,`work`,`productivity`]],[[29,11,39],[`astronomy`,`space`,`discovery`,`exploration`,`explore`,`vision`,`perspective`,`focus`,`stargazing`,`observe`,`view`]],[[41,24,36],[`tipi`,`teepee`,`wigwam`,`lodge`,`camping`,`campsite`,`holiday`,`retreat`,`nomadic`,`native american`,`indian`,`wilderness`,`outdoors`]],[[41,24],[`camping`,`campsite`,`holiday`,`retreat`,`nomadic`,`wilderness`,`outdoors`]],[[11],[`code`,`command line`,`prompt`,`shell`]],[[29],[`tube`,`vial`,`phial`,`flask`,`ampoule`,`ampule`,`lab`,`chemistry`,`experiment`,`test`]],[[29],[`tube`,`vial`,`phial`,`flask`,`ampoule`,`ampule`,`lab`,`chemistry`,`experiment`,`test`]],[[29],[`tubes`,`vials`,`phials`,`flasks`,`ampoules`,`ampules`,`lab`,`chemistry`,`experiment`,`test`]],[[37],[`text`,`alignment`,`center`]],[[37],[`text`,`alignment`,`right`]],[[37],[`text`,`alignment`,`justified`,`menu`,`list`]],[[37],[`text`,`alignment`,`left`,`list`]],[[37,9],[`select`]],[[37,19],[`select`]],[[37],[`drop cap`,`text`,`format`,`typography`,`letter`,`font size`]],[[37],[`blockquote`,`quotation`,`indent`,`reply`,`response`]],[[37],[`find`,`data`,`copy`,`txt`,`pdf`,`document`,`scan`,`magnifier`,`magnifying glass`,`lens`]],[[37,9],[`find`,`search`,`selection`,`dashed`]],[[37,3],[`words`,`lines`,`break`,`paragraph`]],[[5,34],[`theater`,`theatre`,`entertainment`,`podium`,`stage`,`musical`]],[[42],[`temperature`,`celsius`,`fahrenheit`,`weather`]],[[42],[`temperature`,`celsius`,`fahrenheit`,`weather`,`cold`,`freeze`,`freezing`]],[[42],[`temperature`,`celsius`,`fahrenheit`,`weather`,`warm`,`hot`]],[[1,34,13],[`dislike`,`bad`,`emotion`]],[[1,34,13],[`like`,`good`,`emotion`]],[[1,40],[`entry`,`pass`,`voucher`,`event`,`concert`,`show`,`perforated`,`dashed`]],[[40],[`entry`,`pass`,`voucher`,`event`,`concert`,`show`,`booked`,`purchased`,`receipt`,`redeemed`,`validated`,`verified`,`certified`,`checked`,`used`]],[[40],[`entry`,`pass`,`voucher`,`event`,`concert`,`show`,`remove`,`cancel`,`unbook`,`subtract`,`decrease`,`-`]],[[40,33],[`discount`,`reduced`,`offer`,`voucher`,`entry`,`pass`,`event`,`concert`,`show`,`book`,`purchase`,`%`]],[[40],[`entry`,`pass`,`voucher`,`event`,`concert`,`show`,`book`,`purchase`,`add`,`+`]],[[40],`entry.pass.voucher.event.concert.show.redeemed.used.marked.checked.verified.spoiled.invalidated.void.denied.refused.banned.barred.forbidden.prohibited.cancelled.cancellation.refunded.delete.remove.clear.error`.split(`.`)],[[40],[`entry`,`pass`,`voucher`,`event`,`concert`,`show`,`cancelled`,`cancellation`,`refunded`,`used`,`void`,`invalidated`,`spoiled`,`denied`,`refused`,`banned`,`barred`,`forbidden`,`prohibited`,`delete`,`remove`,`clear`,`error`,`x`]],[[41,1,40],[`trip`,`travel`,`pass`,`entry`,`voucher`,`event`,`concert`,`show`,`perforated`,`dashed`]],[[40,41],[`plane`,`trip`,`airplane`,`flight`,`travel`,`fly`,`takeoff`,`vacation`,`passenger`,`pass`,`check-in`,`airport`]],[[38],[`time`,`timer`,`stopwatch`]],[[38],[`time`,`timer`,`stopwatch`]],[[38],[`time`,`timer`,`stopwatch`]],[[19,1,11],[`on`,`off`,`switch`,`boolean`]],[[19,1,11],[`on`,`off`,`switch`,`boolean`]],[[12,18],[`toilet`,`potty`,`bathroom`,`washroom`]],[[39,11,18],[`tools`,`maintenance`,`repair`]],[[39,18],[`toolkit`,`tools`,`trunk`,`chest`,`box`,`storage`,`utility`,`utilities`,`container`,`kit`,`set`,`repair`,`fix`,`service`,`maintenance`,`mechanic`,`workshop`,`construction`,`hardware`,`equipment`,`gear`,`handyman`,`engineering`,`craft`,`diy`]],[[42],[`weather`,`wind`,`storm`,`hurricane`]],[[32,10,39,16],[`donut`,`doughnut`,`ring`,`hollow`,`3d`,`fast food`,`junk food`,`snack`,`treat`,`sweet`,`sugar`,`dessert`]],[[12],[`trackpad`,`cursor`]],[[12],[`trackpad`,`cursor`]],[[18,41],[`flannel`,`bathroom`,`toiletries`,`sanitation`,`clean`,`fresh`,`dry`,`laundry`,`laundrette`,`hospitality`,`housekeeping`,`room service`,`spa break`,`health club`,`amenities`,`hanging`]],[[41,40],[`airport`,`travel`,`tower`,`transportation`,`lighthouse`]],[[17,11],[`lego`,`block`,`addon`,`plugin`,`integration`]],[[40,36,16],[`farming`,`farmer`,`ranch`,`harvest`,`equipment`,`vehicle`]],[[40],[`roadworks`,`tarmac`,`safety`,`block`]],[[40],[`railway`,`metro`,`subway`,`underground`,`high-speed`,`bullet`,`fast`,`track`,`line`]],[[40,25],[`railway`,`metro`,`subway`,`underground`,`speed`,`bullet`,`fast`,`track`,`line`]],[[40,25],[`railway`,`line`]],[[40],[`railway`,`metro`,`subway`,`underground`,`track`,`line`,`tourism`]],[[22,0],[`gender`,`inclusive`]],[[14,20],[`empty`,`deletion`,`cleanup`,`junk`,`clear`,`garbage`,`delete`,`remove`,`bin`,`waste`,`recycle`,`discard`,`binoculars`,`rubbish`]],[[14,20],[`garbage`,`delete`,`remove`,`bin`]],[[24,36],[`tree`,`forest`,`park`,`nature`]],[[24,36],[`vacation`,`leisure`,`island`]],[[24,36],[`tree`,`pine`,`forest`,`park`,`nature`]],[[24,36],[`tree`,`forest`,`park`,`nature`]],[[6,3],[`statistics`]],[[6,3],[`statistics`]],[[6,3],[`arrows`,`estimated`,`indeterminate`,`data fluctuation`,`uncertain`,`forecast`,`variable`,`prediction`,`dynamic`,`volatile`]],[[32],[`equilateral`,`delta`,`shape`,`pyramid`,`hierarchy`]],[[26,32,11],[`warning`,`alert`,`danger`,`exclamation mark`,`linter`]],[[32],[`equilateral`,`delta`,`shape`,`pyramid`,`hierarchy`,`dashed`]],[[32,21],[`volume`,`controls`,`controller`,`tv remote`,`geometry`,`delta`,`ramp`,`slope`,`incline`,`increase`]],[[35,17],[`prize`,`sports`,`winner`,`achievement`,`award`,`champion`,`celebration`,`victory`]],[[40],[`delivery`,`van`,`shipping`,`haulage`,`lorry`]],[[40],[`delivery`,`van`,`shipping`,`haulage`,`lorry`,`electric`]],[[15],[`currency`,`money`,`payment`]],[[23,18],[`record player`,`gramophone`,`stereo`,`phonograph`,`vinyl`,`lp`,`disc`,`platter`,`cut`,`music`,`analog`,`retro`,`dj deck`,`disc jockey`,`scratch`,`spinning`]],[[2],[`animal`,`pet`,`tortoise`,`slow`,`speed`]],[[12,23,7],`television.stream.display.widescreen.high-definition.hd.1080p.4k.8k.smart.digital.video.entertainment.showtime.channels.terrestrial.satellite.cable.broadcast.live.frequency.tune.scan.aerial.receiver.transmission.signal.connection.connectivity`.split(`.`)],[[12,23],[`flatscreen`,`television`,`stream`,`display`,`widescreen`,`high-definition`,`hd`,`1080p`,`4k`,`8k`,`smart`,`digital`,`video`,`home cinema`,`entertainment`,`showtime`,`channels`,`catchup`]],[[12,23],[`flatscreen`,`television`,`stream`,`display`,`widescreen`,`high-definition`,`hd`,`1080p`,`4k`,`8k`,`smart`,`digital`,`video`,`movie`,`live`,`ott`,`running`,`start`,`film`,`home cinema`,`entertainment`,`showtime`,`channels`,`catchup`]],[[37],[`text`,`font`,`typography`]],[[37],[`text`,`font`,`typography`,`silhouette`,`profile`,`contour`,`stroke`,`line`]],[[42],[`rain`,`weather`]],[[42],[`rain`,`weather`,`uncovered`,`uninsured`,`antivirus`,`unprotected`,`risky`]],[[37],[`text`,`format`]],[[37,3],[`redo`,`rerun`,`history`]],[[37,3],[`redo`,`rerun`,`history`,`back`,`return`,`reverse`,`revert`,`direction`,`u-turn`]],[[37,3],[`redo`,`history`,`step`,`back`]],[[3,19],[`arrow`,`collapse`,`fold`,`vertical`,`dashed`]],[[3,19],[`arrow`,`expand`,`vertical`,`dashed`]],[[32,14],[`cubes`,`packages`,`parts`,`units`,`collection`,`cluster`,`separate`]],[[5,25],[`building`,`education`,`childhood`,`school`,`college`,`academy`,`institute`]],[[37],[`url`,`unchain`]],[[37],[`url`,`unchain`]],[[12,11],[`electricity`,`energy`,`electronics`,`socket`,`outlet`,`disconnect`]],[[3,14],[`file`]],[[12,23,18],[`universal`,`serial`,`bus`,`controller`,`connector`,`interface`]],[[1],[`person`,`account`,`contact`]],[[1],[`followed`,`subscribed`,`done`,`todo`,`tick`,`complete`,`task`]],[[1],[`settings`,`edit`,`cog`,`gear`]],[[1],[`passkey`,`password`,`login`,`authentication`,`authorization`,`roles`,`permissions`,`private`,`public`,`security`,`person`,`account`,`contact`]],[[1,31],[`person`,`lock`,`locked`,`account`,`secure`]],[[1],[`delete`,`remove`,`unfollow`,`unsubscribe`]],[[1],[`person`,`account`,`contact`,`profile`,`edit`,`change`]],[[1],[`new`,`add`,`create`,`follow`,`subscribe`]],[[1],[`person`,`account`,`contact`]],[[1],[`followed`,`subscribed`,`done`,`todo`,`tick`,`complete`,`task`]],[[1],[`settings`,`edit`,`cog`,`gear`]],[[1],[`passkey`,`password`,`login`,`authentication`,`authorization`,`roles`,`permissions`,`private`,`public`,`security`,`person`,`account`,`contact`]],[[1],[`delete`,`remove`,`unfollow`,`unsubscribe`]],[[1],[`person`,`account`,`contact`,`profile`,`edit`,`change`]],[[1],[`new`,`add`,`create`,`follow`,`subscribe`]],[[1,34],[`person`,`account`,`contact`,`find`,`scan`,`magnifier`,`magnifying glass`,`lens`]],[[1],[`delete`,`remove`,`unfollow`,`unsubscribe`,`unavailable`]],[[1,34],[`person`,`account`,`contact`,`find`,`scan`,`magnifier`,`magnifying glass`,`lens`]],[[1],[`person`,`account`,`favorite`,`contact`,`like`,`review`,`rating`,`admin`]],[[1],[`delete`,`remove`,`unfollow`,`unsubscribe`,`unavailable`]],[[1],[`group`,`people`]],[[1],[`group`,`people`]],[[16,41,25],[`fork`,`knife`,`cutlery`,`flatware`,`tableware`,`silverware`,`food`,`restaurant`,`meal`,`breakfast`,`dinner`,`supper`]],[[16,41,25],[`fork`,`knife`,`cutlery`,`flatware`,`tableware`,`silverware`,`food`,`restaurant`,`meal`,`breakfast`,`dinner`,`supper`]],[[5,18,36],[`electricity`,`energy`,`transmission line`,`telegraph pole`,`power lines`,`phone`]],[[40],[`minivan`,`cart`,`wagon`,`truck`,`lorry`,`trailer`,`camper`,`vehicle`,`drive`,`trip`,`journey`,`van`,`transport`,`carriage`,`delivery`,`travel`]],[[11,21],[`code`,`coding`,`programming`,`symbol`,`calculate`,`algebra`,`x`,`parentheses`,`parenthesis`,`brackets`,`parameter`,`(`,`)`]],[[31,41,18],[`safe`,`lockbox`,`deposit`,`locker`,`coffer`,`strongbox`,`safety`,`secure`,`storage`,`valuables`,`bank`]],[[32,21,10,39],[`shape`,`geometry`,`art`,`width`,`height`,`size`,`calculate`,`measure`,`select`,`graphics`,`box`]],[[16,36],[`vegetarian`,`fruitarian`,`herbivorous`,`animal rights`,`diet`]],[[1,17],[`mask`,`masquerade`,`impersonate`,`secret`,`incognito`]],[[22],[`gender`,`sex`,`female`,`feminine`,`woman`,`girl`]],[[22],[`gender`,`sex`,`intersex`,`androgynous`,`hermaphrodite`]],[[12,8,1,26],[`smartphone`,`notification`,`rumble`,`haptic feedback`,`screen`]],[[12,8,1],[`smartphone`,`notification`,`rumble`,`haptic feedback`,`notifications`,`screen`]],[[12,7,8,28],[`camera`,`movie`,`film`,`recording`,`motion picture`,`camcorder`,`reel`]],[[12,7,8,28],[`camera`,`movie`,`film`]],[[12,7,8,28,14],[`vhs`,`movie`,`film`,`recording`,`motion picture`,`showreel`,`cassette`]],[[10,28],[`eye`,`look`]],[[8,12,34],[`phone`,`cassette`,`tape`,`reel`,`recording`,`audio`]],[[35,17,41],[`beach`,`sand`,`net`,`holiday`,`vacation`,`summer`,`soccer`,`football`,`futbol`,`kick`,`pitch`,`goal`,`score`,`bounce`,`leather`,`wool`,`yarn`,`knitting`,`sewing`,`thread`,`embroidery`,`textile`]],[[8,7,23],[`music`,`sound`,`mute`,`speaker`]],[[8,7,23],[`music`,`sound`,`speaker`]],[[8,7,23],[`music`,`sound`,`speaker`]],[[8,7,23],[`music`,`sound`,`mute`,`speaker`]],[[8,7,23],[`music`,`sound`,`mute`,`speaker`]],[[34],[`vote`,`poll`,`ballot`,`political`,`social`,`check`,`tick`]],[[1,15],[`money`,`finance`,`pocket`]],[[1,15],[`money`,`finance`,`pocket`,`credit`,`purchase`,`payment`,`shopping`,`retail`,`consumer`,`cc`]],[[1,15],[`finance`,`pocket`]],[[1,12],[`background`,`texture`,`image`,`art`,`design`,`visual`,`decor`,`pattern`,`screen`,`cover`,`lock screen`]],[[10,17,9,28],[`magic`,`selection`]],[[10,17,9,28],[`magic`,`wizard`,`magician`]],[[5,25],[`storage`,`storehouse`,`depot`,`depository`,`repository`,`stockroom`,`logistics`,`building`]],[[18,12,41],[`tumble dryer`,`amenities`,`electronics`,`cycle`,`clothes`,`rinse`,`spin`,`drum`]],[[38],[`clock`,`time`]],[[42,25,23,36],[`water`,`sea`,`sound`,`hertz`,`wavelength`,`vibrate`]],[[42,36],[`water`,`sea`,`level`,`sound`,`hertz`,`wavelength`,`vibrate`,`low`,`tide`,`ocean`,`rising`,`down`,`falling`]],[[42,36],[`water`,`sea`,`level`,`sound`,`hertz`,`wavelength`,`vibrate`,`high`,`tide`,`ocean`,`rising`]],[[35,18],[`swimming`,`water`,`pool`,`lifeguard`,`ocean`,`🌊`,`🏊‍♂️`,`🏊‍♀️`,`🏊`,`🥽`]],[[31,1,25,11,34],[`indirection`,`vpn`,`virtual private network`,`proxy`,`connections`,`bounce`,`reroute`,`path`,`journey`,`planner`,`stops`,`stations`,`shared`,`spread`,`viral`]],[[8,12,7],[`camera`,`security`]],[[11,34,1],[`push api`,`interface`,`callback`]],[[11,34,1],[`push api`,`interface`,`callback`]],[[21],[`mass`,`heavy`,`lead`,`metal`,`measure`,`geometry`,`scales`,`balance`]],[[21],[`measure`,`scale`,`estimate`,`load`,`balance`,`size`,`measurement`,`quantity`,`mass`]],[[16],[`corn`,`cereal`,`grain`,`gluten`]],[[16],[`corn`,`cereal`,`grain`,`gluten free`,`allergy`,`intolerance`,`diet`]],[[37],[`text`,`selection`,`letters`,`characters`,`font`,`typography`]],[[8,12],[`connection`,`signal`,`wireless`]],[[8,12,14],[`connection`,`signal`,`wireless`,`directory`,`settings`,`control`,`preferences`,`cog`,`edit`,`gear`]],[[8,12],[`connection`,`signal`,`wireless`]],[[8,12],[`connection`,`signal`,`wireless`]],[[8,12],[`disabled`]],[[8,12],[`edit`,`wifi`,`pen`,`change`,`network`]],[[8,12],[`connection`,`signal`,`wireless`,`synchronize`,`reconnect`,`reset`,`restart`]],[[8,12],[`connection`,`signal`,`wireless`]],[[42,36],[`weather`,`air`,`blow`]],[[42,36],[`weather`,`air`,`pressure`,`blow`]],[[16],[`alcohol`,`beverage`,`bar`,`drink`,`glass`,`sommelier`,`vineyard`,`winery`]],[[16],[`alcohol`,`beverage`,`drink`,`glass`,`alcohol free`,`abstinence`,`abstaining`,`teetotalism`,`allergy`,`intolerance`]],[[11],[`action`,`continuous integration`,`ci`,`automation`,`devops`,`network`,`node`,`connection`]],[[2,31],[`invertebrate`,`grub`,`larva`,`snake`,`crawl`,`wiggle`,`slither`,`pest control`,`computer virus`,`malware`]],[[1,11,39],[`account`,`settings`,`spanner`,`diy`,`toolbox`,`build`,`construction`]],[[26,21],[`cancel`,`close`,`cross`,`delete`,`ex`,`remove`,`times`,`clear`,`math`,`multiply`,`multiplication`]],[[26,21],[`line`,`top`,`arrow`,`navigation`,`up`,`pointer`,`direction`,`vector`,`symbol`,`cancel`,`close`,`delete`,`remove`,`times`,`clear`,`math`,`multiply`,`multiplication`,`mean`,`median`,`average`,`x̄`]],[[8,12,28,42],[`flash`,`camera`,`lightning`,`electricity`,`energy`]],[[8,12,28,42],[`flash`,`camera`,`lightning`,`electricity`,`energy`]],[[34,13],[`water bearer`,`waves`,`innovation`,`air`,`future`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`ram`,`horns`,`fire`,`energy`,`initiative`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`crab`,`shell`,`protection`,`water`,`intuition`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`goat`,`mountain`,`ambition`,`earth`,`discipline`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`twins`,`duality`,`communication`,`air`,`adaptability`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`lion`,`crown`,`leadership`,`fire`,`confidence`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`scales`,`balance`,`justice`,`air`,`harmony`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`serpent`,`snake holder`,`healing`,`knowledge`,`astronomy`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`fish`,`duality`,`water`,`dreams`,`empathy`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`archer`,`arrow`,`exploration`,`fire`,`philosophy`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`scorpion`,`stinger`,`intensity`,`water`,`transformation`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`bull`,`strength`,`stability`,`earth`,`endurance`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[34,13],[`virgin`,`maiden`,`harvest`,`precision`,`earth`,`analysis`,`astrology`,`star sign`,`horoscope`,`constellation`,`celestial`]],[[0,19,10,37,28],[`magnifying glass`,`plus`]],[[0,19,10,37,28],[`magnifying glass`,`plus`]]],zC={"text-select":`square-dashed-text`,waves:`waves-horizontal`},BC={"activity-square":`square-activity`,"alarm-check":`alarm-clock-check`,"alarm-minus":`alarm-clock-minus`,"alarm-plus":`alarm-clock-plus`,"alert-circle":`circle-alert`,"alert-octagon":`octagon-alert`,"alert-triangle":`triangle-alert`,"align-center":`text-align-center`,"align-justify":`text-align-justify`,"align-left":`text-align-start`,"align-right":`text-align-end`,"area-chart":`chart-area`,"arrow-down-01":`arrow-down-0-1`,"arrow-down-10":`arrow-down-1-0`,"arrow-down-az":`arrow-down-a-z`,"arrow-down-circle":`circle-arrow-down`,"arrow-down-left-from-circle":`circle-arrow-out-down-left`,"arrow-down-left-from-square":`square-arrow-out-down-left`,"arrow-down-left-square":`square-arrow-down-left`,"arrow-down-right-from-circle":`circle-arrow-out-down-right`,"arrow-down-right-from-square":`square-arrow-out-down-right`,"arrow-down-right-square":`square-arrow-down-right`,"arrow-down-square":`square-arrow-down`,"arrow-down-za":`arrow-down-z-a`,"arrow-left-circle":`circle-arrow-left`,"arrow-left-square":`square-arrow-left`,"arrow-right-circle":`circle-arrow-right`,"arrow-right-square":`square-arrow-right`,"arrow-up-01":`arrow-up-0-1`,"arrow-up-10":`arrow-up-1-0`,"arrow-up-az":`arrow-up-a-z`,"arrow-up-circle":`circle-arrow-up`,"arrow-up-left-from-circle":`circle-arrow-out-up-left`,"arrow-up-left-from-square":`square-arrow-out-up-left`,"arrow-up-left-square":`square-arrow-up-left`,"arrow-up-right-from-circle":`circle-arrow-out-up-right`,"arrow-up-right-from-square":`square-arrow-out-up-right`,"arrow-up-right-square":`square-arrow-up-right`,"arrow-up-square":`square-arrow-up`,"arrow-up-za":`arrow-up-z-a`,"asterisk-square":`square-asterisk`,"axis-3-d":`axis-3d`,"badge-help":`badge-question-mark`,"bar-chart":`chart-no-axes-column-increasing`,"bar-chart-2":`chart-no-axes-column`,"bar-chart-3":`chart-column`,"bar-chart-4":`chart-column-increasing`,"bar-chart-big":`chart-column-big`,"bar-chart-horizontal":`chart-bar`,"bar-chart-horizontal-big":`chart-bar-big`,"between-horizonal-end":`between-horizontal-end`,"between-horizonal-start":`between-horizontal-start`,"book-template":`book-dashed`,"box-select":`square-dashed`,"candlestick-chart":`chart-candlestick`,"check-circle":`circle-check-big`,"check-circle-2":`circle-check`,"check-square":`square-check-big`,"check-square-2":`square-check`,"chevron-down-circle":`circle-chevron-down`,"chevron-down-square":`square-chevron-down`,"chevron-left-circle":`circle-chevron-left`,"chevron-left-square":`square-chevron-left`,"chevron-right-circle":`circle-chevron-right`,"chevron-right-square":`square-chevron-right`,"chevron-up-circle":`circle-chevron-up`,"chevron-up-square":`square-chevron-up`,"circle-help":`circle-question-mark`,"circle-slashed":`circle-slash-2`,"clipboard-edit":`clipboard-pen`,"clipboard-signature":`clipboard-pen-line`,"code-2":`code-xml`,"code-square":`square-code`,columns:`columns-2`,"columns-settings":`columns-3-cog`,"contact-2":`contact-round`,"curly-braces":`braces`,"divide-circle":`circle-divide`,"divide-square":`square-divide`,"dot-square":`square-dot`,"download-cloud":`cloud-download`,edit:`square-pen`,"edit-2":`pen`,"edit-3":`pen-line`,"equal-square":`square-equal`,"file-audio":`file-headphone`,"file-audio-2":`file-headphone`,"file-axis-3-d":`file-axis-3d`,"file-badge-2":`file-badge`,"file-bar-chart":`file-chart-column-increasing`,"file-bar-chart-2":`file-chart-column`,"file-check-2":`file-check-corner`,"file-code-2":`file-code-corner`,"file-cog-2":`file-cog`,"file-edit":`file-pen`,"file-json":`file-braces`,"file-json-2":`file-braces-corner`,"file-key-2":`file-key`,"file-line-chart":`file-chart-line`,"file-lock-2":`file-lock`,"file-minus-2":`file-minus-corner`,"file-pie-chart":`file-chart-pie`,"file-plus-2":`file-plus-corner`,"file-question":`file-question-mark`,"file-search-2":`file-search-corner`,"file-signature":`file-pen-line`,"file-type-2":`file-type-corner`,"file-video":`file-play`,"file-video-2":`file-video-camera`,"file-volume-2":`file-signal`,"file-warning":`file-exclamation-point`,"file-x-2":`file-x-corner`,filter:`funnel`,"filter-x":`funnel-x`,fingerprint:`fingerprint-pattern`,"flip-horizontal":`square-centerline-dashed-horizontal`,"flip-vertical":`square-centerline-dashed-vertical`,"folder-cog-2":`folder-cog`,"folder-edit":`folder-pen`,"fork-knife":`utensils`,"fork-knife-crossed":`utensils-crossed`,"form-input":`rectangle-ellipsis`,"function-square":`square-function`,"gantt-chart":`chart-no-axes-gantt`,"gantt-chart-square":`square-chart-gantt`,"gauge-circle":`circle-gauge`,"git-commit":`git-commit-horizontal`,"globe-2":`earth`,grab:`hand-grab`,grid:`grid-3x3`,"grid-2-x-2":`grid-2x2`,"grid-2-x-2-check":`grid-2x2-check`,"grid-2-x-2-plus":`grid-2x2-plus`,"grid-2-x-2-x":`grid-2x2-x`,"grid-3-x-3":`grid-3x3`,"help-circle":`circle-question-mark`,"helping-hand":`hand-helping`,home:`house`,"ice-cream":`ice-cream-cone`,"ice-cream-2":`ice-cream-bowl`,indent:`list-indent-increase`,"indent-decrease":`list-indent-decrease`,"indent-increase":`list-indent-increase`,inspect:`square-mouse-pointer`,"kanban-square":`square-kanban`,"kanban-square-dashed":`square-dashed-kanban`,"laptop-2":`laptop-minimal`,"layers-3":`layers`,layout:`panels-top-left`,"letter-text":`text-initial`,"library-square":`square-library`,"line-chart":`chart-line`,"loader-2":`loader-circle`,"location-edit":`map-pin-pen`,"m-square":`square-m`,"mail-question":`mail-question-mark`,"menu-square":`square-menu`,"message-circle-question":`message-circle-question-mark`,"mic-2":`mic-vocal`,"minus-circle":`circle-minus`,"minus-square":`square-minus`,"more-horizontal":`ellipsis`,"more-vertical":`ellipsis-vertical`,"mouse-pointer-square-dashed":`square-dashed-mouse-pointer`,"move-3-d":`move-3d`,outdent:`list-indent-decrease`,"paintbrush-2":`paintbrush-vertical`,palmtree:`tree-palm`,"panel-bottom-inactive":`panel-bottom-dashed`,"panel-left-inactive":`panel-left-dashed`,"panel-right-inactive":`panel-right-dashed`,"panel-top-inactive":`panel-top-dashed`,"panels-left-right":`columns-3`,"panels-top-bottom":`rows-3`,"parking-circle":`circle-parking`,"parking-circle-off":`circle-parking-off`,"parking-square":`square-parking`,"parking-square-off":`square-parking-off`,"pause-circle":`circle-pause`,"pause-octagon":`octagon-pause`,"pen-box":`square-pen`,"pen-square":`square-pen`,"percent-circle":`circle-percent`,"percent-diamond":`diamond-percent`,"percent-square":`square-percent`,"pi-square":`square-pi`,"pie-chart":`chart-pie`,"pilcrow-square":`square-pilcrow`,"play-circle":`circle-play`,"play-square":`square-play`,"plug-zap-2":`plug-zap`,"plus-circle":`circle-plus`,"plus-square":`square-plus`,"power-circle":`circle-power`,"power-square":`square-power`,"rotate-3-d":`rotate-3d`,rows:`rows-2`,"scale-3-d":`scale-3d`,"scatter-chart":`chart-scatter`,"school-2":`university`,"scissors-square":`square-scissors`,"scissors-square-dashed-bottom":`square-bottom-dashed-scissors`,"send-horizonal":`send-horizontal`,"shield-close":`shield-x`,"shield-question":`shield-question-mark`,sidebar:`panel-left`,"sidebar-close":`panel-left-close`,"sidebar-open":`panel-left-open`,"sigma-square":`square-sigma`,"slash-square":`square-slash`,sliders:`sliders-vertical`,"sort-asc":`arrow-up-narrow-wide`,"sort-desc":`arrow-down-wide-narrow`,"split-square-horizontal":`square-split-horizontal`,"split-square-vertical":`square-split-vertical`,"square-gantt-chart":`square-chart-gantt`,stars:`sparkles`,"stop-circle":`circle-stop`,subtitles:`captions`,"table-config":`columns-3-cog`,"terminal-square":`square-terminal`,"test-tube-2":`test-tube-diagonal`,text:`text-align-start`,"text-selection":`text-select`,train:`tram-front`,"tv-2":`tv-minimal`,unlock:`lock-open`,"unlock-keyhole":`lock-keyhole-open`,"upload-cloud":`cloud-upload`,"user-2":`user-round`,"user-check-2":`user-round-check`,"user-circle":`circle-user`,"user-circle-2":`circle-user-round`,"user-cog-2":`user-round-cog`,"user-minus-2":`user-round-minus`,"user-plus-2":`user-round-plus`,"user-square":`square-user`,"user-square-2":`square-user-round`,"user-x-2":`user-round-x`,"users-2":`users-round`,verified:`badge-check`,"wallet-2":`wallet-minimal`,"wand-2":`wand-sparkles`,"wrap-text":`text-wrap`,"x-circle":`circle-x`,"x-octagon":`octagon-x`,"x-square":`square-x`},VC={activity:[`attivita`,`sensore`,`generico`],"air-vent":[`bocchetta`,`aria`,`ventilazione`,`condizionatore`,`vent`],"alarm-smoke":[`fumo`,`antincendio`,`rilevatore`],baby:[`neonato`,`bimbo`,`cameretta`,`babymonitor`],bath:[`bagno`,`vasca`,`doccia`,`bathroom`],battery:[`batteria`],"battery-charging":[`batteria`,`carica`,`ricarica`],"battery-full":[`batteria`,`carica`,`piena`],"battery-low":[`batteria`,`scarica`],bed:[`cameretta`,`letto`,`singolo`],"bed-double":[`camera`,`letto`,`matrimoniale`,`bedroom`],bell:[`campanello`,`suoneria`,`notifica`,`chime`],"bell-off":[`silenzioso`,`notifiche`,`disattivate`,`muto`],"bell-ring":[`campanello`,`suona`,`doorbell`,`notifica`],bike:[`bicicletta`,`bici`,`moto`],bird:[`uccello`,`animale`],blinds:[`tapparella`,`persiana`,`serranda`,`avvolgibile`,`shutter`,`blind`,`veneziana`],bluetooth:[],bone:[`osso`,`cane`],bot:[`robot`,`aspirapolvere`],box:[`scatola`,`contenitore`],briefcase:[`ufficio`,`lavoro`,`valigetta`,`studio`,`office`],building:[`edificio`,`palazzo`],"building-2":[`edificio`,`uffici`,`condominio`],bus:[`autobus`,`pullman`],cable:[`cavo`],calendar:[`calendario`,`data`,`pianificazione`],camera:[`telecamera`,`videocamera`,`cam`],car:[`auto`,`macchina`,`veicolo`,`parcheggio`,`garage`],cat:[`gatto`,`animale`],"circle-dot":[`pulsante`,`bottone`,`button`,`dot`],"circle-parking":[`parcheggio`,`posto`,`auto`,`garage`,`parking`],clock:[`orologio`,`ora`,`tempo`],cloud:[`nuvola`,`nuvoloso`],"cloud-rain":[`pioggia`],"cloud-sun":[`variabile`,`sole`,`nuvole`],"cooking-pot":[`pentola`,`cucina`,`fornello`],cpu:[`processore`,`chip`,`dispositivo`],crosshair:[`mirino`,`puntamento`,`centro`],dog:[`cane`,`animale`],"door-closed":[`porta`,`chiusa`,`contatto`],"door-open":[`porta`,`aperta`,`contatto`,`ingresso`,`uscita`,`entrance`],drill:[`officina`,`trapano`,`lavori`],droplet:[`goccia`,`acqua`,`perdita`,`allagamento`],droplets:[`umidita`,`acqua`,`allagamento`,`perdita`],dumbbell:[`palestra`,`attrezzi`],eye:[`occhio`,`visibile`,`visto`],"eye-off":[`privacy`,`nascosto`,`oscurato`,`mascherato`,`invisibile`],fan:[`ventilatore`,`ventola`,`aria`],fence:[`recinto`,`cancello`,`staccionata`,`perimetro`,`gate`],flame:[`fiamma`,`gas`,`fuoco`,`incendio`],flashlight:[`faretto`,`torcia`,`spot`,`faro`],flower:[`fiore`,`pianta`],footprints:[`movimento`,`passi`,`presenza`,`motion`],"gamepad-2":[`console`,`gioco`,`joystick`],gauge:[`misura`,`livello`,`pressione`,`indicatore`],hammer:[`officina`,`martello`,`lavori`],"hard-drive":[`disco`,`hdd`,`archiviazione`,`storage`],hash:[`numero`,`contatore`,`valore`],heart:[`cuore`,`preferito`,`salute`],"heart-pulse":[`battito`,`salute`,`monitoraggio`],heater:[`riscaldamento`,`termosifone`,`stufa`,`calore`],house:[`casa`,`abitazione`,`home`],image:[`immagine`,`foto`,`snapshot`],key:[`chiave`],"key-round":[`chiave`,`tonda`],lamp:[`lampada`,`abatjour`],"lamp-ceiling":[`plafoniera`,`lampadario`,`luce`,`soffitto`],"lamp-desk":[`lampada`,`scrivania`,`abatjour`],"lamp-floor":[`piantana`,`lampada`,`terra`],laptop:[`portatile`,`notebook`],leaf:[`foglia`,`pianta`,`verde`],lightbulb:[`luce`,`lampadina`,`lampada`,`light`],lock:[`serratura`,`chiave`,`lucchetto`,`chiuso`,`locked`],"lock-open":[`serratura`,`aperta`,`sbloccato`,`unlocked`],mailbox:[`cassetta`,`postale`,`posta`],"map-pin":[`posizione`,`luogo`,`mappa`,`pin`],mic:[`microfono`,`audio`],"mic-off":[`microfono`,`spento`,`muto`],microwave:[`microonde`,`forno`],monitor:[`schermo`],"monitor-play":[`schermo`,`riproduzione`,`player`,`display`],moon:[`notte`,`luna`,`notturna`,`nightvision`],mountain:[`montagna`,`esterno`,`panorama`],music:[`musica`],network:[`rete`,`lan`],package:[`pacco`,`consegna`,`storage`],"paw-print":[`animale`,`zampa`,`pet`],"person-standing":[`persona`,`piedi`,`presenza`],phone:[`telefono`,`chiamata`],pipette:[`qualita`,`aria`,`misura`,`campione`],plane:[`aereo`],plug:[`presa`,`spina`],"plug-zap":[`presa`,`alimentata`],power:[`accensione`,`alimentazione`],"power-off":[`spegnimento`,`spento`],printer:[`stampante`],projector:[`proiettore`],radar:[`movimento`,`presenza`,`pir`,`rilevamento`,`perimeter`],radio:[],"refresh-cw":[`aggiorna`,`ricarica`,`refresh`,`reload`,`ciclo`],refrigerator:[`frigorifero`,`frigo`],route:[`percorso`,`strada`,`vialetto`,`tragitto`,`street`],router:[`modem`],sailboat:[`barca`,`imbarcazione`],"scroll-text":[`registro`,`log`,`testo`],server:[`nas`],shield:[`scudo`,`protezione`,`sicurezza`,`allarme`],"shield-alert":[`manomissione`,`allarme`,`tamper`,`avviso`],"shield-check":[`protetto`,`sicuro`,`armato`],"shield-off":[`protezione`,`disattivata`,`disarmato`],siren:[`sirena`,`allarme`],"sliders-horizontal":[`regolazione`,`cursori`,`impostazioni`,`slider`],smartphone:[`telefono`,`cellulare`],snowflake:[`freddo`,`raffrescamento`,`aria`,`condizionata`,`neve`],sofa:[`salone`,`soggiorno`,`divano`,`living`,`living room`],sparkles:[`automatico`,`intelligente`,`ai`,`scena`],speaker:[`altoparlante`,`cassa`],sprout:[`irrigazione`,`pianta`,`germoglio`,`orto`],star:[`preferito`,`stella`,`importante`],store:[`negozio`,`ingresso`,`vetrina`,`shop`],sun:[`sole`,`luminosita`,`giorno`,`esterno`,`outdoor`],"sun-medium":[`sole`,`luminosita`],sunrise:[`alba`],tablet:[`ipad`],thermometer:[`temperatura`,`termometro`,`termostato`],"thermometer-snowflake":[`freddo`,`temperatura`,`bassa`],"thermometer-sun":[`caldo`,`temperatura`,`alta`],timer:[`conto`,`rovescia`],"toggle-left":[`interruttore`,`switch`,`toggle`],"toggle-right":[`interruttore`,`switch`,`toggle`,`acceso`],tractor:[`trattore`,`tosaerba`,`giardino`],"train-front":[`treno`],"tree-pine":[`albero`,`pino`,`giardino`],trees:[`giardino`,`alberi`,`esterno`,`parco`,`garden`],truck:[`camion`,`furgone`,`consegna`],tv:[`televisore`],umbrella:[`tenda`,`markise`,`ombrellone`,`pergola`,`veranda`,`terrace`],user:[`persona`,`utente`],users:[`persone`,`gruppo`,`famiglia`],utensils:[`cucina`,`posate`,`sala`,`pranzo`,`kitchen`],vibrate:[`vibrazione`,`urto`,`tamper`],video:[],"video-off":[`video`,`spento`],"volume-2":[`volume`,`audio`,`altoparlante`,`suono`],"volume-x":[`muto`,`silenziato`,`volume`,`spento`],warehouse:[`magazzino`,`capanno`,`deposito`,`cantina`,`warehouse`],"washing-machine":[`lavatrice`,`lavastoviglie`,`asciugatrice`],waves:[`onde`,`acqua`,`vibrazione`],"waves-ladder":[`piscina`,`vasca`,`pool`],wifi:[`rete`,`segnale`],"wifi-off":[`wifi`,`assente`,`offline`,`disconnesso`],wind:[`vento`,`aria`,`gas`,`monossido`,`co`],workflow:[`automazione`,`flusso`,`scenario`],wrench:[`officina`,`manutenzione`,`attrezzi`,`utenze`],zap:[`energia`,`corrente`,`consumo`,`watt`,`elettricita`]},HC={gauge2:`gauge`},UC=new Set(LC),WC=new Map([...Object.entries(BC),...Object.entries(HC)]);function GC(e){return typeof e==`string`&&UC.has(e)}function KC(e){if(typeof e==`string`)return GC(e)?e:WC.get(e)}function qC(e,t){return KC(e)??t}var JC=_(GC,`Not an icon of the catalog`),YC=LC.map((e,t)=>{let[n,r]=RC[t]??[[],[]],i=n.flatMap(e=>{let t=IC[e];return t===void 0?[]:[t]});return{key:e,categories:i,primaryCategory:i[0]??IC[0],tags:r,synonyms:VC[e]??[]}}),XC=new Map(YC.map(e=>[e.key,e]));function ZC(e){return XC.get(e)}var QC=YC,$C=[`devices`,`home`,`security`,`buildings`,`connectivity`,`multimedia`,`nature`,`weather`,`transportation`,`animals`],ew=new Set(YC.map(e=>e.primaryCategory)),tw=[...$C,...IC.filter(e=>!$C.includes(e))].filter(e=>ew.has(e));function nw(e){return YC.filter(t=>t.primaryCategory===e)}function rw(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase().replace(/[_-]+/g,` `).trim()}function iw(e,t){let n=0;for(let r of t)if(r===e[n]&&(n+=1),n===e.length)return!0;return e.length===0}function aw(e,t,n){return t===e?100:t.startsWith(e)?80:t.split(` `).some(t=>t.startsWith(e))?60:t.includes(e)?40:n&&iw(e,t)?15:0}var ow=new Map;function sw(e){let t=ow.get(e.key);if(t!==void 0)return t;let n={key:rw(e.key),synonyms:e.synonyms.map(rw),tags:e.tags.map(rw)};return ow.set(e.key,n),n}function cw(e,t){let n=rw(e);if(n.length===0)return YC.map(e=>({entry:e,score:0}));let r=[];for(let e of YC){let i=sw(e),a=aw(n,i.key,!0),o=a>0?a+2:0;for(let r of[...i.synonyms,...(t?.get(e.key)??[]).map(rw)]){let e=aw(n,r,!0);e>0&&e+1>o&&(o=e+1)}for(let e of i.tags){let t=aw(n,e,!1);t>o&&(o=t)}o>0&&r.push({entry:e,score:o})}return r.toSorted((e,t)=>t.score-e.score)}function lw(e){let t=e.replace(/-/g,` `);return t.charAt(0).toUpperCase()+t.slice(1)}var uw=`map-pin`,dw=f({locationKey:u(),icon:JC});function fw(e){return e.trim().toLowerCase()}var pw=f({locationKey:u(),description:u()}),mw=f({zoneKey:u(),label:u(),icon:JC.nullable(),locationKeys:S(u())});function hw(e){return e.trim().toLowerCase()}var gw=f({connected:C(),deviceCount:a(),error:u().optional(),motionSliceWriter:g(`orchestrator`).optional()}),_w=f({externalId:u(),name:u(),type:u(),metadata:y(u(),s()).optional()}),vw=f({stableId:u(),type:x(R),suggestedName:u(),prefilledConfig:y(u(),s()),sourceInfo:rC.optional(),alreadyOnboarded:C().optional(),onboardedDeviceId:a().optional(),onboardedName:u().optional()}),yw=f({id:a(),stableId:u(),addonId:u(),type:u(),name:u(),parentDeviceId:a().nullable(),online:C(),features:S(u()),config:y(u(),s()),sourceInfo:rC.optional()}),bw=f({status:x([`ok`,`error`]),labels:S(u()).optional(),error:u().optional()}),xw=s(),Sw={name:`device-provider`,scope:`system`,mode:`collection`,methods:{start:L(v(),v(),{kind:`mutation`}),stop:L(v(),v(),{kind:`mutation`}),getStatus:L(v(),gw),getDevices:L(v(),S(f({id:u(),name:u(),type:u()}))),reloadDevice:L(f({stableId:u()}),f({deviceId:a()}),{kind:`mutation`,timeoutMs:3*6e4}),supportsDiscovery:L(f({}),C()),discoverDevices:L(f({params:y(u(),s()).optional()}),S(vw),{kind:`mutation`,auth:`admin`}),getDiscoveryParamsSchema:L(f({}),xw),getManualCreationType:L(f({}),f({deviceType:x(R).nullable()})),adoptDiscoveredDevice:L(f({candidate:vw}),yw,{kind:`mutation`,auth:`admin`}),supportsManualCreation:L(f({}),C()),getChildCreationSchema:L(f({type:x(R)}),xw),createDevice:L(f({type:x(R),config:y(u(),s())}),yw,{kind:`mutation`,auth:`admin`}),testCreationField:L(f({type:x(R),key:u(),value:s(),formValues:y(u(),s()).optional()}),bw,{kind:`mutation`,auth:`admin`})}},Cw=f({childKey:u(),section:u(),order:a().optional(),collapsed:C().optional()}),ww=f({unit:u().min(1).optional(),precision:a().int().min(0).max(10).optional()}),Tw=f({icon:u().min(1).optional(),label:u().min(1).optional(),unit:u().min(1).optional(),precision:a().int().min(0).max(10).optional(),hidden:C().optional(),perCap:y(u(),ww).optional()}),Ew=f({unit:u().min(1).optional(),precision:a().int().min(0).max(10).optional(),icon:u().min(1).optional()}),Dw=f({id:a(),stableId:u(),addonId:u(),type:x(R),name:u(),location:u().nullable(),disabled:C(),parentDeviceId:a().nullable(),role:u().nullable().optional(),online:C(),probed:C().optional(),features:S(u()),isCamera:C(),config:y(u(),s()),secretConfigPaths:S(u()).optional(),metadata:y(u(),s()).nullable().optional(),sourceInfo:rC.optional(),integrationId:u().optional(),linkDeviceId:a().nullable().optional(),primaryChildEntityId:u().nullable().optional(),childLayout:S(Cw).readonly().optional(),display:Tw.optional()}),Ow=f({key:u(),value:s(),description:u().optional()}),kw=x([`manual`]),Aw=f({deviceId:a(),name:u(),location:u().nullable(),features:S(u()),producesTrackedEvents:C().optional()}),jw=f({deviceIds:S(a().int().positive()),trackedDeviceIds:S(a().int().positive()).optional()}),Mw={id:`linked-devices`,label:`Linked devices`,description:`Companion devices of this camera: their controls appear with it, and the ones you opt in produce tracked events on it.`,shape:`association`,hostDeviceTypes:[R.Camera],sourceCaps:`any`,cardinality:`many`,value:jw},Nw=f({deviceId:a(),mode:kw,devices:S(Aw)}),Pw=f({deviceId:a(),entries:S(f({capName:u(),kind:x([`native`,`wrapped`]),providerAddonId:u(),providerNodeId:u(),nativeAddonId:u()}))}),Fw=h(`kind`,[f({kind:g(`value`),wrapperAddonId:u().nullable()}),f({kind:g(`missing`)}),f({kind:g(`failed`),error:u()})]),Iw=f({id:a(),stableId:u(),type:u(),name:u(),location:u().nullable(),disabled:C(),parentDeviceId:a().nullable(),role:u().nullable().optional()}),Lw=f({id:a(),stableId:u(),addonId:u(),type:u(),name:u(),userNamed:C().optional(),location:u().nullable(),disabled:C(),parentDeviceId:a().nullable(),metadata:y(u(),s()).nullable().optional(),sourceInfo:rC.optional(),integrationId:u().optional(),linkDeviceId:a().nullable().optional(),primaryChildEntityId:u().nullable().optional(),childLayout:S(Cw).readonly().optional(),role:u().nullable().optional(),display:Tw.optional()}),Rw=s().nullable(),zw=f({streamId:u(),width:a().optional(),height:a().optional(),codec:u().optional(),fps:a().optional(),bitrateKbps:a().optional()}),Bw=f({addonId:u(),stableId:u(),id:a(),type:u(),name:u(),location:u().nullable().optional(),disabled:C().optional(),parentDeviceId:a().nullable(),role:u().nullable().optional(),features:S(u()).optional(),config:y(u(),s()),secretConfigPaths:S(u()).optional()}),Vw=f({deviceId:a().int().positive(),deletedAt:a(),providerAddonId:u()}),Hw=2160*60*60*1e3,Uw=f({deviceId:a().int().positive(),stores:y(u(),a().int().nonnegative())}),Ww=f({status:x([`skipped`,`dry-run`,`cleaned`]),reason:u().nullable(),devices:S(Uw),unreachable:S(u())}),Gw=f({deviceId:a()}),Kw=f({deviceId:a(),data:y(u(),s()),secretConfigPaths:S(u()).optional()}),qw=x([`off`,`on`,`not-offered`,`unreachable`]),Jw=f({deviceId:a(),switchId:Ti,outcome:qw,detail:u().optional()}),Yw=f({sourceId:a(),targetId:a(),switches:S(Jw).readonly(),sourceStillLive:S(Ti).readonly(),swapped:C()}),Xw={name:`device-manager`,scope:`system`,mode:`singleton`,extensionSlots:[Mw],methods:{allocateDeviceId:L(f({addonId:u(),stableId:u()}),f({id:a()}),{kind:`mutation`}),migrateDevice:L(f({sourceId:a(),targetId:a()}),Yw,{kind:`mutation`,auth:`admin`,timeoutMs:12*6e4}),registerDevice:L(Bw,v(),{kind:`mutation`}),removeDevice:L(Gw,v(),{kind:`mutation`}),persistConfig:L(Kw,v(),{kind:`mutation`,auth:`admin`}),loadConfig:L(f({deviceId:a()}),y(u(),s()),{auth:`admin`}),loadRuntimeState:L(f({deviceId:a()}),y(u(),s()),{auth:`admin`}),loadMeta:L(f({deviceId:a()}),Lw.nullable()),setName:L(f({deviceId:a(),name:u()}),v(),{kind:`mutation`,auth:`admin`}),setLocation:L(f({deviceId:a(),location:u().nullable()}),v(),{kind:`mutation`,auth:`admin`}),setType:L(f({deviceId:a(),type:x(R)}),v(),{kind:`mutation`,auth:`admin`}),setIntegrationId:L(f({deviceId:a(),integrationId:u()}),v(),{kind:`mutation`,auth:`admin`}),setLinkDeviceId:L(f({deviceId:a(),linkDeviceId:a().nullable()}),v(),{kind:`mutation`,auth:`admin`}),setPrimaryChildEntityId:L(f({deviceId:a(),primaryChildEntityId:u().nullable()}),v(),{kind:`mutation`,auth:`admin`}),setChildLayout:L(f({deviceId:a(),childLayout:S(Cw).readonly()}),v(),{kind:`mutation`,auth:`admin`}),setDisplay:L(f({deviceId:a(),display:Tw.nullable()}),v(),{kind:`mutation`,auth:`admin`}),getRoleDisplayDefaults:L(f({}),f({defaults:y(u(),Ew)}),{kind:`query`}),setRoleDisplayDefaults:L(f({defaults:y(u(),Ew)}),v(),{kind:`mutation`,auth:`admin`}),getWireableFields:L(f({deviceId:a(),includeSynthesizable:C().optional()}),f({caps:S(f({cap:u(),fields:S(f({path:u(),kind:x([`string`,`number`,`boolean`,`enum`]),enumValues:S(u()).optional(),item:C().optional()})).readonly(),itemArray:f({path:u(),keyField:u()}).optional()})).readonly()}),{kind:`query`}),setRole:L(f({deviceId:a(),role:u().nullable()}),v(),{kind:`mutation`,auth:`admin`}),applyInitialMeta:L(f({deviceId:a(),name:u().optional(),location:u().nullable().optional(),type:x(R).optional(),integrationId:u().optional(),linkDeviceId:a().nullable().optional(),role:u().nullable().optional()}),v(),{kind:`mutation`,auth:`admin`}),setMetadata:L(f({deviceId:a(),patch:y(u(),s())}),v(),{kind:`mutation`,auth:`admin`}),listLocations:L(v(),S(u())),addLocation:L(f({name:u()}),v(),{kind:`mutation`,auth:`admin`}),removeLocation:L(f({name:u(),cascade:C().optional()}),v(),{kind:`mutation`,auth:`admin`}),renameLocation:L(f({from:u(),to:u()}),f({moved:a()}),{kind:`mutation`,auth:`admin`}),listLocationIcons:L(v(),S(dw)),setLocationIcon:L(f({location:u(),icon:JC.nullable()}),v(),{kind:`mutation`,auth:`admin`}),listLocationDescriptions:L(v(),S(pw)),setLocationDescription:L(f({location:u(),description:u().max(400).nullable()}),v(),{kind:`mutation`,auth:`admin`}),listSiteZones:L(v(),S(mw)),setSiteZone:L(f({name:u(),icon:JC.nullable().optional()}),v(),{kind:`mutation`,auth:`admin`}),removeSiteZone:L(f({name:u()}),v(),{kind:`mutation`,auth:`admin`}),renameSiteZone:L(f({from:u(),to:u()}),v(),{kind:`mutation`,auth:`admin`}),setLocationZone:L(f({location:u(),zone:u().nullable()}),v(),{kind:`mutation`,auth:`admin`}),setDisabled:L(f({deviceId:a(),disabled:C()}),v(),{kind:`mutation`,auth:`admin`}),listPersistedByAddon:L(f({addonId:u()}),S(Iw)),listAll:L(f({addonId:u().optional(),projection:x([`full`,`slim`]).optional(),isCamera:C().optional(),deviceIds:S(a()).optional()}),S(Dw)),getDevice:L(f({deviceId:a()}),Dw.nullable()),getChildren:L(f({parentDeviceId:a()}),S(Dw)),getChildrenBatch:L(f({parentDeviceIds:S(a()).max(256)}),y(u(),S(Dw))),getLinkedDevices:L(f({deviceId:a()}),f({mode:kw,devices:S(Aw)})),getLinkedDevicesBatch:L(f({deviceIds:S(a())}),S(Nw)),getStreamSources:L(f({deviceId:a()}),S(ic)),getConfigSchema:L(f({deviceId:a()}),S(Ow)),getSettingsSchema:L(f({deviceId:a()}),Rw),updateConfig:L(f({deviceId:a(),values:y(u(),s())}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),enable:L(f({deviceId:a()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),disable:L(f({deviceId:a()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),remove:L(f({deviceId:a()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),listDeletedSince:L(f({sinceMs:a()}),S(Vw).readonly(),{auth:`admin`}),cleanupDeletedDevicesData:L(f({confirm:C()}),Ww,{kind:`mutation`,auth:`admin`}),removeByIntegration:L(f({integrationId:u()}),f({removed:a()}),{kind:`mutation`,auth:`admin`}),getStreamProfileMap:L(f({deviceId:a()}),y(u(),u().nullable())),setStreamProfileMap:L(f({deviceId:a(),profileMap:y(u(),u().nullable())}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),probeStreams:L(f({deviceId:a()}),S(zw),{kind:`mutation`,auth:`admin`}),getBindings:L(f({deviceId:a()}),Pw),getBindingsBatch:L(f({deviceIds:S(a())}),S(Pw)),getAllBindings:L(f({}),S(Pw)),listDeviceIdsByCaps:L(f({capNames:S(u().min(1)).min(1).max(16)}),S(a())),setWrapperActive:L(f({deviceId:a(),capName:u(),wrapperAddonId:u(),active:C()}),v(),{kind:`mutation`,auth:`admin`}),getWrapperActivation:L(f({deviceId:a(),capName:u().min(1)}),Fw),listWrappersForCap:L(f({capName:u()}),S(u())),listBindableCapsForDeviceType:L(f({deviceType:u()}),S(f({capName:u(),wrappers:S(u())}))),getDeviceSettingsAggregate:L(f({deviceId:a()}),Ph.nullable()),getDeviceLiveInfoAggregate:L(f({deviceId:a()}),Ph.nullable()),getDeviceAggregate:L(f({deviceId:a()}),f({settings:Ph.nullable(),live:Ph.nullable()})),runDeviceAction:L(f({deviceId:a().int().nonnegative(),action:u().min(1),input:s()}),s(),{kind:`mutation`}),updateDeviceField:L(f({deviceId:a(),writerCapName:u(),writerAddonId:u(),key:u(),value:s()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),updateDeviceFieldsBatch:L(f({deviceId:a(),changes:S(f({writerCapName:u(),writerAddonId:u(),key:u(),value:s()}))}),f({success:g(!0),failures:S(f({writerCapName:u(),writerAddonId:u(),error:u()}))}),{kind:`mutation`,auth:`admin`}),discoverDevices:L(f({addonId:u()}),S(vw),{kind:`mutation`,auth:`admin`}),adoptDevice:L(f({addonId:u(),candidate:vw,integrationId:u().optional()}),yw,{kind:`mutation`,auth:`admin`}),getCreationSchema:L(f({addonId:u(),type:x(R)}),s().nullable()),createDevice:L(f({addonId:u(),type:x(R),config:y(u(),s()),integrationId:u().optional()}),yw,{kind:`mutation`,auth:`admin`}),testCreationField:L(f({addonId:u(),type:x(R),key:u(),value:s(),formValues:y(u(),s()).optional()}),bw,{kind:`mutation`,auth:`admin`}),adoptionListCandidateFilters:L(f({addonId:u(),integrationId:u()}),f({filters:S(pC)}),{auth:`admin`}),adoptionListCandidates:L(hC.extend({addonId:u()}),gC,{auth:`admin`}),adoptionRefresh:L(f({addonId:u(),integrationId:u()}),vC,{kind:`mutation`,auth:`admin`}),adoptionAdopt:L(bC.extend({addonId:u()}),xC,{kind:`mutation`,auth:`admin`}),adoptionRelease:L(SC.extend({addonId:u()}),v(),{kind:`mutation`,auth:`admin`}),adoptionStartJob:L(bC.extend({addonId:u()}),f({jobId:u()}),{kind:`mutation`,auth:`admin`}),adoptionListJobs:L(f({addonId:u(),integrationId:u().optional()}),S(wi).readonly(),{auth:`admin`}),adoptionCancelJob:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),adoptionResync:L(CC,wC,{kind:`mutation`,auth:`admin`}),discoveryProviders:L(f({}),f({providers:S(f({addonId:u(),label:u()})).readonly()}),{auth:`admin`}),discoverAllProviders:L(f({}),f({groups:S(f({addonId:u(),label:u(),candidates:S(vw).readonly(),error:u().nullable()})).readonly()}),{kind:`mutation`,auth:`admin`}),discoverProvider:L(f({addonId:u(),params:y(u(),s()).optional()}),f({candidates:S(vw).readonly()}),{kind:`mutation`,auth:`admin`}),providerCreationType:L(f({addonId:u()}),f({deviceType:x(R).nullable()}),{auth:`admin`}),providerDiscoveryParamsSchema:L(f({addonId:u()}),s(),{auth:`admin`}),testField:L(f({deviceId:a(),key:u(),value:s()}),bw,{kind:`mutation`,auth:`admin`}),getDeviceStatusAggregate:L(f({deviceId:a(),caps:S(u()).readonly().optional()}),y(u(),s().nullable())),getDeviceStatusAggregateBatch:L(f({deviceIds:S(a()).readonly(),caps:S(u()).readonly().optional()}),y(u(),y(u(),s().nullable())))}},Zw=[`linked-devices`],Qw=x(Zw),$w={"linked-devices":{descriptor:Mw,declaringCap:`device-manager`,hostDeviceTypes:[R.Camera]}},eT=h(`slot`,[jw.extend({slot:g(`linked-devices`)})]),tT=[R.Camera],nT=`listSlots`,rT=h(`state`,[f({state:g(`ok`)}),f({state:g(`unreachable`),reason:u()})]),iT=f({source:u(),label:u(),addonId:u().optional(),availability:rT}),aT=x([`ok`,`missing`,`foreign`,`unavailable`]),oT=f({deviceId:a().int(),name:u().nullable(),health:aT,detail:u().optional()}),sT=f({state:x([`active`,`inactive`,`unknown`]),authority:u(),detail:u().optional()}),cT=f({state:g(`ok`),slotRef:u(),slot:Qw,authority:u(),activation:sT.nullable(),value:eT,sources:S(oT),impliedSources:S(oT).optional()}),lT=f({state:g(`unreachable`),addonId:u(),reason:u()}),uT=h(`state`,[cT,lT]);function dT(e,t){return{state:`unreachable`,addonId:e,reason:t}}var fT=f({deviceId:a().int(),name:u(),type:u(),location:u().nullable(),parentName:u().nullable(),suggested:C(),reason:u().nullable()}),pT=f({candidates:S(fT)}),mT=f({applied:g(!0),reload:x([`none`,`host`,`parent`])}),hT=f({deviceId:a().int(),slotRef:u().min(1)}),gT=hT.extend({value:eT}),_T={name:`device-extension`,scope:`device`,mode:`collection`,kind:`wrapper`,defaultActive:!0,deviceTypes:tT,deviceConfig:{ui:{kind:`widget`,widgetId:`host/extensions-panel`,tab:`general`,label:`Extensions`,order:72}},methods:{listSources:L(f({deviceId:a().int()}),S(iT)),listSlots:L(f({deviceId:a().int()}),S(uT)),listCandidates:L(hT,pT),setSlot:L(gT,mT,{kind:`mutation`,auth:`admin`})}},vT=x([`replace`,`add`]),yT=h(`ok`,[f({ok:g(!0),changed:C()}),f({ok:g(!1),code:x([`owned-by-other`,`not-claimed`,`field-not-claimed`,`invalid-slice`,`unknown-device`,`row-unreadable`,`migration-in-flight`]),message:u()})]),bT=f({deviceId:a(),capName:u(),owner:u().min(1),mode:vT,fields:S(u().min(1)).min(1)}),xT=h(`state`,[f({state:g(`loaded`),claims:S(bT)}),f({state:g(`not-loaded`),reason:u()})]),ST={name:`device-state`,scope:`system`,mode:`singleton`,methods:{getSnapshot:L(f({deviceId:a()}),y(u(),y(u(),s()))),getCapSlice:L(f({deviceId:a(),capName:u()}),y(u(),s()).nullable()),getAllSnapshots:L(f({}),y(u(),y(u(),y(u(),s())))),setCapSlice:L(f({deviceId:a(),capName:u(),slice:y(u(),s())}),v(),{kind:`mutation`}),claimFields:L(f({deviceId:a(),capName:u(),owner:u().min(1),mode:vT,fields:S(u().min(1)).min(1),values:y(u(),s())}),yT,{kind:`mutation`,auth:`admin`}),patchOwnedFields:L(f({deviceId:a(),capName:u(),owner:u().min(1),values:y(u(),s())}),yT,{kind:`mutation`,auth:`admin`}),releaseClaim:L(f({deviceId:a(),capName:u(),owner:u().min(1)}),yT,{kind:`mutation`,auth:`admin`}),listClaims:L(f({ownerPrefix:u().optional()}),xT,{auth:`admin`}),getNativeCapSlice:L(f({deviceId:a(),capName:u()}),y(u(),s()).nullable(),{auth:`admin`})},events:{onChanged:xh(f({deviceId:a(),capName:u(),slice:y(u(),s())}))}},CT=f({embedding:S(a()),inferenceMs:a()}),wT=x([`image`,`text`]),TT=f({modelId:u(),tower:wT,nodeId:u(),crashes:a(),windowMs:a(),sinceMs:a(),lastReason:u()}),ET=f({modelId:u(),tower:wT,nodeId:u(),attempts:a(),sinceMs:a(),lastReason:u()}),DT=f({modelId:u(),embeddingDim:a(),ready:C(),nodeId:u().optional(),failedModels:S(TT).optional(),failedRequirements:S(ET).optional()}),OT=`embedding-model-failed`,kT=`embedding-requirements-unavailable`,AT=`embedding-requirements-failed`,jT=x([OT,kT,AT]);function MT(e,t){return`[${e} model=${t.modelId} tower=${t.tower} node=${t.nodeId}]`}function NT(e){return Error(`${MT(OT,e)} ${e.modelId} (${e.tower} tower) crashed ${String(e.crashes)} times in ${String(Math.round(e.windowMs/1e3))}s on ${e.nodeId} — ${e.lastReason}. Cleared by embeddingEncoder.resetFailedModels({ modelId: "${e.modelId}", nodeId: "${e.nodeId}" }) or a model change.`)}function PT(e,t){return Error(`${MT(kT,e)} ${e.modelId} (${e.tower} tower) on ${e.nodeId}: ${t}`)}function FT(e){return Error(`${MT(AT,e)} ${e.modelId} (${e.tower} tower) on ${e.nodeId}: requirements can never be met — ${String(e.attempts)} attempts, last: ${e.lastReason}. Cleared by embeddingEncoder.resetFailedModels({ modelId: "${e.modelId}", nodeId: "${e.nodeId}" }) or a model change.`)}var IT=RegExp(`\\[(${OT}|${kT}|${AT}) model=([^\\s\\]]+) tower=(image|text) node=([^\\s\\]]+)\\]`);function LT(e){let t=e instanceof Error?e.message:String(e),n=IT.exec(t);if(n===null)return null;let r=jT.safeParse(n[1]),i=wT.safeParse(n[3]);return!r.success||!i.success||n[2]===void 0||n[4]===void 0?null:{code:r.data,modelId:n[2],tower:i.data,nodeId:n[4]}}function RT(e){return zT(e)!==null}function zT(e){let t=LT(e);if(t===null||t.code!==`embedding-model-failed`)return null;let{modelId:n,tower:r,nodeId:i}=t;return{modelId:n,tower:r,nodeId:i}}var BT={name:`embedding-encoder`,scope:`system`,mode:`collection`,internal:!0,methods:{encode:L(f({crop:b(Uint8Array),width:a(),height:a()}),CT,{auth:`admin`}),encodeText:L(f({text:u(),modelId:u().min(1).optional()}),CT,{auth:`admin`}),getInfo:L(v(),DT,{auth:`admin`}),resetFailedModels:L(f({modelId:u().min(1).optional()}),f({cleared:S(u()),nodeId:u()}),{kind:`mutation`,auth:`admin`})}},VT=f({deviceId:a().int().positive(),deletedAt:a(),providerAddonId:u()}),HT=f({counts:y(u(),a().int().nonnegative())}),UT=f({store:u(),deviceId:a().int().positive(),count:a().int().nonnegative()}),WT={name:`device-removal-hook`,scope:`system`,mode:`collection`,internal:!0,methods:{onDeviceRemoved:L(VT,HT,{kind:`mutation`,auth:`admin`}),listDeviceData:L(v(),S(UT).readonly(),{auth:`admin`})},mount:{kind:`skip`}},GT=f({reason:u(),count:a().int().nonnegative()}),KT=f({family:u(),deviceId:a().int().positive(),variant:u().optional(),sinceMs:a(),atMs:a(),attempts:a().int().nonnegative(),succeeded:a().int().nonnegative(),reasons:S(GT).readonly()}),qT={name:`failure-contribution`,scope:`system`,mode:`collection`,internal:!0,methods:{list:L(v(),S(KT).readonly())},mount:{kind:`skip`}},JT=f({name:u(),path:u()}),YT=f({path:u(),entries:S(JT).readonly(),freeBytes:a(),totalBytes:a()}),XT={name:`filesystem-browse`,scope:`system`,mode:`singleton`,internal:!0,methods:{listAllowedRoots:L(v(),S(u()).readonly(),{auth:`admin`}),browse:L(f({path:u()}),YT,{auth:`admin`}),createDir:L(f({path:u()}),f({path:u()}),{kind:`mutation`,auth:`admin`})}},ZT=`https://camstack.zentik.app`,QT=`/viewer/camstack`;function $T(e){if(e==null||e===``)return!1;try{return new URL(e).origin===ZT}catch{return!1}}function eE(e){let t=e.baseUrl??e.resolved;return $T(t)?{form:`app`,hubBaseUrl:e.appLinkHub??null}:{form:`hub`,hubBaseUrl:t}}function tE(e){let t;try{t=new URL(e)}catch{return null}return t.protocol!==`https:`&&t.protocol!==`http:`||t.username!==``||t.password!==``||t.hostname===``?null:t.origin}function nE(e){let t=e=>e.kind!==`public`||!e.baseUrl.startsWith(`https://`)?null:e.interfaceKind===`public`?0:e.interfaceKind===`vpn`?1:null;return e.flatMap(e=>{let n=t(e),r=tE(e.baseUrl);return n===null||r===null?[]:[{r:n,p:e.priority,origin:r}]}).toSorted((e,t)=>e.r-t.r||e.p-t.p)[0]?.origin??null}function rE(e){switch(e.kind){case`camera`:{if(!Number.isInteger(e.deviceId)||e.deviceId<=0)return null;let t=e.atMs;return{path:`/camera/${String(e.deviceId)}`,query:t!==void 0&&Number.isFinite(t)?[[`at`,String(Math.trunc(t))]]:[]}}case`events`:return{path:`/events`,query:[]};case`notifications`:return{path:`/notifications`,query:[]}}}function iE(e){return e.length===0?``:`?${e.map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`)}`}function aE(e){let t=rE(e.destination);if(t===null)return null;let n=e.base.hubBaseUrl,r=n===null?``:n.replace(/\/+$/,``);if(e.base.form===`app`){let e=r===``?null:tE(r),n=e===null?t.query:[...t.query,[`hub`,e]];return`${ZT}${t.path}${iE(n)}`}return r===``||$T(r)?null:`${r}${QT}${t.path}${iE(t.query)}`}var oE=[`appConnections`,`notificationTaps`,`internal`,`publicEndpoint`],sE=[`notificationTaps`,`internal`,`publicEndpoint`];function cE(e){return e!==`appConnections`}var lE={appConnections:[],notificationTaps:null,internal:null,publicEndpoint:null},uE=/^\d{1,3}(?:\.\d{1,3}){3}$/;function dE(e){try{let t=new URL(e).hostname;return t.length>0?t:null}catch{return null}}function fE(e){return e.replace(/\/+$/,``)}function pE(e){return e.kind===`public`&&e.interfaceKind===`vpn`}function mE(e){return e.kind===`public`&&e.interfaceKind===`public`}function hE(e){return(e.kind===`lan-ipv4`||e.kind===`lan-ipv6`)&&e.plausible}function gE(e){if(e.kind!==`lan-ipv4`||!e.plausible)return!1;let t=dE(e.baseUrl);return t!==null&&uE.test(t)}function _E(e){return e.stable===!1}function vE(e,t){return t.kind===`loopback`||t.kind===`app-link`||t.kind===`custom`||dE(t.baseUrl)===null||_E(t)?null:e===`internal`?gE(t)?0:hE(t)?1:pE(t)?2:null:mE(t)?0:pE(t)?1:gE(t)?2:hE(t)?3:null}var yE=new Set([`localhost`,`0.0.0.0`,`::1`,`[::1]`,`::`,`[::]`]);function bE(e){let t=e.toLowerCase();return yE.has(t)||t.endsWith(`.localhost`)?!0:/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(t)}function xE(e){let t=e.trim();if(t===``)return{ok:!1,reason:`Enter an address, e.g. https://192.168.1.50:4443.`};let n;try{n=new URL(t)}catch{return{ok:!1,reason:`Not a URL — include http:// or https://.`}}return n.protocol!==`https:`&&n.protocol!==`http:`?{ok:!1,reason:`Use an http:// or https:// address.`}:n.username!==``||n.password!==``?{ok:!1,reason:`The address must not carry a user name or password.`}:n.hostname===``?{ok:!1,reason:`The address has no host.`}:bE(n.hostname)?{ok:!1,reason:`A loopback address names whoever dials it, never this hub — use an address other machines reach.`}:n.pathname!==`/`||n.search!==``||n.hash!==``?{ok:!1,reason:`Enter only the address (scheme, host and port), without a path.`}:{ok:!0,baseUrl:n.origin}}var SE=`The public endpoint needs an https:// address: passkeys and most identity providers refuse a plain-http origin. Accept http only when sign-in and notification links never leave your own network.`;function CE(e,t,n={}){if($T(t))return e===`notificationTaps`?{ok:!0,baseUrl:ZT}:{ok:!1,reason:`The CamStack app link is not a hub address — only notification taps can use it.`};let r=xE(t);return r.ok&&e===`publicEndpoint`&&r.baseUrl.startsWith(`http:`)&&n.acceptInsecureHttp!==!0?{ok:!1,reason:SE}:r}function wE(e,t){if(t===null||t===``)return null;let n=CE(e,t,{acceptInsecureHttp:!0});return n.ok?n.baseUrl:null}function TE(e,t){let n=e.flatMap(e=>{let n=vE(t,e);return n===null?[]:[{rank:n,priority:e.priority,endpoint:e}]}).toSorted((e,t)=>e.rank-t.rank||e.priority-t.priority)[0];return n===void 0?null:fE(n.endpoint.baseUrl)}function EE(e,t,n){let r=wE(t,n);if(r!==null)return{flagged:r,resolved:r,source:`flagged`};let i=TE(e,t);return{flagged:null,resolved:i,source:i===null?`none`:`auto`}}function DE(e,t){return EE(e,`internal`,t.internal)}function OE(e,t){return EE(e,`publicEndpoint`,t.publicEndpoint)}function kE(e){let t=wE(`notificationTaps`,e.notificationTaps);return t!==null&&!$T(t)?{flagged:t,resolved:t,source:`flagged`}:{flagged:null,resolved:ZT,source:`auto`}}function AE(e){return _E(e)?!1:e.kind===`lan-ipv4`?!0:e.kind===`public`&&e.interfaceKind===`public`}function jE(e,t){let n=e.filter(AE);if(t.appConnections.length===0)return n;let r=new Set(t.appConnections),i=e.filter(e=>r.has(e.baseUrl));return i.length>0?i:n}function ME(e,t){let n=new Set(t.appConnections),r=jE(e,t),i=r.some(e=>n.has(e.baseUrl));return{flagged:t.appConnections,resolved:r.map(e=>e.baseUrl),source:r.length===0?`none`:i?`flagged`:`auto`}}function NE(e,t,n){return{appConnections:ME(e,n),notificationTaps:kE(n),internal:DE(t,n),publicEndpoint:OE(t,n)}}function PE(e){return e===null?null:dE(e)}var FE=`camstack`,IE=`_camstack._tcp.local`,LE={nodeId:`nodeId`,version:`version`,role:`role`,url:`url`},RE=`camstack-agent`,zE=`_camstack-agent._tcp.local`,BE={nodeId:`nodeId`,version:`version`,state:`state`,keyFingerprint:`fp`};function VE(e){return`/system/addons?${new URLSearchParams({capability:e}).toString()}`}var HE=6e5,UE=60*6e4,WE=f({inputTokens:a(),outputTokens:a()}),GE=x([`timeout`,`rate-limited`,`auth`,`refusal`,`bad-request`,`unavailable`,`no-profile`,`budget-exceeded`,`adapter-error`]),KE=f({ok:g(!0),text:u(),model:u(),usage:WE,truncated:C(),latencyMs:a()}),qE=x([`guardrail`,`model`]),JE=f({ok:g(!1),code:GE,message:u(),retryAfterMs:a().optional(),refusalSource:qE.optional()}),YE=h(`ok`,[KE,JE]),XE=f({bytes:b(Uint8Array),mimeType:u()}),ZE=f({enabled:C().default(!1),maxAttempts:a().int().min(1).max(5).default(1)}),QE={totalMs:6e4,connectMs:1e4,firstTokenMs:12e4,idleMs:6e4},$E=f({addonId:u().optional(),profileId:u().optional(),consumer:u(),system:u().optional(),prompt:u(),jsonSchema:y(u(),s()).optional(),maxTokens:a().int().positive().optional(),temperature:a().optional(),topP:a().min(0).max(1).optional(),topK:a().int().positive().optional(),timeoutMs:a().int().positive().optional(),retry:ZE.optional(),requestId:u().optional()}),eD=f({url:u(),filename:u(),sizeBytes:a(),sha256:u().optional()}),tD=h(`kind`,[f({kind:g(`catalog`),catalogId:u()}),f({kind:g(`url`),url:u(),sha256:u().optional(),label:u().optional(),sizeBytes:a().optional(),extraFiles:S(eD).optional()}),f({kind:g(`path`),path:u()})]),nD=f({nodeId:u(),engine:x([`llama-cpp`]),model:tD,contextSize:a().int().default(4096),gpuLayers:a().int().default(0),threads:a().int().optional(),parallel:a().int().default(1),batchSize:a().int().positive().optional(),ubatchSize:a().int().positive().optional(),flashAttention:C().default(!1),mlock:C().default(!1),noMmap:C().default(!1),cacheTypeK:x([`f32`,`f16`,`q8_0`,`q5_1`,`q5_0`,`q4_1`,`q4_0`]).optional(),cacheTypeV:x([`f32`,`f16`,`q8_0`,`q5_1`,`q5_0`,`q4_1`,`q4_0`]).optional(),extraArgs:S(u()).default([]),autoStart:C().default(!1),idleStopMinutes:a().int().default(30)}),rD=f({phase:x([`downloading`,`verifying`]),file:u(),fileIndex:a().int(),fileCount:a().int(),downloadedBytes:a(),totalBytes:a().optional()}),iD=f({nodeId:u(),state:x([`stopped`,`downloading`,`starting`,`ready`,`crashed`,`failed`]),pid:a().optional(),port:a().optional(),modelPath:u().optional(),modelId:u().optional(),downloadProgress:a().min(0).max(1).optional(),download:rD.optional(),lastError:u().optional(),crashesInWindow:a(),memoryBytes:a().optional(),vramBytes:a().optional()}),aD=f({file:u(),sizeBytes:a(),catalogId:u().optional(),installedAt:a().optional(),path:u().optional()}),oD=f({nodeId:u(),modelsBytes:a(),freeBytes:a().optional()}),sD=$E.extend({images:S(XE).optional(),runtime:nD,timeoutMs:a().int().positive().optional()}),cD=x([`deviceNotEligible`,`appleIntelligenceNotEnabled`,`modelNotReady`,`osTooOld`,`helperMissing`,`helperCrashed`]),lD=h(`state`,[f({state:g(`available`),osVersion:u(),contextSize:a().int().positive(),languages:S(u()),imageInput:C()}),f({state:g(`unavailable`),reason:cD,osVersion:u().nullable(),detail:u()}),f({state:g(`unsupported-platform`),platform:u()}),f({state:g(`unknown`),error:u()})]),uD=$E.extend({images:S(XE).optional(),timeoutMs:a().int().positive().optional()}),dD=f({requestId:u()}),fD={name:`llm-runtime`,scope:`system`,mode:`singleton`,internal:!0,methods:{complete:L(sD,YE,{kind:`mutation`,auth:`admin`,timeoutMs:HE}),ensureStarted:L(f({runtime:nD}),iD,{kind:`mutation`,auth:`admin`,timeoutMs:HE}),stop:L(f({}),v(),{kind:`mutation`,auth:`admin`}),status:L(f({}),iD,{auth:`admin`}),installModel:L(f({model:tD}),v(),{kind:`mutation`,auth:`admin`,timeoutMs:UE}),deleteModel:L(f({file:u()}),v(),{kind:`mutation`,auth:`admin`}),listLocalModels:L(f({}),S(aD),{auth:`admin`}),getDiskUsage:L(f({}),oD,{auth:`admin`}),cancel:L(dD,v(),{kind:`mutation`,auth:`admin`}),appleAvailability:L(f({}),lD,{auth:`admin`}),completeApple:L(uD,YE,{kind:`mutation`,auth:`admin`,timeoutMs:HE})}},pD=x([`openai-compatible`,`openai`,`anthropic`,`google`,`managed-local`,`apple-foundation`]),mD=f({id:u(),name:u(),kind:pD,addonId:u(),enabled:C(),model:u(),baseUrl:u().optional(),apiKey:u().optional(),supportsVision:C(),temperature:a().min(0).max(2).optional(),topP:a().min(0).max(1).optional(),topK:a().int().positive().optional(),maxTokens:a().int().positive().optional(),contextLength:a().int().positive().optional(),systemPrompt:u().optional(),timeoutMs:a().int().positive().default(6e4),connectTimeoutMs:a().int().positive().default(1e4),firstTokenTimeoutMs:a().int().positive().default(12e4),idleTimeoutMs:a().int().positive().default(6e4),retry:ZE.default({enabled:!1,maxAttempts:1}),toolsEnabled:C().default(!1),extraHeaders:y(u(),u()).optional(),runtime:nD.optional(),appleFoundation:f({nodeId:u()}).optional()}),hD=s(),gD=f({kind:pD,label:u(),icon:u(),addonId:u(),configSchema:hD}),_D=p([f({consumer:u()}),f({purpose:x([`text`,`vision`])})]),vD=f({selector:_D,profileId:u()}),yD=f({day:u(),consumer:u(),profileId:u(),calls:a(),okCalls:a(),errorCalls:a(),inputTokens:a(),outputTokens:a(),avgLatencyMs:a()}),bD=f({id:u(),label:u(),family:u(),purpose:x([`text`,`vision`]),url:u(),sha256:u(),sizeBytes:a(),quantization:u(),minRamBytes:a(),contextSizeDefault:a().int(),mmprojUrl:u().optional()}),xD=h(`ok`,[f({ok:g(!0),model:tD,label:u(),repo:u(),quantization:u(),purpose:x([`text`,`vision`]),totalBytes:a(),extraFilenames:S(u())}),f({ok:g(!1),code:u(),message:u(),candidates:S(u()).optional(),requiredBytes:a().optional()})]),SD=f({nodeId:u(),reachable:C(),status:iD.optional(),disk:oD.optional(),error:u().optional(),apple:lD.optional()}),CD=$E.extend({images:S(XE).min(1)}),wD=f({addonId:u(),profileId:u()}),TD={name:`llm`,scope:`system`,mode:`collection`,internal:!1,providerKind:`ai`,nodeIdMode:`data`,methods:{generate:L($E,YE,{kind:`mutation`,timeoutMs:HE}),generateVision:L(CD,YE,{kind:`mutation`,timeoutMs:HE}),cancel:L(f({addonId:u().optional(),requestId:u()}),v(),{kind:`mutation`}),listProfileKinds:L(f({}),S(gD)),listProfiles:L(f({}),S(mD)),upsertProfile:L(f({profile:mD}),mD,{kind:`mutation`,auth:`admin`}),migrateRawSecrets:L(qb,Jb,{kind:`mutation`,auth:`admin`}),deleteProfile:L(wD,v(),{kind:`mutation`,auth:`admin`}),testProfile:L(wD,YE,{kind:`mutation`,auth:`admin`,timeoutMs:HE}),listModels:L(wD,S(u())),getDefaults:L(f({}),S(vD)),setDefault:L(f({selector:_D,profileId:u().nullable()}),v(),{kind:`mutation`,auth:`admin`}),getUsage:L(f({since:a().optional(),until:a().optional(),consumer:u().optional(),profileId:u().optional()}),S(yD)),listModelCatalog:L(f({}),S(bD)),listRuntimeNodes:L(f({}),S(SD)),listNodeModels:L(f({nodeId:u()}),S(aD)),resolveModelRef:L(f({ref:u(),maxBytes:a().positive().optional()}),xD,{kind:`mutation`,auth:`admin`}),installModel:L(f({nodeId:u(),model:tD}),v(),{kind:`mutation`,auth:`admin`}),deleteModel:L(f({nodeId:u(),file:u()}),v(),{kind:`mutation`,auth:`admin`}),getRuntimeStatus:L(wD,iD),startRuntime:L(wD,iD,{kind:`mutation`,auth:`admin`}),stopRuntime:L(wD,v(),{kind:`mutation`,auth:`admin`})}},ED=[`decode`,`transcode`,`recording`,`streaming`,`detection`],DD=[`measured`,`accounted`,`unattributable`],OD=f({role:x(ED),deviceId:a().int().positive().nullable(),attribution:x(DD),unit:u(),pid:a().int().positive().optional(),startedAtMs:a().optional(),cpuSeconds:a().optional(),rssBytes:a().optional()}),kD={name:`load-contribution`,scope:`system`,mode:`collection`,internal:!0,methods:{list:L(v(),S(OD).readonly())},mount:{kind:`skip`}},AD=f({armed:a().int().min(0),unknown:S(u()).readonly()}),jD={name:`log-channels`,scope:`system`,mode:`collection`,internal:!0,methods:{list:L(v(),S(uu).readonly()),apply:L(f({windows:S(du).readonly()}),AD,{kind:`mutation`})},mount:{kind:`skip`}},MD=x([`debug`,`info`,`warn`,`error`]),ND=f({timestamp:ge(),level:MD,scope:S(u()),message:u(),meta:y(u(),s()).optional(),tags:y(u(),u()).optional()}),PD={name:`log-destination`,scope:`system`,mode:`collection`,internal:!0,methods:{write:L(ND,v(),{kind:`mutation`}),query:L(f({scope:S(u()).optional(),level:MD.optional(),since:ge().optional(),until:ge().optional(),limit:a().optional(),tags:y(u(),u()).optional()}),S(ND).readonly())},mount:{kind:`skip`}},FD=x([`primary`,`second-factor`]),ID=f({kind:g(`redirect`),id:u(),label:u(),icon:u().optional(),startUrl:u(),stage:FD,linkable:C().optional(),app:zf.nullable().optional()}),LD=f({kind:g(`widget`),id:u(),addonId:u(),bundle:u(),remote:Bh,stage:FD,app:zf.nullable().optional()}),RD=f({kind:g(`passkey`),id:u(),label:u(),stage:FD,rpId:u(),origin:u().nullable(),app:zf.nullable().optional()}),zD=h(`kind`,[ID,LD,RD]),BD={name:`login-method`,scope:`system`,mode:`collection`,internal:!0,methods:{getLoginMethods:L(v(),S(zD).readonly())},mount:{kind:`skip`}},VD=f({total:a(),user:a(),system:a(),irq:a(),nice:a(),loadAvg:d([a(),a(),a()]),cores:a()}),HD=f({percent:a(),totalBytes:a(),usedBytes:a(),availableBytes:a(),swapUsedBytes:a(),swapTotalBytes:a()}),UD=f({readBytes:a(),writeBytes:a(),readOps:a(),writeOps:a(),timestampMs:a()}),WD=f({rxBytes:a(),txBytes:a(),rxPackets:a(),txPackets:a(),rxErrors:a(),txErrors:a(),timestampMs:a()}),GD=f({utilization:a(),model:u(),memoryUsedBytes:a(),memoryTotalBytes:a(),temperature:a().nullable()}),KD=f({openFds:a(),threadCount:a(),activeHandles:a(),activeRequests:a()}),qD=f({avg10:a(),avg60:a(),avg300:a()}),JD=f({some:qD,full:qD.nullable()}),YD=f({cpu:VD,memory:HD,gpu:GD.nullable(),network:WD,disk:UD,pressure:f({cpu:JD.nullable(),memory:JD.nullable(),io:JD.nullable()}),process:KD,cpuTemperature:a().nullable(),timestampMs:a()}),XD=f({path:u(),totalBytes:a(),usedBytes:a(),availableBytes:a(),percent:a()}),ZD=f({pid:a(),cpu:a(),memory:a(),privateBytes:a().optional(),sharedBytes:a().optional()}),QD=f({addonId:u(),nodeId:u(),role:x([`hub`,`worker`]),pid:a(),state:x([`starting`,`running`,`stopping`,`stopped`,`crashed`]),uptimeSec:a()}),$D=f({pid:a(),ppid:a(),pgid:a(),classification:x([`root`,`managed`,`system`]),addonId:u().nullable(),nodeId:u().nullable(),command:u(),cpuPercent:a(),memoryRssBytes:a(),cpuMainPercent:a().nullable(),cpuGcPercent:a().nullable(),threadCount:a().nullable(),uptimeSec:a()}),eO=f({source:x([`cgroup-v2`,`cgroup-v1`]),currentBytes:a(),limitBytes:a().nullable(),anonBytes:a().nullable(),fileBytes:a().nullable(),shmemBytes:a().nullable(),slabBytes:a().nullable(),gpuShmemBytes:a().nullable()}).extend({atMs:a()}),tO=f({atMs:a(),samples:a().int(),cpuMainPercent:a().nullable(),cpuMainPercentMin:a().nullable(),cpuGcPercent:a().nullable(),cpuGcPercentMin:a().nullable(),cpuLifetimePercent:a(),cpuLifetimePercentMin:a(),memoryRssBytes:a(),memoryRssBytesMin:a(),processCount:a().int(),processCountMin:a().int()}),nO=f({key:u(),kind:x([`addon`,`root`,`unattributed`]),points:S(tO).readonly()}),rO=f({nodeId:u(),series:S(nO).readonly(),containerMemory:S(eO).readonly(),bucketMs:a(),retainedSamples:a(),oldestAtMs:a().nullable(),cadenceMs:a(),durable:C()}),iO=f({forNodeId:u(),sinceMs:a().optional(),maxPoints:a().int().positive().optional()}),aO=f({cpuPercent:a(),memoryPercent:a(),memoryUsedMB:a(),memoryTotalMB:a(),diskPercent:a().optional(),temperature:a().optional(),gpuPercent:a().optional(),gpuMemoryPercent:a().optional()}),oO={name:`metrics-provider`,scope:`system`,mode:`singleton`,methods:{collectSnapshot:L(v(),YD),getCached:L(v(),YD.nullable()),getCurrent:L(v(),aO),getDiskSpace:L(f({dirPath:u()}),XD),getGpuInfo:L(v(),GD.nullable()),getCpuTemperature:L(v(),a().nullable()),getProcessStats:L(f({pids:S(a())}),S(ZD)),listAddonInstances:L(v(),S(QD).readonly()),getAddonStats:L(f({addonId:u()}),ZD.nullable()),listNodeProcesses:L(v(),S($D).readonly()),getLoadSeries:L(iO,rO)}},sO=f({sourceUrl:u(),metadata:hf,targets:S(mf).min(1).readonly(),calibrationRef:u().optional(),sessionId:u().optional()}),cO={name:`model-convert`,scope:`system`,mode:`singleton`,internal:!0,methods:{convert:L(sO,_f,{kind:`mutation`,auth:`admin`,timeoutMs:6e5})}},lO=f({targetNodeId:u(),modelId:u(),format:x(Qd),entry:pf}),uO=f({ok:C(),sha256:u(),bytes:a(),path:u()}),dO={name:`model-distributor`,scope:`system`,mode:`singleton`,internal:!0,methods:{distributeModel:L(lO,uO,{kind:`mutation`,auth:`admin`})}},fO=f({bbox:ag,pixelCount:a(),intensity:a()}),pO=f({detected:C(),regionCount:a(),regions:S(fO).readonly(),rawRegions:S(fO).readonly(),frameWidth:a(),frameHeight:a(),analysisMs:a()}),mO={name:`motion-detection`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],exposesDeviceSettings:!0,methods:{analyze:L(f({deviceId:a(),frame:ig.optional(),frameHandle:oc.optional()}),pO,{kind:`mutation`}),removeCamera:L(f({deviceId:a()}),v(),{kind:`mutation`}),reset:L(v(),v(),{kind:`mutation`})},events:{onMotion:{data:f({deviceId:a(),detected:C(),regionCount:a()})}}},hO=x([`external`,`embedded`]),gO=x([`connected`,`disconnected`,`auth-failed`,`unreachable`,`tls-error`]),_O=f({id:u(),name:u(),url:u(),kind:hO,status:gO,latencyMs:a().nullable(),error:u().optional(),connectedClients:a().int().nonnegative().optional(),lastCheckedAt:a().optional()}),vO=f({url:u(),username:u().optional(),password:u().optional(),clientIdPrefix:u().optional()}),yO=f({name:u().min(1),url:u().regex(/^(mqtt|mqtts|ws|wss):\/\//,`URL must start with mqtt(s):// or ws(s)://`),username:u().optional(),password:u().optional(),clientIdPrefix:u().optional()}),bO=f({id:u()}),xO=f({id:u()}),SO=h(`ok`,[f({ok:g(!0),latencyMs:a()}),f({ok:g(!1),error:u()})]),CO=f({port:a().int().min(1).max(65535).default(1883),allowAnonymous:C().default(!1),username:u().optional(),password:u().optional()}),wO=f({id:u(),url:u()}),TO=f({brokerCount:a(),embeddedRunning:C()}),EO={name:`mqtt-broker`,scope:`system`,mode:`collection`,providerKind:`broker`,status:{schema:TO,kind:`poll`},methods:{listBrokers:L(v(),S(_O)),getBrokerConfig:L(xO,vO,{auth:`admin`}),addBroker:L(yO,bO,{kind:`mutation`,auth:`admin`}),removeBroker:L(xO,v(),{kind:`mutation`,auth:`admin`}),testConnection:L(xO,SO,{kind:`mutation`,auth:`admin`}),startEmbeddedBroker:L(CO,wO,{kind:`mutation`,auth:`admin`}),stopEmbeddedBroker:L(xO,v(),{kind:`mutation`,auth:`admin`}),getStatus:L(v(),TO)}},DO=f({url:u(),hostname:u(),port:a(),protocol:x([`http`,`https`]),stable:C().optional()}),OO=f({url:u(),stable:C().optional(),updated:C().optional()}),kO=f({connected:C(),endpoint:DO.nullable(),error:u().optional()}),AO=DO.extend({id:u(),label:u(),mode:u().optional(),sourcePort:a().optional()}),jO={name:`network-access`,scope:`system`,mode:`collection`,providerKind:`ingress`,methods:{start:L(v(),DO,{kind:`mutation`}),stop:L(v(),v(),{kind:`mutation`}),getEndpoint:L(v(),DO.nullable()),getStatus:L(v(),kO),listEndpoints:L(v(),S(AO).readonly())}},MO=x([`image`,`video`,`gif`,`audio`,`icon`]),NO=f({mediaType:MO,url:u().optional(),bytes:b(Uint8Array).optional(),mime:u().optional(),name:u().optional()}).refine(e=>e.url!==void 0||e.bytes!==void 0,{message:"Attachment requires either `url` or `bytes`"}),PO=x([`text`,`markdown`,`html`]),FO=x([`acknowledge`,`dismiss`,`silence`,`snooze`,`view`,`play`,`open`,`close`,`lock`,`unlock`,`arm`,`arm-home`,`arm-away`,`arm-night`,`disarm`,`light`,`alert`,`camera`]),IO=f({id:u(),label:u(),url:u().optional(),icon:FO.optional(),destructive:C().optional(),mode:x([`navigate`,`background`]).optional()}),LO=f({body:u(),title:u().optional(),format:PO.default(`text`),priority:a().int().min(1).max(5).default(3),level:u().optional(),attachments:S(NO).optional(),clickUrl:u().optional(),actions:S(IO).optional(),sound:u().optional(),ttl:a().optional(),tag:u().optional(),deviceId:a().optional(),eventId:u().optional(),metadata:y(u(),s()).optional()}),RO=f({id:u(),label:u(),ordinal:a().int().min(1).max(5).nullable(),flags:f({critical:C().optional(),silent:C().optional(),noPush:C().optional()}).optional(),requires:S(u()).optional(),description:u().optional()}),zO=f({attachments:f({mediaTypes:S(MO),mode:x([`url`,`bytes`,`both`]),max:a().int().nonnegative(),maxBytes:a().int().positive().optional()}),actions:a().int().nonnegative(),actionIcons:C().optional(),levels:S(RO),format:S(PO),clickUrl:C(),sound:C(),ttl:C(),bodyMaxLen:a().int().positive()}),BO=s(),VO=f({kind:u(),label:u(),icon:u(),addonId:u(),iconUrl:u().optional(),iconMediaType:u().optional(),configSchema:BO,destinationKeys:S(u()).optional(),supportsDiscovery:C(),caps:zO}),HO=f({id:u(),name:u(),kind:u(),addonId:u(),enabled:C(),config:y(u(),s())}),UO=f({kind:u(),suggestedName:u(),config:y(u(),s())}),WO=f({level:u(),format:PO,attachmentsSent:a().int().nonnegative(),actionsSent:a().int().nonnegative(),truncated:C(),dropped:S(u())}),GO=f({success:C(),error:u().optional(),renderedAs:WO.optional()}),KO=GO,qO=f({ok:C(),resolvedUrl:u(),httpStatus:a().int().optional(),stateInstance:u().optional(),error:u().optional()}),JO={name:`notification-output`,scope:`system`,mode:`collection`,methods:{listTargetKinds:L(f({}),S(VO)),listTargets:L(f({}),S(HO),{auth:`admin`}),getTarget:L(f({targetId:u()}),HO,{auth:`admin`}),discoverTargets:L(f({kind:u(),config:y(u(),s()).optional(),targetId:u().optional()}),S(UO),{auth:`admin`}),probeTargetConfig:L(f({kind:u(),config:y(u(),s()),targetId:u().optional()}),qO,{kind:`mutation`,auth:`admin`}),send:L(f({targetId:u(),notification:LO}),GO,{kind:`mutation`,auth:`admin`}),testTarget:L(f({targetId:u(),sample:LO.optional()}),KO,{kind:`mutation`,auth:`admin`}),upsertTarget:L(f({target:HO,cloneSecretsFrom:u().optional()}),HO,{kind:`mutation`,auth:`admin`}),deleteTarget:L(f({targetId:u()}),v(),{kind:`mutation`,auth:`admin`}),setTargetEnabled:L(f({targetId:u(),enabled:C()}),v(),{kind:`mutation`,auth:`admin`})}},YO=[{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`}],XO=[{id:`person`,name:`Person`},{id:`vehicle`,name:`Vehicle`},{id:`animal`,name:`Animal`},{id:`package`,name:`Package`}],ZO=new Set(XO.map(e=>e.id));function QO(e){return ZO.has(e.trim().toLowerCase())}var $O={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`,suitcase:`package`,backpack:`package`,handbag:`package`},preserveOriginal:!1},ek=[{id:`speech`,name:`Speech`},{id:`scream`,name:`Scream / Shout`},{id:`crying`,name:`Crying / Baby`},{id:`laughter`,name:`Laughter`},{id:`music`,name:`Music`},{id:`dog`,name:`Dog`},{id:`cat`,name:`Cat`},{id:`bird`,name:`Bird`},{id:`animal`,name:`Animal (other)`},{id:`alarm`,name:`Alarm / Siren`},{id:`doorbell`,name:`Doorbell / Knock`},{id:`glass_breaking`,name:`Glass Breaking`},{id:`gunshot`,name:`Gunshot / Explosion`},{id:`vehicle`,name:`Vehicle`},{id:`siren`,name:`Emergency Siren`},{id:`fire`,name:`Fire / Smoke`},{id:`water`,name:`Water`},{id:`wind`,name:`Wind / Weather`},{id:`door`,name:`Door`},{id:`footsteps`,name:`Footsteps`},{id:`crowd`,name:`Crowd / Chatter`},{id:`telephone`,name:`Telephone`},{id:`engine`,name:`Engine / Motor`},{id:`tools`,name:`Tools / Construction`},{id:`silence`,name:`Silence`}],tk={mapping:{Speech:`speech`,"Child speech, kid speaking":`speech`,Conversation:`speech`,"Narration, monologue":`speech`,Babbling:`speech`,Whispering:`speech`,"Speech synthesizer":`speech`,Humming:`speech`,Rapping:`speech`,Singing:`speech`,Choir:`speech`,"Child singing":`speech`,Shout:`scream`,Bellow:`scream`,Yell:`scream`,Screaming:`scream`,"Children shouting":`scream`,Whoop:`scream`,"Crying, sobbing":`crying`,"Baby cry, infant cry":`crying`,Whimper:`crying`,"Wail, moan":`crying`,Groan:`crying`,Laughter:`laughter`,"Baby laughter":`laughter`,Giggle:`laughter`,Snicker:`laughter`,"Belly laugh":`laughter`,"Chuckle, chortle":`laughter`,Music:`music`,"Musical instrument":`music`,Guitar:`music`,Piano:`music`,Drum:`music`,"Drum kit":`music`,"Violin, fiddle":`music`,Flute:`music`,Saxophone:`music`,Trumpet:`music`,Synthesizer:`music`,"Pop music":`music`,"Rock music":`music`,"Hip hop music":`music`,"Classical music":`music`,Jazz:`music`,"Electronic music":`music`,"Background music":`music`,Dog:`dog`,Bark:`dog`,Yip:`dog`,Howl:`dog`,"Bow-wow":`dog`,Growling:`dog`,"Whimper (dog)":`dog`,Cat:`cat`,Purr:`cat`,Meow:`cat`,Hiss:`cat`,Caterwaul:`cat`,Bird:`bird`,"Bird vocalization, bird call, bird song":`bird`,"Chirp, tweet":`bird`,Squawk:`bird`,Crow:`bird`,Owl:`bird`,"Pigeon, dove":`bird`,Animal:`animal`,"Domestic animals, pets":`animal`,"Livestock, farm animals, working animals":`animal`,Horse:`animal`,"Cattle, bovinae":`animal`,Pig:`animal`,Sheep:`animal`,Goat:`animal`,Frog:`animal`,Insect:`animal`,Cricket:`animal`,Alarm:`alarm`,"Alarm clock":`alarm`,"Smoke detector, smoke alarm":`alarm`,"Fire alarm":`alarm`,Buzzer:`alarm`,"Civil defense siren":`alarm`,"Car alarm":`alarm`,Siren:`siren`,"Police car (siren)":`siren`,"Ambulance (siren)":`siren`,"Fire engine, fire truck (siren)":`siren`,"Emergency vehicle":`siren`,Foghorn:`siren`,Doorbell:`doorbell`,"Ding-dong":`doorbell`,Knock:`doorbell`,Tap:`doorbell`,Glass:`glass_breaking`,Shatter:`glass_breaking`,"Chink, clink":`glass_breaking`,"Gunshot, gunfire":`gunshot`,"Machine gun":`gunshot`,Explosion:`gunshot`,Fireworks:`gunshot`,Firecracker:`gunshot`,"Artillery fire":`gunshot`,"Cap gun":`gunshot`,Boom:`gunshot`,Vehicle:`vehicle`,Car:`vehicle`,Truck:`vehicle`,Bus:`vehicle`,Motorcycle:`vehicle`,"Car passing by":`vehicle`,"Vehicle horn, car horn, honking":`vehicle`,"Traffic noise, roadway noise":`vehicle`,Train:`vehicle`,Aircraft:`vehicle`,Helicopter:`vehicle`,Bicycle:`vehicle`,Skateboard:`vehicle`,Fire:`fire`,Crackle:`fire`,Water:`water`,Rain:`water`,Raindrop:`water`,"Rain on surface":`water`,Stream:`water`,Waterfall:`water`,Ocean:`water`,"Waves, surf":`water`,"Splash, splatter":`water`,Wind:`wind`,Thunderstorm:`wind`,Thunder:`wind`,"Wind noise (microphone)":`wind`,"Rustling leaves":`wind`,Door:`door`,"Sliding door":`door`,Slam:`door`,"Cupboard open or close":`door`,"Walk, footsteps":`footsteps`,Run:`footsteps`,Shuffle:`footsteps`,Crowd:`crowd`,Chatter:`crowd`,Cheering:`crowd`,Applause:`crowd`,"Children playing":`crowd`,"Hubbub, speech noise, speech babble":`crowd`,Telephone:`telephone`,"Telephone bell ringing":`telephone`,Ringtone:`telephone`,"Telephone dialing, DTMF":`telephone`,"Busy signal":`telephone`,Engine:`engine`,"Engine starting":`engine`,Idling:`engine`,"Accelerating, revving, vroom":`engine`,"Light engine (high frequency)":`engine`,"Medium engine (mid frequency)":`engine`,"Heavy engine (low frequency)":`engine`,"Lawn mower":`engine`,Chainsaw:`engine`,Hammer:`tools`,Jackhammer:`tools`,Sawing:`tools`,"Power tool":`tools`,Drill:`tools`,Sanding:`tools`,Silence:`silence`},preserveOriginal:!1},nk={mapping:{speech:`speech`,child_speech:`speech`,conversation:`speech`,whispering:`speech`,singing:`speech`,humming:`speech`,shout:`scream`,yell:`scream`,screaming:`scream`,crying:`crying`,baby_crying:`crying`,sobbing:`crying`,laughter:`laughter`,baby_laughter:`laughter`,giggling:`laughter`,music:`music`,guitar:`music`,piano:`music`,drums:`music`,dog_bark:`dog`,dog_bow_wow:`dog`,dog_growling:`dog`,dog_howl:`dog`,cat_meow:`cat`,cat_purr:`cat`,cat_hiss:`cat`,bird:`bird`,bird_chirp:`bird`,bird_squawk:`bird`,animal:`animal`,horse:`animal`,cow_moo:`animal`,insect:`animal`,alarm:`alarm`,smoke_alarm:`alarm`,fire_alarm:`alarm`,car_alarm:`alarm`,siren:`siren`,police_siren:`siren`,ambulance_siren:`siren`,doorbell:`doorbell`,door_knock:`doorbell`,knocking:`doorbell`,glass_breaking:`glass_breaking`,glass_shatter:`glass_breaking`,gunshot:`gunshot`,explosion:`gunshot`,fireworks:`gunshot`,car:`vehicle`,truck:`vehicle`,motorcycle:`vehicle`,car_horn:`vehicle`,vehicle_horn:`vehicle`,traffic:`vehicle`,fire:`fire`,fire_crackle:`fire`,water:`water`,rain:`water`,ocean:`water`,splash:`water`,wind:`wind`,thunder:`wind`,thunderstorm:`wind`,door:`door`,door_slam:`door`,sliding_door:`door`,footsteps:`footsteps`,walking:`footsteps`,running:`footsteps`,crowd:`crowd`,chatter:`crowd`,cheering:`crowd`,applause:`crowd`,telephone_ring:`telephone`,ringtone:`telephone`,engine:`engine`,engine_starting:`engine`,lawn_mower:`engine`,chainsaw:`engine`,hammer:`tools`,jackhammer:`tools`,drill:`tools`,power_tool:`tools`,silence:`silence`},preserveOriginal:!1},rk=new Map;for(let[e,t]of Object.entries(tk.mapping))rk.set(e.toLowerCase(),t);for(let[e,t]of Object.entries(nk.mapping))rk.set(e.toLowerCase(),t);function ik(e){return rk.get(e.toLowerCase())??null}function ak(){return ek.map(e=>e.id)}var K={motion:`#f59e0b`,audio:`#06b6d4`,person:`#22c55e`,vehicle:`#3b82f6`,animal:`#f97316`,package:`#a855f7`,sensor:`#8b5cf6`,control:`#10b981`,genericDetection:`#64748b`},ok=`#22ff55`,sk={car:`#f59e0b`,truck:`#d97706`,bus:`#b45309`,motorcycle:`#eab308`,bicycle:`#ca8a04`,airplane:`#60a5fa`,boat:`#2563eb`,train:`#1d4ed8`,bird:`#14b8a6`,dog:`#84cc16`,cat:`#f97316`,horse:`#a16207`,sheep:`#a3a3a3`,cow:`#78716c`,elephant:`#6b7280`,bear:`#7c2d12`,zebra:`#404040`,giraffe:`#d4a373`};function ck(e){return e.split(/[-_ ]/).filter(e=>e.length>0).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}var lk=new Map;function uk(e,t,n,r,i){lk.set(e,{kind:e,parentKind:null,level:`macro`,category:t,color:n,iconId:r,labelKey:`eventKind.${e}`,label:i})}function q(e,t,n,r,i,a){lk.set(e,{kind:e,parentKind:t,level:`sub`,category:n,color:r,iconId:i,labelKey:`eventKind.${e}`,label:a})}uk(`motion`,`motion`,K.motion,`motion`,`Motion`),uk(`audio`,`audio`,K.audio,`audio`,`Audio`),uk(`person`,`detection`,K.person,`person`,`Person`),uk(`vehicle`,`detection`,K.vehicle,`vehicle`,`Vehicle`),uk(`animal`,`detection`,K.animal,`animal`,`Animal`),uk(`package`,`package`,K.package,`package`,`Package`),uk(`sensor`,`sensor`,K.sensor,`sensor`,`Sensor`),uk(`control`,`control`,K.control,`control`,`Control`);for(let[e,t]of Object.entries($O.mapping))t!==`vehicle`&&t!==`animal`||lk.has(e)||q(e,t,`detection`,sk[e]??K.genericDetection,e,ck(e));q(`package-delivered`,`package`,`package`,K.package,`package`,`Package delivered`),q(`package-picked-up`,`package`,`package`,K.package,`package`,`Package picked up`),q(`contact`,`sensor`,`sensor`,`#f59e0b`,`door`,`Contact`),q(`motion-sensor`,`sensor`,`sensor`,K.sensor,`pir`,`Motion sensor`),q(`smoke`,`sensor`,`sensor`,`#ef4444`,`smoke`,`Smoke`),q(`flood`,`sensor`,`sensor`,`#3b82f6`,`water`,`Water leak`),q(`gas`,`sensor`,`sensor`,`#ef4444`,`gas`,`Gas`),q(`carbon-monoxide`,`sensor`,`sensor`,`#dc2626`,`smoke`,`Carbon monoxide`),q(`vibration`,`sensor`,`sensor`,`#eab308`,`vibration`,`Vibration`),q(`tamper`,`sensor`,`sensor`,`#f97316`,`tamper`,`Tamper`),q(`presence`,`sensor`,`sensor`,`#22c55e`,`presence`,`Presence`),q(`enum-sensor`,`sensor`,`sensor`,K.sensor,`generic`,`Sensor state`),q(`device-event`,`sensor`,`sensor`,`#10b981`,`button`,`Device event`),q(`lock`,`control`,`control`,`#0ea5e9`,`lock`,`Lock`),q(`cover`,`control`,`control`,`#0ea5e9`,`door`,`Cover`),q(`switch`,`control`,`control`,K.control,`switch`,`Switch`),q(`siren`,`control`,`control`,`#dc2626`,`siren`,`Siren`),q(`button`,`control`,`control`,`#10b981`,`button`,`Button`),q(`doorbell`,`control`,`control`,`#a855f7`,`doorbell`,`Doorbell`);for(let e of ek){let t=`audio-${e.id}`;lk.has(t)||q(t,`audio`,`audio`,K.audio,t,e.name)}var dk=Object.freeze(Object.fromEntries(lk));function fk(e){return dk[e]}function pk(e){return dk[e]?.color??`#22ff55`}function mk(e){let t=[];for(let n of Object.values(dk))n.parentKind===e&&t.push(n);return t}var hk=f({kind:u(),label:u(),parentKind:u().nullable()}),gk=f({videoClasses:S(hk),audioKinds:S(hk),labels:S(hk)});function _k(e,t,n){return{kind:e,label:t,parentKind:n}}function vk(){let e=Object.values(dk);return{videoClasses:e.filter(e=>e.category===`detection`).map(e=>_k(e.kind,e.label,e.parentKind)),audioKinds:e.filter(e=>e.category===`audio`&&e.level===`sub`).map(e=>_k(e.kind,e.label,e.parentKind)),labels:e.filter(e=>e.category===`sensor`||e.category===`control`).map(e=>_k(e.kind,e.label,e.parentKind))}}var yk=Object.freeze(vk()),bk=x([`disarmed`,`armed_home`,`armed_away`,`armed_night`,`armed_vacation`,`armed_custom_bypass`,`arming`,`disarming`,`pending`,`triggered`]),J=x([`home`,`away`,`night`,`vacation`,`custom_bypass`]),xk=f({state:bk,targetMode:J.nullable().optional(),availableModes:S(J),requiresCode:C(),lastChangedAt:a()}),Sk={name:`alarm-panel`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.AlarmPanel],methods:{arm:L(f({deviceId:a().int().nonnegative(),mode:J,code:u().min(1).optional()}),v(),{kind:`mutation`,auth:`protected`}),disarm:L(f({deviceId:a().int().nonnegative(),code:u().min(1).optional()}),v(),{kind:`mutation`,auth:`protected`}),trigger:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:xk,kind:`push`},runtimeState:xk,durability:`restored`,history:`none`,volatileStateFields:[`lastChangedAt`]},Ck=f({x:a(),y:a()}),wk=f({kind:g(`rect`),x:a(),y:a(),width:a(),height:a()}),Tk=f({kind:g(`polygon`),points:S(Ck)}),Ek=f({kind:g(`grid`),gridWidth:a(),gridHeight:a(),cells:S(C())}),Dk=f({kind:g(`line`),points:S(Ck)}),Ok=h(`kind`,[wk,Tk,Ek,Dk]),kk=x([`rect`,`polygon`,`grid`,`line`]),Ak=f({min:a(),max:a()}),jk=f({width:a(),height:a()}),Mk=x([`immediate`,`track-end`,`device-event`,`package-event`,`system-event`]),Nk=x(`device-online.device-offline.device-disabled.device-enabled.device-battery-low.device-battery-normal.device-consumable-low.device-consumable-normal.device-tank-low.device-tank-full.device-tank-normal.stream-online.stream-offline.node-online.node-offline.node-restarting.node-updating.node-inference-unavailable.detection-blind.recording-stalled.recording-healthy.recording-degraded.storage-location-low.storage-location-critical.storage-location-ok.addon-crash-loop.addon-update-available.server-update-available.wrapper-update-available.alarm-triggered.alarm-armed.alarm-disarmed.alarm-arming.alarm-arm-refused.alarm-pending.alarm-rearmed.alarm-sensor-bypass.alarm-check-failed.addon-updated.server-updated.export-completed.backup-completed.alert-critical.alert-error.alert-critical-resolved.camera-online.camera-offline.camera-disabled.camera-enabled`.split(`.`)),Pk=new Set([`camera-online`,`camera-offline`,`camera-disabled`,`camera-enabled`]),Fk=Nk.options.filter(e=>!Pk.has(e)),Ik=[`alarm-arm-refused`,`alarm-check-failed`,`alarm-arming`,`alarm-armed`,`alarm-pending`,`alarm-triggered`,`alarm-rearmed`,`alarm-sensor-bypass`,`alarm-disarmed`],Lk=[`device-battery-low`,`device-battery-normal`,`device-consumable-low`,`device-consumable-normal`],Rk=[`device-consumable-low`,`device-consumable-normal`],zk=[`device-tank-low`,`device-tank-full`,`device-tank-normal`],Bk=f({kinds:S(Nk).min(1),deviceIds:S(a().int()).min(1).optional(),deviceTypes:S(u().min(1)).min(1).optional(),excludeDeviceIds:S(a().int()).min(1).optional(),nodeIds:S(u().min(1)).min(1).optional(),packageNames:S(u().min(1)).min(1).optional(),consumableLowPercent:a().int().min(1).max(95).optional()});function hee(e){return e.consumableLowPercent??15}var Vk=1440,gee=[10,30,60],Hk=f({days:S(a().int().min(0).max(6)).min(1),startMinute:a().int().min(0).max(1439),endMinute:a().int().min(0).max(1439)}),Uk=f({windows:S(Hk).min(1),timezone:u().optional(),invert:C().optional()}),Wk=x([`instant`,`summary`]),Gk=x([`rule`,`section`]),Kk=h(`mode`,[f({mode:g(`instant`)}),f({mode:g(`summary`),schedule:Uk,split:Gk.optional()})]),qk=f({values:S(u().min(1)),maxDistance:a().int().min(0).max(3).default(1)}),Jk=f({zoneId:u().optional(),className:u().optional(),op:x([`became-occupied`,`became-free`,`>=`,`<=`]).default(`became-occupied`),count:a().int().min(0).default(1),sustainSeconds:a().int().min(0).max(3600).default(15)}),Yk=f({labels:S(u().min(1)).min(1).optional(),dbThreshold:a().min(-96).max(0).optional(),hitPercent:a().int().min(1).max(100).default(60),samplingSeconds:a().int().min(1).max(300).default(10),confirmHits:a().int().min(1).max(20).optional(),confirmWindowSec:a().int().min(1).max(60).optional()}),Xk=x([`enter`,`exit`,`any`]),Zk=x([`raised`,`cleared`]),Qk=f({ids:S(u().min(1)).min(1),match:x([`any`,`all`]).optional()}),$k=h(`kind`,[f({kind:g(`wait`),seconds:a().min(0).max(300)}),f({kind:g(`cap`),deviceId:a().int(),cap:u().min(1),method:u().min(1),args:y(u(),s()).optional()})]),eA=f({id:u().min(1),name:u().min(1).max(120),minDelaySec:a().int().min(0).max(86400).optional(),actions:S($k).min(1)}),tA=f({name:u().min(1).max(120),minDelaySec:a().int().min(0).max(86400).optional(),actions:S($k).min(1)}),nA=h(`kind`,[f({kind:g(`sequence`),sequenceId:u().min(1)}),f({kind:g(`do`),action:$k})]),rA=S(nA).max(4),iA=f({id:u().min(1).max(64),label:u().min(1).max(40),sequenceId:u().min(1),icon:FO.optional(),destructive:C().optional()}),aA=f({onActivation:rA.optional(),onDeactivation:rA.optional(),onTrigger:rA.optional(),onTriggerOff:rA.optional(),buttons:S(iA).max(8).optional()}),oA=f({name:u().min(1).max(120),enabled:C(),minDelaySec:a().int().min(0).max(86400).optional(),actions:S($k).min(1)}),sA=oA,cA=f({deviceId:a().int(),states:S(u().min(1)).min(1)}),lA=f({sceneId:u().min(1),deviceId:a().int().optional(),requiredState:x([`matched`,`diverged`]),latched:C().optional()}),uA=f({deviceState:cA.optional(),scene:lA.optional(),devices:S(a()).optional(),devicesExclude:S(a()).min(1).optional(),classes:S(u().min(1)).optional(),classesExclude:S(u().min(1)).optional(),minConfidence:a().min(0).max(1).optional(),zones:Qk.optional(),zonesExclude:S(u().min(1)).optional(),crossing:Xk.optional(),labelEquals:S(u().min(1)).optional(),identities:S(u().min(1)).optional(),plates:qk.optional(),identitiesExclude:S(u().min(1)).optional(),minImportance:a().min(0).max(1).optional(),minDwellSeconds:a().min(0).optional(),source:x([`pipeline`,`onboard`,`sensor`,`audio`,`any`]).optional(),minLabelConfidence:a().min(0).max(1).optional(),eventTypeTokens:S(u().min(1)).optional(),sensorKinds:S(u().min(1)).optional(),sensorTransition:Zk.optional(),packagePhase:x([`delivered`,`picked-up`,`both`]).optional(),systemEvent:Bk.optional(),customZones:S(Tk).optional(),occupancy:Jk.optional(),audio:Yk.optional()}),dA=f({targetId:u().min(1),params:y(u(),s()).optional()}),fA=x([`cropped`,`full`,`boxed`]),pA=x([`mosaic`,`each`]),mA=f({attach:x([`best`,`best-matching`,`keyFrame`,`none`]).default(`best`),frame:fA.optional(),zoneCrop:C().optional(),gif:C().optional(),clip:C().optional(),clipPreRollSec:a().int().min(0).max(30).optional(),clipPostRollSec:a().int().min(0).max(30).optional(),clipSpeed:a().min(1).max(8).optional(),profile:k.optional(),linkedCameras:pA.optional()}),hA=x([`shared`,`per-class`]),gA=f({cooldownSec:a().int().min(0).max(86400).default(60),scope:x([`rule`,`rule-device`]).default(`rule-device`),granularity:hA.optional()}),_A=1e3,vA=2e4,yA=8e3,bA=f({op:x([`>=`,`>`,`<=`,`<`,`==`]),count:a().int().min(0).max(1e3)}),xA=f({enabled:C().default(!1),profileId:u().optional(),prompt:u().max(1e3).optional(),expect:bA.optional(),timeoutMs:a().int().min(_A).max(vA).default(yA),onTimeout:x([`fire`,`suppress`]).default(`fire`),maxImagePx:a().int().min(64).max(2048).default(448)}),SA=f({name:u().min(1).max(200),enabled:C().default(!0),delivery:Mk,conditions:uA.default({}),schedule:Uk.optional(),systemEventDelivery:Kk.optional(),targets:S(dA),targetUsers:S(u()).optional(),media:mA.default({attach:`best`}),throttle:gA.default({cooldownSec:60,scope:`rule-device`}),template:f({title:u().max(500).optional(),body:u().max(2e3).optional()}).optional(),priority:a().int().min(1).max(5).default(3),ownerUserId:u().optional(),snoozeAllowGlobal:C().optional(),snoozeOptions:S(a().int().min(1).max(Vk)).max(4).optional(),actions:aA.optional(),confirm:xA.optional(),groupingSec:a().int().min(5).max(60).optional()}),CA=SA.partial().extend({disabledTargetIds:S(u()).optional(),enabled:C().optional(),conditions:uA.optional(),media:mA.optional(),throttle:gA.optional(),priority:a().int().min(1).max(5).optional()}),wA=[`waitForEnhancement`,`groupIdleSec`];function TA(e){return wA.some(t=>t===e)}var EA=[`template`,`schedule`,`targetUsers`,`snoozeOptions`,`snoozeAllowGlobal`,`actions`,`confirm`,`groupingSec`,`waitForEnhancement`,`groupIdleSec`],DA=x(EA),OA=f({ruleId:u(),patch:CA,clear:S(DA).optional()}),kA=SA.extend({id:u(),createdBy:u(),createdAt:a(),updatedAt:a(),disabledTargetIds:S(u()).default([])}),AA=x([`device-state`,`streams`,`battery`,`consumables`,`tanks`,`detection-blind`,`nodes`,`addons`,`addon-updates`,`updates`]),jA=f({id:AA,status:x([`read`,`unavailable`]),items:a().int().nonnegative(),reason:u().optional()}),MA=f({section:AA.optional(),title:u(),text:u(),count:a().int().nonnegative()}),NA=f({empty:C(),count:a().int().nonnegative(),text:u(),sections:S(jA),dropped:y(u(),a().int().nonnegative()),excludedGroups:S(u()),split:Gk.optional(),rows:S(MA).optional()}),PA=f({recordId:u(),recordKind:x([`object-event`,`track`,`device-event`,`package-event`,`system-event`]),deviceId:a(),timestamp:a(),wouldFire:C(),failedCondition:u().optional(),className:u().optional(),label:u().optional()}),FA=x([`detection`,`sensor`,`occupancy`,`sound`,`device-events`,`system`,`alarm`,`mixed`]),IA=x([`detection`,`sensor`,`occupancy`,`sound`,`system`]),LA=x([`rule`,`timelapse`,`summary`]),RA=x([`title`,`body`,`previewText`,`captionText`]),zA=x([`subject`,`place`,`time`,`rule`,`occupancy`,`sound`,`sensor`,`system`,`digest`,`ai`]),BA=f({name:u().regex(/^\w+$/),label:u(),description:u().optional(),example:u(),group:zA,families:S(LA).min(1),fields:S(RA).optional(),kinds:S(IA).optional(),deliveries:S(Mk).optional(),systemEventKinds:S(Nk).optional(),systemEventDeliveries:S(Wk).optional(),dynamic:f({prefix:g(`count_`),from:g(`classes`)}).optional()}),VA=f({family:LA,field:RA,kind:FA.optional(),delivery:Mk.optional(),systemEventKinds:S(Nk).optional(),systemEventDelivery:Wk.optional()}),HA=f({context:VA,template:f({title:u().max(500).optional(),body:u().max(2e3).optional()})}),UA=f({title:u().nullable(),body:u().nullable(),unknown:S(u())}),WA=f({id:u(),group:x([`scope`,`class`,`zones`,`quality`,`label`,`schedule`,`device`,`package`,`occupancy`,`audio`,`system`]),label:u(),valueType:x([`deviceIdList`,`deviceIdExcludeList`,`stringList`,`number01`,`number`,`sourceSelect`,`zoneSelection`,`zoneIdList`,`schedule`,`plateMatcher`,`packagePhase`,`crossingSelect`,`sensorTransition`,`polygonDraw`,`occupancy`,`audio`,`deviceState`,`scene`,`systemEvent`]),operator:x([`in`,`notIn`,`anyOf`,`allOf`,`gte`,`fuzzyIn`,`withinSchedule`]),appliesTo:S(Mk),phase:u(),description:u().optional(),options:S(f({value:u(),label:u(),hint:u().optional()})).readonly().optional()}),GA=[{id:`systemEvent`,group:`system`,label:`System event`,valueType:`systemEvent`,options:[{value:`device-online`,label:`Device online`},{value:`device-offline`,label:`Device offline`},{value:`device-disabled`,label:`Device switched off`},{value:`device-enabled`,label:`Device switched on`},{value:`stream-online`,label:`Stream online`},{value:`stream-offline`,label:`Stream offline`},{value:`node-online`,label:`Node online`},{value:`node-offline`,label:`Node offline`},{value:`node-restarting`,label:`Node restarting`},{value:`node-updating`,label:`Node updating (restart imminent)`},{value:`node-inference-unavailable`,label:`Node has no usable inference device`},{value:`detection-blind`,label:`Camera detecting nothing`},{value:`recording-stalled`,label:`Recording stalled`},{value:`recording-healthy`,label:`Recording healthy again`},{value:`recording-degraded`,label:`Recording degraded (restart storm)`},{value:`storage-location-low`,label:`Storage location low`},{value:`storage-location-critical`,label:`Storage location critical`},{value:`storage-location-ok`,label:`Storage location ok again`},{value:`addon-crash-loop`,label:`Addon stopped after repeated crashes`},{value:`addon-update-available`,label:`Addon update available`},{value:`server-update-available`,label:`Server update available`},{value:`wrapper-update-available`,label:`Container / app update available`},{value:`addon-updated`,label:`Addons updated`},{value:`server-updated`,label:`Server updated`},{value:`device-battery-low`,label:`Battery low`},{value:`device-battery-normal`,label:`Battery back to normal`},{value:`device-consumable-low`,label:`Consumable low`},{value:`device-consumable-normal`,label:`Consumable replaced`},{value:`device-tank-low`,label:`Tank low (water, detergent)`},{value:`device-tank-full`,label:`Tank full (dirty water, dust)`},{value:`device-tank-normal`,label:`Tank back to normal`},{value:`export-completed`,label:`Export completed`},{value:`backup-completed`,label:`Backup completed`},{value:`alert-critical`,label:`Critical alert raised`},{value:`alert-error`,label:`Error alert raised`},{value:`alert-critical-resolved`,label:`Critical alert resolved`},{value:`alarm-arm-refused`,label:`Alarm arm refused`},{value:`alarm-check-failed`,label:`Alarm check failed (armed anyway)`},{value:`alarm-arming`,label:`Alarm arming (exit delay)`},{value:`alarm-armed`,label:`Alarm armed`},{value:`alarm-pending`,label:`Alarm entry delay started`},{value:`alarm-triggered`,label:`Alarm triggered`},{value:`alarm-rearmed`,label:`Alarm re-armed after siren`},{value:`alarm-sensor-bypass`,label:`Alarm sensor bypass`},{value:`alarm-disarmed`,label:`Alarm disarmed`}],operator:`in`,appliesTo:[`system-event`],phase:`P1`,description:`Infrastructure and update events. Device liveness covers EVERY device type — narrow it by device type (cameras only, say) and/or by device, node events by node id, and addon updates by package name.`},{id:`devices`,group:`scope`,label:`Devices`,valueType:`deviceIdList`,operator:`in`,appliesTo:[`immediate`,`track-end`,`device-event`,`package-event`],phase:`P1`,description:`Restrict the rule to these devices; absent = all devices. A sensor event matches either the SENSOR that fired or the camera it is attributed to, so a rule may name either one.`},{id:`devicesExclude`,group:`scope`,label:`Excluded devices`,valueType:`deviceIdExcludeList`,operator:`notIn`,appliesTo:[`immediate`,`track-end`,`device-event`,`package-event`],phase:`P1`,description:`Every device except these. Judged on the same device ids as Devices: a sensor event is excluded by the SENSOR that fired or by the camera it is attributed to.`},{id:`classes`,group:`class`,label:`Object classes`,valueType:`stringList`,operator:`in`,appliesTo:[`immediate`,`track-end`,`package-event`],phase:`P1`,description:`Any overlap with the detection class set passes.`},{id:`classesExclude`,group:`class`,label:`Excluded classes`,valueType:`stringList`,operator:`notIn`,appliesTo:[`immediate`,`track-end`,`package-event`],phase:`P1`},{id:`minConfidence`,group:`quality`,label:`Minimum confidence`,valueType:`number01`,operator:`gte`,appliesTo:[`immediate`,`track-end`,`package-event`],phase:`P1`},{id:`zones`,group:`zones`,label:`Zones`,valueType:`zoneSelection`,operator:`anyOf`,appliesTo:[`immediate`,`track-end`,`package-event`],phase:`P1`,description:`The zones the subject must be in (included) or never in (excluded).`},{id:`zonesExclude`,group:`zones`,label:`Excluded zones`,valueType:`zoneIdList`,operator:`notIn`,appliesTo:[`immediate`,`track-end`,`package-event`],phase:`P1`},{id:`crossing`,group:`zones`,label:`Zone crossing`,valueType:`crossingSelect`,options:[{value:``,label:`Entering`,hint:`Entries and ordinary movement; never an exit.`},{value:`exit`,label:`Leaving`,hint:`Only an exit from a zone.`},{value:`any`,label:`Entering or leaving`,hint:`Entries, exits and ordinary movement.`}],operator:`in`,appliesTo:[`immediate`],phase:`P1`,description:`Which way the subject crosses the zone.`},{id:`labelEquals`,group:`label`,label:`Label equals`,valueType:`stringList`,operator:`in`,appliesTo:[`immediate`,`track-end`],phase:`P1`,description:`Exact match on the collapsed label (identity / plate / subclass).`},{id:`identities`,group:`label`,label:`Known faces`,valueType:`stringList`,operator:`in`,appliesTo:[`immediate`,`track-end`],phase:`P1`,description:`Only recognised people. Selecting NOBODY means every identity in the face gallery; selecting some narrows to those. Matched on the gallery id, so renaming a person does not break the rule. On Immediate delivery the name must already be known when an event is written — choose Immediate, grouped to wait for it.`},{id:`plates`,group:`label`,label:`Known plates`,valueType:`plateMatcher`,operator:`fuzzyIn`,appliesTo:[`immediate`,`track-end`],phase:`P1`,description:`Only vehicles whose plate was read. Selecting NO plate means any readable plate; listed plates are matched Levenshtein-tolerantly, because OCR noise makes an exact match useless.`},{id:`identitiesExclude`,group:`label`,label:`Excluded faces`,valueType:`stringList`,operator:`notIn`,appliesTo:[`immediate`,`track-end`],phase:`P1`,description:`Veto by identity (mirror of Known faces, same gallery ids). A subject nobody recognised passes — there is nothing to exclude.`},{id:`minLabelConfidence`,group:`label`,label:`Minimum label confidence`,valueType:`number01`,operator:`gte`,appliesTo:[`track-end`],phase:`P1`,description:`Best identity/plate recognition match confidence [0,1] for the label the track carries at close (peak assigned-identity cosine / peak plate OCR score; the higher of the two when both were read). Distinct from detection confidence. Fails closed for a track that ended un-recognized.`},{id:`minImportance`,group:`quality`,label:`Minimum importance`,valueType:`number01`,operator:`gte`,appliesTo:[`track-end`],phase:`P1`,description:`Server-computed key-event importance [0,1]; track-end rules only (importance is scored at close). Fails when the record has none.`},{id:`minDwellSeconds`,group:`quality`,label:`Minimum dwell (seconds)`,valueType:`number`,operator:`gte`,appliesTo:[`track-end`],phase:`P1`,description:`Track lifespan in seconds (lastSeen − firstSeen); track-end rules only.`},{id:`source`,group:`scope`,label:`Detection source`,valueType:`sourceSelect`,options:[{value:`any`,label:`Any source`},{value:`pipeline`,label:`Pipeline`},{value:`onboard`,label:`Onboard (camera)`},{value:`sensor`,label:`Sensor`},{value:`audio`,label:`Audio marker`}],operator:`in`,appliesTo:[`immediate`,`track-end`,`device-event`,`package-event`],phase:`P1`,description:`pipeline / onboard / sensor / audio; a record with no stamped source counts as pipeline.`},{id:`deviceState`,group:`scope`,label:`Device state`,valueType:`deviceState`,operator:`in`,appliesTo:[`immediate`,`track-end`,`device-event`,`package-event`],phase:`P2`,description:`Only fire while another device is in one of the chosen states — the alarm armed, a switch on, a contact closed. A state that cannot be read does NOT fire.`},{id:`scene`,group:`scope`,label:`Scene state`,valueType:`scene`,operator:`in`,appliesTo:[`immediate`,`track-end`,`device-event`,`package-event`],phase:`P3`,description:`Only fire while a scene is matched or diverged.`},{id:`sensorKinds`,group:`device`,label:`Sensor kinds`,valueType:`stringList`,operator:`in`,appliesTo:[`device-event`],phase:`P1`,description:`Sensor/control taxonomy kinds (doorbell / contact / button / …) matched against the persisted device event.`},{id:`eventTypeTokens`,group:`device`,label:`Event-type tokens`,valueType:`stringList`,operator:`in`,appliesTo:[`device-event`],phase:`P1`,description:`Raw device event-type tokens (e.g. doorbell press / press_long) from the event-emitter slice; absent on doorbell-pulse / passive sensors.`},{id:`sensorTransition`,group:`device`,label:`Notify when`,valueType:`sensorTransition`,options:[{value:``,label:`It triggers and when it clears`,hint:`Every change: water detected, and back to dry.`},{value:`raised`,label:`Only when it triggers`,hint:`Water detected, smoke, a contact opening — never the return to normal.`},{value:`cleared`,label:`Only when it clears`,hint:`Back to dry, smoke gone, a contact closing — never the alert itself.`}],operator:`in`,appliesTo:[`device-event`],phase:`P2`,description:`Fire on one edge of a boolean sensor. Offered only when every chosen sensor kind raises and clears; a reading that cannot be placed still notifies.`},{id:`packagePhase`,group:`package`,label:`Package phase`,valueType:`packagePhase`,options:[{value:`delivered`,label:`Delivered`},{value:`picked-up`,label:`Picked up`},{value:`both`,label:`Both`}],operator:`in`,appliesTo:[`package-event`],phase:`P1`,description:`Delivered / picked-up / both.`},{id:`occupancy`,group:`occupancy`,label:`Occupancy`,valueType:`occupancy`,operator:`anyOf`,appliesTo:[`device-event`],phase:`P1`,description:`ZoneAnalytics occupancy edge (optionally zone/class-scoped): count crosses the threshold and holds for sustainSeconds. Fail-closed on a missing snapshot.`},{id:`audio`,group:`audio`,label:`Sound`,valueType:`audio`,operator:`anyOf`,appliesTo:[`immediate`],phase:`P2`,description:`Fires when at least hitPercent% of the samples in a samplingSeconds window are hits — a hit clears the dBFS floor AND carries one of the chosen sounds. Both filters are optional and independent, but naming NEITHER never matches: every sample would be a hit, so the engine refuses rather than notifying on silence. dBFS is negative-going (0 = full scale, -96 = silence).`},{id:`customZones`,group:`zones`,label:`Custom zones`,valueType:`polygonDraw`,operator:`anyOf`,appliesTo:[`immediate`,`track-end`,`package-event`],phase:`P1`,description:`User-drawn polygons; a detection whose bbox overlaps any polygon matches.`},{id:`schedule`,group:`schedule`,label:`Schedule`,valueType:`schedule`,operator:`withinSchedule`,appliesTo:[`immediate`,`track-end`,`device-event`,`package-event`,`system-event`],phase:`P1`,description:`Weekly activation windows (invertible); absent = always active.`}],KA=x([`pending`,`sent`,`dead`]),qA=x([`object-event`,`track-end`,`device-event`,`package-event`,`system-event`]),JA=f({className:u(),label:u().optional(),confidence:a().optional(),zones:S(u()),timestamp:a(),systemEvent:f({kind:Nk,subject:u(),title:u(),body:u(),data:y(u(),s())}).optional()}),YA=f({id:u(),ruleId:u(),ruleName:u(),delivery:Mk,targetId:u(),deviceId:a(),recordKind:qA,recordId:u(),trackId:u().optional(),status:KA,attempts:a().int(),createdAt:a(),updatedAt:a(),error:u().optional(),subject:JA,artifactIds:S(u().min(1)).optional()}),XA=f({ruleId:u().optional(),deviceId:a().optional(),status:KA.optional(),since:a().optional(),until:a().optional(),limit:a().int().min(1).max(500).default(100)}),ZA=f({ruleId:u(),lastAt:a(),status:KA,deviceId:a()}),QA=f({runs:S(ZA),horizonMs:a().nonnegative().nullable()}),$A=x([`rule`,`device`,`all`]),ej=f({scope:$A,ruleId:u().optional(),deviceId:a().int().optional(),classes:S(u().min(1)).min(1).optional(),durationMinutes:a().int().min(1).max(Vk),global:C().optional(),summary:C().optional()}),tj=f({id:u(),userId:u(),scope:$A,ruleId:u().optional(),deviceId:a().int().optional(),classes:S(u().min(1)).min(1).optional(),startedAt:a(),expiresAt:a(),global:C(),summary:C(),digestSentAt:a().optional()}),nj=f({snoozeId:u(),targetId:u(),ruleId:u(),ruleName:u(),deviceId:a().int(),count:a().int(),firstAt:a(),lastAt:a()}),rj=3600,ij=a().int().min(0).max(600),aj=a().int().min(0).max(rj),oj=e=>new Set(e.map(e=>e.mode)).size===e.length,sj=x([`rearmAfter`,`disableAfter`,`doNothing`]),cj=f({mode:J,exitDelaySec:ij.optional(),entryDelaySec:ij.optional(),triggeredDurationSec:aj.optional(),postTriggeredAction:sj.optional(),schedule:Uk.optional(),notifyDuringEntryDelay:C().optional(),notifySensorRewatched:C().optional(),notifySensorIgnored:C().optional()}),lj=S(cj).max(8).refine(oj,{message:`modeDelays: at most one entry per arm mode`}),uj=f({mode:J,exitDelaySec:ij.nullable().optional(),entryDelaySec:ij.nullable().optional(),triggeredDurationSec:aj.nullable().optional(),postTriggeredAction:sj.nullable().optional(),schedule:Uk.nullable().optional(),notifyDuringEntryDelay:C().nullable().optional(),notifySensorRewatched:C().nullable().optional(),notifySensorIgnored:C().nullable().optional()}),dj=S(uj).max(8).refine(oj,{message:`modeDelays: at most one edit per arm mode`}),fj=f({mode:J,deviceId:a().int().positive(),nonBlocking:C()}),pj=f({mode:J,deviceId:a().int().positive(),blocking:C()}),mj=f({mode:J,deviceId:a().int().positive(),secureOnArm:C()}),hj=f({mode:J,deviceIds:S(a().int()).max(200)}),gj=hj,_j=hj,vj=hj,yj=S(gj).max(8).refine(oj,{message:`nonBlocking: at most one list per arm mode`}),bj=S(_j).max(8).refine(oj,{message:`blocking: at most one list per arm mode`}),xj=S(vj).max(8).refine(oj,{message:`secureOnArmOff: at most one list per arm mode`}),Sj=f({exitDelaySec:ij,entryDelaySec:ij,triggeredDurationSec:aj,postTriggeredAction:sj.optional(),announceArm:C().optional(),announceTargets:S(u().min(1)).max(16),nonBlocking:yj.default([]),blocking:bj.default([]),secureOnArmOff:xj.default([]),modeDelays:lj.default([])}),Cj=f({id:u().min(1).max(64),name:u().min(1).max(64),isDefault:C()}),wj=f({activeId:u().min(1),items:S(Cj).min(1)}),Tj=f({name:u().min(1).max(64),cloneFromId:u().min(1).max(64).optional()}),Ej=f({id:u().min(1).max(64),name:u().min(1).max(64)}),Dj=f({id:u().min(1).max(64)}),Oj=Sj.extend({nonBlocking:yj,blocking:bj,secureOnArmOff:xj,modeDelays:dj,nonBlockingEdit:fj,blockingEdit:pj,secureOnArmEdit:mj}).partial().refine(e=>e.nonBlocking===void 0||e.nonBlockingEdit===void 0,{message:`nonBlocking and nonBlockingEdit are exclusive — send the whole lists or one edit`}).refine(e=>e.blocking===void 0||e.blockingEdit===void 0,{message:`blocking and blockingEdit are exclusive — send the whole lists or one edit`}).refine(e=>e.secureOnArmOff===void 0||e.secureOnArmEdit===void 0,{message:`secureOnArmOff and secureOnArmEdit are exclusive — send the whole lists or one edit`}),kj=x([`muted`,`detection-off`,`offline`]),Aj=f({deviceId:a().int(),reason:kj}),jj=f({mode:J,ruleCount:a().int().min(0),allDevices:C(),deviceIds:S(a().int()),allDevicesExcept:S(a().int()).default([]),skippedDevices:S(Aj).default([])}),Mj=f({deviceId:a().int(),name:u(),state:u(),blocking:C()}),Nj=f({deviceId:a().int(),name:u(),phase:x([`open`,`closed`])}),Pj=f({mode:J,devices:S(Mj),unknown:S(a().int())}),Fj=f({state:bk,targetMode:J.nullable(),availableModes:S(J),openings:S(Pj),exclusions:S(Nj)}),Ij=f({deviceId:a().int().nullable(),settings:Sj,profiles:wj.optional(),coverage:S(jj),live:Fj.optional()}),Lj=x([`open`,`closed`,`unknown`,`not-opening`]),Rj=f({deviceId:a().int().positive(),reading:Lj,state:u().nullable(),unknownWhy:x([`read-failed`,`unknown-word`]).nullable(),online:C().nullable(),controllable:C().default(!1)}),zj=f({deviceIds:S(a().int().positive()).max(500)}),Bj=f({sensors:S(Rj),readAt:a().int().nonnegative()}),Vj=f({deviceId:a().int().nonnegative().optional(),seconds:a().min(0).max(60),profile:k.optional(),ruleId:u(),ruleName:u(),reason:x([`window`,`occupancy`])}),Hj=f({rulesLoaded:C(),asks:S(Vj).readonly()}),Uj={name:`notification-rules`,scope:`system`,mode:`singleton`,methods:{listRules:L(f({}),f({rules:S(kA)}),{auth:`admin`}),getRule:L(f({ruleId:u()}),f({rule:kA.nullable()}),{auth:`admin`}),createRule:L(f({rule:SA}),f({rule:kA}),{kind:`mutation`,auth:`admin`,caller:`required`}),updateRule:L(OA,f({rule:kA}),{kind:`mutation`,auth:`admin`,caller:`required`}),deleteRule:L(f({ruleId:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setRuleEnabled:L(f({ruleId:u(),enabled:C()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),listSequences:L(f({}),f({sequences:S(eA)}),{auth:`admin`}),getSequence:L(f({sequenceId:u().min(1)}),f({sequence:eA.nullable()}),{auth:`admin`}),createSequence:L(f({sequence:tA}),f({sequence:eA}),{kind:`mutation`,auth:`admin`}),updateSequence:L(f({sequenceId:u().min(1),sequence:tA}),f({sequence:eA}),{kind:`mutation`,auth:`admin`}),deleteSequence:L(f({sequenceId:u().min(1)}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getClipRetentionAsks:L(f({}),Hj,{auth:`admin`}),listDeviceMutes:L(f({}),f({mutedDeviceIds:S(a().int()).readonly()}),{auth:`admin`}),setDeviceMuted:L(f({deviceId:a().int(),muted:C()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),testRule:L(f({rule:SA,lookbackMinutes:a().int().min(1).max(1440).default(60)}),f({results:S(PA)}),{kind:`mutation`,auth:`admin`}),previewStateSummary:L(f({rule:SA}),NA,{kind:`mutation`,auth:`admin`,access:`view`}),getConditionCatalog:L(f({}),f({catalog:S(WA),taxonomy:gk.optional()})),getTemplateCatalog:L(f({}),f({vars:S(BA)})),previewTemplate:L(HA,UA,{kind:`mutation`,access:`view`}),getHistory:L(f({filter:XA.default({limit:100})}),f({entries:S(YA)}),{auth:`admin`}),getRuleLastRuns:L(f({}),QA,{auth:`admin`}),resolveArtifactUrl:L(f({artifactId:u().min(1)}),f({url:u().nullable()}),{auth:`admin`}),listSnoozes:L(f({}),f({snoozes:S(tj)}),{caller:`required`}),createSnooze:L(f({snooze:ej}),f({snooze:tj}),{kind:`mutation`,caller:`required`}),cancelSnooze:L(f({snoozeId:u()}),f({success:g(!0)}),{kind:`mutation`,caller:`required`}),getAlarmConfig:L(f({}),Ij,{auth:`admin`}),setAlarmConfig:L(f({patch:Oj}),Ij,{kind:`mutation`,auth:`admin`}),createAlarmProfile:L(Tj,Ij,{kind:`mutation`,auth:`admin`}),renameAlarmProfile:L(Ej,Ij,{kind:`mutation`,auth:`admin`}),deleteAlarmProfile:L(Dj,Ij,{kind:`mutation`,auth:`admin`}),activateAlarmProfile:L(Dj,Ij,{kind:`mutation`,auth:`admin`}),getAlarmSensors:L(zj,Bj,{auth:`admin`})}},Wj=x([`view`,`create`,`delete`]),Gj=p([g(`*`),S(u())]),Kj=y(u(),p([g(`*`),S(u())])),qj=x([`device`,`system`]),Jj=h(`kind`,[f({kind:g(`all`)}),f({kind:g(`ids`),ids:S(a().int()).min(1)}),f({kind:g(`types`),types:S(x(R)).min(1)}),f({kind:g(`locations`),locations:S(u().min(1)).min(1)})]),Yj=f({type:g(`device`),selector:Jj,access:S(Wj).min(1),includeLinked:C().optional()});function Xj(e){if(typeof e!=`object`||!e||Array.isArray(e)||Reflect.get(e,`type`)!==`device`||Reflect.get(e,`selector`)!==void 0)return e;let t=Reflect.get(e,`targets`);return Array.isArray(t)?{type:`device`,selector:{kind:`ids`,ids:t.map(e=>typeof e==`string`?Number(e):e).filter(e=>typeof e==`number`&&Number.isInteger(e))},access:Reflect.get(e,`access`)}:e}var Y=r(Xj,h(`type`,[f({type:g(`category`),target:qj,access:S(Wj).min(1)}),f({type:g(`capability`),target:u(),access:S(Wj).min(1)}),f({type:g(`addon`),target:u(),access:S(Wj).min(1)}),Yj])),Zj=f({id:u(),username:u(),passwordHash:u(),isAdmin:C().default(!1),allowedProviders:Gj,allowedDevices:Kj,scopes:S(Y).default([]),createdAt:a(),updatedAt:a()}),Qj=f({id:u(),label:u(),isAdmin:C().default(!1),allowedProviders:Gj,allowedDevices:Kj,tokenHash:u(),tokenPrefix:u(),createdAt:a(),lastUsedAt:a().optional()}),$j=f({id:u(),userId:u(),name:u(),tokenHash:u(),tokenPrefix:u(),scopes:S(Y),expiresAt:a().nullish(),lastUsedAt:a().nullish(),createdAt:a()}),eM=f({integrationId:u(),displayName:u(),requestedScopes:S(Y),allowedRedirectPrefixes:S(u()).min(1),allowedPrivateHostPaths:S(u()).optional(),requiresPkce:C().optional(),hubUrl:u().optional(),refreshTokenTtlSec:p([a().int().positive(),g(`never`)]).optional()}),tM={name:`oauth-integration`,scope:`system`,mode:`collection`,internal:!0,methods:{getDescriptor:L(v(),eM,{auth:`admin`})}},nM=s(),rM=f({id:u().min(1),displayName:u(),icon:u(),issuerUrl:u(),clientId:u(),configured:C(),formValues:y(u(),s()).optional()}),iM=f({id:u().min(1),displayName:u().min(1),icon:u().optional(),issuerUrl:u().optional(),clientId:u().optional(),clientSecret:p([u(),f({$secretClear:g(!0)})]).optional(),redirectUri:u().optional(),scopes:u().optional(),usernameClaim:x([`preferred_username`,`email`,`sub`]).optional()}),aM={name:`oidc-connections`,scope:`system`,mode:`singleton`,methods:{connectionFormSchema:L(f({}),nM,{auth:`admin`}),listConnections:L(f({}),S(rM).readonly(),{auth:`admin`}),createConnection:L(f({id:u().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/,`id must be a lowercase slug`),displayName:u().min(1)}),f({id:u()}),{kind:`mutation`,auth:`admin`}),updateConnection:L(iM,f({ok:g(!0)}),{kind:`mutation`,auth:`admin`}),deleteConnection:L(f({id:u().min(1)}),f({ok:g(!0)}),{kind:`mutation`,auth:`admin`})}},oM=h(`kind`,[f({kind:g(`camera`)}),f({kind:g(`sensor`),deviceId:a().int().positive()})]),sM=Object.freeze({kind:`camera`});function cM(e){if(e===void 0)return{triggeredBy:sM,malformed:!1};let t=oM.safeParse(e);return t.success?{triggeredBy:t.data,malformed:!1}:{triggeredBy:sM,malformed:!0}}var lM=`cameraSensors`,uM=f({addonId:u().min(1),stableId:u().min(1)});function dM(e){return`${e.addonId}/${e.stableId}`}var fM=x([`in-addition`,`confirm`,`replace`]),pM=`in-addition`,mM=uM.extend({mode:fM.default(pM)}),hM=f({sensors:S(mM).min(1).max(8)}).superRefine((e,t)=>{let n=new Set;e.sensors.forEach((e,r)=>{let i=dM(e);n.has(i)&&t.addIssue({code:`custom`,path:[`sensors`,r],message:`duplicate camera sensor ${i}`}),n.add(i)})}),gM={addonId:u(),stableId:u(),mode:fM.default(pM)},_M=h(`state`,[f({...gM,state:g(`ready`),deviceId:a(),name:u(),caps:S(u()).readonly()}),f({...gM,state:g(`offline`),deviceId:a(),name:u(),reason:x([`offline`,`disabled`])}),f({...gM,state:g(`missing`),reason:u()}),f({...gM,state:g(`unsupported`),deviceId:a(),name:u(),reason:u()}),f({...gM,state:g(`unreadable`),reason:u()})]),vM=x([`onboard-not-listed`,`no-active-detection`]),yM=x([`always`,`when-confirmed`,`never`]),bM=x([`provider-not-split`]),xM=f({detected:C(),atMs:a()}),SM=h(`state`,[f({state:g(`not-configured`),cameraLevel:xM.optional()}),f({state:g(`unreadable`),reason:u(),cameraLevel:xM.optional()}),f({state:g(`configured`),cameraLevel:xM.optional(),sensors:S(_M).readonly(),cameraMotion:yM.optional(),notForwarded:vM.optional(),notEnforced:bM.optional()})]),CM=Object.freeze({state:`unreadable`,reason:`camera sensor mappings not loaded`}),wM=[`owner-not-ready`,`store-read-failed`,`three-way-read-unavailable`,`invalid-stored`,`not-cluster-scoped`],TM=[{stepId:`face-embedding`,label:`Face recognition model`,defaultModelId:`auraface-r100`,indexName:`the enrolled face gallery`,options:[{id:`auraface-r100`,label:`AuraFace R100`}]},{stepId:`clip-embedding`,label:`Semantic search model`,defaultModelId:`siglip2-b16-224`,indexName:`the object semantic-search index`,options:[{id:`siglip2-b16-224`,label:`SigLIP2 B/16 (Apache-2.0)`}]}],EM=`cluster-step-models`;function DM(e){return`clusterModel:${e}`}function OM(e){return TM.some(t=>t.stepId===e)}var kM=Object.freeze(Object.fromEntries(TM.map(e=>[e.stepId,e.defaultModelId])));function AM(e){return e==null||e===``?{kind:`absent`}:typeof e==`string`?{kind:`chosen`,modelId:e}:{kind:`invalid`,value:e}}function jM(e){let t=[];for(let n of TM){let r=AM(e[DM(n.stepId)]);r.kind===`invalid`&&t.push({stepId:n.stepId,value:r.value})}return t}function MM(e){let t={};for(let n of TM){let r=AM(e[DM(n.stepId)]);t[n.stepId]=r.kind===`chosen`?r.modelId:n.defaultModelId}return t}function NM(e){return typeof e==`object`&&!!e&&`key`in e}function PM(e){return e===null?kM:MM(LM(e,IM()))}function FM(e){return e===null?[]:jM(LM(e,IM()))}function IM(){return new Set(TM.map(e=>DM(e.stepId)))}function LM(e,t){let n={};for(let r of e.sections)for(let e of r.fields)!NM(e)||typeof e.key!=`string`||t.has(e.key)&&(n[e.key]=e.value);return n}function RM(e,t){let n=TM.find(t=>t.stepId===e);if(n===void 0)return null;let r=t[e];return r!==void 0&&r!==``?r:n.defaultModelId}var zM=[{stepId:`face-embedding`,key:`minLandmarkFaceSize`,label:`Min face size to embed (detection-frame px)`,description:`Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.`,type:`slider`,min:0,max:64,step:2,default:24}];function BM(e,t){return`clusterStepSetting:${e}:${t}`}function VM(e){return zM.filter(t=>t.stepId===e)}var HM=a().finite();function UM(e){let t={};for(let n of zM){let r=HM.safeParse(e[BM(n.stepId,n.key)]),i=r.success?r.data:n.default,a=t[n.stepId]??{};t[n.stepId]={...a,[n.key]:i}}return t}var WM=UM({});function GM(e){return e===null?WM:UM(LM(e,new Set(zM.map(e=>BM(e.stepId,e.key)))))}function KM(e,t,n){let r=n[e];return r===void 0||Object.keys(r).length===0?t===void 0?void 0:{...t}:t===void 0?{...r}:{...t,...r}}var qM=x([`new`,`entered`,`left`,`moving`,`idle`]),JM=x([`motion`,`object`,`audio`]),YM=h(`kind`,[wk,Tk]),XM=x([`motion`,`audio`,`person`,`vehicle`,`animal`,`door`,`pir`,`smoke`,`water`,`button`,`package`,`generic`]),ZM=x([`motion`,`audio`,`detection`,`sensor`,`control`,`custom`,`package`]),QM=x([`macro`,`sub`]),$M=f({kind:u(),labelKey:u(),label:u(),color:u(),iconId:u(),icon:XM,category:ZM,parentKind:u().nullable(),level:QM,source:f({capName:u(),deviceId:a()})}),eN=f({deviceId:a(),kinds:S($M).readonly()}),tN=f({id:u(),deviceId:a(),sourceDeviceId:a(),kind:u(),value:y(u(),s()).nullable(),timestamp:a()}),nN=f({x:a(),y:a(),timestamp:a(),bbox:ag,source:x([`frame`,`recovery`]).optional(),score:a().optional()}),rN=f({timestamp:a(),position:nN,mediaId:a().int()}),iN=f({minX:a(),minY:a(),maxX:a(),maxY:a()}),aN=x([`full`,`slim`]),oN=f({label:u(),peakScore:a(),count:a(),firstAt:a(),lastAt:a()}),sN=x([`pipeline`,`onboard`,`sensor`,`audio`]),cN=x([`none`,`staging`,`trained`]),lN={markForTrain:C().optional(),debug:C().optional(),debugNote:u().max(500).optional(),favourited:C().optional()},uN={retrainStatus:cN.optional()},dN=f(lN),fN=f({trackId:u(),markForTrain:C(),debug:C(),debugNote:u(),favourited:C(),retrainStatus:cN}),pN=p([g(1),g(2)]),mN=f({stepId:u(),modelId:u().optional(),decidedAt:a(),identityId:u().optional()}),hN={label:u().optional(),labelScore:a().optional(),labelMeta:mN.optional(),subLabel:u().optional(),subLabelScore:a().optional(),subLabelMeta:mN.optional()},gN=f({deviceId:a(),tracks:a().int(),files:a().int(),bytes:a().int()}),_N=f({generatedAt:a(),trackCount:a().int(),fileCount:a().int(),byteCount:a().int(),truncated:C(),devices:S(gN).readonly()}),vN=f({trackId:u(),deviceId:a(),className:u(),...hN,producingDeviceName:u().optional(),source:sN.optional(),firstSeen:a(),lastSeen:a(),positions:S(nN).readonly(),snapshots:S(rN).readonly(),zonesVisited:S(u()).readonly(),zoneNames:S(u()).readonly().optional(),classes:S(u()).readonly().optional(),totalDistance:a(),state:qM,active:C(),importance:a().optional(),bestEventId:u().optional(),importanceReason:u().optional(),audioLabels:S(oN).readonly().optional(),envelope:iN.optional(),hasFace:C().optional(),hasEmbeddedFace:C().optional(),hasRider:C().optional(),previewMissReason:u().optional(),modelId:u().optional(),frameWidth:a().optional(),frameHeight:a().optional(),...lN,...uN}),yN={id:a().int(),deviceId:a(),timestamp:a()},bN=f({...yN,kind:g(`motion`),regionCount:a(),regions:S(f({bbox:ag,pixelCount:a(),intensity:a()})).readonly().optional(),frameWidth:a().optional(),frameHeight:a().optional(),mediaUrl:u().optional(),triggeredBy:oM.optional(),durationMs:a().nullable().optional(),edges:S(a()).readonly().optional()}),xN=x([`pipeline`,`onboard`]),SN=x([`enter`,`exit`]),CN=f({direction:SN,zoneId:u(),zoneName:u().optional()}),wN=f({zoneId:u(),zoneName:u().optional(),overlapPct:a()}),TN=f({...yN,kind:g(`object`),source:xN.optional(),frameId:u().optional(),idempotencyKey:u().optional(),trackId:u().optional(),className:u(),...hN,confidence:a().optional(),bbox:ag.optional(),zones:S(u()).readonly().optional(),zoneOverlaps:S(wN).readonly().optional(),spawnRefused:u().optional(),state:qM.optional(),zoneCrossing:CN.optional(),frameWidth:a().optional(),frameHeight:a().optional(),mediaId:a().int().optional(),keyFrameMediaId:a().int().optional(),mediaUrl:u().optional(),observedAt:a().optional(),importance:a().optional()}),EN=f({...yN,kind:g(`audio`),rms:a(),dbfs:a(),classification:f({className:u(),originalClass:u().optional(),score:a()}).optional(),classifyOutcome:dg.optional(),mediaUrl:u().optional()}),DN=x([`crop`,`thumbnail`,`snapshot`,`firstFrame`,`lastFrame`,`fullFrame`,`fullFrameBoxed`,`faceCrop`,`plateCrop`,`keyFrame`,`keyFrameSmall`,`thumbnailSmall`,`confirmationCrop`,`debugCrop`,`sceneFrame`,`lastSceneFrame`]),ON=f({mediaId:a().int(),kind:DN,sizeBytes:a(),timestamp:a()}),kN=ON.extend({url:u(),base64:u()}),AN=kN.omit({base64:!0}),jN=x([`person`,`vehicle`,`animal`,`package`,`face`,`plate`]),MN=x([`subject`,`model_error`]),NN=x([`operator`,`assist`,`pipeline`,`llm`]),PN=f({x:a(),y:a(),w:a(),h:a()}),FN=f({source:NN,ref:u().min(1),bbox:PN,macroClass:jN,label:u().optional(),score:a().optional(),modelId:u().optional()}),IN=f({ref:u().min(1),snapshot:FN}),LN=x(Go),RN=f({ref:u(),savedId:u().optional(),status:LN,approximate:C(),origin:FN.optional(),macroClass:jN.optional(),label:u().optional(),iou:a().optional()}),zN=f({boxes:S(RN).readonly(),summary:f({counts:y(LN,a().int()),total:a().int(),changed:a().int(),approximate:C()})}),BN=f({id:u(),trackId:u().optional(),deviceId:a(),mediaKey:u(),bbox:PN,macroClass:jN,label:u().optional(),subLabel:u().optional(),kind:MN,source:NN,assistModelId:u().optional(),assistScore:a().optional(),origin:FN.nullable().optional(),exportedInBatch:u().optional(),createdAt:a()}),VN=BN.omit({id:!0,trackId:!0,deviceId:!0,mediaKey:!0,createdAt:!0,exportedInBatch:!0}),HN=f({trackId:u(),deviceId:a(),className:u(),label:u().optional(),firstSeen:a(),lastSeen:a(),frameCount:a().int(),annotationCount:a().int()}),UN=f({mediaId:a().int(),kind:DN,timestamp:a(),sizeBytes:a().int(),copied:C()}),WN=f({bbox:PN,macroClass:jN,label:u().optional(),subLabel:u().optional(),score:a().optional(),modelId:u().optional(),trackId:u(),basis:x([`subject-box`,`position`]),deltaMs:a()}),GN=x([`track`,`recording`]),KN=f({frameId:u(),deviceId:a(),origin:GN,trackId:u().optional(),sourceMediaId:a().int().optional(),epochMs:a().optional(),sourceKind:DN,sizeBytes:a().int(),width:a().int(),height:a().int(),copiedAt:a(),capturedAt:a().optional(),complete:C(),pipelineBoxes:S(WN).readonly().optional(),collectionIds:S(u()).readonly().optional(),revision:a().int().optional(),dismissed:S(IN).readonly().optional(),review:zN.optional(),imageUrl:u().optional(),thumbnailUrl:u().optional()}),qN=x([`source-missing`,`unreadable-image`,`write-failed`]),JN=f({copied:S(KN).readonly(),refused:S(f({sourceMediaId:a().int(),reason:qN})).readonly()}),YN=f({candidates:S(UN).readonly(),copies:S(KN).readonly(),autoPickMediaId:a().int().optional()}),XN=x([`unannotated`,`annotated`,`complete`]),ZN=f({workState:XN.optional(),deviceIds:S(a()).max(500).optional(),collectionId:u().optional(),classes:S(jN).optional(),page:a().int().positive().default(1),pageSize:a().int().positive().max(100).default(50)}),QN=KN.extend({workState:XN}),$N=f({frames:S(QN).readonly(),total:a().int().nonnegative(),page:a().int().positive(),pageSize:a().int().positive()}),eP=f({deviceId:a(),unannotated:a().int().nonnegative(),annotated:a().int().nonnegative(),complete:a().int().nonnegative(),pctOfCorpus:a().min(0).max(1).nullable()}),tP=f({total:a().int().nonnegative(),unannotated:a().int().nonnegative(),annotated:a().int().nonnegative(),complete:a().int().nonnegative(),cameras:S(eP).readonly()}),nP=f({deviceIds:S(a()).optional(),frameIds:S(u()).max(2e4).optional(),collectionIds:S(u()).max(200).optional(),collectionId:u().optional(),batchId:u().optional(),completeOnly:C().optional(),workState:XN.optional(),classes:S(jN).optional()}),rP=x([`frames`,`crops`]),iP=f({kind:g(`http`),method:x([`PUT`,`POST`]),url:u().url(),headers:y(u(),u()).optional()}),aP=f({batchId:u(),frames:a().int(),crops:a().int(),annotations:a().int(),missing:a().int(),bytes:a().int(),sha256:u(),status:a().int()}),oP=h(`kind`,[f({kind:g(`package`),zone:PN.optional()}),f({kind:g(`objects`),modelId:u(),minScore:a().optional()})]),sP=h(`kind`,[f({kind:g(`proposed`),modelId:u(),stepId:u(),minScore:a(),proposals:S(VN).readonly(),belowThreshold:a().int()}),f({kind:g(`refused`),reason:u(),detail:u().optional()})]),cP=f({id:u(),name:u(),createdAt:a(),frameCount:a().int()}),lP=h(`kind`,[f({kind:g(`created`),collection:cP}),f({kind:g(`refused`),reason:x([`empty-name`,`duplicate-name`])})]),uP=h(`kind`,[f({kind:g(`renamed`),collection:cP}),f({kind:g(`refused`),reason:x([`empty-name`,`duplicate-name`,`unknown-collection`])})]),dP=h(`kind`,[f({kind:g(`added`),collectionId:u(),frame:KN,reused:C()}),f({kind:g(`refused`),reason:x([`unknown-collection`,`still-unavailable`,`still-busy`,`unreadable-image`,`write-failed`]),detail:u().optional()})]),fP=f({id:u(),name:u(),model:u(),kind:u(),leavesHouse:C()}),pP=VN.extend({reason:u()}),mP=f({ref:u(),verdict:x([`confirmed`,`wrong-class`,`not-an-object`,`uncertain`]),suggestedClass:jN.optional(),reason:u()}),hP=h(`kind`,[f({kind:g(`proposed`),profileId:u(),model:u(),leftHouse:C(),proposals:S(pP).readonly(),reviews:S(mP).readonly(),rejected:a().int()}),f({kind:g(`refused`),reason:x([`unknown-frame`,`unreadable-frame`,`unknown-profile`,`profile-disabled`,`no-vision`,`cloud-not-confirmed`,`llm-error`,`malformed-answer`]),detail:u().optional()})]),gP=f({deviceIds:S(a()).readonly().optional(),collectionIds:S(u()).max(200).readonly().optional(),frameIds:S(u()).max(2e4).readonly().optional()}),_P=f({frames:a().int(),completeFrames:a().int(),completeness:a(),subjects:a().int(),modelErrors:a().int(),hardNegatives:a().int(),cells:S(f({macroClass:u(),deviceId:a(),lighting:x([`day`,`night`,`unknown`]),subjects:a().int(),frames:a().int()})).readonly(),cameras:S(f({deviceId:a(),frames:a().int(),completeFrames:a().int()})).readonly()}),vP=f({id:u(),name:u(),createdAt:a(),selection:gP,layout:rP,completeOnly:C(),frameCount:a().int(),annotationHash:u(),manifestSchema:u(),stats:_P}),yP=f({collectionIds:S(u()).min(1),workState:x([`complete`,`annotated_or_complete`,`any_annotated`]).default(`complete`)}),bP=h(`kind`,[f({kind:g(`resolved`),frameIds:S(u()).max(2e4).readonly(),stats:_P,annotationHash:u(),layout:rP}),f({kind:g(`refused`),reason:x([`unknown-collection`,`no-frames`]),detail:u()})]),xP=f({trackId:u(),retrainStatus:cN,changed:C(),reason:x([`unknown-track`,`no-frames-copied`,`not-staging`,`not-trained`,`unchanged`]).optional()}),SP=1e3,CP=5e3,wP=f({deviceId:a(),since:a().optional(),until:a().optional(),limit:a().int().min(1).max(CP).default(SP),projection:x([`full`,`slim`]).optional()}),TP=wP.extend({classFilter:u().optional()}),EP=f({deviceIds:S(a()),since:a().optional(),until:a().optional(),limit:a().int().min(1).max(1e3).default(200),cursor:u().optional(),projection:aN.optional(),includeStationary:C().optional(),classes:S(u()).optional(),excludeSources:S(sN).optional()}),DP=f({tracks:S(vN).readonly(),nextCursor:u().nullable()}),OP=50,kP=200,AP=f({deviceId:a(),since:a(),until:a(),limit:a().int().min(1).max(kP).default(OP),minImportance:a().min(0).max(1).optional(),classFilter:u().optional()}),jP=f({id:u(),trackId:u(),timestamp:a(),className:u(),...hN,importance:a(),bestEventId:u(),windowMs:a().optional(),audioLabels:S(oN).readonly().optional(),...lN,...uN}),MP=f({deviceIds:S(a()).min(1).max(200),since:a(),until:a(),limit:a().int().min(1).max(kP).default(OP),minImportance:a().min(0).max(1).optional(),classFilter:u().optional()}),NP=f({deviceId:a(),events:S(jP).readonly()}),PP=f({bucketStart:a(),motion:a().int(),object:a().int(),audio:a().int(),audioDbfs:a().optional()}),FP=f({deviceId:a(),read:x([`read`,`unreadable`]),buckets:S(PP).readonly()}),IP=f({trackId:u(),className:u(),confidence:a(),bbox:ag,zones:S(u()).readonly(),state:qM}),LP=o({id:u(),kind:x([`first-level`,`detail`]),macroClass:u(),score:a(),bbox:f({x:a(),y:a(),width:a(),height:a()}),labels:S(o({label:u(),score:a()})).readonly(),parentId:u().optional()}),RP=TN.extend({score:a()}),zP=f({text:u(),deviceId:a().optional(),since:a().optional(),until:a().optional(),classFilter:u().optional(),limit:a().default(50),minScore:a().min(0).max(1).optional(),strictness:_d.optional(),modelId:u().min(1).optional()}),BP=f({tracks:a().int(),events:a().int(),media:a().int(),faces:a().int(),plates:a().int(),embeddings:a().int()}),VP=f({mediaDropped:a().int(),tracks:a().int(),events:a().int()}),HP=f({deviceId:a(),rows:a().int(),bytes:a().int()}),UP=f({totalRows:a().int(),totalBytes:a().int(),devices:S(HP).readonly()}),WP=f({kind:DN,rows:a().int(),bytes:a().int()}),GP=f({totalRows:a().int(),totalBytes:a().int(),kinds:S(WP).readonly(),unaccountedRows:a().int(),unaccountedBytes:a().int()}),KP=f({motion:a().int(),object:a().int(),audio:a().int()}),qP=f({deviceId:a().optional(),since:a().optional(),until:a().optional(),maxTracks:a().int().positive().optional(),executeOnNodeId:u().optional(),pacingMs:a().int().nonnegative().optional(),force:C().optional()}),JP=f({deleted:a(),failedIndexes:S(u()).optional()}),YP=x([`stores-unavailable`,...wM,`method-unavailable`,`read-failed`,`reads-disagree`,`not-a-clip-model`,`force-requires-max-tracks`]),XP=f({started:C(),alreadyRunning:C(),refusal:YP.optional(),modelId:u().optional(),index:u().optional()}),ZP=f({running:C(),scanned:a(),rebuilt:a(),missingKeyFrame:a(),missingEvent:a(),missingBbox:a(),boxSource:f({subjectBox:a(),positions:a(),event:a(),refused:a()}),alreadyInSpace:a(),force:C().nullable(),forcedInSpace:a(),notRunnable:a(),noCapableNode:a(),failed:a(),complete:C().nullable(),startedAtMs:a().nullable(),finishedAtMs:a().nullable(),error:u().nullable(),modelId:u().nullable(),index:u().nullable()}),QP=f({started:C(),alreadyRunning:C()}),$P=f({mode:x([`report`,`reclaim`]).default(`report`),scopes:S(x([`motion-still`,`track-filmstrip`])).min(1).optional(),deviceIds:S(a().int()).min(1).optional(),restart:C().optional(),pageSize:a().int().min(50).max(5e3).optional(),maxRowsPerDevice:a().int().min(1).max(5e5).optional(),maxReclaimPerDevice:a().int().min(1).max(5e5).optional(),maxBytesPerRun:a().int().min(1).optional(),budgetMinutes:a().int().min(1).max(720).optional(),throttleBytesPerSec:a().int().min(64*1024).optional(),graceMinutes:a().int().min(1).max(10080).optional()}),eF=f({running:C(),mode:x([`report`,`reclaim`]).nullable(),totalExamined:a(),totalEligible:a(),totalReclaimed:a(),totalBytesReclaimed:a(),totalRefused:a(),devicesDone:a(),complete:C().nullable(),startedAtMs:a().nullable(),finishedAtMs:a().nullable(),error:u().nullable()}),tF=x([`motion`,`audio-dbfs`,`battery`,`occupancy`]);function nF(e,t){let n=e??``;return t===void 0?n:`${n}|${t}`}function rF(e){let t=e.indexOf(`|`);return t<0?{zoneId:e}:{zoneId:e.slice(0,t),className:e.slice(t+1)}}var iF=f({scope:u(),bucketStart:a().int(),samples:a().int().nonnegative(),sum:a(),min:a(),max:a()}),aF={name:`pipeline-analytics`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],exposesDeviceSettings:!0,methods:{getActiveTracks:L(f({deviceId:a()}),S(vN).readonly()),getTrack:L(f({deviceId:a(),trackId:u()}),vN.nullable()),listTracks:L(f({deviceId:a(),since:a().optional(),until:a().optional(),limit:a().optional(),zone:YM.optional(),projection:aN.optional(),includeStationary:C().optional(),classes:S(u()).optional(),excludeSources:S(sN).optional()}),S(vN).readonly()),listRecentTracks:L(EP,DP),clearTracks:L(f({deviceId:a()}),v(),{kind:`mutation`,auth:`admin`}),getMotionEvents:L(wP,S(bN).readonly()),getObjectEvents:L(TP,S(TN).readonly()),getAudioEvents:L(wP,S(EN).readonly()),listEventKinds:L(f({deviceId:a()}),S($M).readonly()),listEventKindsBatch:L(f({deviceIds:S(a()).min(1).max(200)}),S(eN).readonly()),getSensorEvents:L(f({deviceId:a(),since:a().optional(),until:a().optional(),kinds:S(u()).optional(),limit:a().int().min(1).max(CP).default(SP)}),S(tN).readonly()),getKeyEvents:L(AP,S(jP).readonly()),getKeyEventsBatch:L(MP,S(NP).readonly()),readLongTermSeries:L(f({deviceId:a(),series:tF,scope:u().optional(),from:a(),to:a(),limit:a().int().positive().optional()}),S(iF).readonly()),getEventDensity:L(f({deviceId:a(),since:a(),until:a(),bucketMs:a().int().positive()}),S(PP).readonly()),getEventDensityBatch:L(f({deviceIds:S(a()).min(1).max(200),since:a(),until:a(),bucketMs:a().int().positive()}),S(FP).readonly()),pruneEventsBefore:L(f({deviceId:a(),cutoffMs:a()}),f({motion:a().int(),object:a().int(),audio:a().int()}),{kind:`mutation`,auth:`admin`}),pruneTracksBefore:L(f({deviceId:a(),cutoffMs:a()}),BP,{kind:`mutation`,auth:`admin`}),wipeAllAnalytics:L(f({deviceId:a()}),BP,{kind:`mutation`,auth:`admin`}),reconcileFromDisk:L(f({deviceId:a()}),VP,{kind:`mutation`,auth:`admin`}),deleteTracks:L(f({deviceId:a(),trackIds:S(u()).min(1)}),f({deleted:a().int(),failed:S(u()).readonly(),sparedMediaIds:S(a().int()).readonly().optional()}),{kind:`mutation`,auth:`admin`}),setTrackFlags:L(f({deviceId:a(),trackId:u(),flags:dN}),fN,{kind:`mutation`}),listArchivedDebugNotes:L(fs,S(ds).readonly(),{kind:`query`}),setTrackRelation:L(bs,vs,{kind:`mutation`}),clearTrackRelation:L(xs,Ss,{kind:`mutation`}),setTrackPurity:L(Cs,ws,{kind:`mutation`}),listTrackRelations:L(Ts,Es,{kind:`query`}),listBirthDecisions:L(ls,S(cs).readonly(),{kind:`query`}),getEventStoreFootprint:L(f({}),UP,{kind:`query`,auth:`admin`}),getEventMediaFootprintByKind:L(f({deviceId:a().int().optional()}),GP,{kind:`query`,auth:`admin`}),pruneEvents:L(f({olderThanMs:a(),reason:Ws.optional()}),KP,{kind:`mutation`,auth:`admin`}),deleteDeviceEvents:L(f({deviceId:a()}),KP,{kind:`mutation`,auth:`admin`}),pauseForStorageMigration:L(qc,f({paused:g(!0)}),{kind:`mutation`,auth:`admin`}),resumeForStorageMigration:L(qc,f({resumed:g(!0)}),{kind:`mutation`,auth:`admin`}),refreshStorageLocationsForMigration:L(qc,f({refreshed:g(!0)}),{kind:`mutation`,auth:`admin`}),startStorageMigrationMove:L($c,f({jobId:u()}),{kind:`mutation`,auth:`admin`}),getStorageMigrationMoveStatus:L(f({jobId:u()}),Wc.nullable(),{auth:`admin`}),cancelStorageMigrationMove:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),relocateMedia:L(Xc,f({jobId:u()}),{kind:`mutation`,auth:`admin`}),countUnstampedEventMedia:L(f({}),Qc,{auth:`admin`}),countRelocatableMedia:L(El,Tl,{kind:`query`,auth:`admin`}),listRelocateMediaJobs:L(f({}),S(Wc).readonly(),{kind:`query`,auth:`admin`}),cancelRelocateMedia:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),listOpsLog:L(Ks,S(Gs).readonly(),{kind:`query`,auth:`admin`}),reclaimDebugMedia:L($P,QP,{kind:`mutation`,auth:`admin`}),getMediaReclaimStatus:L(f({}),eF,{kind:`query`,auth:`admin`}),getTrainingExportSummary:L(f({deviceIds:S(a()).optional()}),_N,{kind:`query`,auth:`admin`}),getTrainingExportUrl:L(f({deviceIds:S(a()).optional()}),f({url:u()}),{kind:`query`,auth:`admin`}),listRetrainStaging:L(f({deviceIds:S(a()).optional(),limit:a().int().min(1).max(500).optional()}),S(HN).readonly(),{kind:`query`,auth:`admin`}),listRetrainCorpusPage:L(ZN,$N,{kind:`query`,auth:`admin`}),getRetrainCorpusKpi:L(f({}),tP,{kind:`query`,auth:`admin`}),listRetrainFrames:L(f({trackId:u()}),YN,{kind:`query`,auth:`admin`}),selectRetrainFrames:L(f({deviceId:a(),trackId:u(),mediaIds:S(a().int()).min(1)}),JN,{kind:`mutation`,auth:`admin`}),deselectRetrainFrame:L(f({deviceId:a(),trackId:u().optional(),frameId:u()}),f({removed:C(),removedAnnotations:a().int()}),{kind:`mutation`,auth:`admin`}),getRetrainFrameImage:L(f({frameId:u()}),f({base64:u(),width:a().int(),height:a().int()}),{kind:`query`,auth:`admin`}),proposeRetrainAnnotations:L(f({deviceId:a(),trackId:u().optional(),frameId:u(),subject:oP,nodeId:u().optional()}),sP,{kind:`mutation`,auth:`admin`}),listRetrainAnnotations:L(f({trackId:u().optional(),frameIds:S(u()).max(2e3).optional()}),S(BN).readonly(),{kind:`query`,auth:`admin`}),saveRetrainAnnotations:L(f({deviceId:a(),trackId:u().optional(),frameId:u(),annotations:S(VN),expectedRevision:a().int().optional(),dismissed:S(IN).optional()}),S(BN).readonly(),{kind:`mutation`,auth:`admin`}),backfillRetrainOrigins:L(f({deviceId:a(),trackId:u().optional(),frameId:u(),expectedRevision:a().int().optional(),origins:S(f({annotationId:u(),origin:FN})).min(1).max(500)}),f({updated:a().int(),skipped:a().int(),revision:a().int()}),{kind:`mutation`,auth:`admin`}),completeRetrainTrack:L(f({deviceId:a(),trackId:u()}),xP,{kind:`mutation`,auth:`admin`}),restageRetrainTrack:L(f({deviceId:a(),trackId:u()}),xP,{kind:`mutation`,auth:`admin`}),getRetrainExportUrl:L(nP.extend({layout:rP.optional()}),f({url:u()}),{kind:`query`,auth:`admin`}),setRetrainFrameComplete:L(f({deviceId:a(),trackId:u().optional(),frameId:u(),complete:C()}),KN,{kind:`mutation`,auth:`admin`}),writeRetrainArchive:L(f({filter:nP,layout:rP,target:iP}),aP,{kind:`mutation`,auth:`admin`,timeoutMs:60*6e4}),offerRetrainArchive:L(f({filter:nP,layout:rP}),f({ticket:bi,frames:a().int(),annotations:a().int()}),{kind:`mutation`,auth:`admin`,timeoutMs:12e4}),listRetrainAssistProfiles:L(f({}),S(fP).readonly(),{kind:`query`,auth:`admin`}),proposeRetrainAnnotationsWithLlm:L(f({deviceId:a(),trackId:u().optional(),frameId:u(),profileId:u(),classes:S(jN).min(1),boxes:S(f({ref:u(),bbox:PN,macroClass:jN,label:u().optional()})).max(50),allowCloud:C()}),hP,{kind:`mutation`,auth:`admin`,timeoutMs:18e4}),createRetrainCollection:L(f({name:u().max(120)}),lP,{kind:`mutation`,auth:`admin`}),listRetrainCollections:L(f({}),S(cP).readonly(),{kind:`query`,auth:`admin`}),resolveRetrainTrainingCorpus:L(yP,bP,{kind:`query`,auth:`admin`,timeoutMs:6e4}),renameRetrainCollection:L(f({id:u(),name:u().max(120)}),uP,{kind:`mutation`,auth:`admin`}),deleteRetrainCollection:L(f({id:u()}),f({deleted:C(),removedFrames:a().int()}),{kind:`mutation`,auth:`admin`}),addRetrainFrameFromRecording:L(f({collectionId:u(),deviceId:a(),epochMs:a()}),dP,{kind:`mutation`,auth:`admin`,timeoutMs:6e4}),addRetrainFramesToCollection:L(f({collectionId:u(),frameIds:S(u()).min(1).max(500)}),f({added:a().int(),alreadyMember:a().int(),unknownFrameIds:S(u()).readonly()}),{kind:`mutation`,auth:`admin`}),removeRetrainFrameFromCollection:L(f({collectionId:u(),frameId:u()}),f({removed:C(),deletedFrame:C()}),{kind:`mutation`,auth:`admin`}),listRetrainCollectionFrames:L(f({collectionId:u()}),S(KN).readonly(),{kind:`query`,auth:`admin`}),getEventMedia:L(f({ownerType:Me,eventId:a().int(),kind:DN.optional(),deviceId:a()}),S(kN).readonly()),getTrackMedia:L(f({trackId:u(),kinds:S(DN).optional(),deviceId:a()}),S(kN).readonly()),listTrackMedia:L(f({trackId:u(),deviceId:a()}),S(AN).readonly()),listEventMedia:L(f({ownerType:Me,eventId:a().int(),deviceId:a()}),S(AN).readonly()),ownersWithMedia:L(f({deviceId:a(),ownerKind:Pe,ownerIds:S(u()).max(5e3)}),S(u()).readonly()),searchObjectEvents:L(zP,S(RP).readonly(),{caller:`required`}),wipeObjectEmbeddings:L(f({}),JP,{kind:`mutation`,auth:`admin`}),rebuildObjectEmbeddings:L(qP,XP,{kind:`mutation`,auth:`admin`}),getObjectEmbeddingRebuildStatus:L(f({}),ZP)},events:{onFrameTracked:{data:f({deviceId:a(),timestamp:a(),frameWidth:a(),frameHeight:a(),detections:S(LP).readonly()})},onTrackStarted:{data:f({deviceId:a(),trackId:u(),className:u()})},onTrackEnded:{data:f({deviceId:a(),trackId:u(),className:u(),durationMs:a()})},onDetectionEvent:{data:f({deviceId:a(),kind:JM,eventId:u(),timestamp:a()})}}},oF=f({stepId:u(),modelId:u(),detections:S(f({bbox:d([a(),a(),a(),a()]),score:a(),landmarks:S(f({x:a(),y:a()})).optional()})).min(1)}),sF=f({handle:oc,cropFrameSpace:f({x:a(),y:a(),w:a(),h:a()})});f({crop:f({left:a(),top:a(),width:a().positive(),height:a().positive()}).optional(),content:f({width:a().int().positive(),height:a().int().positive()}),fit:x([`stretch`,`contain`]),format:x([`rgb`,`gray`,`jpeg`])});var cF=f({registryId:u().min(1),id:u().min(1),width:a().int().positive(),height:a().int().positive(),format:x([`rgb`,`gray`]),timestamp:a(),capturedAt:a().optional()}),lF=x([`onnx`,`coreml`,`openvino`,`tflite`,`pt`,`gguf`]),uF=x([`detector`,`cropper`,`classifier`,`refiner`,`audio-classifier`]),dF=f({runtime:g(`python`),backend:u(),format:lF,device:u().optional()}),fF=f({deviceKey:u().nullable(),runtime:u(),batchMode:u(),windowMs:a(),maxBatchSize:a(),concurrency:a(),numWorkers:a()}),pF=f({engine:dF,devices:S(f({id:u(),label:u(),description:u().optional()})).readonly(),defaultDevice:u()}),mF=he(()=>f({addonId:u(),addonName:u(),slot:uF,inputClasses:S(u()).readonly(),outputClasses:S(u()).readonly(),enabled:C(),modelId:u(),children:S(mF).readonly(),group:u().optional(),settings:y(u(),s()).optional()})),hF=f({id:u(),name:u(),formats:y(u(),nf),group:of.optional(),legacy:C().optional(),provider:cf.optional(),defaultConfidence:a().optional(),suppliesSteps:S(ff).readonly().optional()}),gF=_(),_F=f({id:u(),name:u(),slot:uF,inputClasses:S(u()).readonly(),outputClasses:S(u()).readonly(),childSlots:S(uF).readonly(),models:S(hF).readonly(),defaultModelId:u(),defaultModelIdByFormat:y(u(),u()).optional(),enabledByDefault:C().optional(),backfillIntoExistingOverrides:C().optional(),defaultConfidence:a(),group:u().optional(),configSchema:S(gF).readonly().optional()}),vF=f({id:uF,label:u(),priority:a(),parentSlot:uF.nullable(),addons:S(_F).readonly()}),yF=f({availableEngines:S(pF).readonly(),selectedEngine:dF,slots:S(vF).readonly()}),bF=f({runtimeId:x([`onnx`,`openvino`,`coreml`,`edgetpu`]).nullable(),device:u().nullable(),state:x([`idle`,`installing`,`verifying`,`ready`,`failed`]),progress:a().optional(),error:u().optional(),nextRetryAt:a().optional(),configIssues:S(u()).optional()}),xF=he(()=>f({addonId:u(),modelId:u().optional(),enabled:C().default(!0),children:S(xF).optional(),settings:y(u(),s()).optional(),jumpDeviceKey:u().optional()})),SF=f({addonId:u(),chosen:u(),running:u(),format:u()}),CF=f({addonId:u(),kind:x([`unknown-addon`,`no-format-build`,`unknown-device`]),detail:u()}),wF=f({ok:C(),issues:S(CF).readonly(),substitutions:S(SF).readonly(),format:u()}),TF=f({filename:u(),stepIds:S(u()).readonly().optional()}),EF=f({base64:u(),filename:u()}),DF=f({filename:u(),sizeKb:a()}),OF=f({base64:u()}),kF=f({id:u(),name:u(),description:u(),available:C(),rawLabels:S(u()).readonly().optional()}),AF=f({activeBackend:u(),availableBackends:S(kF).readonly(),sampleRate:a(),chunkDurationMs:a()}),jF=f({filePath:u(),sizeMB:a(),durationMs:a()}),MF=f({success:C(),error:u().optional(),frame:_().optional()}),NF=_(),PF=_(),FF=_(),IF=_(),LF=_(),RF=_(),zF={name:`pipeline-executor`,scope:`system`,mode:`singleton`,methods:{getAvailableEngines:L(v(),S(dF)),getSelectedEngine:L(v(),dF),getDefaultSteps:L(dF,S(mF)),getEngineProvisioning:L(f({nodeId:u()}),bF),getVideoPipelineSteps:L(v(),y(u(),f({modelId:u(),settings:y(u(),s()).readonly()}))),setVideoPipelineSteps:L(f({steps:y(u(),f({modelId:u(),settings:y(u(),s()).readonly()}))}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),clearDeviceOverrides:L(f({nodeId:u()}),f({success:g(!0),clearedDevices:a()}),{kind:`mutation`,auth:`admin`}),clearModelBoundDeviceOverrides:L(f({nodeId:u(),deviceIds:S(a()).readonly().optional(),dryRun:C()}),f({entries:S(f({deviceId:a(),keys:S(u()).readonly()})).readonly(),refused:S(f({deviceId:a(),reason:u()})).readonly()}),{kind:`mutation`,auth:`admin`}),getInferenceDeviceHealth:L(f({nodeId:u()}),f({unhealthy:S(f({deviceKey:u(),state:x([`failed`,`backoff`]),since:a(),deaths:a(),lastError:u()})).readonly()})),rearmInferenceDevice:L(f({nodeId:u(),deviceKey:u()}),f({rearmed:C()}),{kind:`mutation`,auth:`admin`}),getSchema:L(v(),yF),getGlobalSteps:L(v(),S(mF).readonly().nullable()),getGlobalPipelineConfig:L(v(),NF),getOrchestratorConfigSchema:L(v(),PF),validatePipeline:L(f({steps:S(xF),deviceKey:u().optional()}),wF),getCapabilities:L(v(),IF),getAddonModels:L(f({addonId:u()}),LF),downloadModel:L(f({addonId:u(),modelId:u(),format:lF}),jF,{kind:`mutation`}),deleteModel:L(f({addonId:u(),modelId:u(),format:lF}),f({success:g(!0)}),{kind:`mutation`}),runPipeline:L(f({steps:S(xF).min(1),frame:ig.optional(),frameRef:cF.optional(),frameHandle:oc.optional(),imageBase64:u().optional(),image:b(Uint8Array).optional(),referenceImage:u().optional(),deviceId:a().optional(),sessionId:u().optional(),plane:x([`full`,`frame`]).optional(),deviceKey:u().optional(),nativeCropRef:sF.optional(),replay:g(!0).optional(),suppliedRoot:oF.optional()}),RF,{kind:`mutation`}),runPipelineBatch:L(f({steps:S(xF).min(1),frames:S(ig).min(1).max(255),deviceId:a().optional(),sessionId:u().optional(),frameId:a().int().nonnegative().optional(),deviceKey:u().optional()}),f({results:S(RF).readonly()}),{kind:`mutation`}),cacheFrameInPool:L(f({data:b(Uint8Array),width:a().int().positive(),height:a().int().positive(),format:x([`rgb`,`bgr`,`gray`])}),f({frameId:a(),width:a(),height:a()}),{kind:`mutation`}),inferCached:L(f({stepId:u(),frameId:a().int(),modelId:u().min(1)}),y(u(),s()),{kind:`mutation`}),uncacheFrame:L(f({frameId:a().int()}),v(),{kind:`mutation`}),getEffectiveTuning:L(f({deviceKey:u().optional()}),fF),listLoadedEngines:L(v(),S(f({engineKey:u(),engine:dF,modelsLoaded:S(u()).readonly(),inUseByCameras:S(a()).readonly(),kind:x([`runtime`,`device-pool`]),poolPid:a().nullable(),idleMs:a().nullable(),idleTtlMs:a().nullable()})).readonly()),spinEngine:L(f({engine:dF}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),killEngine:L(f({engine:dF,force:C().optional()}),f({success:C(),reason:u().optional()}),{kind:`mutation`,auth:`admin`}),listReferenceImages:L(v(),S(TF).readonly()),getReferenceImage:L(f({filename:u()}),EF.nullable()),getReferenceAudioFiles:L(v(),S(DF).readonly()),getReferenceAudio:L(f({filename:u()}),OF.nullable()),getAudioCapabilities:L(v(),AF),runAudioTest:L(f({addonId:u(),modelId:u(),filename:u().optional(),settings:y(u(),s()).optional()}),MF,{kind:`mutation`}),getDetectionConfigSchema:L(v(),FF)}},BF=x(Qd),VF={min:1,max:8},HF=x([`intel-core-ultra`,`intel-n-series`,`apple-m-base`,`apple-m-pro`,`amd-phoenix`,`unknown`]),UF=x([`intel-npu`,`intel-igpu`,`amd-igpu`,`amd-npu`,`x86-cpu`,`arm-cpu`,`apple-ane`,`coral`]),WF=h(`kind`,[f({kind:g(`capacity`),sessions:a(),minSessions:a()}),f({kind:g(`tie-faster`),over:u(),recallDelta:a()}),f({kind:g(`stepped-down`),from:u(),to:u(),limitedBy:u()}),f({kind:g(`no-fit-lightest`),sessions:a(),minSessions:a()}),f({kind:g(`derived-latency`),modelId:u()}),f({kind:g(`cpu-device`)}),f({kind:g(`coral-untouched`)}),f({kind:g(`device-disabled`)}),f({kind:g(`device-unavailable`)}),f({kind:g(`node-offline`)}),f({kind:g(`no-hardware-facts`)}),f({kind:g(`no-measured-data`),hardwareClass:HF}),f({kind:g(`no-family-build`),format:BF}),f({kind:g(`kept-custom-pin`),modelId:u(),deviceKey:u()})]),GF=x([`custom-pin`]),KF=h(`kind`,[f({kind:g(`table`)}),f({kind:g(`node-benchmark`),resultId:u(),measuredAtMs:a()})]),qF=f({modelId:u(),p50Ms:a(),fps:a(),measured:C(),source:KF.optional(),capacitySessions:a(),personRecall:a()}),JF=f({deviceKey:u(),accelerator:UF.nullable(),enabled:C(),available:C(),chosen:qF.nullable(),kept:GF.optional(),reasons:S(WF).readonly()}),YF=f({nodeId:u(),reachable:C(),hardwareClass:HF.nullable(),cpuModel:u().nullable(),skipped:C(),acceleratorModelId:u().nullable(),devices:S(JF).readonly(),reasons:S(WF).readonly()}),XF=f({stepId:u(),before:u().nullable(),after:u().nullable()}),ZF=f({nodeId:u(),deviceKey:u(),madeExplicit:C(),modelPins:S(XF).readonly(),thresholds:S(f({stepId:u(),keys:S(u()).readonly()})).readonly()}),QF=f({deviceId:a(),source:x([`step-override`,`wholesale`]),nodeId:u(),deviceKey:u().nullable(),stepId:u(),modelIdBefore:u().nullable(),keys:S(u()).readonly()}),$F=f({deviceId:a(),keys:S(u()).readonly()}),eI=h(`kind`,[f({kind:g(`detector-store-cluster-wide`),skippedNodes:S(u()).readonly()}),f({kind:g(`detector-store-unreadable`),error:u()}),f({kind:g(`coral-enabled`),nodeId:u(),deviceKey:u()}),f({kind:g(`custom-pin-kept`),nodeId:u(),deviceKey:u().nullable(),deviceId:a().nullable(),modelId:u()}),f({kind:g(`custom-registry-unreadable`),error:u()})]),tI=f({headroom:a().min(.3).max(.5).default(.4),minSessionsPerDevice:a().int().min(VF.min).max(VF.max).default(2)}),nI=f({planHash:u(),family:g(`yolov9`),headroom:a(),minSessionsPerDevice:a(),cameraFps:a(),generatedAt:a(),nodes:S(YF).readonly(),nodeChanges:S(ZF).readonly(),cameraClears:S(QF).readonly(),detectorStoreClears:S($F).readonly(),warnings:S(eI).readonly()}),rI=f({planHash:u(),headroom:a().min(.3).max(.5).default(.4),minSessionsPerDevice:a().int().min(VF.min).max(VF.max).default(2)}),iI=f({phase:x([`download`,`camera-overrides`,`detector-thresholds`,`node-models`,`redispatch`]),ok:C(),detail:u()}),aI=h(`kind`,[f({kind:g(`applied`),planHash:u(),phases:S(iI).readonly()}),f({kind:g(`aborted`),phases:S(iI).readonly()}),f({kind:g(`stale`),plan:nI}),f({kind:g(`refused`),reason:x([`apply-in-progress`])})]),oI=x([`least-loaded`,`share`]),sI=`share`,cI=`sessionPlacement`;function lI(e){let t=oI.safeParse(e);return t.success?t.data:sI}var uI=f({nodes:y(u(),a().positive()).default({}),devices:y(u(),y(u(),a().positive())).default({})}),dI=f({windowMs:a().int().min(6e4).max(1440*60*1e3).default(3600*1e3)}),fI=f({deviceKey:u(),sessionsNow:a(),sessionsStarted:a(),observedShare:a().nullable()}),pI=f({nodeId:u(),sessionsNow:a(),sessionsStarted:a(),observedShare:a().nullable(),peakSessions:a(),yieldsAway:a(),devices:S(fI).readonly()}),mI=f({deviceId:a(),deviceKey:u(),reason:x([`disabled`,`absent`])}),hI=f({policy:oI,windowMs:a(),observedForMs:a(),sessionsNow:a(),clusterPeakSessions:a(),nodes:S(pI).readonly(),stalePins:S(mI).readonly()}),gI=x([`hardware`,`benchmark`]),_I=x([`no-benchmark-results`,`partial-benchmark-results`]),vI=f({headroom:a().min(.3).max(.5).default(.4),source:gI.default(`hardware`)}),yI=f({deviceKey:u(),share:a(),modelId:u().nullable(),fps:a().nullable(),measured:C(),suggestedMaxSessions:a().nullable()}),bI=f({nodeId:u(),share:a().nullable(),capacitySessions:a(),devices:S(yI).readonly(),skippedReason:u().nullable(),capacitySource:gI.nullable(),capacityFallback:_I.nullable()}),xI=f({headroom:a(),source:gI,cameraFps:a(),minSessionsPerDevice:a(),nodes:S(bI).readonly()}),SI=x([`hardware`,`benchmark`,`manual`]),CI=`benchmark`;function wI(e){return e!==`manual`}var _ee=.4,vee=`shareSource`;function yee(e){if(e===`auto`)return`hardware`;let t=SI.safeParse(e);return t.success?t.data:CI}var TI=f({source:SI}),bee=f({nodes:y(u(),a()),devices:y(u(),y(u(),a()))}),EI=f({deviceKey:u(),eligible:C(),configuredPct:a(),effectivePct:a()}),DI=f({nodeId:u(),eligible:C(),configuredPct:a(),effectivePct:a(),capacitySource:gI.nullable(),capacityFallback:_I.nullable(),devices:S(EI).readonly()}),OI=f({source:SI,policy:oI,autoPending:C(),computedAt:a().nullable(),trigger:u().nullable(),nodes:S(DI).readonly(),nodeWeights:y(u(),a()),deviceWeights:y(u(),y(u(),a()))}),kI={fpsPerStream:10,budgetMinutes:45,minBudgetMinutes:10,maxBudgetMinutes:120,staleAfterDays:30,settleSec:5,measureSec:20,drainTimeoutSec:120,maxModelsPerDevice:6},AI=x([`device`,`pipeline`]),jI=f({deviceKey:u().min(1),modelIds:S(u().min(1)).min(1).max(kI.maxModelsPerDevice)}),MI=f({nodeId:u().min(1),devices:S(jI).min(1),phases:S(AI).min(1).default([`device`,`pipeline`]),steps:S(u().min(1)).default([]),fpsPerStream:a().int().min(1).max(30).default(kI.fpsPerStream),budgetMinutes:a().int().min(kI.minBudgetMinutes).max(kI.maxBudgetMinutes).default(kI.budgetMinutes),keepDownloadedModels:C().default(!1),acceptInsufficientHeadroom:C().default(!1)}),NI=x([`benchmark-active`,`node-offline`,`unknown-device`,`no-phase`,`insufficient-headroom`]),PI=f({kind:NI,detail:u(),overridable:C()}),FI=f({deviceId:a(),placedOnNode:C(),pinnedToNode:C()}),II=f({deviceId:a(),reason:g(`only-frame-source`)}),LI=f({nodeId:u(),online:C(),moving:S(FI).readonly(),staying:S(II).readonly(),estimatedDurationMs:a(),budgetMs:a(),phases:S(AI).readonly(),steps:S(u()).readonly(),devices:S(jI).readonly(),headroom:f({sessionsNow:a(),otherNodesCapacitySessions:a().nullable()}),refusals:S(PI).readonly(),canStart:C()}),RI=f({phase:x([`preparing`,`device`,`pipeline`,`cleanup`]),deviceKey:u().nullable(),modelId:u().nullable(),load:a().nullable(),cellsDone:a(),cellsTotal:a(),message:u()}),zI=x([`p95`,`drops`,`errors`,`stall`,`cpu`,`ram`,`none`]),BI=f({load:a(),pass:C(),p95Ms:a(),dropRatio:a(),fps:a(),cpuPct:a().nullable(),ramFreePct:a().nullable(),failReasons:S(u()).readonly()}),VI=f({phase:g(`device`),deviceKey:u(),modelId:u(),p50Ms:a(),p95Ms:a(),p99Ms:a(),fps:a(),kMax:a(),limitedBy:zI,warmupMs:a(),ramp:S(BI).readonly()}),HI=f({phase:g(`pipeline`),deviceKey:u(),modelId:u(),steps:S(u()).readonly(),maxSessions:a(),limitedBy:zI,stepsFired:S(u()).readonly(),warmupMs:a(),ramp:S(BI).readonly()}),UI=h(`phase`,[VI,HI]),WI=f({pipelineVersion:u().nullable(),cpuModel:u().nullable(),ramGb:a().nullable(),os:u().nullable(),pools:y(u(),f({runtime:u(),numWorkers:a(),concurrency:a(),batchMode:u()})).default({})}),GI=f({id:u(),revision:u().nullable(),frames:a(),width:a(),height:a()}),KI=f({runId:u().min(1),devices:S(jI).min(1),phases:S(AI).min(1),steps:S(u()).default([]),fpsPerStream:a().int().min(1).max(30),deadlineAtMs:a(),settleSec:a().min(0).max(60).default(kI.settleSec),measureSec:a().min(2).max(300).default(kI.measureSec),keepDownloadedModels:C().default(!1)}),qI=x([`running`,`done`,`failed`,`aborted`]),JI=f({runId:u(),nodeId:u(),state:qI,progress:RI.nullable(),cells:S(UI).readonly(),fingerprint:WI.nullable(),clip:GI.nullable(),activeCameraIds:S(a()).readonly(),deletedModels:S(u()).readonly(),error:u().nullable(),startedAtMs:a(),finishedAtMs:a().nullable()}),YI=x([`draining`,`measuring`,`restoring`,`done`,`failed`,`aborted`]),XI=x([`completed`,`operator-abort`,`deadline`,`node-lost`,`runner-lost`,`hub-restart`,`drain-timeout`,`failed`]),ZI=f({runId:u(),nodeId:u(),state:YI,plan:MI,startedAtMs:a(),deadlineAtMs:a(),finishedAtMs:a().nullable(),endReason:XI.nullable(),error:u().nullable(),moved:S(a()).readonly(),staying:S(a()).readonly(),contaminated:C(),progress:RI.nullable(),resultIds:S(u()).readonly()}),QI=f({modeNodeId:u().nullable(),run:ZI.nullable()}),$I=f({id:u(),runId:u(),nodeId:u(),cell:UI,fpsPerStream:a(),fingerprint:WI.nullable(),clip:GI.nullable(),contaminated:C(),stayingCameras:S(a()).readonly(),partialRun:C(),measuredAtMs:a()}),eL=f({nodeId:u().optional(),deviceKey:u().optional()}),tL=$I.extend({standing:x([`fresh`,`stale`,`superseded`]),staleWhy:x([`age`,`runtime`,`pool-tuning`]).nullable()}),nL=f({runId:u(),nodeId:u(),startedAtMs:a(),deadlineAtMs:a(),plan:MI,moved:S(a()).readonly(),staying:S(a()).readonly()}),rL=f({nodeId:u(),reachable:C(),devices:S(f({deviceKey:u(),enabled:C(),available:C(),suggested:S(u()).readonly(),all:S(u()).readonly(),currentModelId:u().nullable()})).readonly(),steps:S(f({id:u(),name:u(),slot:u()})).readonly()}),iL=f({activeCameras:a(),throttledCameras:a(),avgInferenceTimeMs:a(),queueDepth:a()}),aL=f({detectionMode:x([`disabled`,`always-on`,`on-motion`]),configuredFps:a(),actualFps:a(),queueDepth:a(),avgInferenceTimeMs:a(),droppedFrames:a(),phase:x([`idle`,`watching`,`active`])}),oL=aL.extend({deviceId:a()}),sL=x([`polygon`,`tripwire`]),cL=f({x:a(),y:a()}),lL=f({id:u(),name:u(),kind:sL.default(`polygon`),polygon:S(cL).readonly(),color:u().default(`#3b82f6`)}),uL={name:`zones`,scope:`device`,mode:`singleton`,deviceTypes:[R.Camera],methods:{listZones:L(f({deviceId:a()}),S(lL).readonly()),addZone:L(f({deviceId:a(),zone:lL}),v(),{kind:`mutation`,auth:`admin`}),removeZone:L(f({deviceId:a(),zoneId:u()}),v(),{kind:`mutation`,auth:`admin`}),updateZone:L(f({deviceId:a(),zone:lL}),v(),{kind:`mutation`,auth:`admin`})},runtimeState:f({zones:S(lL).readonly()}),durability:`restored`,history:`none`},dL=f({x:a(),y:a(),w:a(),h:a()}),fL=f({bytes:b(Uint8Array).optional(),jpeg:u().optional(),jpegBytes:b(Uint8Array).optional(),width:a().int().positive(),height:a().int().positive(),tier:x([`native`,`ram-fullframe`]).optional()}),pL=x([`keyFrame`,`thumbnail`]),mL=x([`handle-gone`,`encode-failed`]),hL=h(`parked`,[f({parked:g(!0),nodeId:u(),width:a().int().positive(),height:a().int().positive(),bytes:a().int().nonnegative(),replaced:C()}),f({parked:g(!1),nodeId:u(),reason:mL,handleAgeMs:a().nullable(),detail:u().optional()})]),gL=f({jpeg:u().optional(),jpegBytes:b(Uint8Array).optional(),width:a().int().positive(),height:a().int().positive(),timestamp:a(),parkedAt:a()}),_L=f({bbox:dL,className:u()}),vL=f({stepId:u(),className:u(),score:a(),bbox:dL.optional(),embedding:u().optional(),embeddingMagnitude:a().optional(),embeddingModelId:u().optional(),label:u().optional(),labelTier:p([g(1),g(2)]).optional(),labelModelId:u().optional(),alignedCropJpeg:u().optional(),nativeFaceShortSidePx:a().optional(),landmarks:S(f({x:a(),y:a()})).optional()}),yL=x([`unknown-step`,`model-not-servable`,`unreadable-frame`,`execution-failed`]),bL=h(`kind`,[f({kind:g(`ran`),nodeId:u(),modelId:u(),details:S(vL)}),f({kind:g(`refused`),nodeId:u(),reason:yL,detail:u()})]),xL={min:0,max:6e4,default:3e4,step:500},SL={min:0,max:6e5,default:12e4,step:5e3},CL={min:5e3,max:6e5,default:9e4,step:5e3},wL={min:1,max:30,default:4,step:1},TL={min:1,max:30,default:10,step:1},EL={min:0,max:300,default:300,step:5},DL={min:1,max:10,default:4,step:1},OL={min:0,max:30,default:12,step:1},kL=x([`onboard`,`analyzer`,`device-activity`]),AL=f({source:kL,triggeredBy:oM,sensorName:u().optional()}),jL=S(kL),ML={analyzer:`Frame-diff Analyzer (motion addon)`,onboard:`Camera sensors`,"device-activity":`Device activity (the device says it is working)`};function NL(e){let t=kL.safeParse(e);return t.success?ML[t.data]:e}var PL=[`analyzer`,`onboard`,`device-activity`],FL=r(e=>Array.isArray(e)&&e.length>1?e.slice(0,1):e,S(xN).max(1)),IL=f({deviceId:a(),detected:C(),source:kL.default(`analyzer`),regions:S(fO).readonly().optional()}),LL=h(`kind`,[f({kind:g(`local-broker`)}),f({kind:g(`remote-restream`),ownerNodeId:u(),ownerReachableHost:u().optional(),hubHostnameOverride:u().optional()})]).describe(`Per-camera frame-source mode for the runner (P2c)`),RL=f({modelId:u().optional(),settings:y(u(),s()).optional()}),zL=f({deviceKey:u(),weight:a().positive().default(1),maxSessions:a().int().positive().nullable().default(null),steps:y(u(),RL).optional()}),BL=f({deviceId:a(),detectionMode:x([`disabled`,`always-on`,`on-motion`]).default(`on-motion`),audioMode:x([`disabled`,`always-on`,`on-motion`]).default(`always-on`),motionCooldownMs:a().min(xL.min).default(xL.default),maxSessionHoldMs:a().min(SL.min).max(SL.max).optional(),audioMotionWindowMs:a().min(CL.min).max(CL.max).optional(),motionFps:a().min(wL.min).max(wL.max).default(wL.default),detectionFps:a().min(TL.min).max(TL.max).default(TL.default),motionStreamId:u(),detectionStreamId:u(),audioStreamPick:Js.optional(),motionSources:jL.default([`analyzer`]),sessionTrigger:AL.optional(),detectionSources:FL.default([`pipeline`]),pipelineEnabled:C().default(!0),steps:S(xF).readonly().optional(),audio:f({modelId:u().optional(),enabled:C()}).nullable().optional(),zones:S(lL).readonly().default([]),onboardMotionDrivesAnalyzer:C().default(!0),preRollInferenceEnabled:C().default(!0),preRollInferenceFrames:a().min(OL.min).max(OL.max).default(OL.default),occupancyRecheckEnabled:C().default(!0),occupancyRecheckSec:a().min(EL.min).max(EL.max).default(EL.default),occupancyRecheckFrames:a().min(DL.min).max(DL.max).default(DL.default),frameSource:LL.default({kind:`local-broker`}),deviceKey:u().optional(),inferenceDevices:S(zL).readonly().optional()}),VL=[{key:`motionSources`,type:`multiselect`,label:`Motion Sources`,default:[`analyzer`],options:PL.map(e=>e===`onboard`?{value:e,label:ML[e],description:`The camera's own motion, plus any sensor attached to it`}:{value:e,label:ML[e]})},{key:`motionFps`,type:`slider`,label:`Motion FPS (analyzer)`,min:wL.min,max:wL.max,step:wL.step,default:wL.default,showValue:!0,unit:`fps`,nullable:!0,nullLabel:`Default`,showWhen:{field:`motionSources`,includes:`analyzer`}},{key:`detectionFps`,type:`slider`,label:`Detection FPS`,min:TL.min,max:TL.max,step:TL.step,default:TL.default,showValue:!0,unit:`fps`,nullable:!0,nullLabel:`Default`},{key:`motionCooldownMs`,type:`slider`,label:`Motion Cooldown`,description:`Time without a fresh motion event before the active phase ends. Applies to all motion sources — every motion event re-arms the timer.`,min:xL.min,max:xL.max,step:xL.step,default:xL.default,showValue:!0,unit:`s`,displayScale:1e3,nullable:!0,nullLabel:`Default`},{key:`maxSessionHoldMs`,type:`slider`,label:`Max session hold`,description:`Upper bound on how long detection keeps running past the motion cooldown while a subject is still moving in-frame but no longer triggering motion. Prevents the detection box from stopping on a slow-moving subject. Set to 0 to disable.`,min:SL.min,max:SL.max,step:SL.step,default:SL.default,showValue:!0,unit:`s`,displayScale:1e3,nullable:!0,nullLabel:`Default`},{key:`audioMotionWindowMs`,type:`slider`,label:`Audio window after motion`,description:`How long audio keeps being analysed after the last motion event. Each new motion event extends the window without restarting the audio stream.`,min:CL.min,max:CL.max,step:CL.step,default:CL.default,showValue:!0,unit:`s`,displayScale:1e3,nullable:!0,nullLabel:`Default`,showWhen:{field:`audioMode`,equals:`on-motion`}},{key:`onboardMotionDrivesAnalyzer`,type:`boolean`,label:`Run motion analyzer on onboard motion`,description:`When onboard motion is detected, temporarily start the frame-diff analyzer to emit zone results. Stops after the motion cooldown window.`,default:!0,showWhen:{field:`motionSources`,includes:`onboard`}},{key:`preRollInferenceEnabled`,type:`boolean`,style:`checkbox`,label:`Detect in the pre-roll`,description:`Run detection over the few seconds of footage the camera had already buffered when motion fired, so a subject that was in view before the trigger is found at the moment it appeared rather than seconds later. The burst is bounded and never delays live detection.`,default:!0},{key:`preRollInferenceFrames`,type:`slider`,label:`Pre-roll frames`,description:`How many frames of buffered history may be detected on, per session. Higher samples the history more densely; 0 disables the pass.`,min:OL.min,max:OL.max,step:OL.step,default:OL.default,showValue:!0,showWhen:{field:`preRollInferenceEnabled`,equals:!0}},{key:`occupancyRecheckEnabled`,type:`boolean`,style:`checkbox`,label:`Occupancy re-check`,description:`Periodically re-sample a few frames during the watching phase, so objects that are simply parked are still counted (motion gating alone loses them after a restart). On by default at a wide interval; turn it off on cameras where the extra decoder re-dial is expensive.`,default:!0},{key:`occupancyRecheckSec`,type:`slider`,label:`Occupancy re-check interval`,description:`How often (in seconds) the runner re-samples a few frames to confirm the scene is truly empty during the watching phase.`,min:EL.min,max:EL.max,step:EL.step,default:EL.default,showValue:!0,unit:`s`,showWhen:{field:`occupancyRecheckEnabled`,equals:!0}},{key:`occupancyRecheckFrames`,type:`slider`,label:`Occupancy re-check frames`,description:`Number of frames sampled per occupancy re-check burst.`,min:DL.min,max:DL.max,step:DL.step,default:DL.default,showValue:!0,showWhen:{field:`occupancyRecheckEnabled`,equals:!0}}],HL=f({nodeId:u(),attachedCameras:a(),activeCameras:a(),avgInferenceFps:a(),avgInferenceTimeMs:a(),queueDepthTotal:a(),devices:S(f({deviceKey:u(),backend:u(),attachedCameras:a()})).default([]),hardware:f({hasGpu:C(),inferenceBackend:u().optional(),cpuCores:a().optional()}),motionSliceWriter:g(`orchestrator`).optional()}),UL=f({framesDecoded:a(),framesAdmitted:a(),framesDroppedPixelFree:a(),viewsMaterialized:a(),viewsSkipped:a(),workerToRunnerBytes:a(),runnerToPoolRawBytes:a(),runnerToPoolJpegBytes:a(),onDemandFullFrameRequests:a(),onDemandCropRequests:a(),nativeHits:a(),nativeMisses:a(),tileHits:a(),tileMisses:a(),fallbackHits:a(),fallbackMisses:a(),retainedWritesAvoided:a(),residentRefs:a(),residentBytes:a(),releases:a(),evictions:a(),staleMisses:a()}),WL=f({node:UL,cameras:S(UL.extend({deviceId:a()}))}),GL=f({nodeId:u(),activeCameras:a(),throttledCameras:a(),avgInferenceTimeMs:a(),queueDepth:a(),frameLazy:WL.optional()}),KL=x([`not-attached`,`battery-asleep`,`not-watching`,`already-bursting`]),qL={name:`pipeline-runner`,scope:`system`,mode:`singleton`,methods:{attachCamera:L(BL,f({success:g(!0)}),{kind:`mutation`}),detachCamera:L(f({deviceId:a()}),f({success:g(!0)}),{kind:`mutation`}),reportMotion:L(IL,f({success:g(!0)}),{kind:`mutation`}),getLocalLoad:L(v(),HL),getLocalMetrics:L(v(),GL),getCameraMetrics:L(f({deviceId:a()}),aL.nullable()),getAllCameraMetrics:L(v(),S(oL).readonly()),getLocalCameras:L(v(),S(a()).readonly()),requestOccupancyBurst:L(f({deviceId:a(),frames:a().int().positive().optional(),reason:u()}),f({started:C(),refusedBecause:KL.optional()}),{auth:`admin`,kind:`mutation`}),getNativeCrop:L(f({handle:oc,bbox:dL,maxWidth:a().int().positive().optional(),acceptJpegBytes:C().optional(),encodeJpeg:C().optional()}),fL.nullable()),runDetailSubtree:L(f({deviceId:a(),frameHandle:oc.optional(),frameJpeg:u().optional(),cropJpeg:u().optional(),parent:_L,steps:S(u()).optional(),supplied:f({stepId:u(),modelId:u(),boxes:S(f({bbox:dL,score:a()})).min(1)}).optional()}),f({details:S(vL)}).nullable(),{kind:`mutation`}),runStatelessStep:L(f({stepId:u(),modelId:u(),frameJpeg:u(),bbox:dL,className:u(),sourceDeviceId:a()}),bL,{kind:`mutation`}),parkTrackFrame:L(f({deviceId:a(),trackId:u(),kind:pL,handle:oc,bbox:dL,maxWidth:a().int().positive().optional(),timestamp:a()}),hL,{kind:`mutation`}),getParkedTrackFrame:L(f({deviceId:a(),trackId:u(),kind:pL,acceptJpegBytes:C().optional()}),gL.nullable()),releaseParkedTrackFrames:L(f({deviceId:a(),trackId:u()}),f({released:a().int().nonnegative()}),{kind:`mutation`}),startNodeBench:L(KI,f({accepted:g(!0),runId:u()}),{kind:`mutation`,auth:`admin`}),getNodeBenchStatus:L(f({runId:u()}),JI.nullable(),{auth:`admin`}),abortNodeBench:L(f({runId:u()}),f({aborted:C()}),{kind:`mutation`,auth:`admin`})}},JL=f({engine:dF.optional(),steps:S(xF).readonly(),audio:f({engine:dF.optional(),modelId:u().optional(),enabled:C(),settings:y(u(),s()).readonly().optional()}).nullable().optional()}),YL=f({modelId:u().optional(),settings:y(u(),s()).optional(),jumpDeviceKey:u().optional()}),XL=f({maxCameras:a().int().nonnegative().nullable().default(null),detectWeight:a().positive().optional(),detect:C().optional(),decode:C().optional(),audio:C().optional(),ingest:C().optional(),decodeBudgetMb:a().int().min(1024).max(65536).optional(),maxLiveDecodeWorkers:a().int().min(1).max(32).optional(),reachableHost:u().optional(),color:Ku.optional(),inferenceDevices:y(u(),f({enabled:C(),weight:a().positive().optional(),maxSessions:a().int().positive().optional(),steps:y(u(),YL).optional()})).optional()}),ZL=f({steps:S(xF).readonly(),audio:f({modelId:u(),enabled:C()}).nullable()}),QL=f({modelId:u().optional(),settings:y(u(),s()).readonly().optional()}),$L=y(u(),y(u(),s()).readonly()),eR=x([`pipeline`,`onboard`,`none`]),tR=f({stepToggles:y(u(),C()).optional(),stepSettings:$L.optional(),stepOverridesByDevice:y(u(),y(u(),y(u(),QL))).optional(),pipelineByAgent:y(u(),ZL).optional()}),nR=f({deviceId:a(),agentNodeId:u(),pinned:C(),reason:x([`manual`,`capacity`,`hardware-affinity`,`failover`,`rebalance`]),assignedAt:a()}),rR=f({nodeId:u(),online:C(),load:HL,score:a(),decodeHwaccel:u().nullable()}),iR=f({totalAgents:a(),onlineAgents:a(),totalCameras:a(),attachedCameras:a(),activeCameras:a(),avgInferenceTimeMs:a(),queueDepth:a()}),aR=y(u(),u()),oR=f({ownerNodeId:u(),reachableHost:u().optional(),configIssue:u().optional()}),sR=f({camStreamId:u(),codec:u(),width:a(),height:a(),fps:a(),kind:u()}),cR=f({streams:S(sR).readonly()}),lR=f({detectionNodeId:u().nullable(),decoderNodeId:u().nullable(),audioNodeId:u().nullable(),sourceNodeId:u().nullable(),pinned:f({detection:C(),decoder:C(),audio:C()}),reasons:f({detection:u().optional(),decoder:u().optional(),audio:u().optional()})}),uR=f({profile:u(),status:u(),codec:u(),width:a(),height:a(),subscribers:a(),inFps:a().nullable()}),dR=f({profiles:S(uR).readonly(),webrtcSessions:a(),rtspRestream:C()}),fR=f({nodeId:u()}),pR=f({enabled:C(),fps:a()}),mR=x([`idle`,`installing`,`verifying`,`ready`,`failed`]),hR=f({state:mR,error:u().optional()}),gR=x([`idle`,`watching`,`active`]),_R=f({nodeId:u(),engine:f({backend:u(),device:u()}),phase:gR,configuredFps:a(),actualFps:a(),queueDepth:a(),avgInferenceMs:a(),provisioning:hR}),vR=f({nodeId:u(),enabled:C()}),yR=Sc,bR=f({mode:yR,active:C(),storageBytes:a()}),xR=x([`source`,`broker`,`detection`,`recording`,`switches`]),SR=x([`timeout`,`error`,`partial`]),CR=f({stage:xR,reason:SR,elapsedMs:a()}),wR=f({state:x([`idle`,`running`,`done`,`error`]),total:a().int().nonnegative(),completed:a().int().nonnegative(),currentDeviceId:a().int().nullable(),failed:S(a().int()).readonly(),mediaDropped:a().int().nonnegative(),tracks:a().int().nonnegative(),events:a().int().nonnegative(),startedAtMs:a().int().nullable(),finishedAtMs:a().int().nullable(),error:u().nullable()}),TR=f({deviceId:a(),assignment:lR,source:cR,broker:dR.nullable(),decoder:fR.nullable(),motion:pR.nullable(),detection:_R.nullable(),audio:vR.nullable(),recording:bR.nullable(),switchedOff:S(Ti).readonly(),cameraSensors:SM.optional(),degraded:S(CR).readonly(),fetchedAt:a()}),ER=[`disabled`,`unavailable`,`cannot-host-camera-root`,`accelerator-preferred`],DR=x(ER),OR=f({key:u(),backend:u(),device:u(),format:x(Qd),available:C(),enabled:C(),weight:a(),maxSessions:a().nullable(),defaultModelId:u(),steps:y(u(),YL).optional(),exclusion:DR.nullable()}),kR=h(`kind`,[f({kind:g(`stored`),modelId:u()}),f({kind:g(`absent`),defaultModelId:u()}),f({kind:g(`unreadable`),reason:x(wM),error:u().optional()})]),AR=f({nodeId:u(),reachable:C(),devices:S(OR).readonly()}),jR=f({deviceId:a().int().nonnegative(),config:hM.nullable()}),MR=x([`unknown-camera`,`out-of-range`,`no-burst-producer`,`already-looked`]),NR=f({deviceId:a().int().nonnegative(),afterMs:a().finite(),reason:u()}),PR=f({scheduled:C(),dueInMs:a().optional(),refusedBecause:MR.optional()}),FR={name:`pipeline-orchestrator`,scope:`system`,mode:`singleton`,nodeIdMode:`data`,exposesDeviceSettings:!0,methods:{requestOccupancyLook:L(NR,PR,{kind:`mutation`,auth:`admin`}),pauseForStorageMigration:L(qc,f({paused:g(!0)}),{kind:`mutation`,auth:`admin`}),resumeForStorageMigration:L(qc,f({resumed:g(!0)}),{kind:`mutation`,auth:`admin`}),assignPipeline:L(f({deviceId:a(),agentNodeId:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),unassignPipeline:L(f({deviceId:a()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setPipelineDevicePin:L(f({deviceId:a(),deviceKey:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getPipelineDevicePin:L(f({deviceId:a()}),f({deviceKey:u().nullable()})),rebalance:L(v(),f({migrated:a(),skipped:S(f({deviceId:a(),targetNodeId:u(),reason:u()})).default([])}),{kind:`mutation`,auth:`admin`}),getPipelineAssignments:L(v(),S(nR).readonly()),getPipelineAssignment:L(f({deviceId:a()}),nR.nullable()),getAgentLoad:L(v(),S(rR).readonly()),getClusterModelChoice:L(f({stepId:u()}),kR),getGlobalMetrics:L(v(),iR),getCameraMetrics:L(f({deviceId:a()}),aL.nullable()),getCapabilityBindings:L(f({nodeId:u()}),aR),setCapabilityBinding:L(f({nodeId:u(),capName:u(),addonId:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getIngestOwner:L(v(),oR),assignAudio:L(f({deviceId:a(),nodeId:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),unassignAudio:L(f({deviceId:a()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getAudioAssignment:L(f({deviceId:a()}),f({nodeId:u(),pinned:C(),assignedAt:a()}).nullable()),getAudioNodeLoad:L(v(),S(f({nodeId:u(),deviceCount:a()}))),getAudioAssignments:L(v(),S(f({deviceId:a(),nodeId:u(),pinned:C(),assignedAt:a()}))),getAgentSettings:L(f({agentNodeId:u()}),XL.nullable()),listAgentSettings:L(v(),S(f({nodeId:u(),settings:XL})).readonly()),removeAgentSettings:L(f({agentNodeId:u()}),f({success:C(),removed:C()}),{kind:`mutation`,auth:`admin`}),setAgentMaxCameras:L(f({agentNodeId:u(),maxCameras:a().int().nonnegative().nullable()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setAgentCapabilities:L(f({agentNodeId:u(),detect:C().nullable().optional(),audio:C().nullable().optional(),ingest:C().nullable().optional()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setAgentDecodeLimits:L(f({agentNodeId:u(),decodeBudgetMb:a().int().min(1024).max(65536).nullable().optional(),maxLiveDecodeWorkers:a().int().min(1).max(32).nullable().optional()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setAgentReachableHost:L(f({agentNodeId:u(),reachableHost:u().nullable().optional(),color:Ku.nullable().optional()}).refine(e=>e.reachableHost!==void 0||e.color!==void 0,{message:`reachableHost or color required`}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setAgentInferenceDevices:L(f({agentNodeId:u(),inferenceDevices:y(u(),f({enabled:C(),weight:a().positive().optional(),maxSessions:a().int().positive().optional(),steps:y(u(),YL).optional()}))}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getNodeInferenceDevices:L(f({nodeId:u()}),AR),resetNodePipelineDefaults:L(f({agentNodeId:u()}),f({success:g(!0),effectiveModelId:u().nullable(),clearedCameraOverrides:a()}),{kind:`mutation`,auth:`admin`}),planAutoTune:L(tI,nI,{auth:`admin`}),applyAutoTune:L(rI,aI,{kind:`mutation`,auth:`admin`}),setLoadBalancingShares:L(uI,f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getPlacementStats:L(dI,hI,{auth:`admin`}),suggestShares:L(vI,xI,{auth:`admin`}),getEffectiveShares:L(v(),OI,{auth:`admin`}),setShareSource:L(TI,f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getNodeBenchmarkPreflight:L(MI,LI,{auth:`admin`}),startNodeBenchmark:L(MI,h(`kind`,[f({kind:g(`started`),runId:u()}),f({kind:g(`refused`),preflight:LI})]),{kind:`mutation`,auth:`admin`}),getNodeBenchmarkStatus:L(v(),QI,{auth:`admin`}),abortNodeBenchmark:L(f({runId:u()}),f({aborted:C()}),{kind:`mutation`,auth:`admin`}),getNodeBenchmarkCandidates:L(f({nodeId:u()}),rL,{auth:`admin`}),listNodeBenchmarkResults:L(eL,S(tL).readonly(),{auth:`admin`}),deleteNodeBenchmarkResult:L(f({id:u()}),f({deleted:C()}),{kind:`mutation`,auth:`admin`}),getCameraSettings:L(f({deviceId:a()}),tR.nullable()),setCameraStepToggle:L(f({deviceId:a(),addonId:u(),enabled:C().nullable()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getCameraDetectionSource:L(f({deviceId:a()}),f({source:eR,explicit:C(),onboard:f({available:C(),geometry:x([`boxed`,`while-streaming`,`flag-only`,`unknown`])})})),setCameraDetectionSource:L(f({deviceId:a(),source:eR}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getCameraStepOverrides:L(f({deviceId:a()}),y(u(),y(u(),y(u(),QL))).nullable()),setCameraStepOverride:L(f({deviceId:a(),agentNodeId:u(),deviceKey:u(),addonId:u(),patch:QL.nullable()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setCameraStepSettings:L(f({deviceId:a(),addonId:u(),settings:y(u(),s()).nullable()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setCameraPipelineForAgent:L(f({deviceId:a(),agentNodeId:u(),pipeline:ZL.nullable()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),resolvePipeline:L(f({deviceId:a(),agentNodeId:u().optional()}),JL),getCameraSwitches:L(f({deviceId:a()}),ji),setCameraSwitch:L(f({deviceId:a(),switchId:Ti,enabled:C()}),ji,{kind:`mutation`,auth:`admin`}),getCameraStatus:L(f({deviceId:a()}),TR),getCameraStatuses:L(f({deviceIds:S(a()).optional()}),S(TR).readonly()),setCameraSensors:L(jR,f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),reconcileFromDisk:L(v(),wR,{kind:`mutation`,auth:`admin`}),getReconcileFromDiskStatus:L(v(),wR,{auth:`admin`})}},IR={motion:`motion`,audio:`audio`,person:`person`,vehicle:`vehicle`,animal:`animal`,package:`package`,door:`door`,pir:`pir`,smoke:`smoke`,water:`water`,button:`button`,generic:`generic`,gas:`smoke`,vibration:`generic`,tamper:`generic`,presence:`person`,lock:`generic`,siren:`generic`,switch:`generic`,doorbell:`button`};function LR(e){return IR[e]??`generic`}var RR={contact:`contact`,motion:`motion-sensor`,smoke:`smoke`,flood:`flood`,gas:`gas`,"carbon-monoxide":`carbon-monoxide`,vibration:`vibration`,tamper:`tamper`,presence:`presence`,"enum-sensor":`enum-sensor`,"event-emitter":`device-event`,"lock-control":`lock`,cover:`cover`,switch:`switch`,button:`button`,doorbell:`doorbell`};function zR(e,t){let n=dk[t];if(n===void 0)throw Error(`EVENT_KIND_BY_CAP: cap '${e}' maps to unknown taxonomy kind '${t}'`);return{...n,icon:LR(n.iconId)}}var BR=Object.freeze(Object.fromEntries(Object.entries(RR).map(([e,t])=>[e,zR(e,t)]))),VR=Object.keys(RR);function HR(e,t){let n=dk[e];return n===void 0?null:{kind:n.kind,labelKey:n.labelKey,label:n.label,color:n.color,iconId:n.iconId,icon:LR(n.iconId),category:n.category,parentKind:n.parentKind,level:n.level,source:{capName:t.capName,deviceId:t.deviceId}}}var UR=x([`workspace`,`baked`,`data-root`]),WR=x([`idle`,`checking`,`staging`,`pending-restart`,`awaiting-confirmation`]),GR=x([`in-sync`,`behind-patch`,`behind-series`,`ahead`,`unknown`]),KR=f({state:GR,seedVersion:u().nullable(),contractVersion:u().nullable(),contractSource:x([`registry`,`running`]).nullable(),message:u()}),qR=x([`docker`,`electron`,`native`,`contradictory`,`unknown`]),JR=f({fact:x([`dockerenv-file`,`proc-1-cgroup`,`platform`,`electron-app-version-env`]),mode:x([`observed`,`declared`]),holds:C(),detail:u()}),YR=f({kind:qR,evidence:S(JR),currentVersion:u().nullable()}),XR=f({fromVersion:u(),toVersion:u().nullable(),atMs:a(),reason:u()}),ZR=f({runnerId:u(),addonIds:S(u()),reason:u()}),QR=f({checkedAtMs:a(),expected:a(),running:a(),failed:S(u()),refused:S(ZR),missing:S(u()),pending:S(u()).optional(),planKnown:C()}),$R=f({packageName:u(),runningVersion:u().nullable(),nodeRuntimeVersion:u().nullable(),activeVersion:u().nullable(),installedVersion:u().nullable().optional(),restartRequired:C().optional(),previousVersion:u().nullable(),seedVersion:u().nullable(),latestVersion:u().nullable(),updateAvailable:C(),bootMode:UR,updateState:WR,pendingVersion:u().nullable(),rolledBack:XR.nullable(),stateFileCorrupt:C(),lastCheckedAtMs:a().nullable(),imageContract:KR.optional(),wrapper:YR.optional(),runners:QR.optional()}),ez=f({packageName:u(),runningVersion:u().nullable(),latestVersion:u().nullable(),updateAvailable:C(),checkedAtMs:a(),error:u().nullable(),pendingVersion:u().nullable().optional(),restartRequired:C().optional()}),tz=x([`staged`,`restart-scheduled`,`already-current`,`refused`,`failed`]),nz=f({addonId:u(),reason:u(),remedy:u()}),rz=f({accepted:C(),targetVersion:u().nullable(),restarting:C(),message:u(),outcome:tz.optional(),reason:u().nullable().optional(),error:u().nullable().optional(),blockers:S(nz).optional()}),iz={name:`server-management`,scope:`system`,mode:`singleton`,methods:{getServerPackageStatus:L(v(),$R,{auth:`admin`}),checkServerUpdate:L(v(),ez,{kind:`mutation`,auth:`admin`}),applyServerUpdate:L(f({version:u().optional(),acknowledgeRefusals:C().optional()}),rz,{kind:`mutation`,auth:`admin`,timeoutMs:16*6e4}),rollbackServerUpdate:L(v(),rz,{kind:`mutation`,auth:`admin`}),restartServer:L(v(),rz,{kind:`mutation`,auth:`admin`})},mount:{kind:`server-provided`}},az=i(),oz=f({to:p([az,S(az).min(1)]),cc:S(az).optional(),bcc:S(az).optional(),from:u().optional(),replyTo:u().optional(),subject:u(),text:u(),html:u().optional()}),sz=f({messageId:u(),accepted:S(az).default([]),rejected:S(az).default([])}),cz=f({ready:C(),host:u(),error:u().optional(),lastVerifiedAt:a().optional()}),lz={name:`smtp-provider`,scope:`system`,mode:`collection`,internal:!0,providerKind:`email`,methods:{sendEmail:L(oz,sz,{kind:`mutation`,auth:`admin`,access:`create`}),verify:L(v(),cz,{kind:`mutation`,auth:`admin`,access:`view`}),getStatus:L(v(),cz,{auth:`admin`})}},uz=f({base64:u(),contentType:u()}),dz=f({lastCapturedAt:a().nullable(),cacheAgeMs:a().nullable(),lastBytes:a().nullable(),lastStreamId:u().nullable()}),fz={name:`snapshot`,scope:`device`,deviceNative:!0,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],exposesDeviceSettings:!0,methods:{getSnapshot:L(f({deviceId:a(),streamId:u().optional(),force:C().optional()}),uz.nullable()),invalidateCache:L(f({deviceId:a()}),v(),{kind:`mutation`,auth:`admin`}),getSnapshotOverview:yh(f({deviceIds:S(a()).min(1).max(200)}),S(f({deviceId:a(),lastCapturedAt:a().nullable(),cacheAgeMs:a().nullable(),etag:u().nullable()}))),getDebugState:yh(f({deviceId:a()}),f({battery:f({sleeping:C(),lastUpdated:a(),lastContactAt:a().optional()}).nullable(),state:f({isBattery:C(),reason:x([`disabled`,`offline`,`sleeping`,`unreachable`,`waking`]).nullable()}),frame:f({capturedAt:a().nullable(),ageMs:a().nullable()}),waking:C()})),getSnapshotLinks:yh(f({targets:S(f({deviceId:a(),width:a().int().positive().optional()})).min(1).max(200)}),S(f({deviceId:a(),url:u().nullable(),capturedAt:a().nullable(),ageMs:a().nullable(),expiresAt:a().nullable(),width:a().nullable(),neverCaptured:C(),sleeping:C(),stateReason:x([`disabled`,`offline`,`sleeping`,`unreachable`,`waking`]).nullable(),battery:C()})))},status:{schema:dz,kind:`poll`}},pz=f({userId:u(),username:u(),isAdmin:C(),provider:u(),email:u().optional(),displayName:u().optional(),hubUrl:u().optional(),scopes:S(Y).optional(),redirectUri:u().optional(),integrationId:u().optional(),jti:u().optional(),codeChallenge:u().optional(),sessionId:u().optional(),refreshTtl:p([a().int().positive(),g(`never`)]).optional(),linkIntent:u().optional(),issuer:u().optional(),browserBinding:u().optional(),app:f({codeChallenge:u(),state:u(),purpose:x([`new-session`,`step-up`]),redirect:u(),lang:x([`en`,`it`]).optional()}).optional()}),mz={name:`sso-bridge`,scope:`system`,mode:`singleton`,internal:!0,methods:{signBridgeToken:L(f({claims:pz,ttlSec:p([a().int().positive(),g(`never`)]).optional()}),f({token:u()}),{auth:`admin`}),verifyBridgeToken:L(f({token:u()}),pz.nullable(),{auth:`admin`})}},hz=h(`shouldSaveDiskSpace`,[f({providerId:u().min(1),displayName:u().min(1),configSchema:s(),nodeLocal:C(),shouldSaveDiskSpace:g(!0),minFreePercent:a().min(0).max(100)}),f({providerId:u().min(1),displayName:u().min(1),configSchema:s(),nodeLocal:C(),shouldSaveDiskSpace:g(!1),minFreePercent:g(null)})]),gz={name:`storage`,scope:`system`,mode:`singleton`,methods:{resolve:L(f({location:tu,relativePath:u()}),u(),{auth:`admin`}),write:L(f({location:tu,relativePath:u(),data:b(Uint8Array)}),v(),{kind:`mutation`,auth:`admin`}),read:L(f({location:tu,relativePath:u()}),b(Uint8Array),{auth:`admin`}),exists:L(f({location:tu,relativePath:u()}),C(),{auth:`admin`}),list:L(f({location:tu,prefix:u().optional()}),S(u()).readonly(),{auth:`admin`}),delete:L(f({location:tu,relativePath:u()}),v(),{kind:`mutation`,auth:`admin`}),getAvailableSpace:L(f({location:tu}),a().nullable()),beginUpload:L(f({location:tu,relativePath:u(),sizeBytes:a().optional()}),f({uploadId:u()}),{kind:`mutation`,auth:`admin`}),writeChunk:L(f({uploadId:u(),offset:a(),data:b(Uint8Array)}),v(),{kind:`mutation`,auth:`admin`}),finalizeUpload:L(f({uploadId:u()}),v(),{kind:`mutation`,auth:`admin`}),abortUpload:L(f({uploadId:u()}),v(),{kind:`mutation`,auth:`admin`}),beginDownload:L(f({location:tu,relativePath:u()}),f({downloadId:u(),sizeBytes:a()}),{kind:`mutation`,auth:`admin`}),readChunk:L(f({downloadId:u(),offset:a(),length:a()}),b(Uint8Array),{auth:`admin`}),endDownload:L(f({downloadId:u()}),v(),{kind:`mutation`,auth:`admin`}),listLocations:L(f({type:Yl.optional()}),S(A).readonly()),listLocationDeclarations:L(v(),S(iu).readonly()),upsertLocation:L(A.omit({createdAt:!0,updatedAt:!0}),A,{kind:`mutation`,auth:`admin`}),deleteLocation:L(f({id:u(),force:C().optional()}),v(),{kind:`mutation`,auth:`admin`}),listDrainProgress:L(v(),S(eu).readonly()),testLocation:L(f({id:u()}),f({ok:C(),error:u().optional()}),{auth:`admin`}),listProviders:L(v(),S(hz).readonly()),testConfig:L(f({providerId:u(),locationId:u().optional(),config:y(u(),s())}),f({ok:C(),error:u().optional()}),{auth:`admin`})}},_z=f({bytes:a().int().nonnegative()}),vz=f({reclaimedBytes:a().int().nonnegative(),exhausted:C()}),yz={name:`storage-evictable`,scope:`system`,mode:`collection`,internal:!0,methods:{getEvictableUsage:L(f({locationId:u()}),_z,{auth:`admin`}),evict:L(f({locationId:u(),targetBytes:a().int().positive()}),vz,{kind:`mutation`,auth:`admin`})}},bz={name:`storage-migration`,scope:`system`,mode:`singleton`,methods:{plan:L(il,fl,{auth:`admin`}),start:L(il,f({jobId:u()}),{kind:`mutation`,auth:`admin`}),status:L(f({jobId:u().optional()}),ll.nullable(),{auth:`admin`}),cancel:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),movers:L(f({}),S(ml).readonly(),{auth:`admin`}),moverClearance:L(f({locationIds:S(u()).readonly()}),f({clear:C(),repointLocationId:u().optional()}),{auth:`admin`}),residue:L(f({}),S(hl).readonly(),{auth:`admin`}),drain:L(gl,f({jobId:u()}),{kind:`mutation`,auth:`admin`}),cleanupStart:L(Ol,f({jobId:u()}),{kind:`mutation`,auth:`admin`}),cleanupStatus:L(Al,kl.nullable(),{auth:`admin`}),cleanupCancel:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),history:L(f({}),S(ll).readonly(),{auth:`admin`})}},xz=f({locationId:u(),ownedBytes:a().int().nonnegative(),measuredAtMs:a().int().nonnegative()}),Sz={name:`storage-occupancy`,scope:`system`,mode:`collection`,internal:!0,methods:{getOccupancy:L(f({locationIds:S(u()).readonly()}),S(xz).readonly(),{auth:`admin`})}},Cz=h(`shouldSaveDiskSpace`,[f({providerId:u().min(1),displayName:u().min(1),configSchema:s(),nodeLocal:C(),shouldSaveDiskSpace:g(!0),minFreePercent:a().min(0).max(100)}),f({providerId:u().min(1),displayName:u().min(1),configSchema:s(),nodeLocal:C(),shouldSaveDiskSpace:g(!1),minFreePercent:g(null)})]),wz=f({ok:C(),error:u().optional()}),Tz=f({location:A,relativePath:u(),sizeBytes:a().optional()}),Ez=f({uploadId:u()}),Dz=f({uploadId:u(),offset:a(),data:b(Uint8Array)}),Oz=f({uploadId:u()}),kz=f({uploadId:u()}),Az=f({location:A,relativePath:u()}),jz=f({downloadId:u(),sizeBytes:a()}),Mz=f({downloadId:u(),offset:a(),length:a()}),Nz=f({downloadId:u()}),Pz={name:`storage-provider`,scope:`system`,mode:`collection`,internal:!0,methods:{getProviderInfo:L(v(),Cz,{auth:`admin`}),testLocation:L(f({config:y(u(),s())}),wz,{auth:`admin`}),resolve:L(f({location:A,relativePath:u()}),u(),{auth:`admin`}),write:L(f({location:A,relativePath:u(),data:b(Uint8Array)}),v(),{kind:`mutation`,auth:`admin`}),read:L(f({location:A,relativePath:u()}),b(Uint8Array),{auth:`admin`}),exists:L(f({location:A,relativePath:u()}),C(),{auth:`admin`}),list:L(f({location:A,prefix:u().optional()}),S(u()).readonly(),{auth:`admin`}),delete:L(f({location:A,relativePath:u()}),v(),{kind:`mutation`,auth:`admin`}),getAvailableSpace:L(f({location:A}),a().nullable(),{auth:`admin`}),beginUpload:L(Tz,Ez,{kind:`mutation`,auth:`admin`}),writeChunk:L(Dz,v(),{kind:`mutation`,auth:`admin`}),finalizeUpload:L(Oz,v(),{kind:`mutation`,auth:`admin`}),abortUpload:L(kz,v(),{kind:`mutation`,auth:`admin`}),beginDownload:L(Az,jz,{kind:`mutation`,auth:`admin`}),readChunk:L(Mz,b(Uint8Array),{auth:`admin`}),endDownload:L(Nz,v(),{kind:`mutation`,auth:`admin`})}},Fz=f({code:u().min(1),label:u().min(1),recommended:C()}),Iz=f({signals:S(Fz),lastFetchedAt:a()}),Lz={name:`stream-signals`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:Object.values(R),runtimeState:Iz,durability:`session`,history:`none`,methods:{listSignals:L(v(),S(Fz).readonly())}},Rz=s().nullable(),zz=y(u(),s()),Bz=f({sessionId:u(),profileId:u(),label:u(),cols:a().int().positive(),rows:a().int().positive(),startedAt:a()}),Vz=f({profileId:u(),label:u(),description:u().optional(),executable:u().optional(),args:S(u()).readonly().optional(),cwd:u().optional(),environment:S(u()).readonly().optional(),settingsSchema:Rz.optional()}),Hz=f({instanceId:u(),cameraStableId:u(),nodeId:u(),profileId:u(),profileLabel:u(),name:u(),enabled:C(),executable:u(),args:S(u()).readonly(),cwd:u(),environment:S(u()).readonly(),profileSettings:zz}),Uz=f({stableId:u(),nodeId:u(),profileId:u(),profileLabel:u(),name:u(),adoptable:C()}),Wz=h(`kind`,[f({seq:a().int().positive(),kind:g(`data`),data:u()}),f({seq:a().int().positive(),kind:g(`exit`),exitCode:a().int(),signal:a().int().optional()})]),Gz=f({cursor:a().int().nonnegative(),reset:C(),snapshot:u().optional(),events:S(Wz).readonly()}),Kz={name:`terminal-session`,scope:`system`,mode:`singleton`,methods:{listProfiles:L(v(),S(Vz).readonly(),{auth:`admin`}),listInstances:L(v(),S(Hz).readonly(),{auth:`admin`}),createInstance:L(f({targetNodeId:u().min(1),profileId:u().min(1),name:u().trim().min(1).max(160).optional(),executable:u().max(1024).optional(),args:S(u().max(2048)).max(64).optional(),cwd:u().max(1024).optional(),environment:S(u().max(4096)).max(64).optional(),profileSettings:zz.optional()}),Hz,{kind:`mutation`,auth:`admin`}),updateInstance:L(f({instanceId:u().min(1),name:u().trim().min(1).max(160).optional(),executable:u().max(1024).optional(),args:S(u().max(2048)).max(64).optional(),cwd:u().max(1024).optional(),environment:S(u().max(4096)).max(64).optional(),profileSettings:zz.optional()}),Hz,{kind:`mutation`,auth:`admin`}),deleteInstance:L(f({instanceId:u().min(1)}),v(),{kind:`mutation`,auth:`admin`}),setInstanceEnabled:L(f({instanceId:u().min(1),enabled:C()}),Hz,{kind:`mutation`,auth:`admin`}),listLegacyCameras:L(v(),S(Uz).readonly(),{auth:`admin`}),adoptLegacyMonitor:L(f({stableId:u().min(1),name:u().trim().min(1).max(160).optional()}),Hz,{kind:`mutation`,auth:`admin`}),listSessions:L(v(),S(Bz).readonly(),{auth:`admin`}),openSession:L(f({profileId:u(),cols:a().int().positive(),rows:a().int().positive(),executable:u().max(1024).optional(),args:S(u().max(2048)).max(64).optional(),cwd:u().max(1024).optional(),environment:S(u().max(4096)).max(64).optional()}),Bz,{kind:`mutation`,auth:`admin`}),resize:L(f({sessionId:u(),cols:a().int().positive(),rows:a().int().positive()}),v(),{kind:`mutation`,auth:`admin`}),pullOutput:L(f({sessionId:u(),afterSeq:a().int().nonnegative(),waitMs:a().int().min(0).max(2e3).default(0),waitForOutput:C().optional()}),Gz,{kind:`mutation`,auth:`admin`,timeoutMs:15e3}),writeInput:L(f({sessionId:u(),data:u().max(64*1024)}),v(),{kind:`mutation`,auth:`admin`}),close:L(f({sessionId:u()}),v(),{kind:`mutation`,auth:`admin`})}},qz=f({urls:p([u(),S(u())]),username:u().optional(),credential:u().optional()}),Jz={name:`turn-provider`,scope:`system`,mode:`collection`,methods:{getTurnServers:L(v(),S(qz).readonly())}},Yz=f({credentialId:u(),label:u(),createdAt:a(),lastUsedAt:a().nullable(),transports:S(u()).default([])}),Xz={name:`user-passkeys`,scope:`system`,mode:`collection`,internal:!0,methods:{beginRegistration:L(f({userId:u(),username:u()}),f({optionsJSON:y(u(),s())}),{kind:`mutation`,auth:`admin`,access:`create`}),finishRegistration:L(f({userId:u(),response:y(u(),s()),label:u()}),f({success:g(!0),credentialId:u()}),{kind:`mutation`,auth:`admin`,access:`create`}),beginAuthentication:L(f({userId:u().optional()}),f({optionsJSON:y(u(),s())}),{kind:`mutation`,access:`view`,auth:`admin`}),finishAuthentication:L(f({userId:u(),response:y(u(),s())}),f({verified:C()}),{kind:`mutation`,access:`view`,auth:`admin`}),beginDiscoverableAuthentication:L(f({}),f({optionsJSON:y(u(),s())}),{kind:`mutation`,access:`view`,auth:`admin`}),finishDiscoverableAuthentication:L(f({response:y(u(),s())}),f({verified:C(),userId:u().nullable()}),{kind:`mutation`,access:`view`,auth:`admin`}),listPasskeys:L(f({userId:u()}),S(Yz),{auth:`admin`}),removePasskey:L(f({userId:u(),credentialId:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`delete`}),getSecondFactorPreference:L(f({userId:u()}),f({enabled:C()}),{auth:`admin`}),setSecondFactorPreference:L(f({userId:u(),enabled:C()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`create`})}},Zz=x([`cosine`,`dot`,`euclidean`]),Qz=y(u(),p([u(),a(),C()])),$z=f({equals:y(u(),p([u(),a(),C()])).optional(),between:y(u(),d([a(),a()])).optional()}),eB=f({id:u(),vector:u(),metadata:Qz}),tB=f({id:u(),score:a(),metadata:Qz}),nB=f({index:u(),dim:a().int().positive(),metric:Zz.default(`cosine`)}),rB=f({index:u(),items:S(eB)}),iB=f({upserted:a(),rejected:a()}),aB=f({index:u(),vector:u(),topK:a().int().positive(),minScore:a().optional(),filter:$z.optional()}),oB=f({matches:S(tB),scanned:a(),truncated:C(),effectiveTopK:a().int().positive()}),sB=f({index:u(),ids:S(u())}),cB=f({index:u(),filter:$z}),lB=f({deleted:a()}),uB=f({index:u(),ids:S(u())}),dB=f({items:S(f({id:u(),metadata:Qz}))}),fB=f({index:u(),ids:S(u())}),pB=f({items:S(f({id:u(),vector:u(),metadata:Qz}))}),mB=f({index:u(),cursor:a().int().nonnegative().default(0),limit:a().int().positive()}),hB=f({items:S(f({id:u(),metadata:Qz})),nextCursor:a().int().nonnegative().nullable()}),gB=`vector-index-dim-conflict`;function _B(e,t,n){return Error(`[${gB}] vector-store: index "${e}" is declared with dim ${String(t)}; refusing to redeclare as ${String(n)}`)}function vB(e){return(e instanceof Error?e.message:String(e)).includes(`[${gB}]`)}var yB=f({index:u()}),bB=f({backend:u(),count:a(),dim:a(),metric:Zz,bytes:a().optional(),exact:C()}),xB={name:`vector-store`,scope:`system`,mode:`singleton`,internal:!0,methods:{declareIndex:L(nB,v(),{kind:`mutation`,auth:`admin`}),upsert:L(rB,iB,{kind:`mutation`,auth:`admin`}),query:L(aB,oB,{auth:`admin`}),getByIds:L(uB,dB,{auth:`admin`}),fetchByIds:L(fB,pB,{auth:`admin`}),scan:L(mB,hB,{auth:`admin`}),deleteByIds:L(sB,lB,{kind:`mutation`,auth:`admin`}),deleteByFilter:L(cB,lB,{kind:`mutation`,auth:`admin`}),stats:L(yB,bB,{auth:`admin`})}},SB=x([`queue-full`,`camera-backoff`,`sleeping`,`camera-refused`,`no-keyframe`,`decode-failed`,`no-catalog-row`,`unsupported`,`unknown-device`,`uid-missing`]),CB=x([`deferred`,`final`]),wB=`x-camstack-reason`;function TB(e){let t=e.replace(/[\u2013\u2014\u2212]/g,`-`).replace(/[\u2018\u2019\u201b]/g,`'`).replace(/[\u201c\u201d]/g,`"`).replace(/\u2026/g,`...`).replace(/[\u00a0\u2007\u202f]/g,` `),n=``;for(let e of t){let t=e.codePointAt(0)??0;t<32||t===127?n+=` `:t>255?n+=`?`:n+=e}return n.slice(0,500).trim()}var EB=`x-camstack-reason-code`,DB=`x-camstack-disposition`,OB=`x-camstack-clip-transport`,kB=f({id:u(),source:u(),kind:x([`motion`,`object`,`audio`,`native`]),timeRange:f({startMs:a(),endMs:a()}),labels:S(u()).max(3).optional(),thumbnail:u().optional(),stillAtMs:a().optional(),eventIds:S(u()).optional(),eventCount:a().int().nonnegative().optional(),holes:S(f({startMs:a(),endMs:a()})).optional(),thumbnailMint:u().optional(),thumbnailUnavailable:f({reason:x([`sleeping`,`camera-refused`,`no-keyframe`,`unsupported`])}).optional(),catalogAsOf:a().optional(),nativeTypes:S(u()).optional(),behaviours:S(u()).optional(),streams:f({sub:f({id:u(),bytes:a().optional()}).optional(),main:f({id:u(),bytes:a().optional()}).optional()}).optional(),supportSub:C().optional(),playable:C().optional(),unplayableReason:u().optional(),inProgress:C().optional()}),AB=f({playbackUrl:u(),format:x([`hls`,`mp4`]).optional(),served:k.optional(),playbackEndpoints:S(u()).optional(),token:u().optional()}),jB=x([`authorised`]),MB=50*1024*1024,NB=500*1024*1024,PB=f({base64:u(),contentType:u(),name:u(),bytes:a().int().nonnegative(),served:k,durationMs:a().positive().optional()}),FB=f({ticket:bi,contentType:u(),name:u(),served:k,durationMs:a().positive().optional()}),IB=x([`opus`,`pcmu`,`none`]),LB=x([`not-requested`,`unsupported-ask`]),RB=f({url:u().min(1),expiresAtMs:a(),transport:g(`forward-only`),served:k,servedAudio:IB,audioReason:LB.optional()}),zB=[.25,.5,1,1.5,2,4,8],BB=[.25,.5,1,1.5,2,4],VB=[.25,.5,1],HB=f({transport:x([`stream`,`file`]),seek:x([`forward`,`free`]),stepBack:C(),scrub:C(),rates:S(a().positive()).min(1).readonly()}),UB=f({state:x([`ok`,`sleeping`,`unreachable`,`no-storage`,`index-empty`]),reason:u().optional(),catalogAsOf:a().optional()}),WB=f({source:u(),label:u(),addonId:u().optional(),availability:UB}),GB={name:`videoclips`,scope:`device`,mode:`collection`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`widget`,widgetId:`host/clips-browser`,tab:`recording`,topTab:!0,label:`Clips`,order:100}},methods:{listClips:L(f({deviceId:a(),since:a(),until:a(),limit:a().int().positive().optional(),provider:u().min(1)}),S(kB).readonly(),{kind:`query`,auth:`protected`}),listSources:L(f({deviceId:a()}),S(WB).readonly(),{kind:`query`,auth:`protected`}),getClipPlayback:L(f({deviceId:a(),clipId:u(),profile:k.optional()}),AB,{kind:`query`,auth:`protected`}),readClipBytes:bh(f({deviceId:a(),clipId:u().min(1),provider:u().min(1),profile:k.optional(),maxBytes:a().int().positive().optional(),wake:jB.optional()}),PB,{kind:`query`,auth:`protected`}),offerClipBytes:bh(f({deviceId:a(),clipId:u().min(1),provider:u().min(1),profile:k.optional(),maxBytes:a().int().positive().optional(),wake:jB.optional()}),FB,{kind:`query`,auth:`protected`}),dialClipStream:bh(f({deviceId:a(),clipId:u().min(1),provider:u().min(1),profile:k.optional(),audio:IB.optional()}),RB,{kind:`query`,auth:`protected`}),getPlaybackOptions:bh(f({deviceId:a(),provider:u().min(1)}),HB,{kind:`query`,auth:`protected`})}},KB={stream:{transport:`stream`,seek:`forward`,stepBack:!1,scrub:!1,rates:BB},realtimeStream:{transport:`stream`,seek:`forward`,stepBack:!1,scrub:!1,rates:VB},file:{transport:`file`,seek:`free`,stepBack:!0,scrub:!0,rates:zB}},qB=f({staticDir:u()}),JB=f({version:u()}),YB={name:`viewer-ui`,scope:`system`,mode:`singleton`,internal:!0,methods:{getStaticDir:L(v(),qB,{auth:`admin`}),getVersion:L(v(),JB,{auth:`admin`})}},XB=f({viewportWidth:a().int().positive().optional(),viewportHeight:a().int().positive().optional(),devicePixelRatio:a().positive().optional(),downlinkMbps:a().nonnegative().optional(),prefersTier:u().optional()}).partial(),ZB=h(`kind`,[f({kind:g(`adaptive`)}),f({kind:g(`profile`),profile:k}),f({kind:g(`cam-stream`),camStreamId:u().min(1)})]),QB=f({id:u(),label:u(),target:ZB,codec:u().nullable(),resolution:f({width:a(),height:a()}).nullable(),status:x([`idle`,`connecting`,`streaming`,`error`,`stopped`]).nullable(),inputFps:a().nullable(),bitrateKbps:a().nullable()}),$B=f({cause:x([`loss`,`stall`,`healthy`]),tier:k.nullable(),forcedTranscodeDown:C(),lossRatio:a().nullable(),clientKbps:a().nullable(),stalledForMs:a().nullable(),serverSending:C().nullable(),at:a(),causeDetail:u().optional()}),eV=[`stall-building`,`delivery`,`no-evidence`,`warming`,`cooldown`,`capacity`,`try-unclean`,`try-backoff`,`trial`,`suspended`],tV=[`delivery`,`loss`,`rtt`,`shared-telemetry`],nV=f({code:u(),nextTier:k,deliveryRatio:a().nullable(),deliveryWindowMs:a().nullable(),climbDeliveryRatio:a(),capacityKbps:a().nullable(),probeKbps:a().nullable(),nextTierKbps:a().nullable(),capacityMargin:a(),neededKbps:a().nullable(),tryBlockedBy:u().nullable(),tryDeliveryRatio:a().optional(),tryMaxLossRatio:a().optional(),retryInMs:a().nullable(),lastRevert:f({tier:k,deliveryRatio:a().nullable(),stalled:C(),at:a()}).nullable(),trialForMs:a().nullable(),trialMs:a().nullable(),healthyForMs:a().nullable(),requiredHealthyMs:a().nullable(),since:a(),summary:u()}),rV=f({tier:k,failures:a().int().nonnegative()}),iV=f({sessionId:u(),alive:C(),observedAt:a(),brokerId:u().nullable(),camStreamId:u().nullable(),sourceKind:x([`native`,`derived`,`unknown`]),adaptive:C(),servedTier:k.nullable(),ingestNodeId:u().nullable(),ingestIsRemote:C().nullable(),sourceCodec:u().nullable(),negotiatedCodec:u().nullable(),egressLeg:x([`copy`,`transcode`,`unknown`]),brokerStatus:u().nullable(),brokerCodec:u().nullable(),brokerBitrateKbps:a().nullable(),brokerInputFps:a().nullable(),brokerUptimeMs:a().nullable(),rtpPacketsSent:a().nullable(),trackMode:x([`live`,`recorded`]).nullable(),lastDecision:$B.nullable(),tierFailures:S(rV),upgradeCount:a().nullable(),climbHold:nV.nullable().optional()}),aV={name:`webrtc-session`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,preferredProvider:`stream-broker`,deviceTypes:[R.Camera],methods:{listStreams:L(f({deviceId:a().int().nonnegative()}),S(QB)),createSession:L(f({deviceId:a().int().nonnegative(),target:ZB,hints:XB.optional(),relayOnly:C().optional(),consumerAttribution:G_.optional()}),f({sessionId:u(),sdpOffer:u()}),{kind:`mutation`}),handleOffer:L(f({deviceId:a().int().nonnegative(),target:ZB.optional(),sdpOffer:u(),sessionId:u().optional(),relayOnly:C().optional(),nonTrickle:C().optional(),disableTurn:C().optional(),disableIpv6:C().optional(),consumerAttribution:G_.optional(),hints:XB.optional(),talkback:C().optional()}),f({sessionId:u(),sdpAnswer:u()}),{kind:`mutation`}),handleAnswer:L(f({deviceId:a().int().nonnegative(),sessionId:u(),sdpAnswer:u()}),v(),{kind:`mutation`}),addIceCandidate:L(f({deviceId:a().int().nonnegative(),sessionId:u(),candidate:u(),sdpMid:u().nullable().optional(),sdpMLineIndex:a().int().nullable().optional()}),v(),{kind:`mutation`}),getIceCandidates:L(f({deviceId:a().int().nonnegative(),sessionId:u()}),f({candidates:S(f({candidate:u(),sdpMid:u().nullable(),sdpMLineIndex:a().int().nullable()})),done:C()}),{kind:`query`}),closeSession:L(f({deviceId:a().int().nonnegative(),sessionId:u()}),v(),{kind:`mutation`}),hasAdaptiveBitrate:L(f({deviceId:a().int().nonnegative(),profile:k}),C()),getSessionState:L(f({deviceId:a().int().nonnegative(),sessionId:u()}),f({pendingRenegotiation:f({target:ZB,epoch:a()}).nullable(),alive:C()})),applyDownlinkProbe:L(f({deviceId:a().int().nonnegative(),sessionId:u(),downlinkMbps:a().nonnegative()}),f({outcome:x([`switching`,`held`]),tier:k.nullable(),reason:u()}),{kind:`mutation`}),getSessionDebug:L(f({deviceId:a().int().nonnegative(),sessionId:u()}),iV,{kind:`query`})},mount:{kind:`server-provided`}},oV=f({childDeviceIds:S(a()).readonly(),hiddenChildIds:S(a()).readonly()}),sV={name:`accessories`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera,R.Hub,R.Switch,R.Light,R.Sensor,R.Thermostat,R.Cover,R.Lock,R.Fan,R.MediaPlayer,R.AlarmPanel,R.Generic],methods:{setChildHidden:L(f({deviceId:a().int().nonnegative(),childDeviceId:a().int().nonnegative(),hidden:C()}),v(),{kind:`mutation`,auth:`admin`})},events:{onAccessoriesChanged:{data:f({deviceId:a(),childDeviceIds:S(a()).readonly(),hiddenChildIds:S(a()).readonly()})},onChildVisibilityChanged:{data:f({deviceId:a(),childDeviceId:a(),hidden:C()})}},status:{schema:oV,kind:`command-driven`}},cV=x([`install`,`update`,`uninstall`,`restart`]),lV=x([`queued`,`fetching`,`staged`,`validating`,`applying`,`restarting`,`applied`,`done`,`failed`,`skipped`]),uV=x([`framework`,`addon`]),dV=f({tsMs:a(),nodeId:u(),packageName:u(),phase:lV,message:u()}),fV=f({taskId:u(),nodeId:u(),packageName:u(),fromVersion:u().nullable(),toVersion:u(),target:uV,phase:lV,stagedPath:u().nullable(),attempts:a(),steps:S(dV),error:u().nullable(),startedAtMs:a().nullable(),finishedAtMs:a().nullable()}),pV=x([`running`,`completed`,`failed`,`partially-failed`,`cancelled`]),mV=x([`single`,`bulk`,`cluster`]),hV=f({jobId:u(),kind:cV,createdAtMs:a(),createdBy:u(),scope:mV,tasks:S(fV),state:pV,schemaVersion:g(1)}),gV=x([`debug`,`info`,`warn`,`error`]),_V=x([`off`,`latest`,`beta`]),vV=x([`off`,`latest`,`beta`,`inherit`]),yV=f({id:u(),name:u().optional(),version:u().optional(),description:u().optional(),icon:u().optional(),color:u().optional(),capabilities:S(s()).readonly().optional(),packageName:u(),packageVersion:u(),packageDisplayName:u().optional(),bundle:f({displayName:u(),description:u().optional(),icon:u().optional()}).optional(),protected:C().optional(),removable:C().optional()}),bV=f({pid:a().optional(),mode:u(),state:u(),reason:u().optional()}),xV=f({phase:x([`pending`,`healthy`,`failed`]),retryCount:a(),firstFailureAt:a().nullable(),lastAttemptAt:a().nullable(),lastError:f({message:u(),stack:u().optional()}).nullable(),nextRetryAt:a().nullable(),alertEmitted:C(),retrying:C(),inGracePeriod:C()}),SV=f({manifest:yV,declaration:s().optional(),source:u(),installSource:u().optional(),process:bV.optional(),hasBackup:C().optional(),health:xV.nullable().optional()}),CV=f({name:u(),version:u(),dir:u(),installSource:u().optional()}),wV=f({name:u(),currentVersion:u(),latestVersion:u(),category:x([`addon`,`core`]),requiresRestart:C(),isSystem:C()}),TV=f({version:u(),publishedAt:u(),deprecated:u().optional(),distTags:S(u()).readonly()}),EV=f({name:u(),version:u(),description:u(),keywords:S(u()).readonly(),publishedAt:u(),author:u(),installed:C(),installedVersion:u().optional(),capabilities:S(u()).readonly().nullable()}),DV=f({channel:_V,intervalSeconds:a(),updateCheckIntervalSeconds:a()}),OV=vV,kV=s(),AV=s(),jV=s(),MV=x([`uninstalled`,`not-installed`,`refused`,`failed`,`pending-reconnect`]),NV=f({nodeId:u(),outcome:MV,error:u().optional(),addonIds:S(u()).readonly(),runnersStopped:S(u()).readonly(),warnings:S(u()).readonly()}),PV=f({success:C(),packageName:u(),results:S(NV).readonly()}),FV=f({packageName:u(),nodeId:u(),nodeName:u(),isHub:C(),isOnline:C(),version:u().nullable(),addonIds:S(u()).readonly(),source:x([`live`,`recorded`]),onHub:C()}),IV=f({installations:S(FV).readonly(),unreachable:S(f({nodeId:u(),error:u()})).readonly()}),LV=x([`queued`,`updating`,`done`,`done-pending-restart`,`failed`]),RV=f({name:u(),isSystem:C(),fromVersion:u(),toVersion:u(),status:LV,error:u().optional(),startedAtMs:a().optional(),completedAtMs:a().optional()}),zV=x([`regular`,`system`,`restarting`,`finalizing`]);f({id:u(),nodeId:u(),startedAtMs:a(),completedAtMs:a().optional(),total:a(),completed:a(),failed:a(),current:u().nullable(),phase:zV,cancelled:C(),items:S(RV).readonly()});var BV=f({packageName:u(),currentVersion:u(),latestVersion:u().nullable(),hasUpdate:C(),description:u().optional(),buildId:u().nullable()}),VV=f({timestamp:u(),level:u(),message:u(),scope:u().optional()}),HV=s(),UV=f({addonId:u().min(1),action:u().min(1),input:s()}),WV={name:`addons`,scope:`system`,mode:`singleton`,nodeIdMode:`data`,methods:{list:L(f({nodeId:u().optional()}).optional(),S(SV).readonly()),getLogs:L(f({addonId:u(),limit:a().min(1).max(500).default(100),level:gV.optional()}),S(HV)),listPackages:L(v(),S(CV).readonly()),installPackage:L(f({packageName:u(),version:u().optional()}),AV,{kind:`mutation`,auth:`admin`}),installFromWorkspace:L(f({packageName:u()}),AV,{kind:`mutation`,auth:`admin`}),isWorkspaceAvailable:L(v(),C()),listWorkspacePackages:L(v(),S(s()).readonly()),uninstallPackage:L(f({packageName:u().min(1),nodeId:u().optional(),everywhere:C().optional()}),PV,{kind:`mutation`,auth:`admin`}),listInstallations:L(f({packageName:u().optional()}),IV,{auth:`admin`}),reloadPackages:L(v(),jV,{kind:`mutation`,auth:`admin`}),searchAvailable:L(f({query:u().optional(),capability:u().optional()}),S(EV)),listUpdates:L(f({nodeId:u().optional()}),S(wV).readonly(),{auth:`admin`}),updatePackage:L(f({name:u().min(1),version:u().optional(),nodeId:u().optional()}),s(),{kind:`mutation`,auth:`admin`}),rollbackPackage:L(f({name:u().min(1)}),f({rolledBackTo:u().nullable()}),{kind:`mutation`,auth:`admin`}),forceRefresh:L(f({nodeId:u().optional()}),s(),{kind:`mutation`,auth:`admin`}),restartServer:L(f({confirm:g(!0)}),s(),{kind:`mutation`,auth:`admin`}),getLastRestart:L(v(),f({kind:x([`framework-update`,`manual`,`system`,`framework-bulk-update`]),packageName:u().optional(),fromVersion:u().optional(),toVersion:u().optional(),requestedBy:u().optional(),requestedAt:a()}).nullable(),{auth:`admin`}),listFrameworkPackages:L(v(),S(BV).readonly(),{auth:`admin`}),listCapabilityProviders:L(f({capName:u().min(1)}),S(f({addonId:u(),mode:x([`singleton`,`collection`]),isActive:C()})).readonly()),setCapabilityProviderEnabled:L(f({capName:u().min(1),addonId:u().min(1),enabled:C()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getVersions:L(f({name:u()}),S(TV).readonly()),restartAddon:L(f({addonId:u()}),kV,{kind:`mutation`,auth:`admin`}),retryLoad:L(f({packageName:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),getAutoUpdateSettings:L(v(),DV,{auth:`admin`}),setAutoUpdateSettings:L(f({channel:_V,intervalSeconds:a().min(300).max(86400).optional(),updateCheckIntervalSeconds:a().min(900).max(604800).optional()}),s(),{kind:`mutation`,auth:`admin`}),getAddonAutoUpdate:L(f({addonId:u()}),OV,{auth:`admin`}),setAddonAutoUpdate:L(f({addonId:u(),channel:vV}),s(),{kind:`mutation`,auth:`admin`}),applyAutoUpdateToAll:L(f({channel:_V}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),custom:L(UV,s(),{kind:`mutation`}),startJob:L(f({kind:x([`install`,`update`,`uninstall`,`restart`]),targets:S(f({name:u().min(1),version:u().min(1)})).min(1),nodeIds:S(u()).optional()}),f({jobId:u()}),{kind:`mutation`,auth:`admin`}),getJob:L(f({jobId:u()}),hV.nullable(),{auth:`admin`}),listJobs:L(f({activeOnly:C().optional()}),S(hV),{auth:`admin`}),cancelJob:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),onAddonLogs:L(f({addonId:u(),level:gV.optional()}),VV,{kind:`subscription`})},mount:{kind:`server-provided`}},GV=f({co2Ppm:a().min(0).optional(),vocPpb:a().min(0).optional(),pm25:a().min(0).optional(),pm10:a().min(0).optional(),aqi:a().optional(),lastFetchedAt:a(),unit:u().optional(),precision:a().int().min(0).max(10).optional()}),KV={name:`air-quality-sensor`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:GV,kind:`push`},runtimeState:GV,durability:`restored`,history:{fields:{co2Ppm:{kind:`gauge`,unit:`ppm`,deadband:5},vocPpb:{kind:`gauge`,unit:`ppb`,deadband:5},pm25:{kind:`gauge`,unit:`ug/m3`,deadband:1},pm10:{kind:`gauge`,unit:`ug/m3`,deadband:1},aqi:{kind:`gauge`,unit:`count`,deadband:1}}},volatileStateFields:[`lastFetchedAt`]},qV=f({lux:a().min(0),lastFetchedAt:a(),unit:u().optional(),precision:a().int().min(0).max(10).optional()}),JV={name:`ambient-light-sensor`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:qV,kind:`push`},runtimeState:qV,durability:`restored`,history:{fields:{lux:{kind:`gauge`,unit:`lx`,deadbandPct:10,minIntervalMs:6e4}}},volatileStateFields:[`lastFetchedAt`]},YV=f({className:u(),hits:a().int().nonnegative(),avgScore:a().min(0).max(1),peakScore:a().min(0).max(1)}),XV=f({ts:a().int(),windowSec:a().int().positive(),level:f({rms:a(),dbfs:a()}),peakDbfs:a(),avgDbfs:a(),current:f({className:u(),score:a().min(0).max(1),timestamp:a().int()}).nullable(),byClass:S(YV).readonly()}),ZV=f({ts:a().int(),dbfs:a().nullable(),peakDbfs:a(),avgDbfs:a(),topClass:u().nullable(),topScore:a().min(0).max(1).nullable()}),QV=f({points:S(ZV).readonly(),effectiveSampleEveryMs:a().int().positive(),windowMsActual:a().int().nonnegative()}),$V={name:`audio-metrics`,scope:`device`,mode:`singleton`,deviceTypes:[R.Camera],methods:{getCurrentSnapshot:L(f({deviceId:a()}),XV.nullable()),getHistory:L(f({deviceId:a(),windowSec:a().int().positive().optional(),sampleEveryMs:a().int().positive().optional()}),QV)},runtimeState:XV,durability:`session`,history:`none`},eH=f({enabled:C(),isRunning:C(),lastTriggeredAt:a(),lastError:u().nullable(),lastChangedAt:a()}),tH={name:`automation-control`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Automation],methods:{enable:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`admin`}),disable:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`admin`}),trigger:L(f({deviceId:a().int().nonnegative(),skipCondition:C().optional()}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:eH,kind:`push`},runtimeState:eH,durability:`session`,history:`none`},nH=f({percentage:a().min(0).max(100).nullable(),charging:x([`dc`,`solar`,`none`,`unknown`]),sleeping:C(),lastUpdated:a(),lastContactAt:a().optional(),lastFullRefreshAt:a().optional(),binary:C().optional()}),rH={name:`battery`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera,R.Sensor,R.Button,R.Switch,R.PetFeeder,R.Container,R.Thermostat],methods:{wakeForStream:L(f({deviceId:a(),timeoutMs:a().int().min(500).max(3e4).default(8e3)}),f({awoke:C(),durationMs:a()}),{kind:`mutation`})},composedMethods:{wakeForStream:{kind:`answer`,value:{awoke:!1,durationMs:0}}},events:{onStatusChanged:{data:f({deviceId:a(),status:nH})}},status:{schema:nH,kind:`push`,empty:{percentage:null,charging:`unknown`,sleeping:!1,lastUpdated:0}},runtimeState:nH,durability:`restored`,history:{fields:{percentage:{kind:`gauge`,unit:`%`}}},volatileStateFields:[`lastUpdated`]},iH=f({on:C(),lastChangedAt:a()}),aH={name:`binary`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:iH,kind:`push`},runtimeState:iH,durability:`restored`,history:{fields:{on:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},oH=f({percentage:a().min(0).max(100),lastChangedAt:a()}),sH={name:`brightness`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Light],methods:{setBrightness:L(f({deviceId:a().int().nonnegative(),percentage:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`})},events:{onBrightnessChanged:{data:f({deviceId:a(),percentage:a().min(0).max(100),lastChangedAt:a()})}},status:{schema:oH,kind:`command-driven`},runtimeState:oH,durability:`session`,history:{fields:{percentage:{kind:`gauge`,unit:`%`,minIntervalMs:0}}}},cH={name:`button`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Button],methods:{press:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`})}},lH=x([`ha`,`addon`]),uH=f({id:u().min(1),name:u().min(1),source:lH,enabled:C()}),dH=f({id:u().min(1),calendarId:u().min(1),title:u(),startMs:a().int(),endMs:a().int(),allDay:C().optional(),description:u().optional(),location:u().optional()}),fH=f({calendarIds:S(u().min(1)).max(64).optional(),startMs:a().int(),endMs:a().int()}),pH={name:`calendar-source`,scope:`system`,mode:`collection`,internal:!0,providerKind:`calendar`,methods:{listCalendars:L(v(),S(uH).readonly(),{auth:`admin`}),listEvents:L(fH,S(dH).readonly(),{auth:`admin`})}};function mH(e){let t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()).getTime()}function hH(e){if(e.allDay!==!0)return{startMs:e.startMs,endMs:e.endMs};let t=mH(e.startMs),n=mH(e.endMs);if(n>t)return{startMs:t,endMs:n};let r=new Date(t);return{startMs:t,endMs:new Date(r.getFullYear(),r.getMonth(),r.getDate()+1).getTime()}}function gH(e,t){let n=new Date(t),r=new Date(n.getFullYear(),n.getMonth(),n.getDate()+1).getTime(),i=hH(e);return i.startMs<r&&i.endMs>t}var _H=u().regex(/^#[0-9A-Fa-f]{6}$/,`expected #RRGGBB`),vH=uH.extend({id:u().min(1),providerAddonId:u().min(1).optional(),defaultColor:_H,color:_H,visible:C()}),yH=f({visible:C().optional(),color:_H.optional()}),bH=f({calendars:y(u(),yH)}),xH=f({calendarId:u().min(1),visible:C().optional(),color:_H.nullable().optional()}),SH={name:`calendars`,scope:`system`,mode:`singleton`,methods:{listCalendars:L(v(),S(vH).readonly(),{auth:`admin`}),listEvents:L(fH,S(dH).readonly(),{auth:`admin`}),getPreferences:L(f({}),bH,{auth:`admin`,caller:`required`}),setCalendarPreference:L(xH,bH,{auth:`admin`,kind:`mutation`,caller:`required`})}},CH=f({host:u(),port:a().int().positive().optional(),onvifPort:a().int().positive().optional(),rtspPort:a().int().positive().optional(),https:C().optional(),username:u().optional(),password:u().optional(),onvifProfile:u().optional()}),wH=f({host:u(),port:a().int().positive().nullable(),onvifPort:a().int().positive().nullable(),rtspPort:a().int().positive().nullable(),https:C().nullable(),hasUsername:C(),hasPassword:C(),onvifProfile:u().nullable()}),TH={name:`camera-credentials`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],methods:{getCredentials:L(f({deviceId:a()}),CH.nullable(),{kind:`query`,auth:`admin`})},status:{schema:wH,kind:`command-driven`}},EH=f({x:a().min(0).max(1),y:a().min(0).max(1),width:a().gt(0).max(1),height:a().gt(0).max(1)}),DH=f({deviceId:a().int().positive(),source:EH,cell:EH}),OH=f({profile:x([`high`,`mid`,`low`]),offered:C(),missingSources:S(a().int().positive()),canvas:u(),published:C()}),kH=f({instanceId:u(),deviceId:a().int().nonnegative(),name:u(),fps:a().int(),cells:S(DH),profiles:S(OH)}),AH=f({deviceId:a().int().nonnegative(),name:u().min(1).max(160).optional(),fps:a().int().min(1).max(60).optional(),publishedProfiles:S(x([`high`,`mid`,`low`])).max(3).optional(),cells:S(DH).max(16)}),jH={name:`camera-grid-layout`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],exposesDeviceSettings:!0,methods:{getLayout:L(f({deviceId:a().int().nonnegative()}),kH.nullable(),{auth:`admin`}),saveLayout:L(AH,kH,{kind:`mutation`,auth:`admin`})}},MH=f({detected:C(),lastChangedAt:a()}),NH={name:`carbon-monoxide`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:MH,kind:`push`},runtimeState:MH,durability:`restored`,history:{fields:{detected:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},PH=x([`off`,`heat`,`cool`,`auto`,`heat_cool`,`fan_only`,`dry`]),FH=f({mode:PH,availableModes:S(PH),fanMode:u(),availableFanModes:S(u()),preset:u(),availablePresets:S(u()),target:a().nullable(),targetHigh:a().nullable(),targetLow:a().nullable(),targetHumidity:a().min(0).max(100).nullable(),currentTemp:a().nullable(),currentHumidity:a().min(0).max(100).nullable(),swingVertical:C().nullable(),swingHorizontal:C().nullable(),minTemp:a().nullable().optional(),maxTemp:a().nullable().optional(),tempStep:a().positive().nullable().optional(),lastFetchedAt:a()}),IH={name:`climate-control`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Thermostat,R.Climate],methods:{setMode:L(f({deviceId:a().int().nonnegative(),mode:PH}),v(),{kind:`mutation`,auth:`protected`}),setFanMode:L(f({deviceId:a().int().nonnegative(),fanMode:u().min(1)}),v(),{kind:`mutation`,auth:`protected`}),setPreset:L(f({deviceId:a().int().nonnegative(),preset:u().min(1)}),v(),{kind:`mutation`,auth:`protected`}),setTarget:L(f({deviceId:a().int().nonnegative(),target:a()}),v(),{kind:`mutation`,auth:`protected`}),setTargetRange:L(f({deviceId:a().int().nonnegative(),targetLow:a(),targetHigh:a()}),v(),{kind:`mutation`,auth:`protected`}),setTargetHumidity:L(f({deviceId:a().int().nonnegative(),targetHumidity:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`}),setSwingVertical:L(f({deviceId:a().int().nonnegative(),on:C()}),v(),{kind:`mutation`,auth:`protected`}),setSwingHorizontal:L(f({deviceId:a().int().nonnegative(),on:C()}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:FH,kind:`push`},runtimeState:FH,durability:`session`,history:{fields:{currentTemp:{kind:`gauge`,unit:`°C`,deadband:.1},currentHumidity:{kind:`gauge`,unit:`%`,deadband:.5},target:{kind:`gauge`,unit:`°C`,minIntervalMs:0},targetHigh:{kind:`gauge`,unit:`°C`,minIntervalMs:0},targetLow:{kind:`gauge`,unit:`°C`,minIntervalMs:0}}}},LH=f({r:a().int().min(0).max(255),g:a().int().min(0).max(255),b:a().int().min(0).max(255)}),RH=f({h:a().min(0).max(360),s:a().min(0).max(100),v:a().min(0).max(100)}),zH=h(`mode`,[f({mode:g(`rgb`),rgb:LH}),f({mode:g(`hsv`),hsv:RH}),f({mode:g(`mired`),mireds:a().int().min(50).max(1e3)})]),BH=f({mode:x([`rgb`,`hsv`,`mired`]),rgb:LH.optional(),hsv:RH.optional(),mireds:a().int().optional(),lastChangedAt:a()}),VH={name:`color`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Light],methods:{setColor:L(f({deviceId:a().int().nonnegative(),color:zH}),v(),{kind:`mutation`,auth:`protected`})},events:{onColorChanged:{data:f({deviceId:a(),mode:x([`rgb`,`hsv`,`mired`]),rgb:LH.optional(),hsv:RH.optional(),mireds:a().int().optional(),lastChangedAt:a()})}},status:{schema:BH,kind:`command-driven`},runtimeState:BH,durability:`session`,history:`none`},HH=2e4,UH=h(`outcome`,[f({outcome:g(`validated`),latencyMs:a().nonnegative().optional(),detail:u().optional()}).strict(),f({outcome:g(`rejected`),error:u()}).strict(),f({outcome:g(`inconclusive`),error:u()}).strict()]),WH=f({settings:y(u(),s())}),GH=f({label:u()}),KH={name:`connection-test`,scope:`system`,mode:`collection`,methods:{testSettings:L(WH,UH,{kind:`mutation`,auth:`admin`}),describeTest:L(v(),GH,{auth:`admin`})}},qH=f({connected:C(),lastChangedAt:a()}),JH={name:`connectivity`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:qH,kind:`push`},runtimeState:qH,durability:`restored`,history:`none`,volatileStateFields:[`lastChangedAt`]},YH=x([`days`,`hours`,`cycles`]),XH=f({value:a().min(0).nullable(),unit:YH}),ZH=f({key:u().min(1),label:u().min(1),level:a().min(0).max(100).nullable(),status:x([`ok`,`replace`]).nullable(),lastResetAt:a().nullable(),resettable:C(),remaining:XH.optional()}),QH=f({items:S(ZH),lastChangedAt:a()}),$H={name:`consumables`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:Object.values(R),deviceConfig:{ui:{kind:`widget`,widgetId:`host/consumables-panel`,tab:`consumables`,topTab:!0,label:`Consumables`,order:5}},methods:{reset:L(f({deviceId:a().int().nonnegative(),key:u().min(1)}),v(),{kind:`mutation`,auth:`admin`})},composedMethods:{reset:{kind:`refuse`,reason:`a composed consumable is not resettable until commands (forward) arrive — slice 3`}},status:{schema:QH,kind:`push`,empty:{items:[],lastChangedAt:0},itemArray:{path:`items`,keyField:`key`,labelField:`label`,itemSchema:ZH,emptyItem:{key:``,label:``,level:null,status:null,lastResetAt:null,resettable:!1}}},runtimeState:QH.extend({lastFetchedAt:a()}),durability:`restored`,history:`none`,volatileStateFields:[`lastChangedAt`,`lastFetchedAt`]},eU=f({entryOpen:C(),lastChangedAt:a()}),tU={name:`contact`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:eU,kind:`push`},runtimeState:eU,durability:`restored`,history:{fields:{entryOpen:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},nU=x([`numeric`,`select`,`text`,`datetime`]),rU=f({kind:nU,value:p([a(),u()]),options:S(u()),lastChangedAt:a(),unit:u().optional(),min:a().optional(),max:a().optional(),step:a().optional(),precision:a().int().min(0).max(10).optional(),format:x([`date`,`time`,`datetime`]).optional()}),iU=h(`kind`,[f({kind:g(`numeric`),value:a()}),f({kind:g(`select`),value:u().min(1)}),f({kind:g(`text`),value:u()}),f({kind:g(`datetime`),value:u().min(1)})]),aU={name:`control`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Control],methods:{setValue:L(f({deviceId:a().int().nonnegative(),control:iU}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:rU,kind:`push`},runtimeState:rU,durability:`session`,history:`none`},oU=x([`open`,`opening`,`closing`,`closed`,`stopped`]),sU=f({state:oU,position:a().min(0).max(100).nullable(),tiltPosition:a().min(0).max(100).nullable(),lastChangedAt:a()}),cU={name:`cover`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Cover],methods:{open:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),close:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),stop:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),setPosition:L(f({deviceId:a().int().nonnegative(),position:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`}),setTiltPosition:L(f({deviceId:a().int().nonnegative(),tiltPosition:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:sU,kind:`push`},runtimeState:sU,durability:`restored`,history:{fields:{position:{kind:`gauge`,unit:`%`,minIntervalMs:0}}},volatileStateFields:[`lastChangedAt`]},lU=x([`auto`,`day`,`night`,`schedule`]),uU=f({min:a(),max:a(),step:a()}),dU=f({mode:lU,sensitivity:a().optional(),switchDelaySec:a().optional(),lastFetchedAt:a()}),fU=f({modes:S(lU),supportsSensitivity:C(),sensitivity:uU.optional(),supportsSwitchDelay:C(),switchDelaySec:uU.optional()}),pU=f({mode:lU.optional(),sensitivity:a().optional(),switchDelaySec:a().optional()}),mU={name:`day-night`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`derived-form`,builderId:`day-night`,tab:`image`}},methods:{getOptions:L(f({deviceId:a()}),fU),setSettings:L(f({deviceId:a(),settings:pU}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:dU,kind:`poll`},runtimeState:dU,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},hU=f({id:u(),label:u(),protocol:x([`rtsp`,`rtmp`,`annexb`,`http-mjpeg`,`webrtc`,`custom`]),url:u().optional(),resolution:f({width:a(),height:a()}).optional(),fps:a().optional(),bitrate:a().optional(),codec:u().optional(),profileHint:k.optional(),sdp:u().optional()}),gU=f({key:u(),value:s()}),_U=f({source:u(),data:y(u(),s())}),vU={name:`device-ops`,scope:`device`,deviceNative:!0,mode:`singleton`,methods:{getStreamSources:L(f({deviceId:a()}),S(hU)),getConfigEntries:L(f({deviceId:a()}),S(gU)),setConfig:L(f({deviceId:a(),values:y(u(),s())}),v(),{kind:`mutation`,auth:`admin`}),runAction:L(f({deviceId:a(),action:u().min(1),input:s()}),s(),{kind:`mutation`}),removeDevice:L(f({deviceId:a()}),v(),{kind:`mutation`,auth:`admin`}),getSettingsSchema:L(f({deviceId:a()}),s().nullable()),getRawState:L(f({deviceId:a()}),_U.nullable(),{auth:`protected`})}},yU=f({online:C(),lastChangedAt:a()}),bU={name:`device-status`,scope:`device`,deviceNative:!0,mode:`singleton`,methods:{},events:{onStatusChanged:{data:f({deviceId:a(),status:yU})}},status:{schema:yU,kind:`push`},runtimeState:yU,durability:`restored`,history:{fields:{online:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},xU=x([`idle`,`running`,`paused`,`finished`,`error`,`unavailable`]),SU=x([`Inactive`,`Ready`,`DelayedStart`,`Run`,`Pause`,`ActionRequired`,`Finished`,`Error`,`Aborting`]),CU=x([`available`,`offline`,`description-missing`]),wU=x([`ok`,`low`,`empty`]),TU=f({availability:CU,state:xU,operationState:SU.nullable(),program:u().nullable(),selectedProgram:u().nullable(),availablePrograms:S(u()),remainingSeconds:a().int().nonnegative().nullable(),delayedStartSeconds:a().int().nonnegative().nullable(),progressPercent:a().min(0).max(100).nullable(),doorOpen:C().nullable(),doorLocked:C().nullable(),remoteStartAllowed:C().nullable(),remoteControlActive:C().nullable(),localControlActive:C().nullable(),powerOn:C().nullable(),powerState:u().nullable(),saltLevel:wU.nullable(),rinseAidLevel:wU.nullable(),halfLoad:C().nullable(),hygienePlus:C().nullable(),extraDry:C().nullable(),intensiveZone:C().nullable(),varioSpeedPlus:C().nullable(),childLock:C().nullable(),activeEvents:S(u()),errorCode:a().nullable(),errorLabel:u().nullable(),lastFetchedAt:a()}),X=a().int().nonnegative(),EU=p([C(),u(),a()]),DU=x([`none`,`read`,`readWrite`,`writeOnly`,`readStatic`]),OU=f({key:u(),name:u(),type:x([`boolean`,`number`,`enum`,`string`]),access:DU,available:C(),unit:u().nullable(),min:a().nullable(),max:a().nullable(),step:a().nullable(),enumValues:S(u()).nullable(),defaultValue:EU.nullable()}),kU=f({key:u(),name:u(),available:C(),options:S(OU)}),AU=f({availability:CU,supportsStart:C(),supportsPause:C(),supportsResume:C(),supportsStop:C(),supportsPower:C(),programs:S(kU),options:S(OU)}),jU={name:`dishwasher`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Dishwasher],methods:{start:L(f({deviceId:X,program:u().min(1).optional(),options:y(u(),EU).optional()}),v(),{kind:`mutation`,auth:`protected`}),pause:L(f({deviceId:X}),v(),{kind:`mutation`,auth:`protected`}),resume:L(f({deviceId:X}),v(),{kind:`mutation`,auth:`protected`}),stop:L(f({deviceId:X}),v(),{kind:`mutation`,auth:`protected`}),setProgram:L(f({deviceId:X,program:u().min(1)}),v(),{kind:`mutation`,auth:`protected`}),setPower:L(f({deviceId:X,on:C()}),v(),{kind:`mutation`,auth:`protected`}),setHalfLoad:L(f({deviceId:X,on:C()}),v(),{kind:`mutation`,auth:`protected`}),setHygienePlus:L(f({deviceId:X,on:C()}),v(),{kind:`mutation`,auth:`protected`}),setExtraDry:L(f({deviceId:X,on:C()}),v(),{kind:`mutation`,auth:`protected`}),setIntensiveZone:L(f({deviceId:X,on:C()}),v(),{kind:`mutation`,auth:`protected`}),setVarioSpeedPlus:L(f({deviceId:X,on:C()}),v(),{kind:`mutation`,auth:`protected`}),setChildLock:L(f({deviceId:X,on:C()}),v(),{kind:`mutation`,auth:`protected`}),setOption:L(f({deviceId:X,key:u().min(1),value:EU}),v(),{kind:`mutation`,auth:`protected`}),getOptions:L(f({deviceId:X}),AU,{auth:`protected`})},status:{schema:TU,kind:`poll`},runtimeState:TU,durability:`session`,history:{fields:{progressPercent:{kind:`gauge`,unit:`%`,deadband:2}}}},MU=f({lastPressedAt:a().nullable(),pressCountSinceStart:a()}),NU=f({deviceId:a(),timestamp:a()}),PU={name:`doorbell`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Button,R.Camera],methods:{},events:{onPressed:{data:NU,fromState:{field:`lastPressedAt`,on:`advance`}}},status:{schema:MU,kind:`push`},runtimeState:MU,durability:`restored`,history:`none`},FU=x([`date`,`time`,`datetime`]),IU=f({value:u(),format:FU.optional(),lastFetchedAt:a()}),LU={name:`enum-sensor`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:IU,kind:`push`},runtimeState:IU,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},RU=f({deviceId:a(),eventType:u(),data:y(u(),s()).nullable(),timestamp:a(),seq:a()}),zU=f({eventTypes:S(u()),lastEvent:RU.nullable(),eventCountSinceStart:a()}),BU={name:`event-emitter`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.EventEmitter],methods:{},events:{onEvent:{data:RU}},status:{schema:zU,kind:`push`},runtimeState:zU,durability:`session`,history:`none`},VU=f({id:u(),name:u(),sampleCount:a().int().nonnegative(),coverMediaId:a().int().optional(),coverBase64:u().optional()}),HU=f({id:u(),source:x([`detected`,`photo`]),addedAt:a().int(),deviceId:a().int().optional(),base64:u().optional()}),UU=f({sampleId:u(),enrolledAt:a().int(),deviceId:a().int().optional(),source:x([`detected`,`photo`]),mediaId:a().int().optional(),comparable:C(),selfMean:a().nullable(),bestForeign:f({identityId:u(),name:u(),score:a()}).optional(),suspicion:a()}),WU=f({identityId:u(),name:u(),modelId:u(),totalSamples:a().int(),comparableSamples:a().int(),flagged:a().int(),flagThreshold:a(),rows:S(UU).readonly()}),GU=f({faceId:u(),deviceId:a().int(),trackId:u(),timestamp:a().int(),recognizedIdentityId:u().optional(),identityName:u().optional(),assigned:C(),base64:u().optional(),cropUrl:u().optional(),faceBbox:ag.optional(),keyFrameMediaId:a().int().optional(),bestMatchScore:a().optional(),nativeFaceShortSidePx:a().optional(),suggestedIdentityId:u().optional(),suggestedMatchScore:a().optional()}),KU=x([`unassigned`,`recognized`,`identified`,`all`]),qU=x([`timestamp`,`suggestionConfidence`]),JU=x([`asc`,`desc`]),YU=f({faceIds:S(u()).readonly(),representativeFaceId:u(),size:a().int(),cohesion:a()}),XU=f({mediaId:a().int(),kind:u(),url:u(),sizeBytes:a(),timestamp:a()}),ZU={name:`face-gallery`,scope:`system`,mode:`singleton`,methods:{listIdentities:L(f({includeCrops:C().optional()}).optional(),S(VU).readonly()),createIdentity:L(f({name:u().min(1)}),VU,{kind:`mutation`,auth:`admin`}),renameIdentity:L(f({id:u(),name:u().min(1)}),v(),{kind:`mutation`,auth:`admin`}),deleteIdentity:L(f({id:u()}),v(),{kind:`mutation`,auth:`admin`}),listIdentitySamples:L(f({identityId:u()}),S(HU).readonly()),auditIdentitySamples:L(f({identityId:u().min(1)}),WU,{auth:`admin`}),removeSample:L(f({identityId:u(),sampleId:u()}),v(),{kind:`mutation`,auth:`admin`}),listRecentFaces:L(f({deviceId:a().int().optional(),deviceIds:S(a().int()).optional(),limit:a().int().positive().optional(),filter:KU.optional(),since:a().int().optional(),until:a().int().optional(),sortBy:qU.optional(),sortDirection:JU.optional(),includeCrops:C().optional()}).optional(),S(GU).readonly()),getFaceByTrack:L(f({deviceId:a().int(),trackId:u()}),GU.nullable()),getFaceMedia:L(f({faceId:u()}),S(XU).readonly()),assignFace:L(f({faceId:u(),identityId:u()}),v(),{kind:`mutation`,auth:`admin`}),unassignFace:L(f({faceId:u()}),v(),{kind:`mutation`,auth:`admin`}),deleteFace:L(f({faceId:u()}),v(),{kind:`mutation`,auth:`admin`}),assignFaces:L(f({faceIds:S(u()).min(1),identityId:u()}),f({assigned:a().int(),failed:S(u()).readonly()}),{kind:`mutation`,auth:`admin`}),unassignFaces:L(f({faceIds:S(u()).min(1)}),f({unassigned:a().int(),failed:S(u()).readonly()}),{kind:`mutation`,auth:`admin`}),suggestFaceClusters:L(f({threshold:a().min(0).max(1).optional(),minClusterSize:a().int().min(2).optional(),maxClusters:a().int().positive().optional(),limit:a().int().positive().optional(),maxFacesScanned:a().int().positive().optional()}).optional(),S(YU).readonly())}},QU=x([`forward`,`reverse`]),$U=f({percentage:a().min(0).max(100).nullable(),percentageStep:a().positive().optional(),preset:u(),availablePresets:S(u()),direction:QU.nullable(),oscillating:C().nullable(),lastChangedAt:a()}),eW={name:`fan-control`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Fan],methods:{setPercentage:L(f({deviceId:a().int().nonnegative(),percentage:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`}),setPreset:L(f({deviceId:a().int().nonnegative(),preset:u().min(1)}),v(),{kind:`mutation`,auth:`protected`}),setDirection:L(f({deviceId:a().int().nonnegative(),direction:QU}),v(),{kind:`mutation`,auth:`protected`}),setOscillating:L(f({deviceId:a().int().nonnegative(),oscillating:C()}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:$U,kind:`push`},runtimeState:$U,durability:`session`,history:{fields:{percentage:{kind:`gauge`,unit:`%`,minIntervalMs:0},oscillating:{kind:`boolean`}}}},tW=f({flags:y(u(),s()),deviceType:u().nullable(),model:u().nullable(),channelCount:a().nullable(),lastProbedAt:a(),lastFetchedAt:a()}),nW={name:`feature-probe`,scope:`device`,deviceNative:!0,mode:`singleton`,methods:{},events:{onProbeChanged:{data:f({deviceId:a(),status:tW})}},status:{schema:tW,kind:`push`},runtimeState:tW,durability:`session`,history:`none`},rW=f({flooded:C(),lastChangedAt:a()}),iW={name:`flood`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:rW,kind:`push`},runtimeState:rW,durability:`restored`,history:{fields:{flooded:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},aW=f({detected:C(),lastChangedAt:a()}),oW={name:`gas`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:aW,kind:`push`},runtimeState:aW,durability:`restored`,history:{fields:{detected:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},sW=f({position:a().min(0).max(100).nullable(),lastFetchedAt:a()}),cW={name:`heating-valve`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Thermostat],methods:{},status:{schema:sW,kind:`push`},runtimeState:sW,durability:`session`,history:{fields:{position:{kind:`gauge`,unit:`%`,deadband:1}}},volatileStateFields:[`lastFetchedAt`]},lW=f({on:C(),currentHumidity:a().min(0).max(100).nullable(),targetHumidity:a().min(0).max(100).nullable(),mode:u().nullable(),availableModes:S(u()),action:u().nullable(),minHumidity:a().nullable(),maxHumidity:a().nullable(),lastChangedAt:a()}),uW={name:`humidifier`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Humidifier],methods:{setOn:L(f({deviceId:a().int().nonnegative(),on:C()}),v(),{kind:`mutation`,auth:`protected`}),setTargetHumidity:L(f({deviceId:a().int().nonnegative(),humidity:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`}),setMode:L(f({deviceId:a().int().nonnegative(),mode:u().min(1)}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:lW,kind:`push`},runtimeState:lW,durability:`session`,history:{fields:{currentHumidity:{kind:`gauge`,unit:`%`,deadband:.5},on:{kind:`boolean`}}}},dW=f({percent:a().min(0).max(100),lastFetchedAt:a(),unit:u().optional(),precision:a().int().min(0).max(10).optional()}),fW={name:`humidity-sensor`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor,R.Thermostat],methods:{},status:{schema:dW,kind:`push`},runtimeState:dW,durability:`restored`,history:{fields:{percent:{kind:`gauge`,unit:`%`,deadband:.5}}},volatileStateFields:[`lastFetchedAt`]},pW=f({url:u().nullable(),lastUpdated:a().nullable()}),mW={name:`image`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Image],methods:{},status:{schema:pW,kind:`push`},runtimeState:pW,durability:`session`,history:`none`},hW=x([`0`,`90`,`180`,`270`]),gW=x([`auto`,`manual`]),_W=x([`auto`,`manual`]),vW=x([`off`,`blc`,`wdr`,`hlc`]),yW=f({min:a(),max:a(),step:a()}),bW=f({brightness:a().optional(),contrast:a().optional(),saturation:a().optional(),sharpness:a().optional(),mirror:C().optional(),flip:C().optional(),rotate:hW.optional(),whiteBalance:gW.optional(),warmth:a().optional(),exposureMode:_W.optional(),backlightMode:vW.optional(),lastFetchedAt:a()}),xW=f({supportsBrightness:C(),brightness:yW.optional(),supportsContrast:C(),contrast:yW.optional(),supportsSaturation:C(),saturation:yW.optional(),supportsSharpness:C(),sharpness:yW.optional(),supportsMirror:C(),supportsFlip:C(),rotateOptions:S(hW),whiteBalanceModes:S(gW),supportsWarmth:C(),warmth:yW.optional(),exposureModes:S(_W),backlightModes:S(vW)}),SW=f({brightness:a().optional(),contrast:a().optional(),saturation:a().optional(),sharpness:a().optional(),mirror:C().optional(),flip:C().optional(),rotate:hW.optional(),whiteBalance:gW.optional(),warmth:a().optional(),exposureMode:_W.optional(),backlightMode:vW.optional()}),CW={name:`image-settings`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`derived-form`,builderId:`image-settings`,tab:`image`}},methods:{getOptions:L(f({deviceId:a()}),xW),setSettings:L(f({deviceId:a(),settings:SW}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:bW,kind:`poll`},runtimeState:bW,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},wW=f({id:u(),addonId:u(),name:u(),enabled:C(),info:y(u(),s()).readonly(),createdAt:a(),updatedAt:a(),processState:u()}),TW=f({id:u(),addonId:u(),name:u(),enabled:C(),info:y(u(),s()).readonly(),createdAt:a(),updatedAt:a()}),EW=f({addonId:u(),name:u(),description:u(),iconUrl:u().nullable(),color:u(),instanceMode:u(),mode:x([`standalone`,`account`,`broker`]),discoveryMode:u(),kind:x([`device-adoption`,`device-provider`]),brokerKind:u().nullable(),supportsLocationImport:C(),canTest:C(),existingInstances:S(f({id:u(),name:u()})),canAdd:C()}),DW=x([`validated`,`rejected`,`inconclusive`,`unsupported`]),OW=f({success:C(),error:u().optional(),status:DW.optional(),testedBy:u().nullable().optional(),latencyMs:a().nonnegative().optional(),detail:u().optional()}),kW=f({addonId:u(),name:u(),enabled:C().optional(),info:y(u(),s()).optional(),settings:y(u(),s()).optional(),secretKeys:S(u()).optional(),skipRestart:C().optional()}),AW=f({id:u(),name:u().optional(),enabled:C().optional(),info:y(u(),s()).optional()}),jW=f({success:C(),deletedId:u()}),MW={name:`integrations`,scope:`system`,mode:`singleton`,methods:{list:L(v(),S(wW)),get:L(f({id:u()}),wW),getByAddonId:L(f({addonId:u()}),TW.nullable()),create:L(kW,TW,{kind:`mutation`,auth:`admin`}),update:L(AW,TW,{kind:`mutation`,auth:`admin`}),delete:L(f({id:u()}),jW,{kind:`mutation`,auth:`admin`}),getSettings:L(f({id:u()}),y(u(),s()),{auth:`admin`}),setSettings:L(f({id:u(),settings:y(u(),s()),secretKeys:S(u()).optional()}),f({success:C()}),{kind:`mutation`,auth:`admin`}),getAvailableTypes:L(v(),S(EW),{auth:`admin`}),testConnection:L(f({addonId:u(),settings:y(u(),s())}),OW,{kind:`mutation`,auth:`admin`})},mount:{kind:`server-provided`}},NW=f({codecs:S(u()),sampleRate:a(),duplex:x([`half`,`full`]),maxBacklogMs:a()}),PW=f({talking:C(),lastSessionAt:a().nullable(),ability:NW.nullable()}),FW=x([`opus`,`s16le`,`g711ulaw`,`g711alaw`]),IW={name:`intercom`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],methods:{startSession:L(f({deviceId:a()}),f({sessionId:u(),sdpOffer:u()}),{kind:`mutation`,auth:`protected`}),handleAnswer:L(f({deviceId:a(),sessionId:u(),sdpAnswer:u()}),v(),{kind:`mutation`,auth:`protected`}),stopSession:L(f({deviceId:a(),sessionId:u()}),v(),{kind:`mutation`,auth:`protected`}),startTalkSession:L(f({deviceId:a()}),f({sessionId:u()}),{kind:`mutation`,auth:`protected`}),pushTalkAudio:L(f({deviceId:a(),audioBase64:u(),codec:FW.optional(),sampleRate:a().int().positive().optional(),channels:a().int().positive().optional(),sequenceNumber:a().int()}),f({accepted:C()}),{kind:`mutation`,auth:`protected`}),endTalkSession:L(f({deviceId:a()}),v(),{kind:`mutation`,auth:`protected`})},events:{onStatusChanged:{data:f({deviceId:a(),status:PW})}},status:{schema:PW,kind:`command-driven`},runtimeState:PW,durability:`session`,history:`none`},LW=x([`idle`,`mowing`,`paused`,`docked`,`error`]),RW=x([`info`,`warning`,`error`]),zW=f({activity:LW,batteryLevel:a().min(0).max(100).nullable(),progressPercent:a().min(0).max(100).nullable(),currentCode:a().nullable(),currentCodeLabel:u().nullable(),severity:RW,lastChangedAt:a()}),BW={name:`lawn-mower-control`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.LawnMower],methods:{startMowing:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),pause:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),dock:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:zW,kind:`push`},runtimeState:zW,durability:`session`,history:{fields:{batteryLevel:{kind:`gauge`,unit:`%`,deadband:2}}}},VW=x([`lan`,`wifi`,`docker`,`vpn`,`loopback`,`other`]),HW=f({name:u(),family:x([`IPv4`,`IPv6`]),address:u(),cidr:u(),netmask:u(),internal:C(),mac:u(),kind:VW,preferred:C(),plausible:C(),plausibleReason:u()}),UW=f({interfaces:S(HW).readonly(),probedAt:a()}),WW=HW.nullable(),GW=f({label:u(),baseUrl:u(),kind:x([`lan-ipv4`,`lan-ipv6`,`public`,`loopback`,`app-link`,`custom`]),interfaceKind:x([`lan`,`wifi`,`docker`,`vpn`,`other`,`loopback`,`public`]),plausible:C(),plausibleReason:u(),priority:a(),stable:C().optional()}),KW=x([`server-config`,`server-env`,`caller-hint`,`default`]),qW=f({port:a().int().min(1).max(65535),source:KW}),JW=f({endpoints:S(GW).readonly(),localPort:qW}),YW=f({baseUrl:u().nullable(),resolved:u().nullable(),appLinkHub:u().nullable()}),XW=f({baseUrls:S(u()).readonly(),resolved:S(u()).readonly()}),ZW=f({override:u().nullable(),resolved:u().nullable(),source:x([`override`,`auto`,`none`])}),QW=f({cluster:ZW,browser:ZW}),$W=x(oE),eG=x([`flagged`,`auto`,`none`]),tG=f({flagged:u().nullable(),resolved:u().nullable(),source:eG}),nG=f({flagged:S(u()).readonly(),resolved:S(u()).readonly(),source:eG}),rG=f({rows:S(GW.extend({detected:C(),custom:C(),flags:S($W).readonly(),inUse:S($W).readonly(),eligible:S($W).readonly()})).readonly(),roles:f({appConnections:nG,notificationTaps:tG,internal:tG,publicEndpoint:tG}),appLinkHub:u().nullable(),listenerOrigins:S(u()).readonly().optional()}),iG=f({addresses:S(u()).readonly()}),aG=f({mode:x([`generated`,`uploaded`,`disabled`]),leafFingerprintSha256:u().nullable(),caFingerprintSha256:u().nullable(),validTo:u().nullable(),sans:S(u()),caCertPem:u().nullable(),reissueError:u().nullable(),restartRequired:C(),caMissing:C(),localCaConstrained:C().nullable(),caReplacedAt:u().nullable(),storedUpload:f({leafFingerprintSha256:u(),validTo:u(),hasCa:C()}).nullable()}),oG={name:`local-network`,scope:`system`,mode:`singleton`,methods:{list:L(v(),UW),getPreferred:L(v(),WW),getConnectionEndpoints:L(f({port:a().int().min(1).max(65535).optional(),includeLoopback:C().optional(),ipv4Only:C().optional(),scheme:x([`http`,`https`]).optional(),includeAppLink:C().optional()}),JW),getNotificationEndpoint:L(v(),YW),setNotificationEndpoint:L(f({baseUrl:u().nullable()}),YW,{kind:`mutation`}),getViewerEndpoints:L(v(),XW),setViewerEndpoints:L(f({baseUrls:S(u()).readonly()}),XW,{kind:`mutation`}),getAddresses:L(f({scheme:x([`http`,`https`]).optional()}).optional(),rG),addCustomAddress:L(f({baseUrl:u(),label:u().max(80)}),rG,{kind:`mutation`,auth:`admin`}),removeCustomAddress:L(f({baseUrl:u()}),rG,{kind:`mutation`,auth:`admin`}),setAddressRole:L(f({role:$W,baseUrl:u().nullable(),enabled:C(),acceptInsecureHttp:C().optional()}),rG,{kind:`mutation`,auth:`admin`}),getHubAddresses:L(v(),QW),getAllowedAddresses:L(v(),iG),setAllowedAddresses:L(iG,f({success:g(!0)}),{kind:`mutation`}),resetAllowlistToBestMatch:L(v(),iG,{kind:`mutation`}),getTlsStatus:L(v(),aG),regenerateCertificate:L(f({reason:u().optional()}),aG,{kind:`mutation`,auth:`admin`}),uploadCertificate:L(f({certPem:u().min(1),keyPem:u().min(1),caPem:u().optional()}),aG,{kind:`mutation`,auth:`admin`}),downloadCa:L(v(),f({pem:u()})),useStoredUploadedCertificate:L(v(),aG,{kind:`mutation`,auth:`admin`}),revertToGeneratedCertificate:L(v(),aG,{kind:`mutation`,auth:`admin`})},mount:{kind:`hub-only`}},sG=x([`locked`,`unlocked`,`locking`,`unlocking`,`jammed`]),cG=f({state:sG,lastChangedAt:a()}),lG={name:`lock-control`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Lock],methods:{lock:L(f({deviceId:a().int().nonnegative(),code:u().min(1).optional()}),v(),{kind:`mutation`,auth:`protected`}),unlock:L(f({deviceId:a().int().nonnegative(),code:u().min(1).optional()}),v(),{kind:`mutation`,auth:`protected`}),open:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:cG,kind:`push`},runtimeState:cG,durability:`restored`,history:`none`,volatileStateFields:[`lastChangedAt`]},uG=x([`off`,`on`,`idle`,`playing`,`paused`,`buffering`,`standby`]),dG=x([`off`,`all`,`one`]),fG=f({type:u(),title:u(),artist:u().optional(),album:u().optional(),imageUrl:u().optional()}),pG=f({state:uG,volumeLevel:a().min(0).max(100).nullable(),isMuted:C().nullable(),source:u(),availableSources:S(u()),currentMedia:fG.nullable(),positionMs:a().int().nonnegative().nullable(),durationMs:a().int().nonnegative().nullable(),shuffle:C().nullable(),repeat:dG.nullable(),lastChangedAt:a()}),mG={name:`media-player`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.MediaPlayer],methods:{play:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),pause:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),stop:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),next:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),previous:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),seek:L(f({deviceId:a().int().nonnegative(),positionMs:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),setVolume:L(f({deviceId:a().int().nonnegative(),volumeLevel:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`}),setMute:L(f({deviceId:a().int().nonnegative(),muted:C()}),v(),{kind:`mutation`,auth:`protected`}),setShuffle:L(f({deviceId:a().int().nonnegative(),shuffle:C()}),v(),{kind:`mutation`,auth:`protected`}),setRepeat:L(f({deviceId:a().int().nonnegative(),repeat:dG}),v(),{kind:`mutation`,auth:`protected`}),selectSource:L(f({deviceId:a().int().nonnegative(),source:u().min(1)}),v(),{kind:`mutation`,auth:`protected`}),playMedia:L(f({deviceId:a().int().nonnegative(),mediaId:u().min(1),mediaType:u().min(1)}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:pG,kind:`push`},runtimeState:pG,durability:`session`,history:`none`},hG=f({id:u(),label:u(),scope:x([`mesh`,`public`]),url:u(),hostname:u(),port:a(),protocol:x([`http`,`https`])}),gG=f({id:u(),hostname:u(),magicDns:u(),addresses:S(u()).readonly(),os:u().optional(),online:C(),lastSeenMs:a(),isSelf:C(),connection:x([`direct`,`relay`,`idle`]),relay:u().nullable(),lastHandshakeMs:a(),rxBytes:a(),txBytes:a(),tags:S(u()).readonly(),exitNodeOption:C(),advertisedRoutes:S(u()).readonly(),userLogin:u().nullable(),keyExpiry:a().nullable()}),_G=f({joined:C(),meshIp:u(),magicDnsHostname:u(),peerCount:a(),endpoints:S(hG).readonly(),error:u().optional(),tenantName:u(),magicDnsSuffix:u(),userLogin:u().nullable(),controlPlaneUrl:u(),keyExpiry:a().nullable(),daemonSocket:u().optional(),daemonCliPath:u().optional()}),vG={name:`mesh-network`,scope:`system`,mode:`collection`,providerKind:`mesh`,methods:{getStatus:L(v(),_G),join:L(f({authKey:u().min(8),hostname:u().optional()}),f({joined:g(!0)}),{kind:`mutation`}),startLogin:L(f({hostname:u().optional()}),f({loginUrl:u()}),{kind:`mutation`}),leave:L(v(),f({left:g(!0)}),{kind:`mutation`}),logout:L(v(),f({loggedOut:g(!0)}),{kind:`mutation`}),listPeers:L(v(),f({peers:S(gG).readonly()})),testConnection:L(f({authKey:u().optional()}),f({ok:C(),tenant:u().optional(),daemonVersion:u().optional(),error:u().optional()}),{kind:`mutation`})}},yG=15e3,bG=f({detected:C(),lastDetectedAt:a().nullable(),autoClearAfterMs:a().nullable()}),xG=f({deviceId:a(),detected:C(),timestamp:a(),source:kL,regions:S(fO).readonly().optional(),triggeredBy:oM.optional()}),SG={name:`motion`,scope:`device`,mode:`singleton`,deviceNative:!0,deviceTypes:[R.Camera,R.Sensor],methods:{isDetected:L(f({deviceId:a()}),C())},events:{onMotionChanged:{data:xG}},status:{schema:bG,kind:`push`},runtimeState:bG,durability:`session`,history:{fields:{detected:{kind:`boolean`,excludeDeviceTypes:[R.Camera]}}}},CG=f({enabled:C(),lastChangedAt:a()}),wG=CG.extend({lastFetchedAt:a()}),TG={name:`motion-trigger`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Light,R.Siren,R.Switch],methods:{setMotionTrigger:L(f({deviceId:a().int().nonnegative(),enabled:C()}),v(),{kind:`mutation`,auth:`admin`})},events:{onMotionTriggerChanged:{data:f({deviceId:a(),enabled:C(),lastChangedAt:a()})}},status:{schema:CG,kind:`command-driven`},runtimeState:wG,durability:`session`,history:`none`},EG=f({id:a(),enabled:C(),shape:Ek}),DG=f({enabled:C(),sensitivity:a(),regions:S(EG),lastFetchedAt:a()}),OG=f({maxRegions:a(),supportedShapes:S(kk),grid:jk,sensitivity:f({min:a(),max:a(),step:a()})}),kG=f({enabled:C().optional(),sensitivity:a().optional(),regions:S(EG).optional()}),AG={name:`motion-zones`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`widget`,widgetId:`host/motion-zones-grid`,tab:`motion`,label:`Motion Zones`}},methods:{getOptions:L(f({deviceId:a()}),OG),setZone:L(f({deviceId:a(),patch:kG}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:DG,kind:`poll`},runtimeState:DG,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},jG=x([`person`,`vehicle`,`animal`,`face`,`package`,`other`]),MG=f({class:jG,timestamp:a(),confidence:a().min(0).max(1).optional()}),NG=f({lastByClass:se(jG,MG.nullable()),supportedClasses:S(jG).readonly(),enabled:C()}),PG=x([`boxed`,`while-streaming`,`flag-only`]),FG=f({supportedClasses:S(jG).readonly(),geometry:PG}),IG=f({enabled:C().optional()}),LG=NG.extend({lastFetchedAt:a()}),RG={name:`native-object-detection`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],methods:{getOptions:L(f({deviceId:a()}),FG),setSettings:L(f({deviceId:a(),settings:IG}),v(),{kind:`mutation`,auth:`admin`}),setEnabled:L(f({deviceId:a(),enabled:C()}),v(),{kind:`mutation`,auth:`admin`})},events:{onDetected:{data:f({deviceId:a(),detection:MG})}},status:{schema:NG,kind:`push`},runtimeState:LG,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},zG=f({pan:a().min(-1).max(1).optional(),tilt:a().min(-1).max(1).optional(),speed:a().min(0).max(1).optional()}),BG=x([`goHome`,`locate`,`spotClean`,`findPet`,`personFollow`,`stop`,`startClean`,`pauseClean`,`dockWash`,`autoEmpty`,`flashOn`,`flashOff`]),VG=x([`action`,`sound`]),HG=f({id:u(),kind:VG,label:u(),icon:u(),soundId:a().int().optional(),enabled:C()}),UG=[{id:`startClean`,kind:`action`,label:`Start cleaning`,icon:`play`,enabled:!0},{id:`pauseClean`,kind:`action`,label:`Pause cleaning`,icon:`pause`,enabled:!0},{id:`stop`,kind:`action`,label:`Stop`,icon:`hand`,enabled:!0},{id:`goHome`,kind:`action`,label:`Return to dock`,icon:`home`,enabled:!0},{id:`locate`,kind:`action`,label:`Locate`,icon:`bell`,enabled:!0},{id:`spotClean`,kind:`action`,label:`Spot clean here`,icon:`crosshair`,enabled:!0},{id:`findPet`,kind:`action`,label:`Find pet`,icon:`paw-print`,enabled:!0},{id:`personFollow`,kind:`action`,label:`Follow me`,icon:`footprints`,enabled:!0},{id:`dockWash`,kind:`action`,label:`Wash mop`,icon:`droplets`,enabled:!0},{id:`autoEmpty`,kind:`action`,label:`Empty dustbin`,icon:`trash-2`,enabled:!0},{id:`flashOn`,kind:`action`,label:`Flash on`,icon:`flashlight`,enabled:!0},{id:`flashOff`,kind:`action`,label:`Flash off`,icon:`flashlight-off`,enabled:!0},{id:`sound:meow`,kind:`sound`,label:`Meow`,icon:`cat`,soundId:684,enabled:!0},{id:`sound:bark`,kind:`sound`,label:`Woof`,icon:`dog`,soundId:685,enabled:!0},{id:`sound:footsteps`,kind:`sound`,label:`Footsteps`,icon:`footprints`,soundId:686,enabled:!0},{id:`sound:purring`,kind:`sound`,label:`Purring`,icon:`cat`,soundId:687,enabled:!0},{id:`sound:tickTock`,kind:`sound`,label:`Tick-tock`,icon:`clock`,soundId:688,enabled:!0}],WG=f({x:a(),y:a()}),GG=f({move:C(),stop:C(),goToPoint:C(),runAction:C(),playSound:C(),light:C(),lightMode:C()}),KG=x([`auto`,`manual`]),qG=x([`idle`,`cleaning`,`spot`,`following`,`goto`,`returning`,`paused`,`unknown`]),JG=f({mode:qG,following:C(),flash:C(),lightMode:KG,lightLevel:a().min(40).max(100),lastChangedAt:a()}),YG=JG.extend({lastFetchedAt:a()}),XG={name:`navigation`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`widget`,widgetId:`host/navigation-panel`,tab:`navigation`,topTab:!0,label:`Navigation`,order:0}},methods:{move:L(zG.extend({deviceId:a()}),v(),{kind:`mutation`}),stop:L(f({deviceId:a()}),v(),{kind:`mutation`}),goToPoint:L(WG.extend({deviceId:a()}),v(),{kind:`mutation`}),listActions:L(f({deviceId:a()}),S(HG)),runAction:L(f({deviceId:a(),actionId:BG}),v(),{kind:`mutation`}),playSound:L(f({deviceId:a(),soundId:a().int()}),v(),{kind:`mutation`}),setLightOn:L(f({deviceId:a(),on:C()}),v(),{kind:`mutation`}),setLightMode:L(f({deviceId:a(),mode:KG,level:a().min(40).max(100).optional()}),v(),{kind:`mutation`}),setLightLevel:L(f({deviceId:a(),level:a().min(40).max(100)}),v(),{kind:`mutation`}),getFeatures:L(f({deviceId:a()}),GG)},events:{onStatusChanged:{data:f({deviceId:a(),status:JG})}},status:{schema:JG,kind:`push`},runtimeState:YG,durability:`session`,history:`none`},ZG=[`wifi`,`ethernet`,`cellular`,`unknown`],QG=f({type:x(ZG),signalPercent:a().min(0).max(100).nullable(),rssiDbm:a().optional(),ssid:u().optional(),lastUpdated:a()}),$G={type:`unknown`,signalPercent:null,lastUpdated:0};function eK(e,t){return e===void 0||!Number.isFinite(e)||t<=0||e<0||e>t?null:Math.round(e/t*100)}function tK(e){return e===void 0||!Number.isFinite(e)||e>0?null:Math.round((Math.min(-50,Math.max(-100,e))+100)*2)}var nK={name:`network-link`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera,R.Sensor,R.Button,R.Switch,R.Light,R.Lock,R.Siren],methods:{},events:{onStatusChanged:{data:f({deviceId:a(),status:QG})}},status:{schema:QG,kind:`push`,empty:$G},runtimeState:QG,durability:`restored`,history:{fields:{signalPercent:{kind:`gauge`,unit:`%`,deadband:3,minIntervalMs:6e4},rssiDbm:{kind:`gauge`,unit:`dBm`,deadband:2,minIntervalMs:6e4}}},volatileStateFields:[`lastUpdated`]},rK=f({nominalBitrateKbps:a(),observedBitrateKbps:a(),peakBitrateKbps:a(),packetLossPercent:a(),lastUpdated:a()}),iK=f({rttMs:a(),jitterMs:a(),estimatedBandwidthKbps:a(),packetLossPercent:a().min(0).max(100),downlinkMbps:a().optional(),downlinkAgeMs:a().optional(),lastUpdated:a()}),aK=f({deviceId:a(),streams:y(u(),rK),client:iK.optional()}),oK={name:`network-quality`,scope:`system`,mode:`singleton`,methods:{getDeviceStats:L(f({deviceId:a()}),aK.nullable()),getAllStats:L(v(),S(aK).readonly()),reportClientStats:L(f({deviceId:a(),rttMs:a().min(0).max(6e4),jitterMs:a().min(0).max(1e4),estimatedBandwidthKbps:a().min(0).max(1e6),packetLossPercent:a().min(0).max(100),downlinkMbps:a().min(0).max(1e5).optional(),downlinkAgeMs:a().min(0).max(864e5).optional()}),v(),{kind:`mutation`})},mount:{kind:`server-provided`}},sK=f({addonId:u(),capabilities:S(u()).readonly(),status:u()}),cK=f({pid:a(),name:u(),state:u(),cpuPercent:a(),memoryRss:a(),uptimeSeconds:a(),services:S(sK).readonly(),groupId:u().optional()}),xee=f({id:u(),status:u(),cpuPercent:a(),memoryRss:a()}),See=f({category:u(),total:a(),healthy:a(),addons:S(xee).readonly()}),Cee=f({name:u(),version:u()}),lK=f({id:u(),name:u(),hostname:u(),platform:u(),arch:u(),cpuModel:u().nullable(),cpuCores:a(),memoryMB:a(),engines:S(u()).readonly(),isHub:C(),isOnline:C(),cpuPercent:a(),memoryPercent:a(),uptime:a(),lastSeen:u(),localIps:S(u()).readonly(),addons:S(f({id:u(),capabilities:S(u()).readonly(),status:u()})).readonly(),processes:S(cK).readonly(),categories:S(See).readonly(),rootPackage:Cee.nullable(),meshTransport:x([`tls`,`clear`]).optional(),capabilitiesRegistered:C().optional()}),wee=f({callerAddonId:u(),providerAddonId:u(),capName:u(),callsPerMin:a(),lastCallAtMs:a()}),uK=f({nodeId:u(),name:u(),version:u(),status:u(),synced:C()}),dK=f({hubVersion:u(),nodes:S(uK)}),fK=f({nodeId:u(),addonId:u()}),Tee=f({id:u(),status:u(),version:u().optional(),packageName:u().optional()}),pK=f({success:C()}),Eee=f({success:C(),reason:u().optional()}),Dee=f({restarted:S(u()).readonly(),failed:S(u()).readonly()}),Oee=f({nodeId:u(),name:u()}),mK=f({id:u(),name:u(),isHub:C(),isOnline:C()}),hK=f({nodes:S(mK).readonly(),complete:C()}),gK={name:`nodes`,scope:`system`,mode:`singleton`,nodeIdMode:`data`,methods:{topology:L(v(),S(lK).readonly(),{auth:`admin`}),directory:L(v(),hK,{auth:`admin`}),deployAddon:L(fK,pK,{kind:`mutation`,auth:`admin`}),undeployAddon:L(fK,pK,{kind:`mutation`,auth:`admin`}),restartAddon:L(fK,pK,{kind:`mutation`,auth:`admin`}),restartProcess:L(f({nodeId:u(),processName:u()}),Eee,{kind:`mutation`,auth:`admin`}),restartNode:L(f({nodeId:u()}),Dee,{kind:`mutation`,auth:`admin`}),shutdownNode:L(f({nodeId:u()}),pK,{kind:`mutation`,auth:`admin`}),renameNode:L(f({nodeId:u(),name:u().min(1).max(64)}),Oee,{kind:`mutation`,auth:`admin`}),clusterAddonStatus:L(v(),y(u(),dK),{auth:`admin`}),getCapUsageGraph:L(f({windowSeconds:a().int().positive().max(300).default(60)}),S(wee).readonly(),{auth:`admin`}),getNodeAddons:L(f({nodeId:u()}),S(Tee).readonly(),{auth:`admin`}),setProcessLogLevel:L(f({nodeId:u(),level:u()}),pK,{kind:`mutation`,auth:`admin`}),executeQuery:L(f({nodeId:u(),addonId:u(),queryName:u(),params:y(u(),s()).optional()}),s(),{kind:`mutation`,auth:`admin`})},mount:{kind:`server-provided`}},kee=x([`min`,`low`,`normal`,`high`]),Aee=f({id:u().min(1),title:u().min(1),uri:c().optional(),destructive:C().optional()}),jee=f({image:C(),priority:C(),data:C(),actions:C(),recipients:C()}),_K=f({lastSentAt:a(),lastError:u().nullable(),queueDepth:a().int().nonnegative(),supports:jee}),Mee=f({deviceId:a().int().nonnegative(),title:u().optional(),body:u().min(1),image:u().optional(),priority:kee.optional(),channel:u().optional(),recipients:S(u()).optional(),actions:S(Aee).optional(),data:y(u(),s()).optional()}),Nee=f({notificationId:u(),acceptedAt:a()}),vK={name:`notifier`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Notifier],methods:{send:L(Mee,Nee,{kind:`mutation`,auth:`admin`}),cancel:L(f({deviceId:a().int().nonnegative(),notificationId:u().min(1)}),v(),{kind:`mutation`,auth:`admin`})},events:{onSent:{data:f({deviceId:a(),notificationId:u(),success:C(),error:u().nullable(),acceptedAt:a()})}},status:{schema:_K,kind:`command-driven`},runtimeState:_K,durability:`session`,history:`none`},yK=f({value:a(),unit:u().optional(),precision:a().int().min(0).max(10).optional(),lastFetchedAt:a()}),bK={name:`numeric-sensor`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:yK,kind:`push`},runtimeState:yK,durability:`restored`,history:{fields:{value:{kind:`gauge`,unitFrom:`unit`,minIntervalMs:3e4}}},volatileStateFields:[`lastFetchedAt`]},xK=x([`text`,`timestamp`,`watermark`]),SK=x([`top-left`,`top-center`,`top-right`,`bottom-left`,`bottom-center`,`bottom-right`,`custom`]),CK=f({id:u(),kind:xK,enabled:C(),text:u().optional(),position:SK.optional(),availablePositions:S(SK).readonly(),readOnly:C().optional(),maxCharacters:a().int().positive().optional()}),wK=f({overlays:S(CK).readonly()}),TK=f({enabled:C().optional(),text:u().optional(),position:SK.optional()}).partial(),EK={name:`osd`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],methods:{setOverlay:L(f({deviceId:a(),overlayId:u(),patch:TK}),v(),{kind:`mutation`,auth:`admin`})},events:{onStatusChanged:{data:f({deviceId:a(),status:wK})}},status:{schema:wK,kind:`command-driven`},settings:{bindings:[{kind:`array`,statusPath:`overlays`,idField:`id`,method:`setOverlay`,idArg:`overlayId`,patchArg:`patch`,sectionId:`osd`,sectionTitle:`Video overlays`,itemFields:{enabled:{label:e=>`${String(e.id)} enabled`,kind:`boolean`},text:{label:e=>`${String(e.id)} text`,kind:`text`,when:e=>e.kind!==`timestamp`&&!e.readOnly},position:{label:e=>`${String(e.id)} position`,kind:`select`,options:e=>e.availablePositions??[],when:e=>Array.isArray(e.availablePositions)&&e.availablePositions.length>0}}}]}},DK=x([`value`,`unit`,`full`]),OK=x([`value+unit`,`value`,`unit`]),kK=f({containerId:a().int().optional(),deviceId:a().int()}),AK=f({alias:u().min(1).max(32).regex(/^[A-Za-z][A-Za-z0-9_-]*$/,`alias must start with a letter`),pick:kK,capName:u().min(1).max(64),valuePath:u().min(1).max(64),displayUnit:u().max(16).optional(),maxDecimals:a().int().min(0).max(4).default(1),valueMap:y(u(),u()).optional()}),jK=f({id:u().min(1).max(64),name:u().min(1).max(64),bindings:S(AK).max(32).default([]),parser:u().max(256).default(``)}),MK=h(`kind`,[f({kind:g(`none`)}),f({kind:g(`static`),text:u().max(64)}),f({kind:g(`clock`),pattern:u().min(1).max(32).default(`HH:mm`),timezone:u().min(1).max(64).optional()}),f({kind:g(`device-state`),deviceId:a().int().optional(),capName:u().min(1).max(64),valuePath:u().min(1).max(64),displayUnit:u().max(16).optional()}),f({kind:g(`latest-recognition`),recognition:x([`person`,`plate`])}),f({kind:g(`template`),templateId:u().min(1).max(64)})]),NK=f({enabled:C().default(!0),source:MK,template:u().max(96).default("${value}"),maxDecimals:a().int().min(0).max(4).default(1),valueMap:y(u(),u()).optional(),schedule:Uk.optional(),conditions:uA.optional()}),PK=f({slotId:u(),kind:xK,readOnly:C(),cameraEnabled:C(),cameraText:u().optional(),binding:NK.nullable()}),FK=x([`written`,`unchanged`,`gated`,`unreadable`,`disabled`,`unbound`,`failed`]),IK=f({slotId:u(),outcome:FK,text:u(),reason:u().optional()}),LK=x([`number`,`boolean`,`string`,`enum`]),RK=f({deviceId:a().int(),deviceName:u(),capName:u(),valuePath:u(),label:u(),valueType:LK,enumValues:S(u()).readonly().optional()}),zK={name:`osd-manager`,scope:`system`,mode:`singleton`,methods:{getDeviceOsd:L(f({deviceId:a().int()}),f({supported:C(),slots:S(PK)}),{auth:`admin`}),getSourceCatalog:L(f({deviceId:a().int()}),f({sources:S(RK)}),{auth:`admin`}),getConditionSupport:L(f({}),f({supported:S(u()),catalog:S(WA)}),{auth:`admin`}),setSlotBinding:L(f({deviceId:a().int(),slotId:u().min(1),binding:NK}),f({slot:PK,render:IK}),{kind:`mutation`,auth:`admin`}),clearSlotBinding:L(f({deviceId:a().int(),slotId:u().min(1)}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),setSlotCameraEnabled:L(f({deviceId:a().int(),slotId:u().min(1),enabled:C()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`}),copyDeviceConfiguration:L(f({sourceDeviceId:a().int(),targetDeviceId:a().int()}),f({copied:a().int().nonnegative(),skipped:a().int().nonnegative()}),{kind:`mutation`,auth:`admin`}),previewSlot:L(f({deviceId:a().int(),slotId:u().min(1),binding:NK.optional()}),IK,{kind:`mutation`,auth:`admin`}),renderDevice:L(f({deviceId:a().int()}),f({results:S(IK)}),{kind:`mutation`,auth:`admin`}),listTemplates:L(f({}),f({templates:S(jK)}),{auth:`admin`}),upsertTemplate:L(f({template:jK}),f({template:jK}),{kind:`mutation`,auth:`admin`}),deleteTemplate:L(f({templateId:u().min(1).max(64)}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`})}},BK=x([`normal`,`offline`,`on_batteries`]),VK=a().int().min(4).max(200),HK=f({foodLevel:a().nullable(),food1:a().nullable(),food2:a().nullable(),lowFood:C(),batteryPower:a().min(0).max(100).nullable(),desiccantLeftDays:a().nullable(),feeding:C(),status:BK.nullable(),error:u().nullable(),errorCode:a().nullable(),isDualHopper:C(),childLock:C(),indicatorLight:C(),feedSound:C(),volume:a(),lastFetchedAt:a()}),UK={name:`pet-feeder`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.PetFeeder],methods:{feed:L(f({deviceId:a().int().nonnegative(),grams:VK.optional(),hopper1:VK.optional(),hopper2:VK.optional()}),v(),{kind:`mutation`,auth:`protected`}),cancelFeed:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),resetDesiccant:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),markFoodReplenished:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),callPet:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),playSound:L(f({deviceId:a().int().nonnegative(),soundId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),setChildLock:L(f({deviceId:a().int().nonnegative(),on:C()}),v(),{kind:`mutation`,auth:`protected`}),setIndicatorLight:L(f({deviceId:a().int().nonnegative(),on:C()}),v(),{kind:`mutation`,auth:`protected`}),setFeedSound:L(f({deviceId:a().int().nonnegative(),on:C()}),v(),{kind:`mutation`,auth:`protected`}),setVolume:L(f({deviceId:a().int().nonnegative(),level:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:HK,kind:`poll`},runtimeState:HK,durability:`session`,history:{fields:{foodLevel:{kind:`gauge`},food1:{kind:`gauge`},food2:{kind:`gauge`},batteryPower:{kind:`gauge`,unit:`%`,deadband:2},desiccantLeftDays:{kind:`gauge`,unit:`days`}}}},WK=f({id:u(),name:u(),sampleCount:a().int().nonnegative(),coverMediaId:a().int().optional(),coverBase64:u().optional()}),GK=f({id:u(),text:u(),score:a(),addedAt:a().int(),deviceId:a().int().optional(),base64:u().optional()}),KK=f({plateId:u(),deviceId:a().int(),trackId:u(),timestamp:a().int(),text:u(),score:a(),corrected:C(),recognizedVehicleId:u().optional(),vehicleName:u().optional(),assigned:C(),plateBbox:ag.optional(),keyFrameMediaId:a().int().optional(),base64:u().optional(),cropUrl:u().optional()}),qK=f({mediaId:a().int(),kind:u(),url:u(),sizeBytes:a(),timestamp:a()}),JK=f({plateIds:S(u()).readonly(),representativePlateId:u(),representativeText:u(),size:a().int(),cohesion:a()}),YK={name:`plate-gallery`,scope:`system`,mode:`singleton`,methods:{listPlates:L(f({deviceId:a().int().optional(),limit:a().int().positive().optional(),includeCrops:C().optional()}).optional(),S(KK).readonly()),getPlateByTrack:L(f({deviceId:a().int(),trackId:u()}),KK.nullable()),getPlateMedia:L(f({plateId:u()}),S(qK).readonly()),searchPlates:L(f({text:u().min(1),maxDistance:a().int().min(0).optional(),limit:a().int().positive().optional(),includeCrops:C().optional()}),S(KK).readonly()),suggestPlateClusters:L(f({maxDistance:a().int().min(0).optional(),minClusterSize:a().int().min(2).optional(),limit:a().int().positive().optional()}).optional(),S(JK).readonly()),correctPlateText:L(f({plateId:u(),text:u().min(1)}),v(),{kind:`mutation`,auth:`admin`}),deletePlate:L(f({plateId:u()}),v(),{kind:`mutation`,auth:`admin`}),listVehicles:L(f({includeCrops:C().optional()}).optional(),S(WK).readonly()),createVehicle:L(f({name:u().min(1)}),WK,{kind:`mutation`,auth:`admin`}),renameVehicle:L(f({id:u(),name:u().min(1)}),v(),{kind:`mutation`,auth:`admin`}),deleteVehicle:L(f({id:u()}),v(),{kind:`mutation`,auth:`admin`}),listVehicleSamples:L(f({vehicleId:u()}),S(GK).readonly()),removeVehicleSample:L(f({vehicleId:u(),sampleId:u()}),v(),{kind:`mutation`,auth:`admin`}),assignPlate:L(f({plateId:u(),vehicleId:u()}),v(),{kind:`mutation`,auth:`admin`}),unassignPlate:L(f({plateId:u()}),v(),{kind:`mutation`,auth:`admin`}),assignPlates:L(f({plateIds:S(u()).min(1),vehicleId:u()}),f({assigned:a().int(),failed:S(u()).readonly()}),{kind:`mutation`,auth:`admin`}),unassignPlates:L(f({plateIds:S(u()).min(1)}),f({unassigned:a().int(),failed:S(u()).readonly()}),{kind:`mutation`,auth:`admin`})}},XK=x(Qd),ZK=x([`videotoolbox`,`cuda`,`nvdec`,`vaapi`,`qsv`,`d3d11va`,`dxva2`,`amf`,`vdpau`,`drm`,`coreml`,`tensorrt`,`openvino`,`directml`,`webgpu`,`none`]).nullable().optional(),QK=f({preferred:S(u()).readonly(),rationale:u()}),$K=x([`h264_videotoolbox`,`hevc_videotoolbox`,`h264_vaapi`,`hevc_vaapi`,`h264_nvenc`,`hevc_nvenc`,`h264_qsv`,`hevc_qsv`,`h264_amf`,`hevc_amf`,`libx264`,`libx265`]);f({encoders:S(f({encoder:$K,codec:x([`H264`,`H265`]),family:x([`videotoolbox`,`vaapi`,`nvenc`,`qsv`,`amf`,`software`]),available:C(),reason:u().optional()})).readonly(),defaultH264:$K,defaultH265:$K,probedAt:a()}),f({methods:S(u()).readonly(),probedAt:a()});var eq=x([`darwin`,`linux`,`win32`]),tq=x([`arm64`,`x64`]),nq=f({type:x([`nvidia`,`amd`,`intel`,`apple`]),name:u(),memoryMB:a().optional()}),rq=f({type:x([`apple-ane`,`intel-npu`,`amd-xdna`]),name:u().optional(),generation:x([`xdna1`,`xdna2`]).optional()}),iq=f({type:g(`coral-edgetpu`),bus:u().optional()}),aq=f({platform:eq,arch:tq,cpuModel:u(),cpuCores:a(),totalRAM_MB:a(),availableRAM_MB:a(),gpu:nq.nullable(),npu:rq.nullable(),coral:iq.nullable().optional()}),oq=f({runtime:g(`python`),backend:u(),format:x([`onnx`,`coreml`,`openvino`,`tflite`]),score:a(),reason:u(),available:C()}),sq=f({key:u(),backend:u(),device:u(),format:XK,runtime:g(`python`),score:a(),available:C()}),cq=f({hardware:aq,scores:S(oq).readonly(),bestScore:oq,pythonPath:u().nullable(),devices:S(sq).readonly()}),lq=f({modelId:u(),name:u(),minRAM_MB:a(),accuracyScore:a(),formats:S(u()).readonly()}),uq=f({modelId:u(),runtime:g(`python`),backend:u(),format:XK,reason:u()}),dq={name:`platform-probe`,scope:`system`,mode:`singleton`,methods:{getCapabilities:L(v(),cq),getHardware:L(v(),aq),resolveInferenceConfig:L(f({requirements:S(lq).readonly()}),uq),resolveHwAccel:L(f({prefer:ZK}),QK)}},fq=f({watts:a().optional(),kwhTotal:a().optional(),volts:a().optional(),amps:a().optional(),va:a().optional(),powerFactor:a().min(0).max(1).optional(),lastFetchedAt:a(),unit:u().optional(),precision:a().int().min(0).max(10).optional()}),pq={name:`power-meter`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:fq,kind:`push`},runtimeState:fq,durability:`restored`,history:{fields:{watts:{kind:`gauge`,unit:`W`,deadband:1,minIntervalMs:3e4},kwhTotal:{kind:`counter`,unit:`kWh`,deadband:.01,minIntervalMs:6e4},volts:{kind:`gauge`,unit:`V`,deadband:1,minIntervalMs:3e4},amps:{kind:`gauge`,unit:`A`,deadband:.05,minIntervalMs:3e4},va:{kind:`gauge`,unit:`VA`,deadband:1,minIntervalMs:3e4},powerFactor:{kind:`gauge`,unit:`ratio`,deadband:.01,minIntervalMs:6e4}}},volatileStateFields:[`lastFetchedAt`]},mq=f({latitude:a().min(-90).max(90),longitude:a().min(-180).max(180),accuracyMeters:a().nonnegative()}),hq=f({state:u(),location:u().nullable(),gps:mq.nullable(),batteryPercent:a().min(0).max(100).nullable(),lastChangedAt:a()}),gq={name:`presence`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Presence],methods:{},status:{schema:hq,kind:`push`},runtimeState:hq,durability:`restored`,history:{fields:{batteryPercent:{kind:`gauge`,unit:`%`,deadband:1}}},volatileStateFields:[`lastChangedAt`]},_q=f({hpa:a(),lastFetchedAt:a(),unit:u().optional(),precision:a().int().min(0).max(10).optional()}),vq={name:`pressure-sensor`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:_q,kind:`push`},runtimeState:_q,durability:`restored`,history:{fields:{hpa:{kind:`gauge`,unit:`hPa`,deadband:.1}}},volatileStateFields:[`lastFetchedAt`]},yq=h(`kind`,[wk,Tk]),bq=f({id:a(),enabled:C(),shape:yq}),xq=f({enabled:C(),regions:S(bq).nullable(),audioEnabled:C().nullable(),lastFetchedAt:a()}),Sq=f({maxRegions:a(),supportedShapes:S(kk),polygonVertices:Ak.optional(),supportsAudioMute:C()}),Cq=f({enabled:C().optional(),regions:S(bq).optional()}),wq={name:`privacy-mask`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`widget`,widgetId:`host/privacy-mask-grid`,tab:`image`,label:`Privacy Mask`}},methods:{getOptions:L(f({deviceId:a()}),Sq),setMask:L(f({deviceId:a(),patch:Cq}),v(),{kind:`mutation`,auth:`admin`}),setAudioEnabled:L(f({deviceId:a(),enabled:C()}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:xq,kind:`poll`},runtimeState:xq,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]};function Tq(e){return e.length===0?null:e.some(e=>e.audioEnabled)}var Eq=x([`home`,`day-mode`,`night-mode`,`day-night-auto`,`set-limits`,`save-limits`,`reboot`,`osd-menu`]),Dq=f({id:u(),name:u(),fn:Eq.nullable(),writable:C()}),Oq=f({pan:a().nullable(),tilt:a().nullable(),zoom:a().nullable()}),kq=f({pan:a().optional(),tilt:a().optional(),zoom:a().optional(),speed:a().optional()}),Aq=Oq.extend({autofocus:C()}),jq=f({hasPan:C(),hasTilt:C(),hasZoom:C(),supportsPresets:C(),maxPresets:a().optional(),hasAutofocus:C(),speedSteps:a().int().positive().nullable(),moveImpulseMs:a().int().positive().nullable()}),Mq=f({presetId:u().nullable(),source:x([`operator`,`firmware`,`native`,`none`])}),Nq=f({enabled:C(),seconds:a().int()}),Pq={name:`ptz`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`widget`,widgetId:`host/ptz-panel`,tab:`ptz`,topTab:!0,label:`PTZ`,order:0}},methods:{move:L(kq.extend({deviceId:a()}),v(),{kind:`mutation`}),continuousMove:L(kq.extend({deviceId:a()}),v(),{kind:`mutation`}),stop:L(f({deviceId:a()}),v(),{kind:`mutation`}),getPresets:L(f({deviceId:a()}),S(Dq)),goToPreset:L(f({deviceId:a(),presetId:u()}),v(),{kind:`mutation`}),savePreset:L(f({deviceId:a(),presetId:u(),name:u()}),v(),{kind:`mutation`,auth:`admin`}),deletePreset:L(f({deviceId:a(),presetId:u()}),v(),{kind:`mutation`,auth:`admin`}),getOptions:L(f({deviceId:a()}),jq),goHome:L(f({deviceId:a()}),v(),{kind:`mutation`}),getHomePreset:L(f({deviceId:a()}),Mq),setHomePreset:L(f({deviceId:a(),presetId:u().nullable()}),v(),{kind:`mutation`,auth:`admin`}),captureHomeHere:L(f({deviceId:a()}),v(),{kind:`mutation`,auth:`admin`}),getHomeReturn:L(f({deviceId:a()}),Nq.nullable()),setHomeReturn:L(f({deviceId:a(),enabled:C(),seconds:a().int().min(0).max(3600)}),v(),{kind:`mutation`,auth:`admin`}),getPosition:L(f({deviceId:a()}),Oq),setAutofocus:L(f({deviceId:a(),enabled:C()}),v(),{kind:`mutation`})},status:{schema:Aq,kind:`command-driven`}},Fq=f({targetType:u().describe(`Vendor target string (people/vehicle/pet); empty = camera default`),stopDelaySeconds:a().int().min(0).max(300),disappearDelaySeconds:a().int().min(0).max(300)}),Iq=f({value:u(),label:u()}),Lq=f({enabled:C(),lastChangedAt:a(),currentSettings:Fq.nullable(),supportedTargetTypes:S(Iq)}),Rq=Lq.extend({lastFetchedAt:a()}),zq={name:`ptz-autotrack`,scope:`device`,deviceNative:!0,mode:`singleton`,kind:`wrapper`,defaultActive:!1,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`widget`,widgetId:`host/ptz-autotrack`,tab:`ptz`,topTab:!0,label:`Auto-Tracking`,order:5}},methods:{getStatus:L(f({deviceId:a()}),Lq),setEnabled:L(f({deviceId:a(),enabled:C()}),v(),{kind:`mutation`}),getSettings:L(f({deviceId:a()}),Fq.nullable()),setSettings:L(f({deviceId:a(),settings:Fq.partial()}),v(),{kind:`mutation`})},events:{onStatusChanged:{data:f({deviceId:a(),status:Lq})}},status:{schema:Lq,kind:`command-driven`},runtimeState:Rq,durability:`session`,history:`none`},Bq={name:`reboot`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera,R.Sensor,R.Switch],methods:{reboot:L(f({deviceId:a().int().nonnegative()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`})}},Vq=`camstack`,Hq=`recorder`,Uq=f({profile:u(),startMs:a(),endMs:a()}),Wq=x([`read`,`unreadable`]),Gq=f({deviceId:a(),read:Wq,ranges:S(Uq),profilesWithFootage:S(u())}),Kq=f({deviceId:a(),read:Wq,days:S(a())}),qq=f({deviceId:a(),localMasterPath:u().nullable(),playbackUrl:u().nullable(),playbackEndpoints:S(u())}),Jq=f({state:x([`ok`,`sleeping`,`unreachable`,`no-storage`,`index-empty`]),reason:u().optional(),coverageAsOf:a().optional()}),Yq=f({source:u(),label:u(),addonId:u().optional(),availability:Jq}),Xq=f({transport:x([`archive`,`stream`,`realtime`]),coverage:x([`continuous`,`sparse`]),seek:x([`free`,`forward`,`segment`]),stepBack:C(),scrub:C(),rates:S(a().positive()).min(1).readonly(),exclusive:C()}),Zq=h(`kind`,[f({kind:g(`hls`),manifest:qq}),f({kind:g(`clip`),source:u(),clipId:u(),startsAtMs:a()}),f({kind:g(`none`),reason:u()})]),Qq={name:`recording`,scope:`device`,mode:`collection`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],methods:{listSources:L(f({deviceId:a()}),S(Yq).readonly(),{kind:`query`,auth:`protected`}),getAvailability:L(f({deviceId:a(),provider:u().min(1),fromMs:a(),toMs:a(),profile:u().optional()}),Gq,{kind:`query`,auth:`protected`}),getDaysWithRecordings:L(f({deviceId:a(),provider:u().min(1),fromMs:a(),toMs:a(),tzOffsetMinutes:a()}),Kq,{kind:`query`,auth:`protected`}),getPlayback:L(f({deviceId:a(),provider:u().min(1),fromMs:a(),toMs:a(),profile:k.optional()}),Zq,{kind:`query`,auth:`protected`}),getPlaybackOptions:L(f({deviceId:a(),provider:u().min(1)}),Xq,{kind:`query`,auth:`protected`})}},$q=f({deviceId:a(),enabled:C(),activeMode:Sc,nodeId:u(),storageBytes:a()}),eJ=f({deviceId:a(),read:x([`read`,`unreadable`]),ranges:S(Uq).readonly(),profilesWithFootage:S(u()).readonly()}),tJ=f({deviceId:a(),read:x([`read`,`unreadable`]),days:S(a()).readonly()}),nJ=f({deviceId:a(),usedBytes:a(),oldestMs:a().nullable().optional(),segments:a().optional(),residentBytes:a().optional(),residentOldestMs:a().nullable().optional()}),rJ=f({locationId:u().nullable(),locationIds:S(u()).optional(),root:u().optional(),usedBytes:a(),availableBytes:a().nullable(),totalBytes:a().nullable()}),iJ=f({nodeId:u(),totalUsedBytes:a(),devices:S(nJ),devicesRead:x([`archive`,`unavailable`]).optional(),complete:C().optional(),locations:S(rJ).optional()}),aJ=f({deviceId:a(),profile:u(),fromLocationId:u(),toLocationId:u(),bytes:a(),files:a().int()}),oJ=x([`unassigned`,`target-not-writable`,`below-threshold`,`no-headroom`]),sJ=f({deviceId:a(),profile:u(),fromLocationId:u(),toLocationId:u().nullable(),bytes:a(),reason:oJ}),cJ=f({moves:S(aJ),skipped:S(sJ),bytesToMove:a(),jobIds:S(u())}),lJ=f({throttleMbps:a().min(1).max(1e3).optional(),minMoveGb:a().min(0).optional()}),uJ=f({deviceId:a().int(),profile:u(),locationId:u()}),dJ=f({deviceId:a().int(),locationId:u()}),fJ=f({assignments:S(uJ),pins:S(dJ),defaultLocations:y(u(),u())}),pJ=f({deviceId:a().int(),locationId:u().nullable()}),mJ=h(`kind`,[f({kind:g(`segment`),startMs:a(),durMs:a(),bytes:a()}),f({kind:g(`gap`),nearestEdgeMs:a().nullable(),prevEndMs:a().nullable().optional()})]),hJ=f({data:b(Uint8Array)}),gJ=f({data:b(Uint8Array),gopStartMs:a(),gopDurMs:a()}),_J=h(`kind`,[f({kind:g(`ok`),data:b(Uint8Array),gopStartMs:a(),gopDurMs:a(),reachesRequestedEnd:C()}),f({kind:g(`spans-multiple-segments`),segmentEndMs:a()})]),vJ={name:`recording-archive`,scope:`system`,mode:`singleton`,exposesDeviceSettings:!0,status:{schema:$q,kind:`command-driven`},methods:{getAvailabilityBatch:L(f({deviceIds:S(a()).min(1).max(200),fromMs:a(),toMs:a()}),S(eJ).readonly(),{kind:`query`,auth:`protected`}),getDaysWithRecordingsBatch:L(f({deviceIds:S(a()).min(1).max(200),fromMs:a(),toMs:a(),tzOffsetMinutes:a()}),S(tJ).readonly(),{kind:`query`,auth:`protected`}),getStorageUsage:L(f({}),iJ,{kind:`query`,auth:`admin`}),getDeviceConfig:L(f({deviceId:a()}),Nc,{kind:`query`,auth:`protected`}),locateSegment:L(f({deviceId:a(),profile:u(),epochMs:a()}),mJ,{kind:`query`,auth:`admin`}),readSegmentBytes:L(f({deviceId:a(),profile:u(),startMs:a()}),hJ,{kind:`query`,auth:`admin`}),readGopBytes:L(f({deviceId:a(),profile:u(),startMs:a(),epochMs:a()}),gJ,{kind:`query`,auth:`admin`}),readWindowBytes:L(f({deviceId:a(),profile:u(),startMs:a(),fromMs:a(),toMs:a()}),_J,{kind:`query`,auth:`admin`}),setDeviceConfig:L(f({deviceId:a(),config:Nc}),Nc,{kind:`mutation`,auth:`admin`}),rescanStorage:L(f({deviceId:a()}),$q,{kind:`mutation`,auth:`admin`}),pruneFootage:L(f({deviceId:a(),reason:Ws.optional()}),f({floorMs:a().nullable(),deletedBuckets:a().int(),reclaimedBytes:a().int()}),{kind:`mutation`,auth:`admin`}),deleteFootprint:L(f({deviceId:a(),fromMs:a().optional(),toMs:a().optional()}),f({deletedBuckets:a().int(),reclaimedBytes:a().int()}),{kind:`mutation`,auth:`admin`}),listOpsLog:L(Ks,S(Gs).readonly(),{kind:`query`,auth:`admin`}),renderGif:L(f({deviceId:a(),aroundMs:a(),preRollSec:a().min(0).max(30).default(2),postRollSec:a().min(0).max(30).default(5),maxWidth:a().int().min(120).max(1280).default(480),fps:a().int().min(1).max(15).default(5)}),f({gifBase64:u(),fromMs:a(),toMs:a()}),{kind:`mutation`,auth:`admin`}),renderClip:L(f({deviceId:a(),aroundMs:a(),preRollSec:a().min(0).max(30).default(3),postRollSec:a().min(0).max(30).default(7),maxWidth:a().int().min(160).max(1920).default(640)}),f({clipBase64:u(),mime:u(),fromMs:a(),toMs:a(),bytes:a().int()}),{kind:`mutation`,auth:`admin`}),pauseForStorageMigration:L(qc,f({paused:g(!0)}),{kind:`mutation`,auth:`admin`}),resumeForStorageMigration:L(qc,f({resumed:g(!0)}),{kind:`mutation`,auth:`admin`}),refreshStorageLocationsForMigration:L(qc,f({refreshed:g(!0)}),{kind:`mutation`,auth:`admin`}),startStorageMigrationMove:L(Jc,f({jobId:u()}),{kind:`mutation`,auth:`admin`}),getStorageMigrationMoveStatus:L(f({jobId:u()}),Wc.nullable(),{auth:`admin`}),cancelStorageMigrationMove:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),relocateFootage:L(Kc,f({jobId:u()}),{kind:`mutation`,auth:`admin`}),listRelocateJobs:L(f({}),S(Wc).readonly(),{kind:`query`,auth:`admin`}),getRelocateResidue:L(_l,vl,{kind:`query`,auth:`admin`}),reconcileLedgerAgainstDisk:L(yl,wl,{kind:`mutation`,auth:`admin`}),cancelRelocateJob:L(f({jobId:u()}),f({cancelled:C()}),{kind:`mutation`,auth:`admin`}),planStorageRebalance:L(lJ,cJ,{kind:`query`,auth:`admin`}),startStorageRebalance:L(lJ,cJ,{kind:`mutation`,auth:`admin`}),getPlacement:L(f({}),fJ,{kind:`query`,auth:`admin`}),setDevicePlacement:L(pJ,f({ok:g(!0)}),{kind:`mutation`,auth:`admin`})}},yJ=a().min(.25).max(32),bJ=f({fromSec:a().nonnegative(),toSec:a().nonnegative()}).refine(e=>e.toSec>e.fromSec,{message:`dense range must have toSec > fromSec`}),xJ=f({everyMs:a().int().positive(),ranges:S(bJ).min(1).max(200)}),SJ=f({everyMs:a().int().positive(),outputFps:a().int().min(1).max(60).optional(),dense:xJ.optional()}).superRefine((e,t)=>{e.dense!==void 0&&e.dense.everyMs>=e.everyMs&&t.addIssue({code:le.custom,message:`dense.everyMs must be strictly smaller than the base everyMs`,path:[`dense`,`everyMs`]})}),CJ=f({speed:yJ.optional(),timelapse:SJ.optional(),includeAudio:C(),maxLifeMs:a().int().positive(),deleteAfterDownload:C(),title:u().max(200).optional(),notifyTargetIds:S(u().min(1)).max(20).optional()}).superRefine((e,t)=>{e.speed!==void 0&&e.timelapse!==void 0&&t.addIssue({code:le.custom,message:`speed and timelapse are mutually exclusive`,path:[`timelapse`]})}),wJ=x([`queued`,`rendering`,`ready`,`failed`,`expired`,`deleted`]),TJ=f({kind:g(`footage`),deviceId:a(),profiles:S(u()).min(1),fromMs:a(),toMs:a()}),EJ=f({kind:g(`clip`),deviceId:a(),provider:u().min(1),source:u().min(1),sourceLabel:u().min(1),clipId:u().min(1),catalogWindow:f({sinceMs:a(),untilMs:a()}),profile:x([`high`,`mid`,`low`]),wake:jB.optional()}),DJ=h(`kind`,[TJ,EJ]),OJ=f({id:u(),deviceId:a(),profile:u(),fromMs:a(),toMs:a(),subject:DJ.optional(),options:CJ,state:wJ,progressPct:a().nullable(),fileBytes:a().nullable(),expiresAt:a(),deleteAfterDownload:C(),downloadedAt:a().nullable(),createdAt:a(),createdBy:u(),error:u().nullable()}),kJ=x([`catalog-miss`,`catalog-unreachable`,`no-file-for-window`,`clip-in-progress`,`unsupported-option`,`sleeping`,`camera-refused`,`fetch-failed`,`too-large-to-transfer`,`wake-expired`]);function AJ(e,t){return t.length>0?`${e}: ${t}`:e}function jJ(e){if(e===null)return null;let t=e.split(`:`,1)[0]??``,n=kJ.safeParse(t.trim());return n.success?n.data:null}var MJ=f({url:u(),endpoints:S(u())}),NJ=50*1024*1024,PJ=f({base64:u(),contentType:u(),name:u(),bytes:a().int().nonnegative()});function FJ(e){return e.profiles!==void 0&&e.profiles.length>0?[...e.profiles]:typeof e.profile==`string`&&e.profile.length>0?[e.profile]:[]}var IJ=f({deviceId:a(),profile:u().optional(),profiles:S(u()).min(1).optional(),fromMs:a().optional(),toMs:a().optional(),subject:DJ.optional(),options:CJ}).superRefine((e,t)=>{if(e.subject?.kind===`clip`){e.subject.deviceId!==e.deviceId&&t.addIssue({code:le.custom,message:`subject.deviceId (${e.subject.deviceId}) must equal deviceId (${e.deviceId}) — the top-level field is what per-device scope enforcement reads`,path:[`subject`,`deviceId`]}),(e.fromMs!==void 0||e.toMs!==void 0)&&t.addIssue({code:le.custom,message:`a clip export asks for no time range: the camera chose the boundaries and they are read from the catalog row`,path:[`fromMs`]});return}e.subject?.kind===`footage`&&e.subject.deviceId!==e.deviceId&&t.addIssue({code:le.custom,message:`subject.deviceId (${e.subject.deviceId}) must equal deviceId (${e.deviceId})`,path:[`subject`,`deviceId`]});let n=e.subject?.kind===`footage`?e.subject.fromMs:e.fromMs,r=e.subject?.kind===`footage`?e.subject.toMs:e.toMs;(typeof n!=`number`||typeof r!=`number`)&&t.addIssue({code:le.custom,message:`a footage export needs fromMs and toMs`,path:[`fromMs`]}),(e.subject?.kind===`footage`?[...e.subject.profiles]:FJ(e)).length<1&&t.addIssue({code:le.custom,message:`pass profiles[] (min 1) or legacy profile`,path:[`profiles`]})});function LJ(e){if(e.subject!==void 0)return e.subject;let t=FJ(e);if(typeof e.fromMs!=`number`||typeof e.toMs!=`number`)throw Error(`recording-export: a footage export needs fromMs and toMs`);return{kind:`footage`,deviceId:e.deviceId,profiles:t,fromMs:e.fromMs,toMs:e.toMs}}function RJ(e){return e.subject===void 0?{kind:`footage`,deviceId:e.deviceId,profiles:[e.profile],fromMs:e.fromMs,toMs:e.toMs}:e.subject}var zJ={name:`recording-export`,scope:`system`,mode:`singleton`,methods:{createExport:L(IJ,OJ,{kind:`mutation`,auth:`protected`}),listExports:L(f({deviceId:a().optional()}),S(OJ),{kind:`query`,auth:`protected`}),getExport:L(f({exportId:u()}),OJ,{kind:`query`,auth:`protected`}),cancelExport:L(f({exportId:u()}),OJ,{kind:`mutation`,auth:`protected`}),deleteExport:L(f({exportId:u()}),OJ,{kind:`mutation`,auth:`protected`}),getDownloadUrl:L(f({exportId:u()}),MJ,{kind:`query`,auth:`protected`}),readExportBytes:L(f({exportId:u()}),PJ,{kind:`query`,auth:`protected`})}},BJ=x([`continuous`,`motion`,`person`,`vehicle`,`animal`,`lineCrossing`,`intrusion`,`loitering`,`alarmInput`]),VJ=f({trigger:BJ,day:a().int().min(0).max(6),startMinute:a().int().min(0).max(1439),endMinute:a().int().min(1).max(1440)}),HJ=f({id:u(),label:u().optional(),status:x([`ok`,`unformatted`,`error`,`offline`,`unknown`]),capacityMb:a().nullable(),freeMb:a().nullable(),writable:C().optional()}),UJ=h(`kind`,[f({kind:g(`present`),volumes:S(HJ)}),f({kind:g(`absent`),reason:u()}),f({kind:g(`unknown`),reason:u()})]),WJ=f({id:u(),enabled:C(),isVideo:C(),codec:u().nullable(),resolution:u().nullable(),overwriteWhenFull:C().nullable()}),GJ=f({storage:UJ,tracks:S(WJ),primaryTrackId:u().nullable(),enabled:C().nullable(),overwriteWhenFull:C().nullable(),preRecordSec:a().nullable(),postRecordSec:a().nullable(),segmentMinutes:a().nullable(),windows:S(VJ),unreadableWindows:a(),recordingToNowhere:C(),lastFetchedAt:a()}),KJ=f({min:a(),max:a(),step:a()}),qJ=f({values:S(a()).min(1),sentinel:f({value:a(),meaning:x([`no-limit`,`disabled`])}).optional()}),JJ=f({readable:C(),writable:C(),reason:u().optional()}),YJ=f({support:JJ,granularityMinutes:a(),triggers:S(BJ),supportsOverlappingTriggers:C()}),XJ=f({enabled:JJ,overwriteWhenFull:JJ,preRecordSec:JJ,preRecordSecRange:KJ.optional(),preRecordSecAllowed:qJ.optional(),postRecordSec:JJ,postRecordSecRange:KJ.optional(),postRecordSecAllowed:qJ.optional(),segmentMinutes:JJ,segmentMinutesRange:KJ.optional(),segmentMinutesAllowed:qJ.optional(),schedule:YJ}),ZJ=f({enabled:C().optional(),overwriteWhenFull:C().optional(),preRecordSec:a().optional(),postRecordSec:a().optional(),segmentMinutes:a().optional(),windows:S(VJ).optional()}),QJ={name:`recording-onboard`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`derived-form`,builderId:`recording-onboard`,tab:`recording`}},methods:{getOptions:L(f({deviceId:a()}),XJ),setSettings:L(f({deviceId:a(),settings:ZJ}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:GJ,kind:`poll`},runtimeState:GJ,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},$J=1440,eY=[`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`,`Sunday`];function tY(e,t){if(t.enabled!==void 0&&!e.enabled.writable)return nY(`the master recording switch`,e.enabled.reason);if(t.overwriteWhenFull!==void 0&&!e.overwriteWhenFull.writable)return nY(`overwrite-when-full`,e.overwriteWhenFull.reason);let n=rY(`pre-record seconds`,t.preRecordSec,e.preRecordSec,e.preRecordSecRange,e.preRecordSecAllowed);if(n)return n;let r=rY(`post-record seconds`,t.postRecordSec,e.postRecordSec,e.postRecordSecRange,e.postRecordSecAllowed);if(r)return r;let i=rY(`segment length (minutes)`,t.segmentMinutes,e.segmentMinutes,e.segmentMinutesRange,e.segmentMinutesAllowed);if(i)return i;if(t.windows!==void 0){let n=iY(e,t.windows);if(n)return n}return null}function nY(e,t){return t?`this camera cannot change ${e}: ${t}`:`this camera cannot change ${e}`}function rY(e,t,n,r,i){if(t===void 0)return null;if(!n.writable)return nY(e,n.reason);if(!Number.isFinite(t))return`${e} must be a number, got ${String(t)}`;if(i){if(i.values.includes(t))return null;let n=e=>i.sentinel!==void 0&&e===i.sentinel.value?i.sentinel.meaning===`no-limit`?`no limit`:`off`:String(e);return`this camera accepts ${e} only as ${i.values.map(n).join(`, `)}; ${n(t)} is not one of them`}return r?t<r.min||t>r.max?`this camera accepts ${e} between ${String(r.min)} and ${String(r.max)}; ${String(t)} is outside that`:r.step>0&&(t-r.min)%r.step!==0?`this camera accepts ${e} in steps of ${String(r.step)} from ${String(r.min)}; ${String(t)} is not one of them`:null:null}function iY(e,t){let n=e.schedule;if(!n.support.writable)return nY(`the recording schedule`,n.support.reason);let r=new Set(n.triggers);for(let e of t){if(!r.has(e.trigger)){let t=n.triggers.length>0?n.triggers.join(`, `):`none`;return`this camera cannot record on "${e.trigger}"; it records on: ${t}`}if(e.endMinute<=e.startMinute)return`a window on ${oY(e.day)} ends at or before it starts (${String(e.startMinute)} → ${String(e.endMinute)})`;let t=n.granularityMinutes;if(t>1&&(e.startMinute%t!==0||e.endMinute%t!==0))return`this camera's schedule only moves in ${String(t)}-minute steps; the ${oY(e.day)} window ${sY(e.startMinute)}–${sY(e.endMinute)} is not aligned to them`}if(!n.supportsOverlappingTriggers){let e=aY(t);if(e)return`this camera stores one trigger per time range, so "${e.a.trigger}" and "${e.b.trigger}" cannot both cover ${oY(e.a.day)} ${sY(Math.max(e.a.startMinute,e.b.startMinute))}–${sY(Math.min(e.a.endMinute,e.b.endMinute))}`}return null}function aY(e){for(let t=0;t<e.length;t+=1)for(let n=t+1;n<e.length;n+=1){let r=e[t],i=e[n];if(!(!r||!i)&&r.day===i.day&&r.trigger!==i.trigger&&r.startMinute<i.endMinute&&i.startMinute<r.endMinute)return{a:r,b:i}}return null}function oY(e){return eY[e]??`day ${String(e)}`}function sY(e){let t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}`}function cY(e,t){return e*24+t}function lY(e){if(e.length===0)return!0;let t=e[0];for(let n of e)if(n!==t)return!1;return!0}function uY(e,t){if(e.length!==168)return[];let n=[];for(let r=0;r<7;r+=1){let i=null;for(let a=0;a<=24;a+=1){let o=a<24&&e[cY(r,a)]===`1`;o&&i===null?i=a:!o&&i!==null&&(n.push({trigger:t,day:r,startMinute:i*60,endMinute:a*60}),i=null)}}return n}function dY(e,t){let n=Array(168).fill(`0`);for(let r of e){if(r.trigger!==t||r.day<0||r.day>=7)continue;let e=Math.floor(r.startMinute/60),i=Math.ceil(r.endMinute/60);for(let t=e;t<i&&t<24;t+=1)n[cY(r.day,t)]=`1`}return n.join(``)}function fY(e){let t=/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/.exec(e.trim());if(!t)return null;let n=Number(t[1]),r=Number(t[2]);if(!Number.isInteger(n)||!Number.isInteger(r)||r>59)return null;let i=n*60+r;return i>1440?null:i}function pY(e){if(e>=1440)return`24:00`;let t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}:00`}function mY(e){let t=e.trim().toLowerCase(),n=eY.findIndex(e=>e.toLowerCase()===t);return n>=0?n:null}function hY(e,t){let n=[];for(let[r,i]of Object.entries(e)){if(i===void 0||typeof i!=`number`&&typeof i!=`boolean`&&typeof i!=`string`)continue;let e=t===null?void 0:t[r],a=typeof e==`number`||typeof e==`boolean`||typeof e==`string`?e:null;a!==i&&n.push({field:r,asked:i,stored:a})}return n}var gY=f({active:C(),reason:u(),lastChangedAt:a()}),_Y=gY.extend({lastFetchedAt:a()}),vY={name:`recording-signal`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],methods:{getStatus:L(f({deviceId:a()}),gY)},status:{schema:gY,kind:`push`,empty:{active:!1,reason:`unknown`,lastChangedAt:0}},runtimeState:_Y,durability:`session`,history:`none`},yY=[{capName:`recording`,sourceId:`camstack`,addonId:`recorder`}];function bY(e,t){for(let n of yY)if(n.capName===e&&n.sourceId===t)return n.addonId;return null}var xY=u(),SY=[`day`,`ir`,`night`,`dawn`,`dusk`],CY=x([`skip`,`judge-anyway`]),wY=`__diverged__`,TY=x([`matched`,`diverged`,`unknown`]),EY=x([`no-reference-for-condition`,`view-shifted`,`no-vision-profile`,`encoder-model-changed`,`no-snapshot`]),DY=f({embedding:S(a()),modelId:u(),condition:xY,capturedAt:a(),thumbnailMediaId:a().int().optional(),anchorEmbedding:S(a()).optional()}),OY=f({id:u(),label:u(),references:S(DY),textPrompts:S(u()).optional(),referenceCount:a(),currentlyMatched:C()}),kY=h(`mode`,[f({mode:g(`similarity`),threshold:a().min(0).max(1),hysteresisCount:a().int().positive()}),f({mode:g(`llm`),prompt:u(),profileId:u().optional(),hysteresisCount:a().int().positive()})]),AY=.85,jY=`skip`,MY=8e3,NY=f({enabled:C().default(!1),prompt:u().min(1).max(1e3),profileId:u().optional(),timeoutMs:a().int().min(1e3).max(2e4).default(MY),maxImagePx:a().int().min(64).max(2048).default(448),onTimeout:x([`flip`,`hold`]).default(`hold`)}),PY=f({id:u(),label:u(),roi:wk,enabled:C(),triggerMode:x([`periodic`,`on-motion`,`both`]),checkIntervalSec:a().optional(),check:kY,states:S(OY),currentStateId:u().nullable(),lastCheckedAt:a().nullable(),lastConfidence:a().nullable(),currentCondition:xY.nullable(),availability:x([`ok`,`unavailable`]),unavailableReason:u().nullable(),baselineStateId:u().nullable(),emit:x([`latched`,`live`]).default(`latched`),verdict:TY,latched:C(),armedAt:a(),divergedAt:a().nullable(),restoredAt:a().nullable(),quietSeconds:a().int().min(0).max(3600).default(60),minObservationSpacingSec:a().int().min(0).max(3600).default(120),confirm:NY.optional(),anchorThreshold:a().min(0).max(1).default(AY),autoRestore:C().default(!1),onUncoveredCondition:CY.default(jY),suspendedCondition:xY.nullable().default(null),unavailable:EY.nullable(),coveredConditions:S(xY)}),FY=f({monitors:S(PY),lastFetchedAt:a()}),IY=f({deviceId:a(),status:FY.nullable()}),LY={name:`scene-monitor`,scope:`device`,mode:`singleton`,kind:`wrapper`,defaultActive:!0,deviceTypes:[R.Camera],methods:{listScenes:L(f({deviceId:a()}),FY),listScenesBatch:L(f({deviceIds:S(a()).min(1).max(200)}),S(IY).readonly()),createScene:L(f({deviceId:a(),label:u(),roi:wk,check:kY,triggerMode:x([`periodic`,`on-motion`,`both`]).optional(),checkIntervalSec:a().optional()}),PY,{kind:`mutation`,auth:`admin`}),updateScene:L(f({deviceId:a(),monitorId:u(),patch:f({label:u().optional(),roi:wk.optional(),enabled:C().optional(),triggerMode:x([`periodic`,`on-motion`,`both`]).optional(),checkIntervalSec:a().optional(),check:kY.optional(),emit:x([`latched`,`live`]).optional(),quietSeconds:a().int().min(0).max(3600).optional(),minObservationSpacingSec:a().int().min(0).max(3600).optional(),anchorThreshold:a().min(0).max(1).optional(),autoRestore:C().optional(),onUncoveredCondition:CY.optional(),confirm:NY.nullable().optional()})}),v(),{kind:`mutation`,auth:`admin`}),deleteScene:L(f({deviceId:a(),monitorId:u()}),v(),{kind:`mutation`,auth:`admin`}),captureReference:L(f({deviceId:a(),monitorId:u(),stateId:u().optional(),label:u().optional(),condition:xY.optional()}),f({stateId:u(),referenceCount:a()}),{kind:`mutation`,auth:`admin`}),deleteReference:L(f({deviceId:a(),monitorId:u(),stateId:u(),index:a()}),v(),{kind:`mutation`,auth:`admin`}),recheckNow:L(f({deviceId:a(),monitorId:u()}),v(),{kind:`mutation`,auth:`admin`}),resetScene:L(f({deviceId:a(),monitorId:u(),recapture:C().optional()}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:FY,kind:`push`},runtimeState:FY,durability:`session`,history:`none`},RY=x([`include`,`exclude`]),zY=f({id:u(),name:u().optional(),zoneIds:S(u()).min(1).readonly(),mode:RY,classFilter:S(u()).readonly().optional(),overlapThreshold:a().min(0).max(1).optional(),bboxInclusionPct:a().min(0).max(100).optional(),preferMask:C().optional(),enabled:C().default(!0)}),BY=S(zY).readonly(),VY=f({isRunning:C(),lastRunAt:a(),lastRunSuccess:C().nullable(),lastError:u().nullable(),lastChangedAt:a()}),HY={name:`script-runner`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Script],methods:{run:L(f({deviceId:a().int().nonnegative(),variables:y(u(),s()).optional()}),v(),{kind:`mutation`,auth:`admin`}),stop:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`admin`})},status:{schema:VY,kind:`push`},runtimeState:VY,durability:`session`,history:`none`},UY=f({detected:C(),lastChangedAt:a()}),WY={name:`smoke`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:UY,kind:`push`},runtimeState:UY,durability:`restored`,history:{fields:{detected:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},GY=f({camStreamId:u().min(1),kind:Ys,url:u().optional(),codec:u().optional(),resolution:Xs.optional(),fps:a().positive().optional(),label:u().optional(),deviceFeatures:S(u()).optional(),autoEligible:C().optional(),profileHint:k.optional(),metadata:y(u(),s()).optional()}),KY=f({descriptors:S(GY),lastFetchedAt:a()}),qY={name:`stream-catalog`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],methods:{getCatalog:L(f({deviceId:a().int().nonnegative()}),S(GY).readonly())},runtimeState:KY,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},JY=x([`main`,`sub`,`ext`]),YY=f({width:a(),height:a(),codec:x([`h264`,`h265`]),framerate:a(),bitrate:a(),bitrateMode:x([`vbr`,`cbr`]).optional(),encoderProfile:x([`high`,`main`,`baseline`]).optional(),gop:a().optional(),audio:C().optional()}),XY=f({main:YY.optional(),sub:YY.optional(),ext:YY.optional(),lastFetchedAt:a()}),ZY=f({resolutions:S(f({width:a(),height:a()})),codecs:S(x([`h264`,`h265`])),framerates:S(a()),bitrates:S(a()),bitrateRange:d([a(),a()]).optional(),supportsBitrateMode:C(),supportsEncoderProfile:C(),supportsGop:C(),gop:f({min:a(),max:a(),step:a()}).optional()}),QY=f({main:ZY.optional(),sub:ZY.optional(),ext:ZY.optional()}),$Y=f({width:a().optional(),height:a().optional(),codec:x([`h264`,`h265`]).optional(),framerate:a().optional(),bitrate:a().optional(),bitrateMode:x([`vbr`,`cbr`]).optional(),encoderProfile:x([`high`,`main`,`baseline`]).optional(),gop:a().optional()}),eX={name:`stream-params`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Camera],deviceConfig:{ui:{kind:`derived-form`,builderId:`stream-params`,tab:`streaming`}},methods:{getOptions:L(f({deviceId:a()}),QY),setProfile:L(f({deviceId:a(),profile:JY,patch:$Y}),v(),{kind:`mutation`,auth:`admin`}),getConfigSchema:L(f({deviceId:a()}),s().nullable())},status:{schema:XY,kind:`poll`},runtimeState:XY,durability:`restored`,history:`none`,volatileStateFields:[`lastFetchedAt`]},tX=[{profile:`main`,prefix:`streamMain`,label:`Main stream`},{profile:`sub`,prefix:`streamSub`,label:`Sub stream`},{profile:`ext`,prefix:`streamExt`,label:`Third stream`}];function nX(e,t,n){let r=[];if(t.resolutions.length>0){let i=t.resolutions.map(e=>({value:`${String(e.width)}x${String(e.height)}`,label:`${String(e.width)}×${String(e.height)}`})),a=n?`${String(n.width)}x${String(n.height)}`:void 0;a&&!i.some(e=>e.value===a)&&i.unshift({value:a,label:`${a.replace(`x`,`×`)} (current)`}),r.push({type:`select`,key:`${e.prefix}_resolution`,label:`Resolution`,options:i,default:a??i[0]?.value??``})}if(t.codecs.length>0&&r.push({type:`select`,key:`${e.prefix}_codec`,label:`Codec`,options:t.codecs.map(e=>({value:e,label:e===`h264`?`H.264`:`H.265`})),default:n?.codec??t.codecs[0]}),t.framerates.length>0){let i=t.framerates.map(e=>({value:String(e),label:`${String(e)} fps`})),a=n?.framerate;a!==void 0&&!t.framerates.includes(a)&&i.unshift({value:String(a),label:`${String(a)} fps (current)`}),r.push({type:`select`,key:`${e.prefix}_framerate`,label:`Frame rate`,options:i,default:a===void 0?i[0]?.value??``:String(a)})}if(t.bitrates.length>0){let i=t.bitrates.map(e=>({value:String(e),label:`${String(e)} kbps`})),a=n?.bitrate;a!==void 0&&!t.bitrates.includes(a)&&i.unshift({value:String(a),label:`${String(a)} kbps (current)`}),r.push({type:`select`,key:`${e.prefix}_bitrate`,label:`Bitrate`,options:i,default:a===void 0?i[0]?.value??``:String(a)})}else{let i=t.bitrateRange;r.push({type:`number`,key:`${e.prefix}_bitrate`,label:`Bitrate`,unit:`kbps`,...i?{min:i[0],max:i[1]}:{},default:n?.bitrate??i?.[0]??0})}if(t.supportsBitrateMode&&r.push({type:`select`,key:`${e.prefix}_bitrateMode`,label:`Bitrate mode`,options:[{value:`vbr`,label:`VBR (variable)`},{value:`cbr`,label:`CBR (constant)`}],default:n?.bitrateMode??`vbr`}),t.supportsEncoderProfile&&r.push({type:`select`,key:`${e.prefix}_encoderProfile`,label:`Encoder profile`,options:[{value:`baseline`,label:`Baseline`},{value:`main`,label:`Main`},{value:`high`,label:`High`}],default:n?.encoderProfile??`main`}),t.supportsGop){let i=t.gop;if(i){let t=[];for(let e=i.min;e<=i.max;e+=i.step)t.push({value:String(e),label:`${String(e)} s`});let a=n?.gop;a!==void 0&&!t.some(e=>e.value===String(a))&&t.unshift({value:String(a),label:`${String(a)} s (current)`}),r.push({type:`select`,key:`${e.prefix}_gop`,label:`I-frame interval (GOP)`,options:t,default:a===void 0?t[0]?.value??``:String(a)})}else r.push({type:`number`,key:`${e.prefix}_gop`,label:`I-frame interval (GOP)`,unit:`s`,min:1,default:n?.gop??1})}return r.length===0?null:{id:`stream-${e.profile}`,tab:`streaming`,title:e.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:r}}function rX(e,t){let n=[];for(let r of tX){let i=e[r.profile];if(!i)continue;let a=nX(r,i,t?.[r.profile]);a&&n.push(a)}return n.length===0?null:{sections:n}}function iX(e,t){let n={},r=!1,i=`${t}_resolution`;if(i in e&&typeof e[i]==`string`){let[t,a]=e[i].split(`x`).map(Number);Number.isFinite(t)&&Number.isFinite(a)&&(n.width=t,n.height=a,r=!0)}let a=`${t}_codec`;a in e&&(e[a]===`h264`||e[a]===`h265`)&&(n.codec=e[a],r=!0);let o=`${t}_framerate`;if(o in e){let t=Number(e[o]);Number.isFinite(t)&&(n.framerate=t,r=!0)}let s=`${t}_bitrate`;if(s in e){let t=Number(e[s]);Number.isFinite(t)&&(n.bitrate=t,r=!0)}let c=`${t}_bitrateMode`;c in e&&(e[c]===`vbr`||e[c]===`cbr`)&&(n.bitrateMode=e[c],r=!0);let l=`${t}_encoderProfile`;l in e&&(e[l]===`high`||e[l]===`main`||e[l]===`baseline`)&&(n.encoderProfile=e[l],r=!0);let u=`${t}_gop`;if(u in e){let t=Number(e[u]);Number.isFinite(t)&&(n.gop=t,r=!0)}return r?n:null}var aX=f({on:C(),lastChangedAt:a()}),oX={name:`switch`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Switch,R.Siren,R.Light],methods:{setState:L(f({deviceId:a(),on:C()}),v(),{kind:`mutation`,auth:`protected`})},events:{onStateChanged:{data:f({deviceId:a(),on:C(),lastChangedAt:a()})}},status:{schema:aX,kind:`command-driven`},runtimeState:aX,durability:`restored`,history:{fields:{on:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`],settings:{bindings:[{kind:`scalar`,statusPath:`on`,method:`setState`,valueArg:`on`,field:{label:`On`,kind:`boolean`}}]}},sX=`server.name`;function cX(e){for(let t of e){let e=t.codePointAt(0)??0;if(e<=31||e>=127&&e<=159)return!0}return!1}var lX=u().transform(e=>e.trim()).pipe(u().min(1,`The server name cannot be empty`).max(48,`The server name is at most 48 characters`).refine(e=>!cX(e),{message:`The server name cannot contain control characters`})),uX=f({name:u(),isDefault:C()}),dX=`CamStack`,fX=/^(?:[0-9a-f]{12}|[0-9a-f]{64})$/;function pX(e){let t=e.trim().split(`.`)[0]??``;return t.length===0||t.toLowerCase()===`localhost`||fX.test(t)?dX:t}function mX(e,t){let n=lX.safeParse(e);return n.success?{name:n.data,isDefault:!1}:{name:pX(t),isDefault:!0}}var hX=f({streaming:C(),notifications:C(),objectDetection:C(),remoteAccess:C(),agentCluster:C(),smartHome:C(),recordings:C(),backup:C(),repl:C()}),gX=hX.extend({serverName:uX}),_X=f({status:g(`ok`),uptime:a()}),vX=f({name:u(),address:u(),family:u(),internal:C()}),yX=x([`operator-set`,`derived-from-ip`]),bX=f({latitude:a().min(-90).max(90),longitude:a().min(-180).max(180),source:yX,updatedAt:a(),label:u().optional()}),xX=f({location:bX.nullable(),derivationAttemptedAt:a().nullable(),derivationError:u().nullable()}),SX=f({latitude:a().min(-90).max(90),longitude:a().min(-180).max(180)}).nullable(),CX=x([`http`,`ws`,`mesh`,`unknown`]),wX=f({http:a(),ws:a(),mesh:a(),unknown:a()}),TX=f({plane:CX,procedure:u(),userAgent:u(),ip:u(),principal:u(),calls:a(),subscriptions:a(),perMin:a()}),EX=f({procedure:u(),calls:a(),planes:wX,subscriptions:a(),perMin:a()}),DX=f({armed:C(),elapsedMs:a(),windowMs:a(),armedUntilMs:a(),httpRequests:a(),batchedRequests:a(),procedureCalls:a(),planes:wX,planesExplainTotal:C(),wsConnections:a(),wsMessages:a(),subscriptions:a(),subscriptionStops:a(),distinctGroups:a(),unattributedCalls:a(),procedures:S(EX).readonly(),groups:S(TX).readonly()}),OX=DX.extend({persisted:C()}),kX=x([`debug`,`info`,`warn`,`error`]),AX=x([`request-census`]),jX=x([`cluster`,`node`,`component`]),MX=x([`default`,`cluster`,`node`,`component`]),NX=f({scope:jX,nodeId:u().nullable(),component:u().nullable(),level:kX.nullable()}),PX=f({level:kX,levelSource:MX}),FX=f({layers:S(NX).readonly()}),IX=f({id:AX,armed:C(),armedUntilMs:a(),remainingMs:a(),persisted:C()}),LX=f({id:AX,armMs:a().int().min(0),reportEveryMs:a().int().positive().optional()}),RX=f({channel:u(),armed:C(),armedUntilMs:a(),remainingMs:a(),deviceIds:S(a().int()).readonly().nullable()}),zX=f({channel:u().min(1),armMs:a().int().min(0),deviceIds:S(a().int()).readonly().nullable().optional()}),BX=f({level:kX.nullable().optional(),diagnostics:S(LX).readonly().optional(),channels:S(zX).readonly().optional(),opsLogRetentionDays:a().int().min(0).max(3650).optional()}),VX=OD.extend({addonId:u()}),HX=KT.extend({addonId:u()}),UX=f({scopeNodeId:u().optional(),scopeComponent:u().optional()}),WX=f({scopeNodeId:u().optional(),scopeComponent:u().optional(),patch:BX}),GX=f({scopeNodeId:u().nullable(),scopeComponent:u().nullable(),effective:PX,explicit:FX,activeWindows:S(IX).readonly(),channels:S(uu).readonly(),activeChannels:S(RX).readonly(),opsLogRetentionDays:a().int().min(0),persisted:C()}),KX={name:`system`,scope:`system`,mode:`singleton`,methods:{info:L(v(),gX),health:L(v(),_X),featureFlags:L(v(),hX),networkAddresses:L(v(),S(vX).readonly()),getRetentionConfig:L(v(),s().nullable(),{auth:`admin`}),setRetentionConfig:L(y(u(),s()),ae(),{kind:`mutation`,auth:`admin`}),forceRetentionCleanup:L(v(),v(),{kind:`mutation`,auth:`admin`}),getSiteLocation:L(v(),xX),setSiteLocation:L(SX,xX,{kind:`mutation`,auth:`admin`}),detectSiteLocation:L(v(),xX,{kind:`mutation`,auth:`admin`}),getRequestCensus:L(v(),OX,{auth:`admin`}),getLoadContributions:L(v(),S(VX).readonly(),{auth:`admin`}),getFailureContributions:L(v(),S(HX).readonly(),{auth:`admin`}),getLoggingSettings:L(UX,GX,{auth:`admin`}),setLoggingSettings:L(WX,GX,{kind:`mutation`,auth:`admin`})},mount:{kind:`server-provided`}},qX=f({tampered:C(),lastChangedAt:a()}),JX={name:`tamper`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:qX,kind:`push`},runtimeState:qX,durability:`restored`,history:{fields:{tampered:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},YX=f({celsius:a(),lastFetchedAt:a(),unit:u().optional(),precision:a().int().min(0).max(10).optional()}),XX={name:`temperature-sensor`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor,R.Thermostat],methods:{},status:{schema:YX,kind:`push`},runtimeState:YX,durability:`restored`,history:{fields:{celsius:{kind:`gauge`,unit:`°C`,deadband:.1}}},volatileStateFields:[`lastFetchedAt`]},ZX=f({title:u(),message:u(),severity:x([`info`,`warning`,`critical`]),duration:a().optional(),action:f({label:u(),url:u()}).optional()}),QX={name:`toast`,scope:`system`,mode:`singleton`,methods:{onToast:L(v(),ZX,{kind:`subscription`})},mount:{kind:`server-provided`}},$X=f({currentVersion:u().nullable(),availableVersion:u().nullable(),updatable:C(),state:u().nullable(),inProgress:C()}),eZ={name:`update`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Update],methods:{installUpdate:L(v(),v(),{kind:`mutation`,auth:`admin`})},status:{schema:$X,kind:`poll`},runtimeState:$X,durability:`session`,history:`none`},tZ=f({id:u(),username:u(),isAdmin:C().default(!1),allowedProviders:p([S(u()),g(`*`)]),allowedDevices:y(u(),p([S(u()),g(`*`)])),scopes:S(Y).default([]),totpEnabled:C().default(!1),createdAt:a(),updatedAt:a()}),nZ=f({username:u(),password:u().min(6),isAdmin:C().default(!1),allowedProviders:p([S(u()),g(`*`)]).optional(),allowedDevices:y(u(),p([S(u()),g(`*`)])).optional(),scopes:S(Y).optional()}),rZ=f({id:u(),isAdmin:C().optional(),allowedProviders:p([S(u()),g(`*`)]).optional(),allowedDevices:y(u(),p([S(u()),g(`*`)])).optional(),scopes:S(Y).optional()}),iZ=f({id:u(),label:u(),isAdmin:C().default(!1),allowedProviders:p([S(u()),g(`*`)]).optional(),allowedDevices:y(u(),p([S(u()),g(`*`)])).optional(),tokenPrefix:u(),createdAt:a(),lastUsedAt:a().optional()}),aZ=f({id:u(),userId:u(),name:u(),tokenPrefix:u(),scopes:S(Y),expiresAt:a().nullish(),lastUsedAt:a().nullish(),createdAt:a()}),oZ=f({userId:u(),name:u(),scopes:S(Y),expiresAt:a().optional()}),sZ=f({token:u(),record:aZ}),cZ=f({id:u(),userId:u(),username:u(),integrationId:u(),scopes:S(Y),createdAt:a(),lastUsedAt:a(),revokedAt:a().nullable()}),lZ=f({secret:u(),otpauthUrl:u()}),uZ=f({enabled:C(),confirmedAt:a().nullable()}),dZ=f({provider:u(),subject:u(),issuer:u(),userId:u(),label:u().optional(),linkedAt:a()}),fZ=f({provider:u().min(1),subject:u().min(1)}),pZ={name:`user-management`,scope:`system`,mode:`singleton`,methods:{listUsers:L(v(),S(tZ),{auth:`admin`}),createUser:L(nZ,tZ,{kind:`mutation`,auth:`admin`,access:`create`}),updateUser:L(rZ,f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`create`}),deleteUser:L(f({id:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`delete`}),resetPassword:L(f({id:u(),newPassword:u().min(6)}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`create`}),setUserScopes:L(f({userId:u(),scopes:S(Y)}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`create`}),validateCredentials:L(f({username:u(),password:u()}),tZ.extend({passwordHash:u()}).nullable(),{kind:`mutation`,access:`view`}),listApiKeys:L(v(),S(iZ),{auth:`admin`}),revokeApiKey:L(f({id:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`delete`}),createScopedToken:L(oZ,sZ,{kind:`mutation`,auth:`admin`,access:`create`}),revokeScopedToken:L(f({id:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`delete`}),validateScopedToken:L(f({token:u()}),aZ.nullable(),{access:`view`}),listScopedTokens:L(f({userId:u()}),S(aZ),{auth:`admin`}),setupTotp:L(f({userId:u()}),lZ,{kind:`mutation`,auth:`admin`,access:`create`}),confirmTotp:L(f({userId:u(),code:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`create`}),disableTotp:L(f({userId:u()}),f({success:g(!0)}),{kind:`mutation`,auth:`admin`,access:`delete`}),getTotpStatus:L(f({userId:u()}),uZ,{auth:`admin`}),migrateRawSecrets:L(qb,Jb,{kind:`mutation`,auth:`admin`,access:`create`}),verifyTotp:L(f({userId:u(),code:u()}),f({valid:C()}),{kind:`mutation`,access:`view`}),oauthIssueCode:L(f({integrationId:u(),userId:u(),username:u(),scopes:S(Y),redirectUri:u(),hubUrl:u(),codeChallenge:u().optional(),refreshTtlSec:p([a().int().positive(),g(`never`)]).optional()}),f({code:u()}),{kind:`mutation`,access:`create`}),oauthExchangeCode:L(f({code:u(),redirectUri:u(),codeVerifier:u().optional()}),f({accessToken:u(),refreshToken:u(),expiresIn:a()}).nullable(),{kind:`mutation`,access:`view`}),oauthRefresh:L(f({refreshToken:u()}),f({accessToken:u(),refreshToken:u(),expiresIn:a()}).nullable(),{kind:`mutation`,access:`view`}),oauthVerifyAccessToken:L(f({token:u()}),f({userId:u(),username:u(),scopes:S(Y)}).nullable(),{access:`view`}),listExternalIdentities:L(f({userId:u()}),S(dZ),{auth:`admin`}),findUserByExternalIdentity:L(fZ,f({userId:u(),issuer:u()}).nullable(),{auth:`admin`}),unlinkExternalIdentity:L(fZ.extend({userId:u()}),f({success:C()}),{kind:`mutation`,auth:`admin`,access:`delete`}),listOauthSessions:L(v(),S(cZ),{auth:`admin`}),revokeOauthSession:L(f({id:u()}),f({success:C()}),{kind:`mutation`,auth:`admin`,access:`delete`})}},mZ=x([`idle`,`cleaning`,`paused`,`returning`,`docked`,`drying`,`error`]),hZ=f({level:a().min(0).max(100).nullable(),status:x([`ok`,`low`,`full`]).nullable()}),gZ=f({state:mZ,batteryLevel:a().min(0).max(100).nullable(),fanSpeed:u().nullable(),availableFanSpeeds:S(u()),cleanWater:hZ.nullable(),dirtyWater:hZ.nullable(),detergent:hZ.nullable(),dustBin:hZ.nullable(),progressPercent:a().min(0).max(100).nullable(),errorCode:a().nullable(),errorLabel:u().nullable(),lastChangedAt:a()}),_Z={name:`vacuum-control`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Vacuum],methods:{start:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),pause:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),stop:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),returnToBase:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),locate:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),setFanSpeed:L(f({deviceId:a().int().nonnegative(),speed:u().min(1)}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:gZ,kind:`push`},runtimeState:gZ,durability:`session`,history:{fields:{batteryLevel:{kind:`gauge`,unit:`%`,deadband:2},"cleanWater.level":{kind:`gauge`,unit:`%`,deadband:2},"dirtyWater.level":{kind:`gauge`,unit:`%`,deadband:2},"detergent.level":{kind:`gauge`,unit:`%`,deadband:2},"dustBin.level":{kind:`gauge`,unit:`%`,deadband:2}}}},vZ=x([`open`,`opening`,`closing`,`closed`,`stopped`]),yZ=f({state:vZ,position:a().min(0).max(100).nullable(),lastChangedAt:a()}),bZ={name:`valve`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Valve],methods:{open:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),close:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),stop:L(f({deviceId:a().int().nonnegative()}),v(),{kind:`mutation`,auth:`protected`}),setPosition:L(f({deviceId:a().int().nonnegative(),position:a().min(0).max(100)}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:yZ,kind:`push`},runtimeState:yZ,durability:`session`,history:{fields:{position:{kind:`gauge`,unit:`%`,minIntervalMs:0}}}},xZ=f({detected:C(),lastChangedAt:a()}),SZ={name:`vibration`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Sensor],methods:{},status:{schema:xZ,kind:`push`},runtimeState:xZ,durability:`restored`,history:{fields:{detected:{kind:`boolean`}}},volatileStateFields:[`lastChangedAt`]},CZ=f({currentTemp:a().nullable(),targetTemp:a().nullable(),operationMode:u().nullable(),availableModes:S(u()),away:C().nullable(),minTemp:a().nullable(),maxTemp:a().nullable(),lastChangedAt:a()}),wZ={name:`water-heater`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.WaterHeater],methods:{setTargetTemp:L(f({deviceId:a().int().nonnegative(),temp:a().finite()}),v(),{kind:`mutation`,auth:`protected`}),setOperationMode:L(f({deviceId:a().int().nonnegative(),mode:u().min(1)}),v(),{kind:`mutation`,auth:`protected`}),setAway:L(f({deviceId:a().int().nonnegative(),on:C()}),v(),{kind:`mutation`,auth:`protected`})},status:{schema:CZ,kind:`push`},runtimeState:CZ,durability:`session`,history:{fields:{currentTemp:{kind:`gauge`,unit:`°C`,deadband:.5},targetTemp:{kind:`gauge`,unit:`°C`,minIntervalMs:0}}}},TZ=f({condition:u().nullable(),temperature:a().nullable(),temperatureUnit:u().nullable(),humidity:a().min(0).max(100).nullable(),pressure:a().nullable(),pressureUnit:u().nullable(),windSpeed:a().nullable(),windSpeedUnit:u().nullable(),windBearing:a().nullable(),lastFetchedAt:a()}),EZ={name:`weather`,scope:`device`,deviceNative:!0,mode:`singleton`,deviceTypes:[R.Weather],methods:{},status:{schema:TZ,kind:`push`},runtimeState:TZ,durability:`session`,history:{fields:{temperature:{kind:`gauge`,unitFrom:`temperatureUnit`,deadband:.2},humidity:{kind:`gauge`,unit:`%`,deadband:1},pressure:{kind:`gauge`,unitFrom:`pressureUnit`,deadband:.5},windSpeed:{kind:`gauge`,unitFrom:`windSpeedUnit`,deadband:.5}}}},DZ=f({totalObjects:a().int().nonnegative(),byClass:y(u(),a().int().nonnegative()),standingObjects:a().int().nonnegative().optional(),transientObjects:a().int().nonnegative().optional()}),OZ=DZ.extend({zoneId:u(),zoneName:u(),trackIds:S(u()).readonly()}),kZ=f({id:u(),className:u(),bbox:f({x:a(),y:a(),w:a(),h:a()}),frameWidth:a().int().nonnegative(),frameHeight:a().int().nonnegative(),firstSeenAt:a().int(),becameStationaryAt:a().int(),lastConfirmedAt:a().int(),label:u().optional(),keyFrameMediaId:a().int().optional()}),AZ=f({ts:a().int(),frameWidth:a().int().nonnegative(),frameHeight:a().int().nonnegative(),zones:S(OZ).readonly(),frame:DZ,unzoned:DZ,stationaryObjects:S(kZ).readonly().optional()}),jZ=f({deviceId:a(),read:x([`read`,`unreadable`]),snapshot:AZ.nullable()}),MZ=x([`minute`,`5min`,`hour`]),NZ=f({from:a().int(),to:a().int(),resolution:MZ}),PZ=f({ts:a().int(),count:a().int().nonnegative()}),FZ={name:`zone-analytics`,scope:`device`,mode:`singleton`,deviceTypes:[R.Camera],methods:{getCurrentSnapshot:L(f({deviceId:a()}),AZ.nullable()),getCurrentSnapshotBatch:L(f({deviceIds:S(a()).min(1).max(200)}),S(jZ).readonly()),getZoneHistory:L(f({deviceId:a(),zoneId:u(),className:u().optional()}).extend(NZ.shape),S(PZ).readonly()),getCameraHistory:L(f({deviceId:a(),className:u().optional()}).extend(NZ.shape),S(PZ).readonly()),getUnzonedHistory:L(f({deviceId:a(),className:u().optional()}).extend(NZ.shape),S(PZ).readonly())},runtimeState:AZ,durability:`session`,history:`none`},IZ=x([`motion`,`detection`,`package`]),LZ={name:`zone-rules`,scope:`device`,mode:`singleton`,deviceTypes:[R.Camera],methods:{listRules:L(f({deviceId:a(),stage:IZ}),S(zY).readonly()),setRules:L(f({deviceId:a(),stage:IZ,rules:S(zY).readonly()}),v(),{kind:`mutation`,auth:`admin`})},runtimeState:f({motion:S(zY).readonly(),detection:S(zY).readonly(),package:S(zY).readonly()}),durability:`restored`,history:`none`},RZ=f({id:u(),label:u(),usdPerHour:a().nonnegative(),vramGb:a().nonnegative()}),zZ=f({id:u(),label:u(),priceMultiplier:a().positive()}),BZ=f({gpuType:u(),region:u(),costCapUsd:a().nonnegative(),maxRuntimeSec:a().int().positive(),failedDatasetGraceHours:a().nonnegative()}),VZ=s(),HZ=f({typeId:u(),label:u(),iconAsset:u(),addonId:u(),configSchema:VZ.optional()}),UZ=f({entryId:u(),typeId:u(),name:u(),addonId:u(),configured:C()}),WZ=f({addonId:u(),entryId:u(),typeId:u(),name:u(),iconAsset:u(),kind:u(),label:u(),gpuTypes:S(RZ).readonly(),regions:S(zZ).readonly(),maxDatasetBytes:a().int().positive(),maxRuntimeSec:a().int().positive(),freeTierNote:u().optional(),dataResidencyNote:u(),configured:C(),defaults:BZ,formValues:y(u(),s()).optional()}),GZ=f({entryId:u().min(1),name:u().min(1),tokenId:u().optional(),tokenSecret:p([u(),f({$secretClear:g(!0)})]).optional(),environment:u().optional(),gpuType:u().optional(),region:u().optional(),costCapUsd:a().nonnegative().optional(),maxRuntimeSec:a().int().positive().optional(),failedDatasetGraceHours:a().nonnegative().optional()}),KZ=f({ok:C(),account:u().optional(),reason:x([`missing`,`invalid`,`forbidden`,`network`,`quota`]).optional(),detail:u().optional()}),qZ=x([`pending`,`starting`,`running`,`succeeded`,`failed`,`cancelled`,`lost`]),JZ=f({jobKey:u(),providerJobId:u().optional(),state:qZ,startedAt:a().optional(),endedAt:a().optional(),exitCode:a().int().optional(),failureReason:u().optional(),gpuType:u(),region:u().optional(),billedSeconds:a().nonnegative(),costUsd:a().nonnegative(),costIsEstimate:C(),lastFetchedAt:a()}),YZ=f({repo:u().min(1),revision:u().regex(/^[0-9a-f]{7,64}$/)}),XZ={entryId:u().min(1),jobKey:u().uuid()},ZZ=f({ts:a(),text:u()}),QZ={name:`training-provider`,scope:`system`,mode:`collection`,internal:!0,methods:{describe:L(f({}),S(WZ).readonly(),{auth:`admin`}),describeTypes:L(f({}),S(HZ).readonly(),{auth:`admin`}),listEntries:L(f({}),S(UZ).readonly(),{auth:`admin`}),createEntry:L(f({typeId:u().min(1),name:u().min(1)}),f({entryId:u()}),{kind:`mutation`,auth:`admin`}),deleteEntry:L(f({entryId:u().min(1)}),f({ok:g(!0)}),{kind:`mutation`,auth:`admin`}),updateEntry:L(GZ,f({ok:g(!0)}),{kind:`mutation`,auth:`admin`}),validateCredentials:L(f({entryId:u().min(1)}),KZ,{kind:`mutation`,auth:`admin`,timeoutMs:3e4}),estimateJob:L(f({entryId:u().min(1),gpuType:u(),region:u(),datasetBytes:a().int().nonnegative(),gpuSecondsLow:a().nonnegative(),gpuSecondsHigh:a().nonnegative()}),f({usdLow:a().nonnegative(),usdHigh:a().nonnegative(),notes:S(u()).readonly()}),{auth:`admin`}),uploadDataset:L(f({...XZ,ticket:bi}),f({bytes:a().int().nonnegative(),sha256:u()}),{kind:`mutation`,auth:`admin`,timeoutMs:120*6e4}),submitJob:L(f({...XZ,trainer:YZ,jobSpecJson:u().min(2).max(64e3),gpuType:u(),region:u(),maxRuntimeSec:a().int().positive()}),JZ,{kind:`mutation`,auth:`admin`,timeoutMs:30*6e4}),getJob:L(f(XZ),JZ,{auth:`admin`,timeoutMs:6e4}),listJobEvents:L(f({...XZ,cursor:u().optional(),max:a().int().min(1).max(500)}),f({lines:S(ZZ).readonly(),cursor:u()}),{auth:`admin`,timeoutMs:6e4}),cancelJob:L(f(XZ),f({ok:g(!0)}),{kind:`mutation`,auth:`admin`,timeoutMs:6e4}),readResult:L(f(XZ),f({found:C(),text:u().optional()}),{kind:`mutation`,auth:`admin`,timeoutMs:5*6e4}),offerArtifact:L(f({...XZ,path:x([`bundle.tar`])}),f({ticket:bi}),{kind:`mutation`,auth:`admin`,timeoutMs:5*6e4}),cleanupJob:L(f(XZ),f({deleted:S(u()).readonly()}),{kind:`mutation`,auth:`admin`,timeoutMs:5*6e4}),listJobs:L(f({entryId:u().min(1).optional()}),S(JZ).readonly(),{auth:`admin`,timeoutMs:2*6e4})}},$Z=f({collectionIds:S(u()).min(1),workState:x([`complete`,`annotated_or_complete`,`any_annotated`]).default(`complete`)}),eQ=f({modelId:u(),label:u(),weights:u(),imgsz:a().int(),baselineOnnxUrl:u(),baselineFloors:y(u(),a()),recommended:C()}),tQ=x([`quick`,`standard`,`thorough`]),nQ=f({selection:$Z,entryId:u().min(1),gpuType:u().min(1),region:u(),baseModelId:u().min(1),preset:tQ,freeze:a().int().nonnegative().nullable(),holdoutCameras:S(a().int()).nullable()}),rQ=f({holdoutCameras:S(a().int()).readonly(),holdoutLastDays:a().int().nonnegative(),holdoutSupport:y(u(),a().int()).nullable(),trainSubjects:a().int()}),iQ=x([`unknown-dataset`,`unknown-provider`,`provider-not-configured`,`unknown-base-model`,`unknown-gpu`,`dataset-too-large`,`no-training-subjects`,`job-already-running`]),aQ=f({refusal:f({reason:iQ,detail:u()}).nullable(),warnings:S(u()).readonly(),split:rQ.nullable(),estimate:f({datasetBytes:a().int(),uploadMinutesAt20Mbps:a(),gpuSecondsLow:a(),gpuSecondsHigh:a(),usdLow:a(),usdHigh:a(),notes:S(u()).readonly()}).nullable(),defaults:f({maxCostUsd:a(),maxRuntimeSec:a().int()}).nullable(),dataNotice:u()}),oQ=x([`queued`,`uploading`,`submitted`,`starting`,`running`,`collecting`,`ready`,`registered`,`canary`,`failed`,`cancelling`,`cancelled`,`lost`,`expired`,`discarded`]),sQ=x([`cost-cap`,`runtime-cap`,`upload-failed`,`submit-failed`,`trainer-failed`,`result-invalid`,`checksum-mismatch`,`fetch-failed`,`provider-error`,`hub-restart-during-upload`]),cQ=f({epoch:a().int(),map50:a().nullable(),map50_95:a().nullable()}),lQ=f({deviceIds:S(a().int()).readonly(),since:a(),previous:S(f({deviceId:a().int(),nodeId:u(),deviceKey:u(),patch:f({modelId:u().optional(),settings:y(u(),s()).readonly().optional()}).nullable()})).readonly()}),uQ=f({id:u(),idempotencyKey:u(),name:u(),createdAt:a(),updatedAt:a(),state:oQ,batchId:u().nullable().default(null),stage:Vo.nullable(),failure:f({reason:sQ,stage:u().nullable(),detail:u()}).nullable(),request:nQ,maxCostUsd:a().nonnegative(),maxRuntimeSec:a().int().positive(),trainer:YZ,datasetLayout:rP,frameCount:a().int().nonnegative(),frameIds:S(u()).max(2e4).readonly(),annotationHash:u(),dataset:f({bytes:a().int(),sha256:u(),uploadedAt:a()}).nullable(),split:rQ,provider:f({state:qZ.nullable(),providerJobId:u().nullable(),startedAt:a().nullable(),endedAt:a().nullable(),billedSeconds:a(),costUsd:a(),costIsEstimate:C(),lastPolledAt:a().nullable()}),progress:f({epoch:a().int().nullable(),epochs:a().int().nullable(),etaSec:a().nullable(),series:S(cQ).readonly()}),logTail:S(u()).readonly(),logCursor:u().nullable(),artifacts:f({bundleBytes:a().int(),bundleSha256:u(),fetchedAt:a(),expiresAt:a()}).nullable(),cloudDatasetDeletedAt:a().nullable(),cloudCleanupDueAt:a().nullable(),registeredModelIds:S(u()).readonly(),canary:lQ.nullable()}),dQ=f({id:u().min(1)}),fQ={name:`training`,scope:`system`,mode:`singleton`,mount:{kind:`hub-only`},methods:{listBaseModels:L(f({}),S(eQ).readonly(),{auth:`admin`}),planJob:L(nQ,aQ,{auth:`admin`,timeoutMs:6e4}),startJob:L(nQ.extend({name:u().min(1).max(120),maxCostUsd:a().positive(),maxRuntimeSec:a().int().positive(),idempotencyKey:u().min(8).max(80)}),h(`kind`,[f({kind:g(`started`),job:uQ}),f({kind:g(`refused`),reason:iQ,detail:u()})]),{kind:`mutation`,auth:`admin`,timeoutMs:12e4}),startJobBatch:L(nQ.omit({baseModelId:!0}).extend({baseModelIds:S(u().min(1)).min(1),name:u().min(1).max(120),maxCostUsd:a().positive(),maxRuntimeSec:a().int().positive(),idempotencyKey:u().min(8).max(80)}),h(`kind`,[f({kind:g(`started`),batchId:u(),jobs:S(uQ).min(1).readonly()}),f({kind:g(`refused`),reason:iQ,detail:u()})]),{kind:`mutation`,auth:`admin`,timeoutMs:12e4}),listJobs:L(f({}),S(uQ).readonly(),{auth:`admin`}),getJob:L(dQ,uQ.nullable(),{auth:`admin`}),cancelJob:L(dQ,uQ,{kind:`mutation`,auth:`admin`,timeoutMs:12e4}),getJobResult:L(dQ,Bo.nullable(),{auth:`admin`}),registerResult:L(dQ.extend({canaryDeviceIds:S(a().int()).readonly()}),uQ,{kind:`mutation`,auth:`admin`,timeoutMs:30*6e4}),canaryResult:L(dQ.extend({deviceIds:S(a().int()).min(1).readonly()}),uQ,{kind:`mutation`,auth:`admin`,timeoutMs:12e4}),rollbackCanary:L(dQ,uQ,{kind:`mutation`,auth:`admin`,timeoutMs:12e4}),discardResult:L(dQ,uQ,{kind:`mutation`,auth:`admin`})}},pQ=[`decoder`,`motion-detection`,`pipeline-executor`,`audio-analyzer`,`pipeline-analytics`,`notification-output`],mQ=[...pQ,`pipeline-orchestrator`,`pipeline-runner`];function hQ(e,t){return t.slot===e}function gQ(e,t){return{slot:e,list:async e=>{let n=await t.list(e);if(n===null)return null;let r=n.value;return{...n,value:r}},set:async(n,r)=>{if(!hQ(e,r))throw Error(`device-extension: a "${r.slot}" value was sent to slot "${e}" — refused`);return await t.set(n,r)},candidates:e=>t.candidates(e)}}function _Q(e,t){return`${e}:${t}`}function vQ(e){let{source:t,label:n,slots:r,hostTypeOf:i,logger:a}=e,o=(e,t)=>t!==null&&$w[e].hostDeviceTypes.some(e=>e===t),s=async(e,n)=>{let a=`${t}:`,s=n.startsWith(a)?r.find(e=>e.slot===n.slice(a.length)):void 0;if(s===void 0)throw Error(`device-extension: "${n}" is not a slot of "${t}" — it serves ${r.map(e=>_Q(t,e.slot)).join(`, `)||`(none)`}`);let c=await i(e);if(!o(s.slot,c))throw Error(`device-extension: slot "${s.slot}" is not offered on device ${e} (type ${c??`unknown`}; offered on ${$w[s.slot].hostDeviceTypes.join(`, `)})`);return s};return{listSources:async()=>[{source:t,label:n,availability:{state:`ok`}}],listSlots:async e=>{let n=await i(e.deviceId),a=[];for(let i of r){if(!o(i.slot,n))continue;let r=await i.list(e.deviceId);r!==null&&a.push({state:`ok`,slotRef:_Q(t,i.slot),slot:i.slot,authority:r.authority,activation:r.activation,value:r.value,sources:[...r.sources],...r.impliedSources===void 0?{}:{impliedSources:[...r.impliedSources]}})}return a},listCandidates:async e=>({candidates:[...await(await s(e.deviceId,e.slotRef)).candidates(e.deviceId)]}),setSlot:async e=>{let t=await(await s(e.deviceId,e.slotRef)).set(e.deviceId,e.value);return a.info(`device-extension: slot written`,{tags:{deviceId:e.deviceId},meta:{slotRef:e.slotRef,reload:t.reload}}),t}}}var yQ={"°C":{dimension:`temperature`,factor:1,offset:0},"°F":{dimension:`temperature`,factor:5/9,offset:-160/9},K:{dimension:`temperature`,factor:1,offset:-273.15},hPa:{dimension:`pressure`,factor:1,offset:0},kPa:{dimension:`pressure`,factor:10,offset:0},Pa:{dimension:`pressure`,factor:.01,offset:0},mbar:{dimension:`pressure`,factor:1,offset:0},bar:{dimension:`pressure`,factor:1e3,offset:0},inHg:{dimension:`pressure`,factor:33.8639,offset:0},mmHg:{dimension:`pressure`,factor:1.33322,offset:0},psi:{dimension:`pressure`,factor:68.9476,offset:0},"m/s":{dimension:`speed`,factor:1,offset:0},"km/h":{dimension:`speed`,factor:1/3.6,offset:0},mph:{dimension:`speed`,factor:.44704,offset:0},kn:{dimension:`speed`,factor:.514444,offset:0},"mm/h":{dimension:`precipitation-rate`,factor:1,offset:0},"in/h":{dimension:`precipitation-rate`,factor:25.4,offset:0},m:{dimension:`length`,factor:1,offset:0},mm:{dimension:`length`,factor:.001,offset:0},cm:{dimension:`length`,factor:.01,offset:0},km:{dimension:`length`,factor:1e3,offset:0},in:{dimension:`length`,factor:.0254,offset:0},ft:{dimension:`length`,factor:.3048,offset:0},mi:{dimension:`length`,factor:1609.344,offset:0},lx:{dimension:`illuminance`,factor:1,offset:0},"W/m²":{dimension:`irradiance`,factor:1,offset:0},W:{dimension:`power`,factor:1,offset:0},kW:{dimension:`power`,factor:1e3,offset:0},VA:{dimension:`apparent-power`,factor:1,offset:0},Wh:{dimension:`energy`,factor:1,offset:0},kWh:{dimension:`energy`,factor:1e3,offset:0},MWh:{dimension:`energy`,factor:1e6,offset:0},V:{dimension:`voltage`,factor:1,offset:0},mV:{dimension:`voltage`,factor:.001,offset:0},A:{dimension:`current`,factor:1,offset:0},mA:{dimension:`current`,factor:.001,offset:0},ppm:{dimension:`concentration-volume`,factor:1,offset:0},ppb:{dimension:`concentration-volume`,factor:.001,offset:0},"µg/m³":{dimension:`concentration-mass`,factor:1,offset:0},"mg/m³":{dimension:`concentration-mass`,factor:1e3,offset:0},kg:{dimension:`mass`,factor:1,offset:0},g:{dimension:`mass`,factor:.001,offset:0},lb:{dimension:`mass`,factor:.453592,offset:0},oz:{dimension:`mass`,factor:.0283495,offset:0},"%":{dimension:`percentage`,factor:1,offset:0}},bQ=class extends Error{from;to;reason;constructor(e,t,n){super(`[units] cannot convert '${e}' → '${t}': ${n}`),this.name=`UnitConversionError`,this.from=e,this.to=t,this.reason=n}};function xQ(e){return Object.hasOwn(yQ,e)?yQ[e]:void 0}function SQ(e){return xQ(e)?.dimension}function CQ(e,t){return e*t.factor+t.offset}function wQ(e,t){return(e-t.offset)/t.factor}function TQ(e,t,n){if(t===n)return e;let r=xQ(t);if(!r)throw new bQ(t,n,`unknown-from`);let i=xQ(n);if(!i)throw new bQ(t,n,`unknown-to`);if(r.dimension!==i.dimension)throw new bQ(t,n,`cross-dimension`);return wQ(CQ(e,r),i)}function EQ(e,t,n){if(t===n)return e;let r=xQ(t);if(!r)return;let i=xQ(n);if(i&&r.dimension===i.dimension)return wQ(CQ(e,r),i)}function DQ(e,t){if(e===t)return!0;let n=SQ(e);return n===void 0?!1:n===SQ(t)}function OQ(e){let t=[];for(let[n,r]of Object.entries(yQ))r.dimension===e&&t.push(n);return t}function kQ(e){return`${V(e.source)} ${e.cap}.${e.fieldPath}`}function AQ(e){return e.fatal||e.confirmed===!0}function jQ(e,t){return e.state===`unavailable`?{state:`unavailable`,value:null,reason:`${kQ(t)}: ${e.reason}`,fatal:e.fatal,confirmed:AQ(e)}:{state:e.state,value:e.value,reason:e.state===`stale`?`${kQ(t)}: ${e.reason}`:null,deadline:null}}function MQ(e,t,n,r){let i={},a=[],o=null,s=null;for(let[n,r]of Object.entries(e.bindings)){if(r.kind===`literal`){i[n]=r.value;continue}let e=t(r);if(e.state===`unavailable`){let t={state:`unavailable`,value:null,reason:`binding \`${n}\` (${kQ(r)}): ${e.reason}`,fatal:e.fatal,confirmed:AQ(e)};if(e.fatal){o=t;break}(s===null||t.confirmed&&!s.confirmed)&&(s=t);continue}i[n]=e.value,e.state===`stale`&&a.push(`\`${n}\`: ${e.reason}`)}let c=o??s;if(c!==null)return r!==void 0&&r.currentOutput!==void 0&&Qy(e.expr,`count`)?{state:`stale`,value:Xp(null,{kind:`count`,highWater:null,primed:!1},r.currentOutput),reason:`${c.reason}; holding the last accumulator value`,deadline:null}:c;let l=[],u=Lm(e.expr,i,n,{hooks:{noteDeadline:e=>l.push(e),convert:(e,t,n)=>EQ(e,oC(t)??t,oC(n)??n)??null},...r===void 0?{}:{invokeStateful:e=>Pm(r.callPathPrefix===void 0?e:{...e,path:`${r.callPathPrefix}@${e.path}`},r.expressionMemory,{currentOutput:r.currentOutput,startedAtMs:r.startedAtMs,nowMs:n})}});return u.ok?{state:a.length>0?`stale`:`fresh`,value:u.value,reason:a.length>0?a.join(`; `):null,deadline:l.length>0?Math.min(...l):null}:{state:`unavailable`,value:null,reason:`the expression failed: ${u.error}`,fatal:!1,confirmed:!0,expressionFailed:!0}}function NQ(e){let{source:t}=e;switch(t.kind){case`from`:return jQ(e.read(t),t);case`expression`:return MQ(t,e.read,e.now,e.stateful);case`code`:return{state:`unavailable`,value:null,reason:`code fields are not runnable in the composer — they arrive in slice 4`,fatal:!0,confirmed:!0}}}var PQ=3e5,FQ=[{addonId:`provider-homeassistant`,stableId:`sensor.living_room_temperature`},{addonId:`provider-homeassistant`,stableId:`sensor.sofa_temperature`},{addonId:`provider-homeassistant`,stableId:`sensor.window_temperature`}],IQ=[{addonId:`provider-homeassistant`,stableId:`binary_sensor.living_room_motion`},{addonId:`provider-homeassistant`,stableId:`binary_sensor.living_room_presence`}];function LQ(e,t,n){return{kind:`from`,source:e,cap:t,fieldPath:n}}function RQ(e,t,n,r){return Object.fromEntries(t.map((t,i)=>[`${e}${i+1}`,LQ(t,n,r)]))}function zQ(e){let t=RQ(`t`,e.temperatureSources,`temperature-sensor`,`celsius`),n=RQ(`f`,e.temperatureSources,`temperature-sensor`,`lastFetchedAt`),r=RQ(`d`,e.motionSources,`motion`,`detected`),i=RQ(`m`,e.motionSources,`motion`,`lastDetectedAt`),a=Object.keys(i).map(t=>`within(${t}, ${e.occupancyWindowMs})`);return qv.parse({target:{kind:`new`,type:R.Sensor,role:z.TemperatureSensor},features:[{kind:`fields`,cap:`temperature-sensor`,fields:{celsius:{kind:`expression`,expr:`round(avg(${Object.keys(t).join(`, `)}), 1)`,bindings:t},lastFetchedAt:{kind:`expression`,expr:`max(${Object.keys(n).join(`, `)})`,bindings:n}}},{kind:`fields`,cap:`binary`,fields:{on:{kind:`expression`,expr:`any(${[...Object.keys(r),...a].join(`, `)})`,bindings:{...r,...i}},lastChangedAt:{kind:`expression`,expr:`now`,bindings:{}}}}]})}var BQ=`8dec3b512fda40cbb8cd121c7a99f890`,VQ=`provider-homeassistant`;function HQ(e){let t={addonId:VQ,stableId:`ha:${e}:dev:${BQ}`},n=e=>({addonId:VQ,stableId:`${t.stableId}-${e}`});return{feeder:t,desiccantDays:n(`sensor.freshelement_3_desiccant_days_remaining`),batteryStatus:n(`sensor.freshelement_3_battery_status`),batteryCharging:n(`binary_sensor.freshelement_3_battery`)}}function UQ(e){let t={d:LQ(e.desiccantDays,`enum-sensor`,`value`)};return qv.parse({target:{kind:`existing`,device:e.feeder},features:[{kind:`fields`,cap:`consumables`,fields:{lastChangedAt:{kind:`expression`,expr:`now`,bindings:{}},lastFetchedAt:{kind:`expression`,expr:`now`,bindings:{}}},items:{desiccant:{label:`Desiccant`,fields:{"remaining.value":{kind:`expression`,expr:`number(d)`,bindings:t},"remaining.unit":{kind:`expression`,expr:`"days"`,bindings:{}},status:{kind:`expression`,expr:`number(d) == null ? null : (number(d) <= 0 ? "replace" : "ok")`,bindings:t}}}}},{kind:`fields`,cap:`battery`,fields:{percentage:{kind:`expression`,expr:`s == "low" ? 15 : (s == "normal" ? 100 : null)`,bindings:{s:LQ(e.batteryStatus,`enum-sensor`,`value`)}},binary:{kind:`expression`,expr:`true`,bindings:{}},charging:{kind:`expression`,expr:`c ? "dc" : "unknown"`,bindings:{c:LQ(e.batteryCharging,`binary`,`on`)}},sleeping:{kind:`expression`,expr:`false`,bindings:{}},lastUpdated:{kind:`expression`,expr:`now`,bindings:{}}}}]})}var WQ=2e3;function GQ(e,t){return Object.keys(jp).filter(e=>Object.hasOwn(Mp,e)&&t.includes(e)).toSorted().flatMap(t=>{let n=jp[t],r=Mp[t];return n===void 0||r===void 0?[]:[{source:e,cap:t,activeField:n,changedAtField:r}]})}function KQ(e){let t=[...e.sources].toSorted((e,t)=>`${e.source.addonId}/${e.source.stableId}#${e.cap}`.localeCompare(`${t.source.addonId}/${t.source.stableId}#${t.cap}`));if(t.length===0)throw Error(`doorbell composition needs at least one source`);let n={};return t.forEach((e,t)=>{n[`active${t}`]={kind:`from`,source:e.source,cap:e.cap,fieldPath:e.activeField},n[`changed${t}`]={kind:`from`,source:e.source,cap:e.cap,fieldPath:e.changedAtField}}),{kind:`fields`,cap:`doorbell`,enabled:e.enabled,fields:{lastPressedAt:{kind:`expression`,expr:`latest(${t.map((e,t)=>`rose(active${t}, changed${t}, ${WQ})`).join(`, `)})`,bindings:n},pressCountSinceStart:{kind:`expression`,expr:`count(lastPressedAt)`,bindings:{lastPressedAt:{kind:`from`,source:{addonId:e.camera.addonId,stableId:e.camera.stableId},cap:`doorbell`,fieldPath:`lastPressedAt`}}}}}}var qQ=Np.filter(e=>e!==`switch`&&e!==`motion`);function JQ(e){let t=jp[e.cap];if(t===void 0||!qQ.includes(e.cap))return null;let n={kind:`expression`,expr:`!v`,bindings:{v:{kind:`from`,source:e.self,cap:e.cap,fieldPath:t}}};return{kind:`fields`,cap:e.cap,fields:{[t]:n}}}function YQ(e){return{kind:`expression`,expr:JSON.stringify(e),bindings:{}}}function XQ(e){if(e.from===e.to||!DQ(e.from,e.to))return null;let t={kind:`expression`,expr:`convert(v, ${JSON.stringify(e.from)}, ${JSON.stringify(e.to)})`,bindings:{v:{kind:`from`,source:e.self,cap:e.cap,fieldPath:e.fieldPath}}};return{kind:`fields`,cap:e.cap,fields:{[e.fieldPath]:t,...e.unitField===null?{}:{[e.unitField]:YQ(e.to)}}}}function ZQ(e){return hc.some(t=>t===e)}var QQ={person:`person`,baby:`person`,car:`vehicle`,motorcycle:`vehicle`,bicycle:`vehicle`,boat:`vehicle`,school_bus:`vehicle`,garbage_truck:`vehicle`,dog:`animal`,cat:`animal`,deer:`animal`,horse:`animal`,bird:`animal`,raccoon:`animal`,fox:`animal`,bear:`animal`,cow:`animal`,squirrel:`animal`,goat:`animal`,rabbit:`animal`,skunk:`animal`,kangaroo:`animal`,possum:`animal`,rodent:`animal`,package:`package`},$Q={face:`attribute`,license_plate:`attribute`,amazon:`attribute`,usps:`attribute`,ups:`attribute`,fedex:`attribute`,dhl:`attribute`,an_post:`attribute`,purolator:`attribute`,postnl:`attribute`,nzpost:`attribute`,postnord:`attribute`,gls:`attribute`,dpd:`attribute`,canada_post:`attribute`,royal_mail:`attribute`,waste_bin:`no-macro`,bbq_grill:`no-macro`,robot_lawnmower:`no-macro`,umbrella:`no-macro`,baby_stroller:`no-macro`};function e$(e){let t={};for(let n of e){let e=QQ[n]??$O.mapping[n];e!==void 0&&ZQ(e)&&(t[n]=e)}return{mapping:t,preserveOriginal:!1}}function t$(e){let t=e$(e),n=Ld(e,t);return n.length>0?{classMap:t,suppliesSteps:n}:{classMap:t}}var n$=Object.freeze({person:.5,vehicle:.5,animal:.5}),r$=Object.freeze({person:.65,vehicle:.65,animal:.65});function i$(e,t){return t===void 0?{...e===`plus`?r$:n$}:{...t}}var a$=[{cap:`alarm-panel`,field:`state`},{cap:`cover`,field:`state`},{cap:`presence`,field:`state`},{cap:`lock-control`,field:`state`},{cap:`contact`,field:`entryOpen`,booleanWords:[`open`,`closed`]},{cap:`switch`,field:`on`,booleanWords:[`on`,`off`]},{cap:`binary`,field:`on`,booleanWords:[`on`,`off`]}];function o$(e){for(let t of a$){let n=e[t.cap];if(typeof n!=`object`||!n)continue;let r=n[t.field];if(typeof r==`string`&&r.length>0)return r;if(typeof r==`boolean`&&t.booleanWords!==void 0)return r?t.booleanWords[0]:t.booleanWords[1]}}function s$(e,t=[]){for(let n of a$){let r=e[n.cap];if(typeof r!=`object`||!r)continue;if(n.booleanWords!==void 0)return[...n.booleanWords];if(n.cap===`alarm-panel`)return[...t];let i=r[n.field];return typeof i==`string`?[i]:[]}return[]}var c$=`camstack/camstack-models`,l$=`https://huggingface.co/${c$}/resolve/main`,u$={"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.hwAccel":`auto`,"ffmpeg.threadCount":0,"auth.tokenExpiry":`30d`},d$={Siren:z.Siren,Floodlight:z.Floodlight,Spotlight:z.Spotlight,PirSensor:z.PirSensor,Chime:z.Chime,Autotrack:z.Autotrack,Nightvision:z.Nightvision,PrivacyMask:z.PrivacyMask},f$={[d$.Siren]:`Siren`,[d$.Floodlight]:`Floodlight`,[d$.Spotlight]:`Spotlight`,[d$.PirSensor]:`PIR`,[d$.Chime]:`Chime`,[d$.Autotrack]:`Autotracking`,[d$.Nightvision]:`Night Vision`,[d$.PrivacyMask]:`Privacy Mask`};function p$(e,t,n){let r=`${e}:${t}`;return typeof n==`number`?`${r}:${n}`:r}var m$=class e{schema;data;persistFn;constructor(e,t,n){this.schema=e,this.data=t,this.persistFn=n}static fromSchema(t,n,r={},i){let a=t.safeParse(r);if(a.success)return new e(t,a.data,n);let o=new Set;for(let e of a.error.issues){let t=e.path[0];typeof t==`string`&&o.add(t)}let s={...r};for(let e of o)delete s[e];let c=t.safeParse(s);return i?.({droppedKeys:[...o],issues:a.error.issues}),c.success?(n(c.data).catch(()=>{}),new e(t,c.data,n)):new e(t,t.parse({}),n)}get values(){return this.data}get(e){return this.data[e]}async set(e,t){let n=this.schema.parse({...this.data,[e]:t});this.data=n,await this.persistFn(this.data)}async setAll(e){let t=this.schema.parse({...this.data,...e});this.data=t,await this.persistFn(this.data)}async deleteKey(e){let{[e]:t,...n}=this.data,r=this.schema.parse(n);this.data=r,await this.persistFn(this.data)}entries(){let e=this.schema.shape;return Object.entries(e).map(([e,t])=>({key:e,schema:t,value:this.data[e],description:t.description}))}},h$=class e{writer;onWriteFailed;pendingWrites=new Set;failedWrites=new Set;slices;schemas=new Map;listeners=new Set;capListeners=new Map;constructor(e,t,n){this.writer=t,this.onWriteFailed=n,this.slices=new Map;for(let[t,n]of Object.entries(e))n&&typeof n==`object`&&!Array.isArray(n)&&this.slices.set(t,{...n})}static fromInitial(t,n,r){return new e(t,n,r)}installCapSchema(e,t){let n=this.schemas.get(e);if(n){if(n!==t)throw 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);let r=this.slices.get(e);if(r){let n=t.safeParse(r);n.success?this.slices.set(e,n.data):this.slices.delete(e)}}getCapState(e){let 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,n){let r=this.schemas.get(e);if(!r)throw Error(`[DeviceRuntimeState] no schema registered for cap "${e}" — did the device register it via ctx.registerNativeCap before writing?`);let i=this.slices.get(e)??{},a=n?{...i,...t}:{...t},o=r.parse(a);if(g$(i,o)&&!this.failedWrites.has(e))return;this.slices.set(e,o),this.fireListeners([e]);let s=this.writer(e,{...o}).then(()=>{this.failedWrites.delete(e)}).catch(t=>{this.failedWrites.add(e),this.onWriteFailed?.(e,t instanceof Error?t.message:String(t))});this.pendingWrites.add(s),s.finally(()=>{this.pendingWrites.delete(s)})}fireListeners(e){let t=this.snapshot();for(let n of this.listeners)try{n(e,t)}catch{}for(let t of e){let e=this.capListeners.get(t);if(!e)continue;let n=this.getCapState(t);for(let t of e)try{t(n)}catch{}}}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}subscribeCap(e,t){let n=this.capListeners.get(e);n||(n=new Set,this.capListeners.set(e,n));let r=e=>{t(e)};return n.add(r),()=>{let t=this.capListeners.get(e);t&&(t.delete(r),t.size===0&&this.capListeners.delete(e))}}snapshot(){let e={};for(let[t,n]of this.slices)e[t]=Object.freeze({...n});return Object.freeze(e)}async flush(){if(this.pendingWrites.size===0)return;let e=[...this.pendingWrites];await Promise.allSettled(e)}};function g$(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}var _$={airQualitySensor:KV,alarmPanel:Sk,ambientLightSensor:JV,audioMetrics:$V,automationControl:tH,battery:rH,binary:aH,brightness:sH,cameraStreams:lv,carbonMonoxide:NH,climateControl:IH,color:VH,connectivity:JH,consumables:$H,contact:tU,control:aU,cover:cU,dayNight:mU,deviceDiscovery:fC,deviceStatus:bU,dishwasher:jU,doorbell:PU,enumSensor:LU,eventEmitter:BU,fanControl:eW,featureProbe:nW,flood:iW,gas:oW,heatingValve:cW,humidifier:uW,humiditySensor:fW,image:mW,imageSettings:CW,intercom:IW,lawnMowerControl:BW,lockControl:lG,mediaPlayer:mG,motion:SG,motionTrigger:TG,motionZones:AG,nativeObjectDetection:RG,navigation:XG,networkLink:nK,notifier:vK,numericSensor:bK,petFeeder:UK,powerMeter:pq,presence:gq,pressureSensor:vq,privacyMask:wq,ptzAutotrack:zq,recordingOnboard:QJ,recordingSignal:vY,sceneMonitor:LY,scriptRunner:HY,smoke:WY,streamCatalog:qY,streamParams:eX,streamSignals:Lz,switch:oX,tamper:JX,temperatureSensor:XX,update:eZ,vacuumControl:_Z,valve:bZ,vibration:SZ,waterHeater:wZ,weather:EZ,zoneAnalytics:FZ,zoneRules:LZ,zones:uL},v$=class{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){let e={},t={get:(e,t)=>{let n=t,r=Reflect.get(e,n);if(r!==void 0)return r;let i=_$[n];if(!i)return;let a=this.sliceProxy(i);return Reflect.set(e,n,a),a}};this._stateProxyCache=new Proxy(e,t)}return this._stateProxyCache}_stateProxyCache;config;runtimeState;ctx;location;disabled;_sourceInfoCache=null;constructor(e,t,n){if(this.ctx=e,this.id=e.id,this.stableId=e.stableId,this.type=n.type,!e.deviceMeta)throw 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=n.role,this.parentDeviceId=e.parentDeviceId;let r=e.persistedConfig??{},i=Ha(t);this.config=m$.fromSchema(t,t=>e.persistConfig(t,{secretConfigPaths:i}),r,({droppedKeys:t,issues:n})=>{e.logger.warn(`Device config recovery: dropping invalid persisted fields`,{tags:{deviceId:e.id,stableId:e.stableId},meta:{droppedKeys:[...t],firstIssue:n[0]?.message??null}})});let a=null,o=async(t,n)=>{a||=e.fetchDevice(e.id),await(await a).deviceState.setCapSlice({capName:t,slice:n})},s=e.initialRuntimeState??{},c=(t,n)=>{e.logger.warn(`runtime-state write refused by the hub — the slice is not mirrored; it is re-sent on the next write`,{tags:{deviceId:e.id},meta:{cap:t,error:n}})};this.runtimeState=h$.fromInitial(s,o,c),e.bindRuntimeState?.(this.runtimeState),e.registerNativeCap?.(bU,{});let l={online:!0,lastChangedAt:Date.now()};this.runtimeState.setCapState(`device-status`,l),e.registerNativeCap?.(nW,{}),this.runtimeState.setCapState(`feature-probe`,{flags:{},deviceType:null,model:null,channelCount:null,lastProbedAt:0,lastFetchedAt:0})}deviceActions=new Map;registerDeviceAction(e,t,n){this.deviceActions.set(e,{spec:t,handler:n})}async runDeviceAction(e,t){let n=this.deviceActions.get(e);if(!n)throw Error(`unknown device action "${e}" on device ${this.id}`);let r=n.spec.input.parse(t);return n.handler(r)}async removeDevice(){}markOnline(e){if(this.online===e)return;let t={online:e,lastChangedAt:Date.now()};this.runtimeState.setCapState(`device-status`,t)}get sourceInfo(){if(this._sourceInfoCache)return this._sourceInfoCache;let e=cC(this.ctx.deviceMeta.metadata)??iC({stableId:this.stableId,addonId:this.ctx.deviceMeta.addonId});return this._sourceInfoCache=Object.freeze({...e}),this._sourceInfoCache}get sourceId(){return this.sourceInfo.id}async updateSourceInfo(e){let t=aC(this.sourceInfo,e);this._sourceInfoCache=Object.freeze({...t});let n=this.ctx.api.deviceManager?.setMetadata;if(n)try{await n.mutate({deviceId:this.id,patch:{[sC]:t}})}catch{}this.ctx.eventBus.emit(xt(`device.source-info-changed`,{type:`device`,id:this.stableId},{deviceId:this.id,sourceInfo:t}))}async refreshFeatures(){let e=this.ctx.api.deviceManager?.registerDevice;if(e)try{await e.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){return new Proxy({},{get:(t,n)=>this.runtimeState.getCapState(e.name)?.[n],set:(t,n,r)=>(this.runtimeState.patchCapState(e.name,{[n]:r}),!0),has:(t,n)=>{let r=this.runtimeState.getCapState(e.name);return r?n in r:!1},ownKeys:()=>{let t=this.runtimeState.getCapState(e.name);return t?Object.keys(t):[]},getOwnPropertyDescriptor:(t,n)=>{let r=this.runtimeState.getCapState(e.name);if(!(!r||!(n in r)))return{configurable:!0,enumerable:!0,value:r[n]}}})}getSettingsUISchema(){return{sections:[]}}async applySettingsPatch(e){await this.config.setAll(e)}async onProbe(){let e=this.runtimeState.getCapState(`feature-probe`)??{flags:{},deviceType:null,model:null,channelCount:null,lastProbedAt:0,lastFetchedAt:0};this.runtimeState.setCapState(`feature-probe`,{...e,lastProbedAt:Date.now()})}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}},y$=[1e4,3e4,9e4];function b$(e,t){return new Promise(n=>{if(t.aborted){n();return}let r=()=>{clearTimeout(i),n()},i=setTimeout(()=>{t.removeEventListener(`abort`,r),n()},e);i.unref?.(),t.addEventListener(`abort`,r,{once:!0})})}async function x$(e,t,n){let r=[...e],i=Math.max(1,Math.min(t,r.length));await Promise.all(Array.from({length:i},async()=>{for(;;){let e=r.shift();if(e===void 0)return;await n(e)}}))}var S$=class{#e;#t;#n;#r;#i;#a;#o=new AbortController;constructor(e){this.#e=e.logger,this.#t=e.attempt,this.#n=e.onPermanentFailure,this.#r=e.delaysMs??y$,this.#i=e.concurrency??4,this.#a=e.now??Date.now}cancel(){this.#o.abort()}async run(e){let t=e.map(e=>({saved:e.saved,lastError:e.error,attempts:1}));for(let e=0;e<this.#r.length&&!(t.length===0||this.#o.signal.aborted||(await b$(this.#r[e]??0,this.#o.signal),this.#o.signal.aborted));e+=1)t=await this.#s(t,e);if(this.#o.signal.aborted)return[];let n=t.map(e=>({deviceId:e.saved.id,stableId:e.saved.stableId,type:String(e.saved.type),attempts:e.attempts,lastError:e.lastError,failedAt:this.#a()}));for(let e of n)this.#n(e);return n}async#s(e,t){let n=[],r=e.filter(e=>e.saved.parentDeviceId===null),i=e.filter(e=>e.saved.parentDeviceId!==null);for(let e of[r,i])await x$(e,this.#i,async e=>{if(this.#o.signal.aborted){n.push(e);return}let r=e.attempts+1;try{await this.#t(e.saved),this.#e.info(`Device restored on retry`,{tags:{deviceId:e.saved.id,stableId:e.saved.stableId},meta:{attempt:r}})}catch(i){let a=i instanceof Error?i.message:String(i),o=this.#r.length-(t+1);this.#e.warn(`Device restore retry failed`,{tags:{deviceId:e.saved.id,stableId:e.saved.stableId},meta:{attempt:r,remainingRetries:o,error:a}}),n.push({saved:e.saved,lastError:a,attempts:r})}});return n}};function C$(e,t){let n={};for(let t of e.config.entries())n[t.key]=t.value;return{id:e.id,stableId:e.stableId,addonId:t,type:String(e.type),name:e.name,parentDeviceId:e.parentDeviceId,online:e.online,features:[...e.features],config:n,sourceInfo:e.sourceInfo}}var w$=class extends jn{async onInitialize(){return this.ctx.logger.info(`${this.providerName} Provider initialized`),[{capability:Sw,provider:this}]}providerRegistrationsFromSuper(e){return Array.isArray(e)?e:e!==void 0&&e.providers!==void 0?[...e.providers]:[]}async onShutdown(){this._restoreShuttingDown=!0,this.cancelRestoreRetries();let e=await this.ctx.kernel.devices?.getAll()??[];for(let t of e)try{await this.ctx.kernel.devices?.decommission(t.id)}catch(e){this.ctx.logger.warn(`${this.providerName}: decommission failed`,{tags:{deviceId:t.id,stableId:t.stableId},meta:{error:e instanceof Error?e.message:String(e)}})}this.ctx.logger.info(`${this.providerName} Provider shut down`,{meta:{decommissionedCount:e.length}})}async start(){}async stop(){}async getStatus(){let e=await this.ctx.kernel.devices?.getAll()??[],t=this.restoreFailureSummary(),n={connected:!0,deviceCount:e.length,motionSliceWriter:`orchestrator`};return t===null?n:{...n,error:t}}async getDevices(){return(await this.ctx.kernel.devices?.getAll()??[]).map(e=>({id:e.stableId,name:e.name,type:String(e.type)}))}async supportsDiscovery(){return!1}async discoverDevices(e){return[]}async getDiscoveryParamsSchema(){return null}async getManualCreationType(){return await this.supportsManualCreation()?{deviceType:Object.values(R).find(e=>this.deviceClasses[e]!==void 0)??null}:{deviceType:null}}async adoptDiscoveredDevice(e){throw 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){let t=await this.onCreateDevice(e.type,e.config),n=this.deviceClasses[t.meta.type];if(!n)throw Error(`${this.providerName} provider: no device class registered for type "${t.meta.type}" — add it to the deviceClasses map`);let r=this.generateStableId(t.meta.type,t.config),i=await this.ctx.kernel.devices.create(r,n,t.config,null,t.meta);if(t.onAfterCreate)try{await t.onAfterCreate(i)}catch(e){this.ctx.logger.warn(`createDevice: onAfterCreate hook threw — device is already registered`,{tags:{deviceId:i.id,stableId:r},meta:{error:e instanceof Error?e.message:String(e)}})}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){this._restoreShuttingDown=!1;let t=await this.onRestoreDevices(e);if(e.length===0)return;if(t&&t.failedCount>0){this.ctx.logger.warn(`Restored ${t.restoredCount}/${e.length} ${this.providerName} device(s) — ${t.failedCount} failed, bounded retry scheduled`);return}let n=t?t.restoredCount:e.length;this.ctx.logger.info(`Restored ${n} ${this.providerName} device(s)`)}restoreRetryDelaysMs=y$;restoreRetryConcurrency=4;_restoreRetrySchedulers=[];_restoreRetryCompletion=null;_restoreShuttingDown=!1;_permanentRestoreFailures=new Map;get restoreRetryCompletion(){return this._restoreRetryCompletion}get permanentRestoreFailures(){return[...this._permanentRestoreFailures.values()]}restoreFailureSummary(){if(this._permanentRestoreFailures.size===0)return null;let e=[...this._permanentRestoreFailures.keys()].join(`, `);return`${this._permanentRestoreFailures.size} device(s) permanently failed restore (deviceIds: ${e}) — restart the ${this.providerName} provider to retry`}quarantineConfiglessTopLevelRestores=!0;isUnrestorableShell(e){if(!this.quarantineConfiglessTopLevelRestores||e.parentDeviceId!==null)return!1;let t=e.config;return t===void 0?!1:Object.keys(t).length===0}quarantineShell(e){this._permanentRestoreFailures.set(e.id,{deviceId:e.id,stableId:e.stableId,type:e.type,attempts:0,lastError:`persisted row has no configuration`,failedAt:Date.now()}),this.ctx.logger.error(`Persisted device row has NO configuration — quarantined: not restored, not retried. Remove it (deviceManager.removeDevice) or re-add the device.`,{tags:{deviceId:e.id,stableId:e.stableId},meta:{type:e.type,provider:this.providerName}})}cancelRestoreRetries(){for(let e of this._restoreRetrySchedulers)e.cancel();this._restoreRetrySchedulers=[]}recordPermanentRestoreFailure(e){this._permanentRestoreFailures.set(e.deviceId,e),this.ctx.logger.error(`Device restore permanently failed — its capabilities will not register until the provider restarts`,{tags:{deviceId:e.deviceId,stableId:e.stableId},meta:{type:e.type,attempts:e.attempts,error:e.lastError}})}scheduleRestoreRetries(e,t){if(this._restoreShuttingDown){this.ctx.logger.info(`Restore retries not scheduled — the provider is shutting down`,{meta:{rows:e.length,deviceIds:e.map(e=>e.saved.id)}});return}let n=new S$({logger:this.ctx.logger,delaysMs:this.restoreRetryDelaysMs,concurrency:this.restoreRetryConcurrency,attempt:t,onPermanentFailure:e=>this.recordPermanentRestoreFailure(e)});this._restoreRetrySchedulers=[...this._restoreRetrySchedulers,n];let r=n.run(e).then(()=>void 0).catch(e=>{this.ctx.logger.error(`Restore retry scheduler crashed`,{meta:{error:e instanceof Error?e.message:String(e)}})}),i=this._restoreRetryCompletion;this._restoreRetryCompletion=i===null?r:Promise.all([i,r]).then(()=>void 0)}async restoreWithBoundedRetry(e,t){let n=[];for(let r of e){if(this.isUnrestorableShell(r)){this.quarantineShell(r);continue}try{await t(r)}catch(e){let t=e instanceof Error?e.message:String(e);this.ctx.logger.warn(`Failed to restore device — bounded retry scheduled`,{tags:{deviceId:r.id,stableId:r.stableId},meta:{type:r.type,attempt:1,error:t}}),n.push({saved:r,error:t})}}n.length>0&&this.scheduleRestoreRetries(n,t)}async reloadDevice(e){let{stableId:t}=e,n=this.ctx.kernel.devices;if(!n)throw Error(`${this.providerName}: kernel.devices unavailable — cannot reload`);let r=(await n.getAll()).find(e=>e.stableId===t);r&&await n.decommission(r.id);let{id:i}=await this.ctx.api.deviceManager.allocateDeviceId.mutate({addonId:this.addonId,stableId:t}),a=await this.ctx.api.deviceManager.loadMeta.query({deviceId:i});if(a===null)throw Error(`${this.providerName}: no persisted meta for "${t}" (id ${i}) — cannot reload`);let o=Object.values(R).find(e=>e===a.type),s=o===void 0?void 0:this.deviceClasses[o];if(!s)throw Error(`${this.providerName}: no device class for type "${a.type}" — "${t}" is an accessory child; reload its parent instead`);await n.create(t,s,{},a.parentDeviceId??null);let c=await this.ctx.api.deviceManager.listPersistedByAddon.query({addonId:this.addonId});for(let e of c){if(e.parentDeviceId!==i)continue;let t=Object.values(R).find(t=>t===e.type),r=t===void 0?void 0:this.deviceClasses[t];if(r)try{await n.create(e.stableId,r,{},i)}catch(t){this.ctx.logger.warn(`reloadDevice: failed to re-create first-class child`,{tags:{deviceId:e.id,stableId:e.stableId},meta:{parentDeviceId:i,error:t instanceof Error?t.message:String(t)}})}}return this.ctx.logger.info(`device reloaded in place from persisted rows`,{tags:{deviceId:i},meta:{stableId:t,type:a.type}}),{deviceId:i}}async healSavedConfig(e,t){}async onRestoreDevices(e){let t=new Set,n=[],r=new Set((await this.ctx.kernel.devices.getAll()).map(e=>e.stableId)),i=async n=>{if(t.has(n.id))return;if(r.has(n.stableId)){this.ctx.logger.debug(`Restore row already live — not dialled again`,{tags:{deviceId:n.id,stableId:n.stableId}}),t.add(n.id);return}let i=this.deviceClasses[n.type];if(!i)throw Error(`no device class registered for type "${n.type}"`);if(n.parentDeviceId!==null&&!t.has(n.parentDeviceId))throw Error(`parent device ${n.parentDeviceId} not restored`);await this.healSavedConfig(n,e);try{await this.ctx.kernel.devices.create(n.stableId,i,{},n.parentDeviceId)}catch(e){if(!(await this.ctx.kernel.devices.getAll()).some(e=>e.stableId===n.stableId))throw e;this.ctx.logger.debug(`Restore row came to life during its own dial — kept`,{tags:{deviceId:n.id,stableId:n.stableId}})}t.add(n.id)},a=e.filter(e=>e.parentDeviceId===null),o=async e=>{if(!this.deviceClasses[e.type]){this.ctx.logger.warn(`No device class registered for restored type — skipping`,{tags:{deviceId:e.id,stableId:e.stableId},meta:{type:e.type}});return}if(this.isUnrestorableShell(e)){this.quarantineShell(e);return}try{await i(e)}catch(t){let r=t instanceof Error?t.message:String(t);this.ctx.logger.warn(`Failed to restore device — bounded retry scheduled`,{tags:{deviceId:e.id,stableId:e.stableId},meta:{type:e.type,attempt:1,error:r}}),n.push({saved:e,error:r})}};await Promise.all(a.map(e=>o(e)));let s=new Set(n.map(e=>e.saved.id)),c=e.filter(e=>e.parentDeviceId!==null);for(let e of c)if(this.deviceClasses[e.type]&&e.parentDeviceId!==null){if(t.has(e.parentDeviceId)){try{await i(e)}catch(t){let r=t instanceof Error?t.message:String(t);this.ctx.logger.warn(`Failed to restore hub-adopted child — bounded retry scheduled`,{tags:{deviceId:e.id,stableId:e.stableId,parentDeviceId:e.parentDeviceId},meta:{type:e.type,attempt:1,error:r}}),n.push({saved:e,error:r})}continue}if(s.has(e.parentDeviceId)){this.ctx.logger.warn(`Hub-adopted child deferred — parent failed initial restore`,{tags:{deviceId:e.id,stableId:e.stableId,parentDeviceId:e.parentDeviceId},meta:{type:e.type}}),n.push({saved:e,error:`parent device ${e.parentDeviceId} not restored`});continue}}return n.length>0&&this.scheduleRestoreRetries(n,i),{restoredCount:t.size,failedCount:n.length}}toSummary(e){return C$(e,this.addonId)}},T$=360*6e4;function E$(e){let t=e.status;if(!t)return`sleeping`;if(t.sleeping!==!0)return`awake`;let n=t.lastContactAt;if(typeof n!=`number`||n<=0)return`sleeping`;let r=e.unreachableAfterMs??216e5;return e.nowMs-n>r?`unreachable`:`sleeping`}function D$(e){return e===`unreachable`}var O$=`media-player.alarm-panel.thermostat.climate.humidifier.water-heater.lock.cover.valve.fan.vacuum.lawn-mower.dishwasher.light.switch.siren.button.control.notifier.script.automation.update.presence.weather.image.sensor`.split(`.`),k$=[`contact-sensor`,`motion-sensor`,`occupancy-sensor`,`smoke-sensor`,`co-sensor`,`gas-sensor`,`leak-sensor`,`vibration-sensor`,`tamper-sensor`,`sound-sensor`];function A$(e){if(e===void 0)return k$.length;let t=k$.indexOf(e);return t===-1?k$.length:t}function j$(e){let t=O$.indexOf(e);return t===-1?O$.length:t}function M$(e,t){let n=e=>e.toLowerCase().replace(/[-_\s]+/g,` `).trim();return n(e)===n(t)}function N$(e,t,n){if(t!=null){let n=e.find(e=>e.stableId===t)??e.find(e=>e.entityId!==void 0&&e.entityId===t);if(n!==void 0)return n}let r=e=>n!==void 0&&n.length>0&&e.name!==void 0&&M$(e.name,n)?0:1;return[...e].toSorted((e,t)=>A$(e.role)-A$(t.role)||r(e)-r(t)||j$(e.type)-j$(t.type))[0]??null}function P$(e,t,n,r,i){if(r.has(e))return;let a=t.get(e);if(!a)return;if(a.type!==R.Container){i.add(e);return}let o=new Set(r);o.add(e);let s=N$((n.get(e)??[]).map(e=>({id:e.id,stableId:e.stableId,type:e.type,...e.role!==void 0&&e.role!==null?{role:e.role}:{},...e.name===void 0?{}:{name:e.name}})),t.get(e)?.primaryChildEntityId,t.get(e)?.name);s!==null&&P$(s.id,t,n,o,i)}function F$(e){let{selfId:t,selfLocation:n,candidates:r}=e;if(n===null||n.length===0)return[];let i=new Map(r.map(e=>[e.id,e])),a=new Map;for(let e of r){if(e.parentDeviceId===null)continue;let t=a.get(e.parentDeviceId);t?t.push(e):a.set(e.parentDeviceId,[e])}let o=new Set,s=e=>P$(e,i,a,new Set,o);for(let e of r){if(e.type===R.Container||e.location!==n||e.parentDeviceId===t)continue;let r=e.parentDeviceId===null?void 0:i.get(e.parentDeviceId);if(r!==void 0&&r.type===R.Container){s(r.id);continue}o.add(e.id)}return o.delete(t),[...o]}var I$=`fixed`;function L$(e){let t=e??`hub`;return t.includes(`/`)?t.split(`/`)[0]??`hub`:t}var R$=class{ports;constructor(e){let t=e.addonId;if(typeof t!=`string`||t.length===0)throw Error(`DeclaredDevices: addonId must be the declaring addon's id, got ${JSON.stringify(t)}. On an addon context it is \`ctx.id\` — there is no \`ctx.addonId\`.`);this.ports=e}async reconcile(e){if((e.placement??`hub`)===`hub`){let e=L$(this.ports.localNodeId);if(e!==`hub`)return this.ports.logger.info(`declared devices are hub-owned — skipping on this node`,{meta:{nodeId:e,rawNodeId:this.ports.localNodeId??null}}),{integrationId:null,devices:[],removed:[],owned:!1}}let t=e.integrationId??await this.ensureIntegration(e.integrationName),n=await this.readIndex(),r=await this.readLiveByStableId(),i=[];for(let a of e.devices){let e=await this.applyDeclaration(a,t,n,r);e!==null&&i.push(e)}return{integrationId:t,devices:i,removed:await this.sweepWithdrawn(e.devices,t,n),owned:!0}}async ensureIntegration(e){let t=await this.ports.getIntegration(this.ports.addonId);if(t===null){let t=await this.ports.createIntegration({addonId:this.ports.addonId,name:e,info:{[I$]:!0}});return this.ports.logger.info(`declared a fixed integration`,{meta:{integrationId:t.id,name:e}}),t.id}return t.info?.fixed!==!0&&(await this.ports.updateIntegration({id:t.id,info:{[I$]:!0}}),this.ports.logger.info("re-asserted `fixed` on a declared integration",{meta:{integrationId:t.id}})),t.id}async readIndex(){let e=await this.ports.listOwnDevices();return new Map(e.map(e=>[e.stableId,e]))}async readLiveByStableId(){try{let e=await this.ports.devices.getAll();return new Map(e.map(e=>[e.stableId,e]))}catch(e){return this.ports.logger.warn(`could not read live devices — falling back to adopt-by-row`,{meta:{error:e instanceof Error?e.message:String(e)}}),new Map}}async applyDeclaration(e,t,n,r){try{let i=r.get(e.stableId);if(i!==void 0)return{stableId:e.stableId,deviceId:i.id,device:i,created:!1};let a=n.get(e.stableId);if(a===void 0&&(a=(await this.readIndex()).get(e.stableId),a!==void 0&&this.ports.logger.warn(`device index disagreed with itself — adopting instead of re-creating`,{tags:{deviceId:a.id},meta:{stableId:e.stableId,addonId:this.ports.addonId}})),a!==void 0){let n=await this.ports.devices.create(e.stableId,e.DeviceClass,{},null,void 0);return this.ports.logger.info(`declared device adopted`,{tags:{deviceId:n.id},meta:{stableId:e.stableId,integrationId:t}}),{stableId:e.stableId,deviceId:n.id,device:n,created:!1}}let o=await this.ports.devices.create(e.stableId,e.DeviceClass,e.config??{},null,{type:e.type,name:e.name,integrationId:t,...e.role===void 0?{}:{role:e.role}});return this.ports.logger.info(`declared device created`,{tags:{deviceId:o.id},meta:{stableId:e.stableId,integrationId:t}}),{stableId:e.stableId,deviceId:o.id,device:o,created:!0}}catch(t){return this.ports.logger.warn(`a declared device could not be brought up`,{meta:{stableId:e.stableId,error:t instanceof Error?t.message:String(t)}}),null}}async sweepWithdrawn(e,t,n){let r=new Set(e.map(e=>e.stableId)),i=[...n.values()].filter(e=>e.integrationId===t&&!r.has(e.stableId));if(i.length===0)return[];if(i.length>32)return this.ports.logger.warn(`withdrawal sweep exceeded its bound — removing nothing`,{meta:{integrationId:t,candidates:i.length,bound:32}}),[];let a=[];for(let e of i)try{await this.ports.devices.remove(e.id),a.push(e.id),this.ports.logger.info(`declared device removed — its declaration was withdrawn`,{tags:{deviceId:e.id},meta:{stableId:e.stableId,integrationId:t}})}catch(t){this.ports.logger.warn(`a withdrawn declared device could not be removed`,{tags:{deviceId:e.id},meta:{stableId:e.stableId,error:t instanceof Error?t.message:String(t)}})}return a}};async function z$(e,t){let n=await e.api.integrations.getByAddonId.query({addonId:Xb});return n==null?(e.logger.warn(`reconcileBlockDevices: Blocks integration is not ready — skipping this pass`,{meta:{blockAddonId:e.id}}),{integrationId:null,devices:[],removed:[],owned:!1}):new R$({logger:e.logger.child(`declared-devices`),addonId:e.id,devices:e.kernel.devices,localNodeId:e.kernel.localNodeId,getIntegration:async()=>{throw Error(`reconcileBlockDevices: devices hang off the Blocks integration; it never reads its own`)},createIntegration:async()=>{throw Error(`reconcileBlockDevices: devices hang off the Blocks integration; it never mints one`)},updateIntegration:async()=>{throw Error(`reconcileBlockDevices: devices hang off the Blocks integration; it never updates one`)},listOwnDevices:()=>e.api.deviceManager.listAll.query({addonId:e.id})}).reconcile({integrationId:n.id,integrationName:n.name,placement:t.placement??`hub`,devices:t.devices})}async function B$(e,t){for(let n of t.exporterAddonIds)for(let r of t.deviceIds)try{await e.api.deviceExport.exposeDevice.mutate({addonId:n,deviceId:String(r),nodeId:`hub`})}catch(t){e.logger.warn(`exposeBlockDevices: expose refused`,{tags:{deviceId:r},meta:{exporterAddonId:n,error:t instanceof Error?t.message:String(t)}})}}function V$(e){return e}var H$={[R.Cover]:`cover`,[R.Valve]:`valve`,[R.Humidifier]:`humidifier`,[R.WaterHeater]:`water-heater`,[R.Camera]:`dummy`,[R.Hub]:`dummy`,[R.Switch]:`switch`,[R.Siren]:`switch`,[R.Light]:`light`,[R.Fan]:`fan`,[R.Sensor]:`sensor`,[R.Thermostat]:`thermostat`,[R.Climate]:`climate`,[R.Button]:`button`,[R.EventEmitter]:`dummy`,[R.Update]:`update`,[R.Generic]:`dummy`,[R.Notifier]:`dummy`,[R.Script]:`script`,[R.Automation]:`automation`,[R.Lock]:`lock`,[R.MediaPlayer]:`media-player`,[R.AlarmPanel]:`alarm`,[R.Control]:`control`,[R.Presence]:`sensor`,[R.Weather]:`weather`,[R.Vacuum]:`vacuum`,[R.LawnMower]:`lawn-mower`,[R.Container]:`dummy`,[R.Image]:`image`,[R.PetFeeder]:`pet-feeder`,[R.Dishwasher]:`dishwasher`},U$=new Set(Object.values(R));function W$(e){return U$.has(e)?H$[e]:null}var G$=`motion-trigger`;function K$(e){return e.includes(G$)}var q$=[`temperature-sensor`,`humidity-sensor`,`ambient-light-sensor`,`numeric-sensor`,`enum-sensor`];function J$(e){let t=new Set(e.features);switch(e.type){case R.Cover:return{kind:`cover`};case R.Valve:return{kind:`valve`};case R.Lock:return{kind:`lock`};case R.AlarmPanel:return{kind:`alarm`};case R.Light:return t.has(`brightness`)?{kind:`brightness`}:{kind:`switch`};case R.Switch:case R.Siren:return{kind:`switch`};case R.Sensor:case R.Presence:{let e=q$.find(e=>t.has(e));return e?{kind:`sensor`,sensorFeature:e}:{kind:`none`}}default:return{kind:`none`}}}var Y$={"temperature-sensor":{capKey:`temperatureSensor`,field:`celsius`,fallbackUnit:`°C`},"humidity-sensor":{capKey:`humiditySensor`,field:`percent`,fallbackUnit:`%`},"ambient-light-sensor":{capKey:`ambientLightSensor`,field:`lux`,fallbackUnit:`lx`},"numeric-sensor":{capKey:`numericSensor`,field:`value`}};function X$(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Z$(e,t){if(!X$(e))return null;let n=e[t];if(!X$(n))return null;let r=n.mutate;return typeof r==`function`?r:null}var Q$=Object.freeze({"accessories.getStatus":{capName:`accessories`,capScope:`device`,addonId:null,access:`view`},"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.cancelJob":{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.getJob":{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.listCapabilityProviders":{capName:`addons`,capScope:`system`,addonId:null,access:`view`},"addons.listFrameworkPackages":{capName:`addons`,capScope:`system`,addonId:null,access:`view`},"addons.listInstallations":{capName:`addons`,capScope:`system`,addonId:null,access:`view`},"addons.listJobs":{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.startJob":{capName:`addons`,capScope:`system`,addonId:null,access:`create`},"addons.uninstallPackage":{capName:`addons`,capScope:`system`,addonId:null,access:`delete`},"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.getIntegrationSettings":{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`},"airQualitySensor.getStatus":{capName:`air-quality-sensor`,capScope:`device`,addonId:null,access:`view`},"alarmPanel.arm":{capName:`alarm-panel`,capScope:`device`,addonId:null,access:`create`},"alarmPanel.disarm":{capName:`alarm-panel`,capScope:`device`,addonId:null,access:`create`},"alarmPanel.getStatus":{capName:`alarm-panel`,capScope:`device`,addonId:null,access:`view`},"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`},"ambientLightSensor.getStatus":{capName:`ambient-light-sensor`,capScope:`device`,addonId:null,access:`view`},"audioAnalysis.applyDeviceSettingsPatch":{capName:`audio-analysis`,capScope:`device`,addonId:null,access:`create`},"audioAnalysis.getDeviceLiveContribution":{capName:`audio-analysis`,capScope:`device`,addonId:null,access:`view`},"audioAnalysis.getDeviceSettingsContribution":{capName:`audio-analysis`,capScope:`device`,addonId:null,access:`view`},"audioAnalysis.resolveDeviceSettings":{capName:`audio-analysis`,capScope:`device`,addonId:null,access:`view`},"audioAnalyzer.analyseChunk":{capName:`audio-analyzer`,capScope:`system`,addonId:null,access:`create`},"audioAnalyzer.attachDevice":{capName:`audio-analyzer`,capScope:`system`,addonId:null,access:`create`},"audioAnalyzer.classify":{capName:`audio-analyzer`,capScope:`system`,addonId:null,access:`view`},"audioAnalyzer.detachDevice":{capName:`audio-analyzer`,capScope:`system`,addonId:null,access:`create`},"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.getStatus":{capName:`automation-control`,capScope:`device`,addonId:null,access:`view`},"automationControl.trigger":{capName:`automation-control`,capScope:`device`,addonId:null,access:`create`},"backup.cancel":{capName:`backup`,capScope:`system`,addonId:null,access:`create`},"backup.checkBackupKey":{capName:`backup`,capScope:`system`,addonId:null,access:`create`},"backup.delete":{capName:`backup`,capScope:`system`,addonId:null,access:`delete`},"backup.deleteSchedule":{capName:`backup`,capScope:`system`,addonId:null,access:`delete`},"backup.disableEncryption":{capName:`backup`,capScope:`system`,addonId:null,access:`create`},"backup.getEncryption":{capName:`backup`,capScope:`system`,addonId:null,access:`view`},"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.listAvailableDatabases":{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.listRuns":{capName:`backup`,capScope:`system`,addonId:null,access:`view`},"backup.listSchedules":{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.setupEncryption":{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`},"backup.upsertSchedule":{capName:`backup`,capScope:`system`,addonId:null,access:`create`},"battery.getStatus":{capName:`battery`,capScope:`device`,addonId:null,access:`view`},"battery.wakeForStream":{capName:`battery`,capScope:`device`,addonId:null,access:`create`},"binary.getStatus":{capName:`binary`,capScope:`device`,addonId:null,access:`view`},"brightness.getStatus":{capName:`brightness`,capScope:`device`,addonId:null,access:`view`},"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`},"calendars.getPreferences":{capName:`calendars`,capScope:`system`,addonId:null,access:`view`},"calendars.listCalendars":{capName:`calendars`,capScope:`system`,addonId:null,access:`view`},"calendars.listEvents":{capName:`calendars`,capScope:`system`,addonId:null,access:`view`},"calendars.setCalendarPreference":{capName:`calendars`,capScope:`system`,addonId:null,access:`create`},"calendarSource.listCalendars":{capName:`calendar-source`,capScope:`system`,addonId:null,access:`view`},"calendarSource.listEvents":{capName:`calendar-source`,capScope:`system`,addonId:null,access:`view`},"cameraCredentials.getCredentials":{capName:`camera-credentials`,capScope:`device`,addonId:null,access:`view`},"cameraCredentials.getStatus":{capName:`camera-credentials`,capScope:`device`,addonId:null,access:`view`},"cameraGridLayout.applyDeviceSettingsPatch":{capName:`camera-grid-layout`,capScope:`device`,addonId:null,access:`create`},"cameraGridLayout.getDeviceLiveContribution":{capName:`camera-grid-layout`,capScope:`device`,addonId:null,access:`view`},"cameraGridLayout.getDeviceSettingsContribution":{capName:`camera-grid-layout`,capScope:`device`,addonId:null,access:`view`},"cameraGridLayout.getLayout":{capName:`camera-grid-layout`,capScope:`device`,addonId:null,access:`view`},"cameraGridLayout.saveLayout":{capName:`camera-grid-layout`,capScope:`device`,addonId:null,access:`create`},"cameraPipelineConfig.applyDeviceSettingsPatch":{capName:`camera-pipeline-config`,capScope:`device`,addonId:null,access:`create`},"cameraPipelineConfig.getDeviceLiveContribution":{capName:`camera-pipeline-config`,capScope:`device`,addonId:null,access:`view`},"cameraPipelineConfig.getDeviceSettingsContribution":{capName:`camera-pipeline-config`,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`},"carbonMonoxide.getStatus":{capName:`carbon-monoxide`,capScope:`device`,addonId:null,access:`view`},"climateControl.getStatus":{capName:`climate-control`,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.setSwingHorizontal":{capName:`climate-control`,capScope:`device`,addonId:null,access:`create`},"climateControl.setSwingVertical":{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.getStatus":{capName:`color`,capScope:`device`,addonId:null,access:`view`},"color.setColor":{capName:`color`,capScope:`device`,addonId:null,access:`create`},"composer.applyBlocks":{capName:`composer`,capScope:`system`,addonId:null,access:`create`},"composer.getStates":{capName:`composer`,capScope:`system`,addonId:null,access:`view`},"connectionTest.describeTest":{capName:`connection-test`,capScope:`system`,addonId:null,access:`view`},"connectionTest.testSettings":{capName:`connection-test`,capScope:`system`,addonId:null,access:`create`},"connectivity.getStatus":{capName:`connectivity`,capScope:`device`,addonId:null,access:`view`},"consumables.getStatus":{capName:`consumables`,capScope:`device`,addonId:null,access:`view`},"consumables.reset":{capName:`consumables`,capScope:`device`,addonId:null,access:`delete`},"contact.getStatus":{capName:`contact`,capScope:`device`,addonId:null,access:`view`},"control.getStatus":{capName:`control`,capScope:`device`,addonId:null,access:`view`},"control.setValue":{capName:`control`,capScope:`device`,addonId:null,access:`create`},"coreBlocks.compile":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.create":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.createComposition":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.delete":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`delete`},"coreBlocks.get":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.getBlockSettings":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.getComposition":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.getCustomization":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.getTypeDefs":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.list":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.listComposableCaps":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.listCompositions":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"coreBlocks.migrateRawSecrets":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.restart":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.setEnabled":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.update":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.updateBlockSettings":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.updateComposition":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`create`},"coreBlocks.validateComposition":{capName:`core-blocks`,capScope:`system`,addonId:null,access:`view`},"cover.close":{capName:`cover`,capScope:`device`,addonId:null,access:`create`},"cover.getStatus":{capName:`cover`,capScope:`device`,addonId:null,access:`view`},"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`},"customModelRegistry.importModelBundle":{capName:`custom-model-registry`,capScope:`system`,addonId:null,access:`create`},"customModelRegistry.listModels":{capName:`custom-model-registry`,capScope:`system`,addonId:null,access:`view`},"databaseSnapshot.listDatabases":{capName:`database-snapshot`,capScope:`system`,addonId:null,access:`view`},"databaseSnapshot.writeSnapshot":{capName:`database-snapshot`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.aggregate":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`view`},"dataStoreProvider.count":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`view`},"dataStoreProvider.declareCollection":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.delete":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`delete`},"dataStoreProvider.deleteWhere":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`delete`},"dataStoreProvider.get":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`view`},"dataStoreProvider.getEngineInfo":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`view`},"dataStoreProvider.histogram":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`view`},"dataStoreProvider.insert":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.insertMany":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.isEmpty":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`view`},"dataStoreProvider.query":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`view`},"dataStoreProvider.set":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.transact":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.update":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.updateWhere":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.upsert":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dataStoreProvider.upsertMany":{capName:`data-store-provider`,capScope:`system`,addonId:null,access:`create`},"dayNight.getOptions":{capName:`day-night`,capScope:`device`,addonId:null,access:`view`},"dayNight.getStatus":{capName:`day-night`,capScope:`device`,addonId:null,access:`view`},"dayNight.setSettings":{capName:`day-night`,capScope:`device`,addonId:null,access:`create`},"decoder.getInfo":{capName:`decoder`,capScope:`system`,addonId:null,access:`view`},"decoder.reprobeHwaccel":{capName:`decoder`,capScope:`system`,addonId:null,access:`create`},"detectionPipeline.applyDeviceSettingsPatch":{capName:`detection-pipeline`,capScope:`device`,addonId:null,access:`create`},"detectionPipeline.getDeviceLiveContribution":{capName:`detection-pipeline`,capScope:`device`,addonId:null,access:`view`},"detectionPipeline.getDeviceSettingsContribution":{capName:`detection-pipeline`,capScope:`device`,addonId:null,access:`view`},"deviceAdminLink.getAdminLink":{capName:`device-admin-link`,capScope:`device`,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.getStatus":{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`},"deviceCredentials.deleteDeviceCredential":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`delete`},"deviceCredentials.getDeviceCaStatus":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`view`},"deviceCredentials.getDeviceCertificateSettings":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`view`},"deviceCredentials.listDeviceCredentials":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`view`},"deviceCredentials.renameDeviceCredential":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`create`},"deviceCredentials.revokeDeviceCredential":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`delete`},"deviceCredentials.setDeviceCertificateSettings":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`create`},"deviceCredentials.startEnrollment":{capName:`device-credentials`,capScope:`system`,addonId:null,access:`create`},"deviceDiscovery.adoptDevice":{capName:`device-discovery`,capScope:`device`,addonId:null,access:`create`},"deviceDiscovery.getStatus":{capName:`device-discovery`,capScope:`device`,addonId:null,access:`view`},"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.applyDeviceSettingsPatch":{capName:`device-export`,capScope:`system`,addonId:null,access:`create`},"deviceExport.exposeDevice":{capName:`device-export`,capScope:`system`,addonId:null,access:`create`},"deviceExport.getDeviceLiveContribution":{capName:`device-export`,capScope:`system`,addonId:null,access:`view`},"deviceExport.getDeviceSettingsContribution":{capName:`device-export`,capScope:`system`,addonId:null,access:`view`},"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`},"deviceExtension.listCandidates":{capName:`device-extension`,capScope:`device`,addonId:null,access:`view`},"deviceExtension.listSlots":{capName:`device-extension`,capScope:`device`,addonId:null,access:`view`},"deviceExtension.listSources":{capName:`device-extension`,capScope:`device`,addonId:null,access:`view`},"deviceExtension.setSlot":{capName:`device-extension`,capScope:`device`,addonId:null,access:`create`},"deviceHistory.declareSeries":{capName:`device-history`,capScope:`system`,addonId:null,access:`create`},"deviceHistory.getDeviceEnabled":{capName:`device-history`,capScope:`system`,addonId:null,access:`view`},"deviceHistory.getStatus":{capName:`device-history`,capScope:`system`,addonId:null,access:`view`},"deviceHistory.listNodeSeries":{capName:`device-history`,capScope:`system`,addonId:null,access:`view`},"deviceHistory.listSeries":{capName:`device-history`,capScope:`system`,addonId:null,access:`view`},"deviceHistory.query":{capName:`device-history`,capScope:`system`,addonId:null,access:`view`},"deviceHistory.queryNode":{capName:`device-history`,capScope:`system`,addonId:null,access:`view`},"deviceHistory.record":{capName:`device-history`,capScope:`system`,addonId:null,access:`create`},"deviceHistory.recordBuckets":{capName:`device-history`,capScope:`system`,addonId:null,access:`create`},"deviceHistory.setDeviceEnabled":{capName:`device-history`,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.adoptionCancelJob":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.adoptionListCandidateFilters":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.adoptionListCandidates":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.adoptionListJobs":{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.adoptionResync":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.adoptionStartJob":{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.cleanupDeletedDevicesData":{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.discoverAllProviders":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.discoverDevices":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.discoverProvider":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.discoveryProviders":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"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.getBindingsBatch":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.getChildren":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.getChildrenBatch":{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.getDeviceStatusAggregateBatch":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.getLinkedDevices":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.getLinkedDevicesBatch":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.getRoleDisplayDefaults":{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.getWrapperActivation":{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.listDeletedSince":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.listDeviceIdsByCaps":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.listLocationDescriptions":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.listLocationIcons":{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.listSiteZones":{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.migrateDevice":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.persistConfig":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.probeStreams":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.providerCreationType":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"deviceManager.providerDiscoveryParamsSchema":{capName:`device-manager`,capScope:`system`,addonId:null,access:`view`},"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.removeSiteZone":{capName:`device-manager`,capScope:`system`,addonId:null,access:`delete`},"deviceManager.renameLocation":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.renameSiteZone":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.runDeviceAction":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.setChildLayout":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.setDisabled":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.setDisplay":{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.setLocationDescription":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.setLocationIcon":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.setLocationZone":{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.setRoleDisplayDefaults":{capName:`device-manager`,capScope:`system`,addonId:null,access:`create`},"deviceManager.setSiteZone":{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.getDiscoveryParamsSchema":{capName:`device-provider`,capScope:`system`,addonId:null,access:`view`},"deviceProvider.getManualCreationType":{capName:`device-provider`,capScope:`system`,addonId:null,access:`view`},"deviceProvider.getStatus":{capName:`device-provider`,capScope:`system`,addonId:null,access:`view`},"deviceProvider.reloadDevice":{capName:`device-provider`,capScope:`system`,addonId:null,access:`create`},"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`},"deviceRemovalHook.listDeviceData":{capName:`device-removal-hook`,capScope:`system`,addonId:null,access:`view`},"deviceRemovalHook.onDeviceRemoved":{capName:`device-removal-hook`,capScope:`system`,addonId:null,access:`create`},"deviceState.claimFields":{capName:`device-state`,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.getNativeCapSlice":{capName:`device-state`,capScope:`system`,addonId:null,access:`view`},"deviceState.getSnapshot":{capName:`device-state`,capScope:`system`,addonId:null,access:`view`},"deviceState.listClaims":{capName:`device-state`,capScope:`system`,addonId:null,access:`view`},"deviceState.patchOwnedFields":{capName:`device-state`,capScope:`system`,addonId:null,access:`create`},"deviceState.releaseClaim":{capName:`device-state`,capScope:`system`,addonId:null,access:`create`},"deviceState.setCapSlice":{capName:`device-state`,capScope:`system`,addonId:null,access:`create`},"deviceStatus.getStatus":{capName:`device-status`,capScope:`device`,addonId:null,access:`view`},"dishwasher.getOptions":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`view`},"dishwasher.getStatus":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`view`},"dishwasher.pause":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.resume":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setChildLock":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setExtraDry":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setHalfLoad":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setHygienePlus":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setIntensiveZone":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setOption":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setPower":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setProgram":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.setVarioSpeedPlus":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.start":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"dishwasher.stop":{capName:`dishwasher`,capScope:`device`,addonId:null,access:`create`},"doorbell.getStatus":{capName:`doorbell`,capScope:`device`,addonId:null,access:`view`},"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`},"embeddingEncoder.resetFailedModels":{capName:`embedding-encoder`,capScope:`system`,addonId:null,access:`delete`},"enumSensor.getStatus":{capName:`enum-sensor`,capScope:`device`,addonId:null,access:`view`},"eventEmitter.getStatus":{capName:`event-emitter`,capScope:`device`,addonId:null,access:`view`},"faceGallery.assignFace":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`create`},"faceGallery.assignFaces":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`create`},"faceGallery.auditIdentitySamples":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`view`},"faceGallery.createIdentity":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`create`},"faceGallery.deleteFace":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`delete`},"faceGallery.deleteIdentity":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`delete`},"faceGallery.getFaceByTrack":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`view`},"faceGallery.getFaceMedia":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`view`},"faceGallery.listIdentities":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`view`},"faceGallery.listIdentitySamples":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`view`},"faceGallery.listRecentFaces":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`view`},"faceGallery.removeSample":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`delete`},"faceGallery.renameIdentity":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`create`},"faceGallery.suggestFaceClusters":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`view`},"faceGallery.unassignFace":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`create`},"faceGallery.unassignFaces":{capName:`face-gallery`,capScope:`system`,addonId:null,access:`create`},"failureContribution.list":{capName:`failure-contribution`,capScope:`system`,addonId:null,access:`view`},"fanControl.getStatus":{capName:`fan-control`,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`},"featureProbe.getStatus":{capName:`feature-probe`,capScope:`device`,addonId:null,access:`view`},"filesystemBrowse.browse":{capName:`filesystem-browse`,capScope:`system`,addonId:null,access:`view`},"filesystemBrowse.createDir":{capName:`filesystem-browse`,capScope:`system`,addonId:null,access:`create`},"filesystemBrowse.listAllowedRoots":{capName:`filesystem-browse`,capScope:`system`,addonId:null,access:`view`},"flood.getStatus":{capName:`flood`,capScope:`device`,addonId:null,access:`view`},"gas.getStatus":{capName:`gas`,capScope:`device`,addonId:null,access:`view`},"heatingValve.getStatus":{capName:`heating-valve`,capScope:`device`,addonId:null,access:`view`},"humidifier.getStatus":{capName:`humidifier`,capScope:`device`,addonId:null,access:`view`},"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`},"humiditySensor.getStatus":{capName:`humidity-sensor`,capScope:`device`,addonId:null,access:`view`},"image.getStatus":{capName:`image`,capScope:`device`,addonId:null,access:`view`},"imageSettings.getOptions":{capName:`image-settings`,capScope:`device`,addonId:null,access:`view`},"imageSettings.getStatus":{capName:`image-settings`,capScope:`device`,addonId:null,access:`view`},"imageSettings.setSettings":{capName:`image-settings`,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.getStatus":{capName:`intercom`,capScope:`device`,addonId:null,access:`view`},"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`},"keychain.delete":{capName:`keychain`,capScope:`system`,addonId:null,access:`delete`},"keychain.deleteDeviceScope":{capName:`keychain`,capScope:`system`,addonId:null,access:`delete`},"keychain.getState":{capName:`keychain`,capScope:`system`,addonId:null,access:`view`},"keychain.listMeta":{capName:`keychain`,capScope:`system`,addonId:null,access:`view`},"keychain.put":{capName:`keychain`,capScope:`system`,addonId:null,access:`create`},"keychain.resolve":{capName:`keychain`,capScope:`system`,addonId:null,access:`view`},"keychainAdmin.acknowledgeReset":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`create`},"keychainAdmin.deleteOrphans":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`delete`},"keychainAdmin.downloadRecoveryKey":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`create`},"keychainAdmin.importSecret":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`create`},"keychainAdmin.listAudit":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`view`},"keychainAdmin.listSecrets":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`view`},"keychainAdmin.purgeRetiredKeys":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`delete`},"keychainAdmin.resetKeychain":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`delete`},"keychainAdmin.resetReport":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`delete`},"keychainAdmin.reveal":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`create`},"keychainAdmin.rotateMasterKey":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`create`},"keychainAdmin.setSystemSecret":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`create`},"keychainAdmin.status":{capName:`keychain-admin`,capScope:`system`,addonId:null,access:`view`},"lawnMowerControl.dock":{capName:`lawn-mower-control`,capScope:`device`,addonId:null,access:`create`},"lawnMowerControl.getStatus":{capName:`lawn-mower-control`,capScope:`device`,addonId:null,access:`view`},"lawnMowerControl.pause":{capName:`lawn-mower-control`,capScope:`device`,addonId:null,access:`create`},"lawnMowerControl.startMowing":{capName:`lawn-mower-control`,capScope:`device`,addonId:null,access:`create`},"llm.cancel":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.deleteModel":{capName:`llm`,capScope:`system`,addonId:null,access:`delete`},"llm.deleteProfile":{capName:`llm`,capScope:`system`,addonId:null,access:`delete`},"llm.generate":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.generateVision":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.getDefaults":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.getRuntimeStatus":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.getUsage":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.installModel":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.listModelCatalog":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.listModels":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.listNodeModels":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.listProfileKinds":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.listProfiles":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.listRuntimeNodes":{capName:`llm`,capScope:`system`,addonId:null,access:`view`},"llm.migrateRawSecrets":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.resolveModelRef":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.setDefault":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.startRuntime":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.stopRuntime":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.testProfile":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llm.upsertProfile":{capName:`llm`,capScope:`system`,addonId:null,access:`create`},"llmRuntime.appleAvailability":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`view`},"llmRuntime.cancel":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`create`},"llmRuntime.complete":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`create`},"llmRuntime.completeApple":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`create`},"llmRuntime.deleteModel":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`delete`},"llmRuntime.ensureStarted":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`create`},"llmRuntime.getDiskUsage":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`view`},"llmRuntime.installModel":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`create`},"llmRuntime.listLocalModels":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`view`},"llmRuntime.status":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`view`},"llmRuntime.stop":{capName:`llm-runtime`,capScope:`system`,addonId:null,access:`create`},"loadContribution.list":{capName:`load-contribution`,capScope:`system`,addonId:null,access:`view`},"localNetwork.addCustomAddress":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.downloadCa":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getAddresses":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getAllowedAddresses":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getConnectionEndpoints":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getHubAddresses":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getNotificationEndpoint":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getPreferred":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getTlsStatus":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.getViewerEndpoints":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.list":{capName:`local-network`,capScope:`system`,addonId:null,access:`view`},"localNetwork.regenerateCertificate":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.removeCustomAddress":{capName:`local-network`,capScope:`system`,addonId:null,access:`delete`},"localNetwork.resetAllowlistToBestMatch":{capName:`local-network`,capScope:`system`,addonId:null,access:`delete`},"localNetwork.revertToGeneratedCertificate":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.setAddressRole":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.setAllowedAddresses":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.setNotificationEndpoint":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.setViewerEndpoints":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.uploadCertificate":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"localNetwork.useStoredUploadedCertificate":{capName:`local-network`,capScope:`system`,addonId:null,access:`create`},"lockControl.getStatus":{capName:`lock-control`,capScope:`device`,addonId:null,access:`view`},"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`},"logChannels.apply":{capName:`log-channels`,capScope:`system`,addonId:null,access:`create`},"logChannels.list":{capName:`log-channels`,capScope:`system`,addonId:null,access:`view`},"logDestination.query":{capName:`log-destination`,capScope:`system`,addonId:null,access:`view`},"logDestination.write":{capName:`log-destination`,capScope:`system`,addonId:null,access:`create`},"loginMethod.getLoginMethods":{capName:`login-method`,capScope:`system`,addonId:null,access:`view`},"mediaPlayer.getStatus":{capName:`media-player`,capScope:`device`,addonId:null,access:`view`},"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.getLoadSeries":{capName:`metrics-provider`,capScope:`system`,addonId:null,access:`view`},"metricsProvider.getProcessStats":{capName:`metrics-provider`,capScope:`system`,addonId:null,access:`view`},"metricsProvider.listAddonInstances":{capName:`metrics-provider`,capScope:`system`,addonId:null,access:`view`},"metricsProvider.listNodeProcesses":{capName:`metrics-provider`,capScope:`system`,addonId:null,access:`view`},"modelConvert.convert":{capName:`model-convert`,capScope:`system`,addonId:null,access:`create`},"modelDistributor.distributeModel":{capName:`model-distributor`,capScope:`system`,addonId:null,access:`create`},"motion.getStatus":{capName:`motion`,capScope:`device`,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.applyDeviceSettingsPatch":{capName:`motion-detection`,capScope:`device`,addonId:null,access:`create`},"motionDetection.getDeviceLiveContribution":{capName:`motion-detection`,capScope:`device`,addonId:null,access:`view`},"motionDetection.getDeviceSettingsContribution":{capName:`motion-detection`,capScope:`device`,addonId:null,access:`view`},"motionDetection.removeCamera":{capName:`motion-detection`,capScope:`device`,addonId:null,access:`delete`},"motionDetection.reset":{capName:`motion-detection`,capScope:`device`,addonId:null,access:`delete`},"motionTrigger.getStatus":{capName:`motion-trigger`,capScope:`device`,addonId:null,access:`view`},"motionTrigger.setMotionTrigger":{capName:`motion-trigger`,capScope:`device`,addonId:null,access:`create`},"motionZones.getOptions":{capName:`motion-zones`,capScope:`device`,addonId:null,access:`view`},"motionZones.getStatus":{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.getOptions":{capName:`native-object-detection`,capScope:`device`,addonId:null,access:`view`},"nativeObjectDetection.getStatus":{capName:`native-object-detection`,capScope:`device`,addonId:null,access:`view`},"nativeObjectDetection.setEnabled":{capName:`native-object-detection`,capScope:`device`,addonId:null,access:`create`},"nativeObjectDetection.setSettings":{capName:`native-object-detection`,capScope:`device`,addonId:null,access:`create`},"navigation.getFeatures":{capName:`navigation`,capScope:`device`,addonId:null,access:`view`},"navigation.getStatus":{capName:`navigation`,capScope:`device`,addonId:null,access:`view`},"navigation.goToPoint":{capName:`navigation`,capScope:`device`,addonId:null,access:`create`},"navigation.listActions":{capName:`navigation`,capScope:`device`,addonId:null,access:`view`},"navigation.move":{capName:`navigation`,capScope:`device`,addonId:null,access:`create`},"navigation.playSound":{capName:`navigation`,capScope:`device`,addonId:null,access:`create`},"navigation.runAction":{capName:`navigation`,capScope:`device`,addonId:null,access:`create`},"navigation.setLightLevel":{capName:`navigation`,capScope:`device`,addonId:null,access:`create`},"navigation.setLightMode":{capName:`navigation`,capScope:`device`,addonId:null,access:`create`},"navigation.setLightOn":{capName:`navigation`,capScope:`device`,addonId:null,access:`create`},"navigation.stop":{capName:`navigation`,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`},"networkLink.getStatus":{capName:`network-link`,capScope:`device`,addonId:null,access:`view`},"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`},"nodeCertificates.confirmMeshLeaf":{capName:`node-certificates`,capScope:`system`,addonId:null,access:`create`},"nodeCertificates.forgetHub":{capName:`node-certificates`,capScope:`system`,addonId:null,access:`delete`},"nodeCertificates.getCertificates":{capName:`node-certificates`,capScope:`system`,addonId:null,access:`view`},"nodeCertificates.installHttpsCertificate":{capName:`node-certificates`,capScope:`system`,addonId:null,access:`create`},"nodeCertificates.installMeshLeaf":{capName:`node-certificates`,capScope:`system`,addonId:null,access:`create`},"nodeCertificates.prepareHttpsCertificate":{capName:`node-certificates`,capScope:`system`,addonId:null,access:`create`},"nodeCertificates.prepareMeshRenewal":{capName:`node-certificates`,capScope:`system`,addonId:null,access:`create`},"nodeCertificates.rollbackMeshLeaf":{capName:`node-certificates`,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.directory":{capName:`nodes`,capScope:`system`,addonId:null,access:`view`},"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.deleteTarget":{capName:`notification-output`,capScope:`system`,addonId:null,access:`delete`},"notificationOutput.discoverTargets":{capName:`notification-output`,capScope:`system`,addonId:null,access:`view`},"notificationOutput.getTarget":{capName:`notification-output`,capScope:`system`,addonId:null,access:`view`},"notificationOutput.listTargetKinds":{capName:`notification-output`,capScope:`system`,addonId:null,access:`view`},"notificationOutput.listTargets":{capName:`notification-output`,capScope:`system`,addonId:null,access:`view`},"notificationOutput.probeTargetConfig":{capName:`notification-output`,capScope:`system`,addonId:null,access:`create`},"notificationOutput.send":{capName:`notification-output`,capScope:`system`,addonId:null,access:`create`},"notificationOutput.setTargetEnabled":{capName:`notification-output`,capScope:`system`,addonId:null,access:`create`},"notificationOutput.testTarget":{capName:`notification-output`,capScope:`system`,addonId:null,access:`create`},"notificationOutput.upsertTarget":{capName:`notification-output`,capScope:`system`,addonId:null,access:`create`},"notificationRules.activateAlarmProfile":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.cancelSnooze":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.createAlarmProfile":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.createRule":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.createSequence":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.createSnooze":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.deleteAlarmProfile":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`delete`},"notificationRules.deleteRule":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`delete`},"notificationRules.deleteSequence":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`delete`},"notificationRules.getAlarmConfig":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getAlarmSensors":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getClipRetentionAsks":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getConditionCatalog":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getHistory":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getRule":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getRuleLastRuns":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getSequence":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.getTemplateCatalog":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.listDeviceMutes":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.listRules":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.listSequences":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.listSnoozes":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.previewStateSummary":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.previewTemplate":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.renameAlarmProfile":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.resolveArtifactUrl":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`view`},"notificationRules.setAlarmConfig":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.setDeviceMuted":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.setRuleEnabled":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.testRule":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.updateRule":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notificationRules.updateSequence":{capName:`notification-rules`,capScope:`system`,addonId:null,access:`create`},"notifier.cancel":{capName:`notifier`,capScope:`device`,addonId:null,access:`create`},"notifier.getStatus":{capName:`notifier`,capScope:`device`,addonId:null,access:`view`},"notifier.send":{capName:`notifier`,capScope:`device`,addonId:null,access:`create`},"numericSensor.getStatus":{capName:`numeric-sensor`,capScope:`device`,addonId:null,access:`view`},"oauthIntegration.getDescriptor":{capName:`oauth-integration`,capScope:`system`,addonId:null,access:`view`},"oidcConnections.connectionFormSchema":{capName:`oidc-connections`,capScope:`system`,addonId:null,access:`view`},"oidcConnections.createConnection":{capName:`oidc-connections`,capScope:`system`,addonId:null,access:`create`},"oidcConnections.deleteConnection":{capName:`oidc-connections`,capScope:`system`,addonId:null,access:`delete`},"oidcConnections.listConnections":{capName:`oidc-connections`,capScope:`system`,addonId:null,access:`view`},"oidcConnections.updateConnection":{capName:`oidc-connections`,capScope:`system`,addonId:null,access:`create`},"osd.getStatus":{capName:`osd`,capScope:`device`,addonId:null,access:`view`},"osd.setOverlay":{capName:`osd`,capScope:`device`,addonId:null,access:`create`},"osdManager.clearSlotBinding":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`delete`},"osdManager.copyDeviceConfiguration":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`create`},"osdManager.deleteTemplate":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`delete`},"osdManager.getConditionSupport":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`view`},"osdManager.getDeviceOsd":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`view`},"osdManager.getSourceCatalog":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`view`},"osdManager.listTemplates":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`view`},"osdManager.previewSlot":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`create`},"osdManager.renderDevice":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`create`},"osdManager.setSlotBinding":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`create`},"osdManager.setSlotCameraEnabled":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`create`},"osdManager.upsertTemplate":{capName:`osd-manager`,capScope:`system`,addonId:null,access:`create`},"petFeeder.callPet":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.cancelFeed":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.feed":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.getStatus":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`view`},"petFeeder.markFoodReplenished":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.playSound":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.resetDesiccant":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`delete`},"petFeeder.setChildLock":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.setFeedSound":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.setIndicatorLight":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"petFeeder.setVolume":{capName:`pet-feeder`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.addRetrainFrameFromRecording":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.addRetrainFramesToCollection":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.applyDeviceSettingsPatch":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.backfillRetrainOrigins":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.cancelRelocateMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.cancelStorageMigrationMove":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.clearTrackRelation":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.clearTracks":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.completeRetrainTrack":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.countRelocatableMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.countUnstampedEventMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.createRetrainCollection":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.deleteDeviceEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.deleteRetrainCollection":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.deleteTracks":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.deselectRetrainFrame":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.getActiveTracks":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getAudioEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getDeviceLiveContribution":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getDeviceSettingsContribution":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getEventDensity":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getEventDensityBatch":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getEventMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getEventMediaFootprintByKind":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getEventStoreFootprint":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getKeyEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getKeyEventsBatch":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getMediaReclaimStatus":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getMotionEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getObjectEmbeddingRebuildStatus":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getObjectEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getRetrainCorpusKpi":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getRetrainExportUrl":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getRetrainFrameImage":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getSensorEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getStorageMigrationMoveStatus":{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.getTrainingExportSummary":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.getTrainingExportUrl":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listArchivedDebugNotes":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listBirthDecisions":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listEventKinds":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listEventKindsBatch":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listEventMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listOpsLog":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRecentTracks":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRelocateMediaJobs":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRetrainAnnotations":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRetrainAssistProfiles":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRetrainCollectionFrames":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRetrainCollections":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRetrainCorpusPage":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRetrainFrames":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listRetrainStaging":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listTrackMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listTrackRelations":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.listTracks":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.offerRetrainArchive":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.ownersWithMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.pauseForStorageMigration":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.proposeRetrainAnnotations":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.proposeRetrainAnnotationsWithLlm":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.pruneEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.pruneEventsBefore":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.pruneTracksBefore":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.readLongTermSeries":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.rebuildObjectEmbeddings":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.reclaimDebugMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.reconcileFromDisk":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.refreshStorageLocationsForMigration":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.relocateMedia":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.removeRetrainFrameFromCollection":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.renameRetrainCollection":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.resolveRetrainTrainingCorpus":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.restageRetrainTrack":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.resumeForStorageMigration":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.saveRetrainAnnotations":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.searchObjectEvents":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`view`},"pipelineAnalytics.selectRetrainFrames":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.setRetrainFrameComplete":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.setTrackFlags":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.setTrackPurity":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.setTrackRelation":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.startStorageMigrationMove":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineAnalytics.wipeAllAnalytics":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.wipeObjectEmbeddings":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`delete`},"pipelineAnalytics.writeRetrainArchive":{capName:`pipeline-analytics`,capScope:`device`,addonId:null,access:`create`},"pipelineExecutor.cacheFrameInPool":{capName:`pipeline-executor`,capScope:`system`,addonId:null,access:`create`},"pipelineExecutor.clearDeviceOverrides":{capName:`pipeline-executor`,capScope:`system`,addonId:null,access:`delete`},"pipelineExecutor.clearModelBoundDeviceOverrides":{capName:`pipeline-executor`,capScope:`system`,addonId:null,access:`delete`},"pipelineExecutor.deleteModel":{capName:`pipeline-executor`,capScope:`system`,addonId:null,access:`delete`},"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.getEngineProvisioning":{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.getInferenceDeviceHealth":{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.rearmInferenceDevice":{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.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.validatePipeline":{capName:`pipeline-executor`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.abortNodeBenchmark":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.applyAutoTune":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.applyDeviceSettingsPatch":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.assignAudio":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.assignPipeline":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.deleteNodeBenchmarkResult":{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.getCameraDetectionSource":{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.getCameraStatus":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getCameraStatuses":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getCameraStepOverrides":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getCameraSwitches":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getCapabilityBindings":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getClusterModelChoice":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getDeviceLiveContribution":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getDeviceSettingsContribution":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getEffectiveShares":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getGlobalMetrics":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getIngestOwner":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getNodeBenchmarkCandidates":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getNodeBenchmarkPreflight":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getNodeBenchmarkStatus":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getNodeInferenceDevices":{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.getPipelineDevicePin":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getPlacementStats":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.getReconcileFromDiskStatus":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.listAgentSettings":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.listNodeBenchmarkResults":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.pauseForStorageMigration":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.planAutoTune":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.rebalance":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.reconcileFromDisk":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.removeAgentSettings":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`delete`},"pipelineOrchestrator.requestOccupancyLook":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.resetNodePipelineDefaults":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`delete`},"pipelineOrchestrator.resolvePipeline":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.resumeForStorageMigration":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setAgentCapabilities":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setAgentDecodeLimits":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setAgentInferenceDevices":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setAgentMaxCameras":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setAgentReachableHost":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCameraDetectionSource":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCameraPipelineForAgent":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCameraSensors":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCameraStepOverride":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCameraStepSettings":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCameraStepToggle":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCameraSwitch":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setCapabilityBinding":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setLoadBalancingShares":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setPipelineDevicePin":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.setShareSource":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.startNodeBenchmark":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.suggestShares":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`view`},"pipelineOrchestrator.unassignAudio":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineOrchestrator.unassignPipeline":{capName:`pipeline-orchestrator`,capScope:`system`,addonId:null,access:`create`},"pipelineRunner.abortNodeBench":{capName:`pipeline-runner`,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.getNativeCrop":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`view`},"pipelineRunner.getNodeBenchStatus":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`view`},"pipelineRunner.getParkedTrackFrame":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`view`},"pipelineRunner.parkTrackFrame":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`create`},"pipelineRunner.releaseParkedTrackFrames":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`create`},"pipelineRunner.reportMotion":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`create`},"pipelineRunner.requestOccupancyBurst":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`create`},"pipelineRunner.runDetailSubtree":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`create`},"pipelineRunner.runStatelessStep":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`create`},"pipelineRunner.startNodeBench":{capName:`pipeline-runner`,capScope:`system`,addonId:null,access:`create`},"plateGallery.assignPlate":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`create`},"plateGallery.assignPlates":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`create`},"plateGallery.correctPlateText":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`create`},"plateGallery.createVehicle":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`create`},"plateGallery.deletePlate":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`delete`},"plateGallery.deleteVehicle":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`delete`},"plateGallery.getPlateByTrack":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`view`},"plateGallery.getPlateMedia":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`view`},"plateGallery.listPlates":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`view`},"plateGallery.listVehicles":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`view`},"plateGallery.listVehicleSamples":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`view`},"plateGallery.removeVehicleSample":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`delete`},"plateGallery.renameVehicle":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`create`},"plateGallery.searchPlates":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`view`},"plateGallery.suggestPlateClusters":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`view`},"plateGallery.unassignPlate":{capName:`plate-gallery`,capScope:`system`,addonId:null,access:`create`},"plateGallery.unassignPlates":{capName:`plate-gallery`,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.resolveHwAccel":{capName:`platform-probe`,capScope:`system`,addonId:null,access:`view`},"platformProbe.resolveInferenceConfig":{capName:`platform-probe`,capScope:`system`,addonId:null,access:`view`},"powerMeter.getStatus":{capName:`power-meter`,capScope:`device`,addonId:null,access:`view`},"presence.getStatus":{capName:`presence`,capScope:`device`,addonId:null,access:`view`},"pressureSensor.getStatus":{capName:`pressure-sensor`,capScope:`device`,addonId:null,access:`view`},"privacyMask.getOptions":{capName:`privacy-mask`,capScope:`device`,addonId:null,access:`view`},"privacyMask.getStatus":{capName:`privacy-mask`,capScope:`device`,addonId:null,access:`view`},"privacyMask.setAudioEnabled":{capName:`privacy-mask`,capScope:`device`,addonId:null,access:`create`},"privacyMask.setMask":{capName:`privacy-mask`,capScope:`device`,addonId:null,access:`create`},"ptz.captureHomeHere":{capName:`ptz`,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.getHomePreset":{capName:`ptz`,capScope:`device`,addonId:null,access:`view`},"ptz.getHomeReturn":{capName:`ptz`,capScope:`device`,addonId:null,access:`view`},"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.getStatus":{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.setHomePreset":{capName:`ptz`,capScope:`device`,addonId:null,access:`create`},"ptz.setHomeReturn":{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`},"recordEntries.deleteEntry":{capName:`record-entries`,capScope:`system`,addonId:null,access:`delete`},"recordEntries.listEntries":{capName:`record-entries`,capScope:`system`,addonId:null,access:`view`},"recordEntries.listEntryKinds":{capName:`record-entries`,capScope:`system`,addonId:null,access:`view`},"recordEntries.putEntry":{capName:`record-entries`,capScope:`system`,addonId:null,access:`create`},"recording.getAvailability":{capName:`recording`,capScope:`device`,addonId:null,access:`view`},"recording.getDaysWithRecordings":{capName:`recording`,capScope:`device`,addonId:null,access:`view`},"recording.getPlayback":{capName:`recording`,capScope:`device`,addonId:null,access:`view`},"recording.getPlaybackOptions":{capName:`recording`,capScope:`device`,addonId:null,access:`view`},"recording.listSources":{capName:`recording`,capScope:`device`,addonId:null,access:`view`},"recordingArchive.applyDeviceSettingsPatch":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.cancelRelocateJob":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.cancelStorageMigrationMove":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.deleteFootprint":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`delete`},"recordingArchive.getAvailabilityBatch":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getDaysWithRecordingsBatch":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getDeviceConfig":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getDeviceLiveContribution":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getDeviceSettingsContribution":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getPlacement":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getRelocateResidue":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getStatus":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getStorageMigrationMoveStatus":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.getStorageUsage":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.listOpsLog":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.listRelocateJobs":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.locateSegment":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.pauseForStorageMigration":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.planStorageRebalance":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.pruneFootage":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.readGopBytes":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.readSegmentBytes":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.readWindowBytes":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`view`},"recordingArchive.reconcileLedgerAgainstDisk":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.refreshStorageLocationsForMigration":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.relocateFootage":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.renderClip":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.renderGif":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.rescanStorage":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.resumeForStorageMigration":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.setDeviceConfig":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.setDevicePlacement":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.startStorageMigrationMove":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingArchive.startStorageRebalance":{capName:`recording-archive`,capScope:`system`,addonId:null,access:`create`},"recordingExport.cancelExport":{capName:`recording-export`,capScope:`system`,addonId:null,access:`create`},"recordingExport.createExport":{capName:`recording-export`,capScope:`system`,addonId:null,access:`create`},"recordingExport.deleteExport":{capName:`recording-export`,capScope:`system`,addonId:null,access:`delete`},"recordingExport.getDownloadUrl":{capName:`recording-export`,capScope:`system`,addonId:null,access:`view`},"recordingExport.getExport":{capName:`recording-export`,capScope:`system`,addonId:null,access:`view`},"recordingExport.listExports":{capName:`recording-export`,capScope:`system`,addonId:null,access:`view`},"recordingExport.readExportBytes":{capName:`recording-export`,capScope:`system`,addonId:null,access:`view`},"recordingOnboard.getOptions":{capName:`recording-onboard`,capScope:`device`,addonId:null,access:`view`},"recordingOnboard.getStatus":{capName:`recording-onboard`,capScope:`device`,addonId:null,access:`view`},"recordingOnboard.setSettings":{capName:`recording-onboard`,capScope:`device`,addonId:null,access:`create`},"recordingSignal.getStatus":{capName:`recording-signal`,capScope:`device`,addonId:null,access:`view`},"records.aggregate":{capName:`records`,capScope:`system`,addonId:null,access:`view`},"records.allocateId":{capName:`records`,capScope:`system`,addonId:null,access:`create`},"records.count":{capName:`records`,capScope:`system`,addonId:null,access:`view`},"records.declareKinds":{capName:`records`,capScope:`system`,addonId:null,access:`create`},"records.delete":{capName:`records`,capScope:`system`,addonId:null,access:`delete`},"records.deleteDevice":{capName:`records`,capScope:`system`,addonId:null,access:`delete`},"records.deleteMany":{capName:`records`,capScope:`system`,addonId:null,access:`delete`},"records.deleteWhere":{capName:`records`,capScope:`system`,addonId:null,access:`delete`},"records.get":{capName:`records`,capScope:`system`,addonId:null,access:`view`},"records.getMany":{capName:`records`,capScope:`system`,addonId:null,access:`view`},"records.histogram":{capName:`records`,capScope:`system`,addonId:null,access:`view`},"records.patch":{capName:`records`,capScope:`system`,addonId:null,access:`create`},"records.put":{capName:`records`,capScope:`system`,addonId:null,access:`create`},"records.putMany":{capName:`records`,capScope:`system`,addonId:null,access:`create`},"records.query":{capName:`records`,capScope:`system`,addonId:null,access:`view`},"records.secretRefs":{capName:`records`,capScope:`system`,addonId:null,access:`view`},"sceneMonitor.captureReference":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`create`},"sceneMonitor.createScene":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`create`},"sceneMonitor.deleteReference":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`delete`},"sceneMonitor.deleteScene":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`delete`},"sceneMonitor.getStatus":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`view`},"sceneMonitor.listScenes":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`view`},"sceneMonitor.listScenesBatch":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`view`},"sceneMonitor.recheckNow":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`create`},"sceneMonitor.resetScene":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`delete`},"sceneMonitor.updateScene":{capName:`scene-monitor`,capScope:`device`,addonId:null,access:`create`},"scriptRunner.getStatus":{capName:`script-runner`,capScope:`device`,addonId:null,access:`view`},"scriptRunner.run":{capName:`script-runner`,capScope:`device`,addonId:null,access:`create`},"scriptRunner.stop":{capName:`script-runner`,capScope:`device`,addonId:null,access:`create`},"serverManagement.applyServerUpdate":{capName:`server-management`,capScope:`system`,addonId:null,access:`create`},"serverManagement.checkServerUpdate":{capName:`server-management`,capScope:`system`,addonId:null,access:`create`},"serverManagement.getServerPackageStatus":{capName:`server-management`,capScope:`system`,addonId:null,access:`view`},"serverManagement.restartServer":{capName:`server-management`,capScope:`system`,addonId:null,access:`create`},"serverManagement.rollbackServerUpdate":{capName:`server-management`,capScope:`system`,addonId:null,access:`create`},"settingsStore.aggregate":{capName:`settings-store`,capScope:`system`,addonId:null,access:`view`},"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.deleteWhere":{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.insertMany":{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.transact":{capName:`settings-store`,capScope:`system`,addonId:null,access:`create`},"settingsStore.update":{capName:`settings-store`,capScope:`system`,addonId:null,access:`create`},"settingsStore.updateWhere":{capName:`settings-store`,capScope:`system`,addonId:null,access:`create`},"settingsStore.upsert":{capName:`settings-store`,capScope:`system`,addonId:null,access:`create`},"settingsStore.upsertMany":{capName:`settings-store`,capScope:`system`,addonId:null,access:`create`},"smoke.getStatus":{capName:`smoke`,capScope:`device`,addonId:null,access:`view`},"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.applyDeviceSettingsPatch":{capName:`snapshot`,capScope:`device`,addonId:null,access:`create`},"snapshot.getDebugState":{capName:`snapshot`,capScope:`device`,addonId:null,access:`view`},"snapshot.getDeviceLiveContribution":{capName:`snapshot`,capScope:`device`,addonId:null,access:`view`},"snapshot.getDeviceSettingsContribution":{capName:`snapshot`,capScope:`device`,addonId:null,access:`view`},"snapshot.getSnapshot":{capName:`snapshot`,capScope:`device`,addonId:null,access:`view`},"snapshot.getSnapshotLinks":{capName:`snapshot`,capScope:`device`,addonId:null,access:`view`},"snapshot.getSnapshotOverview":{capName:`snapshot`,capScope:`device`,addonId:null,access:`view`},"snapshot.getStatus":{capName:`snapshot`,capScope:`device`,addonId:null,access:`view`},"snapshot.invalidateCache":{capName:`snapshot`,capScope:`device`,addonId:null,access:`create`},"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.list":{capName:`storage`,capScope:`system`,addonId:null,access:`view`},"storage.listDrainProgress":{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`},"storageAdmin.adoptRecords":{capName:`storage-admin`,capScope:`system`,addonId:null,access:`create`},"storageAdmin.dropCollection":{capName:`storage-admin`,capScope:`system`,addonId:null,access:`delete`},"storageAdmin.isAdoptedLegacyTable":{capName:`storage-admin`,capScope:`system`,addonId:null,access:`view`},"storageAdmin.listKinds":{capName:`storage-admin`,capScope:`system`,addonId:null,access:`view`},"storageAdmin.listTables":{capName:`storage-admin`,capScope:`system`,addonId:null,access:`view`},"storageAdmin.readLegacyCollection":{capName:`storage-admin`,capScope:`system`,addonId:null,access:`view`},"storageAdmin.readRecords":{capName:`storage-admin`,capScope:`system`,addonId:null,access:`view`},"storageEvictable.evict":{capName:`storage-evictable`,capScope:`system`,addonId:null,access:`create`},"storageEvictable.getEvictableUsage":{capName:`storage-evictable`,capScope:`system`,addonId:null,access:`view`},"storageMigration.cancel":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`create`},"storageMigration.cleanupCancel":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`create`},"storageMigration.cleanupStart":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`create`},"storageMigration.cleanupStatus":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`view`},"storageMigration.drain":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`create`},"storageMigration.history":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`view`},"storageMigration.moverClearance":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`view`},"storageMigration.movers":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`view`},"storageMigration.plan":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`view`},"storageMigration.residue":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`view`},"storageMigration.start":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`create`},"storageMigration.status":{capName:`storage-migration`,capScope:`system`,addonId:null,access:`view`},"storageOccupancy.getOccupancy":{capName:`storage-occupancy`,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.acquireEgressTranscode":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.applyDeviceSettingsPatch":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.assignProfile":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.fetchEventMedia":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.forgetDeviceHardware":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`delete`},"streamBroker.getAllRtspEntries":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`view`},"streamBroker.getBrokerStats":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`view`},"streamBroker.getDeviceAudioMute":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`view`},"streamBroker.getDeviceLiveContribution":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`view`},"streamBroker.getDeviceSettingsContribution":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`view`},"streamBroker.getLiveViewerCounts":{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.probeStream":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.produceEventMedia":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.publishCameraStream":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.pullAudioChunks":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`view`},"streamBroker.regenerateRtspToken":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.releaseEgressTranscode":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.releaseStreamWithCodec":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.renderPreBufferClip":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.reportStreamSignal":{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.setDeviceAudioMute":{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.unassignProfile":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamBroker.unsubscribeAudioChunks":{capName:`stream-broker`,capScope:`system`,addonId:null,access:`create`},"streamCatalog.getCatalog":{capName:`stream-catalog`,capScope:`device`,addonId:null,access:`view`},"streamParams.getConfigSchema":{capName:`stream-params`,capScope:`device`,addonId:null,access:`view`},"streamParams.getOptions":{capName:`stream-params`,capScope:`device`,addonId:null,access:`view`},"streamParams.getStatus":{capName:`stream-params`,capScope:`device`,addonId:null,access:`view`},"streamParams.setProfile":{capName:`stream-params`,capScope:`device`,addonId:null,access:`create`},"streamSignals.listSignals":{capName:`stream-signals`,capScope:`device`,addonId:null,access:`view`},"switch.getStatus":{capName:`switch`,capScope:`device`,addonId:null,access:`view`},"switch.setState":{capName:`switch`,capScope:`device`,addonId:null,access:`create`},"system.detectSiteLocation":{capName:`system`,capScope:`system`,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.getFailureContributions":{capName:`system`,capScope:`system`,addonId:null,access:`view`},"system.getLoadContributions":{capName:`system`,capScope:`system`,addonId:null,access:`view`},"system.getLoggingSettings":{capName:`system`,capScope:`system`,addonId:null,access:`view`},"system.getRequestCensus":{capName:`system`,capScope:`system`,addonId:null,access:`view`},"system.getRetentionConfig":{capName:`system`,capScope:`system`,addonId:null,access:`view`},"system.getSiteLocation":{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.setLoggingSettings":{capName:`system`,capScope:`system`,addonId:null,access:`create`},"system.setRetentionConfig":{capName:`system`,capScope:`system`,addonId:null,access:`create`},"system.setSiteLocation":{capName:`system`,capScope:`system`,addonId:null,access:`create`},"tamper.getStatus":{capName:`tamper`,capScope:`device`,addonId:null,access:`view`},"temperatureSensor.getStatus":{capName:`temperature-sensor`,capScope:`device`,addonId:null,access:`view`},"terminalSession.adoptLegacyMonitor":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.close":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.createInstance":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.deleteInstance":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`delete`},"terminalSession.listInstances":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`view`},"terminalSession.listLegacyCameras":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`view`},"terminalSession.listProfiles":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`view`},"terminalSession.listSessions":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`view`},"terminalSession.openSession":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.pullOutput":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.resize":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.setInstanceEnabled":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.updateInstance":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"terminalSession.writeInput":{capName:`terminal-session`,capScope:`system`,addonId:null,access:`create`},"toast.onToast":{capName:`toast`,capScope:`system`,addonId:null,access:`view`},"training.canaryResult":{capName:`training`,capScope:`system`,addonId:null,access:`create`},"training.cancelJob":{capName:`training`,capScope:`system`,addonId:null,access:`create`},"training.discardResult":{capName:`training`,capScope:`system`,addonId:null,access:`create`},"training.getJob":{capName:`training`,capScope:`system`,addonId:null,access:`view`},"training.getJobResult":{capName:`training`,capScope:`system`,addonId:null,access:`view`},"training.listBaseModels":{capName:`training`,capScope:`system`,addonId:null,access:`view`},"training.listJobs":{capName:`training`,capScope:`system`,addonId:null,access:`view`},"training.planJob":{capName:`training`,capScope:`system`,addonId:null,access:`view`},"training.registerResult":{capName:`training`,capScope:`system`,addonId:null,access:`create`},"training.rollbackCanary":{capName:`training`,capScope:`system`,addonId:null,access:`create`},"training.startJob":{capName:`training`,capScope:`system`,addonId:null,access:`create`},"training.startJobBatch":{capName:`training`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.cancelJob":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.cleanupJob":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.createEntry":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.deleteEntry":{capName:`training-provider`,capScope:`system`,addonId:null,access:`delete`},"trainingProvider.describe":{capName:`training-provider`,capScope:`system`,addonId:null,access:`view`},"trainingProvider.describeTypes":{capName:`training-provider`,capScope:`system`,addonId:null,access:`view`},"trainingProvider.estimateJob":{capName:`training-provider`,capScope:`system`,addonId:null,access:`view`},"trainingProvider.getJob":{capName:`training-provider`,capScope:`system`,addonId:null,access:`view`},"trainingProvider.listEntries":{capName:`training-provider`,capScope:`system`,addonId:null,access:`view`},"trainingProvider.listJobEvents":{capName:`training-provider`,capScope:`system`,addonId:null,access:`view`},"trainingProvider.listJobs":{capName:`training-provider`,capScope:`system`,addonId:null,access:`view`},"trainingProvider.offerArtifact":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.readResult":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.submitJob":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.updateEntry":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.uploadDataset":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"trainingProvider.validateCredentials":{capName:`training-provider`,capScope:`system`,addonId:null,access:`create`},"turnProvider.getTurnServers":{capName:`turn-provider`,capScope:`system`,addonId:null,access:`view`},"update.getStatus":{capName:`update`,capScope:`device`,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.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.findUserByExternalIdentity":{capName:`user-management`,capScope:`system`,addonId:null,access:`view`},"userManagement.getTotpStatus":{capName:`user-management`,capScope:`system`,addonId:null,access:`view`},"userManagement.listApiKeys":{capName:`user-management`,capScope:`system`,addonId:null,access:`view`},"userManagement.listExternalIdentities":{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.migrateRawSecrets":{capName:`user-management`,capScope:`system`,addonId:null,access:`create`},"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.unlinkExternalIdentity":{capName:`user-management`,capScope:`system`,addonId:null,access:`delete`},"userManagement.updateUser":{capName:`user-management`,capScope:`system`,addonId:null,access:`create`},"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.beginDiscoverableAuthentication":{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.finishDiscoverableAuthentication":{capName:`user-passkeys`,capScope:`system`,addonId:null,access:`view`},"userPasskeys.finishRegistration":{capName:`user-passkeys`,capScope:`system`,addonId:null,access:`create`},"userPasskeys.getSecondFactorPreference":{capName:`user-passkeys`,capScope:`system`,addonId:null,access:`view`},"userPasskeys.listPasskeys":{capName:`user-passkeys`,capScope:`system`,addonId:null,access:`view`},"userPasskeys.removePasskey":{capName:`user-passkeys`,capScope:`system`,addonId:null,access:`delete`},"userPasskeys.setSecondFactorPreference":{capName:`user-passkeys`,capScope:`system`,addonId:null,access:`create`},"vacuumControl.getStatus":{capName:`vacuum-control`,capScope:`device`,addonId:null,access:`view`},"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.getStatus":{capName:`valve`,capScope:`device`,addonId:null,access:`view`},"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`},"vectorStore.declareIndex":{capName:`vector-store`,capScope:`system`,addonId:null,access:`create`},"vectorStore.deleteByFilter":{capName:`vector-store`,capScope:`system`,addonId:null,access:`delete`},"vectorStore.deleteByIds":{capName:`vector-store`,capScope:`system`,addonId:null,access:`delete`},"vectorStore.fetchByIds":{capName:`vector-store`,capScope:`system`,addonId:null,access:`view`},"vectorStore.getByIds":{capName:`vector-store`,capScope:`system`,addonId:null,access:`view`},"vectorStore.query":{capName:`vector-store`,capScope:`system`,addonId:null,access:`view`},"vectorStore.scan":{capName:`vector-store`,capScope:`system`,addonId:null,access:`view`},"vectorStore.stats":{capName:`vector-store`,capScope:`system`,addonId:null,access:`view`},"vectorStore.upsert":{capName:`vector-store`,capScope:`system`,addonId:null,access:`create`},"vibration.getStatus":{capName:`vibration`,capScope:`device`,addonId:null,access:`view`},"videoclips.dialClipStream":{capName:`videoclips`,capScope:`device`,addonId:null,access:`view`},"videoclips.getClipPlayback":{capName:`videoclips`,capScope:`device`,addonId:null,access:`view`},"videoclips.getPlaybackOptions":{capName:`videoclips`,capScope:`device`,addonId:null,access:`view`},"videoclips.listClips":{capName:`videoclips`,capScope:`device`,addonId:null,access:`view`},"videoclips.listSources":{capName:`videoclips`,capScope:`device`,addonId:null,access:`view`},"videoclips.offerClipBytes":{capName:`videoclips`,capScope:`device`,addonId:null,access:`view`},"videoclips.readClipBytes":{capName:`videoclips`,capScope:`device`,addonId:null,access:`view`},"viewerUi.getStaticDir":{capName:`viewer-ui`,capScope:`system`,addonId:null,access:`view`},"viewerUi.getVersion":{capName:`viewer-ui`,capScope:`system`,addonId:null,access:`view`},"waterHeater.getStatus":{capName:`water-heater`,capScope:`device`,addonId:null,access:`view`},"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`},"weather.getStatus":{capName:`weather`,capScope:`device`,addonId:null,access:`view`},"webrtcSession.addIceCandidate":{capName:`webrtc-session`,capScope:`device`,addonId:null,access:`create`},"webrtcSession.applyDownlinkProbe":{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.getSessionDebug":{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.getCurrentSnapshotBatch":{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`}}),$$=`accessories.addon-pages.addon-pages-source.addon-routes.addon-settings.addon-widgets.addon-widgets-source.addons.admin-ui.air-quality-sensor.alarm-panel.alerts.ambient-light-sensor.audio-analysis.audio-analyzer.audio-codec.audio-metrics.auth-provider.automation-control.backup.battery.binary.brightness.broker.button.calendar-source.calendars.camera-credentials.camera-grid-layout.camera-pipeline-config.camera-streams.carbon-monoxide.climate-control.color.composer.connection-test.connectivity.consumables.contact.control.core-blocks.cover.custom-model-registry.data-store-provider.database-snapshot.day-night.decoder.detection-pipeline.device-admin-link.device-adoption.device-credentials.device-discovery.device-export.device-extension.device-history.device-manager.device-ops.device-provider.device-removal-hook.device-state.device-status.dishwasher.doorbell.embedding-encoder.enum-sensor.event-emitter.face-gallery.failure-contribution.fan-control.feature-probe.filesystem-browse.flood.gas.heating-valve.humidifier.humidity-sensor.image.image-settings.integrations.intercom.keychain.keychain-admin.lawn-mower-control.llm.llm-runtime.load-contribution.local-network.lock-control.log-channels.log-destination.login-method.media-player.mesh-network.metrics-provider.model-convert.model-distributor.motion.motion-detection.motion-trigger.motion-zones.mqtt-broker.native-object-detection.navigation.network-access.network-link.network-quality.node-certificates.nodes.notification-output.notification-rules.notifier.numeric-sensor.oauth-integration.oidc-connections.osd.osd-manager.pet-feeder.pipeline-analytics.pipeline-executor.pipeline-orchestrator.pipeline-runner.plate-gallery.platform-probe.power-meter.presence.pressure-sensor.privacy-mask.ptz.ptz-autotrack.reboot.record-entries.recording.recording-archive.recording-export.recording-onboard.recording-signal.records.scene-monitor.script-runner.server-management.settings-store.smoke.smtp-provider.snapshot.sso-bridge.storage.storage-admin.storage-evictable.storage-migration.storage-occupancy.storage-provider.stream-broker.stream-catalog.stream-params.stream-signals.switch.system.tamper.temperature-sensor.terminal-session.toast.training.training-provider.turn-provider.update.user-management.user-passkeys.vacuum-control.valve.vector-store.vibration.videoclips.viewer-ui.water-heater.weather.webrtc-session.zone-analytics.zone-rules.zones`.split(`.`),e1=`accessories.air-quality-sensor.alarm-panel.ambient-light-sensor.audio-analysis.audio-metrics.automation-control.battery.binary.brightness.button.camera-credentials.camera-grid-layout.camera-pipeline-config.camera-streams.carbon-monoxide.climate-control.color.connectivity.consumables.contact.control.cover.day-night.detection-pipeline.device-admin-link.device-discovery.device-extension.device-ops.device-status.dishwasher.doorbell.enum-sensor.event-emitter.fan-control.feature-probe.flood.gas.heating-valve.humidifier.humidity-sensor.image.image-settings.intercom.lawn-mower-control.lock-control.media-player.motion.motion-detection.motion-trigger.motion-zones.native-object-detection.navigation.network-link.notifier.numeric-sensor.osd.pet-feeder.pipeline-analytics.power-meter.presence.pressure-sensor.privacy-mask.ptz.ptz-autotrack.reboot.recording.recording-onboard.recording-signal.scene-monitor.script-runner.smoke.snapshot.stream-catalog.stream-params.stream-signals.switch.tamper.temperature-sensor.update.vacuum-control.valve.vibration.videoclips.water-heater.weather.webrtc-session.zone-analytics.zone-rules.zones`.split(`.`),t1=`addon-pages.addon-pages-source.addon-routes.addon-settings.addon-widgets.addon-widgets-source.addons.admin-ui.alerts.audio-analyzer.audio-codec.auth-provider.backup.broker.calendar-source.calendars.composer.connection-test.core-blocks.custom-model-registry.data-store-provider.database-snapshot.decoder.device-adoption.device-credentials.device-export.device-history.device-manager.device-provider.device-removal-hook.device-state.embedding-encoder.face-gallery.failure-contribution.filesystem-browse.integrations.keychain.keychain-admin.llm.llm-runtime.load-contribution.local-network.log-channels.log-destination.login-method.mesh-network.metrics-provider.model-convert.model-distributor.mqtt-broker.network-access.network-quality.node-certificates.nodes.notification-output.notification-rules.oauth-integration.oidc-connections.osd-manager.pipeline-executor.pipeline-orchestrator.pipeline-runner.plate-gallery.platform-probe.record-entries.recording-archive.recording-export.records.server-management.settings-store.smtp-provider.sso-bridge.storage.storage-admin.storage-evictable.storage-migration.storage-occupancy.storage-provider.stream-broker.system.terminal-session.toast.training.training-provider.turn-provider.user-management.user-passkeys.vector-store.viewer-ui`.split(`.`),n1=[{id:`switch.on`,label:`Turn on`,cap:`switch`,method:`setState`,args:{on:!0}},{id:`switch.off`,label:`Turn off`,cap:`switch`,method:`setState`,args:{on:!1}},{id:`lock.lock`,label:`Lock`,cap:`lock-control`,method:`lock`,args:{}},{id:`lock.unlock`,label:`Unlock`,cap:`lock-control`,method:`unlock`,args:{}},{id:`lock.open`,label:`Open latch`,cap:`lock-control`,method:`open`,args:{}},{id:`cover.open`,label:`Open`,cap:`cover`,method:`open`,args:{}},{id:`cover.close`,label:`Close`,cap:`cover`,method:`close`,args:{}},{id:`cover.stop`,label:`Stop`,cap:`cover`,method:`stop`,args:{}},{id:`valve.open`,label:`Open valve`,cap:`valve`,method:`open`,args:{}},{id:`valve.close`,label:`Close valve`,cap:`valve`,method:`close`,args:{}},{id:`valve.stop`,label:`Stop valve`,cap:`valve`,method:`stop`,args:{}},{id:`humidifier.on`,label:`Humidifier on`,cap:`humidifier`,method:`setOn`,args:{on:!0}},{id:`humidifier.off`,label:`Humidifier off`,cap:`humidifier`,method:`setOn`,args:{on:!1}},{id:`waterHeater.off`,label:`Water heater off`,cap:`water-heater`,method:`setOperationMode`,args:{mode:`off`}},{id:`waterHeater.awayOn`,label:`Water heater away on`,cap:`water-heater`,method:`setAway`,args:{on:!0}},{id:`waterHeater.awayOff`,label:`Water heater away off`,cap:`water-heater`,method:`setAway`,args:{on:!1}},{id:`climate.off`,label:`Climate off`,cap:`climate-control`,method:`setMode`,args:{mode:`off`}},{id:`climate.heat`,label:`Heat`,cap:`climate-control`,method:`setMode`,args:{mode:`heat`}},{id:`climate.cool`,label:`Cool`,cap:`climate-control`,method:`setMode`,args:{mode:`cool`}},{id:`climate.auto`,label:`Climate auto`,cap:`climate-control`,method:`setMode`,args:{mode:`auto`}},{id:`fan.off`,label:`Fan off`,cap:`fan-control`,method:`setPercentage`,args:{percentage:0}},{id:`fan.full`,label:`Fan full`,cap:`fan-control`,method:`setPercentage`,args:{percentage:100}},{id:`vacuum.start`,label:`Start cleaning`,cap:`vacuum-control`,method:`start`,args:{}},{id:`vacuum.pause`,label:`Pause`,cap:`vacuum-control`,method:`pause`,args:{}},{id:`vacuum.stop`,label:`Stop`,cap:`vacuum-control`,method:`stop`,args:{}},{id:`vacuum.dock`,label:`Return to base`,cap:`vacuum-control`,method:`returnToBase`,args:{}},{id:`lawnMower.start`,label:`Start mowing`,cap:`lawn-mower-control`,method:`startMowing`,args:{}},{id:`lawnMower.pause`,label:`Pause mower`,cap:`lawn-mower-control`,method:`pause`,args:{}},{id:`lawnMower.dock`,label:`Dock mower`,cap:`lawn-mower-control`,method:`dock`,args:{}},{id:`media.play`,label:`Play`,cap:`media-player`,method:`play`,args:{}},{id:`media.pause`,label:`Pause media`,cap:`media-player`,method:`pause`,args:{}},{id:`media.stop`,label:`Stop media`,cap:`media-player`,method:`stop`,args:{}},{id:`media.next`,label:`Next track`,cap:`media-player`,method:`next`,args:{}},{id:`media.previous`,label:`Previous track`,cap:`media-player`,method:`previous`,args:{}},{id:`script.run`,label:`Run script`,cap:`script-runner`,method:`run`,args:{}},{id:`script.stop`,label:`Stop script`,cap:`script-runner`,method:`stop`,args:{}},{id:`haAutomation.enable`,label:`Enable automation`,cap:`automation-control`,method:`enable`,args:{}},{id:`haAutomation.disable`,label:`Disable automation`,cap:`automation-control`,method:`disable`,args:{}},{id:`haAutomation.trigger`,label:`Trigger automation`,cap:`automation-control`,method:`trigger`,args:{}},{id:`petFeeder.feed`,label:`Feed`,cap:`pet-feeder`,method:`feed`,openArgs:[{key:`grams`,label:`Grams`,kind:`number`}]},{id:`petFeeder.callPet`,label:`Call pet`,cap:`pet-feeder`,method:`callPet`,args:{}},{id:`dishwasher.start`,label:`Start cycle`,cap:`dishwasher`,method:`start`,args:{}},{id:`dishwasher.pause`,label:`Pause`,cap:`dishwasher`,method:`pause`,args:{}},{id:`dishwasher.stop`,label:`Stop`,cap:`dishwasher`,method:`stop`,args:{}},{id:`dishwasher.powerOn`,label:`Power on`,cap:`dishwasher`,method:`setPower`,args:{on:!0}},{id:`dishwasher.powerOff`,label:`Power off`,cap:`dishwasher`,method:`setPower`,args:{on:!1}},{id:`ptz.goHome`,label:`PTZ go home`,cap:`ptz`,method:`goHome`,args:{}},{id:`ptz.goToPreset`,label:`PTZ go to preset`,cap:`ptz`,method:`goToPreset`,openArgs:[{key:`presetId`,label:`Preset id`,kind:`string`}]},{id:`ptz.autotrackOn`,label:`Autotrack on`,cap:`ptz-autotrack`,method:`setEnabled`,args:{enabled:!0}},{id:`ptz.autotrackOff`,label:`Autotrack off`,cap:`ptz-autotrack`,method:`setEnabled`,args:{enabled:!1}},{id:`privacy.maskOn`,label:`Privacy mask on`,cap:`privacy-mask`,method:`setMask`,args:{patch:{enabled:!0}}},{id:`privacy.maskOff`,label:`Privacy mask off`,cap:`privacy-mask`,method:`setMask`,args:{patch:{enabled:!1}}},{id:`privacy.micOn`,label:`Microphone on`,cap:`privacy-mask`,method:`setAudioEnabled`,args:{enabled:!0}},{id:`privacy.micOff`,label:`Microphone off`,cap:`privacy-mask`,method:`setAudioEnabled`,args:{enabled:!1}},{id:`dayNight.auto`,label:`Day/night auto`,cap:`day-night`,method:`setSettings`,args:{settings:{mode:`auto`}}},{id:`dayNight.day`,label:`Day mode`,cap:`day-night`,method:`setSettings`,args:{settings:{mode:`day`}}},{id:`dayNight.night`,label:`Night mode`,cap:`day-night`,method:`setSettings`,args:{settings:{mode:`night`}}},{id:`reboot.reboot`,label:`Reboot device`,cap:`reboot`,method:`reboot`,args:{}},{id:`brightness.full`,label:`Brightness full`,cap:`brightness`,method:`setBrightness`,args:{percentage:100}},{id:`brightness.half`,label:`Brightness half`,cap:`brightness`,method:`setBrightness`,args:{percentage:50}},{id:`brightness.off`,label:`Brightness off`,cap:`brightness`,method:`setBrightness`,args:{percentage:0}},{id:`motionTrigger.on`,label:`Motion trigger on`,cap:`motion-trigger`,method:`setMotionTrigger`,args:{enabled:!0}},{id:`motionTrigger.off`,label:`Motion trigger off`,cap:`motion-trigger`,method:`setMotionTrigger`,args:{enabled:!1}},{id:`alarm.trigger`,label:`Trigger alarm`,cap:`alarm-panel`,method:`trigger`,args:{}},{id:`alarm.disarm`,label:`Disarm`,cap:`alarm-panel`,method:`disarm`,args:{}},{id:`alarm.arm.home`,label:`Arm home`,cap:`alarm-panel`,method:`arm`,args:{mode:`home`}},{id:`alarm.arm.away`,label:`Arm away`,cap:`alarm-panel`,method:`arm`,args:{mode:`away`}},{id:`alarm.arm.night`,label:`Arm night`,cap:`alarm-panel`,method:`arm`,args:{mode:`night`}},{id:`alarm.arm.vacation`,label:`Arm vacation`,cap:`alarm-panel`,method:`arm`,args:{mode:`vacation`}},{id:`alarm.arm.custom_bypass`,label:`Arm custom bypass`,cap:`alarm-panel`,method:`arm`,args:{mode:`custom_bypass`}},{id:`button.press`,label:`Press`,cap:`button`,method:`press`,args:{}}];function r1(e){for(let[t,n]of Object.entries(Q$))if(n.capName===e.cap&&n.capScope===`device`&&n.access!==`view`&&t.slice(t.indexOf(`.`)+1)===e.method)return!0;return!1}function i1(e,t){if(e===t)return!0;if(e===null||t===null)return e===t;if(typeof e!=`object`||typeof t!=`object`)return!1;if(Array.isArray(e)||Array.isArray(t)){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i1(e[n],t[n]))return!1;return!0}let n=e,r=t,i=Object.keys(n),a=Object.keys(r);if(i.length!==a.length)return!1;for(let e of i)if(!i1(n[e],r[e]))return!1;return!0}function a1(e,t){return i1(e??{},t??{})}function o1(e,t){if(e.openArgs!==void 0){let n=new Set(e.openArgs.map(e=>e.key)),r=e.args??{},i=t??{};for(let e of Object.keys(r))if(!i1(r[e],i[e]))return!1;for(let e of Object.keys(i))if(!n.has(e)&&!(e in r))return!1;return!0}return a1(e.args,t)}var s1={[R.Camera]:[`ptz`,`ptz-autotrack`,`privacy-mask`,`day-night`,`reboot`,`motion-trigger`],[R.Hub]:[],[R.Light]:[`switch`,`brightness`],[R.Siren]:[`switch`,`motion-trigger`],[R.Switch]:[`switch`,`motion-trigger`],[R.Sensor]:[],[R.Thermostat]:[`climate-control`],[R.Climate]:[`climate-control`],[R.Button]:[`button`],[R.EventEmitter]:[],[R.Update]:[],[R.Generic]:[],[R.Notifier]:[],[R.Script]:[`script-runner`],[R.Automation]:[`automation-control`],[R.Lock]:[`lock-control`],[R.Cover]:[`cover`],[R.Valve]:[`valve`],[R.Humidifier]:[`humidifier`],[R.WaterHeater]:[`water-heater`],[R.Fan]:[`fan-control`,`switch`],[R.MediaPlayer]:[`media-player`],[R.AlarmPanel]:[`alarm-panel`],[R.Control]:[],[R.Presence]:[],[R.Weather]:[],[R.Vacuum]:[`vacuum-control`],[R.LawnMower]:[`lawn-mower-control`],[R.Container]:[],[R.Image]:[],[R.PetFeeder]:[`pet-feeder`],[R.Dishwasher]:[`dishwasher`]};function c1(e){return e!==R.Container}function l1(e){switch(e){case R.Climate:case R.Thermostat:case R.Humidifier:case R.WaterHeater:return`climate-family`;case R.Cover:case R.Valve:return`cover-family`;case R.Switch:case R.Siren:case R.Light:return`switch-family`;case R.Vacuum:case R.LawnMower:return`robot-family`;default:return e}}function u1(e,t){return l1(e)===l1(t)}function d1(e){if(e.length===0)return[];let t=new Set(e);return n1.filter(e=>t.has(e.cap)&&r1(e))}function f1(e){return Object.values(R).includes(e)?d1(s1[e]):[]}function p1(e){let t=e.boundCaps!==void 0&&e.boundCaps.length>0?d1(e.boundCaps):[];return t.length>0?t:e.deviceType!==void 0&&e.deviceType.length>0?f1(e.deviceType):[]}function m1(e){if(e.length===0)return[];let t=null;for(let n of e){let e=p1({boundCaps:n.boundCaps,deviceType:n.deviceType});if(t===null){t=e;continue}let r=new Set(e.map(e=>e.id));t=t.filter(e=>r.has(e.id))}return t??[]}function h1(){return n1.filter(r1)}function g1(e,t,n){for(let r of n1)if(!(r.cap!==e||r.method!==t)&&o1(r,n))return r;return null}function _1(e,t,n){let r=g1(e,t,n);return r===null?`custom:${e}.${t}`:r.id}function v1(e,t){return!e||e.length===0?!1:e.includes(t.when.hasFeature)}var y1={id:`battery`,label:`Battery-operated camera`,when:{hasFeature:eg.BatteryOperated},defaults:{audioMode:`disabled`,detectionMode:`on-motion`},settings:{}},b1=[y1];function x1(e){for(let t of b1)if(v1(e,t))return t;return null}var S1=`device.state-changed`;function C1(e){let t=new Map,n=new Map,r=null,i=(e,t)=>`${e}:${t}`,a=()=>{r||e.live?.onEvent&&(r=e.live.onEvent.subscribe({category:S1},{onData:e=>{let r=e.data;if(!r||typeof r.deviceId!=`number`||typeof r.capName!=`string`)return;let a=i(r.deviceId,r.capName);t.set(a,r.slice);let o=n.get(a);if(o)for(let e of o)try{e(r.slice)}catch{}}}))},o=()=>{r&&(n.size>0||(r.unsubscribe(),r=null))};return{read(e,n){return t.get(i(e,n))},async refresh(r,a){let o=await e.deviceState.getCapSlice.query({deviceId:r,capName:a}),s=i(r,a);t.set(s,o??void 0);let c=n.get(s);if(c)for(let e of c)try{e(o??void 0)}catch{}},watch(e,t,r){let s=i(e,t),c=n.get(s);return c||(c=new Set,n.set(s,c)),c.add(r),a(),()=>{c.delete(r),c.size===0&&n.delete(s),o()}},async write(t,n,r){await e.deviceState.setCapSlice.mutate({deviceId:t,capName:n,slice:r})}}}function w1(e){let{eventBus:t,api:n}=e,r=new Map,i=new Map,a=null,o=(e,t)=>`${e}:${t}`,s=(e,t,n)=>{let a=o(e,t);r.set(a,n);let s=i.get(a);if(s)for(let e of s)try{e(n)}catch{}},c=()=>{a||=t.subscribe({category:S1},e=>{let t=e.data;if(typeof t!=`object`||!t)return;let n=Reflect.get(t,`deviceId`),r=Reflect.get(t,`capName`);typeof n!=`number`||typeof r!=`string`||s(n,r,Reflect.get(t,`slice`))})},l=()=>{a!==null&&(i.size>0||(a(),a=null))};return{read(e,t){return r.get(o(e,t))},async refresh(e,t){s(e,t,await n.deviceState.getCapSlice.query({deviceId:e,capName:t})??void 0)},watch(e,t,n){let r=o(e,t),a=i.get(r);return a||(a=new Set,i.set(r,a)),a.add(n),c(),()=>{a.delete(n),a.size===0&&i.delete(r),l()}},async write(e,t,r){await n.deviceState.setCapSlice.mutate({deviceId:e,capName:t,slice:r})}}}function T1(e,t,n){let r=(e,t)=>`${e}:${t}`;return{read(t,n){return e.get(t)?.get(n)},async refresh(){},watch(e,n,i){let a=r(e,n),o=t.get(a);return o||(o=new Set,t.set(a,o)),o.add(i),()=>{o.delete(i),o.size===0&&t.delete(a)}},async write(e,t,r){if(!n)throw Error(`createMirrorSource: write requires an api reference — pass it as the third argument when constructing the source`);await n.deviceState.setCapSlice.mutate({deviceId:e,capName:t,slice:r})}}}function Z(e,t,n){let r=E1(e)?e:C1(e);return{get value(){return r.read(t,n)},refresh(){return r.refresh(t,n)},subscribe(e){let i=r.watch(t,n,t=>{try{e(t)}catch{}});try{e(r.read(t,n))}catch{}return r.read(t,n)===void 0&&r.refresh(t,n).catch(()=>void 0),i},async set(e){await r.write(t,n,e)},async patch(e){let i={...r.read(t,n),...e};await r.write(t,n,i)}}}function E1(e){return typeof e.read==`function`&&typeof e.watch==`function`}function D1(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function O1(e,t){let n=t.split(`.`),r=e;for(let e of n){if(!D1(r))return;r=r[e]}return r}function k1(e,t,n){let r=t.indexOf(`.`);if(r===-1)return{...e,[t]:n};let i=t.slice(0,r),a=t.slice(r+1),o=e[i],s=D1(o)?o:{};return{...e,[i]:k1(s,a,n)}}var A1=3e4,j1=1e4;async function M1(e,t,n){let r,i=new Promise((e,i)=>{r=setTimeout(()=>i(Error(`${n} timed out after ${String(t)}ms`)),t)});try{return await Promise.race([e,i])}finally{r!==void 0&&clearTimeout(r)}}function N1(e){let t=e.intervalMs??3e4,n=e.failuresToOffline??3,r=e.probeTimeoutMs??1e4,i=e.runImmediately??!0,a=!1,o=!1,s=0,c,l=async()=>{if(!a&&!o&&!(e.isEnabled&&!e.isEnabled())){o=!0;try{let t=await M1(Promise.resolve().then(e.probe),r,`reachability probe`);if(a)return;t?(s=0,e.setOnline(!0)):u(`probe resolved unreachable`)}catch(e){if(a)return;u(e instanceof Error?e.message:`probe threw`)}finally{o=!1}}},u=t=>{s+=1,e.logger?.debug(`reachability probe failed`,{reason:t,consecutiveFailures:s,failuresToOffline:n}),s>=n&&e.setOnline(!1)};return c=setInterval(()=>{l()},t),typeof c==`object`&&c&&`unref`in c&&c.unref(),i&&l(),{stop:()=>{a||(a=!0,c!==void 0&&clearInterval(c),c=void 0)}}}var P1=`lastFetchedAt`,F1=6e4,I1=10*6e4;function L1(e){let{runtimeState:t,cap:n,ownDeviceId:r,refresh:i,staleMs:a,empty:o,logger:s}=e,c=e.refreshMissCooldownMs??6e4,l=e.staleRead??`await-refresh`,u=0,d=null,f=()=>{let e=t.getCapState(n.name)?.[P1];return typeof e==`number`?e:0},p=e=>{u=Date.now()+c,s?.warn(`${n.name}: refresh did not land — serving the last slice and not re-reading the camera for ${String(c)}ms`,{tags:{deviceId:r},meta:{cooldownMs:c,error:e===void 0?null:e instanceof Error?e.message:String(e)}})},m=async e=>{try{await i()}catch(e){throw p(e),e}if(f()>e){u!==0&&(u=0,s?.info(`${n.name}: refresh landed again — resuming normal polling`,{tags:{deviceId:r}}));return}p(void 0)},h=e=>{let t=d;if(t!==null)return t;let n=m(e).catch(()=>void 0).finally(()=>{d=null});return d=n,n},g=async()=>{let e=t.getCapState(n.name),r=f();if(e&&Date.now()-r<=a){u=0;return}if(!(Date.now()<u)){if(l===`serve-and-revalidate`){if(d!==null)return;if(e&&r>0){h(r);return}await h(r);return}await m(r)}},ee=()=>{let e=t.getCapState(n.name);if(!e)return o();let{[P1]:r,...i}=e;return i};return{ensureFresh:g,getStatus:async({deviceId:e})=>{if(e!==r)throw Error(`${n.name}: deviceId mismatch, expected ${r}, got ${e}`);return await g(),ee()}}}function R1(e){return e}function z1(e){if(e===null||Array.isArray(e))return!1;let t=typeof e;return t===`object`||t===`function`}function B1(e){if(!z1(e))return!1;let t=e;return typeof t.query==`function`||typeof t.mutate==`function`||typeof t.subscribe==`function`}function V1(e,t){let n=Reflect.get(e,t);if(z1(n))return n}function H1(e,t,n){let r=V1(e,t);if(!r)throw Error(`tRPC client has no router '${t}'`);let i=r[n];if(!B1(i))throw Error(`tRPC client has no '${t}.${n}'`);return i}function U1(e,t,n,r,i,a){let o=H1(e,t,n);if(r===`mutation`){if(typeof o.mutate!=`function`)throw Error(`tRPC '${t}.${n}' has no mutate()`);return o.mutate(i)}if(r===`subscription`){if(typeof o.subscribe!=`function`)throw Error(`tRPC '${t}.${n}' has no subscribe()`);return o.subscribe(i,a)}if(typeof o.query!=`function`)throw Error(`tRPC '${t}.${n}' has no query()`);return o.query(i)}function W1(e,t,n){let r=n?.stateSource??C1(R1(e));function i(e,n){let r=typeof e==`object`&&e?e:{};return n===void 0?{...r,deviceId:t.deviceId}:{...r,deviceId:t.deviceId,nodeId:n}}function a(t,n,r,i,a){return U1(e,t,n,r,i,a)}function o(e,n,r,o,s,c){return a(n,r,o,i(s,t.entries.find(t=>t.capName===e)?.providerNodeId),c)}function s(e,t,n,r,o){return a(e,t,n,i(r,void 0),o)}function c(e){return t.entries.some(t=>t.capName===e)}let l={setChildHidden:e=>o(`accessories`,`accessories`,`setChildHidden`,`mutation`,e),getStatus:e=>o(`accessories`,`accessories`,`getStatus`,`query`,e)},u={getStatus:e=>o(`air-quality-sensor`,`airQualitySensor`,`getStatus`,`query`,e)},d={arm:e=>o(`alarm-panel`,`alarmPanel`,`arm`,`mutation`,e),disarm:e=>o(`alarm-panel`,`alarmPanel`,`disarm`,`mutation`,e),trigger:e=>o(`alarm-panel`,`alarmPanel`,`trigger`,`mutation`,e),getStatus:e=>o(`alarm-panel`,`alarmPanel`,`getStatus`,`query`,e)},f={getStatus:e=>o(`ambient-light-sensor`,`ambientLightSensor`,`getStatus`,`query`,e)},p={resolveDeviceSettings:e=>o(`audio-analysis`,`audioAnalysis`,`resolveDeviceSettings`,`query`,e),getDeviceSettingsContribution:e=>o(`audio-analysis`,`audioAnalysis`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>o(`audio-analysis`,`audioAnalysis`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>o(`audio-analysis`,`audioAnalysis`,`applyDeviceSettingsPatch`,`mutation`,e)},m={getCurrentSnapshot:e=>o(`audio-metrics`,`audioMetrics`,`getCurrentSnapshot`,`query`,e),getHistory:e=>o(`audio-metrics`,`audioMetrics`,`getHistory`,`query`,e)},h={enable:e=>o(`automation-control`,`automationControl`,`enable`,`mutation`,e),disable:e=>o(`automation-control`,`automationControl`,`disable`,`mutation`,e),trigger:e=>o(`automation-control`,`automationControl`,`trigger`,`mutation`,e),getStatus:e=>o(`automation-control`,`automationControl`,`getStatus`,`query`,e)},g={wakeForStream:e=>o(`battery`,`battery`,`wakeForStream`,`mutation`,e),getStatus:e=>o(`battery`,`battery`,`getStatus`,`query`,e)},ee={getStatus:e=>o(`binary`,`binary`,`getStatus`,`query`,e)},te={setBrightness:e=>o(`brightness`,`brightness`,`setBrightness`,`mutation`,e),getStatus:e=>o(`brightness`,`brightness`,`getStatus`,`query`,e)},_={press:e=>o(`button`,`button`,`press`,`mutation`,e)},ne={getCredentials:e=>o(`camera-credentials`,`cameraCredentials`,`getCredentials`,`query`,e),getStatus:e=>o(`camera-credentials`,`cameraCredentials`,`getStatus`,`query`,e)},re={getLayout:e=>o(`camera-grid-layout`,`cameraGridLayout`,`getLayout`,`query`,e),saveLayout:e=>o(`camera-grid-layout`,`cameraGridLayout`,`saveLayout`,`mutation`,e),getDeviceSettingsContribution:e=>o(`camera-grid-layout`,`cameraGridLayout`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>o(`camera-grid-layout`,`cameraGridLayout`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>o(`camera-grid-layout`,`cameraGridLayout`,`applyDeviceSettingsPatch`,`mutation`,e)},ie={getDeviceSettingsContribution:e=>o(`camera-pipeline-config`,`cameraPipelineConfig`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>o(`camera-pipeline-config`,`cameraPipelineConfig`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>o(`camera-pipeline-config`,`cameraPipelineConfig`,`applyDeviceSettingsPatch`,`mutation`,e)},v={getCameraStreams:e=>o(`camera-streams`,`cameraStreams`,`getCameraStreams`,`query`,e),getBrokerStreams:e=>o(`camera-streams`,`cameraStreams`,`getBrokerStreams`,`query`,e),getRtspEntries:e=>o(`camera-streams`,`cameraStreams`,`getRtspEntries`,`query`,e),getProfileRtspEntries:e=>o(`camera-streams`,`cameraStreams`,`getProfileRtspEntries`,`query`,e),pickStream:e=>o(`camera-streams`,`cameraStreams`,`pickStream`,`query`,e)},ae={getStatus:e=>o(`carbon-monoxide`,`carbonMonoxide`,`getStatus`,`query`,e)},oe={setMode:e=>o(`climate-control`,`climateControl`,`setMode`,`mutation`,e),setFanMode:e=>o(`climate-control`,`climateControl`,`setFanMode`,`mutation`,e),setPreset:e=>o(`climate-control`,`climateControl`,`setPreset`,`mutation`,e),setTarget:e=>o(`climate-control`,`climateControl`,`setTarget`,`mutation`,e),setTargetRange:e=>o(`climate-control`,`climateControl`,`setTargetRange`,`mutation`,e),setTargetHumidity:e=>o(`climate-control`,`climateControl`,`setTargetHumidity`,`mutation`,e),setSwingVertical:e=>o(`climate-control`,`climateControl`,`setSwingVertical`,`mutation`,e),setSwingHorizontal:e=>o(`climate-control`,`climateControl`,`setSwingHorizontal`,`mutation`,e),getStatus:e=>o(`climate-control`,`climateControl`,`getStatus`,`query`,e)},y={setColor:e=>o(`color`,`color`,`setColor`,`mutation`,e),getStatus:e=>o(`color`,`color`,`getStatus`,`query`,e)},se={getStatus:e=>o(`connectivity`,`connectivity`,`getStatus`,`query`,e)},ce={reset:e=>o(`consumables`,`consumables`,`reset`,`mutation`,e),getStatus:e=>o(`consumables`,`consumables`,`getStatus`,`query`,e)},b={getStatus:e=>o(`contact`,`contact`,`getStatus`,`query`,e)},le={setValue:e=>o(`control`,`control`,`setValue`,`mutation`,e),getStatus:e=>o(`control`,`control`,`getStatus`,`query`,e)},ue={open:e=>o(`cover`,`cover`,`open`,`mutation`,e),close:e=>o(`cover`,`cover`,`close`,`mutation`,e),stop:e=>o(`cover`,`cover`,`stop`,`mutation`,e),setPosition:e=>o(`cover`,`cover`,`setPosition`,`mutation`,e),setTiltPosition:e=>o(`cover`,`cover`,`setTiltPosition`,`mutation`,e),getStatus:e=>o(`cover`,`cover`,`getStatus`,`query`,e)},x={getOptions:e=>o(`day-night`,`dayNight`,`getOptions`,`query`,e),setSettings:e=>o(`day-night`,`dayNight`,`setSettings`,`mutation`,e),getStatus:e=>o(`day-night`,`dayNight`,`getStatus`,`query`,e)},de={getDeviceSettingsContribution:e=>o(`detection-pipeline`,`detectionPipeline`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>o(`detection-pipeline`,`detectionPipeline`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>o(`detection-pipeline`,`detectionPipeline`,`applyDeviceSettingsPatch`,`mutation`,e)},fe={getAdminLink:e=>o(`device-admin-link`,`deviceAdminLink`,`getAdminLink`,`query`,e)},pe={listDiscovered:e=>o(`device-discovery`,`deviceDiscovery`,`listDiscovered`,`query`,e),refreshDiscovery:e=>o(`device-discovery`,`deviceDiscovery`,`refreshDiscovery`,`mutation`,e),adoptDevice:e=>o(`device-discovery`,`deviceDiscovery`,`adoptDevice`,`mutation`,e),releaseDevice:e=>o(`device-discovery`,`deviceDiscovery`,`releaseDevice`,`mutation`,e),getStatus:e=>o(`device-discovery`,`deviceDiscovery`,`getStatus`,`query`,e)},me={listSources:e=>o(`device-extension`,`deviceExtension`,`listSources`,`query`,e),listSlots:e=>o(`device-extension`,`deviceExtension`,`listSlots`,`query`,e),listCandidates:e=>o(`device-extension`,`deviceExtension`,`listCandidates`,`query`,e),setSlot:e=>o(`device-extension`,`deviceExtension`,`setSlot`,`mutation`,e)},S={getStreamSources:e=>o(`device-ops`,`deviceOps`,`getStreamSources`,`query`,e),getConfigEntries:e=>o(`device-ops`,`deviceOps`,`getConfigEntries`,`query`,e),setConfig:e=>o(`device-ops`,`deviceOps`,`setConfig`,`mutation`,e),runAction:e=>o(`device-ops`,`deviceOps`,`runAction`,`mutation`,e),removeDevice:e=>o(`device-ops`,`deviceOps`,`removeDevice`,`mutation`,e),getSettingsSchema:e=>o(`device-ops`,`deviceOps`,`getSettingsSchema`,`query`,e),getRawState:e=>o(`device-ops`,`deviceOps`,`getRawState`,`query`,e)},he={getStatus:e=>o(`device-status`,`deviceStatus`,`getStatus`,`query`,e)},ge={start:e=>o(`dishwasher`,`dishwasher`,`start`,`mutation`,e),pause:e=>o(`dishwasher`,`dishwasher`,`pause`,`mutation`,e),resume:e=>o(`dishwasher`,`dishwasher`,`resume`,`mutation`,e),stop:e=>o(`dishwasher`,`dishwasher`,`stop`,`mutation`,e),setProgram:e=>o(`dishwasher`,`dishwasher`,`setProgram`,`mutation`,e),setPower:e=>o(`dishwasher`,`dishwasher`,`setPower`,`mutation`,e),setHalfLoad:e=>o(`dishwasher`,`dishwasher`,`setHalfLoad`,`mutation`,e),setHygienePlus:e=>o(`dishwasher`,`dishwasher`,`setHygienePlus`,`mutation`,e),setExtraDry:e=>o(`dishwasher`,`dishwasher`,`setExtraDry`,`mutation`,e),setIntensiveZone:e=>o(`dishwasher`,`dishwasher`,`setIntensiveZone`,`mutation`,e),setVarioSpeedPlus:e=>o(`dishwasher`,`dishwasher`,`setVarioSpeedPlus`,`mutation`,e),setChildLock:e=>o(`dishwasher`,`dishwasher`,`setChildLock`,`mutation`,e),setOption:e=>o(`dishwasher`,`dishwasher`,`setOption`,`mutation`,e),getOptions:e=>o(`dishwasher`,`dishwasher`,`getOptions`,`query`,e),getStatus:e=>o(`dishwasher`,`dishwasher`,`getStatus`,`query`,e)},C={getStatus:e=>o(`doorbell`,`doorbell`,`getStatus`,`query`,e)},_e={getStatus:e=>o(`enum-sensor`,`enumSensor`,`getStatus`,`query`,e)},ve={getStatus:e=>o(`event-emitter`,`eventEmitter`,`getStatus`,`query`,e)},ye={setPercentage:e=>o(`fan-control`,`fanControl`,`setPercentage`,`mutation`,e),setPreset:e=>o(`fan-control`,`fanControl`,`setPreset`,`mutation`,e),setDirection:e=>o(`fan-control`,`fanControl`,`setDirection`,`mutation`,e),setOscillating:e=>o(`fan-control`,`fanControl`,`setOscillating`,`mutation`,e),getStatus:e=>o(`fan-control`,`fanControl`,`getStatus`,`query`,e)},be={getStatus:e=>o(`feature-probe`,`featureProbe`,`getStatus`,`query`,e)},xe={getStatus:e=>o(`flood`,`flood`,`getStatus`,`query`,e)},Se={getStatus:e=>o(`gas`,`gas`,`getStatus`,`query`,e)},Ce={getStatus:e=>o(`heating-valve`,`heatingValve`,`getStatus`,`query`,e)},we={setOn:e=>o(`humidifier`,`humidifier`,`setOn`,`mutation`,e),setTargetHumidity:e=>o(`humidifier`,`humidifier`,`setTargetHumidity`,`mutation`,e),setMode:e=>o(`humidifier`,`humidifier`,`setMode`,`mutation`,e),getStatus:e=>o(`humidifier`,`humidifier`,`getStatus`,`query`,e)},Te={getStatus:e=>o(`humidity-sensor`,`humiditySensor`,`getStatus`,`query`,e)},Ee={getStatus:e=>o(`image`,`image`,`getStatus`,`query`,e)},De={getOptions:e=>o(`image-settings`,`imageSettings`,`getOptions`,`query`,e),setSettings:e=>o(`image-settings`,`imageSettings`,`setSettings`,`mutation`,e),getStatus:e=>o(`image-settings`,`imageSettings`,`getStatus`,`query`,e)},Oe={startSession:e=>o(`intercom`,`intercom`,`startSession`,`mutation`,e),handleAnswer:e=>o(`intercom`,`intercom`,`handleAnswer`,`mutation`,e),stopSession:e=>o(`intercom`,`intercom`,`stopSession`,`mutation`,e),startTalkSession:e=>o(`intercom`,`intercom`,`startTalkSession`,`mutation`,e),pushTalkAudio:e=>o(`intercom`,`intercom`,`pushTalkAudio`,`mutation`,e),endTalkSession:e=>o(`intercom`,`intercom`,`endTalkSession`,`mutation`,e),getStatus:e=>o(`intercom`,`intercom`,`getStatus`,`query`,e)},ke={startMowing:e=>o(`lawn-mower-control`,`lawnMowerControl`,`startMowing`,`mutation`,e),pause:e=>o(`lawn-mower-control`,`lawnMowerControl`,`pause`,`mutation`,e),dock:e=>o(`lawn-mower-control`,`lawnMowerControl`,`dock`,`mutation`,e),getStatus:e=>o(`lawn-mower-control`,`lawnMowerControl`,`getStatus`,`query`,e)},Ae={lock:e=>o(`lock-control`,`lockControl`,`lock`,`mutation`,e),unlock:e=>o(`lock-control`,`lockControl`,`unlock`,`mutation`,e),open:e=>o(`lock-control`,`lockControl`,`open`,`mutation`,e),getStatus:e=>o(`lock-control`,`lockControl`,`getStatus`,`query`,e)},je={play:e=>o(`media-player`,`mediaPlayer`,`play`,`mutation`,e),pause:e=>o(`media-player`,`mediaPlayer`,`pause`,`mutation`,e),stop:e=>o(`media-player`,`mediaPlayer`,`stop`,`mutation`,e),next:e=>o(`media-player`,`mediaPlayer`,`next`,`mutation`,e),previous:e=>o(`media-player`,`mediaPlayer`,`previous`,`mutation`,e),seek:e=>o(`media-player`,`mediaPlayer`,`seek`,`mutation`,e),setVolume:e=>o(`media-player`,`mediaPlayer`,`setVolume`,`mutation`,e),setMute:e=>o(`media-player`,`mediaPlayer`,`setMute`,`mutation`,e),setShuffle:e=>o(`media-player`,`mediaPlayer`,`setShuffle`,`mutation`,e),setRepeat:e=>o(`media-player`,`mediaPlayer`,`setRepeat`,`mutation`,e),selectSource:e=>o(`media-player`,`mediaPlayer`,`selectSource`,`mutation`,e),playMedia:e=>o(`media-player`,`mediaPlayer`,`playMedia`,`mutation`,e),getStatus:e=>o(`media-player`,`mediaPlayer`,`getStatus`,`query`,e)},Me={isDetected:e=>o(`motion`,`motion`,`isDetected`,`query`,e),getStatus:e=>o(`motion`,`motion`,`getStatus`,`query`,e)},Ne={analyze:e=>o(`motion-detection`,`motionDetection`,`analyze`,`mutation`,e),removeCamera:e=>o(`motion-detection`,`motionDetection`,`removeCamera`,`mutation`,e),reset:e=>o(`motion-detection`,`motionDetection`,`reset`,`mutation`,e),getDeviceSettingsContribution:e=>o(`motion-detection`,`motionDetection`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>o(`motion-detection`,`motionDetection`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>o(`motion-detection`,`motionDetection`,`applyDeviceSettingsPatch`,`mutation`,e)},Pe={setMotionTrigger:e=>o(`motion-trigger`,`motionTrigger`,`setMotionTrigger`,`mutation`,e),getStatus:e=>o(`motion-trigger`,`motionTrigger`,`getStatus`,`query`,e)},Fe={getOptions:e=>o(`motion-zones`,`motionZones`,`getOptions`,`query`,e),setZone:e=>o(`motion-zones`,`motionZones`,`setZone`,`mutation`,e),getStatus:e=>o(`motion-zones`,`motionZones`,`getStatus`,`query`,e)},Ie={getOptions:e=>o(`native-object-detection`,`nativeObjectDetection`,`getOptions`,`query`,e),setSettings:e=>o(`native-object-detection`,`nativeObjectDetection`,`setSettings`,`mutation`,e),setEnabled:e=>o(`native-object-detection`,`nativeObjectDetection`,`setEnabled`,`mutation`,e),getStatus:e=>o(`native-object-detection`,`nativeObjectDetection`,`getStatus`,`query`,e)},w={move:e=>o(`navigation`,`navigation`,`move`,`mutation`,e),stop:e=>o(`navigation`,`navigation`,`stop`,`mutation`,e),goToPoint:e=>o(`navigation`,`navigation`,`goToPoint`,`mutation`,e),listActions:e=>o(`navigation`,`navigation`,`listActions`,`query`,e),runAction:e=>o(`navigation`,`navigation`,`runAction`,`mutation`,e),playSound:e=>o(`navigation`,`navigation`,`playSound`,`mutation`,e),setLightOn:e=>o(`navigation`,`navigation`,`setLightOn`,`mutation`,e),setLightMode:e=>o(`navigation`,`navigation`,`setLightMode`,`mutation`,e),setLightLevel:e=>o(`navigation`,`navigation`,`setLightLevel`,`mutation`,e),getFeatures:e=>o(`navigation`,`navigation`,`getFeatures`,`query`,e),getStatus:e=>o(`navigation`,`navigation`,`getStatus`,`query`,e)},Le={getStatus:e=>o(`network-link`,`networkLink`,`getStatus`,`query`,e)},Re={send:e=>o(`notifier`,`notifier`,`send`,`mutation`,e),cancel:e=>o(`notifier`,`notifier`,`cancel`,`mutation`,e),getStatus:e=>o(`notifier`,`notifier`,`getStatus`,`query`,e)},ze={getStatus:e=>o(`numeric-sensor`,`numericSensor`,`getStatus`,`query`,e)},Be={setOverlay:e=>o(`osd`,`osd`,`setOverlay`,`mutation`,e),getStatus:e=>o(`osd`,`osd`,`getStatus`,`query`,e)},Ve={feed:e=>o(`pet-feeder`,`petFeeder`,`feed`,`mutation`,e),cancelFeed:e=>o(`pet-feeder`,`petFeeder`,`cancelFeed`,`mutation`,e),resetDesiccant:e=>o(`pet-feeder`,`petFeeder`,`resetDesiccant`,`mutation`,e),markFoodReplenished:e=>o(`pet-feeder`,`petFeeder`,`markFoodReplenished`,`mutation`,e),callPet:e=>o(`pet-feeder`,`petFeeder`,`callPet`,`mutation`,e),playSound:e=>o(`pet-feeder`,`petFeeder`,`playSound`,`mutation`,e),setChildLock:e=>o(`pet-feeder`,`petFeeder`,`setChildLock`,`mutation`,e),setIndicatorLight:e=>o(`pet-feeder`,`petFeeder`,`setIndicatorLight`,`mutation`,e),setFeedSound:e=>o(`pet-feeder`,`petFeeder`,`setFeedSound`,`mutation`,e),setVolume:e=>o(`pet-feeder`,`petFeeder`,`setVolume`,`mutation`,e),getStatus:e=>o(`pet-feeder`,`petFeeder`,`getStatus`,`query`,e)},He={getActiveTracks:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getActiveTracks`,`query`,e),getTrack:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getTrack`,`query`,e),listTracks:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listTracks`,`query`,e),listRecentTracks:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRecentTracks`,`query`,e),clearTracks:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`clearTracks`,`mutation`,e),getMotionEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getMotionEvents`,`query`,e),getObjectEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getObjectEvents`,`query`,e),getAudioEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getAudioEvents`,`query`,e),listEventKinds:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listEventKinds`,`query`,e),listEventKindsBatch:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listEventKindsBatch`,`query`,e),getSensorEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getSensorEvents`,`query`,e),getKeyEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getKeyEvents`,`query`,e),getKeyEventsBatch:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getKeyEventsBatch`,`query`,e),readLongTermSeries:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`readLongTermSeries`,`query`,e),getEventDensity:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getEventDensity`,`query`,e),getEventDensityBatch:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getEventDensityBatch`,`query`,e),pruneEventsBefore:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`pruneEventsBefore`,`mutation`,e),pruneTracksBefore:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`pruneTracksBefore`,`mutation`,e),wipeAllAnalytics:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`wipeAllAnalytics`,`mutation`,e),reconcileFromDisk:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`reconcileFromDisk`,`mutation`,e),deleteTracks:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`deleteTracks`,`mutation`,e),setTrackFlags:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`setTrackFlags`,`mutation`,e),listArchivedDebugNotes:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listArchivedDebugNotes`,`query`,e),setTrackRelation:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`setTrackRelation`,`mutation`,e),clearTrackRelation:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`clearTrackRelation`,`mutation`,e),setTrackPurity:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`setTrackPurity`,`mutation`,e),listTrackRelations:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listTrackRelations`,`query`,e),listBirthDecisions:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listBirthDecisions`,`query`,e),getEventStoreFootprint:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getEventStoreFootprint`,`query`,e),getEventMediaFootprintByKind:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getEventMediaFootprintByKind`,`query`,e),pruneEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`pruneEvents`,`mutation`,e),deleteDeviceEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`deleteDeviceEvents`,`mutation`,e),pauseForStorageMigration:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`pauseForStorageMigration`,`mutation`,e),resumeForStorageMigration:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`resumeForStorageMigration`,`mutation`,e),refreshStorageLocationsForMigration:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`refreshStorageLocationsForMigration`,`mutation`,e),startStorageMigrationMove:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`startStorageMigrationMove`,`mutation`,e),getStorageMigrationMoveStatus:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getStorageMigrationMoveStatus`,`query`,e),cancelStorageMigrationMove:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`cancelStorageMigrationMove`,`mutation`,e),relocateMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`relocateMedia`,`mutation`,e),countUnstampedEventMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`countUnstampedEventMedia`,`query`,e),countRelocatableMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`countRelocatableMedia`,`query`,e),listRelocateMediaJobs:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRelocateMediaJobs`,`query`,e),cancelRelocateMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`cancelRelocateMedia`,`mutation`,e),listOpsLog:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listOpsLog`,`query`,e),reclaimDebugMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`reclaimDebugMedia`,`mutation`,e),getMediaReclaimStatus:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getMediaReclaimStatus`,`query`,e),getTrainingExportSummary:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getTrainingExportSummary`,`query`,e),getTrainingExportUrl:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getTrainingExportUrl`,`query`,e),listRetrainStaging:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRetrainStaging`,`query`,e),listRetrainCorpusPage:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRetrainCorpusPage`,`query`,e),getRetrainCorpusKpi:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getRetrainCorpusKpi`,`query`,e),listRetrainFrames:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRetrainFrames`,`query`,e),selectRetrainFrames:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`selectRetrainFrames`,`mutation`,e),deselectRetrainFrame:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`deselectRetrainFrame`,`mutation`,e),getRetrainFrameImage:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getRetrainFrameImage`,`query`,e),proposeRetrainAnnotations:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`proposeRetrainAnnotations`,`mutation`,e),listRetrainAnnotations:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRetrainAnnotations`,`query`,e),saveRetrainAnnotations:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`saveRetrainAnnotations`,`mutation`,e),backfillRetrainOrigins:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`backfillRetrainOrigins`,`mutation`,e),completeRetrainTrack:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`completeRetrainTrack`,`mutation`,e),restageRetrainTrack:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`restageRetrainTrack`,`mutation`,e),getRetrainExportUrl:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getRetrainExportUrl`,`query`,e),setRetrainFrameComplete:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`setRetrainFrameComplete`,`mutation`,e),writeRetrainArchive:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`writeRetrainArchive`,`mutation`,e),offerRetrainArchive:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`offerRetrainArchive`,`mutation`,e),listRetrainAssistProfiles:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRetrainAssistProfiles`,`query`,e),proposeRetrainAnnotationsWithLlm:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`proposeRetrainAnnotationsWithLlm`,`mutation`,e),createRetrainCollection:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`createRetrainCollection`,`mutation`,e),listRetrainCollections:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRetrainCollections`,`query`,e),resolveRetrainTrainingCorpus:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`resolveRetrainTrainingCorpus`,`query`,e),renameRetrainCollection:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`renameRetrainCollection`,`mutation`,e),deleteRetrainCollection:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`deleteRetrainCollection`,`mutation`,e),addRetrainFrameFromRecording:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`addRetrainFrameFromRecording`,`mutation`,e),addRetrainFramesToCollection:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`addRetrainFramesToCollection`,`mutation`,e),removeRetrainFrameFromCollection:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`removeRetrainFrameFromCollection`,`mutation`,e),listRetrainCollectionFrames:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listRetrainCollectionFrames`,`query`,e),getEventMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getEventMedia`,`query`,e),getTrackMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getTrackMedia`,`query`,e),listTrackMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listTrackMedia`,`query`,e),listEventMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`listEventMedia`,`query`,e),ownersWithMedia:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`ownersWithMedia`,`query`,e),searchObjectEvents:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`searchObjectEvents`,`query`,e),wipeObjectEmbeddings:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`wipeObjectEmbeddings`,`mutation`,e),rebuildObjectEmbeddings:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`rebuildObjectEmbeddings`,`mutation`,e),getObjectEmbeddingRebuildStatus:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getObjectEmbeddingRebuildStatus`,`query`,e),getDeviceSettingsContribution:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>o(`pipeline-analytics`,`pipelineAnalytics`,`applyDeviceSettingsPatch`,`mutation`,e)},Ue={getStatus:e=>o(`power-meter`,`powerMeter`,`getStatus`,`query`,e)},We={getStatus:e=>o(`presence`,`presence`,`getStatus`,`query`,e)},Ge={getStatus:e=>o(`pressure-sensor`,`pressureSensor`,`getStatus`,`query`,e)},Ke={getOptions:e=>o(`privacy-mask`,`privacyMask`,`getOptions`,`query`,e),setMask:e=>o(`privacy-mask`,`privacyMask`,`setMask`,`mutation`,e),setAudioEnabled:e=>o(`privacy-mask`,`privacyMask`,`setAudioEnabled`,`mutation`,e),getStatus:e=>o(`privacy-mask`,`privacyMask`,`getStatus`,`query`,e)},qe={move:e=>o(`ptz`,`ptz`,`move`,`mutation`,e),continuousMove:e=>o(`ptz`,`ptz`,`continuousMove`,`mutation`,e),stop:e=>o(`ptz`,`ptz`,`stop`,`mutation`,e),getPresets:e=>o(`ptz`,`ptz`,`getPresets`,`query`,e),goToPreset:e=>o(`ptz`,`ptz`,`goToPreset`,`mutation`,e),savePreset:e=>o(`ptz`,`ptz`,`savePreset`,`mutation`,e),deletePreset:e=>o(`ptz`,`ptz`,`deletePreset`,`mutation`,e),getOptions:e=>o(`ptz`,`ptz`,`getOptions`,`query`,e),goHome:e=>o(`ptz`,`ptz`,`goHome`,`mutation`,e),getHomePreset:e=>o(`ptz`,`ptz`,`getHomePreset`,`query`,e),setHomePreset:e=>o(`ptz`,`ptz`,`setHomePreset`,`mutation`,e),captureHomeHere:e=>o(`ptz`,`ptz`,`captureHomeHere`,`mutation`,e),getHomeReturn:e=>o(`ptz`,`ptz`,`getHomeReturn`,`query`,e),setHomeReturn:e=>o(`ptz`,`ptz`,`setHomeReturn`,`mutation`,e),getPosition:e=>o(`ptz`,`ptz`,`getPosition`,`query`,e),setAutofocus:e=>o(`ptz`,`ptz`,`setAutofocus`,`mutation`,e),getStatus:e=>o(`ptz`,`ptz`,`getStatus`,`query`,e)},Je={getStatus:e=>o(`ptz-autotrack`,`ptzAutotrack`,`getStatus`,`query`,e),setEnabled:e=>o(`ptz-autotrack`,`ptzAutotrack`,`setEnabled`,`mutation`,e),getSettings:e=>o(`ptz-autotrack`,`ptzAutotrack`,`getSettings`,`query`,e),setSettings:e=>o(`ptz-autotrack`,`ptzAutotrack`,`setSettings`,`mutation`,e)},Ye={reboot:e=>o(`reboot`,`reboot`,`reboot`,`mutation`,e)},Xe={listSources:e=>o(`recording`,`recording`,`listSources`,`query`,e),getAvailability:e=>o(`recording`,`recording`,`getAvailability`,`query`,e),getDaysWithRecordings:e=>o(`recording`,`recording`,`getDaysWithRecordings`,`query`,e),getPlayback:e=>o(`recording`,`recording`,`getPlayback`,`query`,e),getPlaybackOptions:e=>o(`recording`,`recording`,`getPlaybackOptions`,`query`,e)},Ze={getOptions:e=>o(`recording-onboard`,`recordingOnboard`,`getOptions`,`query`,e),setSettings:e=>o(`recording-onboard`,`recordingOnboard`,`setSettings`,`mutation`,e),getStatus:e=>o(`recording-onboard`,`recordingOnboard`,`getStatus`,`query`,e)},Qe={getStatus:e=>o(`recording-signal`,`recordingSignal`,`getStatus`,`query`,e)},$e={listScenes:e=>o(`scene-monitor`,`sceneMonitor`,`listScenes`,`query`,e),listScenesBatch:e=>o(`scene-monitor`,`sceneMonitor`,`listScenesBatch`,`query`,e),createScene:e=>o(`scene-monitor`,`sceneMonitor`,`createScene`,`mutation`,e),updateScene:e=>o(`scene-monitor`,`sceneMonitor`,`updateScene`,`mutation`,e),deleteScene:e=>o(`scene-monitor`,`sceneMonitor`,`deleteScene`,`mutation`,e),captureReference:e=>o(`scene-monitor`,`sceneMonitor`,`captureReference`,`mutation`,e),deleteReference:e=>o(`scene-monitor`,`sceneMonitor`,`deleteReference`,`mutation`,e),recheckNow:e=>o(`scene-monitor`,`sceneMonitor`,`recheckNow`,`mutation`,e),resetScene:e=>o(`scene-monitor`,`sceneMonitor`,`resetScene`,`mutation`,e),getStatus:e=>o(`scene-monitor`,`sceneMonitor`,`getStatus`,`query`,e)},et={run:e=>o(`script-runner`,`scriptRunner`,`run`,`mutation`,e),stop:e=>o(`script-runner`,`scriptRunner`,`stop`,`mutation`,e),getStatus:e=>o(`script-runner`,`scriptRunner`,`getStatus`,`query`,e)},tt={getStatus:e=>o(`smoke`,`smoke`,`getStatus`,`query`,e)},nt={getSnapshot:e=>o(`snapshot`,`snapshot`,`getSnapshot`,`query`,e),invalidateCache:e=>o(`snapshot`,`snapshot`,`invalidateCache`,`mutation`,e),getSnapshotOverview:e=>o(`snapshot`,`snapshot`,`getSnapshotOverview`,`query`,e),getDebugState:e=>o(`snapshot`,`snapshot`,`getDebugState`,`query`,e),getSnapshotLinks:e=>o(`snapshot`,`snapshot`,`getSnapshotLinks`,`query`,e),getStatus:e=>o(`snapshot`,`snapshot`,`getStatus`,`query`,e),getDeviceSettingsContribution:e=>o(`snapshot`,`snapshot`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>o(`snapshot`,`snapshot`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>o(`snapshot`,`snapshot`,`applyDeviceSettingsPatch`,`mutation`,e)},T={getCatalog:e=>o(`stream-catalog`,`streamCatalog`,`getCatalog`,`query`,e)},rt={getOptions:e=>o(`stream-params`,`streamParams`,`getOptions`,`query`,e),setProfile:e=>o(`stream-params`,`streamParams`,`setProfile`,`mutation`,e),getConfigSchema:e=>o(`stream-params`,`streamParams`,`getConfigSchema`,`query`,e),getStatus:e=>o(`stream-params`,`streamParams`,`getStatus`,`query`,e)},it={listSignals:e=>o(`stream-signals`,`streamSignals`,`listSignals`,`query`,e)},at={setState:e=>o(`switch`,`switch`,`setState`,`mutation`,e),getStatus:e=>o(`switch`,`switch`,`getStatus`,`query`,e)},ot={getStatus:e=>o(`tamper`,`tamper`,`getStatus`,`query`,e)},st={getStatus:e=>o(`temperature-sensor`,`temperatureSensor`,`getStatus`,`query`,e)},ct={installUpdate:e=>o(`update`,`update`,`installUpdate`,`mutation`,e),getStatus:e=>o(`update`,`update`,`getStatus`,`query`,e)},lt={start:e=>o(`vacuum-control`,`vacuumControl`,`start`,`mutation`,e),pause:e=>o(`vacuum-control`,`vacuumControl`,`pause`,`mutation`,e),stop:e=>o(`vacuum-control`,`vacuumControl`,`stop`,`mutation`,e),returnToBase:e=>o(`vacuum-control`,`vacuumControl`,`returnToBase`,`mutation`,e),locate:e=>o(`vacuum-control`,`vacuumControl`,`locate`,`mutation`,e),setFanSpeed:e=>o(`vacuum-control`,`vacuumControl`,`setFanSpeed`,`mutation`,e),getStatus:e=>o(`vacuum-control`,`vacuumControl`,`getStatus`,`query`,e)},ut={open:e=>o(`valve`,`valve`,`open`,`mutation`,e),close:e=>o(`valve`,`valve`,`close`,`mutation`,e),stop:e=>o(`valve`,`valve`,`stop`,`mutation`,e),setPosition:e=>o(`valve`,`valve`,`setPosition`,`mutation`,e),getStatus:e=>o(`valve`,`valve`,`getStatus`,`query`,e)},dt={getStatus:e=>o(`vibration`,`vibration`,`getStatus`,`query`,e)},ft={listClips:e=>o(`videoclips`,`videoclips`,`listClips`,`query`,e),listSources:e=>o(`videoclips`,`videoclips`,`listSources`,`query`,e),getClipPlayback:e=>o(`videoclips`,`videoclips`,`getClipPlayback`,`query`,e),readClipBytes:e=>o(`videoclips`,`videoclips`,`readClipBytes`,`query`,e),offerClipBytes:e=>o(`videoclips`,`videoclips`,`offerClipBytes`,`query`,e),dialClipStream:e=>o(`videoclips`,`videoclips`,`dialClipStream`,`query`,e),getPlaybackOptions:e=>o(`videoclips`,`videoclips`,`getPlaybackOptions`,`query`,e)},pt={setTargetTemp:e=>o(`water-heater`,`waterHeater`,`setTargetTemp`,`mutation`,e),setOperationMode:e=>o(`water-heater`,`waterHeater`,`setOperationMode`,`mutation`,e),setAway:e=>o(`water-heater`,`waterHeater`,`setAway`,`mutation`,e),getStatus:e=>o(`water-heater`,`waterHeater`,`getStatus`,`query`,e)},mt={getStatus:e=>o(`weather`,`weather`,`getStatus`,`query`,e)},ht={listStreams:e=>o(`webrtc-session`,`webrtcSession`,`listStreams`,`query`,e),createSession:e=>o(`webrtc-session`,`webrtcSession`,`createSession`,`mutation`,e),handleOffer:e=>o(`webrtc-session`,`webrtcSession`,`handleOffer`,`mutation`,e),handleAnswer:e=>o(`webrtc-session`,`webrtcSession`,`handleAnswer`,`mutation`,e),addIceCandidate:e=>o(`webrtc-session`,`webrtcSession`,`addIceCandidate`,`mutation`,e),getIceCandidates:e=>o(`webrtc-session`,`webrtcSession`,`getIceCandidates`,`query`,e),closeSession:e=>o(`webrtc-session`,`webrtcSession`,`closeSession`,`mutation`,e),hasAdaptiveBitrate:e=>o(`webrtc-session`,`webrtcSession`,`hasAdaptiveBitrate`,`query`,e),getSessionState:e=>o(`webrtc-session`,`webrtcSession`,`getSessionState`,`query`,e),applyDownlinkProbe:e=>o(`webrtc-session`,`webrtcSession`,`applyDownlinkProbe`,`mutation`,e),getSessionDebug:e=>o(`webrtc-session`,`webrtcSession`,`getSessionDebug`,`query`,e)},gt={getCurrentSnapshot:e=>o(`zone-analytics`,`zoneAnalytics`,`getCurrentSnapshot`,`query`,e),getCurrentSnapshotBatch:e=>o(`zone-analytics`,`zoneAnalytics`,`getCurrentSnapshotBatch`,`query`,e),getZoneHistory:e=>o(`zone-analytics`,`zoneAnalytics`,`getZoneHistory`,`query`,e),getCameraHistory:e=>o(`zone-analytics`,`zoneAnalytics`,`getCameraHistory`,`query`,e),getUnzonedHistory:e=>o(`zone-analytics`,`zoneAnalytics`,`getUnzonedHistory`,`query`,e)},_t={listRules:e=>o(`zone-rules`,`zoneRules`,`listRules`,`query`,e),setRules:e=>o(`zone-rules`,`zoneRules`,`setRules`,`mutation`,e)},vt={listZones:e=>o(`zones`,`zones`,`listZones`,`query`,e),addZone:e=>o(`zones`,`zones`,`addZone`,`mutation`,e),removeZone:e=>o(`zones`,`zones`,`removeZone`,`mutation`,e),updateZone:e=>o(`zones`,`zones`,`updateZone`,`mutation`,e)},yt={getDeviceSettings:e=>s(`addonSettings`,`getDeviceSettings`,`query`,e),updateDeviceSettings:e=>s(`addonSettings`,`updateDeviceSettings`,`mutation`,e)},bt={detachDevice:e=>s(`audioAnalyzer`,`detachDevice`,`mutation`,e)},xt={getStatus:e=>s(`deviceAdoption`,`getStatus`,`query`,e)},St={getDeviceSettingsContribution:e=>s(`deviceExport`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>s(`deviceExport`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>s(`deviceExport`,`applyDeviceSettingsPatch`,`mutation`,e)},Ct={listSeries:e=>s(`deviceHistory`,`listSeries`,`query`,e),query:e=>s(`deviceHistory`,`query`,`query`,e),getDeviceEnabled:e=>s(`deviceHistory`,`getDeviceEnabled`,`query`,e),setDeviceEnabled:e=>s(`deviceHistory`,`setDeviceEnabled`,`mutation`,e)},wt={loadConfig:e=>s(`deviceManager`,`loadConfig`,`query`,e),loadRuntimeState:e=>s(`deviceManager`,`loadRuntimeState`,`query`,e),loadMeta:e=>s(`deviceManager`,`loadMeta`,`query`,e),setName:e=>s(`deviceManager`,`setName`,`mutation`,e),setLocation:e=>s(`deviceManager`,`setLocation`,`mutation`,e),setType:e=>s(`deviceManager`,`setType`,`mutation`,e),setIntegrationId:e=>s(`deviceManager`,`setIntegrationId`,`mutation`,e),setLinkDeviceId:e=>s(`deviceManager`,`setLinkDeviceId`,`mutation`,e),setPrimaryChildEntityId:e=>s(`deviceManager`,`setPrimaryChildEntityId`,`mutation`,e),setChildLayout:e=>s(`deviceManager`,`setChildLayout`,`mutation`,e),setDisplay:e=>s(`deviceManager`,`setDisplay`,`mutation`,e),getWireableFields:e=>s(`deviceManager`,`getWireableFields`,`query`,e),setRole:e=>s(`deviceManager`,`setRole`,`mutation`,e),applyInitialMeta:e=>s(`deviceManager`,`applyInitialMeta`,`mutation`,e),setMetadata:e=>s(`deviceManager`,`setMetadata`,`mutation`,e),setDisabled:e=>s(`deviceManager`,`setDisabled`,`mutation`,e),getDevice:e=>s(`deviceManager`,`getDevice`,`query`,e),getLinkedDevices:e=>s(`deviceManager`,`getLinkedDevices`,`query`,e),getStreamSources:e=>s(`deviceManager`,`getStreamSources`,`query`,e),getConfigSchema:e=>s(`deviceManager`,`getConfigSchema`,`query`,e),getSettingsSchema:e=>s(`deviceManager`,`getSettingsSchema`,`query`,e),updateConfig:e=>s(`deviceManager`,`updateConfig`,`mutation`,e),enable:e=>s(`deviceManager`,`enable`,`mutation`,e),disable:e=>s(`deviceManager`,`disable`,`mutation`,e),remove:e=>s(`deviceManager`,`remove`,`mutation`,e),getStreamProfileMap:e=>s(`deviceManager`,`getStreamProfileMap`,`query`,e),setStreamProfileMap:e=>s(`deviceManager`,`setStreamProfileMap`,`mutation`,e),probeStreams:e=>s(`deviceManager`,`probeStreams`,`mutation`,e),getBindings:e=>s(`deviceManager`,`getBindings`,`query`,e),setWrapperActive:e=>s(`deviceManager`,`setWrapperActive`,`mutation`,e),getWrapperActivation:e=>s(`deviceManager`,`getWrapperActivation`,`query`,e),getDeviceSettingsAggregate:e=>s(`deviceManager`,`getDeviceSettingsAggregate`,`query`,e),getDeviceLiveInfoAggregate:e=>s(`deviceManager`,`getDeviceLiveInfoAggregate`,`query`,e),getDeviceAggregate:e=>s(`deviceManager`,`getDeviceAggregate`,`query`,e),runDeviceAction:e=>s(`deviceManager`,`runDeviceAction`,`mutation`,e),updateDeviceField:e=>s(`deviceManager`,`updateDeviceField`,`mutation`,e),updateDeviceFieldsBatch:e=>s(`deviceManager`,`updateDeviceFieldsBatch`,`mutation`,e),testField:e=>s(`deviceManager`,`testField`,`mutation`,e),getDeviceStatusAggregate:e=>s(`deviceManager`,`getDeviceStatusAggregate`,`query`,e)},Tt={getSnapshot:e=>s(`deviceState`,`getSnapshot`,`query`,e),getCapSlice:e=>s(`deviceState`,`getCapSlice`,`query`,e),setCapSlice:e=>s(`deviceState`,`setCapSlice`,`mutation`,e),claimFields:e=>s(`deviceState`,`claimFields`,`mutation`,e),patchOwnedFields:e=>s(`deviceState`,`patchOwnedFields`,`mutation`,e),releaseClaim:e=>s(`deviceState`,`releaseClaim`,`mutation`,e),getNativeCapSlice:e=>s(`deviceState`,`getNativeCapSlice`,`query`,e)},Et={listRecentFaces:e=>s(`faceGallery`,`listRecentFaces`,`query`,e),getFaceByTrack:e=>s(`faceGallery`,`getFaceByTrack`,`query`,e)},Dt={getDeviceStats:e=>s(`networkQuality`,`getDeviceStats`,`query`,e),reportClientStats:e=>s(`networkQuality`,`reportClientStats`,`mutation`,e)},Ot={setDeviceMuted:e=>s(`notificationRules`,`setDeviceMuted`,`mutation`,e)},kt={getDeviceOsd:e=>s(`osdManager`,`getDeviceOsd`,`query`,e),getSourceCatalog:e=>s(`osdManager`,`getSourceCatalog`,`query`,e),setSlotBinding:e=>s(`osdManager`,`setSlotBinding`,`mutation`,e),clearSlotBinding:e=>s(`osdManager`,`clearSlotBinding`,`mutation`,e),setSlotCameraEnabled:e=>s(`osdManager`,`setSlotCameraEnabled`,`mutation`,e),previewSlot:e=>s(`osdManager`,`previewSlot`,`mutation`,e),renderDevice:e=>s(`osdManager`,`renderDevice`,`mutation`,e)},At={runPipeline:e=>s(`pipelineExecutor`,`runPipeline`,`mutation`,e),runPipelineBatch:e=>s(`pipelineExecutor`,`runPipelineBatch`,`mutation`,e)},jt={assignPipeline:e=>s(`pipelineOrchestrator`,`assignPipeline`,`mutation`,e),unassignPipeline:e=>s(`pipelineOrchestrator`,`unassignPipeline`,`mutation`,e),setPipelineDevicePin:e=>s(`pipelineOrchestrator`,`setPipelineDevicePin`,`mutation`,e),getPipelineDevicePin:e=>s(`pipelineOrchestrator`,`getPipelineDevicePin`,`query`,e),getPipelineAssignment:e=>s(`pipelineOrchestrator`,`getPipelineAssignment`,`query`,e),getCameraMetrics:e=>s(`pipelineOrchestrator`,`getCameraMetrics`,`query`,e),assignAudio:e=>s(`pipelineOrchestrator`,`assignAudio`,`mutation`,e),unassignAudio:e=>s(`pipelineOrchestrator`,`unassignAudio`,`mutation`,e),getAudioAssignment:e=>s(`pipelineOrchestrator`,`getAudioAssignment`,`query`,e),getCameraSettings:e=>s(`pipelineOrchestrator`,`getCameraSettings`,`query`,e),setCameraStepToggle:e=>s(`pipelineOrchestrator`,`setCameraStepToggle`,`mutation`,e),getCameraDetectionSource:e=>s(`pipelineOrchestrator`,`getCameraDetectionSource`,`query`,e),setCameraDetectionSource:e=>s(`pipelineOrchestrator`,`setCameraDetectionSource`,`mutation`,e),getCameraStepOverrides:e=>s(`pipelineOrchestrator`,`getCameraStepOverrides`,`query`,e),setCameraStepOverride:e=>s(`pipelineOrchestrator`,`setCameraStepOverride`,`mutation`,e),setCameraStepSettings:e=>s(`pipelineOrchestrator`,`setCameraStepSettings`,`mutation`,e),setCameraPipelineForAgent:e=>s(`pipelineOrchestrator`,`setCameraPipelineForAgent`,`mutation`,e),resolvePipeline:e=>s(`pipelineOrchestrator`,`resolvePipeline`,`query`,e),getCameraSwitches:e=>s(`pipelineOrchestrator`,`getCameraSwitches`,`query`,e),setCameraSwitch:e=>s(`pipelineOrchestrator`,`setCameraSwitch`,`mutation`,e),getCameraStatus:e=>s(`pipelineOrchestrator`,`getCameraStatus`,`query`,e),getDeviceSettingsContribution:e=>s(`pipelineOrchestrator`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>s(`pipelineOrchestrator`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>s(`pipelineOrchestrator`,`applyDeviceSettingsPatch`,`mutation`,e)},Mt={detachCamera:e=>s(`pipelineRunner`,`detachCamera`,`mutation`,e),getCameraMetrics:e=>s(`pipelineRunner`,`getCameraMetrics`,`query`,e),requestOccupancyBurst:e=>s(`pipelineRunner`,`requestOccupancyBurst`,`mutation`,e),runDetailSubtree:e=>s(`pipelineRunner`,`runDetailSubtree`,`mutation`,e),parkTrackFrame:e=>s(`pipelineRunner`,`parkTrackFrame`,`mutation`,e),getParkedTrackFrame:e=>s(`pipelineRunner`,`getParkedTrackFrame`,`query`,e),releaseParkedTrackFrames:e=>s(`pipelineRunner`,`releaseParkedTrackFrames`,`mutation`,e)},Nt={listPlates:e=>s(`plateGallery`,`listPlates`,`query`,e),getPlateByTrack:e=>s(`plateGallery`,`getPlateByTrack`,`query`,e)},Pt={getDeviceConfig:e=>s(`recordingArchive`,`getDeviceConfig`,`query`,e),locateSegment:e=>s(`recordingArchive`,`locateSegment`,`query`,e),readSegmentBytes:e=>s(`recordingArchive`,`readSegmentBytes`,`query`,e),readGopBytes:e=>s(`recordingArchive`,`readGopBytes`,`query`,e),readWindowBytes:e=>s(`recordingArchive`,`readWindowBytes`,`query`,e),setDeviceConfig:e=>s(`recordingArchive`,`setDeviceConfig`,`mutation`,e),rescanStorage:e=>s(`recordingArchive`,`rescanStorage`,`mutation`,e),pruneFootage:e=>s(`recordingArchive`,`pruneFootage`,`mutation`,e),deleteFootprint:e=>s(`recordingArchive`,`deleteFootprint`,`mutation`,e),renderGif:e=>s(`recordingArchive`,`renderGif`,`mutation`,e),renderClip:e=>s(`recordingArchive`,`renderClip`,`mutation`,e),getStatus:e=>s(`recordingArchive`,`getStatus`,`query`,e),getDeviceSettingsContribution:e=>s(`recordingArchive`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>s(`recordingArchive`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>s(`recordingArchive`,`applyDeviceSettingsPatch`,`mutation`,e)},Ft={listExports:e=>s(`recordingExport`,`listExports`,`query`,e)},It={reportStreamSignal:e=>s(`streamBroker`,`reportStreamSignal`,`mutation`,e),publishCameraStream:e=>s(`streamBroker`,`publishCameraStream`,`mutation`,e),retractCameraStream:e=>s(`streamBroker`,`retractCameraStream`,`mutation`,e),assignProfile:e=>s(`streamBroker`,`assignProfile`,`mutation`,e),unassignProfile:e=>s(`streamBroker`,`unassignProfile`,`mutation`,e),forgetDeviceHardware:e=>s(`streamBroker`,`forgetDeviceHardware`,`mutation`,e),renderPreBufferClip:e=>s(`streamBroker`,`renderPreBufferClip`,`mutation`,e),produceEventMedia:e=>s(`streamBroker`,`produceEventMedia`,`mutation`,e),restartProfile:e=>s(`streamBroker`,`restartProfile`,`mutation`,e),getDeviceAudioMute:e=>s(`streamBroker`,`getDeviceAudioMute`,`query`,e),setDeviceAudioMute:e=>s(`streamBroker`,`setDeviceAudioMute`,`mutation`,e),getDeviceSettingsContribution:e=>s(`streamBroker`,`getDeviceSettingsContribution`,`query`,e),getDeviceLiveContribution:e=>s(`streamBroker`,`getDeviceLiveContribution`,`query`,e),applyDeviceSettingsPatch:e=>s(`streamBroker`,`applyDeviceSettingsPatch`,`mutation`,e)};return{deviceId:t.deviceId,binding:t,state:{airQualitySensor:Z(r,t.deviceId,`air-quality-sensor`),alarmPanel:Z(r,t.deviceId,`alarm-panel`),ambientLightSensor:Z(r,t.deviceId,`ambient-light-sensor`),audioMetrics:Z(r,t.deviceId,`audio-metrics`),automationControl:Z(r,t.deviceId,`automation-control`),battery:Z(r,t.deviceId,`battery`),binary:Z(r,t.deviceId,`binary`),brightness:Z(r,t.deviceId,`brightness`),cameraStreams:Z(r,t.deviceId,`camera-streams`),carbonMonoxide:Z(r,t.deviceId,`carbon-monoxide`),climateControl:Z(r,t.deviceId,`climate-control`),color:Z(r,t.deviceId,`color`),connectivity:Z(r,t.deviceId,`connectivity`),consumables:Z(r,t.deviceId,`consumables`),contact:Z(r,t.deviceId,`contact`),control:Z(r,t.deviceId,`control`),cover:Z(r,t.deviceId,`cover`),dayNight:Z(r,t.deviceId,`day-night`),deviceDiscovery:Z(r,t.deviceId,`device-discovery`),deviceStatus:Z(r,t.deviceId,`device-status`),dishwasher:Z(r,t.deviceId,`dishwasher`),doorbell:Z(r,t.deviceId,`doorbell`),enumSensor:Z(r,t.deviceId,`enum-sensor`),eventEmitter:Z(r,t.deviceId,`event-emitter`),fanControl:Z(r,t.deviceId,`fan-control`),featureProbe:Z(r,t.deviceId,`feature-probe`),flood:Z(r,t.deviceId,`flood`),gas:Z(r,t.deviceId,`gas`),heatingValve:Z(r,t.deviceId,`heating-valve`),humidifier:Z(r,t.deviceId,`humidifier`),humiditySensor:Z(r,t.deviceId,`humidity-sensor`),image:Z(r,t.deviceId,`image`),imageSettings:Z(r,t.deviceId,`image-settings`),intercom:Z(r,t.deviceId,`intercom`),lawnMowerControl:Z(r,t.deviceId,`lawn-mower-control`),lockControl:Z(r,t.deviceId,`lock-control`),mediaPlayer:Z(r,t.deviceId,`media-player`),motion:Z(r,t.deviceId,`motion`),motionTrigger:Z(r,t.deviceId,`motion-trigger`),motionZones:Z(r,t.deviceId,`motion-zones`),nativeObjectDetection:Z(r,t.deviceId,`native-object-detection`),navigation:Z(r,t.deviceId,`navigation`),networkLink:Z(r,t.deviceId,`network-link`),notifier:Z(r,t.deviceId,`notifier`),numericSensor:Z(r,t.deviceId,`numeric-sensor`),petFeeder:Z(r,t.deviceId,`pet-feeder`),powerMeter:Z(r,t.deviceId,`power-meter`),presence:Z(r,t.deviceId,`presence`),pressureSensor:Z(r,t.deviceId,`pressure-sensor`),privacyMask:Z(r,t.deviceId,`privacy-mask`),ptzAutotrack:Z(r,t.deviceId,`ptz-autotrack`),recordingOnboard:Z(r,t.deviceId,`recording-onboard`),recordingSignal:Z(r,t.deviceId,`recording-signal`),sceneMonitor:Z(r,t.deviceId,`scene-monitor`),scriptRunner:Z(r,t.deviceId,`script-runner`),smoke:Z(r,t.deviceId,`smoke`),streamCatalog:Z(r,t.deviceId,`stream-catalog`),streamParams:Z(r,t.deviceId,`stream-params`),streamSignals:Z(r,t.deviceId,`stream-signals`),switch:Z(r,t.deviceId,`switch`),tamper:Z(r,t.deviceId,`tamper`),temperatureSensor:Z(r,t.deviceId,`temperature-sensor`),update:Z(r,t.deviceId,`update`),vacuumControl:Z(r,t.deviceId,`vacuum-control`),valve:Z(r,t.deviceId,`valve`),vibration:Z(r,t.deviceId,`vibration`),waterHeater:Z(r,t.deviceId,`water-heater`),weather:Z(r,t.deviceId,`weather`),zoneAnalytics:Z(r,t.deviceId,`zone-analytics`),zoneRules:Z(r,t.deviceId,`zone-rules`),zones:Z(r,t.deviceId,`zones`)},...c(`accessories`)?{accessories:l}:{},...c(`air-quality-sensor`)?{airQualitySensor:u}:{},...c(`alarm-panel`)?{alarmPanel:d}:{},...c(`ambient-light-sensor`)?{ambientLightSensor:f}:{},...c(`audio-analysis`)?{audioAnalysis:p}:{},...c(`audio-metrics`)?{audioMetrics:m}:{},...c(`automation-control`)?{automationControl:h}:{},...c(`battery`)?{battery:g}:{},...c(`binary`)?{binary:ee}:{},...c(`brightness`)?{brightness:te}:{},...c(`button`)?{button:_}:{},...c(`camera-credentials`)?{cameraCredentials:ne}:{},...c(`camera-grid-layout`)?{cameraGridLayout:re}:{},...c(`camera-pipeline-config`)?{cameraPipelineConfig:ie}:{},...c(`camera-streams`)?{cameraStreams:v}:{},...c(`carbon-monoxide`)?{carbonMonoxide:ae}:{},...c(`climate-control`)?{climateControl:oe}:{},...c(`color`)?{color:y}:{},...c(`connectivity`)?{connectivity:se}:{},...c(`consumables`)?{consumables:ce}:{},...c(`contact`)?{contact:b}:{},...c(`control`)?{control:le}:{},...c(`cover`)?{cover:ue}:{},...c(`day-night`)?{dayNight:x}:{},...c(`detection-pipeline`)?{detectionPipeline:de}:{},...c(`device-admin-link`)?{deviceAdminLink:fe}:{},...c(`device-discovery`)?{deviceDiscovery:pe}:{},...c(`device-extension`)?{deviceExtension:me}:{},...c(`device-ops`)?{deviceOps:S}:{},...c(`device-status`)?{deviceStatus:he}:{},...c(`dishwasher`)?{dishwasher:ge}:{},...c(`doorbell`)?{doorbell:C}:{},...c(`enum-sensor`)?{enumSensor:_e}:{},...c(`event-emitter`)?{eventEmitter:ve}:{},...c(`fan-control`)?{fanControl:ye}:{},...c(`feature-probe`)?{featureProbe:be}:{},...c(`flood`)?{flood:xe}:{},...c(`gas`)?{gas:Se}:{},...c(`heating-valve`)?{heatingValve:Ce}:{},...c(`humidifier`)?{humidifier:we}:{},...c(`humidity-sensor`)?{humiditySensor:Te}:{},...c(`image`)?{image:Ee}:{},...c(`image-settings`)?{imageSettings:De}:{},...c(`intercom`)?{intercom:Oe}:{},...c(`lawn-mower-control`)?{lawnMowerControl:ke}:{},...c(`lock-control`)?{lockControl:Ae}:{},...c(`media-player`)?{mediaPlayer:je}:{},...c(`motion`)?{motion:Me}:{},...c(`motion-detection`)?{motionDetection:Ne}:{},...c(`motion-trigger`)?{motionTrigger:Pe}:{},...c(`motion-zones`)?{motionZones:Fe}:{},...c(`native-object-detection`)?{nativeObjectDetection:Ie}:{},...c(`navigation`)?{navigation:w}:{},...c(`network-link`)?{networkLink:Le}:{},...c(`notifier`)?{notifier:Re}:{},...c(`numeric-sensor`)?{numericSensor:ze}:{},...c(`osd`)?{osd:Be}:{},...c(`pet-feeder`)?{petFeeder:Ve}:{},...c(`pipeline-analytics`)?{pipelineAnalytics:He}:{},...c(`power-meter`)?{powerMeter:Ue}:{},...c(`presence`)?{presence:We}:{},...c(`pressure-sensor`)?{pressureSensor:Ge}:{},...c(`privacy-mask`)?{privacyMask:Ke}:{},...c(`ptz`)?{ptz:qe}:{},...c(`ptz-autotrack`)?{ptzAutotrack:Je}:{},...c(`reboot`)?{reboot:Ye}:{},...c(`recording`)?{recording:Xe}:{},...c(`recording-onboard`)?{recordingOnboard:Ze}:{},...c(`recording-signal`)?{recordingSignal:Qe}:{},...c(`scene-monitor`)?{sceneMonitor:$e}:{},...c(`script-runner`)?{scriptRunner:et}:{},...c(`smoke`)?{smoke:tt}:{},...c(`snapshot`)?{snapshot:nt}:{},...c(`stream-catalog`)?{streamCatalog:T}:{},...c(`stream-params`)?{streamParams:rt}:{},...c(`stream-signals`)?{streamSignals:it}:{},...c(`switch`)?{switch:at}:{},...c(`tamper`)?{tamper:ot}:{},...c(`temperature-sensor`)?{temperatureSensor:st}:{},...c(`update`)?{update:ct}:{},...c(`vacuum-control`)?{vacuumControl:lt}:{},...c(`valve`)?{valve:ut}:{},...c(`vibration`)?{vibration:dt}:{},...c(`videoclips`)?{videoclips:ft}:{},...c(`water-heater`)?{waterHeater:pt}:{},...c(`weather`)?{weather:mt}:{},...c(`webrtc-session`)?{webrtcSession:ht}:{},...c(`zone-analytics`)?{zoneAnalytics:gt}:{},...c(`zone-rules`)?{zoneRules:_t}:{},...c(`zones`)?{zones:vt}:{},addonSettings:yt,audioAnalyzer:bt,deviceAdoption:xt,deviceExport:St,deviceHistory:Ct,deviceManager:wt,deviceState:Tt,faceGallery:Et,networkQuality:Dt,notificationRules:Ot,osdManager:kt,pipelineExecutor:At,pipelineOrchestrator:jt,pipelineRunner:Mt,plateGallery:Nt,recordingArchive:Pt,recordingExport:Ft,streamBroker:It}}var G1=`device.state-changed`,K1=`capability.binding-changed`,q1=`device.registered`,J1=`device.unregistered`,Y1=`device.updated`,X1=class{api;stateMirror=new Map;bindings=new Map;devices=new Map;handleListeners=new Map;globalStateListeners=new Set;capListeners=new Map;deviceListeners=new Map;addedListeners=new Set;removedListeners=new Set;pendingWaits=new Set;stateSource;bridges=[];initialized=!1;initPromise=null;constructor(e){this.api=e,this.stateSource=T1(this.stateMirror,this.handleListeners,this.api)}async init(e=15e3){if(!this.initialized){if(this.initPromise)return this.initPromise;this.initPromise=(async()=>{let t=(t,n)=>Number.isFinite(e)?new Promise((r,i)=>{let a=setTimeout(()=>i(Error(`SystemMirror.init: '${n}' timed out after ${e}ms`)),e);t.then(e=>{clearTimeout(a),r(e)},e=>{clearTimeout(a),i(e)})}):t,[n,r,i]=await Promise.all([t(this.api.deviceManager.getAllBindings.query({}),`deviceManager.getAllBindings`),t(this.api.deviceState.getAllSnapshots.query({}),`deviceState.getAllSnapshots`),t(this.api.deviceManager.listAll.query({}),`deviceManager.listAll`)]);for(let e of n)this.bindings.set(e.deviceId,e);for(let[e,t]of Object.entries(r)){let n=Number(e);if(!Number.isFinite(n))continue;let r=new Map;for(let[e,n]of Object.entries(t))r.set(e,n);this.stateMirror.set(n,r)}for(let e of i)this.devices.set(e.id,e);try{this.subscribeBus()}catch{}this.initialized=!0})();try{await this.initPromise}finally{this.initPromise=null}}}isReady(){return this.initialized}async awaitReady(){if(!this.initialized)return this.initPromise?this.initPromise:this.init()}dispose(){for(let e of this.bridges)try{e.unsubscribe()}catch{}this.bridges=[],this.handleListeners.clear(),this.globalStateListeners.clear(),this.capListeners.clear(),this.deviceListeners.clear(),this.addedListeners.clear(),this.removedListeners.clear(),this.pendingWaits.clear(),this.initialized=!1}getDeviceById(e){let t=this.bindings.get(e);return t?W1(this.api,t,{stateSource:this.stateSource}):null}getDeviceByName(e){for(let t of this.devices.values())if(t.name===e)return this.getDeviceById(t.id);return null}getDeviceByStableId(e){for(let t of this.devices.values())if(t.stableId===e)return this.getDeviceById(t.id);return null}getDevicesByAddon(e){return this.query({addonId:e})}getDevicesByType(e){return this.query({type:e})}getDeviceInfo(e){return this.devices.get(e)??null}getAllDevices(){let e=[];for(let t of this.bindings.keys()){let n=this.getDeviceById(t);n&&e.push(n)}return e}filterByCap(e){return this.query({caps:e})}query(e={}){let t=[];for(let[n,r]of this.bindings){let i=this.devices.get(n);if(e.id!==void 0&&!Z1(n,e.id)||e.stableId!==void 0&&(!i||!Z1(i.stableId,e.stableId))||e.addonId!==void 0&&(!i||!Z1(i.addonId,e.addonId))||e.type!==void 0&&(!i||!Z1(i.type,e.type)))continue;if(e.caps!==void 0){let t=Q1(e.caps),n=new Set(r.entries.map(e=>e.capName));if(!t.every(e=>n.has(e)))continue}if(e.anyCap!==void 0){let t=Q1(e.anyCap),n=new Set(r.entries.map(e=>e.capName));if(!t.some(e=>n.has(e)))continue}if(e.name!==void 0&&(!i||!$1(i.name,e.name))||e.online!==void 0&&(!i||i.online!==e.online))continue;if(e.parentDeviceId!==void 0){if(!i)continue;let t=e.parentDeviceId;if((i.parentDeviceId??null)!==t)continue}if(e.feature!==void 0&&(!i||!Q1(e.feature).every(e=>i.features.includes(e)))||e.isCamera!==void 0&&(!i||i.isCamera!==e.isCamera))continue;let a=this.getDeviceById(n);if(a){if(e.where&&i){if(!e.where(i,a))continue}else if(e.where&&!i)continue;t.push(a)}}return t}whereState(e,t){let n=[];for(let[r,i]of this.stateMirror){let a=i.get(e);if(!a||!t(a,r))continue;let o=this.getDeviceById(r);o&&n.push(o)}return n}mapState(e,t){let n=[];for(let[r,i]of this.stateMirror){let a=i.get(e);a&&n.push(t(a,r))}return n}findState(e,t){for(let[n,r]of this.stateMirror){let i=r.get(e);if(i&&t(i,n))return this.getDeviceById(n)}return null}countByCap(e){let t=0;for(let n of this.bindings.values())n.entries.some(t=>t.capName===e)&&t++;return t}countByState(e,t){let n=0;for(let[r,i]of this.stateMirror){let a=i.get(e);a&&t(a,r)&&n++}return n}listen(e){return this.globalStateListeners.add(e),()=>{this.globalStateListeners.delete(e)}}listenCap(e,t){let n=this.capListeners.get(e);return n||(n=new Set,this.capListeners.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this.capListeners.delete(e)}}listenDevice(e,t){let n=this.deviceListeners.get(e);return n||(n=new Set,this.deviceListeners.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this.deviceListeners.delete(e)}}onDeviceAdded(e){return this.addedListeners.add(e),()=>{this.addedListeners.delete(e)}}onDeviceRemoved(e){return this.removedListeners.add(e),()=>{this.removedListeners.delete(e)}}waitForState(e,t,n,r=3e4){return new Promise((i,a)=>{let o=(()=>{let r=this.stateMirror.get(e)?.get(t);return r&&n(r)?r:null})();if(o){i(o);return}let s=null,c=this.listenDevice(e,(e,r,a)=>{r===t&&a&&n(a)&&(s&&clearTimeout(s),c(),i(a))});Number.isFinite(r)&&(s=setTimeout(()=>{c(),a(Error(`waitForState timed out after ${r}ms (deviceId=${e}, capName=${t})`))},r))})}waitForDevice(e,t=3e4){return new Promise((n,r)=>{let i=this.getDeviceById(e);if(i){n(i);return}let a=null,o=this.onDeviceAdded(t=>{if(t!==e)return;let r=this.getDeviceById(t);r&&(a&&clearTimeout(a),o(),n(r))});Number.isFinite(t)&&(a=setTimeout(()=>{o(),r(Error(`waitForDevice timed out after ${t}ms (deviceId=${e})`))},t))})}async forEachCap(e,t){for(let n of this.filterByCap(e))await t(n)}async invokeCap(e,t,n,r={}){let i=this.filterByCap(e),a=Math.max(1,r.parallelism??i.length),o=[];for(let r=0;r<i.length;r+=a){let s=i.slice(r,r+a),c=await Promise.allSettled(s.map(async r=>{let i=Reflect.get(r,e),a=typeof i==`object`&&i?Reflect.get(i,t):void 0;if(typeof a!=`function`)throw Error(`device '${r.deviceId}' does not expose '${e}.${t}'`);return await Reflect.apply(a,i,[n])}));for(let e=0;e<c.length;e++){let t=s[e],n=c[e];n.status===`fulfilled`?o.push({deviceId:t.deviceId,ok:!0,result:n.value}):o.push({deviceId:t.deviceId,ok:!1,error:n.reason})}}return o}summary(){let e={},t={},n={},r=0,i=0;for(let t of this.bindings.values())for(let n of t.entries)e[n.capName]=(e[n.capName]??0)+1;for(let e of this.devices.values())t[e.addonId]=(t[e.addonId]??0)+1,n[e.type]=(n[e.type]??0)+1,e.online?r++:i++;return{totalDevices:this.bindings.size,online:r,offline:i,byCap:e,byAddon:t,byType:n,statedDevices:this.stateMirror.size}}dump(e){let t=e=>{let t=this.devices.get(e)??null,n=this.bindings.get(e)??null,r={},i=this.stateMirror.get(e);if(i)for(let[e,t]of i)r[e]={...t};return{deviceId:e,info:t,binding:n?{...n,entries:n.entries.map(e=>({...e}))}:null,state:r}};if(e!==void 0)return t(e);let n=[];for(let e of this.bindings.keys())n.push(t(e));return n}getRawMirror(){return this.stateMirror}getSystemState(){let e=new Map;for(let[t,n]of this.stateMirror){let r=new Map;for(let[e,t]of n)r.set(e,{...t});e.set(t,r)}return e}subscribeBus(){if(!this.api.live?.onEvent)return;let e=this.api.live.onEvent;this.bridges.push(e.subscribe({category:G1},{onData:e=>{let t=e.data;!t||typeof t.deviceId!=`number`||typeof t.capName!=`string`||this.applyStateUpdate(t.deviceId,t.capName,t.slice)}})),this.bridges.push(e.subscribe({category:K1},{onData:e=>{let t=e.data,n=typeof t?.deviceId==`number`?t.deviceId:t?.source?.type===`device`&&typeof t.source.id==`number`?t.source.id:null;n!==null&&this.refreshBinding(n)}})),this.bridges.push(e.subscribe({category:q1},{onData:e=>{let t=e.data;typeof t?.deviceId==`number`&&this.refreshDeviceMetadata(t.deviceId,`added`)}})),this.bridges.push(e.subscribe({category:J1},{onData:e=>{let t=e.data;typeof t?.deviceId==`number`&&this.applyDeviceRemoval(t.deviceId)}})),this.bridges.push(e.subscribe({category:Y1},{onData:e=>{let t=e.data;typeof t?.deviceId==`number`&&this.refreshDeviceMetadata(t.deviceId,`updated`)}}))}applyStateUpdate(e,t,n){let r=this.stateMirror.get(e);r||(r=new Map,this.stateMirror.set(e,r)),n===void 0?r.delete(t):r.set(t,n);let i=`${e}:${t}`,a=this.handleListeners.get(i);if(a)for(let e of a)try{e(n)}catch{}for(let r of this.globalStateListeners)try{r(e,t,n)}catch{}let o=this.capListeners.get(t);if(o)for(let t of o)try{t(e,n)}catch{}let s=this.deviceListeners.get(e);if(s)for(let r of s)try{r(e,t,n)}catch{}}applyDeviceRemoval(e){let t=this.devices.get(e)??null;this.bindings.delete(e),this.devices.delete(e),this.stateMirror.delete(e);for(let n of this.removedListeners)try{n(e,t)}catch{}}async refreshBinding(e){try{let t=await this.api.deviceManager.getBindings.query({deviceId:e});if(t.entries.length>0){this.bindings.set(e,t);return}if(await this.api.deviceManager.getDevice.query({deviceId:e})===null){this.applyDeviceRemoval(e);return}this.bindings.set(e,t)}catch{}}async refreshDeviceMetadata(e,t){try{let n=await this.api.deviceManager.getDevice.query({deviceId:e});if(!n)return;let r=!this.devices.has(e);if(this.devices.set(e,n),t===`added`&&r){await this.refreshBinding(e);for(let t of this.addedListeners)try{t(e,n)}catch{}}}catch{}}};function Z1(e,t){return Array.isArray(t)?t.includes(e):e===t}function Q1(e){return Array.isArray(e)?e:[e]}function $1(e,t){return typeof t==`string`?e===t:t instanceof RegExp?t.test(e):`exact`in t?e===t.exact:`contains`in t?e.toLowerCase().includes(t.contains.toLowerCase()):!1}function e0(e){return Reflect.get(e,`def`)}function t0(e){return e}function n0(e,t=`Configuration`,n=`main`){return{sections:[{id:n,title:t,fields:e.map(e=>r0(e.key,e.schema,e.description))}]}}function r0(e,t,n){let r=c0(t),i=l0(t),a={key:e,label:n??u0(e),description:n,default:i};if(r instanceof re&&Va(t))return{...a,type:`password`,showToggle:!0};if(r instanceof re)return i0(e,a);if(r instanceof ne)return a0(r,a);if(r instanceof oe)return{...a,type:`boolean`};if(r instanceof ue)return s0(r,a);if(r instanceof de||r instanceof ce){let e=Va(t)||Ha(t).length>0;return{...a,type:`textarea`,rows:6,isJson:!0,...e?{secret:!0}:{}}}return{...a,type:`text`}}function i0(e,t){let n=e.toLowerCase();return n.includes(`password`)||n.includes(`secret`)||n.includes(`token`)||n.includes(`apikey`)||n.includes(`api_key`)?{...t,type:`password`,showToggle:!0}:{...t,type:`text`}}function a0(e,t){let n=t0(e),r=n.minValue,i=n.maxValue,a=r!=null&&isFinite(r)?r:void 0,o=i!=null&&isFinite(i)?i:void 0,s=o0(e);return{...t,type:`number`,...a===void 0?{}:{min:a},...o===void 0?{}:{max:o},...s===void 0?{}:{step:s}}}function o0(e){let t=e0(e).checks??[];for(let e of t)if(e._zod?.def?.check===`multiple_of`&&e._zod.def.value!==void 0)return e._zod.def.value}function s0(e,t){let n=e.options.map(e=>String(e));return{...t,type:`select`,options:n.map(e=>({label:u0(e),value:e}))}}function c0(e){return e instanceof te||e instanceof me||e instanceof fe?c0(e0(e).innerType):e}function l0(e){if(e instanceof te)return e0(e).defaultValue}function u0(e){return e.replace(/([A-Z])/g,` $1`).replace(/[_-]/g,` `).replace(/^\w/,e=>e.toUpperCase()).trim()}var d0=function(e){return e.Addon=`addon`,e.Core=`core`,e.Device=`device`,e.Provider=`provider`,e.System=`system`,e}({}),f0=`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.day-night.device-adoption.device-discovery.device-export.device-status.dishwasher.doorbell.enum-sensor.event-emitter.fan-control.feature-probe.flood.gas.heating-valve.humidifier.humidity-sensor.image.image-settings.intercom.lawn-mower-control.lock-control.media-player.motion.motion-trigger.motion-zones.mqtt-broker.native-object-detection.navigation.network-link.notifier.numeric-sensor.osd.pet-feeder.power-meter.presence.pressure-sensor.privacy-mask.ptz.ptz-autotrack.recording-archive.recording-onboard.recording-signal.scene-monitor.script-runner.smoke.snapshot.stream-params.switch.tamper.temperature-sensor.update.vacuum-control.valve.vibration.water-heater.weather`.split(`.`),p0={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`,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`,calendarSource:`calendar-source`,calendars:`calendars`,cameraCredentials:`camera-credentials`,cameraGridLayout:`camera-grid-layout`,cameraPipelineConfig:`camera-pipeline-config`,cameraStreams:`camera-streams`,carbonMonoxide:`carbon-monoxide`,climateControl:`climate-control`,color:`color`,composer:`composer`,connectionTest:`connection-test`,connectivity:`connectivity`,consumables:`consumables`,contact:`contact`,control:`control`,coreBlocks:`core-blocks`,cover:`cover`,customModelRegistry:`custom-model-registry`,dataStoreProvider:`data-store-provider`,databaseSnapshot:`database-snapshot`,dayNight:`day-night`,decoder:`decoder`,detectionPipeline:`detection-pipeline`,deviceAdminLink:`device-admin-link`,deviceAdoption:`device-adoption`,deviceCredentials:`device-credentials`,deviceDiscovery:`device-discovery`,deviceExport:`device-export`,deviceExtension:`device-extension`,deviceHistory:`device-history`,deviceManager:`device-manager`,deviceOps:`device-ops`,deviceProvider:`device-provider`,deviceRemovalHook:`device-removal-hook`,deviceState:`device-state`,deviceStatus:`device-status`,dishwasher:`dishwasher`,doorbell:`doorbell`,embeddingEncoder:`embedding-encoder`,enumSensor:`enum-sensor`,eventEmitter:`event-emitter`,faceGallery:`face-gallery`,failureContribution:`failure-contribution`,fanControl:`fan-control`,featureProbe:`feature-probe`,filesystemBrowse:`filesystem-browse`,flood:`flood`,gas:`gas`,heatingValve:`heating-valve`,humidifier:`humidifier`,humiditySensor:`humidity-sensor`,image:`image`,imageSettings:`image-settings`,integrations:`integrations`,intercom:`intercom`,keychain:`keychain`,keychainAdmin:`keychain-admin`,lawnMowerControl:`lawn-mower-control`,llm:`llm`,llmRuntime:`llm-runtime`,loadContribution:`load-contribution`,localNetwork:`local-network`,lockControl:`lock-control`,logChannels:`log-channels`,logDestination:`log-destination`,loginMethod:`login-method`,mediaPlayer:`media-player`,meshNetwork:`mesh-network`,metricsProvider:`metrics-provider`,modelConvert:`model-convert`,modelDistributor:`model-distributor`,motion:`motion`,motionDetection:`motion-detection`,motionTrigger:`motion-trigger`,motionZones:`motion-zones`,mqttBroker:`mqtt-broker`,nativeObjectDetection:`native-object-detection`,navigation:`navigation`,networkAccess:`network-access`,networkLink:`network-link`,networkQuality:`network-quality`,nodeCertificates:`node-certificates`,nodes:`nodes`,notificationOutput:`notification-output`,notificationRules:`notification-rules`,notifier:`notifier`,numericSensor:`numeric-sensor`,oauthIntegration:`oauth-integration`,oidcConnections:`oidc-connections`,osd:`osd`,osdManager:`osd-manager`,petFeeder:`pet-feeder`,pipelineAnalytics:`pipeline-analytics`,pipelineExecutor:`pipeline-executor`,pipelineOrchestrator:`pipeline-orchestrator`,pipelineRunner:`pipeline-runner`,plateGallery:`plate-gallery`,platformProbe:`platform-probe`,powerMeter:`power-meter`,presence:`presence`,pressureSensor:`pressure-sensor`,privacyMask:`privacy-mask`,ptz:`ptz`,ptzAutotrack:`ptz-autotrack`,reboot:`reboot`,recordEntries:`record-entries`,recording:`recording`,recordingArchive:`recording-archive`,recordingExport:`recording-export`,recordingOnboard:`recording-onboard`,recordingSignal:`recording-signal`,records:`records`,sceneMonitor:`scene-monitor`,scriptRunner:`script-runner`,serverManagement:`server-management`,settingsStore:`settings-store`,smoke:`smoke`,smtpProvider:`smtp-provider`,snapshot:`snapshot`,ssoBridge:`sso-bridge`,storage:`storage`,storageAdmin:`storage-admin`,storageEvictable:`storage-evictable`,storageMigration:`storage-migration`,storageOccupancy:`storage-occupancy`,storageProvider:`storage-provider`,streamBroker:`stream-broker`,streamCatalog:`stream-catalog`,streamParams:`stream-params`,streamSignals:`stream-signals`,switch:`switch`,system:`system`,tamper:`tamper`,temperatureSensor:`temperature-sensor`,terminalSession:`terminal-session`,toast:`toast`,training:`training`,trainingProvider:`training-provider`,turnProvider:`turn-provider`,update:`update`,userManagement:`user-management`,userPasskeys:`user-passkeys`,vacuumControl:`vacuum-control`,valve:`valve`,vectorStore:`vector-store`,vibration:`vibration`,videoclips:`videoclips`,viewerUi:`viewer-ui`,waterHeater:`water-heater`,weather:`weather`,webrtcSession:`webrtc-session`,zoneAnalytics:`zone-analytics`,zoneRules:`zone-rules`,zones:`zones`},m0=[{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:`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:`calendarSource`,name:`calendar-source`},{key:`calendars`,name:`calendars`},{key:`cameraCredentials`,name:`camera-credentials`},{key:`cameraGridLayout`,name:`camera-grid-layout`},{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:`composer`,name:`composer`},{key:`connectionTest`,name:`connection-test`},{key:`connectivity`,name:`connectivity`},{key:`consumables`,name:`consumables`},{key:`contact`,name:`contact`},{key:`control`,name:`control`},{key:`coreBlocks`,name:`core-blocks`},{key:`cover`,name:`cover`},{key:`customModelRegistry`,name:`custom-model-registry`},{key:`dataStoreProvider`,name:`data-store-provider`},{key:`databaseSnapshot`,name:`database-snapshot`},{key:`dayNight`,name:`day-night`},{key:`decoder`,name:`decoder`},{key:`detectionPipeline`,name:`detection-pipeline`},{key:`deviceAdminLink`,name:`device-admin-link`},{key:`deviceAdoption`,name:`device-adoption`},{key:`deviceCredentials`,name:`device-credentials`},{key:`deviceDiscovery`,name:`device-discovery`},{key:`deviceExport`,name:`device-export`},{key:`deviceExtension`,name:`device-extension`},{key:`deviceHistory`,name:`device-history`},{key:`deviceManager`,name:`device-manager`},{key:`deviceOps`,name:`device-ops`},{key:`deviceProvider`,name:`device-provider`},{key:`deviceRemovalHook`,name:`device-removal-hook`},{key:`deviceState`,name:`device-state`},{key:`deviceStatus`,name:`device-status`},{key:`dishwasher`,name:`dishwasher`},{key:`doorbell`,name:`doorbell`},{key:`embeddingEncoder`,name:`embedding-encoder`},{key:`enumSensor`,name:`enum-sensor`},{key:`eventEmitter`,name:`event-emitter`},{key:`faceGallery`,name:`face-gallery`},{key:`failureContribution`,name:`failure-contribution`},{key:`fanControl`,name:`fan-control`},{key:`featureProbe`,name:`feature-probe`},{key:`filesystemBrowse`,name:`filesystem-browse`},{key:`flood`,name:`flood`},{key:`gas`,name:`gas`},{key:`heatingValve`,name:`heating-valve`},{key:`humidifier`,name:`humidifier`},{key:`humiditySensor`,name:`humidity-sensor`},{key:`image`,name:`image`},{key:`imageSettings`,name:`image-settings`},{key:`integrations`,name:`integrations`},{key:`intercom`,name:`intercom`},{key:`keychain`,name:`keychain`},{key:`keychainAdmin`,name:`keychain-admin`},{key:`lawnMowerControl`,name:`lawn-mower-control`},{key:`llm`,name:`llm`},{key:`llmRuntime`,name:`llm-runtime`},{key:`loadContribution`,name:`load-contribution`},{key:`localNetwork`,name:`local-network`},{key:`lockControl`,name:`lock-control`},{key:`logChannels`,name:`log-channels`},{key:`logDestination`,name:`log-destination`},{key:`loginMethod`,name:`login-method`},{key:`mediaPlayer`,name:`media-player`},{key:`meshNetwork`,name:`mesh-network`},{key:`metricsProvider`,name:`metrics-provider`},{key:`modelConvert`,name:`model-convert`},{key:`modelDistributor`,name:`model-distributor`},{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:`navigation`,name:`navigation`},{key:`networkAccess`,name:`network-access`},{key:`networkLink`,name:`network-link`},{key:`networkQuality`,name:`network-quality`},{key:`nodeCertificates`,name:`node-certificates`},{key:`nodes`,name:`nodes`},{key:`notificationOutput`,name:`notification-output`},{key:`notificationRules`,name:`notification-rules`},{key:`notifier`,name:`notifier`},{key:`numericSensor`,name:`numeric-sensor`},{key:`oauthIntegration`,name:`oauth-integration`},{key:`oidcConnections`,name:`oidc-connections`},{key:`osd`,name:`osd`},{key:`osdManager`,name:`osd-manager`},{key:`petFeeder`,name:`pet-feeder`},{key:`pipelineAnalytics`,name:`pipeline-analytics`},{key:`pipelineExecutor`,name:`pipeline-executor`},{key:`pipelineOrchestrator`,name:`pipeline-orchestrator`},{key:`pipelineRunner`,name:`pipeline-runner`},{key:`plateGallery`,name:`plate-gallery`},{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:`recordEntries`,name:`record-entries`},{key:`recording`,name:`recording`},{key:`recordingArchive`,name:`recording-archive`},{key:`recordingExport`,name:`recording-export`},{key:`recordingOnboard`,name:`recording-onboard`},{key:`recordingSignal`,name:`recording-signal`},{key:`records`,name:`records`},{key:`sceneMonitor`,name:`scene-monitor`},{key:`scriptRunner`,name:`script-runner`},{key:`serverManagement`,name:`server-management`},{key:`settingsStore`,name:`settings-store`},{key:`smoke`,name:`smoke`},{key:`smtpProvider`,name:`smtp-provider`},{key:`snapshot`,name:`snapshot`},{key:`ssoBridge`,name:`sso-bridge`},{key:`storage`,name:`storage`},{key:`storageAdmin`,name:`storage-admin`},{key:`storageEvictable`,name:`storage-evictable`},{key:`storageMigration`,name:`storage-migration`},{key:`storageOccupancy`,name:`storage-occupancy`},{key:`storageProvider`,name:`storage-provider`},{key:`streamBroker`,name:`stream-broker`},{key:`streamCatalog`,name:`stream-catalog`},{key:`streamParams`,name:`stream-params`},{key:`streamSignals`,name:`stream-signals`},{key:`switch`,name:`switch`},{key:`system`,name:`system`},{key:`tamper`,name:`tamper`},{key:`temperatureSensor`,name:`temperature-sensor`},{key:`terminalSession`,name:`terminal-session`},{key:`toast`,name:`toast`},{key:`training`,name:`training`},{key:`trainingProvider`,name:`training-provider`},{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:`vectorStore`,name:`vector-store`},{key:`vibration`,name:`vibration`},{key:`videoclips`,name:`videoclips`},{key:`viewerUi`,name:`viewer-ui`},{key:`waterHeater`,name:`water-heater`},{key:`weather`,name:`weather`},{key:`webrtcSession`,name:`webrtc-session`},{key:`zoneAnalytics`,name:`zone-analytics`},{key:`zoneRules`,name:`zone-rules`},{key:`zones`,name:`zones`}],h0=[sV,Th,Dh,jh,Lh,Wh,Hh,WV,qh,KV,Sk,$h,JV,ng,bg,Og,$V,Ag,tH,p_,rH,aH,sH,P_,cH,pH,SH,TH,jH,F_,lv,NH,IH,VH,Ry,KH,JH,$H,tU,aU,Sx,cU,jx,Nx,$g,mU,GS,KS,YS,TC,DS,fC,PC,_T,wS,Xw,vU,Sw,WT,ST,bU,jU,PU,BT,LU,BU,ZU,qT,eW,nW,XT,iW,oW,cW,uW,fW,mW,CW,MW,IW,uS,US,BW,TD,fD,kD,oG,lG,jD,PD,BD,mG,vG,oO,cO,dO,SG,mO,TG,AG,EO,RG,XG,jO,nK,oK,jS,gK,JO,Uj,vK,bK,tM,aM,EK,zK,UK,aF,zF,FR,qL,YK,dq,pq,gq,vq,wq,Pq,zq,Bq,rS,Qq,vJ,zJ,QJ,vY,Jx,LY,HY,iz,Ug,WY,lz,fz,mz,gz,$x,yz,bz,Sz,Pz,iv,qY,eX,Lz,oX,KX,JX,XX,Kz,QX,fQ,QZ,Jz,eZ,pZ,Xz,_Z,bZ,xB,SZ,GB,YB,wZ,EZ,aV,FZ,LZ,uL],g0=new Set(`accessories.air-quality-sensor.alarm-panel.ambient-light-sensor.audio-analysis.audio-metrics.automation-control.battery.binary.brightness.button.camera-credentials.camera-grid-layout.camera-pipeline-config.camera-streams.carbon-monoxide.climate-control.color.connectivity.consumables.contact.control.cover.day-night.detection-pipeline.device-admin-link.device-discovery.device-extension.device-ops.device-status.dishwasher.doorbell.enum-sensor.event-emitter.fan-control.feature-probe.flood.gas.heating-valve.humidifier.humidity-sensor.image.image-settings.intercom.lawn-mower-control.lock-control.media-player.motion.motion-detection.motion-trigger.motion-zones.native-object-detection.navigation.network-link.notifier.numeric-sensor.osd.pet-feeder.pipeline-analytics.power-meter.presence.pressure-sensor.privacy-mask.ptz.ptz-autotrack.reboot.recording.recording-onboard.recording-signal.scene-monitor.script-runner.smoke.snapshot.stream-catalog.stream-params.stream-signals.switch.tamper.temperature-sensor.update.vacuum-control.valve.vibration.videoclips.water-heater.weather.webrtc-session.zone-analytics.zone-rules.zones`.split(`.`));function _0(e){return g0.has(e)}var v0=Object.freeze({"accessories.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"accessories.setChildHidden":[{name:`childDeviceId`,form:`single`,optional:!1},{name:`deviceId`,form:`single`,optional:!1}],"addonSettings.getDeviceSettings":[{name:`deviceId`,form:`single`,optional:!1}],"addonSettings.updateDeviceSettings":[{name:`deviceId`,form:`single`,optional:!1}],"airQualitySensor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"alarmPanel.arm":[{name:`deviceId`,form:`single`,optional:!1}],"alarmPanel.disarm":[{name:`deviceId`,form:`single`,optional:!1}],"alarmPanel.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"alarmPanel.trigger":[{name:`deviceId`,form:`single`,optional:!1}],"ambientLightSensor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"audioAnalysis.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"audioAnalysis.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"audioAnalysis.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"audioAnalysis.resolveDeviceSettings":[{name:`deviceId`,form:`single`,optional:!1}],"audioAnalyzer.attachDevice":[{name:`deviceId`,form:`single`,optional:!1}],"audioAnalyzer.classify":[{name:`deviceId`,form:`single`,optional:!0}],"audioAnalyzer.detachDevice":[{name:`deviceId`,form:`single`,optional:!1}],"audioMetrics.getCurrentSnapshot":[{name:`deviceId`,form:`single`,optional:!1}],"audioMetrics.getHistory":[{name:`deviceId`,form:`single`,optional:!1}],"automationControl.disable":[{name:`deviceId`,form:`single`,optional:!1}],"automationControl.enable":[{name:`deviceId`,form:`single`,optional:!1}],"automationControl.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"automationControl.trigger":[{name:`deviceId`,form:`single`,optional:!1}],"battery.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"battery.wakeForStream":[{name:`deviceId`,form:`single`,optional:!1}],"binary.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"brightness.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"brightness.setBrightness":[{name:`deviceId`,form:`single`,optional:!1}],"button.press":[{name:`deviceId`,form:`single`,optional:!1}],"cameraCredentials.getCredentials":[{name:`deviceId`,form:`single`,optional:!1}],"cameraCredentials.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"cameraGridLayout.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"cameraGridLayout.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"cameraGridLayout.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"cameraGridLayout.getLayout":[{name:`deviceId`,form:`single`,optional:!1}],"cameraGridLayout.saveLayout":[{name:`cells`,form:`object-array`,optional:!1,itemField:`deviceId`},{name:`deviceId`,form:`single`,optional:!1}],"cameraPipelineConfig.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"cameraPipelineConfig.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"cameraPipelineConfig.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"cameraStreams.getBrokerStreams":[{name:`deviceId`,form:`single`,optional:!1}],"cameraStreams.getCameraStreams":[{name:`deviceId`,form:`single`,optional:!1}],"cameraStreams.getProfileRtspEntries":[{name:`deviceId`,form:`single`,optional:!1}],"cameraStreams.getRtspEntries":[{name:`deviceId`,form:`single`,optional:!1}],"cameraStreams.pickStream":[{name:`deviceId`,form:`single`,optional:!1}],"carbonMonoxide.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setFanMode":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setMode":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setPreset":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setSwingHorizontal":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setSwingVertical":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setTarget":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setTargetHumidity":[{name:`deviceId`,form:`single`,optional:!1}],"climateControl.setTargetRange":[{name:`deviceId`,form:`single`,optional:!1}],"color.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"color.setColor":[{name:`deviceId`,form:`single`,optional:!1}],"connectivity.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"consumables.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"consumables.reset":[{name:`deviceId`,form:`single`,optional:!1}],"contact.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"control.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"control.setValue":[{name:`deviceId`,form:`single`,optional:!1}],"cover.close":[{name:`deviceId`,form:`single`,optional:!1}],"cover.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"cover.open":[{name:`deviceId`,form:`single`,optional:!1}],"cover.setPosition":[{name:`deviceId`,form:`single`,optional:!1}],"cover.setTiltPosition":[{name:`deviceId`,form:`single`,optional:!1}],"cover.stop":[{name:`deviceId`,form:`single`,optional:!1}],"dayNight.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"dayNight.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"dayNight.setSettings":[{name:`deviceId`,form:`single`,optional:!1}],"detectionPipeline.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"detectionPipeline.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"detectionPipeline.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"deviceAdminLink.getAdminLink":[{name:`deviceId`,form:`single`,optional:!1}],"deviceAdoption.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"deviceAdoption.release":[{name:`camDeviceId`,form:`single`,optional:!1}],"deviceAdoption.resync":[{name:`camDeviceId`,form:`single`,optional:!1}],"deviceDiscovery.adoptDevice":[{name:`deviceId`,form:`single`,optional:!1}],"deviceDiscovery.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"deviceDiscovery.listDiscovered":[{name:`deviceId`,form:`single`,optional:!1}],"deviceDiscovery.refreshDiscovery":[{name:`deviceId`,form:`single`,optional:!1}],"deviceDiscovery.releaseDevice":[{name:`childDeviceId`,form:`single`,optional:!1},{name:`deviceId`,form:`single`,optional:!1}],"deviceExport.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"deviceExport.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"deviceExport.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"deviceExtension.listCandidates":[{name:`deviceId`,form:`single`,optional:!1}],"deviceExtension.listSlots":[{name:`deviceId`,form:`single`,optional:!1}],"deviceExtension.listSources":[{name:`deviceId`,form:`single`,optional:!1}],"deviceExtension.setSlot":[{name:`deviceId`,form:`single`,optional:!1}],"deviceHistory.getDeviceEnabled":[{name:`deviceId`,form:`single`,optional:!1}],"deviceHistory.listSeries":[{name:`deviceId`,form:`single`,optional:!1}],"deviceHistory.query":[{name:`deviceId`,form:`single`,optional:!1}],"deviceHistory.setDeviceEnabled":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.adoptionRelease":[{name:`camDeviceId`,form:`single`,optional:!1}],"deviceManager.adoptionResync":[{name:`camDeviceId`,form:`single`,optional:!1}],"deviceManager.applyInitialMeta":[{name:`deviceId`,form:`single`,optional:!1},{name:`linkDeviceId`,form:`single`,optional:!0}],"deviceManager.disable":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.enable":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getBindings":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getBindingsBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"deviceManager.getChildren":[{name:`parentDeviceId`,form:`single`,optional:!1}],"deviceManager.getChildrenBatch":[{name:`parentDeviceIds`,form:`array`,optional:!1}],"deviceManager.getConfigSchema":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getDevice":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getDeviceAggregate":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getDeviceLiveInfoAggregate":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getDeviceSettingsAggregate":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getDeviceStatusAggregate":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getDeviceStatusAggregateBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"deviceManager.getLinkedDevices":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getLinkedDevicesBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"deviceManager.getSettingsSchema":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getStreamProfileMap":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getStreamSources":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getWireableFields":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.getWrapperActivation":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.listAll":[{name:`deviceIds`,form:`array`,optional:!0}],"deviceManager.loadConfig":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.loadMeta":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.loadRuntimeState":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.persistConfig":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.probeStreams":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.registerDevice":[{name:`parentDeviceId`,form:`single`,optional:!0}],"deviceManager.remove":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.removeDevice":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.runDeviceAction":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setChildLayout":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setDisabled":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setDisplay":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setIntegrationId":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setLinkDeviceId":[{name:`deviceId`,form:`single`,optional:!1},{name:`linkDeviceId`,form:`single`,optional:!0}],"deviceManager.setLocation":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setMetadata":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setName":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setPrimaryChildEntityId":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setRole":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setStreamProfileMap":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setType":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.setWrapperActive":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.testField":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.updateConfig":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.updateDeviceField":[{name:`deviceId`,form:`single`,optional:!1}],"deviceManager.updateDeviceFieldsBatch":[{name:`deviceId`,form:`single`,optional:!1}],"deviceOps.getConfigEntries":[{name:`deviceId`,form:`single`,optional:!1}],"deviceOps.getRawState":[{name:`deviceId`,form:`single`,optional:!1}],"deviceOps.getSettingsSchema":[{name:`deviceId`,form:`single`,optional:!1}],"deviceOps.getStreamSources":[{name:`deviceId`,form:`single`,optional:!1}],"deviceOps.removeDevice":[{name:`deviceId`,form:`single`,optional:!1}],"deviceOps.runAction":[{name:`deviceId`,form:`single`,optional:!1}],"deviceOps.setConfig":[{name:`deviceId`,form:`single`,optional:!1}],"deviceRemovalHook.onDeviceRemoved":[{name:`deviceId`,form:`single`,optional:!1}],"deviceState.claimFields":[{name:`deviceId`,form:`single`,optional:!1}],"deviceState.getCapSlice":[{name:`deviceId`,form:`single`,optional:!1}],"deviceState.getNativeCapSlice":[{name:`deviceId`,form:`single`,optional:!1}],"deviceState.getSnapshot":[{name:`deviceId`,form:`single`,optional:!1}],"deviceState.patchOwnedFields":[{name:`deviceId`,form:`single`,optional:!1}],"deviceState.releaseClaim":[{name:`deviceId`,form:`single`,optional:!1}],"deviceState.setCapSlice":[{name:`deviceId`,form:`single`,optional:!1}],"deviceStatus.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.pause":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.resume":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setChildLock":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setExtraDry":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setHalfLoad":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setHygienePlus":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setIntensiveZone":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setOption":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setPower":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setProgram":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.setVarioSpeedPlus":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.start":[{name:`deviceId`,form:`single`,optional:!1}],"dishwasher.stop":[{name:`deviceId`,form:`single`,optional:!1}],"doorbell.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"enumSensor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"eventEmitter.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"faceGallery.getFaceByTrack":[{name:`deviceId`,form:`single`,optional:!1}],"faceGallery.listRecentFaces":[{name:`deviceId`,form:`single`,optional:!0},{name:`deviceIds`,form:`array`,optional:!0}],"fanControl.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"fanControl.setDirection":[{name:`deviceId`,form:`single`,optional:!1}],"fanControl.setOscillating":[{name:`deviceId`,form:`single`,optional:!1}],"fanControl.setPercentage":[{name:`deviceId`,form:`single`,optional:!1}],"fanControl.setPreset":[{name:`deviceId`,form:`single`,optional:!1}],"featureProbe.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"flood.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"gas.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"heatingValve.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"humidifier.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"humidifier.setMode":[{name:`deviceId`,form:`single`,optional:!1}],"humidifier.setOn":[{name:`deviceId`,form:`single`,optional:!1}],"humidifier.setTargetHumidity":[{name:`deviceId`,form:`single`,optional:!1}],"humiditySensor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"image.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"imageSettings.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"imageSettings.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"imageSettings.setSettings":[{name:`deviceId`,form:`single`,optional:!1}],"intercom.endTalkSession":[{name:`deviceId`,form:`single`,optional:!1}],"intercom.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"intercom.handleAnswer":[{name:`deviceId`,form:`single`,optional:!1}],"intercom.pushTalkAudio":[{name:`deviceId`,form:`single`,optional:!1}],"intercom.startSession":[{name:`deviceId`,form:`single`,optional:!1}],"intercom.startTalkSession":[{name:`deviceId`,form:`single`,optional:!1}],"intercom.stopSession":[{name:`deviceId`,form:`single`,optional:!1}],"keychain.deleteDeviceScope":[{name:`deviceId`,form:`single`,optional:!1}],"lawnMowerControl.dock":[{name:`deviceId`,form:`single`,optional:!1}],"lawnMowerControl.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"lawnMowerControl.pause":[{name:`deviceId`,form:`single`,optional:!1}],"lawnMowerControl.startMowing":[{name:`deviceId`,form:`single`,optional:!1}],"lockControl.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"lockControl.lock":[{name:`deviceId`,form:`single`,optional:!1}],"lockControl.open":[{name:`deviceId`,form:`single`,optional:!1}],"lockControl.unlock":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.next":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.pause":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.play":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.playMedia":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.previous":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.seek":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.selectSource":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.setMute":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.setRepeat":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.setShuffle":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.setVolume":[{name:`deviceId`,form:`single`,optional:!1}],"mediaPlayer.stop":[{name:`deviceId`,form:`single`,optional:!1}],"motion.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"motion.isDetected":[{name:`deviceId`,form:`single`,optional:!1}],"motionDetection.analyze":[{name:`deviceId`,form:`single`,optional:!1}],"motionDetection.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"motionDetection.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"motionDetection.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"motionDetection.removeCamera":[{name:`deviceId`,form:`single`,optional:!1}],"motionTrigger.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"motionTrigger.setMotionTrigger":[{name:`deviceId`,form:`single`,optional:!1}],"motionZones.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"motionZones.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"motionZones.setZone":[{name:`deviceId`,form:`single`,optional:!1}],"nativeObjectDetection.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"nativeObjectDetection.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"nativeObjectDetection.setEnabled":[{name:`deviceId`,form:`single`,optional:!1}],"nativeObjectDetection.setSettings":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.getFeatures":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.goToPoint":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.listActions":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.move":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.playSound":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.runAction":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.setLightLevel":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.setLightMode":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.setLightOn":[{name:`deviceId`,form:`single`,optional:!1}],"navigation.stop":[{name:`deviceId`,form:`single`,optional:!1}],"networkLink.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"networkQuality.getDeviceStats":[{name:`deviceId`,form:`single`,optional:!1}],"networkQuality.reportClientStats":[{name:`deviceId`,form:`single`,optional:!1}],"notificationRules.getAlarmSensors":[{name:`deviceIds`,form:`array`,optional:!1}],"notificationRules.setDeviceMuted":[{name:`deviceId`,form:`single`,optional:!1}],"notifier.cancel":[{name:`deviceId`,form:`single`,optional:!1}],"notifier.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"notifier.send":[{name:`deviceId`,form:`single`,optional:!1}],"numericSensor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"osd.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"osd.setOverlay":[{name:`deviceId`,form:`single`,optional:!1}],"osdManager.clearSlotBinding":[{name:`deviceId`,form:`single`,optional:!1}],"osdManager.copyDeviceConfiguration":[{name:`sourceDeviceId`,form:`single`,optional:!1},{name:`targetDeviceId`,form:`single`,optional:!1}],"osdManager.getDeviceOsd":[{name:`deviceId`,form:`single`,optional:!1}],"osdManager.getSourceCatalog":[{name:`deviceId`,form:`single`,optional:!1}],"osdManager.previewSlot":[{name:`deviceId`,form:`single`,optional:!1}],"osdManager.renderDevice":[{name:`deviceId`,form:`single`,optional:!1}],"osdManager.setSlotBinding":[{name:`deviceId`,form:`single`,optional:!1}],"osdManager.setSlotCameraEnabled":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.callPet":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.cancelFeed":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.feed":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.markFoodReplenished":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.playSound":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.resetDesiccant":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.setChildLock":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.setFeedSound":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.setIndicatorLight":[{name:`deviceId`,form:`single`,optional:!1}],"petFeeder.setVolume":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.addRetrainFrameFromRecording":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.backfillRetrainOrigins":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.clearTrackRelation":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.clearTracks":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.completeRetrainTrack":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.deleteDeviceEvents":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.deleteTracks":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.deselectRetrainFrame":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getActiveTracks":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getAudioEvents":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getEventDensity":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getEventDensityBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"pipelineAnalytics.getEventMedia":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getEventMediaFootprintByKind":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineAnalytics.getKeyEvents":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getKeyEventsBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"pipelineAnalytics.getMotionEvents":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getObjectEvents":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getRetrainExportUrl":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineAnalytics.getSensorEvents":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getTrack":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getTrackMedia":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.getTrainingExportSummary":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineAnalytics.getTrainingExportUrl":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineAnalytics.listArchivedDebugNotes":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineAnalytics.listBirthDecisions":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineAnalytics.listEventKinds":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.listEventKindsBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"pipelineAnalytics.listEventMedia":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.listOpsLog":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineAnalytics.listRecentTracks":[{name:`deviceIds`,form:`array`,optional:!1}],"pipelineAnalytics.listRetrainCorpusPage":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineAnalytics.listRetrainStaging":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineAnalytics.listTrackMedia":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.listTrackRelations":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.listTracks":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.ownersWithMedia":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.proposeRetrainAnnotations":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.proposeRetrainAnnotationsWithLlm":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.pruneEventsBefore":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.pruneTracksBefore":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.readLongTermSeries":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.rebuildObjectEmbeddings":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineAnalytics.reclaimDebugMedia":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineAnalytics.reconcileFromDisk":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.restageRetrainTrack":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.saveRetrainAnnotations":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.searchObjectEvents":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineAnalytics.selectRetrainFrames":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.setRetrainFrameComplete":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.setTrackFlags":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.setTrackPurity":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.setTrackRelation":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineAnalytics.wipeAllAnalytics":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineExecutor.clearModelBoundDeviceOverrides":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineExecutor.runPipeline":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineExecutor.runPipelineBatch":[{name:`deviceId`,form:`single`,optional:!0}],"pipelineOrchestrator.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.assignAudio":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.assignPipeline":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getAudioAssignment":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getCameraDetectionSource":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getCameraMetrics":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getCameraSettings":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getCameraStatus":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getCameraStatuses":[{name:`deviceIds`,form:`array`,optional:!0}],"pipelineOrchestrator.getCameraStepOverrides":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getCameraSwitches":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getPipelineAssignment":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.getPipelineDevicePin":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.requestOccupancyLook":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.resolvePipeline":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setCameraDetectionSource":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setCameraPipelineForAgent":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setCameraSensors":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setCameraStepOverride":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setCameraStepSettings":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setCameraStepToggle":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setCameraSwitch":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.setPipelineDevicePin":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.unassignAudio":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineOrchestrator.unassignPipeline":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.attachCamera":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.detachCamera":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.getCameraMetrics":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.getParkedTrackFrame":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.parkTrackFrame":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.releaseParkedTrackFrames":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.reportMotion":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.requestOccupancyBurst":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.runDetailSubtree":[{name:`deviceId`,form:`single`,optional:!1}],"pipelineRunner.runStatelessStep":[{name:`sourceDeviceId`,form:`single`,optional:!1}],"plateGallery.getPlateByTrack":[{name:`deviceId`,form:`single`,optional:!1}],"plateGallery.listPlates":[{name:`deviceId`,form:`single`,optional:!0}],"powerMeter.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"presence.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"pressureSensor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"privacyMask.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"privacyMask.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"privacyMask.setAudioEnabled":[{name:`deviceId`,form:`single`,optional:!1}],"privacyMask.setMask":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.captureHomeHere":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.continuousMove":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.deletePreset":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.getHomePreset":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.getHomeReturn":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.getPosition":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.getPresets":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.goHome":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.goToPreset":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.move":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.savePreset":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.setAutofocus":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.setHomePreset":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.setHomeReturn":[{name:`deviceId`,form:`single`,optional:!1}],"ptz.stop":[{name:`deviceId`,form:`single`,optional:!1}],"ptzAutotrack.getSettings":[{name:`deviceId`,form:`single`,optional:!1}],"ptzAutotrack.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"ptzAutotrack.setEnabled":[{name:`deviceId`,form:`single`,optional:!1}],"ptzAutotrack.setSettings":[{name:`deviceId`,form:`single`,optional:!1}],"reboot.reboot":[{name:`deviceId`,form:`single`,optional:!1}],"recording.getAvailability":[{name:`deviceId`,form:`single`,optional:!1}],"recording.getDaysWithRecordings":[{name:`deviceId`,form:`single`,optional:!1}],"recording.getPlayback":[{name:`deviceId`,form:`single`,optional:!1}],"recording.getPlaybackOptions":[{name:`deviceId`,form:`single`,optional:!1}],"recording.listSources":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.deleteFootprint":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.getAvailabilityBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"recordingArchive.getDaysWithRecordingsBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"recordingArchive.getDeviceConfig":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.listOpsLog":[{name:`deviceId`,form:`single`,optional:!0}],"recordingArchive.locateSegment":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.pruneFootage":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.readGopBytes":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.readSegmentBytes":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.readWindowBytes":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.reconcileLedgerAgainstDisk":[{name:`deviceId`,form:`single`,optional:!0}],"recordingArchive.relocateFootage":[{name:`deviceId`,form:`single`,optional:!0}],"recordingArchive.renderClip":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.renderGif":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.rescanStorage":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.setDeviceConfig":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.setDevicePlacement":[{name:`deviceId`,form:`single`,optional:!1}],"recordingArchive.startStorageMigrationMove":[{name:`deviceId`,form:`single`,optional:!0}],"recordingExport.createExport":[{name:`deviceId`,form:`single`,optional:!1}],"recordingExport.listExports":[{name:`deviceId`,form:`single`,optional:!0}],"recordingOnboard.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"recordingOnboard.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"recordingOnboard.setSettings":[{name:`deviceId`,form:`single`,optional:!1}],"recordingSignal.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"records.count":[{name:`deviceId`,form:`single`,optional:!0}],"records.deleteDevice":[{name:`deviceId`,form:`single`,optional:!1}],"records.deleteWhere":[{name:`deviceId`,form:`single`,optional:!0}],"records.histogram":[{name:`deviceId`,form:`single`,optional:!0}],"records.putMany":[{name:`records`,form:`object-array`,optional:!1,itemField:`deviceId`}],"records.query":[{name:`deviceId`,form:`single`,optional:!0}],"sceneMonitor.captureReference":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.createScene":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.deleteReference":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.deleteScene":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.listScenes":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.listScenesBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"sceneMonitor.recheckNow":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.resetScene":[{name:`deviceId`,form:`single`,optional:!1}],"sceneMonitor.updateScene":[{name:`deviceId`,form:`single`,optional:!1}],"scriptRunner.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"scriptRunner.run":[{name:`deviceId`,form:`single`,optional:!1}],"scriptRunner.stop":[{name:`deviceId`,form:`single`,optional:!1}],"smoke.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"snapshot.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"snapshot.getDebugState":[{name:`deviceId`,form:`single`,optional:!1}],"snapshot.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"snapshot.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"snapshot.getSnapshot":[{name:`deviceId`,form:`single`,optional:!1}],"snapshot.getSnapshotLinks":[{name:`targets`,form:`object-array`,optional:!1,itemField:`deviceId`}],"snapshot.getSnapshotOverview":[{name:`deviceIds`,form:`array`,optional:!1}],"snapshot.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"snapshot.invalidateCache":[{name:`deviceId`,form:`single`,optional:!1}],"storageAdmin.adoptRecords":[{name:`records`,form:`object-array`,optional:!1,itemField:`deviceId`}],"storageAdmin.readRecords":[{name:`deviceId`,form:`single`,optional:!0}],"streamBroker.acquireEgressTranscode":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.applyDeviceSettingsPatch":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.assignProfile":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.forgetDeviceHardware":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.getDeviceAudioMute":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.getDeviceLiveContribution":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.getDeviceSettingsContribution":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.getStreamWithCodec":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.produceEventMedia":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.publishCameraStream":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.renderPreBufferClip":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.reportStreamSignal":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.restartProfile":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.retractCameraStream":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.setDeviceAudioMute":[{name:`deviceId`,form:`single`,optional:!1}],"streamBroker.unassignProfile":[{name:`deviceId`,form:`single`,optional:!1}],"streamCatalog.getCatalog":[{name:`deviceId`,form:`single`,optional:!1}],"streamParams.getConfigSchema":[{name:`deviceId`,form:`single`,optional:!1}],"streamParams.getOptions":[{name:`deviceId`,form:`single`,optional:!1}],"streamParams.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"streamParams.setProfile":[{name:`deviceId`,form:`single`,optional:!1}],"switch.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"switch.setState":[{name:`deviceId`,form:`single`,optional:!1}],"tamper.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"temperatureSensor.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"training.canaryResult":[{name:`deviceIds`,form:`array`,optional:!1}],"update.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"vacuumControl.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"vacuumControl.locate":[{name:`deviceId`,form:`single`,optional:!1}],"vacuumControl.pause":[{name:`deviceId`,form:`single`,optional:!1}],"vacuumControl.returnToBase":[{name:`deviceId`,form:`single`,optional:!1}],"vacuumControl.setFanSpeed":[{name:`deviceId`,form:`single`,optional:!1}],"vacuumControl.start":[{name:`deviceId`,form:`single`,optional:!1}],"vacuumControl.stop":[{name:`deviceId`,form:`single`,optional:!1}],"valve.close":[{name:`deviceId`,form:`single`,optional:!1}],"valve.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"valve.open":[{name:`deviceId`,form:`single`,optional:!1}],"valve.setPosition":[{name:`deviceId`,form:`single`,optional:!1}],"valve.stop":[{name:`deviceId`,form:`single`,optional:!1}],"vibration.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"videoclips.dialClipStream":[{name:`deviceId`,form:`single`,optional:!1}],"videoclips.getClipPlayback":[{name:`deviceId`,form:`single`,optional:!1}],"videoclips.getPlaybackOptions":[{name:`deviceId`,form:`single`,optional:!1}],"videoclips.listClips":[{name:`deviceId`,form:`single`,optional:!1}],"videoclips.listSources":[{name:`deviceId`,form:`single`,optional:!1}],"videoclips.offerClipBytes":[{name:`deviceId`,form:`single`,optional:!1}],"videoclips.readClipBytes":[{name:`deviceId`,form:`single`,optional:!1}],"waterHeater.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"waterHeater.setAway":[{name:`deviceId`,form:`single`,optional:!1}],"waterHeater.setOperationMode":[{name:`deviceId`,form:`single`,optional:!1}],"waterHeater.setTargetTemp":[{name:`deviceId`,form:`single`,optional:!1}],"weather.getStatus":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.addIceCandidate":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.applyDownlinkProbe":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.closeSession":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.createSession":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.getIceCandidates":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.getSessionDebug":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.getSessionState":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.handleAnswer":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.handleOffer":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.hasAdaptiveBitrate":[{name:`deviceId`,form:`single`,optional:!1}],"webrtcSession.listStreams":[{name:`deviceId`,form:`single`,optional:!1}],"zoneAnalytics.getCameraHistory":[{name:`deviceId`,form:`single`,optional:!1}],"zoneAnalytics.getCurrentSnapshot":[{name:`deviceId`,form:`single`,optional:!1}],"zoneAnalytics.getCurrentSnapshotBatch":[{name:`deviceIds`,form:`array`,optional:!1}],"zoneAnalytics.getUnzonedHistory":[{name:`deviceId`,form:`single`,optional:!1}],"zoneAnalytics.getZoneHistory":[{name:`deviceId`,form:`single`,optional:!1}],"zoneRules.listRules":[{name:`deviceId`,form:`single`,optional:!1}],"zoneRules.setRules":[{name:`deviceId`,form:`single`,optional:!1}],"zones.addZone":[{name:`deviceId`,form:`single`,optional:!1}],"zones.listZones":[{name:`deviceId`,form:`single`,optional:!1}],"zones.removeZone":[{name:`deviceId`,form:`single`,optional:!1}],"zones.updateZone":[{name:`deviceId`,form:`single`,optional:!1}]}),y0=`addonSettings.getDeviceSettings,addonSettings.updateDeviceSettings,audioAnalyzer.attachDevice,audioAnalyzer.classify,audioAnalyzer.detachDevice,deviceAdoption.getStatus,deviceAdoption.release,deviceAdoption.resync,deviceExport.applyDeviceSettingsPatch,deviceExport.getDeviceLiveContribution,deviceExport.getDeviceSettingsContribution,deviceHistory.getDeviceEnabled,deviceHistory.listSeries,deviceHistory.query,deviceHistory.setDeviceEnabled,deviceManager.adoptionRelease,deviceManager.adoptionResync,deviceManager.applyInitialMeta,deviceManager.disable,deviceManager.enable,deviceManager.getBindings,deviceManager.getBindingsBatch,deviceManager.getChildren,deviceManager.getChildrenBatch,deviceManager.getConfigSchema,deviceManager.getDevice,deviceManager.getDeviceAggregate,deviceManager.getDeviceLiveInfoAggregate,deviceManager.getDeviceSettingsAggregate,deviceManager.getDeviceStatusAggregate,deviceManager.getDeviceStatusAggregateBatch,deviceManager.getLinkedDevices,deviceManager.getLinkedDevicesBatch,deviceManager.getSettingsSchema,deviceManager.getStreamProfileMap,deviceManager.getStreamSources,deviceManager.getWireableFields,deviceManager.getWrapperActivation,deviceManager.listAll,deviceManager.loadConfig,deviceManager.loadMeta,deviceManager.loadRuntimeState,deviceManager.persistConfig,deviceManager.probeStreams,deviceManager.registerDevice,deviceManager.remove,deviceManager.removeDevice,deviceManager.runDeviceAction,deviceManager.setChildLayout,deviceManager.setDisabled,deviceManager.setDisplay,deviceManager.setIntegrationId,deviceManager.setLinkDeviceId,deviceManager.setLocation,deviceManager.setMetadata,deviceManager.setName,deviceManager.setPrimaryChildEntityId,deviceManager.setRole,deviceManager.setStreamProfileMap,deviceManager.setType,deviceManager.setWrapperActive,deviceManager.testField,deviceManager.updateConfig,deviceManager.updateDeviceField,deviceManager.updateDeviceFieldsBatch,deviceRemovalHook.onDeviceRemoved,deviceState.claimFields,deviceState.getCapSlice,deviceState.getNativeCapSlice,deviceState.getSnapshot,deviceState.patchOwnedFields,deviceState.releaseClaim,deviceState.setCapSlice,faceGallery.getFaceByTrack,faceGallery.listRecentFaces,keychain.deleteDeviceScope,networkQuality.getDeviceStats,networkQuality.reportClientStats,notificationRules.getAlarmSensors,notificationRules.setDeviceMuted,osdManager.clearSlotBinding,osdManager.copyDeviceConfiguration,osdManager.getDeviceOsd,osdManager.getSourceCatalog,osdManager.previewSlot,osdManager.renderDevice,osdManager.setSlotBinding,osdManager.setSlotCameraEnabled,pipelineExecutor.clearModelBoundDeviceOverrides,pipelineExecutor.runPipeline,pipelineExecutor.runPipelineBatch,pipelineOrchestrator.applyDeviceSettingsPatch,pipelineOrchestrator.assignAudio,pipelineOrchestrator.assignPipeline,pipelineOrchestrator.getAudioAssignment,pipelineOrchestrator.getCameraDetectionSource,pipelineOrchestrator.getCameraMetrics,pipelineOrchestrator.getCameraSettings,pipelineOrchestrator.getCameraStatus,pipelineOrchestrator.getCameraStatuses,pipelineOrchestrator.getCameraStepOverrides,pipelineOrchestrator.getCameraSwitches,pipelineOrchestrator.getDeviceLiveContribution,pipelineOrchestrator.getDeviceSettingsContribution,pipelineOrchestrator.getPipelineAssignment,pipelineOrchestrator.getPipelineDevicePin,pipelineOrchestrator.requestOccupancyLook,pipelineOrchestrator.resolvePipeline,pipelineOrchestrator.setCameraDetectionSource,pipelineOrchestrator.setCameraPipelineForAgent,pipelineOrchestrator.setCameraSensors,pipelineOrchestrator.setCameraStepOverride,pipelineOrchestrator.setCameraStepSettings,pipelineOrchestrator.setCameraStepToggle,pipelineOrchestrator.setCameraSwitch,pipelineOrchestrator.setPipelineDevicePin,pipelineOrchestrator.unassignAudio,pipelineOrchestrator.unassignPipeline,pipelineRunner.attachCamera,pipelineRunner.detachCamera,pipelineRunner.getCameraMetrics,pipelineRunner.getParkedTrackFrame,pipelineRunner.parkTrackFrame,pipelineRunner.releaseParkedTrackFrames,pipelineRunner.reportMotion,pipelineRunner.requestOccupancyBurst,pipelineRunner.runDetailSubtree,pipelineRunner.runStatelessStep,plateGallery.getPlateByTrack,plateGallery.listPlates,recordingArchive.applyDeviceSettingsPatch,recordingArchive.deleteFootprint,recordingArchive.getAvailabilityBatch,recordingArchive.getDaysWithRecordingsBatch,recordingArchive.getDeviceConfig,recordingArchive.getDeviceLiveContribution,recordingArchive.getDeviceSettingsContribution,recordingArchive.getStatus,recordingArchive.listOpsLog,recordingArchive.locateSegment,recordingArchive.pruneFootage,recordingArchive.readGopBytes,recordingArchive.readSegmentBytes,recordingArchive.readWindowBytes,recordingArchive.reconcileLedgerAgainstDisk,recordingArchive.relocateFootage,recordingArchive.renderClip,recordingArchive.renderGif,recordingArchive.rescanStorage,recordingArchive.setDeviceConfig,recordingArchive.setDevicePlacement,recordingArchive.startStorageMigrationMove,recordingExport.createExport,recordingExport.listExports,records.count,records.deleteDevice,records.deleteWhere,records.histogram,records.putMany,records.query,storageAdmin.adoptRecords,storageAdmin.readRecords,streamBroker.acquireEgressTranscode,streamBroker.applyDeviceSettingsPatch,streamBroker.assignProfile,streamBroker.forgetDeviceHardware,streamBroker.getDeviceAudioMute,streamBroker.getDeviceLiveContribution,streamBroker.getDeviceSettingsContribution,streamBroker.getStreamWithCodec,streamBroker.produceEventMedia,streamBroker.publishCameraStream,streamBroker.renderPreBufferClip,streamBroker.reportStreamSignal,streamBroker.restartProfile,streamBroker.retractCameraStream,streamBroker.setDeviceAudioMute,streamBroker.unassignProfile,training.canaryResult`.split(`,`),b0=Object.freeze({broker:`broker`,"calendar-source":`calendar`,"device-export":`device-export`,llm:`ai`,"mesh-network":`mesh`,"mqtt-broker":`broker`,"network-access":`ingress`,"smtp-provider":`email`}),x0=[`broker`,`calendar-source`,`device-export`,`llm`,`mesh-network`,`mqtt-broker`,`network-access`,`smtp-provider`];function S0(e){let t=[];for(let[n,r]of Object.entries(b0))r===e&&t.push(n);return t}var C0={"air-quality-sensor":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"alarm-panel":{durability:`restored`,volatileFields:[`lastChangedAt`]},"ambient-light-sensor":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"audio-metrics":{durability:`session`,volatileFields:[]},"automation-control":{durability:`session`,volatileFields:[]},battery:{durability:`restored`,volatileFields:[`lastUpdated`]},binary:{durability:`restored`,volatileFields:[`lastChangedAt`]},brightness:{durability:`session`,volatileFields:[]},"camera-streams":{durability:`session`,volatileFields:[]},"carbon-monoxide":{durability:`restored`,volatileFields:[`lastChangedAt`]},"climate-control":{durability:`session`,volatileFields:[]},color:{durability:`session`,volatileFields:[]},connectivity:{durability:`restored`,volatileFields:[`lastChangedAt`]},consumables:{durability:`restored`,volatileFields:[`lastChangedAt`,`lastFetchedAt`]},contact:{durability:`restored`,volatileFields:[`lastChangedAt`]},control:{durability:`session`,volatileFields:[]},cover:{durability:`restored`,volatileFields:[`lastChangedAt`]},"day-night":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"device-discovery":{durability:`session`,volatileFields:[]},"device-status":{durability:`restored`,volatileFields:[`lastChangedAt`]},dishwasher:{durability:`session`,volatileFields:[]},doorbell:{durability:`restored`,volatileFields:[]},"enum-sensor":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"event-emitter":{durability:`session`,volatileFields:[]},"fan-control":{durability:`session`,volatileFields:[]},"feature-probe":{durability:`session`,volatileFields:[]},flood:{durability:`restored`,volatileFields:[`lastChangedAt`]},gas:{durability:`restored`,volatileFields:[`lastChangedAt`]},"heating-valve":{durability:`session`,volatileFields:[`lastFetchedAt`]},humidifier:{durability:`session`,volatileFields:[]},"humidity-sensor":{durability:`restored`,volatileFields:[`lastFetchedAt`]},image:{durability:`session`,volatileFields:[]},"image-settings":{durability:`restored`,volatileFields:[`lastFetchedAt`]},intercom:{durability:`session`,volatileFields:[]},"lawn-mower-control":{durability:`session`,volatileFields:[]},"lock-control":{durability:`restored`,volatileFields:[`lastChangedAt`]},"media-player":{durability:`session`,volatileFields:[]},motion:{durability:`session`,volatileFields:[]},"motion-trigger":{durability:`session`,volatileFields:[]},"motion-zones":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"native-object-detection":{durability:`restored`,volatileFields:[`lastFetchedAt`]},navigation:{durability:`session`,volatileFields:[]},"network-link":{durability:`restored`,volatileFields:[`lastUpdated`]},notifier:{durability:`session`,volatileFields:[]},"numeric-sensor":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"pet-feeder":{durability:`session`,volatileFields:[]},"power-meter":{durability:`restored`,volatileFields:[`lastFetchedAt`]},presence:{durability:`restored`,volatileFields:[`lastChangedAt`]},"pressure-sensor":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"privacy-mask":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"ptz-autotrack":{durability:`session`,volatileFields:[]},"recording-onboard":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"recording-signal":{durability:`session`,volatileFields:[]},"scene-monitor":{durability:`session`,volatileFields:[]},"script-runner":{durability:`session`,volatileFields:[]},smoke:{durability:`restored`,volatileFields:[`lastChangedAt`]},"stream-catalog":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"stream-params":{durability:`restored`,volatileFields:[`lastFetchedAt`]},"stream-signals":{durability:`session`,volatileFields:[]},switch:{durability:`restored`,volatileFields:[`lastChangedAt`]},tamper:{durability:`restored`,volatileFields:[`lastChangedAt`]},"temperature-sensor":{durability:`restored`,volatileFields:[`lastFetchedAt`]},update:{durability:`session`,volatileFields:[]},"vacuum-control":{durability:`session`,volatileFields:[]},valve:{durability:`session`,volatileFields:[]},vibration:{durability:`restored`,volatileFields:[`lastChangedAt`]},"water-heater":{durability:`session`,volatileFields:[]},weather:{durability:`session`,volatileFields:[]},"zone-analytics":{durability:`session`,volatileFields:[]},"zone-rules":{durability:`restored`,volatileFields:[]},zones:{durability:`restored`,volatileFields:[]}};function w0(e){return C0[e]??T0}var T0={durability:`session`,volatileFields:[]};function E0(e){return w0(e).durability===`restored`}var D0=`air-quality-sensor.alarm-panel.ambient-light-sensor.battery.binary.carbon-monoxide.connectivity.consumables.contact.cover.day-night.device-status.doorbell.enum-sensor.flood.gas.humidity-sensor.image-settings.lock-control.motion-zones.native-object-detection.network-link.numeric-sensor.power-meter.presence.pressure-sensor.privacy-mask.recording-onboard.smoke.stream-catalog.stream-params.switch.tamper.temperature-sensor.vibration.zone-rules.zones`.split(`.`),O0=5*6e4;function k0(e){return Math.floor(e/O0)*O0}function A0(e){return e.kind===`device`?`d:${e.deviceId}`:`n:${e.nodeId}`}function j0(e,t,n){return`${e}\u0000${A0(t)}\u0000${n}`}function M0(e){return{key:e.key,subject:e.subject,scope:e.scope,bucketStart:e.bucketStart,samples:e.samples,sum:e.sum,min:e.min,max:e.max,last:e.last,lastTs:e.lastTs}}var N0=class{open=new Map;requeued=new Map;note(e,t,n,r,i){if(!Number.isFinite(r)||!Number.isFinite(i))return;let a=k0(i),o=`${j0(e,t,n)}\u0000${a}`,s=this.open.get(o);if(s===void 0){this.open.set(o,{key:e,subject:t,scope:n,bucketStart:a,samples:1,sum:r,min:r,max:r,last:r,lastTs:i});return}s.samples+=1,s.sum+=r,r<s.min&&(s.min=r),r>s.max&&(s.max=r),i>=s.lastTs&&(s.last=r,s.lastTs=i)}takeClosed(e){let t=[];for(let[n,r]of this.open)r.bucketStart+3e5<=e&&(t.push(M0(r)),this.open.delete(n));for(let e of this.requeued.values())t.push(...e);return this.requeued.clear(),t.toSorted((e,t)=>e.bucketStart-t.bucketStart)}requeue(e){let t=[];for(let n of e){let e=j0(n.key,n.subject,n.scope),r=[...this.requeued.get(e)??[],n].toSorted((e,t)=>e.bucketStart-t.bucketStart);for(;r.length>12;){let e=r.shift();e!==void 0&&t.push(e)}this.requeued.set(e,r)}return t}pendingBucketCount(){let e=this.open.size;for(let t of this.requeued.values())e+=t.length;return e}},P0={"air-quality-sensor":{co2Ppm:{kind:`gauge`,unit:`ppm`,deadband:5},vocPpb:{kind:`gauge`,unit:`ppb`,deadband:5},pm25:{kind:`gauge`,unit:`ug/m3`,deadband:1},pm10:{kind:`gauge`,unit:`ug/m3`,deadband:1},aqi:{kind:`gauge`,unit:`count`,deadband:1}},"ambient-light-sensor":{lux:{kind:`gauge`,unit:`lx`,deadbandPct:10,minIntervalMs:6e4}},battery:{percentage:{kind:`gauge`,unit:`%`}},binary:{on:{kind:`boolean`}},brightness:{percentage:{kind:`gauge`,unit:`%`,minIntervalMs:0}},"carbon-monoxide":{detected:{kind:`boolean`}},"climate-control":{currentTemp:{kind:`gauge`,unit:`°C`,deadband:.1},currentHumidity:{kind:`gauge`,unit:`%`,deadband:.5},target:{kind:`gauge`,unit:`°C`,minIntervalMs:0},targetHigh:{kind:`gauge`,unit:`°C`,minIntervalMs:0},targetLow:{kind:`gauge`,unit:`°C`,minIntervalMs:0}},contact:{entryOpen:{kind:`boolean`}},cover:{position:{kind:`gauge`,unit:`%`,minIntervalMs:0}},"device-status":{online:{kind:`boolean`}},dishwasher:{progressPercent:{kind:`gauge`,unit:`%`,deadband:2}},"fan-control":{percentage:{kind:`gauge`,unit:`%`,minIntervalMs:0},oscillating:{kind:`boolean`}},flood:{flooded:{kind:`boolean`}},gas:{detected:{kind:`boolean`}},"heating-valve":{position:{kind:`gauge`,unit:`%`,deadband:1}},humidifier:{currentHumidity:{kind:`gauge`,unit:`%`,deadband:.5},on:{kind:`boolean`}},"humidity-sensor":{percent:{kind:`gauge`,unit:`%`,deadband:.5}},"lawn-mower-control":{batteryLevel:{kind:`gauge`,unit:`%`,deadband:2}},motion:{detected:{kind:`boolean`,excludeDeviceTypes:[R.Camera]}},"network-link":{signalPercent:{kind:`gauge`,unit:`%`,deadband:3,minIntervalMs:6e4},rssiDbm:{kind:`gauge`,unit:`dBm`,deadband:2,minIntervalMs:6e4}},"numeric-sensor":{value:{kind:`gauge`,unitFrom:`unit`,minIntervalMs:3e4}},"pet-feeder":{foodLevel:{kind:`gauge`},food1:{kind:`gauge`},food2:{kind:`gauge`},batteryPower:{kind:`gauge`,unit:`%`,deadband:2},desiccantLeftDays:{kind:`gauge`,unit:`days`}},"power-meter":{watts:{kind:`gauge`,unit:`W`,deadband:1,minIntervalMs:3e4},kwhTotal:{kind:`counter`,unit:`kWh`,deadband:.01,minIntervalMs:6e4},volts:{kind:`gauge`,unit:`V`,deadband:1,minIntervalMs:3e4},amps:{kind:`gauge`,unit:`A`,deadband:.05,minIntervalMs:3e4},va:{kind:`gauge`,unit:`VA`,deadband:1,minIntervalMs:3e4},powerFactor:{kind:`gauge`,unit:`ratio`,deadband:.01,minIntervalMs:6e4}},presence:{batteryPercent:{kind:`gauge`,unit:`%`,deadband:1}},"pressure-sensor":{hpa:{kind:`gauge`,unit:`hPa`,deadband:.1}},smoke:{detected:{kind:`boolean`}},switch:{on:{kind:`boolean`}},tamper:{tampered:{kind:`boolean`}},"temperature-sensor":{celsius:{kind:`gauge`,unit:`°C`,deadband:.1}},"vacuum-control":{batteryLevel:{kind:`gauge`,unit:`%`,deadband:2},"cleanWater.level":{kind:`gauge`,unit:`%`,deadband:2},"dirtyWater.level":{kind:`gauge`,unit:`%`,deadband:2},"detergent.level":{kind:`gauge`,unit:`%`,deadband:2},"dustBin.level":{kind:`gauge`,unit:`%`,deadband:2}},valve:{position:{kind:`gauge`,unit:`%`,minIntervalMs:0}},vibration:{detected:{kind:`boolean`}},"water-heater":{currentTemp:{kind:`gauge`,unit:`°C`,deadband:.5},targetTemp:{kind:`gauge`,unit:`°C`,minIntervalMs:0}},weather:{temperature:{kind:`gauge`,unitFrom:`temperatureUnit`,deadband:.2},humidity:{kind:`gauge`,unit:`%`,deadband:1},pressure:{kind:`gauge`,unitFrom:`pressureUnit`,deadband:.5},windSpeed:{kind:`gauge`,unitFrom:`windSpeedUnit`,deadband:.5}}},F0=`alarm-panel.audio-metrics.automation-control.camera-streams.color.connectivity.consumables.control.day-night.device-discovery.doorbell.enum-sensor.event-emitter.feature-probe.image.image-settings.intercom.lock-control.media-player.motion-trigger.motion-zones.native-object-detection.navigation.notifier.privacy-mask.ptz-autotrack.recording-onboard.recording-signal.scene-monitor.script-runner.stream-catalog.stream-params.stream-signals.update.zone-analytics.zone-rules.zones`.split(`.`);function I0(e){return P0[e]??{}}var L0=[{id:`camera-viewer`,label:`Camera viewer`,description:"Read-only over every device — live streams, recordings, motion events, battery state. Pair with a `device` grant (an `ids` / `types` / `locations` selector) to restrict to specific cameras.",rows:[{type:`category`,target:`device`,access:[`view`]}]},{id:`camera-operator`,label:`Camera operator`,description:"Everything `camera-viewer` does plus live control of every granted camera — PTZ movement, intercom talk-back and on-demand snapshots. Cannot delete devices, and grants nothing on system-scope caps (recording control, users, addons).",rows:[{type:`category`,target:`device`,access:[`view`,`create`]}]},{id:`full-management`,label:`Full management`,description:`Complete device + system control short of admin: view/create/delete on every device and every system capability. Use for a trusted operator who manages the whole deployment but should not hold the admin bypass.`,rows:[{type:`category`,target:`device`,access:[`view`,`create`,`delete`]},{type:`category`,target:`system`,access:[`view`,`create`,`delete`]}]},{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:`motion-detection`,access:[`view`]},{type:`capability`,target:`audio-analysis`,access:[`view`]}]}];function R0(e){function t(t,n,r,i,a){return U1(e,t,n,r,i,a)}return{addonPages:{listPages:e=>t(`addonPages`,`listPages`,`query`,e)},addons:{list:e=>t(`addons`,`list`,`query`,e),getLogs:e=>t(`addons`,`getLogs`,`query`,e),listPackages:e=>t(`addons`,`listPackages`,`query`,e),installPackage:e=>t(`addons`,`installPackage`,`mutation`,e),installFromWorkspace:e=>t(`addons`,`installFromWorkspace`,`mutation`,e),isWorkspaceAvailable:e=>t(`addons`,`isWorkspaceAvailable`,`query`,e),listWorkspacePackages:e=>t(`addons`,`listWorkspacePackages`,`query`,e),uninstallPackage:e=>t(`addons`,`uninstallPackage`,`mutation`,e),listInstallations:e=>t(`addons`,`listInstallations`,`query`,e),reloadPackages:e=>t(`addons`,`reloadPackages`,`mutation`,e),searchAvailable:e=>t(`addons`,`searchAvailable`,`query`,e),listUpdates:e=>t(`addons`,`listUpdates`,`query`,e),updatePackage:e=>t(`addons`,`updatePackage`,`mutation`,e),rollbackPackage:e=>t(`addons`,`rollbackPackage`,`mutation`,e),forceRefresh:e=>t(`addons`,`forceRefresh`,`mutation`,e),restartServer:e=>t(`addons`,`restartServer`,`mutation`,e),getLastRestart:e=>t(`addons`,`getLastRestart`,`query`,e),listFrameworkPackages:e=>t(`addons`,`listFrameworkPackages`,`query`,e),listCapabilityProviders:e=>t(`addons`,`listCapabilityProviders`,`query`,e),setCapabilityProviderEnabled:e=>t(`addons`,`setCapabilityProviderEnabled`,`mutation`,e),getVersions:e=>t(`addons`,`getVersions`,`query`,e),restartAddon:e=>t(`addons`,`restartAddon`,`mutation`,e),retryLoad:e=>t(`addons`,`retryLoad`,`mutation`,e),getAutoUpdateSettings:e=>t(`addons`,`getAutoUpdateSettings`,`query`,e),setAutoUpdateSettings:e=>t(`addons`,`setAutoUpdateSettings`,`mutation`,e),getAddonAutoUpdate:e=>t(`addons`,`getAddonAutoUpdate`,`query`,e),setAddonAutoUpdate:e=>t(`addons`,`setAddonAutoUpdate`,`mutation`,e),applyAutoUpdateToAll:e=>t(`addons`,`applyAutoUpdateToAll`,`mutation`,e),custom:e=>t(`addons`,`custom`,`mutation`,e),startJob:e=>t(`addons`,`startJob`,`mutation`,e),getJob:e=>t(`addons`,`getJob`,`query`,e),listJobs:e=>t(`addons`,`listJobs`,`query`,e),cancelJob:e=>t(`addons`,`cancelJob`,`mutation`,e),onAddonLogs:(e,n)=>t(`addons`,`onAddonLogs`,`subscription`,e,n)},addonSettings:{getGlobalSettings:e=>t(`addonSettings`,`getGlobalSettings`,`query`,e),updateGlobalSettings:e=>t(`addonSettings`,`updateGlobalSettings`,`mutation`,e),getIntegrationSettings:e=>t(`addonSettings`,`getIntegrationSettings`,`query`,e)},addonWidgets:{listWidgets:e=>t(`addonWidgets`,`listWidgets`,`query`,e)},alerts:{emit:e=>t(`alerts`,`emit`,`mutation`,e),update:e=>t(`alerts`,`update`,`mutation`,e),list:e=>t(`alerts`,`list`,`query`,e),getUnreadCount:e=>t(`alerts`,`getUnreadCount`,`query`,e),markRead:e=>t(`alerts`,`markRead`,`mutation`,e),markAllRead:e=>t(`alerts`,`markAllRead`,`mutation`,e),dismiss:e=>t(`alerts`,`dismiss`,`mutation`,e)},audioAnalyzer:{analyseChunk:e=>t(`audioAnalyzer`,`analyseChunk`,`mutation`,e),classify:e=>t(`audioAnalyzer`,`classify`,`query`,e),attachDevice:e=>t(`audioAnalyzer`,`attachDevice`,`mutation`,e),isReady:e=>t(`audioAnalyzer`,`isReady`,`query`,e),dispose:e=>t(`audioAnalyzer`,`dispose`,`mutation`,e),reprobeAudioEngine:e=>t(`audioAnalyzer`,`reprobeAudioEngine`,`mutation`,e)},audioCodec:{listSupportedCodecs:e=>t(`audioCodec`,`listSupportedCodecs`,`query`,e),canHandle:e=>t(`audioCodec`,`canHandle`,`query`,e),createDecodeSession:e=>t(`audioCodec`,`createDecodeSession`,`mutation`,e),createEncodeSession:e=>t(`audioCodec`,`createEncodeSession`,`mutation`,e),closeSession:e=>t(`audioCodec`,`closeSession`,`mutation`,e),pushEncodedFrame:e=>t(`audioCodec`,`pushEncodedFrame`,`mutation`,e),pullPcm:e=>t(`audioCodec`,`pullPcm`,`query`,e),pushPcm:e=>t(`audioCodec`,`pushPcm`,`mutation`,e),pullEncoded:e=>t(`audioCodec`,`pullEncoded`,`query`,e),flushEncode:e=>t(`audioCodec`,`flushEncode`,`mutation`,e),listActiveSessions:e=>t(`audioCodec`,`listActiveSessions`,`query`,e)},backup:{listDestinations:e=>t(`backup`,`listDestinations`,`query`,e),trigger:e=>t(`backup`,`trigger`,`mutation`,e),listRuns:e=>t(`backup`,`listRuns`,`query`,e),cancel:e=>t(`backup`,`cancel`,`mutation`,e),list:e=>t(`backup`,`list`,`query`,e),listLocations:e=>t(`backup`,`listLocations`,`query`,e),getEntries:e=>t(`backup`,`getEntries`,`query`,e),restore:e=>t(`backup`,`restore`,`mutation`,e),getEncryption:e=>t(`backup`,`getEncryption`,`query`,e),setupEncryption:e=>t(`backup`,`setupEncryption`,`mutation`,e),disableEncryption:e=>t(`backup`,`disableEncryption`,`mutation`,e),checkBackupKey:e=>t(`backup`,`checkBackupKey`,`mutation`,e),delete:e=>t(`backup`,`delete`,`mutation`,e),listArchives:e=>t(`backup`,`listArchives`,`query`,e),upsertDestinationPolicy:e=>t(`backup`,`upsertDestinationPolicy`,`mutation`,e),previewSchedule:e=>t(`backup`,`previewSchedule`,`query`,e),listSchedules:e=>t(`backup`,`listSchedules`,`query`,e),listAvailableDatabases:e=>t(`backup`,`listAvailableDatabases`,`query`,e),upsertSchedule:e=>t(`backup`,`upsertSchedule`,`mutation`,e),deleteSchedule:e=>t(`backup`,`deleteSchedule`,`mutation`,e)},broker:{list:e=>t(`broker`,`list`,`query`,e),get:e=>t(`broker`,`get`,`query`,e),listProviders:e=>t(`broker`,`listProviders`,`query`,e),add:e=>t(`broker`,`add`,`mutation`,e),remove:e=>t(`broker`,`remove`,`mutation`,e),testConnection:e=>t(`broker`,`testConnection`,`mutation`,e),getSettings:e=>t(`broker`,`getSettings`,`query`,e),setSettings:e=>t(`broker`,`setSettings`,`mutation`,e),getBrokerConfig:e=>t(`broker`,`getBrokerConfig`,`query`,e),getSettingsSchema:e=>t(`broker`,`getSettingsSchema`,`query`,e),testSettings:e=>t(`broker`,`testSettings`,`mutation`,e),publish:e=>t(`broker`,`publish`,`mutation`,e),subscribe:e=>t(`broker`,`subscribe`,`mutation`,e),unsubscribe:e=>t(`broker`,`unsubscribe`,`mutation`,e),getState:e=>t(`broker`,`getState`,`query`,e),getStatus:e=>t(`broker`,`getStatus`,`query`,e)},calendars:{listCalendars:e=>t(`calendars`,`listCalendars`,`query`,e),listEvents:e=>t(`calendars`,`listEvents`,`query`,e),getPreferences:e=>t(`calendars`,`getPreferences`,`query`,e),setCalendarPreference:e=>t(`calendars`,`setCalendarPreference`,`mutation`,e)},connectionTest:{testSettings:e=>t(`connectionTest`,`testSettings`,`mutation`,e),describeTest:e=>t(`connectionTest`,`describeTest`,`query`,e)},coreBlocks:{list:e=>t(`coreBlocks`,`list`,`query`,e),get:e=>t(`coreBlocks`,`get`,`query`,e),create:e=>t(`coreBlocks`,`create`,`mutation`,e),update:e=>t(`coreBlocks`,`update`,`mutation`,e),delete:e=>t(`coreBlocks`,`delete`,`mutation`,e),setEnabled:e=>t(`coreBlocks`,`setEnabled`,`mutation`,e),restart:e=>t(`coreBlocks`,`restart`,`mutation`,e),compile:e=>t(`coreBlocks`,`compile`,`mutation`,e),getBlockSettings:e=>t(`coreBlocks`,`getBlockSettings`,`query`,e),updateBlockSettings:e=>t(`coreBlocks`,`updateBlockSettings`,`mutation`,e),migrateRawSecrets:e=>t(`coreBlocks`,`migrateRawSecrets`,`mutation`,e),getTypeDefs:e=>t(`coreBlocks`,`getTypeDefs`,`query`,e),createComposition:e=>t(`coreBlocks`,`createComposition`,`mutation`,e),updateComposition:e=>t(`coreBlocks`,`updateComposition`,`mutation`,e),getComposition:e=>t(`coreBlocks`,`getComposition`,`query`,e),listCompositions:e=>t(`coreBlocks`,`listCompositions`,`query`,e),getCustomization:e=>t(`coreBlocks`,`getCustomization`,`query`,e),listComposableCaps:e=>t(`coreBlocks`,`listComposableCaps`,`query`,e),validateComposition:e=>t(`coreBlocks`,`validateComposition`,`mutation`,e)},decoder:{getInfo:e=>t(`decoder`,`getInfo`,`query`,e),reprobeHwaccel:e=>t(`decoder`,`reprobeHwaccel`,`mutation`,e)},deviceAdoption:{listCandidateFilters:e=>t(`deviceAdoption`,`listCandidateFilters`,`query`,e),listCandidates:e=>t(`deviceAdoption`,`listCandidates`,`query`,e),getCandidate:e=>t(`deviceAdoption`,`getCandidate`,`query`,e),refresh:e=>t(`deviceAdoption`,`refresh`,`mutation`,e),adopt:e=>t(`deviceAdoption`,`adopt`,`mutation`,e),release:e=>t(`deviceAdoption`,`release`,`mutation`,e),resync:e=>t(`deviceAdoption`,`resync`,`mutation`,e)},deviceCredentials:{listDeviceCredentials:e=>t(`deviceCredentials`,`listDeviceCredentials`,`query`,e),startEnrollment:e=>t(`deviceCredentials`,`startEnrollment`,`mutation`,e),revokeDeviceCredential:e=>t(`deviceCredentials`,`revokeDeviceCredential`,`mutation`,e),getDeviceCertificateSettings:e=>t(`deviceCredentials`,`getDeviceCertificateSettings`,`query`,e),setDeviceCertificateSettings:e=>t(`deviceCredentials`,`setDeviceCertificateSettings`,`mutation`,e),deleteDeviceCredential:e=>t(`deviceCredentials`,`deleteDeviceCredential`,`mutation`,e),getDeviceCaStatus:e=>t(`deviceCredentials`,`getDeviceCaStatus`,`query`,e),renameDeviceCredential:e=>t(`deviceCredentials`,`renameDeviceCredential`,`mutation`,e)},deviceExport:{getStatus:e=>t(`deviceExport`,`getStatus`,`query`,e),listSupportedDeviceKinds:e=>t(`deviceExport`,`listSupportedDeviceKinds`,`query`,e),listExposedDevices:e=>t(`deviceExport`,`listExposedDevices`,`query`,e),exposeDevice:e=>t(`deviceExport`,`exposeDevice`,`mutation`,e),unexposeDevice:e=>t(`deviceExport`,`unexposeDevice`,`mutation`,e)},deviceHistory:{listNodeSeries:e=>t(`deviceHistory`,`listNodeSeries`,`query`,e),queryNode:e=>t(`deviceHistory`,`queryNode`,`query`,e),declareSeries:e=>t(`deviceHistory`,`declareSeries`,`mutation`,e),record:e=>t(`deviceHistory`,`record`,`mutation`,e),recordBuckets:e=>t(`deviceHistory`,`recordBuckets`,`mutation`,e),getStatus:e=>t(`deviceHistory`,`getStatus`,`query`,e)},deviceManager:{allocateDeviceId:e=>t(`deviceManager`,`allocateDeviceId`,`mutation`,e),migrateDevice:e=>t(`deviceManager`,`migrateDevice`,`mutation`,e),registerDevice:e=>t(`deviceManager`,`registerDevice`,`mutation`,e),removeDevice:e=>t(`deviceManager`,`removeDevice`,`mutation`,e),persistConfig:e=>t(`deviceManager`,`persistConfig`,`mutation`,e),getRoleDisplayDefaults:e=>t(`deviceManager`,`getRoleDisplayDefaults`,`query`,e),setRoleDisplayDefaults:e=>t(`deviceManager`,`setRoleDisplayDefaults`,`mutation`,e),listLocations:e=>t(`deviceManager`,`listLocations`,`query`,e),addLocation:e=>t(`deviceManager`,`addLocation`,`mutation`,e),removeLocation:e=>t(`deviceManager`,`removeLocation`,`mutation`,e),renameLocation:e=>t(`deviceManager`,`renameLocation`,`mutation`,e),listLocationIcons:e=>t(`deviceManager`,`listLocationIcons`,`query`,e),setLocationIcon:e=>t(`deviceManager`,`setLocationIcon`,`mutation`,e),listLocationDescriptions:e=>t(`deviceManager`,`listLocationDescriptions`,`query`,e),setLocationDescription:e=>t(`deviceManager`,`setLocationDescription`,`mutation`,e),listSiteZones:e=>t(`deviceManager`,`listSiteZones`,`query`,e),setSiteZone:e=>t(`deviceManager`,`setSiteZone`,`mutation`,e),removeSiteZone:e=>t(`deviceManager`,`removeSiteZone`,`mutation`,e),renameSiteZone:e=>t(`deviceManager`,`renameSiteZone`,`mutation`,e),setLocationZone:e=>t(`deviceManager`,`setLocationZone`,`mutation`,e),listPersistedByAddon:e=>t(`deviceManager`,`listPersistedByAddon`,`query`,e),listAll:e=>t(`deviceManager`,`listAll`,`query`,e),getChildren:e=>t(`deviceManager`,`getChildren`,`query`,e),getChildrenBatch:e=>t(`deviceManager`,`getChildrenBatch`,`query`,e),getLinkedDevicesBatch:e=>t(`deviceManager`,`getLinkedDevicesBatch`,`query`,e),listDeletedSince:e=>t(`deviceManager`,`listDeletedSince`,`query`,e),cleanupDeletedDevicesData:e=>t(`deviceManager`,`cleanupDeletedDevicesData`,`mutation`,e),removeByIntegration:e=>t(`deviceManager`,`removeByIntegration`,`mutation`,e),getBindingsBatch:e=>t(`deviceManager`,`getBindingsBatch`,`query`,e),getAllBindings:e=>t(`deviceManager`,`getAllBindings`,`query`,e),listDeviceIdsByCaps:e=>t(`deviceManager`,`listDeviceIdsByCaps`,`query`,e),listWrappersForCap:e=>t(`deviceManager`,`listWrappersForCap`,`query`,e),listBindableCapsForDeviceType:e=>t(`deviceManager`,`listBindableCapsForDeviceType`,`query`,e),discoverDevices:e=>t(`deviceManager`,`discoverDevices`,`mutation`,e),adoptDevice:e=>t(`deviceManager`,`adoptDevice`,`mutation`,e),getCreationSchema:e=>t(`deviceManager`,`getCreationSchema`,`query`,e),createDevice:e=>t(`deviceManager`,`createDevice`,`mutation`,e),testCreationField:e=>t(`deviceManager`,`testCreationField`,`mutation`,e),adoptionListCandidateFilters:e=>t(`deviceManager`,`adoptionListCandidateFilters`,`query`,e),adoptionListCandidates:e=>t(`deviceManager`,`adoptionListCandidates`,`query`,e),adoptionRefresh:e=>t(`deviceManager`,`adoptionRefresh`,`mutation`,e),adoptionAdopt:e=>t(`deviceManager`,`adoptionAdopt`,`mutation`,e),adoptionRelease:e=>t(`deviceManager`,`adoptionRelease`,`mutation`,e),adoptionStartJob:e=>t(`deviceManager`,`adoptionStartJob`,`mutation`,e),adoptionListJobs:e=>t(`deviceManager`,`adoptionListJobs`,`query`,e),adoptionCancelJob:e=>t(`deviceManager`,`adoptionCancelJob`,`mutation`,e),adoptionResync:e=>t(`deviceManager`,`adoptionResync`,`mutation`,e),discoveryProviders:e=>t(`deviceManager`,`discoveryProviders`,`query`,e),discoverAllProviders:e=>t(`deviceManager`,`discoverAllProviders`,`mutation`,e),discoverProvider:e=>t(`deviceManager`,`discoverProvider`,`mutation`,e),providerCreationType:e=>t(`deviceManager`,`providerCreationType`,`query`,e),providerDiscoveryParamsSchema:e=>t(`deviceManager`,`providerDiscoveryParamsSchema`,`query`,e),getDeviceStatusAggregateBatch:e=>t(`deviceManager`,`getDeviceStatusAggregateBatch`,`query`,e)},deviceProvider:{start:e=>t(`deviceProvider`,`start`,`mutation`,e),stop:e=>t(`deviceProvider`,`stop`,`mutation`,e),getStatus:e=>t(`deviceProvider`,`getStatus`,`query`,e),getDevices:e=>t(`deviceProvider`,`getDevices`,`query`,e),reloadDevice:e=>t(`deviceProvider`,`reloadDevice`,`mutation`,e),supportsDiscovery:e=>t(`deviceProvider`,`supportsDiscovery`,`query`,e),discoverDevices:e=>t(`deviceProvider`,`discoverDevices`,`mutation`,e),getDiscoveryParamsSchema:e=>t(`deviceProvider`,`getDiscoveryParamsSchema`,`query`,e),getManualCreationType:e=>t(`deviceProvider`,`getManualCreationType`,`query`,e),adoptDiscoveredDevice:e=>t(`deviceProvider`,`adoptDiscoveredDevice`,`mutation`,e),supportsManualCreation:e=>t(`deviceProvider`,`supportsManualCreation`,`query`,e),getChildCreationSchema:e=>t(`deviceProvider`,`getChildCreationSchema`,`query`,e),createDevice:e=>t(`deviceProvider`,`createDevice`,`mutation`,e),testCreationField:e=>t(`deviceProvider`,`testCreationField`,`mutation`,e)},deviceState:{getAllSnapshots:e=>t(`deviceState`,`getAllSnapshots`,`query`,e),listClaims:e=>t(`deviceState`,`listClaims`,`query`,e)},faceGallery:{listIdentities:e=>t(`faceGallery`,`listIdentities`,`query`,e),createIdentity:e=>t(`faceGallery`,`createIdentity`,`mutation`,e),renameIdentity:e=>t(`faceGallery`,`renameIdentity`,`mutation`,e),deleteIdentity:e=>t(`faceGallery`,`deleteIdentity`,`mutation`,e),listIdentitySamples:e=>t(`faceGallery`,`listIdentitySamples`,`query`,e),auditIdentitySamples:e=>t(`faceGallery`,`auditIdentitySamples`,`query`,e),removeSample:e=>t(`faceGallery`,`removeSample`,`mutation`,e),getFaceMedia:e=>t(`faceGallery`,`getFaceMedia`,`query`,e),assignFace:e=>t(`faceGallery`,`assignFace`,`mutation`,e),unassignFace:e=>t(`faceGallery`,`unassignFace`,`mutation`,e),deleteFace:e=>t(`faceGallery`,`deleteFace`,`mutation`,e),assignFaces:e=>t(`faceGallery`,`assignFaces`,`mutation`,e),unassignFaces:e=>t(`faceGallery`,`unassignFaces`,`mutation`,e),suggestFaceClusters:e=>t(`faceGallery`,`suggestFaceClusters`,`query`,e)},integrations:{list:e=>t(`integrations`,`list`,`query`,e),get:e=>t(`integrations`,`get`,`query`,e),getByAddonId:e=>t(`integrations`,`getByAddonId`,`query`,e),create:e=>t(`integrations`,`create`,`mutation`,e),update:e=>t(`integrations`,`update`,`mutation`,e),delete:e=>t(`integrations`,`delete`,`mutation`,e),getSettings:e=>t(`integrations`,`getSettings`,`query`,e),setSettings:e=>t(`integrations`,`setSettings`,`mutation`,e),getAvailableTypes:e=>t(`integrations`,`getAvailableTypes`,`query`,e),testConnection:e=>t(`integrations`,`testConnection`,`mutation`,e)},keychainAdmin:{status:e=>t(`keychainAdmin`,`status`,`query`,e),listSecrets:e=>t(`keychainAdmin`,`listSecrets`,`query`,e),listAudit:e=>t(`keychainAdmin`,`listAudit`,`query`,e),reveal:e=>t(`keychainAdmin`,`reveal`,`mutation`,e),setSystemSecret:e=>t(`keychainAdmin`,`setSystemSecret`,`mutation`,e),importSecret:e=>t(`keychainAdmin`,`importSecret`,`mutation`,e),deleteOrphans:e=>t(`keychainAdmin`,`deleteOrphans`,`mutation`,e),rotateMasterKey:e=>t(`keychainAdmin`,`rotateMasterKey`,`mutation`,e),purgeRetiredKeys:e=>t(`keychainAdmin`,`purgeRetiredKeys`,`mutation`,e),downloadRecoveryKey:e=>t(`keychainAdmin`,`downloadRecoveryKey`,`mutation`,e),resetKeychain:e=>t(`keychainAdmin`,`resetKeychain`,`mutation`,e),resetReport:e=>t(`keychainAdmin`,`resetReport`,`query`,e),acknowledgeReset:e=>t(`keychainAdmin`,`acknowledgeReset`,`mutation`,e)},llm:{generate:e=>t(`llm`,`generate`,`mutation`,e),generateVision:e=>t(`llm`,`generateVision`,`mutation`,e),cancel:e=>t(`llm`,`cancel`,`mutation`,e),listProfileKinds:e=>t(`llm`,`listProfileKinds`,`query`,e),listProfiles:e=>t(`llm`,`listProfiles`,`query`,e),upsertProfile:e=>t(`llm`,`upsertProfile`,`mutation`,e),migrateRawSecrets:e=>t(`llm`,`migrateRawSecrets`,`mutation`,e),deleteProfile:e=>t(`llm`,`deleteProfile`,`mutation`,e),testProfile:e=>t(`llm`,`testProfile`,`mutation`,e),listModels:e=>t(`llm`,`listModels`,`query`,e),getDefaults:e=>t(`llm`,`getDefaults`,`query`,e),setDefault:e=>t(`llm`,`setDefault`,`mutation`,e),getUsage:e=>t(`llm`,`getUsage`,`query`,e),listModelCatalog:e=>t(`llm`,`listModelCatalog`,`query`,e),listRuntimeNodes:e=>t(`llm`,`listRuntimeNodes`,`query`,e),listNodeModels:e=>t(`llm`,`listNodeModels`,`query`,e),resolveModelRef:e=>t(`llm`,`resolveModelRef`,`mutation`,e),installModel:e=>t(`llm`,`installModel`,`mutation`,e),deleteModel:e=>t(`llm`,`deleteModel`,`mutation`,e),getRuntimeStatus:e=>t(`llm`,`getRuntimeStatus`,`query`,e),startRuntime:e=>t(`llm`,`startRuntime`,`mutation`,e),stopRuntime:e=>t(`llm`,`stopRuntime`,`mutation`,e)},localNetwork:{list:e=>t(`localNetwork`,`list`,`query`,e),getPreferred:e=>t(`localNetwork`,`getPreferred`,`query`,e),getConnectionEndpoints:e=>t(`localNetwork`,`getConnectionEndpoints`,`query`,e),getNotificationEndpoint:e=>t(`localNetwork`,`getNotificationEndpoint`,`query`,e),setNotificationEndpoint:e=>t(`localNetwork`,`setNotificationEndpoint`,`mutation`,e),getViewerEndpoints:e=>t(`localNetwork`,`getViewerEndpoints`,`query`,e),setViewerEndpoints:e=>t(`localNetwork`,`setViewerEndpoints`,`mutation`,e),getAddresses:e=>t(`localNetwork`,`getAddresses`,`query`,e),addCustomAddress:e=>t(`localNetwork`,`addCustomAddress`,`mutation`,e),removeCustomAddress:e=>t(`localNetwork`,`removeCustomAddress`,`mutation`,e),setAddressRole:e=>t(`localNetwork`,`setAddressRole`,`mutation`,e),getHubAddresses:e=>t(`localNetwork`,`getHubAddresses`,`query`,e),getAllowedAddresses:e=>t(`localNetwork`,`getAllowedAddresses`,`query`,e),setAllowedAddresses:e=>t(`localNetwork`,`setAllowedAddresses`,`mutation`,e),resetAllowlistToBestMatch:e=>t(`localNetwork`,`resetAllowlistToBestMatch`,`mutation`,e),getTlsStatus:e=>t(`localNetwork`,`getTlsStatus`,`query`,e),regenerateCertificate:e=>t(`localNetwork`,`regenerateCertificate`,`mutation`,e),uploadCertificate:e=>t(`localNetwork`,`uploadCertificate`,`mutation`,e),downloadCa:e=>t(`localNetwork`,`downloadCa`,`query`,e),useStoredUploadedCertificate:e=>t(`localNetwork`,`useStoredUploadedCertificate`,`mutation`,e),revertToGeneratedCertificate:e=>t(`localNetwork`,`revertToGeneratedCertificate`,`mutation`,e)},meshNetwork:{getStatus:e=>t(`meshNetwork`,`getStatus`,`query`,e),join:e=>t(`meshNetwork`,`join`,`mutation`,e),startLogin:e=>t(`meshNetwork`,`startLogin`,`mutation`,e),leave:e=>t(`meshNetwork`,`leave`,`mutation`,e),logout:e=>t(`meshNetwork`,`logout`,`mutation`,e),listPeers:e=>t(`meshNetwork`,`listPeers`,`query`,e),testConnection:e=>t(`meshNetwork`,`testConnection`,`mutation`,e)},metricsProvider:{collectSnapshot:e=>t(`metricsProvider`,`collectSnapshot`,`query`,e),getCached:e=>t(`metricsProvider`,`getCached`,`query`,e),getCurrent:e=>t(`metricsProvider`,`getCurrent`,`query`,e),getDiskSpace:e=>t(`metricsProvider`,`getDiskSpace`,`query`,e),getGpuInfo:e=>t(`metricsProvider`,`getGpuInfo`,`query`,e),getCpuTemperature:e=>t(`metricsProvider`,`getCpuTemperature`,`query`,e),getProcessStats:e=>t(`metricsProvider`,`getProcessStats`,`query`,e),listAddonInstances:e=>t(`metricsProvider`,`listAddonInstances`,`query`,e),getAddonStats:e=>t(`metricsProvider`,`getAddonStats`,`query`,e),listNodeProcesses:e=>t(`metricsProvider`,`listNodeProcesses`,`query`,e),getLoadSeries:e=>t(`metricsProvider`,`getLoadSeries`,`query`,e)},mqttBroker:{listBrokers:e=>t(`mqttBroker`,`listBrokers`,`query`,e),getBrokerConfig:e=>t(`mqttBroker`,`getBrokerConfig`,`query`,e),addBroker:e=>t(`mqttBroker`,`addBroker`,`mutation`,e),removeBroker:e=>t(`mqttBroker`,`removeBroker`,`mutation`,e),testConnection:e=>t(`mqttBroker`,`testConnection`,`mutation`,e),startEmbeddedBroker:e=>t(`mqttBroker`,`startEmbeddedBroker`,`mutation`,e),stopEmbeddedBroker:e=>t(`mqttBroker`,`stopEmbeddedBroker`,`mutation`,e),getStatus:e=>t(`mqttBroker`,`getStatus`,`query`,e)},networkAccess:{start:e=>t(`networkAccess`,`start`,`mutation`,e),stop:e=>t(`networkAccess`,`stop`,`mutation`,e),getEndpoint:e=>t(`networkAccess`,`getEndpoint`,`query`,e),getStatus:e=>t(`networkAccess`,`getStatus`,`query`,e),listEndpoints:e=>t(`networkAccess`,`listEndpoints`,`query`,e)},networkQuality:{getAllStats:e=>t(`networkQuality`,`getAllStats`,`query`,e)},nodes:{topology:e=>t(`nodes`,`topology`,`query`,e),directory:e=>t(`nodes`,`directory`,`query`,e),deployAddon:e=>t(`nodes`,`deployAddon`,`mutation`,e),undeployAddon:e=>t(`nodes`,`undeployAddon`,`mutation`,e),restartAddon:e=>t(`nodes`,`restartAddon`,`mutation`,e),restartProcess:e=>t(`nodes`,`restartProcess`,`mutation`,e),restartNode:e=>t(`nodes`,`restartNode`,`mutation`,e),shutdownNode:e=>t(`nodes`,`shutdownNode`,`mutation`,e),renameNode:e=>t(`nodes`,`renameNode`,`mutation`,e),clusterAddonStatus:e=>t(`nodes`,`clusterAddonStatus`,`query`,e),getCapUsageGraph:e=>t(`nodes`,`getCapUsageGraph`,`query`,e),getNodeAddons:e=>t(`nodes`,`getNodeAddons`,`query`,e),setProcessLogLevel:e=>t(`nodes`,`setProcessLogLevel`,`mutation`,e),executeQuery:e=>t(`nodes`,`executeQuery`,`mutation`,e)},notificationOutput:{listTargetKinds:e=>t(`notificationOutput`,`listTargetKinds`,`query`,e),listTargets:e=>t(`notificationOutput`,`listTargets`,`query`,e),getTarget:e=>t(`notificationOutput`,`getTarget`,`query`,e),discoverTargets:e=>t(`notificationOutput`,`discoverTargets`,`query`,e),probeTargetConfig:e=>t(`notificationOutput`,`probeTargetConfig`,`mutation`,e),send:e=>t(`notificationOutput`,`send`,`mutation`,e),testTarget:e=>t(`notificationOutput`,`testTarget`,`mutation`,e),upsertTarget:e=>t(`notificationOutput`,`upsertTarget`,`mutation`,e),deleteTarget:e=>t(`notificationOutput`,`deleteTarget`,`mutation`,e),setTargetEnabled:e=>t(`notificationOutput`,`setTargetEnabled`,`mutation`,e)},notificationRules:{listRules:e=>t(`notificationRules`,`listRules`,`query`,e),getRule:e=>t(`notificationRules`,`getRule`,`query`,e),createRule:e=>t(`notificationRules`,`createRule`,`mutation`,e),updateRule:e=>t(`notificationRules`,`updateRule`,`mutation`,e),deleteRule:e=>t(`notificationRules`,`deleteRule`,`mutation`,e),setRuleEnabled:e=>t(`notificationRules`,`setRuleEnabled`,`mutation`,e),listSequences:e=>t(`notificationRules`,`listSequences`,`query`,e),getSequence:e=>t(`notificationRules`,`getSequence`,`query`,e),createSequence:e=>t(`notificationRules`,`createSequence`,`mutation`,e),updateSequence:e=>t(`notificationRules`,`updateSequence`,`mutation`,e),deleteSequence:e=>t(`notificationRules`,`deleteSequence`,`mutation`,e),getClipRetentionAsks:e=>t(`notificationRules`,`getClipRetentionAsks`,`query`,e),listDeviceMutes:e=>t(`notificationRules`,`listDeviceMutes`,`query`,e),testRule:e=>t(`notificationRules`,`testRule`,`mutation`,e),previewStateSummary:e=>t(`notificationRules`,`previewStateSummary`,`mutation`,e),getConditionCatalog:e=>t(`notificationRules`,`getConditionCatalog`,`query`,e),getTemplateCatalog:e=>t(`notificationRules`,`getTemplateCatalog`,`query`,e),previewTemplate:e=>t(`notificationRules`,`previewTemplate`,`mutation`,e),getHistory:e=>t(`notificationRules`,`getHistory`,`query`,e),getRuleLastRuns:e=>t(`notificationRules`,`getRuleLastRuns`,`query`,e),resolveArtifactUrl:e=>t(`notificationRules`,`resolveArtifactUrl`,`query`,e),listSnoozes:e=>t(`notificationRules`,`listSnoozes`,`query`,e),createSnooze:e=>t(`notificationRules`,`createSnooze`,`mutation`,e),cancelSnooze:e=>t(`notificationRules`,`cancelSnooze`,`mutation`,e),getAlarmConfig:e=>t(`notificationRules`,`getAlarmConfig`,`query`,e),setAlarmConfig:e=>t(`notificationRules`,`setAlarmConfig`,`mutation`,e),createAlarmProfile:e=>t(`notificationRules`,`createAlarmProfile`,`mutation`,e),renameAlarmProfile:e=>t(`notificationRules`,`renameAlarmProfile`,`mutation`,e),deleteAlarmProfile:e=>t(`notificationRules`,`deleteAlarmProfile`,`mutation`,e),activateAlarmProfile:e=>t(`notificationRules`,`activateAlarmProfile`,`mutation`,e),getAlarmSensors:e=>t(`notificationRules`,`getAlarmSensors`,`query`,e)},oidcConnections:{connectionFormSchema:e=>t(`oidcConnections`,`connectionFormSchema`,`query`,e),listConnections:e=>t(`oidcConnections`,`listConnections`,`query`,e),createConnection:e=>t(`oidcConnections`,`createConnection`,`mutation`,e),updateConnection:e=>t(`oidcConnections`,`updateConnection`,`mutation`,e),deleteConnection:e=>t(`oidcConnections`,`deleteConnection`,`mutation`,e)},osdManager:{getConditionSupport:e=>t(`osdManager`,`getConditionSupport`,`query`,e),copyDeviceConfiguration:e=>t(`osdManager`,`copyDeviceConfiguration`,`mutation`,e),listTemplates:e=>t(`osdManager`,`listTemplates`,`query`,e),upsertTemplate:e=>t(`osdManager`,`upsertTemplate`,`mutation`,e),deleteTemplate:e=>t(`osdManager`,`deleteTemplate`,`mutation`,e)},pipelineExecutor:{getAvailableEngines:e=>t(`pipelineExecutor`,`getAvailableEngines`,`query`,e),getSelectedEngine:e=>t(`pipelineExecutor`,`getSelectedEngine`,`query`,e),getDefaultSteps:e=>t(`pipelineExecutor`,`getDefaultSteps`,`query`,e),getEngineProvisioning:e=>t(`pipelineExecutor`,`getEngineProvisioning`,`query`,e),getVideoPipelineSteps:e=>t(`pipelineExecutor`,`getVideoPipelineSteps`,`query`,e),setVideoPipelineSteps:e=>t(`pipelineExecutor`,`setVideoPipelineSteps`,`mutation`,e),clearDeviceOverrides:e=>t(`pipelineExecutor`,`clearDeviceOverrides`,`mutation`,e),clearModelBoundDeviceOverrides:e=>t(`pipelineExecutor`,`clearModelBoundDeviceOverrides`,`mutation`,e),getInferenceDeviceHealth:e=>t(`pipelineExecutor`,`getInferenceDeviceHealth`,`query`,e),rearmInferenceDevice:e=>t(`pipelineExecutor`,`rearmInferenceDevice`,`mutation`,e),getSchema:e=>t(`pipelineExecutor`,`getSchema`,`query`,e),getGlobalSteps:e=>t(`pipelineExecutor`,`getGlobalSteps`,`query`,e),getGlobalPipelineConfig:e=>t(`pipelineExecutor`,`getGlobalPipelineConfig`,`query`,e),getOrchestratorConfigSchema:e=>t(`pipelineExecutor`,`getOrchestratorConfigSchema`,`query`,e),validatePipeline:e=>t(`pipelineExecutor`,`validatePipeline`,`query`,e),getCapabilities:e=>t(`pipelineExecutor`,`getCapabilities`,`query`,e),getAddonModels:e=>t(`pipelineExecutor`,`getAddonModels`,`query`,e),downloadModel:e=>t(`pipelineExecutor`,`downloadModel`,`mutation`,e),deleteModel:e=>t(`pipelineExecutor`,`deleteModel`,`mutation`,e),cacheFrameInPool:e=>t(`pipelineExecutor`,`cacheFrameInPool`,`mutation`,e),inferCached:e=>t(`pipelineExecutor`,`inferCached`,`mutation`,e),uncacheFrame:e=>t(`pipelineExecutor`,`uncacheFrame`,`mutation`,e),getEffectiveTuning:e=>t(`pipelineExecutor`,`getEffectiveTuning`,`query`,e),listLoadedEngines:e=>t(`pipelineExecutor`,`listLoadedEngines`,`query`,e),spinEngine:e=>t(`pipelineExecutor`,`spinEngine`,`mutation`,e),killEngine:e=>t(`pipelineExecutor`,`killEngine`,`mutation`,e),listReferenceImages:e=>t(`pipelineExecutor`,`listReferenceImages`,`query`,e),getReferenceImage:e=>t(`pipelineExecutor`,`getReferenceImage`,`query`,e),getReferenceAudioFiles:e=>t(`pipelineExecutor`,`getReferenceAudioFiles`,`query`,e),getReferenceAudio:e=>t(`pipelineExecutor`,`getReferenceAudio`,`query`,e),getAudioCapabilities:e=>t(`pipelineExecutor`,`getAudioCapabilities`,`query`,e),runAudioTest:e=>t(`pipelineExecutor`,`runAudioTest`,`mutation`,e),getDetectionConfigSchema:e=>t(`pipelineExecutor`,`getDetectionConfigSchema`,`query`,e)},pipelineOrchestrator:{requestOccupancyLook:e=>t(`pipelineOrchestrator`,`requestOccupancyLook`,`mutation`,e),pauseForStorageMigration:e=>t(`pipelineOrchestrator`,`pauseForStorageMigration`,`mutation`,e),resumeForStorageMigration:e=>t(`pipelineOrchestrator`,`resumeForStorageMigration`,`mutation`,e),rebalance:e=>t(`pipelineOrchestrator`,`rebalance`,`mutation`,e),getPipelineAssignments:e=>t(`pipelineOrchestrator`,`getPipelineAssignments`,`query`,e),getAgentLoad:e=>t(`pipelineOrchestrator`,`getAgentLoad`,`query`,e),getClusterModelChoice:e=>t(`pipelineOrchestrator`,`getClusterModelChoice`,`query`,e),getGlobalMetrics:e=>t(`pipelineOrchestrator`,`getGlobalMetrics`,`query`,e),getCapabilityBindings:e=>t(`pipelineOrchestrator`,`getCapabilityBindings`,`query`,e),setCapabilityBinding:e=>t(`pipelineOrchestrator`,`setCapabilityBinding`,`mutation`,e),getIngestOwner:e=>t(`pipelineOrchestrator`,`getIngestOwner`,`query`,e),getAudioNodeLoad:e=>t(`pipelineOrchestrator`,`getAudioNodeLoad`,`query`,e),getAudioAssignments:e=>t(`pipelineOrchestrator`,`getAudioAssignments`,`query`,e),getAgentSettings:e=>t(`pipelineOrchestrator`,`getAgentSettings`,`query`,e),listAgentSettings:e=>t(`pipelineOrchestrator`,`listAgentSettings`,`query`,e),removeAgentSettings:e=>t(`pipelineOrchestrator`,`removeAgentSettings`,`mutation`,e),setAgentMaxCameras:e=>t(`pipelineOrchestrator`,`setAgentMaxCameras`,`mutation`,e),setAgentCapabilities:e=>t(`pipelineOrchestrator`,`setAgentCapabilities`,`mutation`,e),setAgentDecodeLimits:e=>t(`pipelineOrchestrator`,`setAgentDecodeLimits`,`mutation`,e),setAgentReachableHost:e=>t(`pipelineOrchestrator`,`setAgentReachableHost`,`mutation`,e),setAgentInferenceDevices:e=>t(`pipelineOrchestrator`,`setAgentInferenceDevices`,`mutation`,e),getNodeInferenceDevices:e=>t(`pipelineOrchestrator`,`getNodeInferenceDevices`,`query`,e),resetNodePipelineDefaults:e=>t(`pipelineOrchestrator`,`resetNodePipelineDefaults`,`mutation`,e),planAutoTune:e=>t(`pipelineOrchestrator`,`planAutoTune`,`query`,e),applyAutoTune:e=>t(`pipelineOrchestrator`,`applyAutoTune`,`mutation`,e),setLoadBalancingShares:e=>t(`pipelineOrchestrator`,`setLoadBalancingShares`,`mutation`,e),getPlacementStats:e=>t(`pipelineOrchestrator`,`getPlacementStats`,`query`,e),suggestShares:e=>t(`pipelineOrchestrator`,`suggestShares`,`query`,e),getEffectiveShares:e=>t(`pipelineOrchestrator`,`getEffectiveShares`,`query`,e),setShareSource:e=>t(`pipelineOrchestrator`,`setShareSource`,`mutation`,e),getNodeBenchmarkPreflight:e=>t(`pipelineOrchestrator`,`getNodeBenchmarkPreflight`,`query`,e),startNodeBenchmark:e=>t(`pipelineOrchestrator`,`startNodeBenchmark`,`mutation`,e),getNodeBenchmarkStatus:e=>t(`pipelineOrchestrator`,`getNodeBenchmarkStatus`,`query`,e),abortNodeBenchmark:e=>t(`pipelineOrchestrator`,`abortNodeBenchmark`,`mutation`,e),getNodeBenchmarkCandidates:e=>t(`pipelineOrchestrator`,`getNodeBenchmarkCandidates`,`query`,e),listNodeBenchmarkResults:e=>t(`pipelineOrchestrator`,`listNodeBenchmarkResults`,`query`,e),deleteNodeBenchmarkResult:e=>t(`pipelineOrchestrator`,`deleteNodeBenchmarkResult`,`mutation`,e),getCameraStatuses:e=>t(`pipelineOrchestrator`,`getCameraStatuses`,`query`,e),setCameraSensors:e=>t(`pipelineOrchestrator`,`setCameraSensors`,`mutation`,e),reconcileFromDisk:e=>t(`pipelineOrchestrator`,`reconcileFromDisk`,`mutation`,e),getReconcileFromDiskStatus:e=>t(`pipelineOrchestrator`,`getReconcileFromDiskStatus`,`query`,e)},pipelineRunner:{attachCamera:e=>t(`pipelineRunner`,`attachCamera`,`mutation`,e),reportMotion:e=>t(`pipelineRunner`,`reportMotion`,`mutation`,e),getLocalLoad:e=>t(`pipelineRunner`,`getLocalLoad`,`query`,e),getLocalMetrics:e=>t(`pipelineRunner`,`getLocalMetrics`,`query`,e),getAllCameraMetrics:e=>t(`pipelineRunner`,`getAllCameraMetrics`,`query`,e),getLocalCameras:e=>t(`pipelineRunner`,`getLocalCameras`,`query`,e),getNativeCrop:e=>t(`pipelineRunner`,`getNativeCrop`,`query`,e),runStatelessStep:e=>t(`pipelineRunner`,`runStatelessStep`,`mutation`,e),startNodeBench:e=>t(`pipelineRunner`,`startNodeBench`,`mutation`,e),getNodeBenchStatus:e=>t(`pipelineRunner`,`getNodeBenchStatus`,`query`,e),abortNodeBench:e=>t(`pipelineRunner`,`abortNodeBench`,`mutation`,e)},plateGallery:{getPlateMedia:e=>t(`plateGallery`,`getPlateMedia`,`query`,e),searchPlates:e=>t(`plateGallery`,`searchPlates`,`query`,e),suggestPlateClusters:e=>t(`plateGallery`,`suggestPlateClusters`,`query`,e),correctPlateText:e=>t(`plateGallery`,`correctPlateText`,`mutation`,e),deletePlate:e=>t(`plateGallery`,`deletePlate`,`mutation`,e),listVehicles:e=>t(`plateGallery`,`listVehicles`,`query`,e),createVehicle:e=>t(`plateGallery`,`createVehicle`,`mutation`,e),renameVehicle:e=>t(`plateGallery`,`renameVehicle`,`mutation`,e),deleteVehicle:e=>t(`plateGallery`,`deleteVehicle`,`mutation`,e),listVehicleSamples:e=>t(`plateGallery`,`listVehicleSamples`,`query`,e),removeVehicleSample:e=>t(`plateGallery`,`removeVehicleSample`,`mutation`,e),assignPlate:e=>t(`plateGallery`,`assignPlate`,`mutation`,e),unassignPlate:e=>t(`plateGallery`,`unassignPlate`,`mutation`,e),assignPlates:e=>t(`plateGallery`,`assignPlates`,`mutation`,e),unassignPlates:e=>t(`plateGallery`,`unassignPlates`,`mutation`,e)},recordEntries:{listEntryKinds:e=>t(`recordEntries`,`listEntryKinds`,`query`,e),listEntries:e=>t(`recordEntries`,`listEntries`,`query`,e),putEntry:e=>t(`recordEntries`,`putEntry`,`mutation`,e),deleteEntry:e=>t(`recordEntries`,`deleteEntry`,`mutation`,e)},recordingArchive:{getAvailabilityBatch:e=>t(`recordingArchive`,`getAvailabilityBatch`,`query`,e),getDaysWithRecordingsBatch:e=>t(`recordingArchive`,`getDaysWithRecordingsBatch`,`query`,e),getStorageUsage:e=>t(`recordingArchive`,`getStorageUsage`,`query`,e),listOpsLog:e=>t(`recordingArchive`,`listOpsLog`,`query`,e),pauseForStorageMigration:e=>t(`recordingArchive`,`pauseForStorageMigration`,`mutation`,e),resumeForStorageMigration:e=>t(`recordingArchive`,`resumeForStorageMigration`,`mutation`,e),refreshStorageLocationsForMigration:e=>t(`recordingArchive`,`refreshStorageLocationsForMigration`,`mutation`,e),startStorageMigrationMove:e=>t(`recordingArchive`,`startStorageMigrationMove`,`mutation`,e),getStorageMigrationMoveStatus:e=>t(`recordingArchive`,`getStorageMigrationMoveStatus`,`query`,e),cancelStorageMigrationMove:e=>t(`recordingArchive`,`cancelStorageMigrationMove`,`mutation`,e),relocateFootage:e=>t(`recordingArchive`,`relocateFootage`,`mutation`,e),listRelocateJobs:e=>t(`recordingArchive`,`listRelocateJobs`,`query`,e),getRelocateResidue:e=>t(`recordingArchive`,`getRelocateResidue`,`query`,e),reconcileLedgerAgainstDisk:e=>t(`recordingArchive`,`reconcileLedgerAgainstDisk`,`mutation`,e),cancelRelocateJob:e=>t(`recordingArchive`,`cancelRelocateJob`,`mutation`,e),planStorageRebalance:e=>t(`recordingArchive`,`planStorageRebalance`,`query`,e),startStorageRebalance:e=>t(`recordingArchive`,`startStorageRebalance`,`mutation`,e),getPlacement:e=>t(`recordingArchive`,`getPlacement`,`query`,e),setDevicePlacement:e=>t(`recordingArchive`,`setDevicePlacement`,`mutation`,e)},recordingExport:{createExport:e=>t(`recordingExport`,`createExport`,`mutation`,e),getExport:e=>t(`recordingExport`,`getExport`,`query`,e),cancelExport:e=>t(`recordingExport`,`cancelExport`,`mutation`,e),deleteExport:e=>t(`recordingExport`,`deleteExport`,`mutation`,e),getDownloadUrl:e=>t(`recordingExport`,`getDownloadUrl`,`query`,e),readExportBytes:e=>t(`recordingExport`,`readExportBytes`,`query`,e)},serverManagement:{getServerPackageStatus:e=>t(`serverManagement`,`getServerPackageStatus`,`query`,e),checkServerUpdate:e=>t(`serverManagement`,`checkServerUpdate`,`mutation`,e),applyServerUpdate:e=>t(`serverManagement`,`applyServerUpdate`,`mutation`,e),rollbackServerUpdate:e=>t(`serverManagement`,`rollbackServerUpdate`,`mutation`,e),restartServer:e=>t(`serverManagement`,`restartServer`,`mutation`,e)},settingsStore:{get:e=>t(`settingsStore`,`get`,`query`,e),set:e=>t(`settingsStore`,`set`,`mutation`,e),query:e=>t(`settingsStore`,`query`,`query`,e),upsert:e=>t(`settingsStore`,`upsert`,`mutation`,e),upsertMany:e=>t(`settingsStore`,`upsertMany`,`mutation`,e),insert:e=>t(`settingsStore`,`insert`,`mutation`,e),insertMany:e=>t(`settingsStore`,`insertMany`,`mutation`,e),transact:e=>t(`settingsStore`,`transact`,`mutation`,e),update:e=>t(`settingsStore`,`update`,`mutation`,e),delete:e=>t(`settingsStore`,`delete`,`mutation`,e),deleteWhere:e=>t(`settingsStore`,`deleteWhere`,`mutation`,e),updateWhere:e=>t(`settingsStore`,`updateWhere`,`mutation`,e),count:e=>t(`settingsStore`,`count`,`query`,e),aggregate:e=>t(`settingsStore`,`aggregate`,`query`,e),histogram:e=>t(`settingsStore`,`histogram`,`query`,e),isEmpty:e=>t(`settingsStore`,`isEmpty`,`query`,e),declareCollection:e=>t(`settingsStore`,`declareCollection`,`mutation`,e)},storage:{resolve:e=>t(`storage`,`resolve`,`query`,e),write:e=>t(`storage`,`write`,`mutation`,e),read:e=>t(`storage`,`read`,`query`,e),exists:e=>t(`storage`,`exists`,`query`,e),list:e=>t(`storage`,`list`,`query`,e),delete:e=>t(`storage`,`delete`,`mutation`,e),getAvailableSpace:e=>t(`storage`,`getAvailableSpace`,`query`,e),beginUpload:e=>t(`storage`,`beginUpload`,`mutation`,e),writeChunk:e=>t(`storage`,`writeChunk`,`mutation`,e),finalizeUpload:e=>t(`storage`,`finalizeUpload`,`mutation`,e),abortUpload:e=>t(`storage`,`abortUpload`,`mutation`,e),beginDownload:e=>t(`storage`,`beginDownload`,`mutation`,e),readChunk:e=>t(`storage`,`readChunk`,`query`,e),endDownload:e=>t(`storage`,`endDownload`,`mutation`,e),listLocations:e=>t(`storage`,`listLocations`,`query`,e),listLocationDeclarations:e=>t(`storage`,`listLocationDeclarations`,`query`,e),upsertLocation:e=>t(`storage`,`upsertLocation`,`mutation`,e),deleteLocation:e=>t(`storage`,`deleteLocation`,`mutation`,e),listDrainProgress:e=>t(`storage`,`listDrainProgress`,`query`,e),testLocation:e=>t(`storage`,`testLocation`,`query`,e),listProviders:e=>t(`storage`,`listProviders`,`query`,e),testConfig:e=>t(`storage`,`testConfig`,`query`,e)},storageMigration:{plan:e=>t(`storageMigration`,`plan`,`query`,e),start:e=>t(`storageMigration`,`start`,`mutation`,e),status:e=>t(`storageMigration`,`status`,`query`,e),cancel:e=>t(`storageMigration`,`cancel`,`mutation`,e),movers:e=>t(`storageMigration`,`movers`,`query`,e),moverClearance:e=>t(`storageMigration`,`moverClearance`,`query`,e),residue:e=>t(`storageMigration`,`residue`,`query`,e),drain:e=>t(`storageMigration`,`drain`,`mutation`,e),cleanupStart:e=>t(`storageMigration`,`cleanupStart`,`mutation`,e),cleanupStatus:e=>t(`storageMigration`,`cleanupStatus`,`query`,e),cleanupCancel:e=>t(`storageMigration`,`cleanupCancel`,`mutation`,e),history:e=>t(`storageMigration`,`history`,`query`,e)},streamBroker:{fetchEventMedia:e=>t(`streamBroker`,`fetchEventMedia`,`mutation`,e),listAllCameraStreams:e=>t(`streamBroker`,`listAllCameraStreams`,`query`,e),listAllProfileSlots:e=>t(`streamBroker`,`listAllProfileSlots`,`query`,e),getBrokerStats:e=>t(`streamBroker`,`getBrokerStats`,`query`,e),probeStream:e=>t(`streamBroker`,`probeStream`,`mutation`,e),listClients:e=>t(`streamBroker`,`listClients`,`query`,e),getLiveViewerCounts:e=>t(`streamBroker`,`getLiveViewerCounts`,`query`,e),killClient:e=>t(`streamBroker`,`killClient`,`mutation`,e),getStreamUrl:e=>t(`streamBroker`,`getStreamUrl`,`query`,e),getStreamWithCodec:e=>t(`streamBroker`,`getStreamWithCodec`,`mutation`,e),releaseStreamWithCodec:e=>t(`streamBroker`,`releaseStreamWithCodec`,`mutation`,e),acquireEgressTranscode:e=>t(`streamBroker`,`acquireEgressTranscode`,`mutation`,e),releaseEgressTranscode:e=>t(`streamBroker`,`releaseEgressTranscode`,`mutation`,e),subscribeAudioChunks:e=>t(`streamBroker`,`subscribeAudioChunks`,`mutation`,e),pullAudioChunks:e=>t(`streamBroker`,`pullAudioChunks`,`query`,e),unsubscribeAudioChunks:e=>t(`streamBroker`,`unsubscribeAudioChunks`,`mutation`,e),setPreBufferDuration:e=>t(`streamBroker`,`setPreBufferDuration`,`mutation`,e),getPreBufferInfo:e=>t(`streamBroker`,`getPreBufferInfo`,`query`,e),getRtspPort:e=>t(`streamBroker`,`getRtspPort`,`query`,e),getAllRtspEntries:e=>t(`streamBroker`,`getAllRtspEntries`,`query`,e),getRtspEntry:e=>t(`streamBroker`,`getRtspEntry`,`query`,e),regenerateRtspToken:e=>t(`streamBroker`,`regenerateRtspToken`,`mutation`,e),setRtspEnabled:e=>t(`streamBroker`,`setRtspEnabled`,`mutation`,e),isRtspEnabled:e=>t(`streamBroker`,`isRtspEnabled`,`query`,e)},system:{info:e=>t(`system`,`info`,`query`,e),health:e=>t(`system`,`health`,`query`,e),featureFlags:e=>t(`system`,`featureFlags`,`query`,e),networkAddresses:e=>t(`system`,`networkAddresses`,`query`,e),getRetentionConfig:e=>t(`system`,`getRetentionConfig`,`query`,e),setRetentionConfig:e=>t(`system`,`setRetentionConfig`,`mutation`,e),forceRetentionCleanup:e=>t(`system`,`forceRetentionCleanup`,`mutation`,e),getSiteLocation:e=>t(`system`,`getSiteLocation`,`query`,e),setSiteLocation:e=>t(`system`,`setSiteLocation`,`mutation`,e),detectSiteLocation:e=>t(`system`,`detectSiteLocation`,`mutation`,e),getRequestCensus:e=>t(`system`,`getRequestCensus`,`query`,e),getLoadContributions:e=>t(`system`,`getLoadContributions`,`query`,e),getFailureContributions:e=>t(`system`,`getFailureContributions`,`query`,e),getLoggingSettings:e=>t(`system`,`getLoggingSettings`,`query`,e),setLoggingSettings:e=>t(`system`,`setLoggingSettings`,`mutation`,e)},terminalSession:{listProfiles:e=>t(`terminalSession`,`listProfiles`,`query`,e),listInstances:e=>t(`terminalSession`,`listInstances`,`query`,e),createInstance:e=>t(`terminalSession`,`createInstance`,`mutation`,e),updateInstance:e=>t(`terminalSession`,`updateInstance`,`mutation`,e),deleteInstance:e=>t(`terminalSession`,`deleteInstance`,`mutation`,e),setInstanceEnabled:e=>t(`terminalSession`,`setInstanceEnabled`,`mutation`,e),listLegacyCameras:e=>t(`terminalSession`,`listLegacyCameras`,`query`,e),adoptLegacyMonitor:e=>t(`terminalSession`,`adoptLegacyMonitor`,`mutation`,e),listSessions:e=>t(`terminalSession`,`listSessions`,`query`,e),openSession:e=>t(`terminalSession`,`openSession`,`mutation`,e),resize:e=>t(`terminalSession`,`resize`,`mutation`,e),pullOutput:e=>t(`terminalSession`,`pullOutput`,`mutation`,e),writeInput:e=>t(`terminalSession`,`writeInput`,`mutation`,e),close:e=>t(`terminalSession`,`close`,`mutation`,e)},toast:{onToast:(e,n)=>t(`toast`,`onToast`,`subscription`,e,n)},training:{listBaseModels:e=>t(`training`,`listBaseModels`,`query`,e),planJob:e=>t(`training`,`planJob`,`query`,e),startJob:e=>t(`training`,`startJob`,`mutation`,e),startJobBatch:e=>t(`training`,`startJobBatch`,`mutation`,e),listJobs:e=>t(`training`,`listJobs`,`query`,e),getJob:e=>t(`training`,`getJob`,`query`,e),cancelJob:e=>t(`training`,`cancelJob`,`mutation`,e),getJobResult:e=>t(`training`,`getJobResult`,`query`,e),registerResult:e=>t(`training`,`registerResult`,`mutation`,e),canaryResult:e=>t(`training`,`canaryResult`,`mutation`,e),rollbackCanary:e=>t(`training`,`rollbackCanary`,`mutation`,e),discardResult:e=>t(`training`,`discardResult`,`mutation`,e)},turnProvider:{getTurnServers:e=>t(`turnProvider`,`getTurnServers`,`query`,e)},userManagement:{listUsers:e=>t(`userManagement`,`listUsers`,`query`,e),createUser:e=>t(`userManagement`,`createUser`,`mutation`,e),updateUser:e=>t(`userManagement`,`updateUser`,`mutation`,e),deleteUser:e=>t(`userManagement`,`deleteUser`,`mutation`,e),resetPassword:e=>t(`userManagement`,`resetPassword`,`mutation`,e),setUserScopes:e=>t(`userManagement`,`setUserScopes`,`mutation`,e),validateCredentials:e=>t(`userManagement`,`validateCredentials`,`mutation`,e),listApiKeys:e=>t(`userManagement`,`listApiKeys`,`query`,e),revokeApiKey:e=>t(`userManagement`,`revokeApiKey`,`mutation`,e),createScopedToken:e=>t(`userManagement`,`createScopedToken`,`mutation`,e),revokeScopedToken:e=>t(`userManagement`,`revokeScopedToken`,`mutation`,e),validateScopedToken:e=>t(`userManagement`,`validateScopedToken`,`query`,e),listScopedTokens:e=>t(`userManagement`,`listScopedTokens`,`query`,e),setupTotp:e=>t(`userManagement`,`setupTotp`,`mutation`,e),confirmTotp:e=>t(`userManagement`,`confirmTotp`,`mutation`,e),disableTotp:e=>t(`userManagement`,`disableTotp`,`mutation`,e),getTotpStatus:e=>t(`userManagement`,`getTotpStatus`,`query`,e),migrateRawSecrets:e=>t(`userManagement`,`migrateRawSecrets`,`mutation`,e),verifyTotp:e=>t(`userManagement`,`verifyTotp`,`mutation`,e),oauthIssueCode:e=>t(`userManagement`,`oauthIssueCode`,`mutation`,e),oauthExchangeCode:e=>t(`userManagement`,`oauthExchangeCode`,`mutation`,e),oauthRefresh:e=>t(`userManagement`,`oauthRefresh`,`mutation`,e),oauthVerifyAccessToken:e=>t(`userManagement`,`oauthVerifyAccessToken`,`query`,e),listExternalIdentities:e=>t(`userManagement`,`listExternalIdentities`,`query`,e),findUserByExternalIdentity:e=>t(`userManagement`,`findUserByExternalIdentity`,`query`,e),unlinkExternalIdentity:e=>t(`userManagement`,`unlinkExternalIdentity`,`mutation`,e),listOauthSessions:e=>t(`userManagement`,`listOauthSessions`,`query`,e),revokeOauthSession:e=>t(`userManagement`,`revokeOauthSession`,`mutation`,e)}}}var z0=`2026-09-11T00:00:00.000Z`,B0=Date.parse(z0),V0={PCMU:20*Math.log10(4),PCMA:20*Math.log10(8)};function H0(e,t){return t+V0[e]}function U0(e){return!Number.isFinite(e)||e<=0?`unknown`:e>=B0?`itu`:`pre-itu`}var W0=`audio-`;function G0(e){return e.startsWith(W0)?e.slice(6):e}function K0(e){return e.startsWith(W0)?e:`${W0}${e}`}var q0=-96,J0=Math.round(H0(`PCMU`,-55)),Y0={hitPercent:60,samplingSeconds:10};function X0(e){return e??Y0}function Z0(e){return e===void 0?null:e.labels!==void 0&&e.labels.length>0?`label`:e.dbThreshold===void 0?null:`level`}function Q0(e){return e===void 0?!1:e.dbThreshold===void 0&&(e.labels===void 0||e.labels.length===0)}function $0(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,Math.round(e))):t}function e2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function t2(e,t){let n=X0(e),r=e2(t,`labels`)?t.labels:n.labels,i=e2(t,`dbThreshold`)?t.dbThreshold:n.dbThreshold,a=r!==void 0&&r.length>0,o=t.mode??(e2(t,`labels`)&&a?`label`:e2(t,`dbThreshold`)&&i!==void 0?`level`:a?`label`:i===void 0?null:`level`),s=o===`label`&&a?r:void 0,c=o===`level`?i??(t.mode===`level`?J0:void 0):void 0;return{...s===void 0?{}:{labels:[...s]},...c===void 0?{}:{dbThreshold:$0(c,q0,0)},hitPercent:$0(t.hitPercent??n.hitPercent,1,100),samplingSeconds:$0(t.samplingSeconds??n.samplingSeconds,1,300),...(()=>{let e=e2(t,`confirmHits`)?t.confirmHits:n.confirmHits,r=e2(t,`confirmWindowSec`)?t.confirmWindowSec:n.confirmWindowSec;return{...e===void 0?{}:{confirmHits:$0(e,1,20)},...r===void 0?{}:{confirmWindowSec:$0(r,1,60)}}})()}}function n2(e,t){let n=e?.audioKinds??[],r=n.length>0?n.map(e=>{let t=G0(e.kind);return{value:t,label:e.label,iconId:K0(t),unknown:!1}}):ek.map(e=>({value:e.id,label:e.name,iconId:K0(e.id),unknown:!1})),i=new Set(r.map(e=>e.value)),a=[];for(let e of t??[]){let t=G0(e);i.has(t)||a.includes(t)||(a.push(t),r.push({value:t,label:t,iconId:K0(t),unknown:!0}))}return{choices:r,unknownLabels:a}}function r2(e,t){let n=G0(t);return(e??[]).some(e=>G0(e)===n)}function i2(e,t){let n=G0(t),r=e??[];if(r2(r,n)){let e=r.filter(e=>G0(e)!==n);return e.length>0?e:void 0}return[...r,n]}var a2=new Set([`classes`,`classesExclude`]),o2=new Set([`sensorKinds`]),s2=new Set([`occupancy`]);function c2(e){return{value:e.kind,label:e.label}}function l2(e){let t=[],n=new Map,r=(e,r)=>{let i=n.get(e);if(i!==void 0)return i;let a={fallbackLabel:r,options:[]};return n.set(e,a),t.push(e),a};for(let t of e){let e=t.parentKind??t.kind,n=r(e,t.parentKind===null?t.label:e);n.options.push(c2(t)),t.parentKind===null&&(n.fallbackLabel=t.label)}return t.flatMap(e=>{let t=n.get(e);return t===void 0?[]:[{key:e,fallbackLabel:t.fallbackLabel,options:t.options}]})}function u2(e){let t=[],n=new Map;for(let r of e){let e=r.parentKind??`other`,i=n.get(e);i===void 0?(n.set(e,[c2(r)]),t.push(e)):i.push(c2(r))}return t.flatMap(e=>{let t=n.get(e);return t===void 0?[]:[{key:e,fallbackLabel:e,options:t}]})}function d2(e,t){if(!t)return null;if(a2.has(e)){let e=l2(t.videoClasses);return t.audioKinds.length>0&&e.push({key:`audio`,fallbackLabel:`Audio`,options:t.audioKinds.map(c2)}),e.length>0?{groups:e}:null}if(s2.has(e)){let e=t.videoClasses.filter(e=>e.parentKind===null).map(c2);return e.length>0?{groups:[{key:`macro`,fallbackLabel:`Classes`,options:e}]}:null}if(o2.has(e)){let e=u2(t.labels);return e.length>0?{groups:e}:null}return null}var f2=`audio`;function p2(e){let t=d2(`classes`,e);if(t===null)return null;let n=t.groups.filter(e=>e.key!==f2);return n.length>0?{groups:n}:null}function m2(e){return e.trim().toLowerCase().startsWith(`${f2}-`)}function h2(e){let t=new Set;for(let n of e.groups)for(let e of n.options)t.add(e.value);return t}var g2=[`devices`,`classes`],_2=new Set(g2);function v2(e){return _2.has(e)}function y2(e){return e.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/(\*\*|__)(.*?)\1/g,`$2`).replace(/(\*|_)(.*?)\1/g,`$2`).replace(/`([^`]*)`/g,`$1`).replace(/^\s{0,3}#{1,6}\s*/gm,``).replace(/^\s{0,3}>\s?/gm,``).replace(/^\s{0,3}[-*+]\s+/gm,``).replace(/^\s{0,3}\d+\.\s+/gm,``).trim()}var b2=[[/&nbsp;/g,` `],[/&amp;/g,`&`],[/&lt;/g,`<`],[/&gt;/g,`>`],[/&quot;/g,`"`],[/&#39;/g,`'`]];function x2(e){let t=e.replace(/<\s*br\s*\/?\s*>/gi,`
354
- `).replace(/<\s*\/\s*(p|div|li|h[1-6])\s*>/gi,`
355
- `).replace(/<[^>]+>/g,``);for(let[e,n]of b2)t=t.replace(e,n);return t.replace(/\n{3,}/g,`
356
-
357
- `).trim()}var S2=[[/&/g,`&amp;`],[/</g,`&lt;`],[/>/g,`&gt;`],[/"/g,`&quot;`],[/'/g,`&#39;`]];function C2(e){let t=e;for(let[e,n]of S2)t=t.replace(e,n);return t}function w2(e){return C2(e).replace(/\n/g,`<br>`)}function T2(e){return C2(e).replace(/(\*\*|__)(.*?)\1/g,`<b>$2</b>`).replace(/(\*|_)(.*?)\1/g,`<i>$2</i>`).replace(/`([^`]*)`/g,`<code>$1</code>`).replace(/\[([^\]]*)\]\(([^)]*)\)/g,`<a href="$2">$1</a>`).replace(/\n/g,`<br>`)}var E2={text:[`text`,`markdown`,`html`],markdown:[`markdown`,`html`,`text`],html:[`html`,`text`,`markdown`]};function D2(e,t){for(let n of E2[e]??E2.text)if(t.includes(n))return n;return t[0]??`text`}function O2(e,t,n){if(t===n)return e;if(n===`text`){if(t===`markdown`)return y2(e);if(t===`html`)return x2(e)}if(n===`html`){if(t===`text`)return w2(e);if(t===`markdown`)return T2(e)}if(n===`markdown`){if(t===`text`)return e;if(t===`html`)return x2(e)}return e}function k2(e){return{id:e.id,ordinal:e.ordinal,...e.flags?{flags:e.flags}:{},...e.requires?{requires:e.requires}:{}}}function A2(e,t){if(e.length===0)return null;if(t.level!==void 0){let n=e.find(e=>e.id===t.level);if(n)return k2(n)}let n=e.filter(e=>e.ordinal!==null);if(n.length===0)return k2(e[0]);let r=t.priority;return k2([...n].sort((e,t)=>{let n=Math.abs((e.ordinal??0)-r),i=Math.abs((t.ordinal??0)-r);return n===i?(t.ordinal??0)-(e.ordinal??0):n-i})[0])}function j2(e,t){if(!Number.isFinite(t)||t<=0||e.length<=t)return[e];let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function M2(e,t){let n=[],r=t.format,i=D2(r,e.format);i!==r&&n.push(`format`);let a=O2(t.body,r,i),o=A2(e.levels,t),s=t.attachments??[],c=[];for(let t of s){if(!e.attachments.mediaTypes.includes(t.mediaType)){n.push(`attachment:${t.mediaType}`);continue}if(e.attachments.mode===`url`&&t.url===void 0){n.push(`attachment:noUrl`);continue}if(t.bytes!==void 0&&e.attachments.maxBytes!==void 0&&t.bytes.length>e.attachments.maxBytes){n.push(`attachment:maxBytes`);continue}if(c.length>=e.attachments.max){n.push(`attachment:max`);continue}let r=e.attachments.mode===`bytes`&&t.bytes===void 0&&t.url!==void 0;c.push({mediaType:t.mediaType,...t.url===void 0?{}:{url:t.url},...t.bytes===void 0?{}:{bytes:t.bytes},...t.mime===void 0?{}:{mime:t.mime},...t.name===void 0?{}:{name:t.name},needsFetch:r})}let l=t.actions??[],u=l.slice(0,Math.max(0,e.actions));l.length>u.length&&n.push(`actions`);let d=e.actionIcons===!0;!d&&u.some(e=>e.icon!==void 0)&&n.push(`actionIcons`);let f=d?u:u.map(({icon:e,...t})=>t),p=null;t.clickUrl!==void 0&&(e.clickUrl?p=t.clickUrl:n.push(`clickUrl`));let m=null;t.sound!==void 0&&(e.sound?m=t.sound:n.push(`sound`));let h=null;t.ttl!==void 0&&(e.ttl?h=t.ttl:n.push(`ttl`));let g=t.tag??null,ee=j2(a,e.bodyMaxLen),te=ee.length>1,_={level:o?.id??``,format:i,attachmentsSent:c.length,actionsSent:f.length,truncated:te,dropped:n};return{body:ee[0]??``,...t.title===void 0?{}:{title:t.title},format:i,level:o,attachments:c,actions:f,clickUrl:p,sound:m,ttl:h,tag:g,bodyParts:ee,renderedAs:_}}var N2=[`deviceIds`,`deviceTypes`,`nodeIds`,`packageNames`,`consumableLowPercent`];function P2(e,t){switch(t){case`deviceIds`:return e.startsWith(`device-`)||e.startsWith(`stream-`)||e===`detection-blind`||e.startsWith(`recording-`)||e===`alarm-triggered`;case`deviceTypes`:return e.startsWith(`device-`)||e===`detection-blind`;case`nodeIds`:return e.startsWith(`node-`)||e===`addon-crash-loop`||e===`addon-update-available`||e===`addon-updated`||e===`server-update-available`||e===`wrapper-update-available`||e===`server-updated`||e.startsWith(`storage-location-`)||e.startsWith(`alert-`);case`packageNames`:return e.endsWith(`update-available`)||e===`addon-updated`||e===`node-updating`||e===`server-updated`;case`consumableLowPercent`:return Rk.includes(e)}}function F2(e,t){return e.some(e=>P2(e,t))}var I2=[`device-events`,`system`,`alarm`];function L2(e){return I2.some(t=>t===e)}var R2={"device-online":`device-events`,"device-offline":`device-events`,"device-disabled":`device-events`,"device-enabled":`device-events`,"device-battery-low":`device-events`,"device-battery-normal":`device-events`,"device-consumable-low":`device-events`,"device-consumable-normal":`device-events`,"device-tank-low":`device-events`,"device-tank-full":`device-events`,"device-tank-normal":`device-events`,"stream-online":`device-events`,"stream-offline":`device-events`,"detection-blind":`device-events`,"recording-stalled":`device-events`,"recording-healthy":`device-events`,"recording-degraded":`device-events`,"node-online":`system`,"node-offline":`system`,"node-restarting":`system`,"node-updating":`system`,"node-inference-unavailable":`system`,"addon-crash-loop":`system`,"addon-update-available":`system`,"addon-updated":`system`,"server-update-available":`system`,"server-updated":`system`,"wrapper-update-available":`system`,"backup-completed":`system`,"export-completed":`system`,"alert-critical":`system`,"alert-error":`system`,"alert-critical-resolved":`system`,"storage-location-low":`system`,"storage-location-critical":`system`,"storage-location-ok":`system`,"alarm-triggered":`alarm`,"alarm-armed":`alarm`,"alarm-disarmed":`alarm`,"alarm-arming":`alarm`,"alarm-arm-refused":`alarm`,"alarm-pending":`alarm`,"alarm-rearmed":`alarm`,"alarm-sensor-bypass":`alarm`,"alarm-check-failed":`alarm`,"camera-online":null,"camera-offline":null,"camera-disabled":null,"camera-enabled":null},z2=new Map(Object.entries(R2)),B2=[...N2,`excludeDeviceIds`],V2={"device-events":[`deviceIds`,`excludeDeviceIds`,`deviceTypes`,`consumableLowPercent`],system:[`nodeIds`,`packageNames`],alarm:[`deviceIds`]},H2=[{id:`device-state`,family:`device-events`,label:`Device state`,kinds:[`device-offline`,`device-online`,`device-disabled`,`device-enabled`]},{id:`streams`,family:`device-events`,label:`Streams`,kinds:[`stream-offline`,`stream-online`]},{id:`battery`,family:`device-events`,label:`Battery`,kinds:[`device-battery-low`,`device-battery-normal`]},{id:`consumables`,family:`device-events`,label:`Consumables`,kinds:[`device-consumable-low`,`device-consumable-normal`]},{id:`tanks`,family:`device-events`,label:`Tanks`,kinds:[`device-tank-low`,`device-tank-full`,`device-tank-normal`]},{id:`detection-blind`,family:`device-events`,label:`Detecting nothing`,kinds:[`detection-blind`]},{id:`recording`,family:`device-events`,label:`Recording`,kinds:[`recording-stalled`,`recording-healthy`,`recording-degraded`]},{id:`nodes`,family:`system`,label:`Nodes`,kinds:[`node-offline`,`node-online`,`node-restarting`,`node-inference-unavailable`]},{id:`addons`,family:`system`,label:`Addons stopped`,kinds:[`addon-crash-loop`]},{id:`addon-updates`,family:`system`,label:`Addon updates`,kinds:[`addon-update-available`,`addon-updated`]},{id:`updates`,family:`system`,label:`Server & container updates`,kinds:[`server-update-available`,`node-updating`,`server-updated`,`wrapper-update-available`]},{id:`backups-exports`,family:`system`,label:`Backups & exports`,kinds:[`backup-completed`,`export-completed`]},{id:`storage`,family:`system`,label:`Storage locations`,kinds:[`storage-location-low`,`storage-location-critical`,`storage-location-ok`]},{id:`alerts`,family:`system`,label:`Alerts`,kinds:[`alert-critical`,`alert-error`,`alert-critical-resolved`]},{id:`alarm`,family:`alarm`,label:`Alarm`,kinds:Ik}];function U2(e){return H2.filter(t=>t.family===e).flatMap(e=>e.kinds)}function W2(e){if(typeof e!=`object`||!e||!(`kinds`in e))return;let t=e.kinds;if(Array.isArray(t))return t.filter(e=>typeof e==`string`)}function G2(e){let t=new Set;for(let n of e){let e=z2.get(n);if(e==null)return{kind:`mixed`};t.add(e)}let[n]=[...t];return t.size===1&&n!==void 0?{kind:`family`,family:n}:{kind:`mixed`}}function K2(e){if(e===void 0||e.kinds.length===0)return[{code:`no-kinds`}];let t=[],n=new Set;for(let r of e.kinds){let e=R2[r];e===null?t.push({code:`legacy-kind`,kind:r}):n.add(e)}let r=I2.filter(e=>n.has(e));r.length>1&&t.push({code:`mixed-families`,families:r});let[i]=r;if(r.length!==1||i===void 0)return t;let a=V2[i];for(let n of B2)e[n]!==void 0&&!a.includes(n)&&t.push({code:`filter-outside-family`,filter:n,family:i});return t}function q2(e){switch(e.code){case`no-kinds`:return`a system-event rule needs at least one event kind`;case`legacy-kind`:return`'${e.kind}' is a legacy kind and cannot be authored`;case`mixed-families`:return`event kinds span ${e.families.join(` + `)} — one rule per family`;case`filter-outside-family`:return`filter '${e.filter}' is not allowed on a ${e.family} rule`}}var J2=[`device-events`,`system`,`alarm`,`mixed`];function Y2(e){return J2.some(t=>t===e)}function X2(e){return L2(e)?e:void 0}var Z2=`An occupancy edge is not a sensor event: it carries no sensor kind, so this condition can never match one.`,Q2=`An occupancy edge carries no device event-type token — that comes from an event-emitter slice, which a count crossing has none of.`,$2=`An occupancy edge is a count crossing, not a sensor reading: it has no raise or clear, so this choice could never narrow it.`,e4=`An occupancy edge is always produced by the pipeline, so any other source can never match and “pipeline” narrows nothing.`,t4=`A confirmed sound window is always stamped as an audio subject, so any other source can never match.`,n4=`A sound rule fires on what the camera HEARD. Its subject carries no detection, so this condition can never match one — name the sounds in the Sound condition instead.`,r4=`A sound window’s evidence is a percentage of samples, not a detector score, so a confidence threshold can never be satisfied.`,i4=`A sound has no position in the frame, so a zone or a drawn polygon can never match it.`,a4=[{kind:`detection`,label:`Conditions`,excluded:{audio:`A detection rule fires on what the camera SAW. Sounds are a Sound rule of their own — adding one here turned the rule into a sound rule and dropped every detection condition.`},editable:!0,carriesMedia:!0,carriesSubjectCrop:!0},{kind:`sensor`,label:`Conditions`,excluded:{},editable:!0,carriesMedia:!0,carriesSubjectCrop:!0,blurb:`A doorbell press or a linked sensor changing state. The picture comes from the camera the sensor is attributed to.`},{kind:`occupancy`,label:`Occupancy`,discriminator:`occupancy`,excluded:{sensorKinds:Z2,eventTypeTokens:Q2,sensorTransition:$2,source:e4},editable:!0,carriesMedia:!0,carriesSubjectCrop:!0,blurb:`Fires when the count in a camera frame or a zone crosses your threshold and holds. Pick the camera first — the zone list is that camera’s.`},{kind:`sound`,label:`Sound`,discriminator:`audio`,excluded:{classes:n4,classesExclude:n4,minConfidence:r4,zones:i4,zonesExclude:i4,customZones:i4,crossing:i4,labelEquals:n4,identities:n4,identitiesExclude:n4,plates:n4,source:t4},editable:!0,carriesMedia:!0,carriesSubjectCrop:!1,blurb:`Fires on a confirmed sampling window of audio, never on a picture. Name the sounds and/or keep a level threshold — with neither it can never match.`,mediaBlurb:`A sound owns no frame, so the picture is a photograph of the camera taken at the moment of the match — the whole scene, never a crop. The GIF and the clip are cut around the same instant, from the camera.`},{kind:`device-events`,label:`Device events`,discriminator:`systemEvent`,excluded:{},editable:!0,carriesMedia:!1,carriesSubjectCrop:!1,blurb:`A device or its stream going away or coming back, switched off or on, a battery or consumable running low, a camera detecting nothing. There is no frame to attach.`},{kind:`system`,label:`System events`,discriminator:`systemEvent`,excluded:{},editable:!0,carriesMedia:!1,carriesSubjectCrop:!1,blurb:`The installation itself: a node leaving, an addon crash-looping, an update available or installed, a backup or an export finishing.`},{kind:`alarm`,label:`Alarm`,discriminator:`systemEvent`,excluded:{},editable:!0,carriesMedia:!1,carriesSubjectCrop:!1,blurb:`The alarm panel: refused, arming, armed, entry delay, triggered, re-armed, sensor bypass, disarmed.`,mediaBlurb:`An alarm set off by a rule arrives with THAT rule's pictures, combined into one notification. This rule adds none of its own.`},{kind:`mixed`,label:`To recreate`,discriminator:`systemEvent`,excluded:{},editable:!1,carriesMedia:!1,carriesSubjectCrop:!1,blurb:`This rule mixes events from more than one family (device events, system, alarm). It keeps firing as it is, but it can no longer be edited: create one rule per family, then delete this one.`}];function o4(e){return a4.find(t=>t.kind===e)??a4[0]}function s4(e){return a4.filter(t=>t.discriminator===e).map(e=>e.kind)}var c4=`system-event`;function l4(e){return e===c4}function u4(e){switch(e){case`sensor`:return VR;case`detection`:case`occupancy`:return[`detection-pipeline`];case`sound`:return[`audio-metrics`];case`device-events`:case`system`:case`alarm`:case`mixed`:return null}}var d4=`camera-streams`;function f4(e){let t=u4(e);return t===null?null:e===`sensor`?[t,[d4]]:[t]}function p4(e){return l4(e.delivery)?h4(e.conditions.systemEvent):e.conditions.occupancy!==void 0&&e.delivery===`device-event`?`occupancy`:e.conditions.audio!==void 0&&e.delivery===`immediate`?`sound`:e.delivery===`device-event`?`sensor`:`detection`}function m4(e){return e.delivery===`immediate`&&p4(e)===`detection`}function h4(e){let t=G2(W2(e)??[]);return t.kind===`family`?t.family:`mixed`}function g4(e,t,n){let r=o4(n);return e.id===r.discriminator?!0:e.appliesTo.includes(t)?r.excluded[e.id]===void 0:!1}function _4(e,t){let n=o4(t);return e===n.discriminator?null:n.excluded[e]??null}function v4(e,t){let n=o4(t),r=[];for(let[t,i]of Object.entries(e)){if(i===void 0||Array.isArray(i)&&i.length===0)continue;let e=n.excluded[t];e!==void 0&&r.push({conditionId:t,reason:e})}return r}var y4=[{key:`all`,label:`All rules`,blurb:`Every notification rule, whatever its trigger. Each rule picks a trigger, matches conditions and fans out to one or more delivery targets.`,newRuleLabel:`New rule`,emptyHint:`No notification rules yet. Create one to be told what your cameras see.`,creatable:!0},{key:`detection`,label:`Detections`,blurb:`Rules driven by what the cameras SEE — detections, tracks and package events.`,newRuleLabel:`New detection rule`,emptyHint:`No detection rules yet. Create one to be told what your cameras see.`,creatable:!0},{key:`sensor`,label:`Sensors`,blurb:`Rules driven by a device or sensor CHANGING STATE — a doorbell press, a linked sensor opening or closing. The picture comes from the camera the sensor is attributed to.`,newRuleLabel:`New sensor rule`,emptyHint:`No sensor rules yet. Create one to be told when a doorbell is pressed or a linked sensor changes.`,creatable:!0},{key:`audio`,label:`Sound`,blurb:`Rules on what the cameras HEAR: a sustained window of sound loud enough, or classified as one of the sounds you name. A sound rule fires only on a confirmed sampling window, never on a picture.`,newRuleLabel:`New sound rule`,emptyHint:`No sound rules yet. A new sound rule opens on the sound condition already filled in with a level threshold, so you only have to name the sounds and the targets.`,creatable:!0},{key:`occupancy`,label:`Occupancy`,blurb:`Rules on how many objects are in a camera frame or a zone, and for how long: "the driveway became occupied", "the garden emptied".`,newRuleLabel:`New occupancy rule`,emptyHint:`No occupancy rules yet. A new occupancy rule opens on the occupancy condition; pick the camera first, then the zone and the count.`,creatable:!0},{key:`device-events`,label:`Device events`,blurb:`Rules about your devices: offline or back, switched off or on, a stream dropping, a battery or consumable running low, a camera detecting nothing.`,newRuleLabel:`New device-event rule`,emptyHint:`No device-event rules yet. These tell you when a device drops, a battery runs low or a camera goes blind.`,creatable:!0},{key:`system`,label:`System events`,blurb:`Rules about the installation: a node leaving the cluster, an addon crash-looping, an update available or installed, a backup or export finishing.`,newRuleLabel:`New system rule`,emptyHint:`No system rules yet. These tell you when a node leaves, an update lands or a backup finishes.`,creatable:!0},{key:`alarm`,label:`Alarm`,blurb:`Rules about the alarm panel: arming, armed, triggered, disarmed, and the refusals in between.`,newRuleLabel:`New alarm rule`,emptyHint:`No alarm rules yet. These tell you when the alarm arms, goes off or is disarmed.`,creatable:!0},{key:`mixed`,label:`To recreate`,blurb:`System rules authored before the three families existed. Each mixes families, keeps firing as it is, and can only be read or deleted: recreate it as one rule per family.`,newRuleLabel:`New rule`,emptyHint:`Nothing to recreate.`,creatable:!1}];function b4(e){return y4.find(t=>t.key===e)??y4[0]}function x4(e){return y4.find(t=>t.key===e)?.key}function S4(e){return e.conditions.audio!==void 0}function C4(e){return e.conditions.occupancy!==void 0}function w4(e,t){return t===`all`?!0:l4(e.delivery)?p4(e)===t:t===`audio`?S4(e):t===`occupancy`?C4(e):t===`sensor`?e.delivery===`device-event`&&!C4(e):t===`detection`?!S4(e)&&!C4(e)&&e.delivery!==`device-event`:!1}function T4(e){return l4(e.delivery)?h4(e.conditions.systemEvent):S4(e)?`audio`:C4(e)?`occupancy`:e.delivery===`device-event`?`sensor`:`detection`}var E4={op:`became-occupied`,count:1,sustainSeconds:15},D4={hitPercent:Y0.hitPercent,samplingSeconds:Y0.samplingSeconds,dbThreshold:J0};function O4(e){switch(e){case`device-events`:return{delivery:c4,conditions:{systemEvent:{kinds:[`device-offline`,`device-online`]}}};case`system`:return{delivery:c4,conditions:{systemEvent:{kinds:[`node-offline`,`node-online`]}}};case`alarm`:return{delivery:c4,conditions:{systemEvent:{kinds:[`alarm-triggered`]}}};case`audio`:return{delivery:`immediate`,conditions:{audio:D4}};case`occupancy`:return{delivery:`device-event`,conditions:{occupancy:E4}};case`sensor`:return{delivery:`device-event`,conditions:{}};default:return{delivery:`immediate`,conditions:{source:`pipeline`}}}}function k4(e){return O4(e).delivery}var A4=[`rule`,`devices`,`conditions`,`notification`,`actions`,`advanced`],j4={rule:`Rule`,devices:`Cameras`,conditions:`Conditions`,notification:`Notification`,actions:`Actions`,advanced:`Advanced`};function M4(e){let t=o4(e),n=[];for(let r of A4)r===`devices`&&Y2(e)||n.push({key:r,label:r===`conditions`?t.label:j4[r]});return n}var N4={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6},P4=new Map;function F4(e){let t=P4.get(e);if(t!==void 0)return t;let n;try{n=new Intl.DateTimeFormat(`en-US`,{timeZone:e,weekday:`short`,hour:`numeric`,minute:`numeric`,hourCycle:`h23`})}catch{n=null}return P4.set(e,n),n}function I4(e,t){let n=new Date(e),r=t===void 0?null:F4(t);if(r!==null)try{let e=r.formatToParts(n),t,i,a;for(let n of e)n.type===`weekday`?t=n.value:n.type===`hour`?i=Number(n.value):n.type===`minute`&&(a=Number(n.value));let o=t===void 0?void 0:N4[t];if(o!==void 0&&i!==void 0&&a!==void 0)return{day:o,minute:i*60+a}}catch{}return{day:n.getDay(),minute:n.getHours()*60+n.getMinutes()}}function L4(e,t){if(e===void 0)return!0;let{day:n,minute:r}=I4(t,e.timezone),i=(n+6)%7,a=!1;for(let t of e.windows)if(t.startMinute<=t.endMinute){if(t.days.includes(n)&&r>=t.startMinute&&r<t.endMinute){a=!0;break}}else if(t.days.includes(n)&&r>=t.startMinute||t.days.includes(i)&&r<t.endMinute){a=!0;break}return e.invert===!0?!a:a}var R4=`armed_`,z4=`alarm-panel`,B4=`trigger`,V4=[`contact`,`cover`,`lock`,`switch`],H4=[`cover`,`lock-control`,`switch`];function U4(e){return H4.includes(e)}function W4(e,t){if(e.kind===`do`){let t=e.action;return t.kind===`cap`&&t.cap===z4&&t.method===B4}let n=t?.(e.sequenceId);return n===void 0?!1:n.some(e=>e.kind===`cap`&&e.cap===z4&&e.method===B4)}function G4(e){return(e.conditions.deviceState?.states??[]).some(e=>e.trim().toLowerCase().startsWith(R4))}function K4(e){if(G4(e))return!0;for(let t of e.actions?.onTrigger??[])if(W4(t,e.sequenceActionsOf))return!0;return!1}function q4(e){return G4(e)}function J4(e){let t=e.trim().toLowerCase();return V4.some(e=>e===t)}var Y4=`This rule belongs to the alarm, and an alarm rule fires only when an opening OPENS. Set to “only when it clears”, it can never fire.`;function X4(e){if(e.conditions.sensorTransition!==`cleared`)return!1;let t=e.conditions.sensorKinds??[];return t.length===0||!t.every(J4)?!1:K4(e)}function Z4(e){return e.controllable?e.blocking.includes(e.deviceId):!e.nonBlocking.includes(e.deviceId)}function Q4(e){return e.controllable?!e.secureOnArmOff.includes(e.deviceId):!1}function $4(e){if(!U4(e))return null;switch(e){case`cover`:return{cap:e,method:`close`,args:{}};case`lock-control`:return{cap:e,method:`lock`,args:{}};case`switch`:return{cap:e,method:`setState`,args:{on:!1}}}}var e3=[`exitDelaySec`,`entryDelaySec`,`triggeredDurationSec`],t3=[`notifyDuringEntryDelay`,`notifySensorRewatched`,`notifySensorIgnored`];function n3(e,t){let n=(e.modeDelays??[]).find(e=>e.mode===t);return{notifyDuringEntryDelay:n?.notifyDuringEntryDelay===!0,notifySensorRewatched:n?.notifySensorRewatched===!0,notifySensorIgnored:n?.notifySensorIgnored===!0}}function r3(e,t){return e===void 0?t>0?`rearmAfter`:`doNothing`:e}function i3(e,t){return e===void 0?{value:t,source:`default`}:{value:e,source:`mode`}}function a3(e,t){let n=(e.modeDelays??[]).find(e=>e.mode===t),r=i3(n?.exitDelaySec,e.exitDelaySec),i=i3(n?.entryDelaySec,e.entryDelaySec),a=i3(n?.triggeredDurationSec,e.triggeredDurationSec),o=n?.postTriggeredAction,s=o===void 0?`default`:`mode`,c=r3(o??e.postTriggeredAction,a.value);return{exitDelaySec:r.value,entryDelaySec:i.value,triggeredDurationSec:a.value,postTriggeredAction:c,source:{exitDelaySec:r.source,entryDelaySec:i.source,triggeredDurationSec:a.source,postTriggeredAction:s}}}function o3(e,t){return t===void 0?e:t===null?void 0:t}function s3(e,t){return t===void 0?e:t===null?void 0:t}function c3(e,t){return t===void 0?e:t===null?void 0:t}function l3(e,t){return t===void 0?e:t===null?void 0:t}function u3(e,t){if(e===void 0&&t===void 0)return!0;if(e===void 0||t===void 0||e.invert!==t.invert||e.timezone!==t.timezone||e.windows.length!==t.windows.length)return!1;for(let n=0;n<e.windows.length;n++){let r=e.windows[n],i=t.windows[n];if(r===void 0||i===void 0||r.startMinute!==i.startMinute||r.endMinute!==i.endMinute||r.days.length!==i.days.length)return!1;for(let e=0;e<r.days.length;e++)if(r.days[e]!==i.days[e])return!1}return!0}function d3(e,t){let n=e.map(e=>({...e}));for(let e of t){let t=n.findIndex(t=>t.mode===e.mode),r=t>=0?n[t]??{mode:e.mode}:{mode:e.mode},i={mode:e.mode},a=o3(r.exitDelaySec,e.exitDelaySec),o=o3(r.entryDelaySec,e.entryDelaySec),s=o3(r.triggeredDurationSec,e.triggeredDurationSec),c=s3(r.postTriggeredAction,e.postTriggeredAction),l=l3(r.schedule,e.schedule),u=c3(r.notifyDuringEntryDelay,e.notifyDuringEntryDelay),d=c3(r.notifySensorRewatched,e.notifySensorRewatched),f=c3(r.notifySensorIgnored,e.notifySensorIgnored);a!==void 0&&(i.exitDelaySec=a),o!==void 0&&(i.entryDelaySec=o),s!==void 0&&(i.triggeredDurationSec=s),c!==void 0&&(i.postTriggeredAction=c),l!==void 0&&(i.schedule=l),u!==void 0&&(i.notifyDuringEntryDelay=u),d!==void 0&&(i.notifySensorRewatched=d),f!==void 0&&(i.notifySensorIgnored=f),t>=0?n[t]=i:n.push(i)}return n.filter(e=>e.exitDelaySec!==void 0||e.entryDelaySec!==void 0||e.triggeredDurationSec!==void 0||e.postTriggeredAction!==void 0||e.schedule!==void 0||e.notifyDuringEntryDelay!==void 0||e.notifySensorRewatched!==void 0||e.notifySensorIgnored!==void 0)}function f3(e,t){let n=e.map(e=>({mode:e.mode,deviceIds:[...e.deviceIds]})),r=n.findIndex(e=>e.mode===t.mode),i=r>=0?n[r]?.deviceIds??[]:[],a=i.includes(t.deviceId);if(t.present===a)return{kind:`applied`,lists:n,changed:!1};if(t.present){if(i.length>=200)return{kind:`refused`,reason:`list-full`,mode:t.mode,max:200};let e={mode:t.mode,deviceIds:[...i,t.deviceId]};r>=0?n[r]=e:n.push(e)}else{let e={mode:t.mode,deviceIds:i.filter(e=>e!==t.deviceId)};r>=0&&(n[r]=e)}return{kind:`applied`,lists:n.filter(e=>e.deviceIds.length>0),changed:!0}}function p3(e,t){return f3(e,{mode:t.mode,deviceId:t.deviceId,present:t.nonBlocking})}function m3(e,t){return f3(e,{mode:t.mode,deviceId:t.deviceId,present:t.blocking})}function h3(e,t){return f3(e,{mode:t.mode,deviceId:t.deviceId,present:!t.secureOnArm})}function g3(e,t){let n=new Set(e),r=new Set(t);return n.size===r.size&&[...n].every(e=>r.has(e))}function _3(e){let t=new Map;for(let n of e)n.deviceIds.length>0&&t.set(n.mode,new Set(n.deviceIds));return t}function v3(e,t){let n=_3(e),r=_3(t);if(n.size!==r.size)return!1;for(let[e,t]of n){let n=r.get(e);if(n===void 0||!g3([...t],[...n]))return!1}return!0}function y3(e,t){if(e!==void 0)switch(t){case`exitDelaySec`:return e.exitDelaySec;case`entryDelaySec`:return e.entryDelaySec;case`triggeredDurationSec`:return e.triggeredDurationSec}}function b3(e,t){switch(t){case`exitDelaySec`:return e.exitDelaySec;case`entryDelaySec`:return e.entryDelaySec;case`triggeredDurationSec`:return e.triggeredDurationSec}}function x3(e,t,n){return e?.find(e=>e.mode===t)?.deviceIds.includes(n)??!1}function S3(e,t){if(e.exitDelaySec!==void 0&&e.exitDelaySec!==t.exitDelaySec||e.entryDelaySec!==void 0&&e.entryDelaySec!==t.entryDelaySec||e.triggeredDurationSec!==void 0&&e.triggeredDurationSec!==t.triggeredDurationSec||e.postTriggeredAction!==void 0&&e.postTriggeredAction!==r3(t.postTriggeredAction,t.triggeredDurationSec)||e.announceTargets!==void 0&&!g3(e.announceTargets,t.announceTargets)||e.nonBlocking!==void 0&&!v3(e.nonBlocking,t.nonBlocking??[])||e.blocking!==void 0&&!v3(e.blocking,t.blocking??[])||e.secureOnArmOff!==void 0&&!v3(e.secureOnArmOff,t.secureOnArmOff??[]))return!1;for(let n of e.modeDelays??[]){let e=(t.modeDelays??[]).find(e=>e.mode===n.mode);for(let t of e3){let r=b3(n,t);if(r===void 0)continue;let i=y3(e,t);if(r===null?i!==void 0:i!==r)return!1}if(n.postTriggeredAction!==void 0){let t=e?.postTriggeredAction;if(n.postTriggeredAction===null?t!==void 0:t!==n.postTriggeredAction)return!1}for(let t of t3){let r=n[t];if(r===void 0)continue;let i=e?.[t];if(r===null?i!==void 0:i!==r)return!1}if(n.schedule!==void 0){let t=e?.schedule;if(n.schedule===null?t!==void 0:!u3(t,n.schedule))return!1}}if(e.nonBlockingEdit!==void 0){let n=e.nonBlockingEdit;if(x3(t.nonBlocking,n.mode,n.deviceId)!==n.nonBlocking)return!1}if(e.blockingEdit!==void 0){let n=e.blockingEdit;if(x3(t.blocking,n.mode,n.deviceId)!==n.blocking)return!1}if(e.secureOnArmEdit!==void 0){let n=e.secureOnArmEdit;if(x3(t.secureOnArmOff,n.mode,n.deviceId)===n.secureOnArm)return!1}return!0}var C3=`default`,w3=`Default`,T3={exitDelaySec:30,entryDelaySec:20,triggeredDurationSec:10,postTriggeredAction:`rearmAfter`};function E3(){return{...T3,announceTargets:[],nonBlocking:[],blocking:[],secureOnArmOff:[],modeDelays:[]}}function D3(e){return e===C3}function O3(e){return{exitDelaySec:e.exitDelaySec,entryDelaySec:e.entryDelaySec,triggeredDurationSec:e.triggeredDurationSec,...e.postTriggeredAction===void 0?{}:{postTriggeredAction:e.postTriggeredAction},...e.announceArm===void 0?{}:{announceArm:e.announceArm},announceTargets:[...e.announceTargets],nonBlocking:e.nonBlocking.map(e=>({mode:e.mode,deviceIds:[...e.deviceIds]})),blocking:e.blocking.map(e=>({mode:e.mode,deviceIds:[...e.deviceIds]})),secureOnArmOff:e.secureOnArmOff.map(e=>({mode:e.mode,deviceIds:[...e.deviceIds]})),modeDelays:e.modeDelays.map(e=>({mode:e.mode,...e.exitDelaySec===void 0?{}:{exitDelaySec:e.exitDelaySec},...e.entryDelaySec===void 0?{}:{entryDelaySec:e.entryDelaySec},...e.triggeredDurationSec===void 0?{}:{triggeredDurationSec:e.triggeredDurationSec},...e.postTriggeredAction===void 0?{}:{postTriggeredAction:e.postTriggeredAction},...e.schedule===void 0?{}:{schedule:{windows:e.schedule.windows.map(e=>({days:[...e.days],startMinute:e.startMinute,endMinute:e.endMinute})),...e.schedule.timezone===void 0?{}:{timezone:e.schedule.timezone},...e.schedule.invert===!0?{invert:!0}:{}}}}))}}function k3(e,t){return e!=null&&e.profiles.length>0?e.profiles.some(e=>e.id==="default")?e.profiles.some(t=>t.id===e.activeId)?e:{activeId:C3,profiles:e.profiles}:{activeId:e.activeId,profiles:[{id:C3,name:w3,settings:O3(t)},...e.profiles]}:{activeId:C3,profiles:[{id:C3,name:w3,settings:O3(t)}]}}function A3(e){return e.trim()}function j3(e,t,n){let r=t.toLowerCase();return e.profiles.some(e=>e.id!==n&&e.name.trim().toLowerCase()===r)}function M3(e,t){let n=A3(t.name);if(n.length===0)return{kind:`refused`,reason:`name-empty`};if(j3(e,n))return{kind:`refused`,reason:`name-taken`,detail:n};if(D3(t.id))return{kind:`refused`,reason:`cannot-rename-default-id`};let r;if(t.source.kind===`defaults`)r=E3();else{let n=t.source.fromId,i=e.profiles.find(e=>e.id===n);if(i===void 0)return{kind:`refused`,reason:`clone-source-missing`,detail:n};r=O3(i.settings)}return{kind:`ok`,state:{activeId:e.activeId,profiles:[...e.profiles,{id:t.id,name:n,settings:r}]}}}function N3(e,t){let n=A3(t.name);if(n.length===0)return{kind:`refused`,reason:`name-empty`};let r=e.profiles.findIndex(e=>e.id===t.id);if(r<0)return{kind:`refused`,reason:`not-found`,detail:t.id};if(j3(e,n,t.id))return{kind:`refused`,reason:`name-taken`,detail:n};let i=e.profiles.map((e,t)=>t===r?{...e,name:n}:e);return{kind:`ok`,state:{activeId:e.activeId,profiles:i}}}function P3(e,t){if(D3(t))return{kind:`refused`,reason:`cannot-delete-default`};if(!e.profiles.some(e=>e.id===t))return{kind:`refused`,reason:`not-found`,detail:t};let n=e.profiles.filter(e=>e.id!==t);return{kind:`ok`,state:{activeId:e.activeId===t?C3:e.activeId,profiles:n}}}function F3(e,t){return e.profiles.some(e=>e.id===t)?{kind:`ok`,state:{activeId:t,profiles:e.profiles}}:{kind:`refused`,reason:`not-found`,detail:t}}function I3(e,t){return{activeId:e.activeId,profiles:e.profiles.map(n=>n.id===e.activeId?{...n,settings:O3(t)}:n)}}function L3(e,t){return e.profiles.find(e=>e.id===t)}var R3=Object.freeze(Object.fromEntries(Object.entries(BR).flatMap(([e,t])=>{let n=jp[e];return n===void 0||t.category!==`sensor`?[]:[[t.kind,n]]}))),z3=Object.freeze(Object.keys(R3));function B3(e){return e.trim().toLowerCase()}function V3(e,t){if(t===null)return;let n=R3[B3(e)];if(n===void 0)return;let r=Object.entries(t).find(([e])=>e===n)?.[1];return typeof r==`boolean`?r:void 0}function H3(e){return e===void 0||e.length===0?!1:e.every(e=>z3.includes(B3(e)))}var U3=`Only a sensor that raises and clears (water, smoke, gas, CO, vibration, tamper, motion, contact) can fire on one edge. Pick only such sensor kinds, or the rule fires on every change.`,W3=f({phase:x([`raised`,`resolved`]),episodeId:u().min(1),alertId:u().min(1),severity:Jh,category:u(),title:u(),message:u(),sourceType:u().optional(),sourceId:u().optional(),nodeId:u().optional(),actionUrl:u().optional(),at:a()});function G3(e){let t=W3.safeParse(e);return t.success?t.data:null}function K3(e){return e!==`completed`&&e!==`dismissed`}function q3(e){return e===`critical`||e===`error`}function J3(e){let t=e.metadata?.episodeId;return typeof t==`string`&&t.length>0?t:`${e.id}@${String(e.createdAt)}`}function Y3(e){let t=e.metadata?.nodeId;if(typeof t==`string`)return t;let n=e.metadata?.runner;if(typeof n==`object`&&n&&`nodeId`in n){let e=n.nodeId;if(typeof e==`string`)return e}return e.source?.type===`node`?e.source.id:void 0}function X3(e,t){return e===`critical`?t===`raised`?`alert-critical`:`alert-critical-resolved`:e===`error`&&t===`raised`?`alert-error`:null}function Z3(e,t,n){let r=Y3(e);return{phase:t,episodeId:J3(e),alertId:e.id,severity:e.severity,category:e.category,title:e.title,message:e.message,...e.source===void 0?{}:{sourceType:e.source.type,sourceId:e.source.id},...r===void 0?{}:{nodeId:r},...e.action?.href===void 0?{}:{actionUrl:e.action.href},at:n}}var Q3=[`body`],Q=[`title`,`body`],$3=[`device-battery-low`,`device-battery-normal`],e6=[`device-consumable-low`,`device-consumable-normal`],t6=[`device-tank-low`,`device-tank-full`,`device-tank-normal`],n6=[`alert-critical`,`alert-error`,`alert-critical-resolved`],r6=[`addon-update-available`,`server-update-available`,`wrapper-update-available`],i6=[`addon-update-available`,`server-update-available`],a6=[`alarm-triggered`,`alarm-armed`,`alarm-disarmed`,`alarm-arming`,`alarm-arm-refused`,`alarm-pending`,`alarm-rearmed`,`alarm-sensor-bypass`,`alarm-check-failed`],o6=[`alarm-triggered`],s6=[`device-online`,`device-offline`,`device-disabled`,`device-enabled`,...$3,...e6,...t6,`stream-online`,`stream-offline`,`detection-blind`,`recording-stalled`,`recording-healthy`,`recording-degraded`,...a6],c6=[...U2(`device-events`),...U2(`system`)],l6=[{name:`summaryDevices`,label:`Summary: devices offline / switched off`,example:`Garage — offline since 07:12`,kinds:[`device-offline`,`device-online`,`device-disabled`,`device-enabled`]},{name:`summaryStreams`,label:`Summary: streams offline`,example:`Ingresso (high) — since 06:40`,kinds:[`stream-offline`,`stream-online`]},{name:`summaryBattery`,label:`Summary: low batteries`,example:`Sensore porta — 8 %`,kinds:$3},{name:`summaryConsumables`,label:`Summary: consumables`,example:`Robot — filter 10 %`,kinds:e6},{name:`summaryTanks`,label:`Summary: tanks`,example:`Robot — clean water low`,kinds:t6},{name:`summaryDetection`,label:`Summary: cameras detecting nothing`,example:`Ingresso — since 05:10`,kinds:[`detection-blind`]},{name:`summaryNodes`,label:`Summary: nodes`,example:`little-unraid — offline since 03:00`,kinds:[`node-offline`,`node-online`,`node-restarting`,`node-inference-unavailable`]},{name:`summaryAddons`,label:`Summary: addons stopped`,example:`hub — recorder stopped after repeated crashes`,kinds:[`addon-crash-loop`]},{name:`summaryAddonUpdates`,label:`Summary: addon updates`,example:`hub:
358
- • @camstack/addon-recorder 1.2.3 → 1.2.4`,kinds:[`addon-update-available`,`addon-updated`]},{name:`summaryUpdates`,label:`Summary: server & container updates`,example:`server 1.2.377 → 1.2.378`,kinds:[`server-update-available`,`node-updating`,`server-updated`,`wrapper-update-available`]}],u6=[{name:`summaryText`,label:`Summary: every section`,description:`One block per section with something to report, one line per item.`,example:`Batterie scariche: Sensore porta — 8 %`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...c6],systemEventDeliveries:[`summary`]},{name:`summaryCount`,label:`Summary: items reported`,example:`3`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...c6],systemEventDeliveries:[`summary`]},{name:`summarySection`,label:`Summary: this section`,description:`The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.`,example:`Batterie scariche`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...c6],systemEventDeliveries:[`summary`]},...l6.map(e=>({name:e.name,label:e.label,example:e.example,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...e.kinds],systemEventDeliveries:[`summary`]}))],d6=[{name:`camera`,label:`Camera`,example:`Ingresso`,group:`subject`,families:[`rule`,`timelapse`],systemEventKinds:[...s6,`export-completed`]},{name:`class`,label:`Detected class`,description:`The wire class id (e.g. "person", "cat"); the counted class on an occupancy row.`,example:`person`,group:`subject`,families:[`rule`],fields:[...Q],kinds:[`detection`,`sensor`,`sound`,`occupancy`,`system`],systemEventKinds:[...o6]},{name:`classLabel`,label:`Detected class (translated)`,description:`Human label of {{class}} in the notification language (EVENT_KIND_LABELS); falls back to the raw id.`,example:`Persona`,group:`subject`,families:[`rule`],fields:[...Q],kinds:[`detection`,`sensor`,`sound`,`occupancy`,`system`],systemEventKinds:[...o6]},{name:`label`,label:`Name or plate`,description:`Recognised person or read plate; empty otherwise.`,example:`Mario`,group:`subject`,families:[`rule`],fields:[...Q],kinds:[`detection`,`system`],systemEventKinds:[...o6]},{name:`subject`,label:`Subject sentence`,description:`Composed in the notification language, e.g. "person (Mario)".`,example:`persona (Mario)`,group:`subject`,families:[`rule`],fields:[...Q],kinds:[`detection`,`sensor`,`sound`,`occupancy`]},{name:`confidence`,label:`Confidence`,example:`87%`,group:`subject`,families:[`rule`],fields:[...Q],kinds:[`detection`,`system`],systemEventKinds:[...o6]},{name:`count`,label:`Count`,description:`Occupancy count, subjects in a grouped notification, or the event count of a system notice.`,example:`3`,group:`subject`,families:[`rule`],fields:[...Q],kinds:[`detection`,`occupancy`,`system`],systemEventKinds:[`addon-crash-loop`,...i6,`addon-updated`]},{name:`detectionSummary`,label:`Detection summary`,description:`Class composition, e.g. "2 persons and 1 car".`,example:`2 persone e 1 auto`,group:`subject`,families:[`rule`,`timelapse`,`summary`],fields:[...Q],kinds:[`detection`]},{name:`zones`,label:`Zones`,example:`Cancello, Vialetto`,group:`place`,families:[`rule`],fields:[...Q],kinds:[`detection`,`system`],systemEventKinds:[...o6]},{name:`zone`,label:`Zone`,example:`Cancello`,group:`place`,families:[`rule`],fields:[...Q],kinds:[`detection`,`occupancy`,`system`],systemEventKinds:[...o6]},{name:`inZones`,label:`"in <zones>" fragment`,description:`Leading space included; empty when no zone.`,example:` in Cancello`,group:`place`,families:[`rule`],fields:[...Q],kinds:[`detection`,`system`],systemEventKinds:[...o6]},{name:`scope`,label:`Occupancy scope`,example:`Cancello`,group:`place`,families:[`rule`],fields:[...Q],kinds:[`occupancy`]},{name:`time`,label:`Time`,description:`Hours and minutes, in the notification language.`,example:`20:05`,group:`time`,families:[`rule`,`timelapse`,`summary`],fields:[...Q]},{name:`rule`,label:`Rule name`,example:`Ingresso notte`,group:`rule`,families:[`rule`,`timelapse`,`summary`]},{name:`from`,label:`Window start`,example:`07:00`,group:`time`,families:[`timelapse`,`summary`]},{name:`to`,label:`Window end`,example:`08:00`,group:`time`,families:[`timelapse`,`summary`]},{name:`capacity`,label:`Capacity`,example:`2`,group:`occupancy`,families:[`rule`],fields:[...Q],kinds:[`occupancy`]},{name:`op`,label:`Occupied / free`,example:`occupata`,group:`occupancy`,families:[`rule`],fields:[...Q],kinds:[`occupancy`]},{name:`sounds`,label:`Sounds heard`,example:`abbaio, clacson`,group:`sound`,families:[`rule`],fields:[...Q],kinds:[`sound`]},{name:`hitPercent`,label:`Share of the window`,description:`Level mode only: percentage of samples above the threshold.`,example:`42`,group:`sound`,families:[`rule`],fields:[...Q],kinds:[`sound`]},{name:`db`,label:`Peak level (dBFS)`,example:`-18`,group:`sound`,families:[`rule`],fields:[...Q],kinds:[`sound`]},{name:`eventType`,label:`Event type`,description:`Raw device event token, e.g. "press" or "open"; empty when the device sends none.`,example:`press`,group:`sensor`,families:[`rule`],fields:[...Q],kinds:[`sensor`]},{name:`ai`,label:`AI sentence`,description:`Where the AI description goes; appended on its own line when absent.`,example:`Una persona lascia un pacco.`,group:`ai`,families:[`rule`,`summary`],fields:[...Q3],kinds:[`detection`,`occupancy`]},{name:`eventKind`,label:`Event kind`,example:`device-offline`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventDeliveries:[`instant`]},{name:`deviceName`,label:`Device`,example:`Ingresso`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...s6]},{name:`locations`,label:`Intrusion locations`,example:`Ingresso, Corridoio, Salone`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...o6]},{name:`deviceId`,label:`Device id`,example:`617`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...s6,`export-completed`]},{name:`percentage`,label:`Percentage`,example:`15`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...$3,...e6]},{name:`item`,label:`Consumable`,example:`Filtro`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...e6]},{name:`tank`,label:`Tank`,description:`Which tank: clean water, dirty water, detergent or dust bin.`,example:`clean water`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...t6]},{name:`profile`,label:`Stream profile`,example:`high`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`stream-online`,`stream-offline`]},{name:`node`,label:`Node`,example:`hub`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`node-online`,`node-offline`,`node-restarting`,`node-updating`,`node-inference-unavailable`,`addon-crash-loop`,...r6,`addon-updated`,`server-updated`,`storage-location-low`,`storage-location-critical`,`storage-location-ok`,...n6]},{name:`nodeId`,label:`Node id`,example:`hub`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`node-online`,`node-offline`,`node-restarting`,`node-updating`,`node-inference-unavailable`,`addon-crash-loop`,...r6,`server-updated`,`storage-location-low`,`storage-location-critical`,`storage-location-ok`,...n6]},{name:`nodeName`,label:`Node name`,example:`little-unraid`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`node-online`,`node-offline`]},{name:`offlineFor`,label:`Offline for`,example:`44 min`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`node-online`]},{name:`devices`,label:`Devices`,description:`node-inference-unavailable: the affected cameras, comma-joined. Alarm arm / arming / refusal: HOW MANY devices are armed (or open).`,example:`Ingresso, Garage`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`node-inference-unavailable`,`alarm-armed`,`alarm-arming`,`alarm-arm-refused`]},{name:`addons`,label:`Addons`,example:`stream-broker`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`addon-crash-loop`]},{name:`minutes`,label:`Minutes`,example:`12`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`detection-blind`,`recording-stalled`]},{name:`message`,label:`Detail`,example:`writer restart budget exhausted`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`recording-degraded`,...n6]},{name:`locationName`,label:`Storage location`,example:`Recordings`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`storage-location-low`,`storage-location-critical`,`storage-location-ok`]},{name:`locationId`,label:`Storage location id`,example:`recordings:default`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`storage-location-low`,`storage-location-critical`,`storage-location-ok`]},{name:`freePercent`,label:`Free space (%)`,example:`12`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`storage-location-low`]},{name:`reason`,label:`Reason`,example:`capacity-unreadable`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`storage-location-low`,`storage-location-critical`,`storage-location-ok`]},{name:`package`,label:`Package`,example:`@camstack/addon-recorder`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...r6,`addon-updated`,`node-updating`,`server-updated`]},{name:`packageName`,label:`Package`,example:`@camstack/addon-recorder`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...i6,`node-updating`,`server-updated`]},{name:`nodes`,label:`Nodes`,description:"Comma-joined node ids, when an update spans more than one — the single-node case names it through {{nodeId}} instead. `incomingFromUpdateAvailable` (event-intake.ts) fills `nodes` from ONE shared textParams object for both addon- and server-update-available, exactly like packageName/currentVersion/latestVersion/count — only the shipped TEXT (system.server-update-available.body.onNodes) reads it today, but the var is real on both kinds.",example:`hub, little-unraid`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...i6]},{name:`currentVersion`,label:`Current version`,example:`1.2.377`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...r6]},{name:`latestVersion`,label:`Latest version`,example:`1.2.378`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...r6]},{name:`list`,label:`Updated packages`,description:"One line per package. `incomingFromUpdateAvailable` fills it for addon-/server-update-available too (the SAME shared textParams object as `nodes`) — `system.addon-update-available.body` reads it; `incomingFromAddonUpdates` fills it again, independently, for the completed `addon-updated` event.",example:`recorder, notifiers`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...i6,`addon-updated`]},{name:`fromVersion`,label:`From version`,example:`1.2.377`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`node-updating`,`server-updated`]},{name:`toVersion`,label:`To version`,example:`1.2.378`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`node-updating`,`server-updated`]},{name:`destinationsOk`,label:`Destinations ok`,example:`2`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`backup-completed`]},{name:`destinationsTotal`,label:`Destinations`,example:`2`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`backup-completed`]},{name:`destinationsFailed`,label:`Destinations failed`,example:`0`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`backup-completed`]},{name:`sizeMB`,label:`Size (MB)`,example:`412`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`backup-completed`]},{name:`backupId`,label:`Backup id`,example:`bk-20260924`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`backup-completed`]},{name:`title`,label:`Export or alert title`,example:`Ingresso 08:00`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`export-completed`,...n6]},{name:`severity`,label:`Alert severity`,example:`critical`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...n6]},{name:`category`,label:`Alert category`,example:`addon.runner-failed`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...n6]},{name:`source`,label:`Alert source (addon, node or runner)`,example:`recorder`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...n6]},{name:`actionUrl`,label:`Alert action link`,example:`/system/addons`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[...n6]},{name:`exportId`,label:`Export id`,example:`exp-20260924`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`export-completed`]},{name:`bytes`,label:`Export size (bytes)`,example:`10485760`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`export-completed`]},{name:`mode`,label:`Alarm mode`,example:`away`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-armed`,`alarm-arming`,`alarm-arm-refused`,`alarm-pending`,`alarm-rearmed`,`alarm-check-failed`]},{name:`seconds`,label:`Seconds`,description:`Arming: the exit delay left. Pending: the entry delay left to disarm.`,example:`30`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-arming`,`alarm-pending`]},{name:`rules`,label:`Covering rules`,description:`How many enabled rules the armed / arming mode gates.`,example:`2`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-armed`,`alarm-arming`]},{name:`names`,label:`Device names`,description:`Armed / arming: the Active devices (or every skipped name when none are Active). Refusal: the open sensors.`,example:`Ingresso, Garage`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-armed`,`alarm-arming`,`alarm-arm-refused`]},{name:`skippedNames`,label:`Skipped devices`,description:`Devices the mode names but cannot arm (muted, detection off, offline).`,example:`Garage`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-armed`,`alarm-arming`]},{name:`active`,label:`Active count`,description:`How many named devices the armed / arming mode is watching (title: n attivi / n active).`,example:`3`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-armed`,`alarm-arming`]},{name:`skipped`,label:`Skipped count`,description:`How many named devices the mode cannot arm — muted, detection off, offline, or Arm-anyway exclusions (title: m saltati).`,example:`1`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-armed`,`alarm-arming`]},{name:`bypassedNames`,label:`Bypassed sensors`,description:`Sensors the operator armed around because they were open.`,example:`Finestra veranda`,group:`system`,families:[`rule`],fields:[...Q],kinds:[`system`],systemEventKinds:[`alarm-armed`,`alarm-arming`]},{name:`coverage`,label:`Coverage %`,example:`96`,group:`digest`,families:[`timelapse`],fields:[...Q]},{name:`events`,label:`Events`,example:`4`,group:`digest`,families:[`timelapse`,`summary`],fields:[...Q]},{name:`detections`,label:`Detections`,example:`7`,group:`digest`,families:[`timelapse`,`summary`],fields:[...Q]},{name:`count_person`,label:`Count of one class`,description:`count_<class>, e.g. count_person, count_car.`,example:`3`,group:`digest`,families:[`timelapse`,`summary`],fields:[...Q],dynamic:{prefix:`count_`,from:`classes`}},{name:`cameras`,label:`Cameras`,example:`3`,group:`digest`,families:[`summary`],fields:[...Q]},{name:`matched`,label:`Matched events`,example:`12`,group:`digest`,families:[`summary`],fields:[...Q]},{name:`shown`,label:`Events shown`,example:`9`,group:`digest`,families:[`summary`],fields:[...Q]},{name:`total`,label:`Events total`,example:`12`,group:`digest`,families:[`summary`],fields:[...Q]},...u6],f6=[`device-tank-low`,`device-tank-full`,`device-tank-normal`,`node-restarting`,`node-updating`,`alert-critical`,`alert-error`,`alert-critical-resolved`];function p6(){return d6.filter(e=>!m6(e)).map(e=>e.systemEventKinds===void 0?e:{...e,systemEventKinds:e.systemEventKinds.filter(e=>!f6.includes(e))})}function m6(e){return e.systemEventDeliveries!==void 0&&!e.systemEventDeliveries.includes(`instant`)}function h6(e,t){if(!Y2(t.kind))return!0;let n=t.systemEventDelivery??`instant`;return(e.systemEventDeliveries??(e.systemEventKinds===void 0?[n]:[`instant`])).includes(n)}var g6={previewText:[`camera`,`rule`,`from`,`to`],captionText:[`rule`,`from`,`to`]};function _6(e,t){return e===void 0||t===void 0||e.includes(t)}function v6(e,t){return e===void 0||t===void 0||e.some(e=>e===t)?!0:Y2(t)&&e.includes(`system`)}function y6(e,t){if(!Y2(t.kind)||e.systemEventKinds===void 0)return!0;let n=e.systemEventKinds,r=t.systemEventKinds??[];if(r.length>0)return r.some(e=>n.includes(e));let i=t.kind===void 0?void 0:X2(t.kind);if(i===void 0)return!0;let a=U2(i);return n.some(e=>a.includes(e))}function b6(e){if(e.field===`previewText`||e.field===`captionText`){let t=g6[e.field];return d6.filter(n=>n.families.includes(e.family)&&t.includes(n.name)&&n.dynamic===void 0)}return d6.filter(t=>t.families.includes(e.family)&&_6(t.fields,e.field)&&v6(t.kinds,e.kind)&&_6(t.deliveries,e.delivery)&&y6(t,e)&&h6(t,e))}function x6(e,t){return b6(t).some(t=>t.dynamic===void 0?t.name===e:e.startsWith(t.dynamic.prefix)&&e.length>t.dynamic.prefix.length)}var S6=[`device-events`,`system`];function C6(e){if(!l4(e.delivery))return null;let t=e.systemEventDelivery;return t?.mode===`summary`?t.schedule:null}function w6(e){let t=e.systemEventDelivery;return t?.mode===`summary`?t.split??`rule`:`rule`}function T6(e){return C6(e)!==null}function E6(e){return e===void 0?!1:(e.onActivation?.length??0)>0||(e.onDeactivation?.length??0)>0||(e.onTrigger?.length??0)>0||(e.onTriggerOff?.length??0)>0||(e.buttons?.length??0)>0}function D6(e){if(e.systemEventDelivery?.mode!==`summary`)return[];if(!l4(e.delivery))return[{code:`not-a-system-rule`,delivery:e.delivery}];let t=[],n=G2(e.conditions.systemEvent?.kinds??[]),r=n.kind===`family`?n.family:`mixed`;(r===`mixed`||!S6.includes(r))&&t.push({code:`family-not-summarisable`,family:r});let i=e.systemEventDelivery.schedule.windows;return i.length===0&&t.push({code:`empty-schedule`}),i.forEach((e,n)=>{(e.days.length===0||e.startMinute===e.endMinute)&&t.push({code:`degenerate-window`,index:n})}),e.schedule!==void 0&&t.push({code:`schedule-beside-summary`}),E6(e.actions)&&t.push({code:`actions-beside-summary`}),t}function O6(e){switch(e.code){case`not-a-system-rule`:return`a '${e.delivery}' rule has no summary delivery — only device-events and system rules do`;case`family-not-summarisable`:return e.family===`alarm`?`an alarm rule cannot be a scheduled summary — the alarm stays instant`:`a ${e.family} rule cannot be a scheduled summary — only device-events and system rules`;case`degenerate-window`:return`send time ${String(e.index+1)} has no day, or starts and ends on the same minute — it never closes, so nothing would be sent`;case`empty-schedule`:return`a summary rule needs at least one send time — its schedule has no window`;case`schedule-beside-summary`:return`a summary rule is sent on its summary schedule — remove the active-hours schedule`;case`actions-beside-summary`:return`a summary rule never matches an event, so its actions would never run — remove them`}}var k6=1440;function A6(e,t){return{windows:e.map(e=>{let t=(e.minute+k6-1)%k6;return{days:(e.minute===0?e.days.map(e=>(e+6)%7):[...e.days]).toSorted((e,t)=>e-t),startMinute:t,endMinute:e.minute}}),...t===void 0?{}:{timezone:t}}}function j6(e){if(e.invert===!0)return null;let t=[];for(let n of e.windows){if((n.endMinute-n.startMinute+k6)%k6!==1)return null;let e=n.endMinute===0?n.days.map(e=>(e+1)%7):n.days;t.push({days:e.toSorted((e,t)=>e-t),minute:n.endMinute})}return t}function M6(e){let t=j6(e);if(t!==null)return{times:t,approximated:!1};if(e.invert===!0)return null;let n=[];for(let t of e.windows){let e=t.endMinute===0?t.days.map(e=>(e+1)%7):t.days;n.push({days:e.toSorted((e,t)=>e-t),minute:t.endMinute})}return{times:n,approximated:n.length>0}}var N6=/\{\{\s*summary(?:Text|Devices|Streams|Battery|Consumables|Tanks|Detection|Nodes|Addons|AddonUpdates|Updates)\s*\}\}/;function P6(e){return e===void 0||e.trim().length===0?!0:N6.test(e)}function F6(e){return e.map(e=>({id:e.id,name:e.name,type:e.isHub?`hub`:`agent`,location:e.isOnline?`online`:`offline`,...e.name===e.id?{}:{detail:e.id}}))}var I6=`@camstack/server`,L6=[I6,`@camstack/system`,`camstack-wrapper`],R6={"@camstack/server":`server`,"@camstack/system":`framework`,"camstack-wrapper":`wrapper`};function z6(e){return L6.some(t=>t===e)}function B6(e){let t=new Map(e.map(e=>[e.name,e.version])),n=L6.map(e=>{let n=t.get(e);return{id:e,name:e,type:R6[e],location:null,...n===void 0?{}:{detail:n}}}),r=e.filter(e=>!z6(e.name)).map(e=>({id:e.name,name:e.name,type:`addon`,location:null,detail:e.version})).sort((e,t)=>e.name.localeCompare(t.name));return[...n,...r]}var V6=`disarmed.armed_home.armed_away.armed_night.armed_vacation.armed_custom_bypass.arming.disarming.pending.triggered.open.opening.closing.closed.stopped.locked.unlocked.locking.unlocking.jammed.on.off.home.not_home.matched.diverged.unknown.latched.live`.split(`.`),H6={disarmed:{en:`Disarmed`,it:`Disinserito`},armed_home:{en:`Armed (home)`,it:`Inserito (in casa)`},armed_away:{en:`Armed (away)`,it:`Inserito (fuori casa)`},armed_night:{en:`Armed (night)`,it:`Inserito (notte)`},armed_vacation:{en:`Armed (vacation)`,it:`Inserito (vacanza)`},armed_custom_bypass:{en:`Armed (custom)`,it:`Inserito (personalizzato)`},arming:{en:`Arming`,it:`In inserimento`},disarming:{en:`Disarming`,it:`In disinserimento`},pending:{en:`Pending (entry delay)`,it:`In attesa (ritardo ingresso)`},triggered:{en:`Triggered`,it:`In allarme`},open:{en:`Open`,it:`Aperto`},opening:{en:`Opening`,it:`In apertura`},closing:{en:`Closing`,it:`In chiusura`},closed:{en:`Closed`,it:`Chiuso`},stopped:{en:`Stopped`,it:`Fermo`},locked:{en:`Locked`,it:`Bloccata`},unlocked:{en:`Unlocked`,it:`Sbloccata`},locking:{en:`Locking`,it:`In blocco`},unlocking:{en:`Unlocking`,it:`In sblocco`},jammed:{en:`Jammed`,it:`Inceppata`},on:{en:`On`,it:`Acceso`},off:{en:`Off`,it:`Spento`},home:{en:`Home`,it:`In casa`},not_home:{en:`Away`,it:`Fuori casa`},matched:{en:`Matched (as captured)`,it:`Corrisponde (come acquisita)`},diverged:{en:`Diverged (changed)`,it:`Diversa (cambiata)`},unknown:{en:`Cannot judge`,it:`Non valutabile`},latched:{en:`Latched`,it:`Memorizzato`},live:{en:`Live`,it:`In tempo reale`}},U6=new Set(V6);function W6(e){return U6.has(e)}function G6(e,t){return W6(e)?H6[e][t]:e}var K6=`motion.audio.person.vehicle.animal.package.sensor.control.car.truck.bus.motorcycle.bicycle.airplane.boat.train.bird.cat.dog.horse.sheep.cow.elephant.bear.zebra.giraffe.package-delivered.package-picked-up.contact.motion-sensor.smoke.flood.gas.carbon-monoxide.vibration.tamper.presence.enum-sensor.device-event.lock.cover.switch.siren.button.doorbell.audio-speech.audio-scream.audio-crying.audio-laughter.audio-music.audio-dog.audio-cat.audio-bird.audio-animal.audio-alarm.audio-doorbell.audio-glass_breaking.audio-gunshot.audio-vehicle.audio-siren.audio-fire.audio-water.audio-wind.audio-door.audio-footsteps.audio-crowd.audio-telephone.audio-engine.audio-tools.audio-silence`.split(`.`),q6={motion:{en:`Motion`,it:`Movimento`},audio:{en:`Audio`,it:`Audio`},person:{en:`Person`,it:`Persona`},vehicle:{en:`Vehicle`,it:`Veicolo`},animal:{en:`Animal`,it:`Animale`},package:{en:`Package`,it:`Pacco`},sensor:{en:`Sensor`,it:`Sensore`},control:{en:`Control`,it:`Controllo`},car:{en:`Car`,it:`Auto`},truck:{en:`Truck`,it:`Camion`},bus:{en:`Bus`,it:`Autobus`},motorcycle:{en:`Motorcycle`,it:`Motocicletta`},bicycle:{en:`Bicycle`,it:`Bicicletta`},airplane:{en:`Airplane`,it:`Aereo`},boat:{en:`Boat`,it:`Barca`},train:{en:`Train`,it:`Treno`},bird:{en:`Bird`,it:`Uccello`},cat:{en:`Cat`,it:`Gatto`},dog:{en:`Dog`,it:`Cane`},horse:{en:`Horse`,it:`Cavallo`},sheep:{en:`Sheep`,it:`Pecora`},cow:{en:`Cow`,it:`Mucca`},elephant:{en:`Elephant`,it:`Elefante`},bear:{en:`Bear`,it:`Orso`},zebra:{en:`Zebra`,it:`Zebra`},giraffe:{en:`Giraffe`,it:`Giraffa`},"package-delivered":{en:`Package delivered`,it:`Pacco consegnato`},"package-picked-up":{en:`Package picked up`,it:`Pacco ritirato`},contact:{en:`Contact`,it:`Contatto`},"motion-sensor":{en:`Motion sensor`,it:`Sensore movimento`},smoke:{en:`Smoke`,it:`Fumo`},flood:{en:`Water leak`,it:`Allagamento`},gas:{en:`Gas`,it:`Gas`},"carbon-monoxide":{en:`Carbon monoxide`,it:`Monossido di carbonio`},vibration:{en:`Vibration`,it:`Vibrazione`},tamper:{en:`Tamper`,it:`Manomissione`},presence:{en:`Presence`,it:`Presenza`},"enum-sensor":{en:`Sensor state`,it:`Stato sensore`},"device-event":{en:`Device event`,it:`Evento dispositivo`},lock:{en:`Lock`,it:`Serratura`},cover:{en:`Cover`,it:`Tapparella`},switch:{en:`Switch`,it:`Interruttore`},siren:{en:`Siren`,it:`Sirena`},button:{en:`Button`,it:`Pulsante`},doorbell:{en:`Doorbell`,it:`Campanello`},"audio-speech":{en:`Speech`,it:`Voce`},"audio-scream":{en:`Scream / Shout`,it:`Urlo`},"audio-crying":{en:`Crying / Baby`,it:`Pianto / Neonato`},"audio-laughter":{en:`Laughter`,it:`Risata`},"audio-music":{en:`Music`,it:`Musica`},"audio-dog":{en:`Dog`,it:`Cane`},"audio-cat":{en:`Cat`,it:`Gatto`},"audio-bird":{en:`Bird`,it:`Uccello`},"audio-animal":{en:`Animal (other)`,it:`Animale (altro)`},"audio-alarm":{en:`Alarm / Siren`,it:`Allarme`},"audio-doorbell":{en:`Doorbell / Knock`,it:`Campanello`},"audio-glass_breaking":{en:`Glass Breaking`,it:`Vetro rotto`},"audio-gunshot":{en:`Gunshot / Explosion`,it:`Sparo / Esplosione`},"audio-vehicle":{en:`Vehicle`,it:`Veicolo`},"audio-siren":{en:`Emergency Siren`,it:`Sirena`},"audio-fire":{en:`Fire / Smoke`,it:`Fuoco / Fumo`},"audio-water":{en:`Water`,it:`Acqua`},"audio-wind":{en:`Wind / Weather`,it:`Vento / Maltempo`},"audio-door":{en:`Door`,it:`Porta`},"audio-footsteps":{en:`Footsteps`,it:`Passi`},"audio-crowd":{en:`Crowd / Chatter`,it:`Folla / Chiacchiericcio`},"audio-telephone":{en:`Telephone`,it:`Telefono`},"audio-engine":{en:`Engine / Motor`,it:`Motore`},"audio-tools":{en:`Tools / Construction`,it:`Utensili / Lavori`},"audio-silence":{en:`Silence`,it:`Silenzio`}},J6=new Set(K6);function Y6(e){return J6.has(e)}function X6(e,t){let n=e.trim().toLowerCase();return Y6(n)?q6[n][t]:e}var Z6=Of,Q6=Z6.options,$6=y(u().min(1),u());function e8(e,t){return t===void 0?e:e.replace(/\{(\w+)\}/g,(e,n)=>{let r=t[n];return r===void 0?e:String(r)})}function t8(e){let t=e.indexOf(`:`);return t<=0||t===e.length-1?null:{ns:e.slice(0,t),key:e.slice(t+1)}}function n8(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var r8=[{keyField:`labelKey`,textField:`label`},{keyField:`descriptionKey`,textField:`description`},{keyField:`titleKey`,textField:`title`}];function i8(e,t){if(Array.isArray(e)){let n=!1,r=e.map(e=>{let r=i8(e,t);return r!==e&&(n=!0),r});return n?r:e}if(!n8(e))return e;let n={};for(let[r,i]of Object.entries(e)){let e=i8(i,t);e!==i&&(n[r]=e)}for(let{keyField:r,textField:i}of r8){let a=e[r];if(typeof a!=`string`)continue;let o=t8(a),s=o===null?void 0:t(o.ns,o.key);s!==void 0&&(n[i]=s)}return Object.keys(n).length===0?e:{...e,...n}}var a8=u().regex(/^[a-z][a-z0-9-]*(\.[a-z0-9-]+)+$/),o8=f({code:a8,params:y(u(),p([u(),a()])).optional()}),s8=class extends Error{i18nCode;i18nParams;constructor(e,t,n){super(n),this.name=`CamstackError`,this.i18nCode=e,this.i18nParams=t}};function c8(e,t,n){return new s8(e,t,n)}function l8(e){let t=e;for(let e=0;e<8;e++){if(typeof t!=`object`||!t)return null;let e=Reflect.get(t,`i18nCode`);if(typeof e==`string`){let n=o8.safeParse({code:e,params:Reflect.get(t,`i18nParams`)});return n.success?n.data:null}let n=Reflect.get(t,`cause`);if(n===t)return null;t=n}return null}var u8=f({title:u().max(500).optional(),body:u().max(2e3).optional()}),d8=u().min(1).max(200),f8=S(a()).min(1),p8=a().int().min(2).max(3600),m8=a().int().min(1).max(60),h8=S(dA).min(1),g8=a().int().min(1).max(5),_8=.1,v8=a().min(_8).max(3600),y8=a().min(0).max(60),b8=u().max(200),x8=x([`image`,`gif`]),S8=S(u().min(1).max(40)).max(20),C8=f({name:d8,enabled:C().default(!0),deviceIds:f8,schedule:Uk,cadenceSec:p8.default(15),framerate:m8.default(10),denseCadenceSec:v8.optional(),minDwellSec:y8.optional(),targets:h8,template:u8.optional(),previewText:b8.optional(),previewMode:x8.default(`image`),reportClasses:S8.optional(),priority:g8.default(3)}),w8=`Timelapse {{camera}}`,T8=f({name:d8.optional(),enabled:C().optional(),deviceIds:f8.optional(),schedule:Uk.optional(),cadenceSec:p8.optional(),framerate:m8.optional(),denseCadenceSec:v8.optional(),minDwellSec:y8.optional(),targets:h8.optional(),template:u8.nullable().optional(),previewText:b8.optional(),previewMode:x8.optional(),reportClasses:S8.optional(),priority:g8.optional()}),E8=C8.extend({id:u(),ownerUserId:u().optional(),lastGeneratedAt:a().optional(),generatedByDevice:y(u(),a()).optional(),createdBy:u(),createdAt:a(),updatedAt:a()});function D8(e){let t=e.denseCadenceSec;if(t!==void 0&&t>=e.cadenceSec)throw Error(`denseCadenceSec (${t}s) must be strictly smaller than cadenceSec (${e.cadenceSec}s) — a dense cadence that is not denser renders a uniform timelapse`)}function O8(e,t){let n=e.generatedByDevice;return n===void 0?e.lastGeneratedAt??0:n[String(t)]??0}function k8(e){return e.some(e=>e!==`analyzer`)}async function A8(e,t){try{return await e.getCapSlice.query({deviceId:t,capName:`motion`})}catch(e){let n=e instanceof Error?e.message:String(e);throw Error(`motion state of device ${t} is unreadable: ${n}`,{cause:e})}}async function j8(e,t){let n=await A8(e,t);if(n===null)return null;let r=bG.safeParse(n);if(!r.success)throw Error(`motion state of device ${t} is malformed on the hub: ${r.error.message}`);return r.data}async function M8(e,t){let n=(await A8(e,t))?.detected;if(typeof n!=`boolean`)throw Error(`motion state of device ${t} is not published yet (unknown)`);return n}function N8(e,t,n){let r=e=>{if(e!==t)throw Error(`${n}: motion deviceId mismatch, expected ${t}, got ${e}`)};return{isDetected:async({deviceId:n})=>(r(n),M8(e,t)),getStatus:async({deviceId:n})=>(r(n),j8(e,t))}}var P8=xG.omit({triggeredBy:!0});function F8(e,t){return xt(w.ProviderMotion,e,t)}function I8(e,t){return!!e.formats[t]}function L8(e,t,n){if(t!=null){let r=e.find(e=>e.id===t);if(r!==void 0&&I8(r,n))return!0}return e.some(e=>e.legacy!==!0&&I8(e,n))}var R8={"object-detection":[`efficientdet-lite0-edgetpu`,`ssdlite-mobiledet-coco-edgetpu`],"face-detection":[`scrypted-yolov9t-face`,`scrfd-2.5g`,`ssd-mobilenet-v2-face-edgetpu`],"face-embedding":[`arcface-r100`,`inception-resnet-v1`],"plate-detection":[`yolov8n-plate`],"plate-ocr":[`vgg-english-g2`],"clip-embedding":[`mobileclip-s0`,`mobileclip-s1`,`mobileclip-s2`],"package-detection":[`yolov8n-package`],"bird-classifier":[`bird-classifier-aiy-edgetpu`,`bird-nabirds-404`],"animal-classifier":[`animals-10`],"vehicle-classifier":[`vehicle-type-efficientnet`]};function z8(e,t){return R8[e]?.includes(t)??!1}var B8=`ModelId`;function V8(e){return`${e}${B8}`}function H8(e,t){let n=e?.[V8(t)];return typeof n==`string`&&n.length>0?n:void 0}function U8(e,t,n,r,i){let a=e?.[t],o=H8(e,t);if(a!==void 0&&o===void 0)return{value:a,source:`override`};if(a!==void 0&&o!==void 0&&o===n)return{value:a,source:`override`,boundModelId:o};let s=a!==void 0&&o!==void 0?{inapplicableOverride:{value:a,modelId:o}}:{};return r===void 0?{value:i,source:`global-default`,...s}:{value:r,source:`model-default`,...s}}function W8(e,t,n){if(e===void 0)return;let r={...e};for(let i of t){let t=H8(e,i);t!==void 0&&t!==n&&delete r[i],delete r[V8(i)]}return r}function G8(e,t,n,r){return{...e,[t]:n,[V8(t)]:r}}function K8(e,t){let n={...e};return delete n[t],delete n[V8(t)],n}function q8(e,t,n){return t.some(t=>U8(e,t,n,void 0,void 0).source===`override`)}function J8(e,t,n){return t.reduce((e,t)=>U8(e,t,n,void 0,void 0).source===`override`?K8(e,t):e,{...e})}function Y8(e){return e.flatMap(e=>e.type===`group`?Y8(e.fields):`key`in e&&`bindsToModel`in e&&e.bindsToModel===!0?[e.key]:[])}var X8=[`accelerator`,`camera`,`node`];function Z8(e,t){return t.includes(e)?[e,V8(e)]:[e]}function Q8(e,t){return t.find(t=>V8(t)===e)??e}function $8(e,t){if(Object.is(e,t))return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>$8(e,t[n]));if(e5(e)&&e5(t)){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>$8(e[n],t[n]))}return!1}function e5(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function t5(...e){return e.reduce((e,t)=>({...e,...t}),{})}function n5(e,t){return t5(...X8.slice(X8.indexOf(t)+1).toReversed().map(t=>e[t]))}function r5(e){return t5(e.node,e.camera,e.accelerator)}function i5(e,t,n){let r=Z8(t,n);for(let t of X8){let n=e[t];if(n!==void 0&&r.some(e=>n[e]!==void 0))return t}return`default`}function a5(e,t,n,r){let i={...e};for(let e of Z8(t,r))n[e]===void 0?delete i[e]:i[e]=n[e];return i}function o5(e,t,n){let r={...e};for(let e of Z8(t,n))delete r[e];return r}function s5(e,t){return[...new Set(Object.keys(e).map(e=>Q8(e,t)))]}function c5(e,t,n,r){return Z8(n,r).every(n=>$8(e[n],t[n]))}function l5(e,t,n){if(e===void 0)return;let r={};for(let i of s5(e,n))if(!c5(e,t,i,n))for(let t of Z8(i,n))e[t]!==void 0&&(r[t]=e[t]);return Object.keys(r).length>0?r:void 0}function u5(e,t,n){return e===void 0?[]:s5(e,n).filter(r=>c5(e,t,r,n)).toSorted()}var d5=/^Apple M(\d+)(?:\s+(Pro|Max|Ultra))?\b/i,f5=/Core\(TM\)\s+Ultra|Core Ultra/i,p5=/Intel\(R\)\s+N\d{2,3}\b|\bIntel\s+N\d{2,3}\b/i,m5=/Ryzen \d+ (7[0-9]40|8[0-9]40|8[0-9]45)[HSU]|Ryzen \d+ 8[0-9]00G/i;function h5(e){let t=d5.exec(e.trim());if(t===null)return null;let n=Number(t[1]),r=(t[2]??`base`).toLowerCase();return{generation:n,variant:r===`pro`||r===`max`||r===`ultra`?r:`base`}}function g5(e){let t=e.cpuModel,n=h5(t);return n===null?f5.test(t)?{hardwareClass:`intel-core-ultra`,cpuModel:t}:p5.test(t)?{hardwareClass:`intel-n-series`,cpuModel:t}:m5.test(t)?{hardwareClass:`amd-phoenix`,cpuModel:t}:{hardwareClass:`unknown`,cpuModel:t}:{hardwareClass:n.variant===`base`?`apple-m-base`:`apple-m-pro`,cpuModel:t,apple:n}}function _5(e,t){let[n=``,r=``]=e.split(`:`);return n===`edgetpu`?`coral`:n===`coreml`?r===`cpu`?`arm-cpu`:`apple-ane`:n===`openvino`&&r===`npu`?`intel-npu`:n===`openvino`&&r===`gpu`?`intel-igpu`:n===`onnx`&&r===`webgpu`?`amd-igpu`:n===`vitisai`&&r===`npu`?`amd-npu`:n===`cpu`||r===`cpu`?t.arch===`arm64`?`arm-cpu`:`x86-cpu`:null}var v5={"intel-core-ultra":{"intel-npu":{"yolov9t-320":{p50Ms:2.9,fps:383,measured:!0},"yolov9t-320-int8":{p50Ms:3.8,fps:333,measured:!0},"yolov9t-640":{p50Ms:7.4,fps:139,measured:!0},"yolov9t-640-int8":{p50Ms:7.5,fps:144,measured:!0},"yolov9s-320":{p50Ms:4.4,fps:241,measured:!0},"yolov9s-320-int8":{p50Ms:4.1,fps:264,measured:!0},"yolov9s-640":{p50Ms:12.7,fps:82,measured:!0},"yolov9s-640-int8":{p50Ms:10.7,fps:99,measured:!0},"yolov9m-320":{p50Ms:8.4,fps:123,measured:!0},"yolov9m-320-int8":{p50Ms:6.5,fps:165,measured:!0},"yolov9m-640":{p50Ms:29.5,fps:32,measured:!0},"yolov9m-640-int8":{p50Ms:19.5,fps:52,measured:!0}},"intel-igpu":{"yolov9t-320":{p50Ms:2.6,fps:405,measured:!0},"yolov9t-320-int8":{p50Ms:2.8,fps:324,measured:!0},"yolov9t-640":{p50Ms:6.5,fps:157,measured:!0},"yolov9t-640-int8":{p50Ms:5.6,fps:185,measured:!0},"yolov9s-320":{p50Ms:4.6,fps:200,measured:!0},"yolov9s-320-int8":{p50Ms:4.1,fps:239,measured:!0},"yolov9s-640":{p50Ms:15.2,fps:69,measured:!0},"yolov9s-640-int8":{p50Ms:10.5,fps:99,measured:!0},"yolov9m-320":{p50Ms:11.4,fps:88,measured:!0},"yolov9m-320-int8":{p50Ms:7,fps:127,measured:!0},"yolov9m-640":{p50Ms:40,fps:25,measured:!0},"yolov9m-640-int8":{p50Ms:23.5,fps:44,measured:!0}},"x86-cpu":{"yolov9t-320":{p50Ms:6.9,fps:145,measured:!0},"yolov9t-320-int8":{p50Ms:2.7,fps:405,measured:!0},"yolov9t-640":{p50Ms:23,fps:44,measured:!0},"yolov9t-640-int8":{p50Ms:8.8,fps:124,measured:!0},"yolov9s-320":{p50Ms:15.8,fps:63,measured:!0},"yolov9s-320-int8":{p50Ms:6.5,fps:180,measured:!0},"yolov9s-640":{p50Ms:58.2,fps:17,measured:!0},"yolov9s-640-int8":{p50Ms:20.1,fps:52,measured:!0},"yolov9m-320":{p50Ms:40,fps:25,measured:!0},"yolov9m-320-int8":{p50Ms:14.2,fps:74,measured:!0},"yolov9m-640":{p50Ms:155.8,fps:6,measured:!0},"yolov9m-640-int8":{p50Ms:52.4,fps:19,measured:!0}}},"intel-n-series":{"intel-igpu":{"yolov9t-320":{p50Ms:15,fps:48,measured:!0},"yolov9t-320-int8":{p50Ms:14.1,fps:67,measured:!0},"yolov9t-640":{p50Ms:38.5,fps:26,measured:!0},"yolov9t-640-int8":{p50Ms:33.1,fps:33,measured:!0},"yolov9s-320":{p50Ms:41.4,fps:24,measured:!0},"yolov9s-320-int8":{p50Ms:23.3,fps:34,measured:!0},"yolov9s-640":{p50Ms:127.4,fps:8,measured:!0},"yolov9s-640-int8":{p50Ms:92.9,fps:11,measured:!0},"yolov9m-320":{p50Ms:63.5,fps:16,measured:!0},"yolov9m-320-int8":{p50Ms:39.4,fps:26,measured:!0},"yolov9m-640":{p50Ms:215.5,fps:5,measured:!0},"yolov9m-640-int8":{p50Ms:139.1,fps:7,measured:!0}},"x86-cpu":{"yolov9t-320":{p50Ms:86.2,fps:12,measured:!0},"yolov9t-320-int8":{p50Ms:52.7,fps:20,measured:!0},"yolov9t-640":{p50Ms:322.1,fps:3,measured:!0},"yolov9t-640-int8":{p50Ms:205.6,fps:5,measured:!0},"yolov9s-320":{p50Ms:164.4,fps:6,measured:!0},"yolov9s-320-int8":{p50Ms:86.9,fps:12,measured:!0},"yolov9s-640":{p50Ms:341.3,fps:3,measured:!0},"yolov9s-640-int8":{p50Ms:185.3,fps:5,measured:!0},"yolov9m-320":{p50Ms:166.8,fps:6,measured:!0},"yolov9m-320-int8":{p50Ms:226.3,fps:4,measured:!0},"yolov9m-640":{p50Ms:663.5,fps:2,measured:!0},"yolov9m-640-int8":{p50Ms:324.4,fps:3,measured:!0}}},"amd-phoenix":{"x86-cpu":{"yolov9t-320":{p50Ms:24,fps:42,measured:!0},"yolov9t-320-int8":{p50Ms:12,fps:83,measured:!0},"yolov9t-640":{p50Ms:50,fps:20,measured:!0},"yolov9t-640-int8":{p50Ms:20,fps:50,measured:!0},"yolov9s-320":{p50Ms:30,fps:33,measured:!0},"yolov9s-320-int8":{p50Ms:15,fps:67,measured:!0},"yolov9s-640":{p50Ms:92,fps:11,measured:!0},"yolov9s-640-int8":{p50Ms:27,fps:37,measured:!0},"yolov9m-320":{p50Ms:67,fps:15,measured:!0},"yolov9m-320-int8":{p50Ms:21,fps:48,measured:!0},"yolov9m-640":{p50Ms:229,fps:4,measured:!0},"yolov9m-640-int8":{p50Ms:48,fps:21,measured:!0}},"amd-igpu":{"yolov9t-320":{p50Ms:188,fps:5,measured:!0},"yolov9t-640":{p50Ms:671,fps:1,measured:!0},"yolov9s-320":{p50Ms:401,fps:2,measured:!0},"yolov9s-640":{p50Ms:1434,fps:1,measured:!0},"yolov9m-320":{p50Ms:1076,fps:1,measured:!0}}},"apple-m-pro":{"apple-ane":{"yolov9t-320":{p50Ms:1.1,fps:952,measured:!0},"yolov9t-640":{p50Ms:3,fps:333,measured:!0},"yolov9s-320":{p50Ms:1.5,fps:667,measured:!0},"yolov9s-640":{p50Ms:5.1,fps:196,measured:!0},"yolov9m-320":{p50Ms:3.2,fps:312,measured:!0},"yolov9m-640":{p50Ms:10.2,fps:98,measured:!0}}},"apple-m-base":{"apple-ane":{"yolov9t-320":{p50Ms:1.32,fps:758,measured:!1},"yolov9t-640":{p50Ms:3.45,fps:290,measured:!0},"yolov9s-320":{p50Ms:1.8,fps:556,measured:!1},"yolov9s-640":{p50Ms:5.46,fps:183,measured:!0},"yolov9m-320":{p50Ms:3.79,fps:264,measured:!0},"yolov9m-640":{p50Ms:10.34,fps:97,measured:!0}}}},y5={"yolov9m-320":{personPrecision:.979,personRecall:.649},"yolov9m-320-int8":{personPrecision:.974,personRecall:.684},"yolov9m-640":{personPrecision:.976,personRecall:.854},"yolov9m-640-int8":{personPrecision:.976,personRecall:.847},"yolov9s-320":{personPrecision:.958,personRecall:.479},"yolov9s-320-int8":{personPrecision:.969,personRecall:.438},"yolov9s-640":{personPrecision:.986,personRecall:.753},"yolov9s-640-int8":{personPrecision:.963,personRecall:.823},"yolov9t-320":{personPrecision:.946,personRecall:.368},"yolov9t-320-int8":{personPrecision:.943,personRecall:.347},"yolov9t-640":{personPrecision:.979,personRecall:.646},"yolov9t-640-int8":{personPrecision:.979,personRecall:.646}},b5=`yolov9`,x5=.02,S5=.4;function C5(e,t,n){return!(e>0)||!(n>0)?0:Math.max(0,Math.floor(e*(1-t)/n+1e-9))}function w5(e,t){if(t===void 0||Object.keys(t).length===0)return e;let n={...e};for(let[e,r]of Object.entries(t))n[e]={p50Ms:r.p50Ms,fps:r.fps,measured:!0,source:{kind:`node-benchmark`,resultId:r.resultId,measuredAtMs:r.measuredAtMs}};return n}function T5(e,t=3){let n=10**t;return Math.round(e*n)/n}function E5(e,t){return e===void 0?0:C5(e.fps,t.headroom,t.cameraFps)}function D5(e,t){return E5(e,t)>=t.minSessions}function O5(e,t){return Object.keys(y5).filter(e=>e.startsWith(b5)).filter(n=>e.every(e=>e.column[n]!==void 0&&(t[n]??[]).includes(e.device.format))).map(e=>({modelId:e,personRecall:y5[e]?.personRecall??0})).toSorted((e,t)=>t.personRecall-e.personRecall||e.modelId.localeCompare(t.modelId))}function k5(e,t){return e.reduce((e,n)=>e+(n.column[t]?.p50Ms??1/0),0)}function A5(e,t,n){return e.reduce((e,r)=>Math.min(e,E5(r.column[t],n)),1/0)}function j5(e,t,n){let r=O5(e,t);if(r.length===0)return null;let i=r.filter(t=>e.every(e=>D5(e.column[t.modelId],n)));if(i.length===0){let t=r.toSorted((t,r)=>A5(e,r.modelId,n)-A5(e,t.modelId,n)||k5(e,t.modelId)-k5(e,r.modelId))[0];return t===void 0?null:{modelId:t.modelId,reasons:[{kind:`no-fit-lightest`,sessions:A5(e,t.modelId,n),minSessions:n.minSessions}]}}let a=i[0];if(a===void 0)return null;let o=i.filter(e=>a.personRecall-e.personRecall<=.02).toSorted((t,n)=>k5(e,t.modelId)-k5(e,n.modelId)||n.personRecall-t.personRecall)[0]??a,s=[],c=r[0];if(c!==void 0&&c.modelId!==a.modelId){let t=e.find(e=>!D5(e.column[c.modelId],n))?.device.key??``;s.push({kind:`stepped-down`,from:c.modelId,to:a.modelId,limitedBy:t})}return o.modelId!==a.modelId&&s.push({kind:`tie-faster`,over:a.modelId,recallDelta:T5(a.personRecall-o.personRecall)}),{modelId:o.modelId,reasons:s}}function M5(e,t,n){let r=e.column[t];return r===void 0?null:{modelId:t,p50Ms:r.p50Ms,fps:r.fps,measured:r.measured,source:r.source??{kind:`table`},capacitySessions:E5(r,n),personRecall:y5[t]?.personRecall??0}}function N5(e,t){let n=[{kind:`capacity`,sessions:e.capacitySessions,minSessions:t.minSessions}];return e.measured||n.push({kind:`derived-latency`,modelId:e.modelId}),n}function P5(e,t,n){return{nodeId:e.nodeId,reachable:e.reachable,hardwareClass:n,cpuModel:e.hardware?.cpuModel??null,skipped:!0,acceleratorModelId:null,devices:e.devices.map(t=>({deviceKey:t.key,accelerator:e.hardware?_5(t.key,e.hardware):null,enabled:t.enabled,available:t.available,chosen:null,reasons:[]})),reasons:[t]}}function F5(e){let{node:t}=e,n={headroom:e.headroom??.4,cameraFps:e.cameraFps??10,minSessions:e.minSessionsPerDevice??2},r=e.perf??v5;if(!t.reachable)return P5(t,{kind:`node-offline`},null);if(t.hardware===null)return P5(t,{kind:`no-hardware-facts`},null);let i=t.hardware,{hardwareClass:a,cpuModel:o}=g5(i),s=e.measured??{},c=Object.values(s).some(e=>Object.keys(e).length>0),l=a===`unknown`?void 0:r[a];if(l===void 0&&!c)return P5(t,{kind:`no-measured-data`,hardwareClass:a},a);let u=l??{},d=t.devices.toSorted((e,t)=>e.key.localeCompare(t.key)),f=new Map,p=new Map;for(let e of d){let t=_5(e.key,i);if(t===`coral`){p.set(e.key,e.enabled?[{kind:`coral-untouched`}]:[]);continue}if(!e.enabled){p.set(e.key,[{kind:`device-disabled`}]);continue}if(!e.available){p.set(e.key,[{kind:`device-unavailable`}]);continue}let n=t===null?void 0:w5(u[t],s[e.key]);if(t===null||n===void 0){p.set(e.key,[{kind:`no-family-build`,format:e.format}]);continue}f.set(e.key,{device:e,accelerator:t,column:n})}let m=e=>e===`x86-cpu`||e===`arm-cpu`,h=new Map,g=e=>{let t=e.find(e=>e.device.customPinModelId!==void 0);if(t?.device.customPinModelId===void 0)return null;let n={kind:`kept-custom-pin`,modelId:t.device.customPinModelId,deviceKey:t.device.key};for(let t of e)h.set(t.device.key,[n]);return n},ee=[...f.values()].filter(e=>!m(e.accelerator)),te=g(ee),_=te===null?ee:[],ne=[...f.values()].filter(e=>m(e.accelerator)).filter(e=>g([e])===null),re=new Map,ie=new Map,v=[],ae=null,oe=_.length>0?j5(_,t.formatsByModel,n):null;if(te!==null&&v.push(te),oe!==null){ae=oe.modelId,v.push(...oe.reasons);for(let e of _){let t=M5(e,oe.modelId,n);t!==null&&(re.set(e.device.key,t),ie.set(e.device.key,N5(t,n)))}}else for(let e of _)ie.set(e.device.key,[{kind:`no-family-build`,format:e.device.format}]);for(let e of ne){let r=j5([e],t.formatsByModel,n),i=r===null?null:M5(e,r.modelId,n);if(r===null||i===null){ie.set(e.device.key,[{kind:`no-family-build`,format:e.device.format}]);continue}re.set(e.device.key,i),ie.set(e.device.key,[{kind:`cpu-device`},...r.reasons,...N5(i,n)])}return{nodeId:t.nodeId,reachable:!0,hardwareClass:a,cpuModel:o,skipped:re.size===0,acceleratorModelId:ae,devices:d.map(e=>({deviceKey:e.key,accelerator:_5(e.key,i),enabled:e.enabled,available:e.available,chosen:re.get(e.key)??null,...h.has(e.key)?{kept:`custom-pin`}:{},reasons:p.get(e.key)??h.get(e.key)??ie.get(e.key)??[]})),reasons:v}}var I5=1e-9;function L5(e,t){let n=t.deficit-e.deficit;return(Math.abs(n)<I5?0:n)||t.candidate.share-e.candidate.share||e.candidate.key.localeCompare(t.candidate.key)}function R5(e){return e.spare??1/0}function z5(e){if(e.length===0)return{kind:`none`};let t=e.reduce((e,t)=>e+Math.max(t.share,0),0),n=e.reduce((e,t)=>e+Math.max(t.running,0),0),r=e.map(r=>({candidate:r,deficit:(t>0?Math.max(r.share,0)/t:1/e.length)*(n+1)-r.running})).toSorted(L5),i=r[0].candidate;if(!i.capped&&!i.saturated)return{kind:`elected`,key:i.key,reason:`share`};let a=r.filter(e=>!e.candidate.capped&&!e.candidate.saturated).toSorted((e,t)=>R5(t.candidate)-R5(e.candidate)||L5(e,t)),o=i.capped?`at-cap`:`saturated`;if(a.length>0)return{kind:`elected`,key:a[0].candidate.key,reason:`yield`,turnKey:i.key,yieldReason:o};let s=r.find(e=>!e.candidate.capped);return s===void 0?{kind:`none`}:{kind:`elected`,key:s.candidate.key,reason:`share`}}var B5=1;function V5(e){return e!==void 0&&e>0?e:B5}function H5(e,t,n){let r=e.reduce((e,r)=>e+(n(r)?t(r):0),0);return new Map(e.map(e=>[e,r>0&&n(e)?Math.round(t(e)/r*1e3)/10:0]))}function U5(e){let t=wI(e.source)&&e.auto!==null,n=t&&e.auto!==null?e.auto:e.stored,r={};for(let t of e.nodeIds)r[t]=V5(n.nodes[t]);let i=new Set(e.eligibleNodes),a=H5(e.nodeIds,e=>r[e]??B5,()=>!0),o=H5(e.nodeIds,e=>r[e]??B5,e=>i.has(e)),s={},c=e.nodeIds.map(r=>{let c=new Set(e.eligibleDevices[r]??[]),l=n.devices[r]??{},u=[...new Set([...Object.keys(l),...c])].toSorted(),d={};for(let e of u)d[e]=V5(l[e]);u.length>0&&(s[r]=d);let f=H5(u,e=>d[e]??B5,()=>!0),p=H5(u,e=>d[e]??B5,e=>i.has(r)&&c.has(e)),m=u.map(e=>({deviceKey:e,eligible:c.has(e),configuredPct:f.get(e)??0,effectivePct:p.get(e)??0})),h=t?e.autoCapacity?.[r]:void 0;return{nodeId:r,eligible:i.has(r),configuredPct:a.get(r)??0,effectivePct:o.get(r)??0,capacitySource:h?.source??null,capacityFallback:h?.fallback??null,devices:m}});return{source:e.source,policy:e.policy??`share`,autoPending:wI(e.source)&&e.auto===null,computedAt:e.computedAt??null,trigger:e.trigger??null,nodes:c,nodeWeights:r,deviceWeights:s}}var W5={readMeasuredCapacity:async()=>new Map};function G5(e){let t=[...e.values()].reduce((e,t)=>e+t,0),n=new Map;if(t<=0)return n;let r=[...e].map(([e,n])=>({k:e,exact:n/t*100})),i=0;for(let e of r)n.set(e.k,Math.floor(e.exact)),i+=Math.floor(e.exact);let a=e=>Math.round((e-Math.floor(e))*1e6),o=r.toSorted((e,t)=>a(t.exact)-a(e.exact)||e.k.localeCompare(t.k));for(let e=0;e<100-i;e++){let t=o[e%o.length];if(t===void 0)break;n.set(t.k,(n.get(t.k)??0)+1)}return n}function K5(e,t,n){return e.devices.filter(e=>e.enabled&&e.available&&e.chosen!==null).map(e=>{let r=e.chosen?.fps??0;return{deviceKey:e.deviceKey,sessions:C5(r,t,n),weight:Math.max(r,0),modelId:e.chosen?.modelId??null,fps:e.chosen?.fps??null,measured:e.chosen?.measured??!1}})}function q5(e,t){let n=n=>{let r=e.skipped?[]:K5(e,t.headroom,t.cameraFps),i=r.reduce((e,t)=>e+t.sessions,0);return{rec:e,devices:r,capacitySource:e.skipped?null:`hardware`,capacityFallback:e.skipped?null:n,skippedReason:e.skipped?e.reasons[0]?.kind??`skipped`:i>0?null:`no-capacity`}};if(t.source===`hardware`||!e.reachable)return n(null);let r=t.measured.get(e.nodeId),i=new Map((r?.devices??[]).map(e=>[e.deviceKey,e])),a=e.devices.filter(e=>e.enabled&&e.available),o=e.devices.filter(e=>e.enabled&&e.available&&e.chosen!==null),s=a.filter(e=>i.has(e.deviceKey));if(s.length===0)return n(`no-benchmark-results`);if(o.some(e=>!i.has(e.deviceKey)))return n(`partial-benchmark-results`);let c=s.map(e=>{let t=i.get(e.deviceKey),n=Math.max(0,Math.floor(t?.maxSessions??0));return{deviceKey:e.deviceKey,sessions:n,weight:n,modelId:t?.modelId??null,fps:null,measured:!0}});return{rec:e,devices:c,capacitySource:`benchmark`,capacityFallback:null,skippedReason:c.reduce((e,t)=>e+t.sessions,0)>0?null:`no-capacity`}}function J5(e){let t=e.recommendations.map(t=>q5(t,e)),n=new Map;for(let e of t){let t=e.devices.reduce((e,t)=>e+t.sessions,0);e.skippedReason===null&&t>0&&n.set(e.rec.nodeId,t)}let r=G5(n),i=t.map(e=>{let t=G5(new Map(e.devices.map(e=>[e.deviceKey,e.weight])));return{nodeId:e.rec.nodeId,share:r.get(e.rec.nodeId)??null,capacitySessions:e.devices.reduce((e,t)=>e+t.sessions,0),skippedReason:e.skippedReason,capacitySource:e.capacitySource,capacityFallback:e.capacityFallback,devices:e.devices.map(e=>({deviceKey:e.deviceKey,share:t.get(e.deviceKey)??0,modelId:e.modelId,fps:e.fps,measured:e.measured,suggestedMaxSessions:e.sessions}))}});return{headroom:e.headroom,source:e.source,cameraFps:e.cameraFps,minSessionsPerDevice:e.minSessionsPerDevice,nodes:i}}function Y5(e,t){if(t===null||!e.includes(t))return e;let n=e.filter(e=>e!==t);return n.length>0?n:e}function X5(e,t,n){return e===null||t===null||e!==t?e:n.some(e=>e!==t)?null:e}function Z5(e,t){let n=[],r=[];for(let i of t.toSorted((e,t)=>e.deviceId-t.deviceId)){let t=i.placedNodeId===e,a=i.nodePin===e;!t&&!a||(i.frameSourceNodes.some(t=>t!==e)?n.push({deviceId:i.deviceId,placedOnNode:t,pinnedToNode:a}):r.push({deviceId:i.deviceId,reason:`only-frame-source`}))}return{moving:n,staying:r}}var Q5=[1,2,4,6,8,12,16,24,32],$5=[1,2,3,4,6,8,10,12,16],e7=3*6e4,t7=2e4;function n7(e,t={}){let n=((t.settleSec??kI.settleSec)+(t.measureSec??kI.measureSec))*1e3,r=e7;if(e.phases.includes(`device`))for(let t of e.devices)r+=t.modelIds.length*(t7+Q5.length*n);return e.phases.includes(`pipeline`)&&(r+=e.devices.length*(t7+$5.length*n)),Math.min(r,e.budgetMinutes*6e4)}function r7(e){let t=[];e.activeRunNodeId!==null&&t.push({kind:`benchmark-active`,detail:`A benchmark of ${e.activeRunNodeId} is running — one node at a time.`,overridable:!1}),e.online||t.push({kind:`node-offline`,detail:`${e.plan.nodeId} is not online.`,overridable:!1});let n=e.plan.devices.map(e=>e.deviceKey).filter(t=>!e.knownDeviceKeys.includes(t));n.length>0&&t.push({kind:`unknown-device`,detail:`${e.plan.nodeId} reports no device ${n.join(`, `)}.`,overridable:!1}),e.plan.phases.length===0&&t.push({kind:`no-phase`,detail:`Choose at least one measurement.`,overridable:!1});let r=e.otherNodesCapacitySessions;return r!==null&&e.sessionsNow>r&&!e.plan.acceptInsufficientHeadroom&&t.push({kind:`insufficient-headroom`,detail:`The cluster runs ${e.sessionsNow} sessions now; the other nodes can carry ${r}.`,overridable:!0}),t}function i7(e){let{cell:t}=e,n=t.phase===`pipeline`?t.steps.toSorted().join(`,`):``;return[e.nodeId,t.deviceKey,t.phase,t.modelId,n].join(`|`)}function a7(e,t){let n=t.staleAfterMs??kI.staleAfterDays*864e5;if(t.nowMs-e.measuredAtMs>n)return`age`;let r=t.currentPools[e.nodeId]?.[e.cell.deviceKey],i=e.fingerprint?.pools[e.cell.deviceKey];return r===void 0||i===void 0?null:r.runtime===i.runtime?r.numWorkers!==i.numWorkers||r.concurrency!==i.concurrency||r.batchMode!==i.batchMode?`pool-tuning`:null:`runtime`}function o7(e,t){let n=new Map;for(let t of e){let e=i7(t),r=n.get(e);(r===void 0||t.measuredAtMs>r.measuredAtMs)&&n.set(e,t)}let r=new Map;for(let i of e){if(n.get(i7(i))?.id!==i.id){r.set(i.id,{standing:`superseded`,staleWhy:null});continue}let e=a7(i,t);r.set(i.id,e===null?{standing:`fresh`,staleWhy:null}:{standing:`stale`,staleWhy:e})}return r}function s7(e,t){let n=o7(e,t);return e.filter(e=>n.get(e.id)?.standing===`fresh`)}function c7(e,t,n){let r={};for(let i of s7(e,n)){if(i.nodeId!==t||i.cell.phase!==`device`)continue;let e=r[i.cell.deviceKey]??{};e[i.cell.modelId]={p50Ms:Math.round(i.cell.p50Ms*100)/100,fps:i.cell.fps,resultId:i.id,measuredAtMs:i.measuredAtMs},r[i.cell.deviceKey]=e}return r}function l7(e,t,n){let r=new Map;for(let i of s7(e,n)){if(!t.includes(i.nodeId)||i.cell.phase!==`pipeline`)continue;let e=r.get(i.nodeId)??new Map,n=e.get(i.cell.deviceKey);(n===void 0||i.measuredAtMs>n.measuredAtMs)&&e.set(i.cell.deviceKey,i),r.set(i.nodeId,e)}let i=new Map;for(let e of t){let t=r.get(e);t!==void 0&&i.set(e,{nodeId:e,devices:[...t.values()].toSorted((e,t)=>e.cell.deviceKey.localeCompare(t.cell.deviceKey)).map(e=>({deviceKey:e.cell.deviceKey,maxSessions:e.cell.phase===`pipeline`?e.cell.maxSessions:0,modelId:e.cell.modelId,measuredAtMs:e.measuredAtMs}))})}return i}var u7=`object-detection`;function d7(e,t){return e.slots.find(e=>e.id===t)?.addons??[]}var f7=(e,t)=>t.inputClasses.some(t=>e.outputClasses.includes(t));function p7(e){let t=d7(e,`detector`).find(e=>e.id===u7);if(t===void 0)return null;let n=d7(e,`classifier`),r=d7(e,`cropper`).filter(e=>f7(t,e)).map(e=>({cropper:e,recognizers:n.filter(t=>f7(e,t))})),i=new Set(r.flatMap(e=>e.recognizers.map(e=>e.id)));return{root:t,croppers:r,classifiers:n.filter(e=>f7(t,e)&&!i.has(e.id)),refiners:d7(e,`refiner`)}}function m7(e){let t=p7(e);if(t===null)return[];let n=e=>({id:e.id,name:e.name,slot:e.slot});return[...t.croppers.flatMap(e=>[n(e.cropper),...e.recognizers.map(n)]),...t.classifiers.map(n),...t.refiners.map(n)]}function h7(e,t,n){let r=p7(e);if(r===null)throw Error(`the node's catalog has no ${u7} step`);let i=new Set(n),a=(e,t)=>({addonId:e.id,enabled:t});return[{addonId:r.root.id,modelId:t,enabled:!0,children:[...r.croppers.map(({cropper:e,recognizers:t})=>({...a(e,i.has(e.id)||t.some(e=>i.has(e.id))),children:t.map(e=>a(e,i.has(e.id)))})),...r.classifiers.map(e=>a(e,i.has(e.id))),...r.refiners.map(e=>a(e,i.has(e.id)))]}]}var g7=1.6;function _7(e,t,n){let r=Math.min(Math.max(e.w,e.h)*g7,Math.min(t,n)),i=e.x+e.w/2,a=e.y+e.h/2;return{x:Math.min(Math.max(0,i-r/2),t-r),y:Math.min(Math.max(0,a-r/2),n-r),w:r,h:r}}var v7=`detail-crop`,y7=`detailCropPaddingRatio`,b7=`detailCropSquare`,x7=f({paddingRatio:a().min(0).max(4),square:C()}),S7={paddingRatio:.15,square:!1};function C7(e){let t=x7.shape.paddingRatio.safeParse(e[y7]),n=x7.shape.square.safeParse(e[b7]);return{paddingRatio:t.success?t.data:S7.paddingRatio,square:n.success?n.data:S7.square}}function w7(e){return typeof e==`object`&&!!e&&`key`in e}function T7(e){if(e===null)return S7;let t={};for(let n of e.sections)for(let e of n.fields)!w7(e)||typeof e.key!=`string`||(e.key===`detailCropPaddingRatio`||e.key===`detailCropSquare`)&&(t[e.key]=e.value);return C7(t)}var E7=Object.freeze({x:0,y:0,w:1,h:1}),D7={min:0,max:1,step:.05,default:S7.paddingRatio};function O7(e,t,n,r){let i=r.paddingRatio*e.w,a=r.paddingRatio*e.h,o={x:e.x-i,y:e.y-a,w:e.w+2*i,h:e.h+2*a};return r.square?j7(k7(o,t,n),t,n):A7(o,t,n)}function k7(e,t,n){let r=Math.min(Math.max(e.w,e.h),Math.min(t,n)),i=e.x+e.w/2,a=e.y+e.h/2;return{x:i-r/2,y:a-r/2,w:r,h:r}}function A7(e,t,n){let r=Math.max(0,e.x),i=Math.max(0,e.y),a=Math.min(t,e.x+e.w),o=Math.min(n,e.y+e.h);return{x:r,y:i,w:Math.max(0,a-r),h:Math.max(0,o-i)}}function j7(e,t,n){let r=Math.max(0,Math.min(e.w,t)),i=Math.max(0,Math.min(e.h,n));return{x:Math.min(Math.max(0,e.x),Math.max(0,t-r)),y:Math.min(Math.max(0,e.y),Math.max(0,n-i)),w:r,h:i}}var M7=`face-rescore`,N7=`faceRescoreIntervalMinutes`,P7={min:0,max:1440,step:5,default:60};function F7(e){return typeof e!=`number`||!Number.isFinite(e)||e<0?P7.default:e===0?0:Math.min(P7.max,Math.max(10,Math.floor(e)))}function I7(e){if(e===null)return P7.default;for(let t of e.sections)for(let e of t.fields)if(!(typeof e!=`object`||!e||!(`key`in e))&&e.key===`faceRescoreIntervalMinutes`)return F7(`value`in e?e.value:void 0);return P7.default}var L7=`native-lease`,R7=`nativeLeaseHoldFrames`,z7=`nativeLeaseBudgetMb`,B7=`nativeLeaseActivityMs`,V7=`nativeLeaseAdmission`,H7=`nativeTileBudgetMb`,U7=`nativeSceneBudgetMb`,W7=x([`all`,`inferred`]),G7=f({holdFrames:a().int().min(1).max(64),budgetMb:a().int().min(0).max(4096),activityMs:a().int().min(0).max(12e4),admission:W7,tileBudgetMb:a().int().min(0).max(1024),sceneBudgetMb:a().int().min(0).max(1024)}),K7={holdFrames:8,budgetMb:1024,activityMs:15e3,tileBudgetMb:64,sceneBudgetMb:48,admission:`inferred`},q7={min:1,max:64,step:1,default:K7.holdFrames},J7={min:0,max:4096,step:64,default:K7.budgetMb},Y7={min:0,max:12e4,step:1e3,default:K7.activityMs},X7={min:0,max:1024,step:16,default:K7.tileBudgetMb},Z7={min:0,max:1024,step:16,default:K7.sceneBudgetMb},Q7={options:[{value:`all`,label:`Every delivered frame`},{value:`inferred`,label:`Only frames sent to inference`}],default:K7.admission};function $7(e,t){let n=G7.shape[e].safeParse(t);return n.success?n.data===K7[e]?null:n.data:null}function e9(e){let t=W7.safeParse(e);return t.success?t.data===K7.admission?null:t.data:null}function t9(e){let t=$7(`holdFrames`,e[R7]),n=$7(`budgetMb`,e[z7]),r=$7(`activityMs`,e[B7]),i=e9(e[V7]),a=$7(`tileBudgetMb`,e[H7]),o=$7(`sceneBudgetMb`,e[U7]);return{...t===null?{}:{holdFrames:t},...n===null?{}:{budgetMb:n},...r===null?{}:{activityMs:r},...i===null?{}:{admission:i},...a===null?{}:{tileBudgetMb:a},...o===null?{}:{sceneBudgetMb:o}}}function n9(e){return typeof e==`object`&&!!e&&`key`in e}var r9=[R7,z7,B7,V7,H7,U7];function i9(e){if(e===null)return{};let t={};for(let n of e.sections)for(let e of n.fields)!n9(e)||typeof e.key!=`string`||r9.includes(e.key)&&(t[e.key]=e.value);return t9(t)}var a9=[{id:`viewer`,label:`View`,description:`Watch live and recorded video, browse events and read device state. Cannot change anything.`,deviceAccess:[`view`],systemAccess:[`view`]},{id:`operator`,label:`Operate`,description:`Everything View does, plus acting on a device: PTZ, lights, sirens, locks, and snoozing notifications. Cannot delete.`,deviceAccess:[`view`,`create`],systemAccess:[`view`,`create`]},{id:`manager`,label:`Full management`,description:`Everything Operate does, plus deleting devices, recordings and events. Short of admin — no user or cluster administration.`,deviceAccess:[`view`,`create`,`delete`],systemAccess:[`view`,`create`,`delete`]}];function o9(e){let t=a9.find(t=>t.id===e);if(!t)throw Error(`Unknown access role '${e}'`);return t}function s9(e){let t=o9(e.roleId);return[{type:`device`,selector:e.selector,access:[...t.deviceAccess],includeLinked:e.includeLinked},{type:`category`,target:`system`,access:[...t.systemAccess]}]}function c9(e,t){if(e.length!==t.length)return!1;let n=new Set(e);return t.every(e=>n.has(e))}function l9(e){if(e.length!==2)return null;let t=e.filter(e=>e.type===`device`),n=e.filter(e=>e.type===`category`&&e.target===`system`);if(t.length!==1||n.length!==1)return null;let[r]=t,[i]=n;if(r===void 0||i===void 0||r.type!==`device`||r.includeLinked===void 0)return null;let a=a9.find(e=>c9(e.deviceAccess,r.access)&&c9(e.systemAccess,i.access));return a?{roleId:a.id,selector:r.selector,includeLinked:r.includeLinked}:null}var u9=8;function d9(e,t){switch(e.kind){case`all`:return!0;case`ids`:return e.ids.includes(t.id);case`types`:return e.types.some(e=>String(e)===t.type);case`locations`:return t.location!==null&&e.locations.includes(t.location)}}function f9(e,t){return e.some(e=>e.type===`category`&&e.target===`device`&&e.access.includes(t))}function p9(e,t){return e.filter(e=>e.type===`device`&&e.access.includes(t))}function m9(e,t){return e.includeLinked??t===`view`}function h9(e,t){let n=[],r=e;for(let e=0;e<u9;e++){let e=r===null?null:t.get(r)?.parentDeviceId??null;if(e===null||e===r)break;n.push(e),r=e}return n}function g9(e,t,n){if(f9(e,n))return new Set(t.map(e=>e.id));let r=new Map;for(let e of t)r.set(e.id,e);let i=p9(e,n),a=new Set;for(let e of t)for(let t of i){if(d9(t.selector,e)){a.add(e.id);break}if(m9(t,n)&&h9(e.id,r).some(e=>{let n=r.get(e);return n!==void 0&&d9(t.selector,n)})){a.add(e.id);break}}return a}function _9(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){let e=Y.safeParse(n);e.success&&t.push(e.data)}return t}var v9=[`view`,`create`,`delete`];function y9(e,t,n,r){return r?{all:!0,deviceCount:t.length}:{all:f9(e,n)||p9(e,n).some(e=>e.selector.kind===`all`),deviceCount:g9(e,t,n).size}}function b9(e){let t=[];for(let n of e)n.type===`capability`&&t.push({name:n.target,access:n.access});return t}function x9(e){let t=[];for(let n of e)n.type===`addon`&&t.push({name:n.target,access:n.access});return t}function Pee(e,t,n){let r={view:y9(e,t,`view`,n),create:y9(e,t,`create`,n),delete:y9(e,t,`delete`,n)},i=n?v9:v9.filter(t=>e.some(e=>e.type===`category`&&e.target===`system`&&e.access.includes(t)));return{isAdmin:n,allDevicesViewable:r.view.all,viewableDeviceCount:r.view.deviceCount,device:r,system:i,capabilities:b9(e),addons:x9(e)}}var Fee={camera:{type:`camera`,label:`Camera`,icon:`camera`}},Iee=[15e3,6e4,5*6e4,15*6e4,30*6e4,60*6e4,90*6e4];function Lee(e,t){let n=e.length,r=t.length;if(n===0)return r;if(r===0)return n;let i=Array.from({length:r+1},(e,t)=>t),a=Array.from({length:r+1},()=>0);for(let o=1;o<=n;o++){a[0]=o;let n=i[0]??0;for(let s=1;s<=r;s++){let r=i[s]??0,c=a[s-1]??0,l=e.charCodeAt(o-1)===t.charCodeAt(s-1)?0:1;a[s]=Math.min(r+1,c+1,n+l),n=r}for(let e=0;e<=r;e++)i[e]=a[e]??0}return i[r]??0}function S9(e,t){let n=e.trim().toLowerCase(),r=t.trim().toLowerCase();return n===r?1:n.length===0||r.length===0?0:1-Lee(n,r)/Math.max(n.length,r.length)}function Ree(e,t,n=.8){let r=null,i=0;for(let a of t){let t=S9(e,a);t>=n&&t>i&&(r=a,i=t)}return r}var zee=`addon:`;function C9(e){return e.startsWith(zee)?e.slice(6):e}function Bee(e,t){return C9(e)===C9(t)}function w9(e){return{runId:e.runId,state:e.state,startedAtMs:e.startedAtMs,finishedAtMs:e.finishedAtMs,progress:e.progress,result:e.result,error:e.error}}var Vee=class{opts;runs=new Map;now;constructor(e){this.opts=e,this.now=e.now??Date.now}get runningCount(){let e=0;for(let t of this.runs.values())t.state===`running`&&(e+=1);return e}start(e,t){let n=this.runs.get(e);if(n!==void 0&&n.state===`running`)throw Error(`run '${e}' is already running`);if(this.runningCount>=this.opts.maxConcurrent)throw Error(`busy: ${this.runningCount}/${this.opts.maxConcurrent} run(s) already in progress — wait for one to finish or abort it`);let r={runId:e,state:`running`,startedAtMs:this.now(),finishedAtMs:null,progress:null,result:null,error:null,controller:new AbortController};this.runs.delete(e),this.runs.set(e,r);let i={signal:r.controller.signal,report:e=>{r.progress=e}},a=e=>{e.error===void 0?(r.state=r.controller.signal.aborted?`aborted`:`done`,r.result=e.result??null):(r.state=`failed`,r.error=e.error),r.finishedAtMs=this.now(),this.prune(),this.opts.onSettled?.(w9(r))},o;try{o=t(i)}catch(e){o=Promise.reject(e)}return o.then(e=>a({result:e}),e=>a({error:e instanceof Error?e.message:String(e)})),w9(r)}status(e){let t=this.runs.get(e);return t===void 0?null:w9(t)}list(){let e=[...this.runs.values()],t=e.filter(e=>e.state===`running`).toSorted((e,t)=>t.startedAtMs-e.startedAtMs),n=e.filter(e=>e.state!==`running`).toSorted((e,t)=>(t.finishedAtMs??0)-(e.finishedAtMs??0));return[...t,...n].map(w9)}abort(e){let t=this.runs.get(e);return t===void 0||t.state!==`running`?!1:(t.controller.abort(),!0)}abortAll(){for(let e of this.runs.values())e.state===`running`&&e.controller.abort()}prune(){let e=[...this.runs.values()].filter(e=>e.state!==`running`).toSorted((e,t)=>(e.finishedAtMs??0)-(t.finishedAtMs??0)),t=e.length-this.opts.keepFinished;for(let n=0;n<t;n++){let t=e[n];t!==void 0&&this.runs.delete(t.runId)}}};function Hee(e,t){if(e.length!==t.length)return 0;let n=0,r=0,i=0;for(let a=0;a<e.length;a++)n+=e[a]*t[a],r+=e[a]*e[a],i+=t[a]*t[a];let a=Math.sqrt(r)*Math.sqrt(i);return a===0?0:n/a}var Uee=class{elementId;cache={};listeners=new Set;loaded=!1;getBackend;constructor(e,t){this.elementId=e,this.getBackend=typeof t==`function`?t:()=>t}async ensureLoaded(){if(this.loaded)return;let e=this.getBackend();if(!e)throw Error(`ElementConfigStore(${this.elementId}): settings backend not available`);let 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){let t=e.split(`.`),n=this.cache;for(let e of t){if(typeof n!=`object`||!n||Array.isArray(n))return;n=Reflect.get(n,e)}return n}async set(e,t){await this.ensureLoaded(),Wee(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(){let e=this.getBackend();if(!e)throw Error(`ElementConfigStore(${this.elementId}): settings backend not available — cannot persist config`);await e.set({collection:`config`,key:this.elementId,value:this.cache})}notifyListeners(){let e=this.getAll();for(let t of this.listeners)try{t(e)}catch{}}};function Wee(e,t,n){let r=t.split(`.`),i=e;for(let e=0;e<r.length-1;e++){let t=r[e],n=i[t];if(typeof n!=`object`||!n||Array.isArray(n)){let e={};i[t]=e,i=e}else i=n}i[r[r.length-1]]=n}function T9(e){return e instanceof Error?e.message:typeof e==`string`?e:String(e)}function Gee(e,t){return`https://huggingface.co/${e}/resolve/main/${t}`}function E9(e){return JSON.parse(e)}function D9(e){return typeof e!=`object`||!e||Array.isArray(e)?null:{...e}}function Kee(e){return Array.isArray(e)?e:[]}function qee(e,t=``){return typeof e==`string`?e:t}function Jee(e,t=0){return typeof e==`number`?e:t}function Yee(e,t=!1){return typeof e==`boolean`?e:t}function Xee(e){try{return D9(E9(e))}catch{return null}}function Zee(e){try{let t=E9(e);return Array.isArray(t)?t:null}catch{return null}}var Qee=[/^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,/^bridge$/i,/^code$/i,/^state$/i,/^challenge$/i,/^code[_-]?challenge$/i,/^confirm$/i,/^link$/i];function $ee(e){return Qee.some(t=>t.test(e))}function O9(e){if(e.startsWith(`/`)&&!e.startsWith(`//`)){let t=O9(`http://relative.invalid${e}`);return t.startsWith(`http://relative.invalid`)?t.slice(23):e}try{let t=new URL(e),n=!1;(t.username||t.password)&&(t.username=``,t.password=``,n=!0);for(let e of Array.from(t.searchParams.keys()))$ee(e)&&(t.searchParams.set(e,`***`),n=!0);return n?t.toString():e}catch{return e}}var k9=`/sso-complete`,A9=[`access_denied`,`invalid_state`,`invalid_request`,`unknown_broker`,`not_configured`,`exchange_failed`,`no_refresh_token`,`unavailable`,`unknown`];function j9(e){return A9.some(t=>t===e)}function ete(e,t){let n=new URLSearchParams({return:`oauth`,status:t.status});return t.addonId!==void 0&&n.set(`addon`,t.addonId),t.brokerId!==void 0&&n.set(`broker`,t.brokerId),t.integration!==void 0&&n.set(`integration`,t.integration),t.status===`error`&&n.set(`reason`,t.reason??`unknown`),t.action===`disconnect`&&n.set(`action`,`disconnect`),`${e===null?``:e.replace(/\/+$/,``)}${k9}#${n.toString()}`}function M9(e){if(!e.startsWith(`#`))return null;let t=new URLSearchParams(e.slice(1));if(t.get(`return`)!==`oauth`)return null;let n=t.get(`status`);if(n!==`success`&&n!==`error`)return null;let r=t.get(`addon`),i=t.get(`broker`),a=t.get(`integration`),o=t.get(`reason`);return{status:n,...r!==null&&r.length>0?{addonId:r}:{},...i!==null&&i.length>0?{brokerId:i}:{},...a!==null&&a.length>0?{integration:a}:{},...n===`error`?{reason:j9(o)?o:`unknown`}:{},...t.get(`action`)===`disconnect`?{action:`disconnect`}:{}}}var $=1024*1024,N9={sampleIntervalMs:6e4,baselineSettleSamples:5,baselineSampleCount:3,restartMultiple:4,floorBytes:1024*$,ceilingBytes:3072*$,cooldownMs:30*6e4,maxRestartsPerWindow:6,restartWindowMs:1440*6e4};function tte(e){let t=(t,n,r)=>{let i=e[t];if(i===void 0)return n;let a=Number(i);return Number.isFinite(a)&&a>=r?a:n},n=N9;return{sampleIntervalMs:t(`CAMSTACK_POOL_MEM_INTERVAL_MS`,n.sampleIntervalMs,5e3),baselineSettleSamples:n.baselineSettleSamples,baselineSampleCount:n.baselineSampleCount,restartMultiple:t(`CAMSTACK_POOL_MEM_MULTIPLE`,n.restartMultiple,1.5),floorBytes:t(`CAMSTACK_POOL_MEM_FLOOR_MB`,n.floorBytes/$,128)*$,ceilingBytes:t(`CAMSTACK_POOL_MEM_CEILING_MB`,n.ceilingBytes/$,256)*$,cooldownMs:t(`CAMSTACK_POOL_MEM_COOLDOWN_MS`,n.cooldownMs,6e4),maxRestartsPerWindow:t(`CAMSTACK_POOL_MEM_MAX_RESTARTS`,n.maxRestartsPerWindow,1),restartWindowMs:t(`CAMSTACK_POOL_MEM_RESTART_WINDOW_MS`,n.restartWindowMs,6e4)}}function nte(e){let t=t=>{let n=e.match(RegExp(`^${t}:\\s+(\\d+)\\s*kB`,`m`));return n?Number(n[1])*1024:null},n=t(`VmRSS`);if(n===null)return null;let r=e.match(/^Threads:\s+(\d+)/m);return{rssBytes:n,vmBytes:t(`VmSize`)??0,hwmBytes:t(`VmHWM`)??0,swapBytes:t(`VmSwap`)??0,threads:r?Number(r[1]):0}}function P9(){return{settleSeen:0,baselineWindow:[],baselineBytes:null,restartsAt:[],lastRestartAt:null}}function rte(e){let t=[...e].sort((e,t)=>e-t);return t[Math.floor(t.length/2)]}function ite(e,t,n){if(e.baselineBytes!==null)return e;if(e.settleSeen<n.baselineSettleSamples)return{...e,settleSeen:e.settleSeen+1};let r=[...e.baselineWindow,t];return r.length<n.baselineSampleCount?{...e,baselineWindow:r}:{...e,baselineWindow:r,baselineBytes:rte(r)}}function F9(e,t){return e===null?t.ceilingBytes:Math.min(t.ceilingBytes,Math.max(t.floorBytes,t.restartMultiple*e))}function ate(e,t,n){return e.filter(e=>t-e<n.restartWindowMs)}function I9(e,t,n,r){let i=ite(e,t,r),a=F9(i.baselineBytes,r);if(t<=a)return{state:i,action:i.baselineBytes===null?`baseline-pending`:`ok`,baselineBytes:i.baselineBytes,thresholdBytes:a};let o=ate(i.restartsAt,n,r),s={...i,restartsAt:o};return o.length>=r.maxRestartsPerWindow?{state:s,action:`exhausted`,baselineBytes:i.baselineBytes,thresholdBytes:a}:s.lastRestartAt!==null&&n-s.lastRestartAt<r.cooldownMs?{state:s,action:`cooldown`,baselineBytes:i.baselineBytes,thresholdBytes:a}:{state:s,action:`restart`,baselineBytes:i.baselineBytes,thresholdBytes:a}}function L9(e,t){return{...P9(),restartsAt:[...e.restartsAt,t],lastRestartAt:t}}function R9(e){return{...P9(),restartsAt:e.restartsAt,lastRestartAt:e.lastRestartAt}}function z9(e){if(e.length===0)return null;let t=e[0];for(let n of e)n.rssBytes/n.thresholdBytes>t.rssBytes/t.thresholdBytes&&(t=n);return t.key}var ote=class{pools=new Map;timer=null;sweeping=!1;stopped=!1;opts;now;setTimer;clearTimer;constructor(e){this.opts=e,this.now=e.now??(()=>Date.now()),this.setTimer=e.setTimer??((e,t)=>setTimeout(e,t)),this.clearTimer=e.clearTimer??(e=>clearTimeout(e))}start(){this.timer||this.stopped||this.arm()}stop(){this.stopped=!0,this.timer&&=(this.clearTimer(this.timer),null)}arm(){let e=this.setTimer(()=>{this.sweep().finally(()=>{this.stopped||this.arm()})},this.opts.policy.sampleIntervalMs);typeof e.unref==`function`&&e.unref(),this.timer=e}async sweep(){if(!this.sweeping){this.sweeping=!0;try{await this.doSweep()}catch(e){this.opts.log.warn(`pool memory sweep failed`,{meta:{error:e instanceof Error?e.message:String(e)}})}finally{this.sweeping=!1}}}async doSweep(){let e=this.now(),t=await this.opts.sample(),n=[],r=new Map;for(let i of t){let t=this.pools.get(i.key),a=t?.state??P9();t&&t.pids.length>0&&!ste(t.pids,i.pids)&&(this.opts.log.warn(`pool process changed outside the watchdog — re-baselining`,{meta:{poolKey:i.key,previousPids:t.pids,pids:i.pids}}),a=R9(a));let o=I9(a,i.rssBytes,e,this.opts.policy);this.pools.set(i.key,{state:o.state,pids:i.pids}),r.set(i.key,o),this.opts.log.info(`pool memory`,{meta:{poolKey:i.key,pids:i.pids,rssMb:Math.round(i.rssBytes/$),baselineMb:o.baselineBytes===null?null:Math.round(o.baselineBytes/$),thresholdMb:Math.round(o.thresholdBytes/$),action:o.action,...i.meta}}),o.action===`restart`?n.push({key:i.key,rssBytes:i.rssBytes,thresholdBytes:o.thresholdBytes}):o.action===`cooldown`?this.opts.log.warn(`pool over memory threshold but inside restart cooldown`,{meta:{poolKey:i.key,rssMb:Math.round(i.rssBytes/$),thresholdMb:Math.round(o.thresholdBytes/$),cooldownMs:this.opts.policy.cooldownMs}}):o.action===`exhausted`&&this.opts.log.error(`pool memory watchdog gave up — restart budget exhausted, pool leaks faster than restarts can pay for; needs a heap profile (py-spy / tracemalloc)`,{meta:{poolKey:i.key,rssMb:Math.round(i.rssBytes/$),thresholdMb:Math.round(o.thresholdBytes/$),maxRestartsPerWindow:this.opts.policy.maxRestartsPerWindow,restartWindowMs:this.opts.policy.restartWindowMs}})}for(let e of[...this.pools.keys()])t.some(t=>t.key===e)||this.pools.delete(e);let i=z9(n);if(i===null)return;let a=n.find(e=>e.key===i),o=r.get(i),s=this.pools.get(i),c=s.state.restartsAt.length+1;this.opts.log.warn(`pool memory watchdog restarting pool — RSS over threshold`,{meta:{poolKey:i,pids:s.pids,rssMb:Math.round(a.rssBytes/$),thresholdMb:Math.round(a.thresholdBytes/$),baselineMb:o.baselineBytes===null?null:Math.round(o.baselineBytes/$),restartsInWindow:c,deferredCandidates:n.filter(e=>e.key!==i).map(e=>e.key)}});try{await this.opts.restart(i),this.pools.set(i,{state:L9(s.state,this.now()),pids:[]})}catch(e){this.opts.log.error(`pool memory watchdog restart failed`,{meta:{poolKey:i,error:e instanceof Error?e.message:String(e)}})}}};function ste(e,t){if(e.length!==t.length)return!1;let n=[...e].sort((e,t)=>e-t),r=[...t].sort((e,t)=>e-t);return n.every((e,t)=>e===r[t])}function cte(e,t,n){let r=t*n;if(r<=0||e.length===0)return Array.from({length:Math.max(0,r)}).fill(!1);let i=Array.from({length:r}).fill(!1);for(let r=0;r<n;r++)for(let a=0;a<t;a++){let o=(a+.5)/t,s=(r+.5)/n;for(let n of e)if(o>=n.x&&o<=n.x+n.w&&s>=n.y&&s<=n.y+n.h){i[r*t+a]=!0;break}}return i}function lte(e,t,n,r){if(t<=0||n<=0||r<=0)return[];let i=t*n,a=Array.from({length:i}).fill(!1),o=Math.min(e.length,i);for(let t=0;t<o;t++)a[t]=e[t]===!0;let s=[],c=[];for(let e=0;e<=n;e++){let r=[];if(e<n){let n=-1;for(let i=0;i<=t;i++){let o=i<t&&a[e*t+i]===!0;o&&n===-1?n=i:!o&&n!==-1&&(r.push({colStart:n,colEnd:i-1}),n=-1)}}let i=new Set,o=[];for(let t of c){let n=r.findIndex(e=>e.colStart===t.colStart&&e.colEnd===t.colEnd);n>=0?(o.push(t),i.add(n)):s.push({...t,rowEnd:e-1})}for(let t=0;t<r.length;t++)if(!i.has(t)){let n=r[t];o.push({colStart:n.colStart,colEnd:n.colEnd,rowStart:e})}c.length=0;for(let e of o)c.push(e)}if(s.length===0)return[];let l=s.slice().toSorted((e,t)=>{let n=(e.colEnd-e.colStart+1)*(e.rowEnd-e.rowStart+1);return(t.colEnd-t.colStart+1)*(t.rowEnd-t.rowStart+1)-n});return(r>0?l.slice(0,r):l).map(e=>({x:e.colStart/t,y:e.rowStart/n,w:(e.colEnd-e.colStart+1)/t,h:(e.rowEnd-e.rowStart+1)/n}))}var ute=class{capacity;items;head=0;tail=0;count=0;constructor(e){this.capacity=e,this.items=Array.from({length:e})}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){let t=[],n=Math.min(e,this.count);for(let e=0;e<n;e++)t.push(this.items[this.head]),this.items[this.head]=void 0,this.head=(this.head+1)%this.capacity;return this.count-=n,t}};async function dte(e,t){let n=performance.now();try{return{output:t===void 0?await e():await fte(e(),t),durationMs:B9(performance.now()-n),ok:!0}}catch(e){return{output:void 0,durationMs:B9(performance.now()-n),ok:!1,error:T9(e)}}}function B9(e){return Math.round(e*100)/100}function fte(e,t){return new Promise((n,r)=>{let i=setTimeout(()=>r(Error(`Inference timeout after ${t}ms`)),t);e.then(e=>{clearTimeout(i),n(e)}).catch(e=>{clearTimeout(i),r(e)})})}var V9={openvino:`openvino`,edgetpu:`tflite`,coreml:`coreml`,onnx:`onnx`,cpu:`onnx`,cuda:`onnx`};function pte(e){return V9[e]??`onnx`}var H9={onnx:`onnx`,coreml:`coreml`,openvino:`openvino`,tflite:`tflite`,pytorch:`pt`},U9={coreml:`coreml_inference.py`,pytorch:`pytorch_inference.py`,openvino:`openvino_inference.py`};function W9(e){return H9[e]}function mte(e){return U9[e]}function hte(e){return e===`coreml`||e===`pytorch`||e===`openvino`}function gte(e){return new Promise(t=>setTimeout(t,Math.max(0,e)))}function _te(e,t){return t.aborted?Promise.resolve():new Promise(n=>{let r=setTimeout(()=>{t.removeEventListener(`abort`,i),n()},Math.max(0,e)),i=()=>{clearTimeout(r),t.removeEventListener(`abort`,i),n()};t.addEventListener(`abort`,i,{once:!0})})}function vte(e){let t=e instanceof Float32Array?e:Float32Array.from(e),n=new Uint8Array(t.length*4),r=new DataView(n.buffer);for(let e=0;e<t.length;e+=1)r.setFloat32(e*4,t[e]??0,!0);return Buffer.from(n).toString(`base64`)}function yte(e){let t=Buffer.from(e,`base64`);if(t.byteLength%4!=0)throw Error(`decodeVectorBase64: ${t.byteLength} bytes is not a whole number of Float32 values`);let n=new Float32Array(t.byteLength/4);for(let e=0;e<n.length;e+=1)n[e]=t.readFloatLE(e*4);return n}function bte(e){return Math.floor(Buffer.from(e,`base64`).byteLength/4)}function xte(e,t,n,r,i){if(n.length===0||t.length===0)return{passed:e,excluded:[]};let a=n.filter(e=>e.enabled!==!1),o=a.filter(e=>e.mode===`include`),s=a.filter(e=>e.mode===`exclude`),c=o.length>0,l=new Map(t.map(e=>[e.id,e])),u=[],d=[];for(let t of e){let e=r(t),n=i?.(t),a=o.some(t=>G9(t,e,n,l)),f=s.some(t=>G9(t,e,n,l));c?a&&!f?u.push(t):d.push(t):f?d.push(t):u.push(t)}return{passed:u,excluded:d}}function G9(e,t,n,r){if(e.classFilter&&e.classFilter.length>0&&n!==void 0&&!e.classFilter.includes(n))return!1;for(let n of e.zoneIds){let e=r.get(n);if(e&&Ste(t,e.polygon))return!0}return!1}function Ste(e,t){if(t.length<3)return!1;let n=!1,{x:r,y:i}=e;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a];o.y>i!=s.y>i&&r<(s.x-o.x)*(i-o.y)/(s.y-o.y||2**-52)+o.x&&(n=!n)}return n}function Cte(e,t,n){let r={};for(let i of Object.keys(n))r[i]=n=>e.addons.custom.mutate({addonId:t,action:i,input:n});return r}var K9={value:`auto`,label:`Auto`},q9={value:`cpu`,label:`CPU`},wte={value:`usb`,label:`Coral USB`},J9=[{id:`onnx`,supports:()=>!0,devices:e=>{if(!e)return[q9];let t=[q9];return e.gpu?.type===`nvidia`&&t.push({value:`cuda`,label:`CUDA`}),e.gpu?.type===`amd`&&e.platform===`linux`&&t.push({value:`webgpu`,label:`WebGPU (AMD iGPU)`}),e.npu?.type===`apple-ane`&&t.push({value:`coreml`,label:`CoreML EP`}),t},defaultDevice:`cpu`},{id:`openvino`,supports:e=>e?.arch===`x64`&&e.platform!==`darwin`&&(e.gpu?.type===`intel`||e.gpu?.type===`amd`),devices:e=>{if(!e)return[K9];if(e.gpu?.type===`amd`)return[q9];let t=[K9,q9];return e.gpu?.type===`intel`&&t.push({value:`gpu`,label:`GPU`}),e.npu?.type===`intel-npu`&&t.push({value:`npu`,label:`NPU`}),t},defaultDevice:`auto`},{id:`coreml`,supports:e=>e?.platform===`darwin`,devices:e=>{let t={value:`all`,label:`All (ANE + GPU + CPU)`};if(!e)return[t];let n=[t];return e.npu?.type===`apple-ane`&&n.push({value:`ane`,label:`Apple Neural Engine`}),n.push({value:`gpu`,label:`GPU`},q9),n},defaultDevice:`all`},{id:`edgetpu`,supports:e=>e?.coral!=null,devices:()=>[wte],defaultDevice:`usb`}];function Y9(e){let t=J9.find(t=>t.id===e);if(!t)throw Error(`Unknown runtime: ${e}`);return t}function Tte(e){return J9.filter(t=>t.supports(e)).map(e=>e.id)}function Ete(e,t){return Y9(e).devices(t)}function Dte(e){return Y9(e).defaultDevice}function Ote(e){return e===`edgetpu`?`tflite`:W9(e)}function X9(e){let t=[];if(e.platform===`darwin`&&e.arch===`arm64`&&t.push({runtime:`python`,backend:`coreml`,format:`coreml`,score:95,reason:`Apple Neural Engine (Python CoreML)`,available:!0}),e.gpu?.type===`nvidia`&&t.push({runtime:`python`,backend:`cuda`,format:`onnx`,score:85,reason:`NVIDIA CUDA (Python ONNX Runtime)`,available:!0}),e.gpu?.type===`intel`){let n=e.npu?.type===`intel-npu`?90:80;t.push({runtime:`python`,backend:`openvino`,format:`openvino`,score:n,reason:`Intel OpenVINO`,available:!0})}e.gpu?.type===`amd`&&(e.platform===`linux`&&t.push({runtime:`python`,backend:`onnx`,format:`onnx`,score:75,reason:`ONNX WebGPU (AMD iGPU)`,available:!0}),t.push({runtime:`python`,backend:`openvino`,format:`openvino`,score:65,reason:`OpenVINO CPU (AMD x64)`,available:!0})),e.coral!=null&&t.push({runtime:`python`,backend:`edgetpu`,format:`tflite`,score:70,reason:`Coral Edge TPU (Python LiteRT)`,available:!0}),t.push({runtime:`python`,backend:`cpu`,format:`onnx`,score:50,reason:`CPU (Python ONNX Runtime)`,available:!0});let n=t.toSorted((e,t)=>t.score-e.score);return{scores:n,best:n.find(e=>e.available)??n[n.length-1]}}var kte={cuda:`gpu`,edgetpu:`usb`,coreml:`all`,cpu:`cpu`};function Z9(e,t,n,r){return{key:e===`cpu`?`cpu`:`${e}:${t}`,backend:e,device:t,format:n,runtime:`python`,score:r,available:!0}}function Ate(e){let{scores:t}=X9(e),n=[];for(let r of t){if(r.backend===`openvino`){e.npu?.type===`intel-npu`&&n.push(Z9(`openvino`,`npu`,r.format,r.score+2)),e.gpu?.type===`intel`&&n.push(Z9(`openvino`,`gpu`,r.format,r.score)),e.gpu?.type===`amd`&&n.push(Z9(`openvino`,`cpu`,r.format,r.score));continue}if(r.backend===`edgetpu`){let t=Math.max(1,e.coral?.count??1);for(let e=0;e<t;e++){let t=e===0?`usb`:`usb:${e}`;n.push(Z9(`edgetpu`,t,r.format,r.score))}continue}if(r.backend===`onnx`&&r.reason.startsWith(`ONNX WebGPU`)){n.push(Z9(`onnx`,`webgpu`,r.format,r.score));continue}let t=kte[r.backend]??r.backend;n.push(Z9(r.backend,t,r.format,r.score))}return n}var Q9=360*60*1e3;async function $9(e){let t=e.now??(()=>Date.now()),n=e.api;if(n===void 0)return e.logger.warn(`device removal reconcile skipped — no device-manager api`),{read:!1,applied:0,failed:0};let r;try{r=await n.deviceManager.listDeletedSince.query({sinceMs:t()-Hw})}catch(t){return e.logger.warn(`device removal reconcile skipped — tombstones unreadable, nothing deleted`,{meta:{error:T9(t)}}),{read:!1,applied:0,failed:0}}let i=0,a=0;for(let t of r)try{let n=await e.remove(t);i+=1,Object.values(n.counts).reduce((e,t)=>e+t,0)>0&&e.logger.info(`device removal reconcile cleaned a missed deletion`,{tags:{deviceId:t.deviceId},meta:{counts:n.counts,deletedAt:t.deletedAt}})}catch(n){a+=1,e.logger.warn(`device removal reconcile failed for a device — retried next pass`,{tags:{deviceId:t.deviceId},meta:{error:T9(n)}})}return{read:!0,applied:i,failed:a}}function jte(e){let t=!1,n=()=>{t||(t=!0,$9(e).catch(t=>{e.logger.warn(`device removal reconcile pass crashed`,{meta:{error:T9(t)}})}).finally(()=>{t=!1}))};n();let r=setInterval(n,Q9);return r.unref?.(),()=>clearInterval(r)}var Mte=t({ACCESSORY_LABEL:()=>f$,ACCESS_ROLES:()=>a9,AGENT_MDNS_QUERY_NAME:()=>zE,AGENT_MDNS_SERVICE_TYPE:()=>RE,AGENT_MDNS_TXT_KEYS:()=>BE,ALEXA_EGRESS_PROFILE:()=>Or,ALL_CAPABILITY_DEFINITIONS:()=>h0,APPEARANCE_BIN_COUNT:()=>96,APPEARANCE_BLOCKS:()=>Yu,APPEARANCE_DESCRIPTOR_VERSION:()=>1,APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT:()=>!1,APPLE_SA_TO_MACRO:()=>nk,APP_AUTH_CALLBACK_MAX_LENGTH:()=>512,APP_AUTH_CALLBACK_URLS:()=>Cf,APP_FLOW_DEFAULT_REDIRECT:()=>Af,APP_FLOW_REFUSAL_MESSAGES:()=>Nf,APP_FLOW_STATE_PREFIX:()=>`a.`,APP_REFUSED_PATH:()=>Ff,APP_START_REFUSAL_MESSAGES:()=>Pf,ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT:()=>200,AUDIO_ANALYSIS_CAP_NAME:()=>Ni,AUDIO_BACKEND_CHOICES:()=>vg,AUDIO_CHUNK_FORMATS:()=>_e,AUDIO_MACRO_LABELS:()=>ek,AUDIO_NOT_CLASSIFIED_REASONS:()=>ug,AUDIO_PRESETS:()=>ar,AUDIO_SCALE_EPOCH_ISO:()=>z0,AUDIO_SCALE_EPOCH_MS:()=>B0,AUTOMATIC_HUB_ADDRESS_FLAGS:()=>lE,AUTO_SHARE_HEADROOM:()=>_ee,AUTO_TUNE_FAMILY:()=>b5,AcceleratorKindSchema:()=>UF,AccessoriesStatusSchema:()=>oV,AccessoryKind:()=>d$,AddBrokerInputSchema:()=>yO,AddRetrainFrameFromRecordingResultSchema:()=>dP,AddonAutoUpdateSchema:()=>OV,AddonListItemSchema:()=>SV,AddonPageDeclarationSchema:()=>Eh,AddonPageInfoSchema:()=>wh,AdminLinkTargetEnum:()=>qS,AdoptionAdoptInputSchema:()=>bC,AdoptionAdoptResultSchema:()=>xC,AdoptionCandidateResultSchema:()=>Ci,AdoptionFilterSchema:()=>pC,AdoptionGetCandidateInputSchema:()=>_C,AdoptionJobSchema:()=>wi,AdoptionJobStateSchema:()=>xi,AdoptionListCandidatesInputSchema:()=>hC,AdoptionListCandidatesOutputSchema:()=>gC,AdoptionOutcomeSchema:()=>Si,AdoptionPendingError:()=>ka,AdoptionReleaseInputSchema:()=>SC,AdoptionStatusSchema:()=>vC,AgentLoadSummarySchema:()=>rR,AirQualitySensorStatusSchema:()=>GV,AlarmArmModeSchema:()=>J,AlarmPanelStatusSchema:()=>xk,AlarmStateSchema:()=>bk,AlertEpisodePayloadSchema:()=>W3,AlertSchema:()=>Qh,AlertSeveritySchema:()=>Jh,AlertSourceSchema:()=>Zh,AlertStatusSchema:()=>Xh,AmbientLightSensorStatusSchema:()=>qV,AnalyticsLtsSeriesSchema:()=>tF,ApiKeyRecordSchema:()=>Qj,ApiKeySummarySchema:()=>iZ,AppFlowPurposeSchema:()=>Df,AppLoginPathSchema:()=>zf,AppPageLangSchema:()=>Of,AppleFmAvailabilitySchema:()=>lD,AppleFmUnavailableReasonSchema:()=>cD,ArchiveEntrySchema:()=>a_,ArchiveManifestSchema:()=>o_,ArchiveSqliteSnapshotSchema:()=>Qg,ArchivedDebugNoteQueryInputSchema:()=>fs,ArchivedDebugNoteSchema:()=>ds,AttachmentMediaTypeSchema:()=>MO,AttachmentSchema:()=>NO,AudioAnalysisResultSchema:()=>fg,AudioAnalysisSettingsSchema:()=>pg,AudioAttachDeviceInputSchema:()=>mg,AudioAttachDeviceResultSchema:()=>hg,AudioChunkFormatSchema:()=>sc,AudioChunkInputSchema:()=>sg,AudioClassSummarySchema:()=>YV,AudioClassificationLabelSchema:()=>lg,AudioClassificationResultSchema:()=>_g,AudioClassifyOutcomeSchema:()=>dg,AudioCodecInfoSchema:()=>Sg,AudioDecodeSessionConfigSchema:()=>Cg,AudioDetachDeviceResultSchema:()=>gg,AudioEncodeSchema:()=>Xn,AudioEncodeSessionConfigSchema:()=>wg,AudioEncodedChunkSchema:()=>Eg,AudioEventSchema:()=>EN,AudioLevelSchema:()=>cg,AudioMetricsHistoryPointSchema:()=>ZV,AudioMetricsHistorySchema:()=>QV,AudioMetricsSnapshotSchema:()=>XV,AudioPcmChunkSchema:()=>Tg,AudioStreamPickSchema:()=>Js,AuthResultSchema:()=>kg,AutoTuneApplyInputSchema:()=>rI,AutoTuneApplyResultSchema:()=>aI,AutoTuneOptionsSchema:()=>tI,AutoTunePhaseResultSchema:()=>iI,AutoTunePlanSchema:()=>nI,AutoTuneWarningSchema:()=>eI,AutoUpdateSettingsSchema:()=>DV,AutomationActionSchema:()=>Jm,AutomationConditionOperatorSchema:()=>Um,AutomationConditionSchema:()=>Km,AutomationControlStatusSchema:()=>eH,AutomationRecipeSchema:()=>Ym,AutomationTriggerSchema:()=>qm,AvailableIntegrationTypeSchema:()=>EW,BASE_DEVICE_CAPS:()=>xb,BASE_LIVE_EGRESS_PROFILE:()=>Er,BATTERY_DEVICE_PROFILE:()=>y1,BATTERY_UNREACHABLE_AFTER_MS:()=>T$,BENCH_ROOT_STEP_ID:()=>u7,BIRTH_DECISION_DEFAULT_LIMIT:()=>500,BOOT_RECOVERY_BACKOFF_MS:()=>Iee,BUILTIN_RESULT_KINDS:()=>Vy,BackgroundRunRegistry:()=>Vee,BacklightModeSchema:()=>vW,BackupArchiveEncryptionSchema:()=>t_,BackupDestinationInfoSchema:()=>e_,BackupEncryptionStatusSchema:()=>n_,BackupEntrySchema:()=>i_,BackupRunPhaseSchema:()=>l_,BackupRunSchema:()=>u_,BackupRunStateSchema:()=>c_,BackupTriggerResultSchema:()=>d_,BaseAddon:()=>jn,BaseDevice:()=>v$,BaseDeviceProvider:()=>w$,BatchTooLargeError:()=>ja,BatteryStatusSchema:()=>nH,BinaryStatusSchema:()=>iH,BirthDecisionQueryInputSchema:()=>ls,BirthDecisionRecordSchema:()=>cs,BirthDecisionVerdictSchema:()=>ss,BoundingBoxSchema:()=>ag,BrightnessStatusSchema:()=>oH,BrokerAddInputSchema:()=>b_,BrokerAudioClientSchema:()=>U_,BrokerClientsSchema:()=>q_,BrokerConnectionDetailsSchema:()=>vO,BrokerConsumerAttributionSchema:()=>G_,BrokerConsumerKindSchema:()=>W_,BrokerEncodedClientSchema:()=>K_,BrokerGetStateInputSchema:()=>N_,BrokerInfoSchema:()=>h_,BrokerProviderInfoSchema:()=>__,BrokerPublishInputSchema:()=>k_,BrokerRegistryStatusSchema:()=>g_,BrokerRtspClientSchema:()=>H_,BrokerStatsSchema:()=>fc,BrokerStatusEnum:()=>m_,BrokerStatusSchema:()=>dc,BrokerSubscribeInputSchema:()=>A_,BrokerSubscribeResultSchema:()=>j_,BrokerTestConnectionResultSchema:()=>C_,BrokerUnsubscribeInputSchema:()=>M_,BucketAccumulator:()=>N0,BulkRecordSchema:()=>Ig,CALLER_STAMPED_CAPABILITIES:()=>Px,CAMERA_SENSORS_NOT_LOADED:()=>CM,CAMERA_SENSORS_SETTINGS_KEY:()=>lM,CAMERA_SWITCH_CATALOG:()=>Li,CAMERA_SWITCH_ORDER:()=>Ei,CAMERA_TRIGGER:()=>sM,CAMSTACK_APP_LINK_ORIGIN:()=>ZT,CAMSTACK_EVENT_PREFIX:()=>jo,CAM_PROFILE_ORDER:()=>qs,CAPABILITY_NAMES:()=>p0,CAPABILITY_ROUTER_KEYS:()=>m0,CAP_NAMES_WITH_STATUS:()=>f0,CAP_NODE_PIN_CONTEXT_KEY:()=>ah,CAP_PROVIDER_KIND_MAP:()=>b0,CATALOG_LANGS:()=>Q6,CLASS_MAP_MACRO_TARGETS:()=>hc,CLIP_BROKER_PACED_RATES:()=>zB,CLIP_PLAYBACK_OPTIONS:()=>KB,CLIP_REALTIME_SOURCE_RATES:()=>VB,CLIP_REASON_HEADER_MAX:()=>500,CLIP_SEARCH_STRICTNESS:()=>gd,CLIP_STILL_DISPOSITION_HEADER:()=>DB,CLIP_STILL_REASON_CODE_HEADER:()=>EB,CLIP_STILL_REASON_HEADER:()=>wB,CLIP_STREAM_SOURCE_RATES:()=>BB,CLIP_STREAM_TRANSPORT_HEADER:()=>OB,CLIP_STRICTNESS_FACTOR:()=>vd,CLIP_VECTOR_INDEX_PATTERN:()=>md,CLUSTER_MODEL_CHOICE_UNREADABLE_REASONS:()=>wM,CLUSTER_MODEL_SCOPED_STEPS:()=>TM,CLUSTER_MODEL_SECTION_ID:()=>EM,CLUSTER_STEP_SETTING_FIELDS:()=>zM,COCO_80_LABELS:()=>YO,COCO_TO_MACRO:()=>$O,COMPOSED_DEVICE_STABLE_ID_PREFIX:()=>Tv,COMPOSED_ITEM_FIXED_FIELDS:()=>sb,COMPOSER_ADDON_ID:()=>Cv,COMPOSER_RUNNER_ID:()=>My,COMPOSITION_EVENT_CATEGORY:()=>dy,COMPOSITION_ITEM_ARRAY_PATH:()=>Rv,COMPOSITION_ITEM_KEY_RE:()=>Lv,CONNECTION_TEST_TIMEOUT_MS:()=>HH,CONTAINER_CHILD_PRIORITY:()=>O$,CORE_BLOCKS_ADDON_ID:()=>Xb,CORE_BLOCK_ADDON_PREFIX:()=>Yb,CROP_SUPPLY_SOURCES:()=>kd,CROP_SUPPLY_STEP_IDS:()=>xd,CUSTOMIZATION_BLOCK_NAME_PREFIX:()=>wv,CalendarColorSchema:()=>_H,CalendarEntrySchema:()=>vH,CalendarEventSchema:()=>dH,CalendarInfoSchema:()=>uH,CalendarListEventsInputSchema:()=>fH,CalendarPreferenceEntrySchema:()=>yH,CalendarPreferencesSchema:()=>bH,CalendarSetPreferenceInputSchema:()=>xH,CalendarSourceKindSchema:()=>lH,CamProfileSchema:()=>k,CamStreamDescriptorSchema:()=>GY,CamStreamKindSchema:()=>Ys,CamStreamResolutionSchema:()=>Xs,CameraAssignmentStatusSchema:()=>lR,CameraAudioStatusSchema:()=>vR,CameraBrokerProfileSchema:()=>uR,CameraBrokerStatusSchema:()=>dR,CameraCredentialsSchema:()=>CH,CameraCredentialsStatusSchema:()=>wH,CameraDecoderStatusSchema:()=>fR,CameraDetectionPhaseSchema:()=>gR,CameraDetectionProvisioningSchema:()=>hR,CameraDetectionProvisioningStateSchema:()=>mR,CameraDetectionSourceSchema:()=>eR,CameraDetectionStatusSchema:()=>_R,CameraMetricsSchema:()=>aL,CameraMetricsWithDeviceIdSchema:()=>oL,CameraMotionStatusSchema:()=>pR,CameraOccupancySnapshotForDeviceSchema:()=>jZ,CameraOverrideClearSchema:()=>QF,CameraOwnMotionSchema:()=>yM,CameraRawLevelSchema:()=>xM,CameraRecordingModeSchema:()=>yR,CameraRecordingStatusSchema:()=>bR,CameraSensorAttachmentSchema:()=>_M,CameraSensorEntrySchema:()=>mM,CameraSensorModeSchema:()=>fM,CameraSensorRefSchema:()=>uM,CameraSensorsConfigSchema:()=>hM,CameraSensorsNotEnforcedSchema:()=>bM,CameraSensorsNotForwardedSchema:()=>vM,CameraSensorsStatusSchema:()=>SM,CameraSourceStatusSchema:()=>cR,CameraSourceStreamSchema:()=>sR,CameraStatusDegradationReasonSchema:()=>SR,CameraStatusDegradationSchema:()=>CR,CameraStatusSchema:()=>TR,CameraStatusStageSchema:()=>xR,CameraStreamSchema:()=>Zs,CameraSwitchAuthoritySchema:()=>Di,CameraSwitchGroupSchema:()=>ji,CameraSwitchIdSchema:()=>Ti,CameraSwitchSchema:()=>Ai,CameraSwitchUnavailableReasonSchema:()=>Oi,CameraSwitchWarningSchema:()=>ki,CamstackError:()=>s8,CandidateQueryFilterSchema:()=>mC,CapScopeSchema:()=>qj,CapabilityBindingsSchema:()=>aR,CapacityFallbackSchema:()=>_I,CapacitySourceSchema:()=>gI,CarbonMonoxideStatusSchema:()=>MH,CatalogFileSchema:()=>$6,CatalogLangSchema:()=>Z6,ChargingStatus:()=>tg,ClaimOutcomeSchema:()=>yT,ClaimsListingSchema:()=>xT,CleanupDeletedDevicesResultSchema:()=>Ww,ClearTrackRelationInputSchema:()=>xs,ClearTrackRelationResultSchema:()=>Ss,ClientNetworkStatsSchema:()=>iK,ClimateControlStatusSchema:()=>FH,ClipBytesOfferSchema:()=>FB,ClipBytesSchema:()=>PB,ClipExportFailureSchema:()=>kJ,ClipModelMetaSchema:()=>hd,ClipPlaybackOptionsSchema:()=>HB,ClipPlaybackSchema:()=>AB,ClipSchema:()=>kB,ClipSearchStrictnessSchema:()=>_d,ClipSourceAvailabilitySchema:()=>UB,ClipSourceSchema:()=>WB,ClipStillDispositionSchema:()=>CB,ClipStillRefusalCodeSchema:()=>SB,ClipStreamAudioReasonSchema:()=>LB,ClipStreamAudioSchema:()=>IB,ClipStreamDialSchema:()=>RB,ClipWakeSchema:()=>jB,ClusterAddonNodeDeploymentSchema:()=>uK,ClusterAddonStatusEntrySchema:()=>dK,ClusterModelChoiceSchema:()=>kR,CollectionColumnSchema:()=>Bg,CollectionIndexSchema:()=>Vg,ColorStatusSchema:()=>BH,CompleteEnrollmentInputSchema:()=>op,CompleteEnrollmentOutputSchema:()=>sp,CompleteEnrollmentResultSchema:()=>cp,ComposableCapabilitiesSchema:()=>Wb,ComposableCapabilitySchema:()=>Ub,ComposableFieldSchema:()=>Hb,ComposerApplyInputSchema:()=>Fy,ComposerApplyResultSchema:()=>Ly,ComposerBlockSchema:()=>Ny,ComposerBlockVerdictSchema:()=>Iy,ComposerUnreadableBlockSchema:()=>Py,CompositionBindingSchema:()=>jv,CompositionBlockInputSchema:()=>ux,CompositionBlockStateSchema:()=>jy,CompositionCodeSourceSchema:()=>Nv,CompositionCommandTargetSchema:()=>Iv,CompositionCustomizationReadSchema:()=>yx,CompositionEventPlanSchema:()=>py,CompositionExistingTargetSchema:()=>Gv,CompositionExpressionSourceSchema:()=>Mv,CompositionFeatureModeSchema:()=>Ty,CompositionFeaturePlanSchema:()=>Ey,CompositionFeatureSchema:()=>Hv,CompositionFieldItemSchema:()=>Sy,CompositionFieldKindSchema:()=>yy,CompositionFieldPlanSchema:()=>Cy,CompositionFieldReadSchema:()=>Ov,CompositionFieldRoleSchema:()=>xy,CompositionFieldSourceSchema:()=>Pv,CompositionFieldStateKindSchema:()=>ky,CompositionFieldStateSchema:()=>Ay,CompositionFieldsFeatureSchema:()=>Bv,CompositionForwardCommandSchema:()=>Fv,CompositionFromSourceSchema:()=>kv,CompositionGetReadSchema:()=>vx,CompositionGraphError:()=>ub,CompositionItemEntrySchema:()=>zv,CompositionListReadSchema:()=>_x,CompositionLiteralBindingSchema:()=>Av,CompositionNewTargetSchema:()=>Wv,CompositionPassthroughFeatureSchema:()=>Vv,CompositionProblemCodeSchema:()=>_y,CompositionProblemSchema:()=>vy,CompositionRunStatusSchema:()=>Oy,CompositionSchema:()=>qv,CompositionSourceRefSchema:()=>Dv,CompositionStateReadSchema:()=>mx,CompositionTargetSchema:()=>Kv,CompositionUnavailableModeSchema:()=>by,CompositionValidationSchema:()=>Dy,CompositionViewSchema:()=>hx,ConfigEntrySchema:()=>Ow,ConfigSectionWithValuesSchema:()=>Nh,ConfigTabDeclarationSchema:()=>Mh,ConnectionTestDescriptorSchema:()=>GH,ConnectionTestInputSchema:()=>WH,ConnectionTestOutcomeSchema:()=>UH,ConnectivityStatusSchema:()=>qH,ConsumableItemSchema:()=>ZH,ConsumableRemainingSchema:()=>XH,ConsumableRemainingUnitSchema:()=>YH,ConsumablesStatusSchema:()=>QH,ContactStatusSchema:()=>eU,ControlKindSchema:()=>nU,ControlStatusSchema:()=>rU,ConvertArtifactSchema:()=>gf,ConvertResultSchema:()=>_f,ConvertTargetSchema:()=>mf,CoreBlockCompileInputSchema:()=>xx,CoreBlockCompileResultSchema:()=>bx,CoreBlockFilesSchema:()=>nx,CoreBlockInputFieldsSchema:()=>ix,CoreBlockInputSchema:()=>ax,CoreBlockPlacementSchema:()=>$b,CoreBlockSchema:()=>dx,CoreBlockSourceSchema:()=>lx,CoreBlockStatusSchema:()=>ex,CoverStateSchema:()=>oU,CoverStatusSchema:()=>sU,CreateIntegrationInputSchema:()=>kW,CreateScopedTokenInputSchema:()=>oZ,CreateScopedTokenResultSchema:()=>sZ,CreateUserInputSchema:()=>nZ,CustomActionInputSchema:()=>UV,CustomModelDescriptorSchema:()=>Dx,DATABASE_SNAPSHOT_PARTIAL_SUFFIX:()=>Gg,DATABASE_SNAPSHOT_SUFFIX:()=>Wg,DATABASE_SNAPSHOT_TIMEOUT_MS:()=>Kg,DATAPLANE_SECRET_HEADER:()=>hi,DATA_STORE_DATABASES:()=>Lg,DAYS_PER_WEEK:()=>7,DAY_NAMES:()=>eY,DECLARED_DEVICE_SWEEP_LIMIT:()=>32,DECLARED_INTEGRATION_FIXED_KEY:()=>I$,DEFAULT_ADDON_PLACEMENT:()=>si,DEFAULT_AUDIO_ANALYZER_CONFIG:()=>yg,DEFAULT_CAMERA_FPS:()=>10,DEFAULT_CAMERA_SENSOR_MODE:()=>pM,DEFAULT_CATALOG_LANG:()=>`en`,DEFAULT_CLUSTER_STEP_MODELS:()=>kM,DEFAULT_CLUSTER_STEP_SETTINGS:()=>WM,DEFAULT_CORE_BLOCK_ENTRY:()=>tx,DEFAULT_DECODER_HWACCEL_CONFIG:()=>WS,DEFAULT_DETAIL_CROP_CONVENTION:()=>S7,DEFAULT_EVENTS_BAND_BUFFER_SEC:()=>Ac,DEFAULT_EVENT_COLOR:()=>ok,DEFAULT_FEATURES:()=>zs,DEFAULT_FIRST_SIGHTING_FRESHNESS_MS:()=>Rp,DEFAULT_HEADROOM:()=>S5,DEFAULT_MIN_LANDMARK_FACE_SIZE_PX:()=>24,DEFAULT_MIN_SESSIONS_PER_DEVICE:()=>2,DEFAULT_NATIVE_LEASE_SETTINGS:()=>K7,DEFAULT_OVERLAY_LAYERS:()=>Zu,DEFAULT_POOL_MEMORY_POLICY:()=>N9,DEFAULT_RECORDING_PROFILES:()=>Fc,DEFAULT_RETENTION:()=>aee,DEFAULT_RUNTIME_STATE_DURABILITY:()=>lh,DEFAULT_SESSION_PLACEMENT_POLICY:()=>sI,DEFAULT_SHARE_SOURCE:()=>CI,DEFAULT_TIMELAPSE_PREVIEW_TEXT:()=>w8,DEFAULT_TOKEN_EXPIRY:()=>`30d`,DEFINITIVE_DEVICE_REFUSALS:()=>tp,DERIVED_CAMERA_SILENCED_CAP_NAMES:()=>Ii,DETAIL_CROP_PADDING_FIELD:()=>D7,DETAIL_CROP_PADDING_KEY:()=>y7,DETAIL_CROP_SECTION_ID:()=>v7,DETAIL_CROP_SQUARE_KEY:()=>b7,DETECTION_MACRO_CLASSES:()=>ZO,DETECTION_PIPELINE_CAP_NAME:()=>Mi,DETECTOR_ACCURACY:()=>y5,DETECTOR_PERF:()=>v5,DEVICE_BACKEND_TO_FORMAT:()=>V9,DEVICE_CAP_NAMES:()=>e1,DEVICE_CERT_RENEW_WINDOW_DAYS:()=>30,DEVICE_CERT_SIGNATURE:()=>Vf,DEVICE_CERT_VALIDITY_DAYS:()=>365,DEVICE_CHILDREN_BATCH_MAX:()=>256,DEVICE_DEFINITIVE_REFUSALS_BEFORE_DELETE:()=>3,DEVICE_DO_ACTIONS:()=>n1,DEVICE_ENROLLMENT_TTL_MS:()=>Wf,DEVICE_NONCE_TTL_MS:()=>Gf,DEVICE_PROFILES:()=>b1,DEVICE_RAMP:()=>Q5,DEVICE_REFRESH_REFUSAL_PREFIX:()=>ip,DEVICE_RESTORE_RETRY_CONCURRENCY:()=>4,DEVICE_RESTORE_RETRY_DELAYS_MS:()=>y$,DEVICE_SAN_CREDENTIAL_PREFIX:()=>Kf,DEVICE_SAN_USER_PREFIX:()=>qf,DEVICE_SCOPED_CAPS:()=>g0,DEVICE_SETTINGS_CONTRIBUTION_METHODS:()=>gh,DEVICE_SIGNATURE_MESSAGE_VERSION:()=>Hf,DEVICE_STATE_READERS:()=>a$,DEVICE_STATUS_METHOD:()=>_h,DEVICE_TOMBSTONE_RETENTION_MS:()=>Hw,DEVICE_TYPE_CONTROL_KIND:()=>H$,DEVICE_TYPE_DO_CAPS:()=>s1,DEVICE_TYPE_INFO:()=>Fee,DOORBELL_RISE_DEBOUNCE_MS:()=>WQ,DataStoreDatabaseSchema:()=>B,DataStoreEngineInfoSchema:()=>Mx,DatabaseSnapshotRequestSchema:()=>Zg,DatabaseSnapshotResultSchema:()=>Yg,DatabaseSnapshotTableSchema:()=>Jg,DatabaseSnapshotTargetsSchema:()=>qg,DatabaseSnapshotWrittenSchema:()=>Xg,DayNightModeSchema:()=>lU,DayNightOptionsSchema:()=>fU,DayNightSettingsPatchSchema:()=>pU,DayNightStatusSchema:()=>dU,DeclarationRefusedError:()=>Oa,DeclareCollectionInputSchema:()=>Hg,DeclareKindResultSchema:()=>Gx,DeclaredDevices:()=>R$,DecodedAudioChunkSchema:()=>cc,DeleteIntegrationResultSchema:()=>jW,DetailCropConventionSchema:()=>x7,DetectionCatalogClassMapSchema:()=>vc,DetectionSourceSchema:()=>xN,DetectionSourcesSchema:()=>FL,DetectorStoreClearSchema:()=>$F,DeviceAdminLinkSchema:()=>JS,DeviceCaStatusSchema:()=>TS,DeviceCertificateLoginMethodSchema:()=>xp,DeviceCertificateSettingsSchema:()=>ES,DeviceChallengeResultSchema:()=>fp,DeviceChallengeSchema:()=>dp,DeviceCodeSeveritySchema:()=>RW,DeviceConfig:()=>m$,DeviceCredentialSchema:()=>yp,DeviceCredentialStatusSchema:()=>vp,DeviceDataEntrySchema:()=>UT,DeviceDiscoveryStatusSchema:()=>dC,DeviceEnrollProofSchema:()=>up,DeviceExportExposeInputSchema:()=>MC,DeviceExportStatusSchema:()=>kC,DeviceExportUnexposeInputSchema:()=>NC,DeviceFeature:()=>eg,DeviceHistoryKindSchema:()=>fS,DeviceHistoryRefusalReasonSchema:()=>mS,DeviceHistoryResolutionSchema:()=>pS,DeviceHistoryStatusSchema:()=>CS,DeviceHistorySubjectSchema:()=>dS,DeviceInfoSchema:()=>Dw,DeviceModelChoiceSchema:()=>qF,DeviceNetworkStatsSchema:()=>aK,DevicePlatformSchema:()=>Zf,DeviceProofInputSchema:()=>pp,DeviceRecommendationSchema:()=>JF,DeviceRefusalReasonSchema:()=>ep,DeviceRefusalSchema:()=>rp,DeviceRemovedInputSchema:()=>VT,DeviceRemovedResultSchema:()=>HT,DeviceRestoreRetryScheduler:()=>S$,DeviceRole:()=>z,DeviceRuntimeState:()=>h$,DeviceSelectorSchema:()=>Jj,DeviceSignaturePurposeSchema:()=>Uf,DeviceStatusSchema:()=>yU,DeviceTombstoneSchema:()=>Vw,DeviceType:()=>R,DiagnosticIdSchema:()=>AX,DiagnosticWindowPatchSchema:()=>LX,DiagnosticWindowSchema:()=>IX,DiscoveredChildDeviceSchema:()=>uC,DiscoveredChildStatusSchema:()=>lC,DiscoveredDeviceSchema:()=>_w,DiscoveredTargetSchema:()=>UO,DishwasherAccessSchema:()=>DU,DishwasherAvailabilitySchema:()=>CU,DishwasherConsumableLevelSchema:()=>wU,DishwasherOperationStateSchema:()=>SU,DishwasherOptionDescriptorSchema:()=>OU,DishwasherOptionsSchema:()=>AU,DishwasherProgramSchema:()=>kU,DishwasherStateSchema:()=>xU,DishwasherStatusSchema:()=>TU,DishwasherValueSchema:()=>EU,DiskReconcileJobSchema:()=>wR,DisposerChain:()=>Jn,DoorbellPressEventSchema:()=>NU,DoorbellStatusSchema:()=>MU,EMBEDDING_MODEL_FAILED:()=>OT,EMBEDDING_REQUIREMENTS_FAILED:()=>AT,EMBEDDING_REQUIREMENTS_UNAVAILABLE:()=>kT,EVENTFUL_CAP_NAMES:()=>VR,EVENT_DENSITY_BATCH_MAX:()=>200,EVENT_KIND_BY_CAP:()=>BR,EVENT_KIND_LABELS:()=>q6,EVENT_KIND_LABEL_KEYS:()=>K6,EVENT_OWNER_TYPES:()=>je,EVENT_PAD_MS:()=>yc,EVENT_TAXONOMY:()=>dk,EXPORT_DENSE_MAX_RANGES:()=>200,EXPRESSION_BUILTINS:()=>$p,EXPRESSION_BUILTIN_NAMES:()=>em,EXPRESSION_COMPILE_CACHE_CAPACITY:()=>256,EXPRESSION_IDENTIFIER_RE:()=>nm,EXPRESSION_INJECTED_NOW:()=>`now`,EXTENSION_HOST_DEVICE_TYPES:()=>tT,EXTENSION_SLOTS:()=>$w,EXTENSION_SLOT_IDS:()=>Zw,EXTENSION_SLOT_LISTING_METHOD:()=>nT,EXTENSION_SLOT_REF_SEPARATOR:()=>`:`,EffectiveDeviceShareSchema:()=>EI,EffectiveNodeShareSchema:()=>DI,EffectiveSharesSchema:()=>OI,EffectiveTuningSchema:()=>fF,EgressEncodeSchema:()=>ev,EgressRateControlSchema:()=>tv,EgressTranscodeRequestSchema:()=>nv,EgressTranscodeSchema:()=>rv,ElementConfigStore:()=>Uee,EmbeddingFailedModelSchema:()=>TT,EmbeddingFailedRequirementSchema:()=>ET,EmbeddingInfoSchema:()=>DT,EmbeddingRefusalCodeSchema:()=>jT,EmbeddingResultSchema:()=>CT,EmbeddingTowerSchema:()=>wT,EncodeProfileSchema:()=>Zn,EnrichedWidgetMetadataSchema:()=>Uh,EnrollSelfInputSchema:()=>lp,EntryDescriptorSchema:()=>no,EntryKindInfoSchema:()=>eS,EntryViewSchema:()=>tS,EnumSensorDateTimeFormatSchema:()=>FU,EnumSensorStatusSchema:()=>IU,ErrorCodeSchema:()=>a8,ErrorI18nPayloadSchema:()=>o8,EventCategory:()=>w,EventDensityBucketSchema:()=>PP,EventDensityForDeviceSchema:()=>FP,EventEmitterStatusSchema:()=>zU,EventFireSchema:()=>RU,EventKindCategorySchema:()=>ZM,EventKindDescriptorSchema:()=>$M,EventKindIconSchema:()=>XM,EventKindSchema:()=>JM,EventKindsForDeviceSchema:()=>eN,EventMediaArtifactSchema:()=>R_,EventMediaCoverageSchema:()=>z_,EventMediaKindSchema:()=>L_,EventMediaProductionSchema:()=>B_,EventOwnerTypeSchema:()=>Me,EventSourceType:()=>d0,ExportBytesSchema:()=>PJ,ExportClipSubjectSchema:()=>EJ,ExportDenseRangeSchema:()=>bJ,ExportDenseSchema:()=>xJ,ExportDownloadSchema:()=>MJ,ExportFootageSubjectSchema:()=>TJ,ExportOptionsSchema:()=>CJ,ExportRecordSchema:()=>OJ,ExportSetupFieldSchema:()=>DC,ExportSetupSchema:()=>OC,ExportSpeedSchema:()=>yJ,ExportStateSchema:()=>wJ,ExportSubjectSchema:()=>DJ,ExportTimelapseSchema:()=>SJ,ExposedDeviceSchema:()=>jC,ExposureModeSchema:()=>_W,ExpressionBindingSourceSchema:()=>Vm,ExpressionEvalError:()=>M,ExpressionFieldBindingSchema:()=>Rm,ExpressionGlobalBindingSchema:()=>Bm,ExpressionLiteralBindingSchema:()=>zm,ExpressionParseError:()=>j,ExpressionSourceSchema:()=>Hm,ExtensionCandidateSchema:()=>fT,ExtensionCandidatesSchema:()=>pT,ExtensionSetResultSchema:()=>mT,ExtensionSetSlotInputSchema:()=>gT,ExtensionSlotActivationSchema:()=>sT,ExtensionSlotIdSchema:()=>Qw,ExtensionSlotRefInputSchema:()=>hT,ExtensionSlotRowSchema:()=>uT,ExtensionSlotSourceSchema:()=>oT,ExtensionSlotStateSchema:()=>cT,ExtensionSlotUnreachableSchema:()=>lT,ExtensionSlotValueSchema:()=>eT,ExtensionSourceAvailabilitySchema:()=>rT,ExtensionSourceHealthSchema:()=>aT,ExtensionSourceSchema:()=>iT,ExternalIdentityKeySchema:()=>fZ,ExternalIdentitySchema:()=>dZ,FACE_RESCORE_INTERVAL_FIELD:()=>P7,FACE_RESCORE_INTERVAL_KEY:()=>N7,FACE_RESCORE_INTERVAL_MIN_RUNNING:()=>10,FACE_RESCORE_SECTION_ID:()=>M7,FEEDER_EXAMPLE_ADDON_ID:()=>VQ,FEEDER_EXAMPLE_HA_DEVICE_ID:()=>BQ,FFMPEG_PATH_ENV:()=>ti,FIRST_LEVEL_MACRO_CLASSES:()=>gc,FRIGATE_PLUS_CLASS_FLOORS:()=>r$,FRIGATE_PLUS_TO_MACRO:()=>QQ,FRIGATE_PLUS_UNMAPPED_LABELS:()=>$Q,FRIGATE_STOCK_CLASS_FLOORS:()=>n$,FULL_IMAGE_BBOX:()=>E7,FailureContributionSchema:()=>KT,FailureCounters:()=>Cu,FailureReasonCountSchema:()=>GT,FanControlStatusSchema:()=>$U,FanDirectionSchema:()=>QU,FeatureManifestSchema:()=>hX,FeatureProbeStatusSchema:()=>tW,FieldClaimModeSchema:()=>vT,FieldClaimSchema:()=>bT,FilterRequiredError:()=>ba,FloodStatusSchema:()=>rW,Fmp4BoxSplitter:()=>Fr,ForeignSecretMarkerError:()=>Ta,FrameHandleSchema:()=>oc,FrameInputSchema:()=>ig,FrameLazyCountersSchema:()=>UL,FrameLazyMetricsSchema:()=>WL,G711_SCALE_CORRECTION_DB:()=>V0,GasStatusSchema:()=>aW,GetLoggingSettingsInputSchema:()=>UX,GetStreamWithCodecInputSchema:()=>Q_,GlobalMetricsSchema:()=>iR,GridLayoutPatchSchema:()=>AH,GridLayoutViewSchema:()=>kH,HAP_AUDIO_BASE:()=>jr,HAP_AUDIO_BITRATE_KBPS:()=>24,HAP_AUDIO_VBV_KBITS:()=>96,HAP_KEYFRAME_INTERVAL_SEC:()=>4,HF_BASE_URL:()=>l$,HF_REPO:()=>c$,HISTORY_BUCKET_MS:()=>O0,HISTORY_CATALOG:()=>P0,HISTORY_DEFAULT_MIN_INTERVAL_MS:()=>dh,HISTORY_NONE_CAPS:()=>F0,HISTORY_UNIT_LABELS:()=>uh,HOURS_PER_DAY:()=>24,HUB_ADDRESS_ROLES:()=>oE,HUB_MDNS_QUERY_NAME:()=>IE,HUB_MDNS_ROLE:()=>`hub`,HUB_MDNS_SERVICE_TYPE:()=>FE,HUB_MDNS_TXT_KEYS:()=>LE,HUB_VIEWER_MOUNT:()=>QT,HWACCEL_OPTIONS:()=>mee,HardwareClassIdSchema:()=>HF,HealthStatusSchema:()=>_X,HeatingValveStatusSchema:()=>sW,HfModelResolutionSchema:()=>xD,HistoryPointSchema:()=>PZ,HistoryResolutionEnum:()=>MZ,HttpsLeafInfoSchema:()=>kS,HubAddressRoleSchema:()=>$W,HumidifierStatusSchema:()=>lW,HumiditySensorStatusSchema:()=>dW,HvacModeSchema:()=>PH,ICON_CATALOG_SOURCE:()=>FC,ICON_CATEGORIES:()=>tw,ICON_ENTRIES:()=>QC,ICON_KEYS:()=>LC,ICON_VIEWER_MODULES:()=>zC,INFERENCE_DEVICE_EXCLUSION_REASONS:()=>ER,INVERTIBLE_CAPS:()=>qQ,IconKeySchema:()=>JC,ImageContractSchema:()=>KR,ImageContractStateSchema:()=>GR,ImageRotateSchema:()=>hW,ImageSettingsOptionsSchema:()=>xW,ImageSettingsPatchSchema:()=>SW,ImageSettingsStatusSchema:()=>bW,ImageStatusSchema:()=>pW,ImportModelBundleInputSchema:()=>kx,ImportModelBundleResultSchema:()=>Ax,InferenceDeviceExclusionReasonSchema:()=>DR,IngestOwnerSchema:()=>oR,InstalledPackageSchema:()=>CV,IntegrationLiteSchema:()=>TW,IntegrationWithStateSchema:()=>wW,IntercomAbilitySchema:()=>NW,IntercomStatusSchema:()=>PW,InvalidRecordError:()=>Da,KEYCHAIN_MAX_REFS_PER_CALL:()=>512,KEYCHAIN_RESET_CONFIRMATION:()=>VS,KEYCHAIN_RESET_TRIGGER_ACTOR:()=>PS,KNOWN_CAP_NAMES:()=>$$,KeptReasonSchema:()=>GF,KeyEventSchema:()=>jP,KeychainAdminSecretSchema:()=>RS,KeychainAuditActionSchema:()=>zS,KeychainAuditEntrySchema:()=>BS,KeychainKeySourceKindSchema:()=>MS,KeychainKeySourceSchema:()=>NS,KeychainResetRecordSchema:()=>FS,KeychainResolveEntrySchema:()=>oS,KeychainResolveResultSchema:()=>sS,KeychainSecretMetaSchema:()=>cS,KeychainSecretUsageSchema:()=>LS,KeychainStateSchema:()=>aS,KeychainStatusSchema:()=>IS,KeychainUnavailableReasonSchema:()=>iS,KeychainWriteRefusedError:()=>Vt,LABEL_SUPPLY_MACRO:()=>Dd,LABEL_SUPPLY_STEP_IDS:()=>bd,LABEL_SUPPLY_VOCABULARIES:()=>Ed,LEGACY_READ_ONLY_CONFIG_KEY:()=>Ll,LINKED_DEVICES_SLOT:()=>Mw,LINKED_LABEL_STEP_PREFIX:()=>Nd,LOAD_CONTRIBUTION_ATTRIBUTIONS:()=>DD,LOAD_CONTRIBUTION_ROLES:()=>ED,LOCATION_DESCRIPTION_MAX:()=>400,LOCATION_ICON_FALLBACK:()=>uw,LOG_CHANNEL_TICK_MS:()=>vu,LOG_LEVEL_RANK:()=>Bs,LTS_SCOPE_CLASS_SEPARATOR:()=>`|`,LabelAttributionSchema:()=>mN,LabelDefinitionSchema:()=>mc,LabelTierSchema:()=>pN,LatencySourceSchema:()=>KF,LawnMowerActivitySchema:()=>LW,LawnMowerControlStatusSchema:()=>zW,LedgerWalkDeviceReportSchema:()=>Cl,LedgerWalkInputSchema:()=>yl,LedgerWalkRefusalSchema:()=>bl,LedgerWalkReportSchema:()=>wl,LedgerWalkSkipCountsSchema:()=>Sl,LedgerWalkSkipReasonSchema:()=>xl,LegacyStorageLocationDefaultSchema:()=>Xl,LinkedDeviceSchema:()=>Aw,LinkedDevicesModeSchema:()=>kw,LinkedDevicesSlotValueSchema:()=>jw,ListNodeBenchmarkResultsInputSchema:()=>eL,ListTrackRelationsInputSchema:()=>Ts,ListTrackRelationsResultSchema:()=>Es,LiveViewerCountSchema:()=>J_,LlmDefaultSchema:()=>vD,LlmDefaultSelectorSchema:()=>_D,LlmDownloadProgressSchema:()=>rD,LlmErrorCodeSchema:()=>GE,LlmGenerateBaseInputSchema:()=>$E,LlmGenerateErrSchema:()=>JE,LlmGenerateOkSchema:()=>KE,LlmGenerateResultSchema:()=>YE,LlmImageSchema:()=>XE,LlmNodeModelSchema:()=>aD,LlmProfileKindDescriptorSchema:()=>gD,LlmProfileKindSchema:()=>pD,LlmProfileSchema:()=>mD,LlmRefusalSourceSchema:()=>qE,LlmRetryPolicySchema:()=>ZE,LlmRuntimeAppleCompleteInputSchema:()=>uD,LlmRuntimeCancelInputSchema:()=>dD,LlmRuntimeCompleteInputSchema:()=>sD,LlmRuntimeDiskUsageSchema:()=>oD,LlmRuntimeNodeSchema:()=>SD,LlmRuntimeStatusSchema:()=>iD,LlmTimeoutDefaults:()=>QE,LlmUsageRollupSchema:()=>yD,LlmUsageSchema:()=>WE,LoadBalancingSharesInputSchema:()=>uI,LoadContributionSchema:()=>OD,LocateSegmentResultSchema:()=>mJ,LocationDescriptionAssignmentSchema:()=>pw,LocationIconAssignmentSchema:()=>dw,LocationStatSchema:()=>s_,LockControlStatusSchema:()=>cG,LockStateSchema:()=>sG,LogChannelApplyResultSchema:()=>AD,LogChannelDescriptorSchema:()=>uu,LogChannelGate:()=>fu,LogChannelLevelSchema:()=>lu,LogChannelRegistry:()=>pu,LogChannelWindowPatchSchema:()=>zX,LogChannelWindowSchema:()=>du,LogChannelWindowStateSchema:()=>RX,LogEntrySchema:()=>ND,LogLevelSchema:()=>MD,LogStreamEntrySchema:()=>VV,LoggingEffectiveSchema:()=>PX,LoggingExplicitSchema:()=>FX,LoggingLevelLayerSchema:()=>NX,LoggingLevelSourceSchema:()=>MX,LoggingScopeKindSchema:()=>jX,LoggingSettingsPatchSchema:()=>BX,LoggingSettingsStateSchema:()=>GX,LoginMethodContributionSchema:()=>zD,LoginStageEnum:()=>FD,LtsBucketSchema:()=>iF,MACRO_LABELS:()=>XO,MASK_EMITTING_POSTPROCESSORS:()=>Rd,MASK_SUPPLY_STEP_IDS:()=>Sd,MAX_ARCHIVED_DEBUG_NOTES:()=>us,MAX_BIRTH_DECISION_RECORDS:()=>as,MAX_BIRTH_LATENCY_PROXY_MS:()=>os,MAX_CAMERA_SENSORS:()=>8,MAX_CLIP_EVENT_IDS:()=>24,MAX_CLIP_LABELS:()=>3,MAX_COMPOSITION_CODE_LENGTH:()=>Ev,MAX_COMPOSITION_FEATURES:()=>16,MAX_COMPOSITION_FIELDS_PER_FEATURE:()=>32,MAX_COMPOSITION_ITEMS:()=>16,MAX_CONDITION_DEPTH:()=>3,MAX_CONDITION_LEAVES:()=>32,MAX_EXPRESSION_AST_NODES:()=>256,MAX_EXPRESSION_BINDINGS:()=>32,MAX_EXPRESSION_CALL_ARGS:()=>16,MAX_EXPRESSION_EVAL_STEPS:()=>uee,MAX_EXPRESSION_SOURCE_LENGTH:()=>tm,MAX_KEYS:()=>bu,MAX_REASONS_PER_KEY:()=>16,MAX_REQUEUED_BUCKETS_PER_SERIES:()=>12,MAX_SENSOR_TRIGGER_DEVICES:()=>16,MAX_TRACK_DEBUG_NOTE_LEN:()=>500,MAX_TRACK_PURITIES:()=>ms,MAX_TRACK_RELATIONS:()=>ps,MEDIA_OWNER_TYPES:()=>Te,MEDIA_PRESENCE_OWNER_KINDS:()=>Ne,METHOD_ACCESS_MAP:()=>Q$,METHOD_DEVICE_SELECTORS:()=>v0,MINUTES_PER_DAY:()=>$J,MIN_SCRUBBED_LENGTH:()=>8,MIN_SESSIONS_PER_DEVICE_RANGE:()=>VF,MODEL_FORMATS:()=>Qd,MODEL_HOSTING:()=>uf,MODEL_PROVIDER_IDS:()=>sf,MOTION_CLOSE_AFTER_MS:()=>yG,MOTION_SOURCE_LABELS:()=>ML,MOTION_TRIGGER_FEATURE:()=>G$,ManagedModelCatalogEntrySchema:()=>bD,ManagedModelExtraFileSchema:()=>eD,ManagedModelRefSchema:()=>tD,ManagedRuntimeConfigSchema:()=>nD,MaskGridDimsSchema:()=>jk,MaskGridShapeSchema:()=>Ek,MaskLineShapeSchema:()=>Dk,MaskPointSchema:()=>Ck,MaskPolygonShapeSchema:()=>Tk,MaskPolygonVerticesSchema:()=>Ak,MaskRectShapeSchema:()=>wk,MaskShapeKindSchema:()=>kk,MaskShapeSchema:()=>Ok,MediaFileInfoSchema:()=>AN,MediaFileKindEnum:()=>DN,MediaFileRefSchema:()=>ON,MediaFileSchema:()=>kN,MediaPlayerRepeatSchema:()=>dG,MediaPlayerStateSchema:()=>uG,MediaPlayerStatusSchema:()=>pG,MediaPresenceOwnerKindSchema:()=>Pe,MediaRelocateModeSchema:()=>Yc,MeshLeafInfoSchema:()=>OS,MeshPeerSchema:()=>gG,MeshStatusSchema:()=>_G,MethodAccessSchema:()=>Wj,MigrateDeviceResultSchema:()=>Yw,MigrateSwitchOutcomeSchema:()=>qw,MigrateSwitchReportSchema:()=>Jw,ModelBundleFileSchema:()=>Ox,ModelCatalogEntrySchema:()=>pf,ModelConvertInputSchema:()=>sO,ModelConvertMetadataSchema:()=>hf,ModelDistributeInputSchema:()=>lO,ModelDistributeResultSchema:()=>uO,ModelExtraFileSchema:()=>rf,ModelFormatEntrySchema:()=>$d,ModelFormatPrecisionSchema:()=>tf,ModelFormatsSchema:()=>af,ModelLicenseSchema:()=>df,ModelOnDiskStateSchema:()=>ef,ModelPinChangeSchema:()=>XF,ModelProviderIdSchema:()=>cf,ModelSubstitutionSchema:()=>SF,ModelVariantGroupSchema:()=>of,MotionAnalysisResultSchema:()=>pO,MotionEventSchema:()=>bN,MotionOnMotionChangedDataSchema:()=>xG,MotionRegionSchema:()=>fO,MotionSourceEnum:()=>kL,MotionSourcesSchema:()=>jL,MotionStatusSchema:()=>bG,MotionTriggerRuntimeStateSchema:()=>wG,MotionTriggerStatusSchema:()=>CG,MotionTriggeredBySchema:()=>oM,MotionZoneOptionsSchema:()=>OG,MotionZonePatchSchema:()=>kG,MotionZoneRegionSchema:()=>EG,MotionZoneStatusSchema:()=>DG,MqttBrokerInfoSchema:()=>_O,MqttBrokerStatusSchema:()=>TO,MutationFilterSchema:()=>Mg,NATIVE_LEASE_ACTIVITY_FIELD:()=>Y7,NATIVE_LEASE_ACTIVITY_KEY:()=>B7,NATIVE_LEASE_ADMISSION_FIELD:()=>Q7,NATIVE_LEASE_ADMISSION_KEY:()=>V7,NATIVE_LEASE_BUDGET_FIELD:()=>J7,NATIVE_LEASE_BUDGET_KEY:()=>z7,NATIVE_LEASE_HOLD_FIELD:()=>q7,NATIVE_LEASE_HOLD_KEY:()=>R7,NATIVE_LEASE_SCENE_BUDGET_FIELD:()=>Z7,NATIVE_LEASE_SCENE_BUDGET_KEY:()=>U7,NATIVE_LEASE_SECTION_ID:()=>L7,NATIVE_LEASE_TILE_BUDGET_FIELD:()=>X7,NATIVE_LEASE_TILE_BUDGET_KEY:()=>H7,NAVIGATION_ACTION_CATALOG:()=>UG,NAVIGATION_LIGHT_LEVEL_MAX:()=>100,NAVIGATION_LIGHT_LEVEL_MIN:()=>40,NC_ALARM_CONTROLLABLE_CAPS:()=>H4,NC_ALARM_DEFAULT_PROFILE_ID:()=>C3,NC_ALARM_DEFAULT_PROFILE_NAME:()=>w3,NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC:()=>30,NC_ALARM_DELAY_FIELDS:()=>e3,NC_ALARM_DELAY_MAX_SEC:()=>600,NC_ALARM_NONBLOCKING_MAX:()=>200,NC_ALARM_NOTIFY_FIELDS:()=>t3,NC_ALARM_OPENING_EVENT_KINDS:()=>V4,NC_ALARM_SENSORS_MAX:()=>500,NC_ALARM_SYSTEM_DEFAULT_DELAYS:()=>T3,NC_ALARM_SYSTEM_EVENT_KINDS:()=>Ik,NC_ALARM_TRIGGERED_MAX_SEC:()=>rj,NC_AUDIO_CONFIRM_HITS_DEFAULT:()=>2,NC_AUDIO_CONFIRM_HITS_MAX:()=>20,NC_AUDIO_CONFIRM_HITS_MIN:()=>1,NC_AUDIO_CONFIRM_WINDOW_MAX_SEC:()=>60,NC_AUDIO_CONFIRM_WINDOW_MIN_SEC:()=>1,NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT:()=>5,NC_AUDIO_DBFS_FLOOR:()=>-96,NC_AUDIO_DB_MAX:()=>0,NC_AUDIO_DB_MIN:()=>q0,NC_AUDIO_DB_OFFERED:()=>J0,NC_AUDIO_DB_STEP:()=>3,NC_AUDIO_DEFAULTS:()=>Y0,NC_AUDIO_HIT_PERCENT_MAX:()=>100,NC_AUDIO_HIT_PERCENT_MIN:()=>1,NC_AUDIO_SAMPLING_MAX_SEC:()=>300,NC_AUDIO_SAMPLING_MIN_SEC:()=>1,NC_AUDIO_SEED:()=>D4,NC_AUTHORABLE_SYSTEM_EVENT_KINDS:()=>Fk,NC_BASE_CONDITION_KEYS:()=>g2,NC_BATTERY_CONSUMABLE_SYSTEM_EVENT_KINDS:()=>Lk,NC_CAMERA_SCOPE_CAP_NAME:()=>d4,NC_CLIP_POST_ROLL_DEFAULT_SEC:()=>6,NC_CLIP_PRE_ROLL_DEFAULT_SEC:()=>4,NC_CLIP_RETENTION_MAX_SEC:()=>60,NC_CONDITION_CATALOG:()=>GA,NC_CONFIRM_DEFAULT_MAX_IMAGE_PX:()=>448,NC_CONFIRM_DEFAULT_TIMEOUT_MS:()=>yA,NC_CONFIRM_MAX_TIMEOUT_MS:()=>vA,NC_CONFIRM_MIN_TIMEOUT_MS:()=>_A,NC_CONSUMABLE_LOW_PERCENT_DEFAULT:()=>15,NC_CONSUMABLE_LOW_PERCENT_MAX:()=>95,NC_CONSUMABLE_SYSTEM_EVENT_KINDS:()=>Rk,NC_DEFAULT_SNOOZE_MINUTES:()=>gee,NC_GROUPING_DEFAULT_SEC:()=>20,NC_GROUPING_MAX_SEC:()=>60,NC_GROUPING_MIN_SEC:()=>5,NC_HISTORY_LIMIT_DEFAULT:()=>100,NC_HISTORY_LIMIT_MAX:()=>500,NC_MAX_PER_TRACK_IMMEDIATE:()=>1,NC_OCCUPANCY_DEFAULTS:()=>E4,NC_RULE_CLEARABLE_KEYS:()=>EA,NC_RULE_EDITOR_SECTION_ORDER:()=>A4,NC_RULE_KIND_SPECS:()=>a4,NC_RULE_RETIRED_CLEAR_KEYS:()=>wA,NC_RULE_SECTIONS:()=>y4,NC_SENSOR_RAISED_FIELD_BY_KIND:()=>R3,NC_SENSOR_TRANSITION_KINDS:()=>z3,NC_SENSOR_TRANSITION_NEVER_FIRES_WARNING:()=>Y4,NC_SENSOR_TRANSITION_UNSUPPORTED_REASON:()=>U3,NC_SERVER_PACKAGE_NAME:()=>I6,NC_SNOOZE_MAX_MINUTES:()=>Vk,NC_SYSTEM_DELIVERY:()=>c4,NC_SYSTEM_EVENT_CONDITION_FILTER_KEYS:()=>B2,NC_SYSTEM_EVENT_FAMILIES:()=>I2,NC_SYSTEM_EVENT_FAMILY:()=>R2,NC_SYSTEM_EVENT_FAMILY_FILTERS:()=>V2,NC_SYSTEM_EVENT_FILTER_KEYS:()=>N2,NC_SYSTEM_EVENT_KIND_GROUP_SPECS:()=>H2,NC_SYSTEM_EVENT_SUMMARY_FAMILIES:()=>S6,NC_SYSTEM_RULE_KINDS:()=>J2,NC_TANK_SYSTEM_EVENT_KINDS:()=>zk,NC_TAXONOMY:()=>yk,NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS:()=>f6,NC_TEMPLATE_VARS:()=>d6,NC_UPDATE_EVENT_PACKAGE_NAMES:()=>L6,NETWORK_LINK_TYPES:()=>ZG,NETWORK_LINK_UNKNOWN:()=>$G,NODE_BENCHMARK_DEFAULTS:()=>kI,NODE_COLOR_IDS:()=>Gu,NO_MEASURED_CAPACITY:()=>W5,NativeCropBboxSchema:()=>dL,NativeCropRefSchema:()=>sF,NativeCropResultSchema:()=>fL,NativeDetectionSchema:()=>MG,NativeLeaseAdmissionSchema:()=>W7,NativeLeaseSettingsSchema:()=>G7,NativeObjectClassEnum:()=>jG,NativeObjectDetectionOptionsSchema:()=>FG,NativeObjectDetectionRuntimeStateSchema:()=>LG,NativeObjectDetectionSettingsPatchSchema:()=>IG,NativeObjectDetectionStatusSchema:()=>NG,NativeObjectGeometryEnum:()=>PG,NavigationActionEntrySchema:()=>HG,NavigationActionIdSchema:()=>BG,NavigationEntryKindSchema:()=>VG,NavigationFeaturesSchema:()=>GG,NavigationLightModeSchema:()=>KG,NavigationModeSchema:()=>qG,NavigationMoveCommandSchema:()=>zG,NavigationPointSchema:()=>WG,NavigationRuntimeStateSchema:()=>YG,NavigationStatusSchema:()=>JG,NcActionBindingSchema:()=>nA,NcAlarmBlockingEditSchema:()=>pj,NcAlarmBlockingSchema:()=>_j,NcAlarmConfigSchema:()=>Ij,NcAlarmCreateProfileInputSchema:()=>Tj,NcAlarmModeCoverageSchema:()=>jj,NcAlarmModeDelaysEditSchema:()=>uj,NcAlarmModeDelaysSchema:()=>cj,NcAlarmModeDeviceListSchema:()=>hj,NcAlarmNonBlockingEditSchema:()=>fj,NcAlarmNonBlockingSchema:()=>gj,NcAlarmPostTriggeredActionSchema:()=>sj,NcAlarmProfileIdInputSchema:()=>Dj,NcAlarmProfileMetaSchema:()=>Cj,NcAlarmProfilesViewSchema:()=>wj,NcAlarmRenameProfileInputSchema:()=>Ej,NcAlarmSecureOnArmEditSchema:()=>mj,NcAlarmSecureOnArmOffSchema:()=>vj,NcAlarmSensorReadingSchema:()=>Lj,NcAlarmSensorStateSchema:()=>Rj,NcAlarmSensorsInputSchema:()=>zj,NcAlarmSensorsSchema:()=>Bj,NcAlarmSettingsPatchSchema:()=>Oj,NcAlarmSettingsSchema:()=>Sj,NcAlarmSkipReasonSchema:()=>kj,NcAlarmSkippedDeviceSchema:()=>Aj,NcAudioConditionSchema:()=>Yk,NcClipRetentionAskSchema:()=>Vj,NcClipRetentionPlanSchema:()=>Hj,NcConditionDescriptorSchema:()=>WA,NcConditionsSchema:()=>uA,NcConfirmExpectSchema:()=>bA,NcConfirmSchema:()=>xA,NcCrossingSchema:()=>Xk,NcDeliverySchema:()=>Mk,NcDeviceStateConditionSchema:()=>cA,NcHistoryEntrySchema:()=>YA,NcHistoryFilterSchema:()=>XA,NcHistoryRecordKindSchema:()=>qA,NcHistoryStatusSchema:()=>KA,NcHistorySubjectSchema:()=>JA,NcHookBindingsSchema:()=>rA,NcLegacyRuleActionSequenceSchema:()=>oA,NcLinkedCameraModeSchema:()=>pA,NcMediaFrameSchema:()=>fA,NcMediaPolicySchema:()=>mA,NcOccupancyConditionSchema:()=>Jk,NcPlateMatcherSchema:()=>qk,NcRuleActionSchema:()=>$k,NcRuleActionSequenceSchema:()=>sA,NcRuleActionsSchema:()=>aA,NcRuleClearableKeySchema:()=>DA,NcRuleInputSchema:()=>SA,NcRuleKindSchema:()=>FA,NcRuleLastRunSchema:()=>ZA,NcRuleLastRunsSchema:()=>QA,NcRuleNotificationButtonSchema:()=>iA,NcRulePatchSchema:()=>CA,NcRuleSchema:()=>kA,NcRuleTargetSchema:()=>dA,NcRuleUpdateInputSchema:()=>OA,NcSceneConditionSchema:()=>lA,NcScheduleSchema:()=>Uk,NcScheduleWindowSchema:()=>Hk,NcSensorTransitionSchema:()=>Zk,NcSharedSequenceInputSchema:()=>tA,NcSharedSequenceSchema:()=>eA,NcSnoozeInputSchema:()=>ej,NcSnoozeSchema:()=>tj,NcSnoozeScopeSchema:()=>$A,NcSnoozeSuppressedSchema:()=>nj,NcStateSummaryPreviewRowSchema:()=>MA,NcStateSummaryPreviewSchema:()=>NA,NcStateSummaryPreviewSectionSchema:()=>jA,NcStateSummarySectionIdSchema:()=>AA,NcStateSummarySplitSchema:()=>Gk,NcSystemEventConditionSchema:()=>Bk,NcSystemEventDeliveryModeSchema:()=>Wk,NcSystemEventDeliverySchema:()=>Kk,NcSystemEventKindSchema:()=>Nk,NcTaxonomyEntrySchema:()=>hk,NcTaxonomySchema:()=>gk,NcTemplateFamilySchema:()=>LA,NcTemplateFieldSchema:()=>RA,NcTemplatePreviewInputSchema:()=>HA,NcTemplatePreviewSchema:()=>UA,NcTemplateVarContextSchema:()=>VA,NcTemplateVarDescriptorSchema:()=>BA,NcTemplateVarGroupSchema:()=>zA,NcTemplateVarKindSchema:()=>IA,NcTestResultSchema:()=>PA,NcThrottleGranularitySchema:()=>hA,NcThrottleSchema:()=>gA,NcZoneConditionSchema:()=>Qk,NetworkAccessStatusSchema:()=>kO,NetworkAddressSchema:()=>vX,NetworkEndpointSchema:()=>DO,NetworkLinkStatusSchema:()=>QG,NetworkTunnelStartedDataSchema:()=>OO,NoCallerError:()=>Aa,NodeBenchCellSchema:()=>UI,NodeBenchClipSchema:()=>GI,NodeBenchDeviceCellSchema:()=>VI,NodeBenchFingerprintSchema:()=>WI,NodeBenchLimitSchema:()=>zI,NodeBenchPipelineCellSchema:()=>HI,NodeBenchProgressSchema:()=>RI,NodeBenchRampStepSchema:()=>BI,NodeBenchRunnerInputSchema:()=>KI,NodeBenchRunnerStateSchema:()=>qI,NodeBenchRunnerStatusSchema:()=>JI,NodeBenchmarkCandidatesSchema:()=>rL,NodeBenchmarkDevicePlanSchema:()=>jI,NodeBenchmarkEndReasonSchema:()=>XI,NodeBenchmarkManifestSchema:()=>nL,NodeBenchmarkMovingCameraSchema:()=>FI,NodeBenchmarkPhaseSchema:()=>AI,NodeBenchmarkPlanSchema:()=>MI,NodeBenchmarkPreflightSchema:()=>LI,NodeBenchmarkRefusalKindSchema:()=>NI,NodeBenchmarkRefusalSchema:()=>PI,NodeBenchmarkResultSchema:()=>$I,NodeBenchmarkResultViewSchema:()=>tL,NodeBenchmarkRunSchema:()=>ZI,NodeBenchmarkStateSchema:()=>YI,NodeBenchmarkStatusSchema:()=>QI,NodeBenchmarkStayingCameraSchema:()=>II,NodeColorIdSchema:()=>Ku,NodeDeviceChangeSchema:()=>ZF,NodeDirectoryEntrySchema:()=>mK,NodeDirectorySchema:()=>hK,NodeHttpsStateSchema:()=>AS,NodeRecommendationSchema:()=>YF,NotificationActionIconSchema:()=>FO,NotificationActionSchema:()=>IO,NotificationFormatSchema:()=>PO,NotificationSchema:()=>LO,NotifierStatusSchema:()=>_K,NumericSensorStatusSchema:()=>yK,OAUTH_LANDING_PATH:()=>k9,OAUTH_LANDING_REASONS:()=>A9,OPERATOR_WRITTEN_STALE_MS:()=>I1,OPS_LOG_DEFAULT_LIMIT:()=>200,OPS_LOG_RING_DEFAULT_MAX:()=>500,OVERFLOW_REASON:()=>xu,OVERLAY_LAYERS:()=>Xu,OWNER_ONLY_EVENT_CATEGORIES:()=>Le,OauthIntegrationDescriptorSchema:()=>eM,ObjectEventSchema:()=>TN,OccupancyBurstRefusalSchema:()=>KL,OccupancyLookAnswerSchema:()=>PR,OccupancyLookRefusalSchema:()=>MR,OccupancyLookRequestSchema:()=>NR,OidcConnectionSchema:()=>rM,OidcConnectionUpdateInputSchema:()=>iM,OnboardFieldSupportSchema:()=>JJ,OnboardRecordTrackSchema:()=>WJ,OnboardScheduleSupportSchema:()=>YJ,OnboardStorageSchema:()=>UJ,OnboardStorageVolumeSchema:()=>HJ,OpsLogDomainSchema:()=>Hs,OpsLogEntrySchema:()=>Gs,OpsLogOpSchema:()=>Us,OpsLogQueryInputSchema:()=>Ks,OpsLogReasonSchema:()=>Ws,OrchestratorMetricsSchema:()=>iL,OrphanDeviceDataSchema:()=>Uw,OsdNamedTemplateSchema:()=>jK,OsdOverlayKindEnum:()=>xK,OsdOverlayPatchSchema:()=>TK,OsdOverlaySchema:()=>CK,OsdPositionEnum:()=>SK,OsdRenderOutcomeEnum:()=>FK,OsdRenderResultSchema:()=>IK,OsdSlotBindingSchema:()=>NK,OsdSlotViewSchema:()=>PK,OsdSourceOptionSchema:()=>RK,OsdSourceSchema:()=>MK,OsdSourceValueTypeEnum:()=>LK,OsdStatusSchema:()=>wK,OsdTemplateBindingSchema:()=>AK,OsdTemplateFormatSchema:()=>OK,OsdTemplatePickSchema:()=>kK,OsdTemplateTokenKindSchema:()=>DK,PEER_BYTES_CHUNK_BYTES:()=>yi,PEER_BYTES_MAX_OUTSTANDING:()=>64,PEER_BYTES_STALL_MS:()=>vi,PEER_BYTES_TICKET_TTL_MS:()=>_i,PENDING_BLOCK_ID:()=>Cb,PET_FEEDER_MANUAL_FEED_MAX:()=>200,PET_FEEDER_MANUAL_FEED_MIN:()=>4,PIPELINE_ANALYTICS_CAP_NAME:()=>Fi,PIPELINE_FLOW_CAPABILITY_NAMES:()=>pQ,PIPELINE_OWNER_CAPABILITY_NAMES:()=>mQ,PIPELINE_RAMP:()=>$5,PRIVACY_MASK_CAP_NAME:()=>Pi,PROVIDER_KIND_CAP_NAMES:()=>x0,PROVIDER_PIN_FIELD:()=>ph,PUBLIC_ENDPOINT_HTTP_REASON:()=>SE,PYTHON_SCRIPT:()=>U9,PackageInstallationSchema:()=>FV,PackageInstallationsSchema:()=>IV,PackageUpdateSchema:()=>wV,PackageVersionInfoSchema:()=>TV,ParkRefusalSchema:()=>mL,ParkTrackFrameResultSchema:()=>hL,ParkedFrameKindSchema:()=>pL,ParkedTrackFrameSchema:()=>gL,PasskeyLoginMethodSchema:()=>RD,PasskeySummarySchema:()=>Yz,PcmSampleFormatSchema:()=>xg,PeerBytesTicketSchema:()=>bi,PerScopeBreakdownSchema:()=>DZ,PetFeederStatusSchema:()=>HK,PickStreamPreferencesSchema:()=>sv,PickStreamRequirementsSchema:()=>ov,PickedCamStreamSchema:()=>cv,PipelineAssignmentSchema:()=>nR,PipelineDefaultStepSchema:()=>mF,PipelineEngineChoiceSchema:()=>dF,PipelineModelFormatStatusSchema:()=>nf,PipelineRunResultBridge:()=>RF,PipelineStepInputSchema:()=>xF,PipelineValidationIssueSchema:()=>CF,PipelineValidationResultSchema:()=>wF,PlaceholderReasonSchema:()=>Y_,PlacementDeviceStatsSchema:()=>fI,PlacementNodeStatsSchema:()=>pI,PlacementStatsInputSchema:()=>dI,PlacementStatsSchema:()=>hI,PlaintextSecretError:()=>wa,PolygonPointSchema:()=>cL,PoolMemoryWatchdog:()=>ote,PowerMeterStatusSchema:()=>fq,PresenceStatusSchema:()=>hq,PressureSensorStatusSchema:()=>_q,PrivacyMaskOptionsSchema:()=>Sq,PrivacyMaskPatchSchema:()=>Cq,PrivacyMaskRegionSchema:()=>bq,PrivacyMaskShapeSchema:()=>yq,PrivacyMaskStatusSchema:()=>xq,ProbeTargetConfigResultSchema:()=>qO,ProfileRtspEntrySchema:()=>pc,ProfileSlotSchema:()=>$s,ProfileSlotStatusSchema:()=>Qs,ProviderJobStateSchema:()=>qZ,ProviderJobStatusSchema:()=>JZ,ProviderMotionDataSchema:()=>P8,ProviderStatusSchema:()=>gw,PtzAutotrackRuntimeStateSchema:()=>Rq,PtzAutotrackSettingsSchema:()=>Fq,PtzAutotrackStatusSchema:()=>Lq,PtzAutotrackTargetOptionSchema:()=>Iq,PtzHomePresetSchema:()=>Mq,PtzHomeReturnSchema:()=>Nq,PtzMoveCommandSchema:()=>kq,PtzOptionsSchema:()=>jq,PtzPositionSchema:()=>Oq,PtzPresetFunctionSchema:()=>Eq,PtzPresetSchema:()=>Dq,PtzStatusSchema:()=>Aq,QueryFilterSchema:()=>jg,RATE_CONTROL_RELAXED:()=>Ar,RATE_CONTROL_TIGHT:()=>kr,REACHABILITY_FAILURES_TO_OFFLINE:()=>3,REACHABILITY_POLL_INTERVAL_MS:()=>A1,REACHABILITY_PROBE_TIMEOUT_MS:()=>j1,RECALL_TIE:()=>x5,RECOGNITION_TYPES:()=>Nl,RECORDING_AUDIO_TRIGGER_OFFERED_DBFS:()=>-30,RECORDING_EXPORT_MAX_READ_BYTES:()=>NJ,RECORDING_SOURCE_CAMSTACK:()=>Vq,RECORDING_SOURCE_CAMSTACK_ADDON:()=>Hq,RECORDING_TIMELINE_BATCH_MAX:()=>200,RECORDS_ERROR_CODES:()=>ha,RECORD_BATCH_MAX:()=>ca,RECORD_BATCH_MAX_BYTES:()=>la,RECORD_CLASSES:()=>aa,RECORD_DATABASES:()=>ia,RECORD_DEFAULT_MAX_DATA_BYTES:()=>oa,RECORD_DELETE_BATCH:()=>da,RECORD_ID_MAX_LENGTH:()=>256,RECORD_MAX_DATA_BYTES:()=>sa,RECORD_MAX_INDEXES:()=>8,RECORD_MAX_INDEX_FIELDS:()=>4,RECORD_QUERY_MAX:()=>ua,RECORD_SECRET_COLLECTION_PREFIX:()=>ma,RECORD_SETTINGS_MAX_ROWS:()=>fa,RECORD_SWEEP_INTERVAL_MS:()=>pa,REDACTED_SECRET:()=>Be,REMOVAL_RECONCILE_INTERVAL_MS:()=>Q9,REMOVED_MODEL_IDS:()=>R8,REMOVE_LEAF:()=>Ka,RESERVED_BINDING_NAMES:()=>rm,RESERVED_COLLECTION_SOURCES:()=>yY,RESTORED_CAP_NAMES:()=>D0,RETRAIN_REVIEW_ADJUSTED_IOU:()=>qo,RETRAIN_REVIEW_MATCH_IOU:()=>Ko,RETRAIN_REVIEW_STATUSES:()=>Go,RETRAIN_REVISION_CONFLICT:()=>ns,REVALIDATE_AFTER_MS:()=>Qi,ROOM_EXAMPLE_MOTION_SOURCES:()=>IQ,ROOM_EXAMPLE_TEMPERATURE_SOURCES:()=>FQ,ROOM_OCCUPANCY_WINDOW_MS:()=>PQ,ROOT_BUCKET_KEY:()=>Eu,ROOT_CHILD_CONTAINMENT_MIN:()=>qd,ROOT_FACE_REFINE_INPUT_PX:()=>160,ROOT_FACE_REFINE_SCALE:()=>g7,ROOT_SUPPLIABLE_STEP_IDS:()=>Cd,RUNTIME_DEFAULTS:()=>u$,RUNTIME_STATE_POLICY:()=>C0,RUNTIME_STATE_REFRESH_MISS_COOLDOWN_MS:()=>F1,RUNTIME_TO_FORMAT:()=>H9,RawSecretMigrationInputSchema:()=>qb,RawSecretMigrationReportSchema:()=>Jb,RawStateResultSchema:()=>_U,ReadGopBytesResultSchema:()=>gJ,ReadSegmentBytesResultSchema:()=>hJ,ReadWindowBytesResultSchema:()=>_J,ReadinessRegistry:()=>Bu,ReadinessTimeoutError:()=>Fu,RebuildObjectEmbeddingsRefusalSchema:()=>YP,RecentTracksPageSchema:()=>DP,RecentTracksQueryInput:()=>EP,RecommendationReasonSchema:()=>WF,RecordBodySchema:()=>Lx,RecordFieldPathSchema:()=>$a,RecordIdSchema:()=>Ix,RecordIndexSchema:()=>eo,RecordInputSchema:()=>Rx,RecordKindDeclarationSchema:()=>ro,RecordKindNameSchema:()=>io,RecordNotFoundError:()=>Sa,RecordQueryInputSchema:()=>Hx,RecordQueryResultSchema:()=>Ux,RecordRetentionSchema:()=>to,RecordSecretRefsSchema:()=>qx,RecordSecretUnavailableError:()=>Ea,RecordTooLargeError:()=>va,RecordTriggerSchema:()=>BJ,RecordUniqueViolationError:()=>Ca,RecordViewSchema:()=>zx,RecordWhereSchema:()=>Bx,RecordWindowSchema:()=>VJ,RecordingAvailabilityForDeviceSchema:()=>eJ,RecordingAvailabilitySchema:()=>Gq,RecordingBandAudioSchema:()=>Oc,RecordingBandModeSchema:()=>Ec,RecordingBandSchema:()=>kc,RecordingBandTriggersSchema:()=>Dc,RecordingConfigSchema:()=>Nc,RecordingDaysForDeviceSchema:()=>tJ,RecordingDaysSchema:()=>Kq,RecordingDeviceUsageSchema:()=>nJ,RecordingLocationUsageSchema:()=>rJ,RecordingManifestSchema:()=>qq,RecordingObjectTriggerClassSchema:()=>Cc,RecordingOnboardOptionsSchema:()=>XJ,RecordingOnboardPatchSchema:()=>ZJ,RecordingOnboardStatusSchema:()=>GJ,RecordingPlaybackSchema:()=>Zq,RecordingRangeSchema:()=>Uq,RecordingReadSchema:()=>Wq,RecordingRebalanceInputSchema:()=>lJ,RecordingRebalanceMoveSchema:()=>aJ,RecordingRebalancePlanSchema:()=>cJ,RecordingRebalanceSkipReasonSchema:()=>oJ,RecordingRebalanceSkipSchema:()=>sJ,RecordingRetentionSchema:()=>Mc,RecordingSignalRuntimeStateSchema:()=>_Y,RecordingSignalStatusSchema:()=>gY,RecordingSourceAvailabilitySchema:()=>Jq,RecordingSourceOptionsSchema:()=>Xq,RecordingSourceSchema:()=>Yq,RecordingStatusSchema:()=>$q,RecordingStorageModeSchema:()=>Sc,RecordingStorageUsageSchema:()=>iJ,RecordingTriggersSchema:()=>Tc,RecordingWeekdaySchema:()=>bc,RecordsError:()=>D,RedirectLoginMethodSchema:()=>ID,RelocatableMediaCountInputSchema:()=>El,RelocatableMediaCountSchema:()=>Tl,RelocateFootageClassSchema:()=>Gc,RelocateFootageInputSchema:()=>Kc,RelocateJobSchema:()=>Wc,RelocateJobStateSchema:()=>Uc,RelocateMediaInputSchema:()=>Xc,RelocateResidueInputSchema:()=>_l,RelocateResidueSchema:()=>vl,RenderedAsSchema:()=>WO,RenewDeviceCertificateOutputSchema:()=>mp,RenewDeviceCertificateResultSchema:()=>hp,ReportMotionInputSchema:()=>IL,ReportedFailureContributionSchema:()=>HX,ReportedLoadContributionSchema:()=>VX,RequestCensusGroupSchema:()=>TX,RequestCensusProcedureSchema:()=>EX,RequestCensusSnapshotSchema:()=>DX,RequestCensusStatusSchema:()=>OX,RetrainAnnotationDraftSchema:()=>VN,RetrainAnnotationKindSchema:()=>MN,RetrainAnnotationSchema:()=>BN,RetrainAnnotationSourceSchema:()=>NN,RetrainArchiveResultSchema:()=>aP,RetrainArchiveTargetSchema:()=>iP,RetrainAssistProfileSchema:()=>fP,RetrainAssistResultSchema:()=>sP,RetrainAssistSubjectSchema:()=>oP,RetrainBoxReviewSchema:()=>RN,RetrainCollectionCreateResultSchema:()=>lP,RetrainCollectionRenameResultSchema:()=>uP,RetrainCollectionSchema:()=>cP,RetrainCopyRefusalSchema:()=>qN,RetrainCorpusFilterSchema:()=>ZN,RetrainCorpusKpiCameraRowSchema:()=>eP,RetrainCorpusKpiSchema:()=>tP,RetrainCorpusPageFrameSchema:()=>QN,RetrainCorpusPageSchema:()=>$N,RetrainDatasetSelectionSchema:()=>gP,RetrainDatasetStatsSchema:()=>_P,RetrainDatasetVersionSchema:()=>vP,RetrainDismissedSchema:()=>IN,RetrainExportFilterSchema:()=>nP,RetrainExportLayoutSchema:()=>rP,RetrainFrameCandidateSchema:()=>UN,RetrainFrameListSchema:()=>YN,RetrainFrameOriginSchema:()=>GN,RetrainFrameReviewSchema:()=>zN,RetrainFrameSchema:()=>KN,RetrainFrameSelectionSchema:()=>JN,RetrainFrameWorkStateSchema:()=>XN,RetrainLlmAssistResultSchema:()=>hP,RetrainLlmProposalSchema:()=>pP,RetrainLlmReviewSchema:()=>mP,RetrainMacroClassSchema:()=>jN,RetrainOriginSchema:()=>FN,RetrainPipelineBoxSchema:()=>WN,RetrainReviewStatusSchema:()=>LN,RetrainStatusSchema:()=>cN,RetrainTrackSchema:()=>HN,RetrainTrainingCorpusResolveResultSchema:()=>bP,RetrainTrainingCorpusSelectionSchema:()=>yP,RetrainTransitionResultSchema:()=>xP,RevConflictError:()=>_a,RevokeOwnDeviceCertificateResultSchema:()=>gp,RingBuffer:()=>ute,RootStepSupplySchema:()=>ff,RtpSourceSchema:()=>$_,RtspRestreamEntrySchema:()=>V_,RunnerBootCheckSchema:()=>QR,RunnerCameraConfigSchema:()=>BL,RunnerCameraDeviceUIFields:()=>VL,RunnerFrameSourceSchema:()=>LL,RunnerInferenceDeviceSchema:()=>zL,RunnerJumpStepProvisioningSchema:()=>RL,RunnerLocalLoadSchema:()=>HL,RunnerLocalMetricsSchema:()=>GL,RunnerRefusalSchema:()=>ZR,SCENE_CONDITIONS:()=>SY,SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX:()=>448,SCENE_CONFIRM_DEFAULT_TIMEOUT_MS:()=>MY,SCENE_DEFAULT_ANCHOR_THRESHOLD:()=>AY,SCENE_DEFAULT_CHECK_INTERVAL_SEC:()=>60,SCENE_DEFAULT_OBSERVATION_SPACING_SEC:()=>120,SCENE_DEFAULT_QUIET_SECONDS:()=>60,SCENE_DEFAULT_UNCOVERED_POLICY:()=>jY,SCENE_DIVERGED:()=>wY,SCENE_RESET_RECAPTURES:()=>!0,SCOPE_PRESETS:()=>L0,SECRET_CLEAR:()=>$e,SECRET_META:()=>Ia,SECRET_REF_SCHEME:()=>kt,SENSOR_FEATURES:()=>q$,SENSOR_MAP:()=>Y$,SERVER_NAME_MAX_LENGTH:()=>48,SERVER_NAME_SETTING_KEY:()=>sX,SESSION_PLACEMENT_SETTING_KEY:()=>cI,SETTINGS_ARRAY_ADOPTS_PREFIX:()=>Co,SETTINGS_BROKERS_ADOPTS_PREFIX:()=>bo,SHARE_SOURCE_SETTING_KEY:()=>vee,SHARE_VIEW_KINDS:()=>gi,SINGLE_HUB_ADDRESS_ROLES:()=>sE,SOURCE_CAPS:()=>Np,SOURCE_CAP_ACTIVE_FIELD:()=>jp,SOURCE_CAP_CHANGED_AT_FIELD:()=>Mp,SOURCE_DEVICE_TYPES:()=>Pp,SOURCE_INFO_METADATA_KEY:()=>sC,SSO_STATE_COOKIE:()=>Bf,SSO_STATE_COOKIE_MAX_AGE_SEC:()=>600,STATE_LABELS:()=>H6,STATE_LABEL_KEYS:()=>V6,STATIONARY_OVERLAY_STYLE:()=>Qu,STORAGE_ACCESS_FALLBACK:()=>ru,STORAGE_ADMIN_MOVED_COLLECTIONS:()=>Zx,STORAGE_ADMIN_SCOPED_BASES:()=>Qx,STORAGE_BYTES_PER_GB:()=>Ql,STORAGE_LOCATION_MODES:()=>Pl,STREAM_PROFILE_META:()=>tX,STREAM_QUALITY_LABELS:()=>Os,SUB_DETECTION_TYPES:()=>Ml,SYSTEM_CAP_NAMES:()=>t1,SYSTEM_SCOPE_DEVICE_METHODS:()=>y0,SceneCheckSchema:()=>kY,SceneConditionSchema:()=>xY,SceneConfirmSchema:()=>NY,SceneMonitorSchema:()=>PY,SceneMonitorStateSchema:()=>OY,SceneMonitorStatusForDeviceSchema:()=>IY,SceneMonitorStatusSchema:()=>FY,SceneReferenceSchema:()=>DY,SceneUnavailableSchema:()=>EY,SceneUncoveredPolicySchema:()=>CY,SceneVerdictSchema:()=>TY,ScopedTokenSchema:()=>$j,ScopedTokenSummarySchema:()=>aZ,ScoredObjectEventSchema:()=>RP,ScriptRunnerStatusSchema:()=>VY,SearchResultSchema:()=>EV,SendEmailInputSchema:()=>oz,SendEmailResultSchema:()=>sz,SendResultSchema:()=>GO,SensorEventSchema:()=>tN,ServerBootModeSchema:()=>UR,ServerNameInfoSchema:()=>uX,ServerNameSchema:()=>lX,ServerPackageStatusSchema:()=>$R,ServerRollbackInfoSchema:()=>XR,ServerUpdateActionResultSchema:()=>rz,ServerUpdateCheckResultSchema:()=>ez,ServerUpdateOutcomeSchema:()=>tz,ServerUpdateStateSchema:()=>WR,SessionPlacementPolicySchema:()=>oI,SessionTriggerSchema:()=>AL,SetCameraSensorsInputSchema:()=>jR,SetLoggingSettingsInputSchema:()=>WX,SetShareSourceInputSchema:()=>TI,SetSiteLocationInputSchema:()=>SX,SetTrackPurityInputSchema:()=>Cs,SetTrackPurityResultSchema:()=>ws,SetTrackRelationInputSchema:()=>bs,SettingsPatchSchema:()=>Fh,SettingsRecordSchema:()=>Fg,SettingsSchemaWithValuesSchema:()=>Ph,SettingsUpdateResultSchema:()=>Ih,ShareSourceSchema:()=>SI,ShareWeightsSchema:()=>bee,SiteLocationSchema:()=>bX,SiteLocationSourceSchema:()=>yX,SiteLocationStatusSchema:()=>xX,SiteZoneSchema:()=>mw,SmokeStatusSchema:()=>UY,SmtpStatusSchema:()=>cz,SnapshotImageSchema:()=>uz,SourceInfoSchema:()=>rC,SpatialDetectionSchema:()=>og,SsoBridgeClaimsSchema:()=>pz,StaleDevicePinSchema:()=>mI,StartEmbeddedInputSchema:()=>CO,StartEnrollmentOutputSchema:()=>bp,StationaryObjectSchema:()=>kZ,StorageAbortUploadInputSchema:()=>kz,StorageAccessSchema:()=>nu,StorageBeginDownloadInputSchema:()=>Az,StorageBeginDownloadResultSchema:()=>jz,StorageBeginUploadInputSchema:()=>Tz,StorageBeginUploadResultSchema:()=>Ez,StorageCleanupInputSchema:()=>Ol,StorageCleanupJobSchema:()=>kl,StorageCleanupPhaseSchema:()=>Dl,StorageCleanupStatusInputSchema:()=>Al,StorageDrainProgressSchema:()=>eu,StorageEndDownloadInputSchema:()=>Nz,StorageEvictionPolicySchema:()=>Il,StorageFinalizeUploadInputSchema:()=>Oz,StorageKindSchema:()=>Xx,StorageLocationDeclarationSchema:()=>iu,StorageLocationModeSchema:()=>Fl,StorageLocationRefSchema:()=>tu,StorageLocationSchema:()=>A,StorageLocationTypeSchema:()=>Yl,StorageMigrationClassSchema:()=>el,StorageMigrationDestinationsSchema:()=>tl,StorageMigrationDrainInputSchema:()=>gl,StorageMigrationFindingCodeSchema:()=>ul,StorageMigrationFindingSchema:()=>dl,StorageMigrationFootageMoveInputSchema:()=>Jc,StorageMigrationInputSchema:()=>il,StorageMigrationJobSchema:()=>ll,StorageMigrationLaneSchema:()=>pl,StorageMigrationLeaseInputSchema:()=>qc,StorageMigrationMediaMoveInputSchema:()=>$c,StorageMigrationModeSchema:()=>rl,StorageMigrationMoveProgressSchema:()=>sl,StorageMigrationMoveSchema:()=>cl,StorageMigrationMoverSchema:()=>ml,StorageMigrationParticipantSchema:()=>ol,StorageMigrationPhaseSchema:()=>al,StorageMigrationPlanSchema:()=>fl,StorageMigrationResidueSchema:()=>hl,StorageMigrationSourcesSchema:()=>nl,StorageOccupancyReportSchema:()=>xz,StorageProviderInfoSchema:()=>Cz,StorageReadChunkInputSchema:()=>Mz,StorageTableSchema:()=>Yx,StorageTestLocationResultSchema:()=>wz,StorageWriteChunkInputSchema:()=>Dz,StreamCodecSchema:()=>av,StreamFormatSchema:()=>I_,StreamNetworkStatsSchema:()=>rK,StreamParamsOptionsSchema:()=>QY,StreamParamsStatusSchema:()=>XY,StreamProfileConfigSchema:()=>YY,StreamProfileOptionsSchema:()=>ZY,StreamProfilePatchSchema:()=>$Y,StreamProfileSchema:()=>JY,StreamSignalSchema:()=>Fz,StreamSignalsStatusSchema:()=>Iz,StreamSourceEntrySchema:()=>ic,StreamSourceSchema:()=>ac,SubscribeAudioChunksInputSchema:()=>lc,SubscribeAudioChunksResultSchema:()=>uc,SuggestSharesInputSchema:()=>vI,SuggestSharesResultSchema:()=>xI,SuggestedDeviceShareSchema:()=>yI,SuggestedNodeShareSchema:()=>bI,SuppliedRootOutputSchema:()=>oF,SwitchStatusSchema:()=>aX,SystemHeldSecretNameSchema:()=>HS,SystemMetricsSchema:()=>aO,SystemMirror:()=>X1,TAXONOMY_COLORS:()=>K,TIMELAPSE_DENSE_FLOOR_SEC:()=>_8,TIMEZONES:()=>su,TRACK_RELATIONS_DEFAULT_LIMIT:()=>500,TRAINING_JOB_SCHEMA:()=>ko,TRAINING_RESULT_SCHEMA:()=>Ao,TRANSCODE_DOWN_MAX_BITRATE_KBPS:()=>400,TRANSCODE_DOWN_MAX_HEIGHT:()=>360,TamperStatusSchema:()=>qX,TankStatusSchema:()=>hZ,TargetKindCapsSchema:()=>zO,TargetKindLevelSchema:()=>RO,TargetKindSchema:()=>VO,TargetSchema:()=>HO,TemperatureSensorStatusSchema:()=>YX,TerminalInstanceInfoSchema:()=>Hz,TerminalLegacyCameraSchema:()=>Uz,TerminalOutputBatchSchema:()=>Gz,TerminalOutputEventSchema:()=>Wz,TerminalProfileInfoSchema:()=>Vz,TerminalSessionInfoSchema:()=>Bz,TestConnectionResultSchema:()=>OW,TestConnectionStatusEnum:()=>DW,TestResultSchema:()=>KO,TimelapseRuleInputSchema:()=>C8,TimelapseRulePatchSchema:()=>T8,TimelapseRuleSchema:()=>E8,TimelapseTemplateSchema:()=>u8,ToastSchema:()=>ZX,TokenScopeSchema:()=>Y,TopologyNodeSchema:()=>lK,TopologyProcessSchema:()=>cK,TopologyServiceSchema:()=>sK,TrackCascadeCountsSchema:()=>BP,TrackEnvelopeSchema:()=>iN,TrackFlagsPatchSchema:()=>dN,TrackFlagsSchema:()=>fN,TrackProjectionSchema:()=>aN,TrackPuritySchema:()=>ys,TrackPurityValueSchema:()=>_s,TrackRelationKindSchema:()=>hs,TrackRelationRefusalSchema:()=>Ds,TrackRelationSchema:()=>vs,TrackSchema:()=>vN,TrackSideSchema:()=>gs,TrackSourceSchema:()=>sN,TrackStateSchema:()=>qM,TrackZoneFilterSchema:()=>YM,TrackedDetectionSchema:()=>IP,TrainerSourceRefSchema:()=>YZ,TrainingBaseModelSchema:()=>eQ,TrainingCanarySchema:()=>lQ,TrainingCatalogDraftSchema:()=>Lo,TrainingCorpusSelectionSchema:()=>$Z,TrainingCredentialCheckSchema:()=>KZ,TrainingEvalClassSchema:()=>Ro,TrainingEvalReportSchema:()=>zo,TrainingEventSchema:()=>Uo,TrainingExportDeviceTotalsSchema:()=>gN,TrainingExportSchema:()=>Mo,TrainingExportSummarySchema:()=>_N,TrainingFailureReasonSchema:()=>sQ,TrainingGpuOptionSchema:()=>RZ,TrainingJobPlanSchema:()=>aQ,TrainingJobRequestSchema:()=>nQ,TrainingJobSchema:()=>uQ,TrainingJobSpecSchema:()=>Po,TrainingJobStateSchema:()=>oQ,TrainingLogLineSchema:()=>ZZ,TrainingPresetSchema:()=>tQ,TrainingProgressPointSchema:()=>cQ,TrainingProviderDefaultsSchema:()=>BZ,TrainingProviderDescriptorSchema:()=>WZ,TrainingProviderEntrySchema:()=>UZ,TrainingProviderTypeSchema:()=>HZ,TrainingProviderUpdateEntryInputSchema:()=>GZ,TrainingRefusalReasonSchema:()=>iQ,TrainingRegionOptionSchema:()=>zZ,TrainingResultFileSchema:()=>Fo,TrainingResultSchema:()=>Bo,TrainingSplitPlanSchema:()=>rQ,TrainingStageSchema:()=>Vo,TransportPlaneCountsSchema:()=>wX,TransportPlaneSchema:()=>CX,TurnServerSchema:()=>qz,UNATTRIBUTED_BUCKET_KEY:()=>Tu,UNIT_TABLE:()=>yQ,USE_ROOT_MODEL_DEFAULTS:()=>Ad,USE_ROOT_MODEL_SETTING_KEY:()=>jd,UnifiedBrokerInfoSchema:()=>h_,UnindexedFilterError:()=>ya,UninstallNodeOutcomeSchema:()=>MV,UninstallNodeResultSchema:()=>NV,UninstallPackageResultSchema:()=>PV,UnitConversionError:()=>bQ,UnknownRecordKindError:()=>xa,UnstampedEventMediaCountSchema:()=>Qc,UnstampedRowsSchema:()=>Zc,UpdateBlockerSchema:()=>nz,UpdateIntegrationInputSchema:()=>AW,UpdateStatusSchema:()=>$X,UpdateUserInputSchema:()=>rZ,UserRecordSchema:()=>Zj,UserSummarySchema:()=>tZ,VECTOR_INDEX_DIM_CONFLICT:()=>gB,VIDEOCLIPS_MAX_OFFER_BYTES:()=>NB,VIDEOCLIPS_MAX_READ_BYTES:()=>MB,VISIT_MERGE_GAP_MS:()=>lee,VacuumControlStatusSchema:()=>gZ,VacuumStateSchema:()=>mZ,ValveStateSchema:()=>vZ,ValveStatusSchema:()=>yZ,VectorDeclareIndexInputSchema:()=>nB,VectorDeleteByFilterInputSchema:()=>cB,VectorDeleteInputSchema:()=>sB,VectorDeleteResultSchema:()=>lB,VectorFilterSchema:()=>$z,VectorGetInputSchema:()=>uB,VectorGetResultSchema:()=>dB,VectorItemSchema:()=>eB,VectorMatchSchema:()=>tB,VectorMetadataSchema:()=>Qz,VectorMetricSchema:()=>Zz,VectorQueryInputSchema:()=>aB,VectorQueryResultSchema:()=>oB,VectorStatsInputSchema:()=>yB,VectorStatsResultSchema:()=>bB,VectorUpsertInputSchema:()=>rB,VectorUpsertResultSchema:()=>iB,VibrationStatusSchema:()=>xZ,VideoEncodeSchema:()=>Yn,WEBRTC_CLIMB_HOLD_CODES:()=>eV,WEBRTC_EGRESS_PROFILE:()=>Dr,WEBRTC_TRY_BLOCKERS:()=>tV,WEEKLY_MASK_LENGTH:()=>168,WELL_KNOWN_TABS:()=>ct,WELL_KNOWN_TAB_MAP:()=>lt,WaterHeaterStatusSchema:()=>CZ,WeatherStatusSchema:()=>TZ,WebrtcClimbHoldSchema:()=>nV,WebrtcLadderDecisionSchema:()=>$B,WebrtcSessionDebugSchema:()=>iV,WebrtcStreamChoiceSchema:()=>QB,WebrtcStreamTargetSchema:()=>ZB,WebrtcTierFailureSchema:()=>rV,WhiteBalanceModeSchema:()=>gW,WidgetHostEnum:()=>Rh,WidgetLoginMethodSchema:()=>LD,WidgetMetadataSchema:()=>Vh,WidgetRemoteSchema:()=>Bh,WidgetSizeEnum:()=>zh,WrapperActivationReadSchema:()=>Fw,WrapperEvidenceSchema:()=>JR,WrapperIdentitySchema:()=>YR,WrapperKindSchema:()=>qR,YAMNET_TO_MACRO:()=>tk,ZoneCrossingDirectionSchema:()=>SN,ZoneCrossingSchema:()=>CN,ZoneKindEnum:()=>sL,ZoneRuleModeEnum:()=>RY,ZoneRuleSchema:()=>zY,ZoneRuleStageEnum:()=>IZ,ZoneRulesArraySchema:()=>BY,ZoneSchema:()=>lL,ZoneScopeBreakdownSchema:()=>OZ,__resetLogChannelRegistryForTests:()=>_u,acceleratorKindOf:()=>_5,accessoriesCapability:()=>sV,accessoryStableId:()=>p$,actionsForBoundCaps:()=>d1,actionsForDevice:()=>p1,actionsForDeviceType:()=>f1,actionsForDevices:()=>m1,activateAlarmProfile:()=>F3,addonCatalogHref:()=>VE,addonPagesCapability:()=>Th,addonPagesSourceCapability:()=>Dh,addonRoutesCapability:()=>jh,addonSettingsCapability:()=>Lh,addonWidgetsCapability:()=>Wh,addonWidgetsSourceCapability:()=>Hh,addonsCapability:()=>WV,adminUiCapability:()=>qh,advertisedHubOrigins:()=>kp,airQualitySensorCapability:()=>KV,alarmDeviceBlocksArming:()=>Z4,alarmDeviceSecureOnArm:()=>Q4,alarmPanelCapability:()=>Sk,alarmPatchLanded:()=>S3,alarmProfileById:()=>L3,alertEpisodeId:()=>J3,alertEpisodeKind:()=>X3,alertEpisodePayload:()=>Z3,alertNodeId:()=>Y3,alertsCapability:()=>$h,allDoActions:()=>h1,allowedSuppliedEffect:()=>Gd,ambientLightSensorCapability:()=>JV,appFlowLocation:()=>Rf,applyBlockingEdit:()=>m3,applyModeDelaysEdits:()=>d3,applyModeDeviceListEdit:()=>f3,applyModelBoundSettings:()=>W8,applyNonBlockingEdit:()=>p3,applySecureOnArmEdit:()=>h3,armRemovalReconcile:()=>jte,arrayItemFieldPath:()=>It,asBoolean:()=>Yee,asJsonArray:()=>Kee,asJsonObject:()=>D9,asNumber:()=>Jee,asRecordsError:()=>Fa,asString:()=>qee,assertTimelapseCadences:()=>D8,assertValidDeclaration:()=>ao,assignNodeColorId:()=>Ju,audioAnalysisCapability:()=>ng,audioAnalyzerCapability:()=>bg,audioChunkBytesPerSample:()=>ye,audioCodecCapability:()=>Og,audioIsFailClosed:()=>Q0,audioKindId:()=>K0,audioLabelChoices:()=>n2,audioMetricsCapability:()=>$V,audioModeOf:()=>Z0,audioOrDefaults:()=>X0,audioPlanFromEncodeProfile:()=>wr,audioScaleEraOf:()=>U0,authProviderCapability:()=>Ag,autoAssignProfiles:()=>Rs,automationControlCapability:()=>tH,backupCapability:()=>p_,bareAddonId:()=>C9,batteryCapability:()=>rH,bestLocationMatch:()=>Ree,binaryCapability:()=>aH,bindAddonActions:()=>Cte,brightnessCapability:()=>sH,brokerCapability:()=>P_,bucketStartOf:()=>k0,buildAddonRouteProvider:()=>tee,buildAudioArgs:()=>mr,buildBenchStepTree:()=>h7,buildCapabilityLookup:()=>bb,buildDeviceAdminUrl:()=>tC,buildDeviceEnrollmentLink:()=>Yf,buildDeviceSignatureMessage:()=>Jf,buildDoorbellCompositionFeature:()=>KQ,buildEventKindDescriptor:()=>HR,buildFfmpegArgs:()=>xr,buildFrigateClassMap:()=>e$,buildInputArgs:()=>cr,buildModelVariantGroups:()=>dd,buildNcTaxonomy:()=>vk,buildRoleScopes:()=>s9,buildSecretRef:()=>Lt,buildStreamParamsConfigSchema:()=>rX,buildVideoArgs:()=>pr,buildViewerLink:()=>aE,builtCapabilityBlockers:()=>Gb,buttonCapability:()=>cH,calendarEventLocalSpan:()=>hH,calendarEventOnLocalDay:()=>gH,calendarSourceCapability:()=>pH,calendarsCapability:()=>SH,cameraCredentialsCapability:()=>TH,cameraGridLayoutCapability:()=>jH,cameraOwnsMotionViaSensor:()=>k8,cameraPipelineConfigCapability:()=>F_,cameraSensorRefKey:()=>dM,cameraStreamsCapability:()=>lv,canConvertUnit:()=>DQ,canonicalEgressPlan:()=>Yr,canonicalIconKey:()=>KC,canonicalizeAppCallback:()=>wf,capacitySessionsOf:()=>C5,carbonMonoxideCapability:()=>NH,cellsToRects:()=>lte,checkRoleAddress:()=>CE,claimedRequestOrigins:()=>Op,classifyBearerPrincipal:()=>xf,classifyCamerasForBenchmark:()=>Z5,classifyInferenceHardware:()=>g5,classifyRetrainReview:()=>es,classifySecretWrite:()=>st,classifyStoreError:()=>Vn,classifyStream:()=>Ms,classifyStreams:()=>js,clearKnownSecrets:()=>Xi,clearModelBoundOverrides:()=>J8,clearModelBoundSetting:()=>K8,climateControlCapability:()=>IH,clipExportFailure:()=>AJ,clipExportFailureOf:()=>jJ,clipReasonHeaderValue:()=>TB,cloneAlarmSettings:()=>O3,cloneStatefulExpressionMemory:()=>Nm,clusterModelSettingKey:()=>DM,clusterStepSettingFieldsFor:()=>VM,clusterStepSettingKey:()=>BM,codecIsAccepted:()=>tr,collectHydratedFieldEntries:()=>dt,collectHydratedFieldValues:()=>pt,collectKeychainStoredKeys:()=>Ke,collectModelBoundKeys:()=>Y8,collectSecretConfigKeys:()=>Ue,collectSecretLeaves:()=>Ya,collectSecretMarkerRefs:()=>E,collectZodSecretPaths:()=>Ha,colorCapability:()=>VH,colorForKind:()=>pk,commitWatchdogRestart:()=>L9,compareToTarget:()=>$n,compileExpression:()=>ym,compileExpressionSafe:()=>bm,composeSwitchedOff:()=>Vi,composedDeviceRef:()=>Zv,composedDeviceStableId:()=>Xv,composerCapability:()=>Ry,compositionEdges:()=>hb,compositionFeatureEnabled:()=>Uv,compositionFieldKey:()=>wy,compositionItemFieldPath:()=>$v,compositionReadKey:()=>Yv,compositionSliceKey:()=>Jv,compositionSourceKey:()=>V,compositionSourceRefs:()=>Mb,computeCapacityShares:()=>J5,conditionDepth:()=>Xm,conditionExclusionReason:()=>_4,conditionVisibleForKind:()=>g4,connectionTestCapability:()=>KH,connectivityCapability:()=>JH,consumableLowPercentOf:()=>hee,consumablesCapability:()=>$H,contactCapability:()=>tU,containingParentIndex:()=>Jd,controlCapability:()=>aU,convertPresetFeature:()=>XQ,convertUnit:()=>TQ,coreBlockAddonId:()=>Zb,coreBlockComposition:()=>px,coreBlockIdFromAddonId:()=>Qb,coreBlockSourceKind:()=>fx,coreBlocksCapability:()=>Sx,cosineSimilarity:()=>Hee,countConditionLeaves:()=>Zm,coverCapability:()=>cU,createAlarmProfile:()=>M3,createDeviceExtensionProvider:()=>vQ,createDeviceProxy:()=>W1,createDurableState:()=>Ct,createEvent:()=>xt,createEventBusSliceSource:()=>w1,createExpressionScope:()=>Sm,createHwAccelCache:()=>Ir,createLazyTrpcSource:()=>C1,createLogChannelsProvider:()=>yu,createMirrorSource:()=>T1,createRecordsAccess:()=>_o,createRuntimeStateBridge:()=>L1,createSecretsAccess:()=>ea,createSliceHandle:()=>Z,createStatefulExpressionMemory:()=>Mm,createSystemProxy:()=>R0,customAction:()=>wx,customModelRegistryCapability:()=>jx,dataStoreProviderCapability:()=>Nx,databaseSnapshotCapability:()=>$g,dayNightCapability:()=>mU,dayOfWeekToIndex:()=>mY,declarationOwnerNodeId:()=>L$,declarationsOf:()=>uo,declareLogChannel:()=>gu,decodeVectorBase64:()=>yte,decoderCapability:()=>GS,defaultDeliveryForSection:()=>k4,defaultDeviceFor:()=>Dte,defineCustomActions:()=>Cx,defineEntryKind:()=>yo,defineExtensionSlotProvider:()=>gQ,defineRecordKinds:()=>lo,dehydrateConfigField:()=>vt,dehydrateSchema:()=>yt,deleteAlarmProfile:()=>P3,deriveBatteryPresence:()=>E$,deriveCameraSwitches:()=>zi,deriveDetailCropRect:()=>O7,deriveMaskSupplies:()=>zd,derivePostTriggeredAction:()=>r3,deriveRecordingMode:()=>Pc,deriveRootFaceRefineRect:()=>_7,deriveRootSupplies:()=>Ld,describeComposableCaps:()=>Kb,describeCustomActions:()=>Ex,describeModelVariant:()=>pd,describeOnboardClamp:()=>hY,describeOnboardRefusal:()=>tY,describeRootSupplies:()=>Zd,describeRootSupply:()=>Xd,describeStateField:()=>sy,describeSystemEventDeliveryProblem:()=>O6,describeSystemEventFamilyProblem:()=>q2,describeTopLevelStateFields:()=>cy,detectAccessRole:()=>l9,detectionPipelineCapability:()=>KS,deviceAdminLinkCapability:()=>YS,deviceAdoptionCapability:()=>TC,deviceBackendToFormat:()=>pte,deviceCredentialsCapability:()=>DS,deviceCustomAction:()=>Tx,deviceDiscoveryCapability:()=>fC,deviceDoFamily:()=>l1,deviceExportCapability:()=>PC,deviceExtensionCapability:()=>_T,deviceHistoryCapability:()=>wS,deviceManagerCapability:()=>Xw,deviceMatchesProfile:()=>v1,deviceOpsCapability:()=>vU,deviceProviderCapability:()=>Sw,deviceRefusalFromMessage:()=>ap,deviceRemovalHookCapability:()=>WT,deviceSelectorMatches:()=>d9,deviceStateCapability:()=>ST,deviceStatusCapability:()=>bU,diffStepSettings:()=>l5,disarmRoseMemory:()=>Yp,dishwasherCapability:()=>jU,doActionSelectValue:()=>_1,doorbellCapability:()=>PU,doorbellFeatureSources:()=>GQ,droppedConditionsForKind:()=>v4,effectiveStepSettings:()=>r5,egressTranscodeSharingKey:()=>Xr,egressTransportFromRequest:()=>Gr,electByShare:()=>z5,eligibleUnderBenchmark:()=>Y5,embeddingEncoderCapability:()=>BT,embeddingModelFailedError:()=>NT,embeddingModelFailedOf:()=>zT,embeddingRefusalOf:()=>LT,embeddingRequirementsFailedError:()=>FT,embeddingRequirementsUnavailableError:()=>PT,emitDownForOwnedCaps:()=>Hu,emitReadiness:()=>St,emitsCollectionSelector:()=>uv,encodeProfileFromStreamShape:()=>Qn,encodeVectorBase64:()=>vte,ensureAlarmProfiles:()=>k3,entryBody:()=>vo,enumSensorCapability:()=>LU,enumerateInferenceDevices:()=>Ate,enumerateItemArrayFields:()=>ay,enumerateSchemaFields:()=>iy,errMsg:()=>T9,estimateNodeBenchmarkDurationMs:()=>n7,evaluateAst:()=>jm,evaluateCompositionField:()=>NQ,evaluateCount:()=>Xp,evaluateExpressionSource:()=>Lm,evaluatePoolMemory:()=>I9,evaluateRose:()=>Jp,evaluateSensorEdge:()=>Bp,evaluateSensorLevelEdge:()=>zp,evaluateStatefulExpressionCall:()=>Pm,evaluateZoneRules:()=>xte,event:()=>xh,eventEmitterCapability:()=>BU,eventKindLabel:()=>X6,evictionPolicyForMode:()=>Bl,evictionPolicyOfLocation:()=>Kl,expandAudioChunkToF32le:()=>be,expandCapMethods:()=>vh,expandContainer:()=>P$,exportSubjectOf:()=>RJ,exposeBlockDevices:()=>B$,expressionContainsBuiltinCall:()=>Qy,extensionSlotRef:()=>_Q,extractNestedAddonId:()=>gv,extractSourceInfoFromMetadata:()=>cC,faceGalleryCapability:()=>ZU,failureContributionCapability:()=>qT,failureRate:()=>wu,fanControlCapability:()=>eW,featureFieldEntries:()=>ey,featureProbeCapability:()=>nW,featureSources:()=>ty,feederCustomizationExample:()=>UQ,feederExampleSources:()=>HQ,ffmpegRate:()=>Rr,fieldReads:()=>Qv,fieldUnitKeys:()=>Z8,fieldsPinnedAtValueBelow:()=>u5,filesystemBrowseCapability:()=>XT,findCandidateCycles:()=>yb,findCompositionCycles:()=>gb,findTimezone:()=>cu,floodCapability:()=>iW,foldSnapshotByFunction:()=>ku,forgetKnownSecret:()=>Ji,formatDeviceRevoker:()=>_p,formatForRuntime:()=>W9,formatMediaOwnerKey:()=>Ae,formatMinutes:()=>sY,formatParkedFor:()=>$u,formatSecretScope:()=>Ft,freshResults:()=>s7,frigateDefaultClassFloors:()=>i$,frigateLabelFields:()=>t$,gasCapability:()=>oW,gbToBytes:()=>$l,generateAutomationBlock:()=>ih,getAudioMacroClassIds:()=>ak,getByPath:()=>O1,getCapsByProviderKind:()=>S0,getLogChannelRegistry:()=>hu,getTaxonomyEntry:()=>fk,gifDeriveSpeed:()=>zr,gifFilterComplex:()=>Br,gifFromMp4Args:()=>Vr,globalSecretScope:()=>jt,hasModelBoundOverrides:()=>q8,hasMotionTrigger:()=>K$,hasUrlScheme:()=>Ef,heatingValveCapability:()=>cW,hfModelUrl:()=>Gee,historyFieldsFor:()=>I0,htmlToText:()=>x2,hubAddressHostname:()=>PE,hubMotionNativeProvider:()=>N8,humidifierCapability:()=>uW,humiditySensorCapability:()=>fW,hydrateSchema:()=>ht,iconCategoryLabel:()=>lw,iconEntry:()=>ZC,iconsInCategory:()=>nw,imageCapability:()=>mW,imageSettingsCapability:()=>CW,inferExpressionKinds:()=>$y,inferModelProvider:()=>lf,initialPoolMemoryState:()=>P9,integrationsCapability:()=>MW,intercomCapability:()=>IW,interpolate:()=>e8,interpretStoredClusterModel:()=>AM,invalidClusterStepModelEntries:()=>jM,invertPresetFeature:()=>JQ,invocationFromEncodeProfile:()=>Tr,isAgentOnlyPlacement:()=>ui,isAlarmControllableCap:()=>U4,isAlertEpisodeOpen:()=>K3,isAlertEpisodeSeverity:()=>q3,isAppLinkBase:()=>$T,isAppStartRefusal:()=>If,isArrayOutputSchema:()=>pv,isAudioChunkFormat:()=>ve,isAudioClassName:()=>m2,isAudioLabelSelected:()=>r2,isAudioRule:()=>S4,isAutomaticShareSource:()=>wI,isBaseConditionKey:()=>v2,isBatteryPresenceFault:()=>D$,isClusterScopedStep:()=>OM,isCollectionArrayMethod:()=>mv,isDefaultAlarmProfileId:()=>D3,isDefaultAppConnectionEndpoint:()=>AE,isDefinitiveDeviceRefusal:()=>np,isDeployableToAgent:()=>li,isDetectionMacroClass:()=>QO,isDeviceConfigCap:()=>Sh,isDeviceScopedCap:()=>_0,isDoActionActuatable:()=>r1,isDoPickerDeviceType:()=>c1,isEmbeddingModelFailed:()=>RT,isEvent:()=>bt,isEventKindLabelKey:()=>Y6,isEventOwnerType:()=>Ie,isFirstLevelMacroClass:()=>_c,isHeldBackTemplateVar:()=>m6,isIconKey:()=>GC,isIsolatedBuiltin:()=>mi,isKeychainStoredField:()=>He,isKnownTemplateVar:()=>x6,isLabelSupplyStepId:()=>Td,isLocationEnabled:()=>Zl,isMediaOwnerType:()=>Oe,isNode:()=>X$,isOauthLandingReason:()=>j9,isObjectInput:()=>fv,isOccupancyRule:()=>C4,isOwnerOnlyEventCategory:()=>Re,isRemovedModelId:()=>z8,isRestoredCap:()=>E0,isRetiredClearKey:()=>TA,isRootSuppliableStepId:()=>wd,isSameAddonId:()=>Bee,isScheduleActive:()=>L4,isSecretClear:()=>it,isSecretConfigField:()=>Ve,isSecretFieldView:()=>at,isSecretMarker:()=>T,isSecretMarkerLike:()=>rt,isSecretRef:()=>Rt,isSecretRefOwnedBy:()=>$t,isSingleHubAddressRole:()=>cE,isSoftwareDecode:()=>sr,isSourceCap:()=>Fp,isStateLabelKey:()=>W6,isStatefulBuiltin:()=>Vp,isStorageLocationMode:()=>Ul,isSystemDelivery:()=>l4,isSystemEventFamily:()=>L2,isSystemEventSummaryRule:()=>T6,isSystemRuleKind:()=>Y2,isVectorIndexDimConflict:()=>vB,isVoidInput:()=>dv,isZodSecret:()=>Va,ituDbfsFromPreEpoch:()=>H0,jobKindSchema:()=>cV,kebabToCamel:()=>Sv,keychainAdminCapability:()=>US,keychainCapability:()=>uS,kindOfValue:()=>Uy,kindsForDiscriminator:()=>s4,knownSecretCount:()=>Yi,knownValues:()=>h2,lawnMowerControlCapability:()=>BW,legacyAutoLinkIds:()=>F$,legacyModeOf:()=>Vl,lifecycleJobSchema:()=>hV,lifecycleJobScopeSchema:()=>mV,lifecycleJobStateSchema:()=>pV,lifecycleTaskSchema:()=>fV,linkedLabelStepId:()=>Pd,linkedStepOf:()=>Fd,listBenchDetailSteps:()=>m7,llmCapability:()=>TD,llmRuntimeCapability:()=>fD,loadContributionCapability:()=>kD,localNetworkCapability:()=>oG,localizeConfigTree:()=>i8,locationIconKey:()=>fw,locationSimilarity:()=>S9,lockControlCapability:()=>lG,logBannerArgs:()=>or,logChannelsCapability:()=>jD,logDestinationCapability:()=>PD,logLevelAtMost:()=>Vs,loginMethodCapability:()=>BD,looseSchema:()=>hv,makeInMemoryRecords:()=>see,makeProfileBrokerId:()=>ec,makeSecretMarker:()=>nt,makeSourceBrokerId:()=>tc,mapAudioLabelToMacro:()=>ik,mapSecretLeaves:()=>Ja,markdownToHtmlLite:()=>T2,markdownToText:()=>y2,maskUrlCredentials:()=>O9,matchDoAction:()=>g1,mayReadLocation:()=>Gl,mayWriteToLocation:()=>Wl,measuredCapacityFromResults:()=>l7,measuredDetectorCells:()=>c7,mediaPlayerCapability:()=>mG,memoizePinnedFfmpeg:()=>Zr,mergeSecretStatePaths:()=>En,mergeSettingsBags:()=>t5,mergeSourceInfo:()=>aC,meshNetworkCapability:()=>vG,method:()=>L,methodAccessForHttpMethod:()=>vf,metricsProviderCapability:()=>oO,migrateLegacyDeviceSignalConfig:()=>Hc,minutesToTimeOfDay:()=>pY,modeMayRead:()=>zl,modeMayWrite:()=>Rl,modelBindingKey:()=>V8,modelConvertCapability:()=>cO,modelDistributorCapability:()=>dO,modelFormatForRuntime:()=>Ote,motionCapability:()=>SG,motionDetectionCapability:()=>mO,motionSourceLabel:()=>NL,motionTriggerCapability:()=>TG,motionZonesCapability:()=>AG,mqttBrokerCapability:()=>EO,nativeObjectDetectionCapability:()=>RG,navigationCapability:()=>XG,ncAlarmSystemDefaultSettings:()=>E3,networkAccessCapability:()=>jO,networkLinkCapability:()=>nK,networkQualityCapability:()=>oK,nodeBenchmarkRefusals:()=>r7,nodeCertificatesCapability:()=>jS,nodePickerItems:()=>F6,nodePin:()=>oh,nodesCapability:()=>gK,normalizeAddonInitResult:()=>Wn,normalizeAudioLabel:()=>G0,normalizeCoreBlockWrite:()=>cx,normalizeNodeId:()=>wt,normalizeOrigin:()=>Ep,normalizeSecretOwner:()=>Mt,normalizeTokenScopes:()=>_9,normalizeUnit:()=>oC,notificationOutputCapability:()=>JO,notificationRulesCapability:()=>Uj,notifierCapability:()=>vK,numericSensorCapability:()=>bK,oauthIntegrationCapability:()=>tM,oauthLandingUrl:()=>ete,objectInputDeclaresAddonId:()=>_v,objectInputDeclaresRequiredDeviceId:()=>vv,occupancyScope:()=>nF,oidcConnectionsCapability:()=>aM,omitTransientConfig:()=>We,optionalAncestors:()=>uy,optionalMethod:()=>bh,osdCapability:()=>EK,osdManagerCapability:()=>zK,overlayClusterStepSettings:()=>KM,packagePickerItems:()=>B6,parseAdminBase:()=>nC,parseAlertEpisodePayload:()=>G3,parseAppAuthCallback:()=>Tf,parseAppFlowRequest:()=>Lf,parseAppPageLang:()=>kf,parseCameraStreamConfig:()=>Ls,parseDeviceEnrollmentLink:()=>Xf,parseExpression:()=>gm,parseJsonArray:()=>Zee,parseJsonObject:()=>Xee,parseJsonUnknown:()=>E9,parseMediaOwnerKey:()=>ke,parseOauthLandingFragment:()=>M9,parseOccupancyScope:()=>rF,parseProcStatus:()=>nte,parseProfileBrokerId:()=>nc,parseRetrainRevisionConflict:()=>is,parseRuleSection:()=>x4,parseSecretPath:()=>Ua,parseSecretRef:()=>Bt,parseSecretStatePath:()=>wn,parseSessionPlacementPolicy:()=>lI,parseSettingsArrayAdoptsFrom:()=>To,parseSettingsBrokersAdoptsFrom:()=>So,parseShareSource:()=>yee,parseStreamParamsFormPatch:()=>iX,parseTrainingEventLine:()=>Wo,patchAudio:()=>t2,petFeederCapability:()=>UK,pickAccessoryControl:()=>J$,pickAppLinkHub:()=>nE,pickClusterStepModels:()=>PM,pickClusterStepSettings:()=>GM,pickDetailCropConvention:()=>T7,pickFaceRescoreIntervalMinutes:()=>I7,pickInvalidClusterStepModels:()=>FM,pickNativeLeaseOverride:()=>i9,pickPreferredRtspEntry:()=>Uu,pickRequestOrigin:()=>Ap,pickRestartCandidate:()=>z9,pickVideoEncoder:()=>Cr,pickerForCondition:()=>d2,pickerForRuleClasses:()=>p2,pinUnderBenchmark:()=>X5,pipelineAnalyticsCapability:()=>aF,pipelineExecutorCapability:()=>zF,pipelineOrchestratorCapability:()=>FR,pipelineRunnerCapability:()=>qL,planComposition:()=>jb,planCompositionEvents:()=>gy,planItems:()=>lb,plateGalleryCapability:()=>YK,platformProbeCapability:()=>dq,poolMemoryThreshold:()=>F9,powerMeterCapability:()=>pq,prepareNotification:()=>M2,presenceCapability:()=>gq,pressureSensorCapability:()=>vq,principalMayReachAddon:()=>Sf,privacyMaskCapability:()=>wq,procedureAuthKey:()=>xv,providerMotionEvent:()=>F8,ptzAutotrackCapability:()=>zq,ptzCapability:()=>Pq,publicEventCategories:()=>ze,pythonScriptForBackend:()=>mte,rankStreams:()=>rr,readClusterStepModels:()=>MM,readClusterStepSettings:()=>UM,readDetailCropConvention:()=>C7,readDeviceStateFrom:()=>o$,readErrorI18n:()=>l8,readFaceRescoreIntervalMinutes:()=>F7,readHubMotionDetected:()=>M8,readHubMotionStatus:()=>j8,readMotionTriggeredBy:()=>cM,readNativeLeaseOverride:()=>t9,readNodePin:()=>ch,readTimelapseGeneratedAt:()=>O8,readUseRootModel:()=>Hd,readinessKey:()=>Iu,rebootCapability:()=>Bq,recommendNode:()=>F5,reconcileBlockDevices:()=>z$,reconcileRemovedDevices:()=>$9,recordArrayItemPath:()=>Qa,recordEntriesCapability:()=>rS,recordSecretCollection:()=>Xa,recordSecretRef:()=>Za,recordingArchiveCapability:()=>vJ,recordingCapability:()=>Qq,recordingExportCapability:()=>zJ,recordingOnboardCapability:()=>QJ,recordingSignalCapability:()=>vY,recordsCapability:()=>Jx,recordsErrorFromMessage:()=>Pa,rectsToCells:()=>cte,reducePoints:()=>Pu,registerKnownSecret:()=>qi,renameAlarmProfile:()=>N3,replacedFieldKeys:()=>Pb,requestMountPrefix:()=>Dp,requiredTopLevelKeys:()=>ly,requiresPython:()=>hte,reservedSourceOwner:()=>bY,resetPoolBaseline:()=>R9,resolveAddonExecution:()=>ci,resolveAddonGroup:()=>di,resolveAddonPlacement:()=>pi,resolveAppConnections:()=>ME,resolveBucketMs:()=>Nu,resolveCapMount:()=>fh,resolveClipSearchMinScore:()=>yd,resolveClusterStepModelId:()=>RM,resolveContainerPrimaryChild:()=>N$,resolveCoreBlockEntry:()=>ox,resolveCoreBlockFiles:()=>sx,resolveCreateExportSubject:()=>LJ,resolveDeviceControlKind:()=>W$,resolveDeviceProfile:()=>x1,resolveEffectiveShares:()=>U5,resolveEgressDecodeHwAccel:()=>iee,resolveExportProfiles:()=>FJ,resolveFormat:()=>D2,resolveHubAddressRoles:()=>NE,resolveHydratedFieldValue:()=>mt,resolveIconKey:()=>qC,resolveInternalAddress:()=>DE,resolveLocationMode:()=>Hl,resolveMethodAuth:()=>bv,resolveModeDelays:()=>a3,resolveModeNotifyPolicy:()=>n3,resolveModelBoundSetting:()=>U8,resolveMutate:()=>Z$,resolveNotificationTapAddress:()=>kE,resolvePoolMemoryPolicy:()=>tte,resolvePublicEndpoint:()=>OE,resolveRecordingProfiles:()=>Ic,resolveRootSupply:()=>Wd,resolveRunnerId:()=>fi,resolveSecretMarkers:()=>en,resolveSecretViewsIn:()=>ra,resolveServerName:()=>mX,resolveStreamMaps:()=>lr,resolveVariantModelId:()=>fd,resolveViewableDeviceIds:()=>g9,resultCellKey:()=>i7,resultStandings:()=>o7,retrainBoxIou:()=>Xo,retrainRevisionConflictMessage:()=>rs,roleSpec:()=>o9,roomCompositionExample:()=>zQ,rootSuppliesOf:()=>Bd,rootSupplyServes:()=>Kd,ruleAutoTriggersAlarm:()=>q4,ruleBelongsToAlarm:()=>K4,ruleDeviceCompatCapNames:()=>u4,ruleDeviceCompatCapQueries:()=>f4,ruleEditorSectionsForKind:()=>M4,ruleGatedOnArmedState:()=>G4,ruleGroupingApplies:()=>m4,ruleKindOf:()=>p4,ruleKindSpec:()=>o4,ruleMatchesSection:()=>w4,ruleSection:()=>b4,ruleSectionOf:()=>T4,ruleSeedForSection:()=>O4,runInferenceStep:()=>dte,runtimeDevices:()=>Ete,runtimeStatePolicyFor:()=>w0,sameDoFamily:()=>u1,sceneMonitorCapability:()=>LY,scheduleForSendTimes:()=>A6,schemaDeclaresAnyField:()=>Je,scopeInherits:()=>m9,scopeKey:()=>Lu,scopesAllowAddon:()=>bf,scopesAllowDeviceCap:()=>yf,scoreRuntimes:()=>X9,scriptRunnerCapability:()=>HY,scrubKnownSecrets:()=>Zi,searchIcons:()=>cw,secretArrayPrefixes:()=>Wa,secretTreeFromPaths:()=>Dn,secretTreeFromSchema:()=>Cn,secureActuationFor:()=>$4,selectAppConnectionEndpoints:()=>jE,selectAssignedProfileSlots:()=>rc,sendTimesForEditor:()=>M6,sendTimesOfSchedule:()=>j6,sensorRaisedOf:()=>V3,sensorTransitionNeverFires:()=>X4,sensorTransitionOffered:()=>H3,servedTemplateVars:()=>p6,serverManagementCapability:()=>iz,setByPath:()=>k1,settingValuesEqual:()=>$8,settingsArrayAdoptsFrom:()=>wo,settingsBelow:()=>n5,settingsBrokersAdoptsFrom:()=>xo,settingsStoreCapability:()=>Ug,shortHostname:()=>pX,shortSecretRefHash:()=>Wi,signalPercentFromBars:()=>eK,signalPercentFromRssi:()=>tK,siteZoneKey:()=>hw,sleep:()=>gte,sleepCancellable:()=>_te,sliceActiveValue:()=>Ip,sliceChangedAt:()=>Lp,smokeCapability:()=>WY,smtpProviderCapability:()=>lz,snapshotCapability:()=>fz,splitTranslationRef:()=>t8,ssoBridgeCapability:()=>mz,startMoverUnderClearance:()=>jl,startReachabilityPoll:()=>N1,stateLabel:()=>G6,stateVocabularyFor:()=>s$,stepModelRunsOnFormat:()=>L8,stepSettingSource:()=>i5,storageAdminCapability:()=>$x,storageCapability:()=>gz,storageEvictableCapability:()=>yz,storageMigrationCapability:()=>bz,storageOccupancyCapability:()=>Sz,storageProviderCapability:()=>Pz,streamBrokerCapability:()=>iv,streamCatalogCapability:()=>qY,streamParamsCapability:()=>eX,streamPixels:()=>As,streamQualityLabel:()=>ks,streamSignalsCapability:()=>Lz,stripRetiredBandPreBufferSec:()=>jc,strippedOfLegacyReadOnly:()=>ql,subKindsOf:()=>mk,summarisePrivacyAudio:()=>Tq,summarizeEffectiveScope:()=>Pee,summarizeReview:()=>ts,supplyFor:()=>Vd,supportedRuntimes:()=>Tte,switchCapability:()=>oX,switchedOffIds:()=>Bi,syncActiveAlarmProfileSettings:()=>I3,synthesizeSourceInfo:()=>iC,systemCapability:()=>KX,systemEventDeliveryProblems:()=>D6,systemEventFamilyOf:()=>G2,systemEventFamilyProblems:()=>K2,systemEventFilterApplies:()=>P2,systemEventFilterAppliesToAnyKind:()=>F2,systemEventKindNamesOf:()=>W2,systemEventKindsOfFamily:()=>U2,systemEventSummaryScheduleOf:()=>C6,systemEventSummarySplitOf:()=>w6,systemFamilyOfKind:()=>X2,systemRuleKindOf:()=>h4,tamperCapability:()=>JX,taskLogEntrySchema:()=>dV,taskPhaseSchema:()=>lV,taskTargetSchema:()=>uV,temperatureSensorCapability:()=>XX,templateCarriesSummary:()=>P6,templateVarDeliveryApplies:()=>h6,templateVarKindApplies:()=>v6,templateVarSystemEventApplies:()=>y6,templateVarsFor:()=>b6,terminalSessionCapability:()=>Kz,textToHtml:()=>w2,timeOfDayToMinutes:()=>fY,toAppLinkHubOrigin:()=>tE,toDeviceSummary:()=>C$,toExpressionValue:()=>Fm,toNodeId:()=>sh,toPercentShares:()=>G5,toSecretFieldView:()=>ot,toStreamSourceEntry:()=>Ns,toastCapability:()=>QX,toggleAudioLabel:()=>i2,tokenize:()=>lm,trainingCapability:()=>fQ,trainingProviderCapability:()=>QZ,transcodeBody:()=>O2,transformSecretWrite:()=>Qt,tryConvertUnit:()=>EQ,turnProviderCapability:()=>Jz,unitDimension:()=>SQ,unitsForDimension:()=>OQ,unreachableExtensionSlotRow:()=>dT,unwrapSchema:()=>ny,updateCapability:()=>eZ,userError:()=>c8,userManagementCapability:()=>pZ,userPasskeysCapability:()=>Xz,vacuumControlCapability:()=>_Z,validateComposition:()=>Vb,validateCustomAddress:()=>xE,validateExpressionSource:()=>Im,validateRecipeBounds:()=>$m,valveCapability:()=>bZ,vectorDimFromBase64:()=>bte,vectorIndexDimConflictError:()=>_B,vectorStoreCapability:()=>xB,vibrationCapability:()=>SZ,videoclipsCapability:()=>GB,viewerLinkBaseOf:()=>eE,viewerUiCapability:()=>YB,waterHeaterCapability:()=>wZ,weatherCapability:()=>EZ,webrtcClientHintsSchema:()=>XB,webrtcSessionCapability:()=>aV,weeklyMaskIndex:()=>cY,weeklyMaskIsUniform:()=>lY,weeklyMaskToWindows:()=>uY,widenDeviceConstructor:()=>V$,windowsToWeeklyMask:()=>dY,wiringAddonHealthSchema:()=>ii,wiringHealthSnapshotSchema:()=>oi,wiringNodeHealthSchema:()=>ai,wiringProbeKindSchema:()=>ni,wiringProbeResultSchema:()=>ri,withFieldFrom:()=>a5,withLocationMode:()=>Jl,withoutCallerStamp:()=>Fx,withoutField:()=>o5,writeModelBoundSetting:()=>G8,zodEntriesToConfigUI:()=>n0,zoneAnalyticsCapability:()=>FZ,zoneRulesCapability:()=>LZ,zonesCapability:()=>uL});export{Y4 as $,Zw as $n,Gu as $r,N$ as $t,F6 as A,ze as Ai,BM as An,g_ as Ar,r2 as At,f6 as B,sj as Bn,em as Br,n1 as Bt,V8 as C,it as Ci,EB as Cn,Zv as Cr,q0 as Ct,_8 as D,He as Di,zM as Dn,Jv as Dr,n2 as Dt,w8 as E,Ke as Ei,TM as En,Yv as Er,Q0 as Et,M6 as F,pM as Fn,Ym as Fr,h0 as Ft,y6 as G,QE as Gn,jd as Gr,c1 as Gt,m6 as H,ok as Hn,jp as Hr,m1 as Ht,j6 as I,dM as In,Xm as Ir,X1 as It,S3 as J,xE as Jn,dd as Jr,$$ as Jt,U3 as K,VE as Kn,wd as Kr,g1 as Kt,D6 as L,rj as Ln,Zm as Lr,W1 as Lt,S6 as M,GM as Mn,z as Mr,i2 as Mt,O6 as N,CM as Nn,R as Nr,R0 as Nt,E8 as O,We as Oi,DM as On,V as Or,Z0 as Ot,A6 as P,fM as Pn,ih as Pr,b0 as Pt,Q4 as Q,$w as Qn,$u as Qr,O$ as Qt,w6 as R,Lk as Rn,$m as Rr,C1 as Rt,q8 as S,$e as Si,DB as Sn,qv as Sr,p2 as St,G8 as T,Be as Ti,NL as Tn,$v as Tr,Y0 as Tt,h6 as U,dk as Un,Tf as Ur,h1 as Ut,d6 as V,bk as Vn,Np as Vr,p1 as Vt,v6 as W,kO as Wn,sf as Wr,_1 as Wt,n3 as X,tE as Xn,fd as Xr,W$ as Xt,a3 as Y,ZT as Yn,pd as Yr,H$ as Yt,Z4 as Z,tT as Zn,Qu as Zr,F$ as Zt,a5 as _,Li as _i,Hq as _n,Qy as _r,H2 as _t,a9 as a,su as ai,GQ as an,nw as ar,Y2 as at,K8 as b,yt as bi,hH as bn,Rv as br,h2 as bt,o9 as c,Ac as ci,PQ as cn,kC as cr,m4 as ct,l5 as d,Ic as di,DQ as dn,VS as dr,w4 as dt,Ku as ei,s$ as en,uw as er,X4 as et,r5 as f,gc as fi,EQ as fn,PS as fr,O4 as ft,i5 as g,rc as gi,$q as gn,sx as gr,V2 as gt,$8 as h,tc as hi,lX as hn,fx as hr,I2 as ht,g9 as i,ku as ii,KQ as in,lw as ir,l4 as it,B6 as j,Ie as ji,PM as jn,eg as jr,t2 as jt,G6 as k,w as ki,VM as kn,Qv as kr,X0 as kt,L7 as l,Nc as li,zQ as ln,jC as lr,p4 as lt,t5 as m,k as mi,OQ as mn,px as mr,h4 as mt,M9 as n,Eu as ni,XQ as nn,tw as nr,g4 as nt,s9 as o,cu as oi,IQ as on,qC as or,x4 as ot,u5 as p,qs as pi,SQ as pn,Zb as pr,X2 as pt,H3 as q,SE as qn,Wd as qr,u1 as qt,_9 as r,Tu as ri,JQ as rn,KC as rr,v4 as rt,l9 as s,Hl as si,FQ as sn,cw as sr,f4 as st,Mte as t,Ju as ti,qQ as tn,fw as tr,E4 as tt,v7 as u,Pc as ui,NQ as un,oC as ur,o4 as ut,o5 as v,lt as vi,_G as vn,Tv as vr,L2 as vt,U8 as w,at as wi,wB as wn,Uv as wr,J0 as wt,Y8 as x,ht as xi,gH as xn,Lv as xr,d2 as xt,J8 as y,dt as yi,YH as yn,Cv as yr,F2 as yt,P6 as z,GA as zn,Fm as zr,Z as zt};