UNPKG

pwa-synergy-api

Version:

synergy application api

1,068 lines (1,065 loc) 55.8 kB
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.routeContainer{position:absolute;inset:0px 0px 0px;display:flex;flex-direction:column}body>.dragging-layer{position:absolute!important;z-index:9999;overflow:visible;margin:0;padding:0;border:none;pointer-events:none;opacity:.6;font-size:14px;line-height:1.5;white-space:nowrap;--default-background-color: var(--pwa-synergy-background-color, #141414)}body>.dragging-layer>*:first-child{pointer-events:none!important;overflow:hidden!important;transform:translate(-50%,-50%)!important;box-shadow:0 0 8px var(--pwa-synergy-drag-shadow-color, rgba(255, 255, 255, .1)),inset 0 0 8px var(--pwa-synergy-drag-shadow-color, rgba(255, 255, 255, .1))}body>.dragging-layer>.dragging{opacity:1!important}body>.dragging-layer>div:last-child{position:absolute;left:12px;top:12px}.drag-initiator{user-select:none;-webkit-user-select:none;touch-action:none}.drag-accept-reject:after{content:"🚫"}.dock{box-sizing:border-box;width:100%;height:100%;position:absolute;overflow:hidden;display:flex}.dock-bar{font-size:14px;line-height:1.5;box-sizing:border-box;overflow:hidden;position:relative;white-space:nowrap;outline:none;zoom:1}.dock-ink-bar{position:absolute;box-sizing:border-box;margin-top:-3px;background-color:var(--pwa-synergy-dock_ink-color, #108ee9);transform-origin:0 0;width:0;height:0}.dock-tab-btn-disabled{cursor:default;color:var(--pwa-synergy-dock-tab-disabled-color, #ccc)}.dock-nav-animated{transition:transform .25s cubic-bezier(.35,0,.25,1)}.dock-tab{box-sizing:border-box;position:relative;display:block;min-width:30px;height:30px;text-align:center;transition:color .25s cubic-bezier(.35,0,.25,1);padding:0;font-weight:500;border-bottom:1px solid var(--pwa-synergy-dock-tab-border-bottom-color, #434343);cursor:pointer;float:left;margin-right:10px;background:var(--pwa-synergy-background-color, #141414);outline:none}.dock-tab.dragging{opacity:.3}.dock-tab>div{padding:4px 14px;outline-color:var(--pwa-synergy-dock-tab-div-color, #108ee9)}.dock-tab:hover{color:var(--pwa-synergy-dock-tab-hover-color, #40a5ed)}.dock-tab-active,.dock-tab-active:hover{color:var(--pwa-synergy-dock-tab--active-hover-color, #108ee9);cursor:default;transform:translateZ(0)}.dock-tab-disabled{cursor:default;color:var(--pwa-synergy-dock_disabled-color, #ccc)}.dock-tab-disabled:hover{color:var(--pwa-synergy-dock_disabled-color, #ccc)}.dock-content-animated{transition:margin .3s}.dock-bottom>.dock-nav .dock-ink-bar-animated,.dock-top>.dock-nav .dock-ink-bar-animated,.dock-bottom>div>.dock-nav .dock-ink-bar-animated,.dock-top>div>.dock-nav .dock-ink-bar-animated{transition:width .3s,left .3s,right .3s}.dock-content-animated .dock-tabpane{flex-shrink:0}.no-flexbox .dock-content{transform:none!important;overflow:auto}.dock-tabpane:not(.dock-tabpane-active){animation-name:dock-fadeOut;animation-duration:.5s}@keyframes dock-fadeOut{0%{height:100%;visibility:visible}to{height:100%;visibility:visible}}.dock-top{flex-direction:column}.dock-top .dock-bar{flex:0 0 auto;background:var(--pwa-synergy-background-color, #141414);border-bottom:1px solid var(--pwa-synergy-dock-top-border-bottom-color, #282828);padding-left:8px}.dock-top .dock-content-animated{flex-direction:row}.dock-top .dock-tab-next{right:2px}.dock-top .dock-ink-bar{height:2px;bottom:0;left:0}.dock-tab-close-btn{position:absolute;cursor:pointer;font-family:Fredoka One,sans-serif;color:var(--pwa-synergy-dock-top-close-color, #444);right:-3px;font-size:12px;width:16px;text-align:center;top:6px;outline:none;transition:all .25s ease-in-out}.dock-tab-close-btn:before{content:"X"}.dock-tab-close-btn:hover,.dock-tab-close-btn:focus{color:var(--pwa-synergy-dock-top-close-focus-color, #fff);transform:scale(1.1)}.dock-tab:hover .dock-tab-close-btn,.dock-tab-close-btn:focus{opacity:1;color:var(--pwa-synergy-dock-top-close-hover-color, #a2a2a2)}.dock-tab-hit-area{position:absolute;pointer-events:none;top:0;bottom:0;left:-5px;right:-5px}.dock-pane-cache{width:100%;height:100%}.dock-content{display:flex;width:100%;height:100%}.dock-content-holder{flex:auto}.dock-top>.dock-content-holder{height:0}.dock-content .dock-tabpane{position:relative;overflow:hidden;width:100%;height:100%;outline:none;flex:none}.dock-nav{display:flex;flex:none;position:relative}.dock-nav-operations{display:flex}.dock-nav-more{height:30px;border:none;color:var(--pwa-synergy-dock-nav-more-color, rgba(255, 255, 255, .85));background:transparent;cursor:pointer;position:relative;align-self:flex-end}.dock-nav-more:after{position:absolute;z-index:1;content:"";pointer-events:none;width:30px;height:30px;left:-30px;top:0;box-shadow:inset -10px 0 8px -8px var(--pwa-synergy-dock-nav-shadow-color, rgba(0, 0, 0, .08))}.dock-nav-wrap{position:relative;display:flex;flex:auto;align-self:stretch;overflow:hidden;white-space:nowrap;transform:translate(0)}.dock-nav-list{display:flex;position:relative;transition:transform .3s}.dock-extra-content{display:flex;height:30px}.dock-dropdown{box-sizing:border-box;margin:0;padding:0;color:var(--pwa-synergy-dock_dropdown-color, rgba(255, 255, 255, .85));font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";position:absolute;top:-9999px;left:-9999px;z-index:1050;display:block}.dock-dropdown-hidden{display:none}.dock-dropdown-menu{max-height:200px;margin:0;padding:4px 0;overflow-x:hidden;overflow-y:auto;text-align:left;list-style-type:none;background-color:var(--pwa-synergy-background-color, #141414);background-clip:padding-box;border-radius:2px;outline:none;box-shadow:0 3px 6px -4px var(--pwa-synergy-dock_dropdown-shadow1, rgba(0, 0, 0, .12)),0 6px 16px 0 var(--pwa-synergy-dock_dropdown-shadow2, rgba(0, 0, 0, .08)),0 9px 28px 8px var(--pwa-synergy-dock_dropdown-shadow3, rgba(0, 0, 0, .05))}.dock-dropdown-menu-item{min-width:120px;margin:0;padding:5px 12px;overflow:hidden;color:var(--pwa-synergy-dock_dropdown_menu_item-color, rgba(255, 255, 255, .85));font-weight:400;font-size:14px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s;position:relative}.dock-dropdown-menu-item .dock-tab-hit-area{left:0;right:0}.dock-dropdown-menu-item .dock-tab-close-btn{right:2px}.dock-dropdown-menu-item:hover{background:var(--pwa-synergy-dock-dropdown_menu_item-hover, #2b2b2b)}.dock-dropdown-menu-item-disabled,.dock-dropdown-menu-item-disabled:hover{color:var(--pwa-synergy-dock-tab-disabled-color, #ccc);background:0 0;cursor:not-allowed}body.dock-dragging .dock-tab-hit-area{pointer-events:inherit}body.dock-dragging{user-select:none;-webkit-user-select:none}body.dock-dragging iframe{pointer-events:none}.dock-panel{box-sizing:border-box;position:relative;color:var(--pwa-synergy-dock-panel-color, rgba(255, 255, 255, .85));background:var(--pwa-synergy-background-color, #141414);border:1px solid var(--pwa-synergy-dock-panel-border, #434343)}.dock-panel.dragging{opacity:.3}.dock-panel-drag-size{position:absolute;z-index:300}.dock-panel-drag-size-t{top:-4px;left:4px;right:4px;height:8px;cursor:ns-resize}.dock-panel-drag-size-b{bottom:-4px;left:4px;right:4px;height:8px;cursor:ns-resize}.dock-panel-drag-size-l{left:-4px;top:4px;bottom:4px;width:8px;cursor:ew-resize}.dock-panel-drag-size-r{right:-4px;top:4px;bottom:4px;width:8px;cursor:ew-resize}.dock-panel-drag-size-t-l{top:-4px;left:-4px;width:8px;height:8px;cursor:nwse-resize}.dock-panel-drag-size-t-r{top:-4px;right:-4px;width:8px;height:8px;cursor:nesw-resize}.dock-panel-drag-size-b-l{bottom:-4px;left:-4px;width:8px;height:8px;cursor:nesw-resize}.dock-panel-drag-size-b-r{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17'%3E%3Cpath fill='rgba(255, 255, 255, 0.15)' d='M2 12 L12 2 L12 12z'/%3E%3C/svg%3E");bottom:-4px;right:-4px;width:17px;height:17px;cursor:nwse-resize}.dock-box,.divider-box{box-sizing:border-box;display:flex;align-items:stretch}.divider-box>*:nth-child(odd){flex:1 1 auto}.dock-divider{box-sizing:border-box;flex:0 0 4px;background:var(--pwa-synergy-border-divider-bk-color, rgba(0, 0, 0, 0));z-index:1}.dock-hbox>.dock-divider{transform:scaleX(3);cursor:ew-resize}.dock-vbox{flex-direction:column}.dock-vbox>.dock-divider{transform:scaleY(3);cursor:ns-resize}.dock-fbox{pointer-events:none;z-index:200}.dock-fbox>.dock-panel{position:absolute;pointer-events:visible;box-shadow:0 0 4px var(--pwa-synergy-dock-panel-shadow, #444)}.dock-fbox>.dock-panel.dragging{opacity:.8;pointer-events:none}.dock-mbox{z-index:250;width:100%;height:100%}.dock-mbox>.dock-panel{width:100%;height:100%;box-shadow:0 0 4px var(--pwa-synergy-dock-panel-shadow, #444)}.dock-mbox.dock-mbox-show{visibility:visible;animation:dock-mbox-show .2s ease}.dock-mbox.dock-mbox-hide{pointer-events:none;visibility:hidden;opacity:0;animation:dock-mbox-hide .2s ease}@keyframes dock-mbox-show{0%{transform:scale(.9);visibility:visible}to{transform:scale(1);visibility:visible}}@keyframes dock-mbox-hide{0%{transform:scale(1);visibility:visible;opacity:1}to{transform:scale(.9);visibility:visible;opacity:0}}.dock-wbox{position:absolute;width:100%;height:100%}.dock-wbox>.dock-panel{border:none;width:100%;height:100%}.dock-layout{overflow:hidden;position:relative}.dock-layout>.dock-box{position:absolute;width:100%;height:100%}.dock-layout>.dock-drop-indicator{position:absolute;box-sizing:border-box;pointer-events:none;z-index:400;border:solid 1px var(--pwa-synergy-dock-fbox-border, #fff);background:var(--pwa-synergy-dock-layour-bk, #125d94);opacity:.5;box-shadow:0 0 4px var(--pwa-synergy-dock-fbox-shadow, #434343);display:none;transition:all .1s ease-out}.dock-drop-edge{position:absolute;top:30px;left:0;right:0;bottom:0;z-index:100;background:var(--pwa-synergy-dock-drop-edge-bk, white);border:none;opacity:.01}.dock-drop-layer{position:absolute;pointer-events:none;top:30px;left:0;right:0;bottom:0}.dock-drop-layer .dock-drop-square{position:absolute;box-sizing:border-box;pointer-events:visible;z-index:300;width:32px;height:32px;font-family:Fredoka One,sans-serif;color:var(--pwa-synergy-dock-layer-color, #444);background:var(--pwa-synergy-background-color, #141414);border:1px solid transparent;left:calc(50% - 16px);top:calc(50% - 16px)}.dock-drop-layer .dock-drop-square .dock-drop-square-box{box-sizing:border-box;border:1px solid var(--pwa-synergy-dock-drop-border, #434343);width:100%;height:100%}.dock-drop-layer .dock-drop-square:before{position:absolute;width:100%;height:100%;display:block;line-height:30px;text-align:center}.dock-drop-layer .dock-drop-float{z-index:100;left:0;top:0;width:100%;height:100%;border:none;opacity:.01}.dock-drop-layer .dock-drop-left{left:calc(50% - 48px)}.dock-drop-layer .dock-drop-left.dock-drop-deep{left:calc(50% - 64px);width:16px}.dock-drop-layer .dock-drop-left:before{content:">";transform:rotate(180deg)}.dock-drop-layer .dock-drop-right{left:calc(50% + 16px)}.dock-drop-layer .dock-drop-right.dock-drop-deep{left:calc(50% + 48px);width:16px}.dock-drop-layer .dock-drop-right:before{content:">"}.dock-drop-layer .dock-drop-top{top:calc(50% - 48px)}.dock-drop-layer .dock-drop-top.dock-drop-deep{top:calc(50% - 64px);height:16px}.dock-drop-layer .dock-drop-top.dock-drop-deep:before{line-height:14px}.dock-drop-layer .dock-drop-top:before{content:">";transform:rotate(270deg)}.dock-drop-layer .dock-drop-bottom{top:calc(50% + 16px)}.dock-drop-layer .dock-drop-bottom.dock-drop-deep{top:calc(50% + 48px);height:16px}.dock-drop-layer .dock-drop-bottom.dock-drop-deep:before{line-height:14px}.dock-drop-layer .dock-drop-bottom:before{content:">";transform:rotate(90deg)}.dock-drop-layer .dock-drop-square-dropping{background:#125d94;color:#fff}.dock-panel.dock-panel-dropping .dock-tab-close-btn{pointer-events:none}.dock-panel-max-btn,.dock-panel-min-btn{height:15px;width:15px;font-family:Fredoka One,sans-serif;margin:2px 2px 2px 0;padding:6px 4px 4px 2px;cursor:pointer;transition:all .25s ease-in-out;outline:none;user-select:none}.dock-panel-max-btn:before,.dock-panel-min-btn:before{position:absolute;content:" ";border:2px solid var(--pwa-synergy-panel-min-border, #444);border-radius:1px;width:9px;height:9px}.dock-panel-max-btn:hover,.dock-panel-min-btn:hover,.dock-panel-max-btn:focus,.dock-panel-min-btn:focus{color:var(--pwa-synergy-panel-min-focus, #a2a2a2)}.dock-panel-max-btn:hover:before,.dock-panel-min-btn:hover:before,.dock-panel-max-btn:focus:before,.dock-panel-min-btn:focus:before{border-color:var(--pwa-synergy-panel-min-focus, #a2a2a2)}.dock-panel-max-btn:hover,.dock-panel-min-btn:hover{transform:scale(1.1)}.dock-panel-min-btn:before{position:absolute;border-radius:1px;width:9px;height:9px;border:none;content:"-";color:var(--pwa-synergy-panel-min-before, #666);font-size:20px;line-height:4px}.dock-panel-min-btn:hover:before,.dock-panel-min-btn:focus:before{color:var(--pwa-synergy-panel-min-focus-before, #999)}.dock-panel.dock-style-place-holder{border:none}.dock-panel.dock-style-place-holder .dock-bar{display:none}.dock-layout>:not(.dock-fbox) .dock-panel.dock-style-headless{border:none}.dock-layout>:not(.dock-fbox) .dock-panel.dock-style-headless .dock-bar{position:absolute;z-index:1;opacity:0;height:20px;width:100%;transition:all .15s ease-in-out}.dock-layout>:not(.dock-fbox) .dock-panel.dock-style-headless .dock-bar:hover,.dock-layout>:not(.dock-fbox) .dock-panel.dock-style-headless .dock-bar:focus-within,.dock-layout>:not(.dock-fbox) .dock-panel.dock-style-headless.dock-panel-dropping .dock-bar{opacity:1;height:31px}.dock-layout>:not(.dock-fbox) .dock-panel.dock-style-headless .dock-content{height:100%}.dock-panel.dock-style-main{border:none}.dock-panel.dock-style-main .dock-bar{background:none;border-bottom:1px solid var(--pwa-synergy-panel-main-border, #282828)}.dock-panel.dock-style-main .dock-tab{background:var(--pwa-synergy-background-color, #141414)}.dock-panel.dock-style-card .dock-tab{margin-right:2px;border:1px solid var(--pwa-synergy-style-card-border, #434343);border-radius:5px 5px 0 0}.dock-panel.dock-style-card .dock-tab.dock-tab-active{border-bottom:1px solid var(--pwa-synergy-background-color, #141414);background:var(--pwa-synergy-background-color, #141414)}.dock-panel.dock-style-card .dock-bar{border-bottom:1px solid var(--pwa-synergy-style-card-border, #434343);overflow:visible}.dock-panel.dock-style-card .dock-nav-wrap{padding-top:5px;transform:translateY(1px)}.dock-panel.dock-style-card .dock-ink-bar{background:var(--pwa-synergy-background-color, #141414);opacity:0}.dock-panel.dock-style-card .dock-tab-hit-area{left:-2px;right:-2px}.dock-panel.dock-style-card .dock-panel-max-btn,.dock-panel.dock-style-card .dock-panel-min-btn{margin-top:4px}.dock-panel.dock-style-card .dock-tab-close-btn{right:0;font-size:10px;top:8px}.dock-panel.dock-style-card .dock-extra-content{height:35px}.windowContainer{height:100%;width:100%;display:flex;flex-direction:column}.windowToolBar,.windowStatusBar{width:100%}.dockLayoutContainer{flex:1}`)),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); import Ke, { useRef as ke, useMemo as J, useState as ze, useEffect as Xe } from "react"; import { createBrowserRouter as Ot, RouterProvider as xt, Outlet as jt } from "react-router-dom"; import Qe, { trackPage as Ze } from "pwa-synergy-umami"; import At from "rc-dock"; const cn = (n) => { n && n instanceof Function && import("./web-vitals-f3c89987.js").then(({ getCLS: t, getFID: o, getFCP: a, getLCP: s, getTTFB: l }) => { t(n), o(n), a(n), s(n), l(n); }); }, Pt = !!(window.location.hostname === "localhost" || // [::1] is the IPv6 localhost address. window.location.hostname === "[::1]" || // 127.0.0.0/8 are considered localhost for IPv4. window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)); function ln(n) { if (process.env.NODE_ENV === "production" && "serviceWorker" in navigator) { if (new URL(process.env.PUBLIC_URL ?? "", window.location.href).origin !== window.location.origin) return; window.addEventListener("load", () => { const o = `${process.env.PUBLIC_URL}/service-worker.js`; Pt ? (Wt(o, n), navigator.serviceWorker.ready.then(() => { console.log( "This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA" ); })) : et(o, n); }); } } function et(n, t) { navigator.serviceWorker.register(n).then((o) => { o.onupdatefound = () => { const a = o.installing; a != null && (a.onstatechange = () => { a.state === "installed" && (navigator.serviceWorker.controller ? (console.log( "New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA." ), t && t.onUpdate && t.onUpdate(o)) : (console.log("Content is cached for offline use."), t && t.onSuccess && t.onSuccess(o))); }); }; }).catch((o) => { console.error("Error during service worker registration:", o); }); } function Wt(n, t) { fetch(n, { headers: { "Service-Worker": "script" } }).then((o) => { const a = o.headers.get("content-type"); o.status === 404 || a != null && a.indexOf("javascript") === -1 ? navigator.serviceWorker.ready.then((s) => { s.unregister().then(() => { window.location.reload(); }); }) : et(n, t); }).catch(() => { console.log("No internet connection found. App is running in offline mode."); }); } function un() { "serviceWorker" in navigator && navigator.serviceWorker.ready.then((n) => { n.unregister(); }).catch((n) => { console.error(n.message); }); } const re = { isMobile: () => window.matchMedia("only screen and (max-width: 600px)").matches }, Dt = (n) => { const t = ke(/* @__PURE__ */ new Map()); return [(l) => { const c = n.get(l); if (c) { const h = t.current.get(l) ?? { activeCount: 0, totalCount: 0 }; if (!c.instances || c.instances === 1 && h.activeCount === 0 || c.instances > 1 && c.instances >= h.activeCount + 1) return !0; } return !1; }, (l) => { if (n.get(l)) { const h = t.current.get(l) ?? { activeCount: 0, totalCount: 0 }; return h.activeCount++, h.totalCount++, t.current.set(l, h), h.activeCount; } }, (l) => { if (n.get(l)) { const h = t.current.get(l) ?? { activeCount: 0, totalCount: 0 }; h.activeCount--, t.current.set(l, h); } }]; }; var Ne = { exports: {} }, te = {}; /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var qe; function Lt() { if (qe) return te; qe = 1; var n = Ke, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 }; function c(h, d, v) { var b, S = {}, A = null, F = null; v !== void 0 && (A = "" + v), d.key !== void 0 && (A = "" + d.key), d.ref !== void 0 && (F = d.ref); for (b in d) a.call(d, b) && !l.hasOwnProperty(b) && (S[b] = d[b]); if (h && h.defaultProps) for (b in d = h.defaultProps, d) S[b] === void 0 && (S[b] = d[b]); return { $$typeof: t, type: h, key: A, ref: F, props: S, _owner: s.current }; } return te.Fragment = o, te.jsx = c, te.jsxs = c, te; } var ne = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Je; function Ft() { return Je || (Je = 1, process.env.NODE_ENV !== "production" && function() { var n = Ke, t = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), h = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), B = Symbol.iterator, $ = "@@iterator"; function K(e) { if (e === null || typeof e != "object") return null; var r = B && e[B] || e[$]; return typeof r == "function" ? r : null; } var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function I(e) { { for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++) i[u - 1] = arguments[u]; k("error", e, i); } } function k(e, r, i) { { var u = P.ReactDebugCurrentFrame, E = u.getStackAddendum(); E !== "" && (r += "%s", i = i.concat([E])); var T = i.map(function(p) { return String(p); }); T.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, T); } } var C = !1, H = !1, Y = !1, oe = !1, me = !1, x; x = Symbol.for("react.module.reference"); function ge(e) { return !!(typeof e == "string" || typeof e == "function" || e === a || e === l || me || e === s || e === v || e === b || oe || e === F || C || H || Y || typeof e == "object" && e !== null && (e.$$typeof === A || e.$$typeof === S || e.$$typeof === c || e.$$typeof === h || e.$$typeof === d || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. e.$$typeof === x || e.getModuleId !== void 0)); } function Ee(e, r, i) { var u = e.displayName; if (u) return u; var E = r.displayName || r.name || ""; return E !== "" ? i + "(" + E + ")" : i; } function ae(e) { return e.displayName || "Context"; } function m(e) { if (e == null) return null; if (typeof e.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case a: return "Fragment"; case o: return "Portal"; case l: return "Profiler"; case s: return "StrictMode"; case v: return "Suspense"; case b: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case h: var r = e; return ae(r) + ".Consumer"; case c: var i = e; return ae(i._context) + ".Provider"; case d: return Ee(e, e.render, "ForwardRef"); case S: var u = e.displayName || null; return u !== null ? u : m(e.type) || "Memo"; case A: { var E = e, T = E._payload, p = E._init; try { return m(p(T)); } catch { return null; } } } return null; } var w = Object.assign, N = 0, g, M, X, Q, Z, V, xe; function je() { } je.__reactDisabledLog = !0; function at() { { if (N === 0) { g = console.log, M = console.info, X = console.warn, Q = console.error, Z = console.group, V = console.groupCollapsed, xe = console.groupEnd; var e = { configurable: !0, enumerable: !0, value: je, writable: !0 }; Object.defineProperties(console, { info: e, log: e, warn: e, error: e, group: e, groupCollapsed: e, groupEnd: e }); } N++; } } function it() { { if (N--, N === 0) { var e = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: w({}, e, { value: g }), info: w({}, e, { value: M }), warn: w({}, e, { value: X }), error: w({}, e, { value: Q }), group: w({}, e, { value: Z }), groupCollapsed: w({}, e, { value: V }), groupEnd: w({}, e, { value: xe }) }); } N < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var be = P.ReactCurrentDispatcher, Te; function ie(e, r, i) { { if (Te === void 0) try { throw Error(); } catch (E) { var u = E.stack.trim().match(/\n( *(at )?)/); Te = u && u[1] || ""; } return ` ` + Te + e; } } var Re = !1, se; { var st = typeof WeakMap == "function" ? WeakMap : Map; se = new st(); } function Ae(e, r) { if (!e || Re) return ""; { var i = se.get(e); if (i !== void 0) return i; } var u; Re = !0; var E = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var T; T = be.current, be.current = null, at(); try { if (r) { var p = function() { throw Error(); }; if (Object.defineProperty(p.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(p, []); } catch (L) { u = L; } Reflect.construct(e, [], p); } else { try { p.call(); } catch (L) { u = L; } e.call(p.prototype); } } else { try { throw Error(); } catch (L) { u = L; } e(); } } catch (L) { if (L && u && typeof L.stack == "string") { for (var f = L.stack.split(` `), O = u.stack.split(` `), R = f.length - 1, _ = O.length - 1; R >= 1 && _ >= 0 && f[R] !== O[_]; ) _--; for (; R >= 1 && _ >= 0; R--, _--) if (f[R] !== O[_]) { if (R !== 1 || _ !== 1) do if (R--, _--, _ < 0 || f[R] !== O[_]) { var j = ` ` + f[R].replace(" at new ", " at "); return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, j), j; } while (R >= 1 && _ >= 0); break; } } } finally { Re = !1, be.current = T, it(), Error.prepareStackTrace = E; } var q = e ? e.displayName || e.name : "", Ve = q ? ie(q) : ""; return typeof e == "function" && se.set(e, Ve), Ve; } function ct(e, r, i) { return Ae(e, !1); } function lt(e) { var r = e.prototype; return !!(r && r.isReactComponent); } function ce(e, r, i) { if (e == null) return ""; if (typeof e == "function") return Ae(e, lt(e)); if (typeof e == "string") return ie(e); switch (e) { case v: return ie("Suspense"); case b: return ie("SuspenseList"); } if (typeof e == "object") switch (e.$$typeof) { case d: return ct(e.render); case S: return ce(e.type, r, i); case A: { var u = e, E = u._payload, T = u._init; try { return ce(T(E), r, i); } catch { } } } return ""; } var le = Object.prototype.hasOwnProperty, Pe = {}, We = P.ReactDebugCurrentFrame; function ue(e) { if (e) { var r = e._owner, i = ce(e.type, e._source, r ? r.type : null); We.setExtraStackFrame(i); } else We.setExtraStackFrame(null); } function ut(e, r, i, u, E) { { var T = Function.call.bind(le); for (var p in e) if (T(e, p)) { var f = void 0; try { if (typeof e[p] != "function") { var O = Error((u || "React class") + ": " + i + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw O.name = "Invariant Violation", O; } f = e[p](r, p, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (R) { f = R; } f && !(f instanceof Error) && (ue(E), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, p, typeof f), ue(null)), f instanceof Error && !(f.message in Pe) && (Pe[f.message] = !0, ue(E), I("Failed %s type: %s", i, f.message), ue(null)); } } } var ft = Array.isArray; function _e(e) { return ft(e); } function dt(e) { { var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; return i; } } function pt(e) { try { return De(e), !1; } catch { return !0; } } function De(e) { return "" + e; } function Le(e) { if (pt(e)) return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dt(e)), De(e); } var ee = P.ReactCurrentOwner, ht = { key: !0, ref: !0, __self: !0, __source: !0 }, Fe, Be, Se; Se = {}; function vt(e) { if (le.call(e, "ref")) { var r = Object.getOwnPropertyDescriptor(e, "ref").get; if (r && r.isReactWarning) return !1; } return e.ref !== void 0; } function mt(e) { if (le.call(e, "key")) { var r = Object.getOwnPropertyDescriptor(e, "key").get; if (r && r.isReactWarning) return !1; } return e.key !== void 0; } function gt(e, r) { if (typeof e.ref == "string" && ee.current && r && ee.current.stateNode !== r) { var i = m(ee.current.type); Se[i] || (I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', m(ee.current.type), e.ref), Se[i] = !0); } } function Et(e, r) { { var i = function() { Fe || (Fe = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); }; i.isReactWarning = !0, Object.defineProperty(e, "key", { get: i, configurable: !0 }); } } function bt(e, r) { { var i = function() { Be || (Be = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); }; i.isReactWarning = !0, Object.defineProperty(e, "ref", { get: i, configurable: !0 }); } } var Tt = function(e, r, i, u, E, T, p) { var f = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, // Built-in properties that belong on the element type: e, key: r, ref: i, props: p, // Record the component responsible for creating this element. _owner: T }; return f._store = {}, Object.defineProperty(f._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(f, "_self", { configurable: !1, enumerable: !1, writable: !1, value: u }), Object.defineProperty(f, "_source", { configurable: !1, enumerable: !1, writable: !1, value: E }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f; }; function Rt(e, r, i, u, E) { { var T, p = {}, f = null, O = null; i !== void 0 && (Le(i), f = "" + i), mt(r) && (Le(r.key), f = "" + r.key), vt(r) && (O = r.ref, gt(r, E)); for (T in r) le.call(r, T) && !ht.hasOwnProperty(T) && (p[T] = r[T]); if (e && e.defaultProps) { var R = e.defaultProps; for (T in R) p[T] === void 0 && (p[T] = R[T]); } if (f || O) { var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; f && Et(p, _), O && bt(p, _); } return Tt(e, f, O, E, u, ee.current, p); } } var Ie = P.ReactCurrentOwner, Me = P.ReactDebugCurrentFrame; function z(e) { if (e) { var r = e._owner, i = ce(e.type, e._source, r ? r.type : null); Me.setExtraStackFrame(i); } else Me.setExtraStackFrame(null); } var Ce; Ce = !1; function ye(e) { return typeof e == "object" && e !== null && e.$$typeof === t; } function Ue() { { if (Ie.current) { var e = m(Ie.current.type); if (e) return ` Check the render method of \`` + e + "`."; } return ""; } } function _t(e) { { if (e !== void 0) { var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber; return ` Check your code at ` + r + ":" + i + "."; } return ""; } } var $e = {}; function St(e) { { var r = Ue(); if (!r) { var i = typeof e == "string" ? e : e.displayName || e.name; i && (r = ` Check the top-level render call using <` + i + ">."); } return r; } } function Ge(e, r) { { if (!e._store || e._store.validated || e.key != null) return; e._store.validated = !0; var i = St(r); if ($e[i]) return; $e[i] = !0; var u = ""; e && e._owner && e._owner !== Ie.current && (u = " It was passed a child from " + m(e._owner.type) + "."), z(e), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), z(null); } } function He(e, r) { { if (typeof e != "object") return; if (_e(e)) for (var i = 0; i < e.length; i++) { var u = e[i]; ye(u) && Ge(u, r); } else if (ye(e)) e._store && (e._store.validated = !0); else if (e) { var E = K(e); if (typeof E == "function" && E !== e.entries) for (var T = E.call(e), p; !(p = T.next()).done; ) ye(p.value) && Ge(p.value, r); } } } function It(e) { { var r = e.type; if (r == null || typeof r == "string") return; var i; if (typeof r == "function") i = r.propTypes; else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. r.$$typeof === S)) i = r.propTypes; else return; if (i) { var u = m(r); ut(i, e.props, "prop", u, e); } else if (r.PropTypes !== void 0 && !Ce) { Ce = !0; var E = m(r); I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown"); } typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Ct(e) { { for (var r = Object.keys(e.props), i = 0; i < r.length; i++) { var u = r[i]; if (u !== "children" && u !== "key") { z(e), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), z(null); break; } } e.ref !== null && (z(e), I("Invalid attribute `ref` supplied to `React.Fragment`."), z(null)); } } function Ye(e, r, i, u, E, T) { { var p = ge(e); if (!p) { var f = ""; (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var O = _t(E); O ? f += O : f += Ue(); var R; e === null ? R = "null" : _e(e) ? R = "array" : e !== void 0 && e.$$typeof === t ? (R = "<" + (m(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, f); } var _ = Rt(e, r, i, E, T); if (_ == null) return _; if (p) { var j = r.children; if (j !== void 0) if (u) if (_e(j)) { for (var q = 0; q < j.length; q++) He(j[q], e); Object.freeze && Object.freeze(j); } else I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else He(j, e); } return e === a ? Ct(_) : It(_), _; } } function yt(e, r, i) { return Ye(e, r, i, !0); } function wt(e, r, i) { return Ye(e, r, i, !1); } var kt = wt, Nt = yt; ne.Fragment = a, ne.jsx = kt, ne.jsxs = Nt; }()), ne; } process.env.NODE_ENV === "production" ? Ne.exports = Lt() : Ne.exports = Ft(); var y = Ne.exports; const Bt = (n) => { const { components: t, newTab: o, panelId: a, commands: s } = n, l = (c, h) => { try { o(h ?? a, c, null, s); } catch (d) { console.log(d); } }; return /* @__PURE__ */ y.jsx("div", { children: /* @__PURE__ */ y.jsx("select", { className: "combo", children: t.map( (c) => /* @__PURE__ */ y.jsx( "option", { id: c.component.id, value: c.component.id, onClick: () => l(c.component.id, c.panelId), children: c.component.title } ) ) }) }); }; const Mt = (n) => n !== "" && n.charAt(n.length - 1) === "/", Ut = (n) => n !== "" && n.charAt(0) === "/", $t = (n) => { const { appCommands: t, hideTitleBar: o, hideToolBar: a, hideStatusBar: s, titleBar: l, toolBar: c, statusBar: h } = n; return /* @__PURE__ */ y.jsxs("div", { className: "routeContainer", children: [ t && !o && l && l(t), t && !a && c && c(t), /* @__PURE__ */ y.jsx(jt, {}), t && !s && h && h(t) ] }); }, Gt = (n) => { const { components: t, titleBar: o, toolBar: a, statusBar: s, commands: l, routes: c, routeNotFoundComponent: h, hideTitleBar: d, hideToolBar: v, hideStatusBar: b } = n, S = Qe({ url: "/", title: `Router-${re.isMobile() ? "Mobile" : "Desktop"}`, disabledPageView: !0 }), A = (k, C) => { Ze({ url: k }), C ? sessionStorage.setItem("props", JSON.stringify(C)) : sessionStorage.removeItem("props"), window.location.href = Mt(document.location.origin) || Ut(k) ? document.location.origin + k : document.location.origin + "/" + k; }, F = () => { S("back", window.location.pathname), window.history.back(); }, B = J( () => l({ navigate: A, back: F }), [] ), $ = (k) => { const C = sessionStorage.getItem("props"), H = C !== null ? JSON.parse(C) : void 0, Y = t.get(k); return Y ? Y.content({ id: k, commands: B, props: H }) : /* @__PURE__ */ y.jsx(y.Fragment, {}); }, K = h ? [ { path: "*", Component: () => $(h) } ] : [], P = (k) => [ { path: "/", element: /* @__PURE__ */ y.jsx( $t, { appCommands: B, hideTitleBar: d, hideToolBar: v, hideStatusBar: b, titleBar: o, toolBar: a, statusBar: s } ), children: [ ...k.map( (C) => "index" in C ? { index: !0, Component: () => $(C.component) } : { path: C.path, Component: () => $(C.component), children: C.children ? P(C.children) : void 0 } ), ...K ] } ], I = J( () => Ot(P(c)), [B, d, v, b] ); return /* @__PURE__ */ y.jsx(xt, { router: I }); }; const Ht = (n) => { const t = {}; return n.componentGroups.forEach((o) => { t[o.id] = { disableDock: o.disableDock, floatable: o.floatable, maximizable: o.maximizable, tabLocked: o.tabLocked, panelExtra: o.panelExtra, preferredFloatHeight: o.preferredFloatHeight, preferredFloatWidth: o.preferredFloatWidth }; }), t; }, tt = (n) => n === "Horizontal" ? "horizontal" : "vertical", Yt = (n, t, o) => { const a = t.get(n); return a ? { id: n, title: a.title, group: a.group, closable: a.closable, minWidth: a.minWidth, minHeight: a.minHeight, content: () => a.content({ id: n, commands: o }) } : void 0; }, nt = (n, t, o, a) => { const s = n; if (s.components) { const c = s.customContentComponent ? t.get(s.customContentComponent) : void 0, h = s.minimumWidth && (c || s.addableComponents) ? { minWidth: s.minimumWidth, panelExtra: c ? () => c.content({ id: s.customContentComponent, commands: o }) : () => { var d; return /* @__PURE__ */ y.jsx( Bt, { components: (d = s.addableComponents) == null ? void 0 : d.map((v) => { const b = t.get(v.componentId); return b ? { component: b, panelId: v.panelId } : {}; }).filter((v) => v != null), newTab: a, commands: o, panelId: s.id } ); } } : s.minimumWidth ? { minWidth: s.minimumWidth } : void 0; return { id: s.id, size: s.size, tabs: s.components.map((d) => Yt(d, t, o)).filter((d) => d !== void 0).map((d) => d), panelLock: h }; } const l = n; return { mode: tt(l.orientation), size: l.size, children: l.children.map((c) => nt(c, t, o, a)) }; }, Vt = (n, t, o, a) => ({ dockbox: { mode: tt(n.panels.orientation), children: n.panels.children.map((c) => nt(c, t, o, a)) }, floatbox: { mode: "float", children: [] } }), zt = (n) => { const { layout: t, components: o, titleBar: a, toolBar: s, statusBar: l, commands: c, hideTitleBar: h, hideToolBar: d, hideStatusBar: v } = n, b = ke(null), S = ke(null), [A, F, B] = Dt(o), [$, K] = ze(0), [P, I] = ze(), k = J( () => new ResizeObserver((m) => { I(m[0].target.clientHeight); }), [] ), C = Qe({ url: "/", title: `Windowed-${re.isMobile() ? "Mobile" : "Desktop"}`, disabledPageView: !0 }), H = (m, w, N) => { C(m, w); const g = o.get(m); if (g && A(m)) { const M = g.instances === 1 ? m : `${m}_${F(m)}`; return { id: M, title: g.title, group: g.group, closable: g.closable, minHeight: g.minHeight, minWidth: g.minWidth, content: () => g.content({ id: m, instanceId: M, props: w, commands: N }) }; } }, Y = (m, w, N, g) => { var M, X, Q, Z; if (C(m, w), b.current && x) { const V = H(m, w, x); if (V) return b.current.dockMove( V, "floatbox", "float", N === "Custom" && g ? { left: (g == null ? void 0 : g.left) ?? ((M = S.current) != null && M.clientWidth ? ((X = S.current) == null ? void 0 : X.clientWidth) / 2 - ((g == null ? void 0 : g.width) ?? 0) / 2 : 50), top: (g == null ? void 0 : g.top) ?? ((Q = S.current) != null && Q.clientHeight ? ((Z = S.current) == null ? void 0 : Z.clientHeight) / 2 - ((g == null ? void 0 : g.height) ?? 0) / 2 : 50), height: g.height, width: g.width } : void 0 ), V.id; } }, oe = (m, w, N) => { if (C(w, { panelId: m, ...N }), b.current && x) { const g = H(w, N, x); if (g) return b.current.dockMove(g, m, "active"), g.id; } }, me = (m, w) => { if (C("close", m), b.current) { const N = b.current.find(w ?? m); B(m), N && b.current.dockMove(N, "", "remove"); } }, x = J( () => c({ openWindow: Y, newTab: oe, closeComponent: me }), [] ), ge = J( () => Vt(t, o, x, oe), [t, o, x] ), Ee = J(() => Ht(t), [t]), ae = (m) => { m && K(m.clientHeight); }; return Xe(() => { if (S.current) return k.observe(S.current), () => k.disconnect(); }, [k]), /* @__PURE__ */ y.jsxs("div", { className: "windowContainer", children: [ /* @__PURE__ */ y.jsxs("div", { className: "windowToolBar", ref: ae, children: [ !h && a && a(x), !d && s && s(x) ] }), /* @__PURE__ */ y.jsx("div", { className: "dockLayoutContainer", ref: S, children: /* @__PURE__ */ y.jsx( At, { ref: b, defaultLayout: ge, groups: Ee, style: { position: "absolute", left: 0, top: $ ?? 0, right: 0, bottom: 0, height: P ?? 0 } } ) }), /* @__PURE__ */ y.jsx("div", { className: "windowStatusBar", children: !v && l && l(x) }) ] }); }, fe = { NOTIFY_INTEREST: "NOTIFY_INTEREST", REGISTER_INTEREST: "REGISTER_INTEREST", UNREGISTER_INTEREST: "UNREGISTER_INTEREST", RAISE_INTENT: "RAISE_INTENT", REGISTER_INTENT: "REGISTER_INTENT", UNREGISTER_INTENT: "UNREGISTER_INTENT", INTENT_ACTION: "INTENT_ACTION", GET_CLIENT_DETALS: "GET_CLIENT_DETALS", LAUNCH_PWA: "LAUNCH_PWA", LIST_PWAS: "LIST_PWAS", LIST_PWAS_RESP: "LIST_PWAS_RESP", REGISTER_APP: "REGISTER_APP", GET_LAUNCH_CONFIG: "GET_LAUNCH_CONFIG", GET_LAUNCH_CONFIG_RESP: "GET_LAUNCH_CONFIG_RESP" }, qt = 5e3; let we, W, ve = !1; const de = [], rt = () => { try { if (W && !W.CLOSED) return; console.log("Attempting to connect"), W = new WebSocket("ws://localhost:9011/agent"), W.onopen = Jt, W.onclose = Kt, W.onmessage = Xt, W.onerror = Qt; } catch (n) { console.log(n), Oe(); } }, Oe = () => { we || (we = setTimeout(() => { we = void 0, rt(); }, qt)); }, Jt = () => { console.log("Socket ready"), ve = !0; const n = { subject: "REGISTER_APP", title: document.title, url: document.URL }; W.send(JSON.stringify(n)), nn(); let t; for (; t = de.pop(); ) W.send(t); }, Kt = (n) => { console.log(`Connection closed, reason: ${n.reason}`), ve = !1, Oe(); }, Xt = (n) => { console.log(`Message received: ${n.data}`); try { const t = JSON.parse(n.data); t && tn(t); } catch (t) { console.log(t); } }, Qt = () => { console.log("Socket error"), W.CLOSED && (ve = !1, Oe()); }, D = (n) => { console.log("sending message"); const t = JSON.stringify(n); ve ? W.send(t) : (de.push(t), de.length > 5 && de.pop()); }, ot = () => { const n = (t) => { const o = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1); let a = "", s = 0; for (t = t || 1; s < t; ) a += o(), s++; return a; }; return `${n(2)}-${n()}-${n()}-${n()}-${n(3)}`; }, U = [], G = [], pe = /* @__PURE__ */ new Map(), he = /* @__PURE__ */ new Map(), Zt = (n, t) => (console.log(n), console.log(t), (!n.domain || n.domain === t.domain) && (!n.subDomain || n.subDomain === t.subDomain) && n.topic === t.topic), en = (n, t) => (!n.domain || n.domain === t.domain) && (!n.subDomain || n.subDomain === t.subDomain) && n.action === t.action, tn = (n) => { console.log("synergyMessage recieved:"), console.log(n); try { switch (n.subject) { case fe.NOTIFY_INTEREST: { const t = n; console.log(U), U.filter((o) => Zt(o, t)).forEach((o) => { console.log