@vue/devtools-kit 7.3.0 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
18
18
  }
19
19
  return to;
20
20
  };
21
- var __toESM = (mod, isNodeMode, target20) => (target20 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ var __toESM = (mod, isNodeMode, target21) => (target21 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
22
  // If the importer is in node compatibility mode or this is not an ESM
23
23
  // file that has been converted to a CommonJS file using a Babel-
24
24
  // compatible transform (i.e. "__esModule" has not been set), then set
25
25
  // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target20, "default", { value: mod, enumerable: true }) : target20,
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target21, "default", { value: mod, enumerable: true }) : target21,
27
27
  mod
28
28
  ));
29
29
 
@@ -1577,7 +1577,7 @@ init_esm_shims();
1577
1577
 
1578
1578
  // src/core/index.ts
1579
1579
  init_esm_shims();
1580
- import { isNuxtApp, target as target12 } from "@vue/devtools-shared";
1580
+ import { isNuxtApp, target as target13 } from "@vue/devtools-shared";
1581
1581
 
1582
1582
  // src/hook/index.ts
1583
1583
  init_esm_shims();
@@ -1649,10 +1649,10 @@ function createDevToolsHook() {
1649
1649
  apps: [],
1650
1650
  events: /* @__PURE__ */ new Map(),
1651
1651
  on(event, fn) {
1652
- var _a23;
1652
+ var _a24;
1653
1653
  if (!this.events.has(event))
1654
1654
  this.events.set(event, []);
1655
- (_a23 = this.events.get(event)) == null ? void 0 : _a23.push(fn);
1655
+ (_a24 = this.events.get(event)) == null ? void 0 : _a24.push(fn);
1656
1656
  return () => this.off(event, fn);
1657
1657
  },
1658
1658
  once(event, fn) {
@@ -1680,8 +1680,8 @@ function createDevToolsHook() {
1680
1680
  function subscribeDevToolsHook() {
1681
1681
  const hook2 = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
1682
1682
  hook2.on("app:init" /* APP_INIT */, (app, version) => {
1683
- var _a23, _b23, _c;
1684
- if ((_c = (_b23 = (_a23 = app == null ? void 0 : app._instance) == null ? void 0 : _a23.type) == null ? void 0 : _b23.devtools) == null ? void 0 : _c.hide)
1683
+ var _a24, _b24, _c;
1684
+ if ((_c = (_b24 = (_a24 = app == null ? void 0 : app._instance) == null ? void 0 : _a24.type) == null ? void 0 : _b24.devtools) == null ? void 0 : _c.hide)
1685
1685
  return;
1686
1686
  devtoolsHooks.callHook("app:init" /* APP_INIT */, app, version);
1687
1687
  });
@@ -1689,8 +1689,8 @@ function subscribeDevToolsHook() {
1689
1689
  devtoolsHooks.callHook("app:unmount" /* APP_UNMOUNT */, app);
1690
1690
  });
1691
1691
  hook2.on("component:added" /* COMPONENT_ADDED */, async (app, uid, parentUid, component) => {
1692
- var _a23, _b23, _c;
1693
- if ((_c = (_b23 = (_a23 = app == null ? void 0 : app._instance) == null ? void 0 : _a23.type) == null ? void 0 : _b23.devtools) == null ? void 0 : _c.hide)
1692
+ var _a24, _b24, _c;
1693
+ if ((_c = (_b24 = (_a24 = app == null ? void 0 : app._instance) == null ? void 0 : _a24.type) == null ? void 0 : _b24.devtools) == null ? void 0 : _c.hide)
1694
1694
  return;
1695
1695
  if (!app || typeof uid !== "number" && !uid || !component)
1696
1696
  return;
@@ -1721,7 +1721,7 @@ var hook = {
1721
1721
 
1722
1722
  // src/ctx/index.ts
1723
1723
  init_esm_shims();
1724
- import { target as target9 } from "@vue/devtools-shared";
1724
+ import { target as target10 } from "@vue/devtools-shared";
1725
1725
 
1726
1726
  // src/ctx/hook.ts
1727
1727
  init_esm_shims();
@@ -1772,21 +1772,21 @@ async function getComponentId(options) {
1772
1772
  }
1773
1773
  }
1774
1774
  function isFragment(instance) {
1775
- var _a23;
1776
- const subTreeType = (_a23 = instance.subTree) == null ? void 0 : _a23.type;
1775
+ var _a24;
1776
+ const subTreeType = (_a24 = instance.subTree) == null ? void 0 : _a24.type;
1777
1777
  return subTreeType === Fragment;
1778
1778
  }
1779
1779
  function isBeingDestroyed(instance) {
1780
1780
  return instance._isBeingDestroyed || instance.isUnmounted;
1781
1781
  }
1782
1782
  function getInstanceName(instance) {
1783
- var _a23, _b23, _c;
1783
+ var _a24, _b24, _c;
1784
1784
  const name = getComponentTypeName((instance == null ? void 0 : instance.type) || {});
1785
1785
  if (name)
1786
1786
  return name;
1787
1787
  if ((instance == null ? void 0 : instance.root) === instance)
1788
1788
  return "Root";
1789
- for (const key in (_b23 = (_a23 = instance.parent) == null ? void 0 : _a23.type) == null ? void 0 : _b23.components) {
1789
+ for (const key in (_b24 = (_a24 = instance.parent) == null ? void 0 : _a24.type) == null ? void 0 : _b24.components) {
1790
1790
  if (instance.parent.type.components[key] === (instance == null ? void 0 : instance.type))
1791
1791
  return saveComponentGussedName(instance, key);
1792
1792
  }
@@ -1800,8 +1800,8 @@ function getInstanceName(instance) {
1800
1800
  return "Anonymous Component";
1801
1801
  }
1802
1802
  function getUniqueComponentId(instance) {
1803
- var _a23, _b23, _c;
1804
- const appId = (_c = (_b23 = (_a23 = instance == null ? void 0 : instance.appContext) == null ? void 0 : _a23.app) == null ? void 0 : _b23.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? _c : 0;
1803
+ var _a24, _b24, _c;
1804
+ const appId = (_c = (_b24 = (_a24 = instance == null ? void 0 : instance.appContext) == null ? void 0 : _a24.app) == null ? void 0 : _b24.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? _c : 0;
1805
1805
  const instanceId = instance === (instance == null ? void 0 : instance.root) ? "root" : instance.uid;
1806
1806
  return `${appId}:${instanceId}`;
1807
1807
  }
@@ -1988,9 +1988,9 @@ function getStyles(bounds) {
1988
1988
  };
1989
1989
  }
1990
1990
  function create(options) {
1991
- var _a23;
1991
+ var _a24;
1992
1992
  const containerEl = document.createElement("div");
1993
- containerEl.id = (_a23 = options.elementId) != null ? _a23 : CONTAINER_ELEMENT_ID;
1993
+ containerEl.id = (_a24 = options.elementId) != null ? _a24 : CONTAINER_ELEMENT_ID;
1994
1994
  Object.assign(containerEl.style, {
1995
1995
  ...containerStyles,
1996
1996
  ...getStyles(options.bounds),
@@ -2045,9 +2045,9 @@ function unhighlight() {
2045
2045
  }
2046
2046
  var inspectInstance = null;
2047
2047
  function inspectFn(e) {
2048
- const target20 = e.target;
2049
- if (target20) {
2050
- const instance = target20.__vueParentComponent;
2048
+ const target21 = e.target;
2049
+ if (target21) {
2050
+ const instance = target21.__vueParentComponent;
2051
2051
  if (instance) {
2052
2052
  inspectInstance = instance;
2053
2053
  const el = instance.vnode.el;
@@ -2061,11 +2061,11 @@ function inspectFn(e) {
2061
2061
  }
2062
2062
  }
2063
2063
  function selectComponentFn(e, cb) {
2064
- var _a23;
2064
+ var _a24;
2065
2065
  e.preventDefault();
2066
2066
  e.stopPropagation();
2067
2067
  if (inspectInstance) {
2068
- const app = (_a23 = activeAppRecord.value) == null ? void 0 : _a23.app;
2068
+ const app = (_a24 = activeAppRecord.value) == null ? void 0 : _a24.app;
2069
2069
  getComponentId({
2070
2070
  app,
2071
2071
  uid: app.uid,
@@ -2223,7 +2223,7 @@ function setActiveAppRecordId(id) {
2223
2223
  updateAllStates();
2224
2224
  }
2225
2225
  var devtoolsState = new Proxy(global[STATE_KEY], {
2226
- get(target20, property) {
2226
+ get(target21, property) {
2227
2227
  if (property === "appRecords") {
2228
2228
  return devtoolsAppRecords;
2229
2229
  } else if (property === "activeAppRecordId") {
@@ -2235,13 +2235,13 @@ var devtoolsState = new Proxy(global[STATE_KEY], {
2235
2235
  }
2236
2236
  return global[STATE_KEY][property];
2237
2237
  },
2238
- deleteProperty(target20, property) {
2239
- delete target20[property];
2238
+ deleteProperty(target21, property) {
2239
+ delete target21[property];
2240
2240
  return true;
2241
2241
  },
2242
- set(target20, property, value) {
2242
+ set(target21, property, value) {
2243
2243
  const oldState = { ...global[STATE_KEY] };
2244
- target20[property] = value;
2244
+ target21[property] = value;
2245
2245
  global[STATE_KEY][property] = value;
2246
2246
  return true;
2247
2247
  }
@@ -2307,8 +2307,8 @@ import { target as target2 } from "@vue/devtools-shared";
2307
2307
  var _a8, _b8;
2308
2308
  (_b8 = (_a8 = target2).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null ? _b8 : _a8.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = [];
2309
2309
  var devtoolsTimelineLayers = new Proxy(target2.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
2310
- get(target20, prop, receiver) {
2311
- return Reflect.get(target20, prop, receiver);
2310
+ get(target21, prop, receiver) {
2311
+ return Reflect.get(target21, prop, receiver);
2312
2312
  }
2313
2313
  });
2314
2314
  function addTimelineLayer(options, descriptor) {
@@ -2323,8 +2323,8 @@ function addTimelineLayer(options, descriptor) {
2323
2323
  var _a9, _b9;
2324
2324
  (_b9 = (_a9 = target3).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null ? _b9 : _a9.__VUE_DEVTOOLS_KIT_INSPECTOR__ = [];
2325
2325
  var devtoolsInspector = new Proxy(target3.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
2326
- get(target20, prop, receiver) {
2327
- return Reflect.get(target20, prop, receiver);
2326
+ get(target21, prop, receiver) {
2327
+ return Reflect.get(target21, prop, receiver);
2328
2328
  }
2329
2329
  });
2330
2330
  var callInspectorUpdatedHook = debounce2(() => {
@@ -2342,14 +2342,14 @@ function addInspector(inspector, descriptor) {
2342
2342
  }
2343
2343
  function getActiveInspectors() {
2344
2344
  return devtoolsInspector.filter((inspector) => inspector.descriptor.app === activeAppRecord.value.app).filter((inspector) => inspector.descriptor.id !== "components").map((inspector) => {
2345
- var _a23;
2345
+ var _a24;
2346
2346
  const descriptor = inspector.descriptor;
2347
2347
  const options = inspector.options;
2348
2348
  return {
2349
2349
  id: options.id,
2350
2350
  label: options.label,
2351
2351
  logo: descriptor.logo,
2352
- icon: `i-ic-baseline-${(_a23 = options == null ? void 0 : options.icon) == null ? void 0 : _a23.replace(/_/g, "-")}`,
2352
+ icon: `i-ic-baseline-${(_a24 = options == null ? void 0 : options.icon) == null ? void 0 : _a24.replace(/_/g, "-")}`,
2353
2353
  packageName: descriptor.packageName,
2354
2354
  homepage: descriptor.homepage
2355
2355
  };
@@ -2431,8 +2431,8 @@ function createDevToolsCtxHooks() {
2431
2431
  addInspector(inspector, plugin.descriptor);
2432
2432
  });
2433
2433
  hooks2.hook("sendInspectorTree" /* SEND_INSPECTOR_TREE */, async ({ inspectorId, plugin }) => {
2434
- var _a23;
2435
- if (!inspectorId || !((_a23 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a23.app))
2434
+ var _a24;
2435
+ if (!inspectorId || !((_a24 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a24.app))
2436
2436
  return;
2437
2437
  const inspector = getInspector(inspectorId, plugin.descriptor.app);
2438
2438
  const _payload = {
@@ -2455,8 +2455,8 @@ function createDevToolsCtxHooks() {
2455
2455
  }, "sendInspectorTreeToClient" /* SEND_INSPECTOR_TREE_TO_CLIENT */);
2456
2456
  });
2457
2457
  hooks2.hook("sendInspectorState" /* SEND_INSPECTOR_STATE */, async ({ inspectorId, plugin }) => {
2458
- var _a23;
2459
- if (!inspectorId || !((_a23 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a23.app))
2458
+ var _a24;
2459
+ if (!inspectorId || !((_a24 = plugin == null ? void 0 : plugin.descriptor) == null ? void 0 : _a24.app))
2460
2460
  return;
2461
2461
  const inspector = getInspector(inspectorId, plugin.descriptor.app);
2462
2462
  const _payload = {
@@ -2528,7 +2528,7 @@ function createDevToolsCtxHooks() {
2528
2528
 
2529
2529
  // src/ctx/api.ts
2530
2530
  init_esm_shims();
2531
- import { target as target6 } from "@vue/devtools-shared";
2531
+ import { target as target8 } from "@vue/devtools-shared";
2532
2532
 
2533
2533
  // src/core/component/state/editor.ts
2534
2534
  init_esm_shims();
@@ -2602,9 +2602,9 @@ var StateEditor = class {
2602
2602
  else Reflect.deleteProperty(object, field);
2603
2603
  }
2604
2604
  if (!state.remove) {
2605
- const target20 = object[state.newKey || field];
2606
- if (this.refEditor.isRef(target20))
2607
- this.refEditor.set(target20, value);
2605
+ const target21 = object[state.newKey || field];
2606
+ if (this.refEditor.isRef(target21))
2607
+ this.refEditor.set(target21, value);
2608
2608
  else if (toRaw(object) instanceof Map)
2609
2609
  object.set(state.newKey || field, value);
2610
2610
  else if (toRaw(object) instanceof Set)
@@ -2656,15 +2656,15 @@ async function editComponentState(payload, stateEditor2) {
2656
2656
  if (!instance)
2657
2657
  return;
2658
2658
  const targetPath = path.slice();
2659
- let target20;
2659
+ let target21;
2660
2660
  if (instance.devtoolsRawSetupState && Object.keys(instance.devtoolsRawSetupState).includes(path[0]))
2661
- target20 = instance.devtoolsRawSetupState;
2661
+ target21 = instance.devtoolsRawSetupState;
2662
2662
  if (instance.data && Object.keys(instance.data).includes(path[0]))
2663
- target20 = instance.data;
2664
- if (target20 && targetPath) {
2663
+ target21 = instance.data;
2664
+ if (target21 && targetPath) {
2665
2665
  if (state.type === "object" && type === "reactive") {
2666
2666
  }
2667
- stateEditor2.set(target20, targetPath, state.value, stateEditor2.createDefaultSetCallback(state));
2667
+ stateEditor2.set(target21, targetPath, state.value, stateEditor2.createDefaultSetCallback(state));
2668
2668
  }
2669
2669
  }
2670
2670
  var stateEditor = new StateEditor();
@@ -2679,11 +2679,11 @@ function setOpenInEditorBaseUrl(url) {
2679
2679
  target4.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__ = url;
2680
2680
  }
2681
2681
  function openInEditor(options = {}) {
2682
- var _a23;
2682
+ var _a24;
2683
2683
  const { file, baseUrl = window.location.origin, line = 0, column = 0 } = options;
2684
2684
  if (file) {
2685
2685
  if (devtoolsState.vitePluginDetected) {
2686
- const _baseUrl = (_a23 = target4.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? _a23 : baseUrl;
2686
+ const _baseUrl = (_a24 = target4.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? _a24 : baseUrl;
2687
2687
  target4.__VUE_INSPECTOR__.openInEditor(_baseUrl, file, line, column);
2688
2688
  } else {
2689
2689
  }
@@ -2708,12 +2708,12 @@ var _a10, _b10;
2708
2708
  var _a11, _b11;
2709
2709
  (_b11 = (_a11 = global2)[ROUTER_KEY]) != null ? _b11 : _a11[ROUTER_KEY] = {};
2710
2710
  var devtoolsRouterInfo = new Proxy(global2[ROUTER_INFO_KEY], {
2711
- get(target20, property) {
2711
+ get(target21, property) {
2712
2712
  return global2[ROUTER_INFO_KEY][property];
2713
2713
  }
2714
2714
  });
2715
2715
  var devtoolsRouter = new Proxy(global2[ROUTER_KEY], {
2716
- get(target20, property) {
2716
+ get(target21, property) {
2717
2717
  if (property === "value") {
2718
2718
  return global2[ROUTER_KEY];
2719
2719
  }
@@ -2755,8 +2755,8 @@ function filterCurrentRoute(route) {
2755
2755
  }
2756
2756
  function normalizeRouterInfo(appRecord, activeAppRecord2) {
2757
2757
  function init() {
2758
- var _a23;
2759
- const router = (_a23 = appRecord.app) == null ? void 0 : _a23.config.globalProperties.$router;
2758
+ var _a24;
2759
+ const router = (_a24 = appRecord.app) == null ? void 0 : _a24.config.globalProperties.$router;
2760
2760
  const currentRoute = filterCurrentRoute(router == null ? void 0 : router.currentRoute.value);
2761
2761
  const routes = filterRoutes(getRoutes(router));
2762
2762
  const c = console.warn;
@@ -2771,8 +2771,8 @@ function normalizeRouterInfo(appRecord, activeAppRecord2) {
2771
2771
  }
2772
2772
  init();
2773
2773
  hook.on.componentUpdated(debounce3(() => {
2774
- var _a23;
2775
- if (((_a23 = activeAppRecord2.value) == null ? void 0 : _a23.app) !== appRecord.app)
2774
+ var _a24;
2775
+ if (((_a24 = activeAppRecord2.value) == null ? void 0 : _a24.app) !== appRecord.app)
2776
2776
  return;
2777
2777
  init();
2778
2778
  devtoolsContext.hooks.callHook("routerInfoUpdated" /* ROUTER_INFO_UPDATED */, { state: global3[ROUTER_INFO_KEY] });
@@ -2824,245 +2824,31 @@ function getComponentInspector() {
2824
2824
  });
2825
2825
  }
2826
2826
 
2827
- // src/ctx/api.ts
2828
- function createDevToolsApi(hooks2) {
2829
- return {
2830
- // get inspector tree
2831
- async getInspectorTree(payload) {
2832
- const _payload = {
2833
- ...payload,
2834
- app: activeAppRecord.value.app,
2835
- rootNodes: []
2836
- };
2837
- await new Promise((resolve) => {
2838
- hooks2.callHookWith(async (callbacks) => {
2839
- await Promise.all(callbacks.map((cb) => cb(_payload)));
2840
- resolve();
2841
- }, "getInspectorTree" /* GET_INSPECTOR_TREE */);
2842
- });
2843
- return _payload.rootNodes;
2844
- },
2845
- // get inspector state
2846
- async getInspectorState(payload) {
2847
- const _payload = {
2848
- ...payload,
2849
- app: activeAppRecord.value.app,
2850
- state: null
2851
- };
2852
- const ctx = {
2853
- currentTab: `custom-inspector:${payload.inspectorId}`
2854
- };
2855
- await new Promise((resolve) => {
2856
- hooks2.callHookWith(async (callbacks) => {
2857
- await Promise.all(callbacks.map((cb) => cb(_payload, ctx)));
2858
- resolve();
2859
- }, "getInspectorState" /* GET_INSPECTOR_STATE */);
2860
- });
2861
- return _payload.state;
2862
- },
2863
- // edit inspector state
2864
- editInspectorState(payload) {
2865
- const stateEditor2 = new StateEditor();
2866
- const _payload = {
2867
- ...payload,
2868
- app: activeAppRecord.value.app,
2869
- set: (obj, path = payload.path, value = payload.state.value, cb) => {
2870
- stateEditor2.set(obj, path, value, cb || stateEditor2.createDefaultSetCallback(payload.state));
2871
- }
2872
- };
2873
- hooks2.callHookWith((callbacks) => {
2874
- callbacks.forEach((cb) => cb(_payload));
2875
- }, "editInspectorState" /* EDIT_INSPECTOR_STATE */);
2876
- },
2877
- // send inspector state
2878
- sendInspectorState(inspectorId) {
2879
- const inspector = getInspector(inspectorId);
2880
- hooks2.callHook("sendInspectorState" /* SEND_INSPECTOR_STATE */, { inspectorId, plugin: {
2881
- descriptor: inspector.descriptor,
2882
- setupFn: () => ({})
2883
- } });
2884
- },
2885
- // inspect component inspector
2886
- inspectComponentInspector() {
2887
- return inspectComponentHighLighter();
2888
- },
2889
- // cancel inspect component inspector
2890
- cancelInspectComponentInspector() {
2891
- return cancelInspectComponentHighLighter();
2892
- },
2893
- // get component render code
2894
- getComponentRenderCode(id) {
2895
- const instance = getComponentInstance(activeAppRecord.value, id);
2896
- if (instance)
2897
- return !((instance == null ? void 0 : instance.type) instanceof Function) ? instance.render.toString() : instance.type.toString();
2898
- },
2899
- // scroll to component
2900
- scrollToComponent(id) {
2901
- return scrollToComponent({ id });
2902
- },
2903
- // open in editor
2904
- openInEditor,
2905
- // get vue inspector
2906
- getVueInspector: getComponentInspector,
2907
- // toggle app
2908
- toggleApp(id) {
2909
- const appRecord = devtoolsAppRecords.value.find((record) => record.id === id);
2910
- if (appRecord) {
2911
- setActiveAppRecordId(id);
2912
- setActiveAppRecord(appRecord);
2913
- normalizeRouterInfo(appRecord, activeAppRecord);
2914
- callInspectorUpdatedHook();
2915
- }
2916
- },
2917
- // inspect dom
2918
- inspectDOM(instanceId) {
2919
- const instance = getComponentInstance(activeAppRecord.value, instanceId);
2920
- if (instance) {
2921
- const [el] = getRootElementsFromComponentInstance(instance);
2922
- if (el) {
2923
- target6.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = el;
2924
- }
2925
- }
2926
- }
2927
- };
2928
- }
2929
-
2930
- // src/ctx/plugin.ts
2827
+ // src/core/plugin/index.ts
2931
2828
  init_esm_shims();
2932
2829
  import { target as target7 } from "@vue/devtools-shared";
2933
- var _a13, _b13;
2934
- (_b13 = (_a13 = target7).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null ? _b13 : _a13.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = [];
2935
- var devtoolsPluginBuffer = new Proxy(target7.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
2936
- get(target20, prop, receiver) {
2937
- return Reflect.get(target20, prop, receiver);
2938
- }
2939
- });
2940
- function addDevToolsPluginToBuffer(pluginDescriptor, setupFn) {
2941
- devtoolsPluginBuffer.push([pluginDescriptor, setupFn]);
2942
- }
2943
2830
 
2944
- // src/ctx/env.ts
2831
+ // src/api/index.ts
2945
2832
  init_esm_shims();
2946
- import { target as target8 } from "@vue/devtools-shared";
2947
- var _a14, _b14;
2948
- (_b14 = (_a14 = target8).__VUE_DEVTOOLS_ENV__) != null ? _b14 : _a14.__VUE_DEVTOOLS_ENV__ = {
2949
- vitePluginDetected: false
2950
- };
2951
- function getDevToolsEnv() {
2952
- return target8.__VUE_DEVTOOLS_ENV__;
2953
- }
2954
- function setDevToolsEnv(env) {
2955
- target8.__VUE_DEVTOOLS_ENV__ = {
2956
- ...target8.__VUE_DEVTOOLS_ENV__,
2957
- ...env
2958
- };
2959
- }
2960
-
2961
- // src/ctx/index.ts
2962
- var hooks = createDevToolsCtxHooks();
2963
- var _a15, _b15;
2964
- (_b15 = (_a15 = target9).__VUE_DEVTOOLS_KIT_CONTEXT__) != null ? _b15 : _a15.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
2965
- hooks,
2966
- get state() {
2967
- return {
2968
- ...devtoolsState,
2969
- activeAppRecordId: activeAppRecord.id,
2970
- activeAppRecord: activeAppRecord.value,
2971
- appRecords: devtoolsAppRecords.value
2972
- };
2973
- },
2974
- api: createDevToolsApi(hooks)
2975
- };
2976
- var devtoolsContext = target9.__VUE_DEVTOOLS_KIT_CONTEXT__;
2977
2833
 
2978
- // src/compat/index.ts
2834
+ // src/api/v6/index.ts
2979
2835
  init_esm_shims();
2980
- import { target as target10 } from "@vue/devtools-shared";
2981
- function onLegacyDevToolsPluginApiAvailable(cb) {
2982
- if (target10.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__) {
2983
- cb();
2984
- return;
2985
- }
2986
- Object.defineProperty(target10, "__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__", {
2987
- set(value) {
2988
- if (value)
2989
- cb();
2990
- },
2991
- configurable: true
2992
- });
2993
- }
2994
2836
 
2995
- // src/core/app/index.ts
2837
+ // src/ctx/plugin.ts
2996
2838
  init_esm_shims();
2997
- var import_speakingurl = __toESM(require_speakingurl2(), 1);
2998
- import { target as target11 } from "@vue/devtools-shared";
2999
- var _a16, _b16;
3000
- var appRecordInfo = (_b16 = (_a16 = target11).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null ? _b16 : _a16.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
3001
- id: 0,
3002
- appIds: /* @__PURE__ */ new Set()
3003
- };
3004
- function getAppRecordName(app, fallbackName) {
3005
- var _a23;
3006
- return ((_a23 = app == null ? void 0 : app._component) == null ? void 0 : _a23.name) || `App ${fallbackName}`;
3007
- }
3008
- function getAppRootInstance(app) {
3009
- var _a23, _b23, _c, _d;
3010
- if (app._instance)
3011
- return app._instance;
3012
- else if ((_b23 = (_a23 = app._container) == null ? void 0 : _a23._vnode) == null ? void 0 : _b23.component)
3013
- return (_d = (_c = app._container) == null ? void 0 : _c._vnode) == null ? void 0 : _d.component;
3014
- }
3015
- function removeAppRecordId(app) {
3016
- const id = app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;
3017
- if (id != null) {
3018
- appRecordInfo.appIds.delete(id);
3019
- appRecordInfo.id--;
3020
- }
3021
- }
3022
- function getAppRecordId(app, defaultId) {
3023
- if (app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ != null)
3024
- return app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;
3025
- let id = defaultId != null ? defaultId : (appRecordInfo.id++).toString();
3026
- if (defaultId && appRecordInfo.appIds.has(id)) {
3027
- let count = 1;
3028
- while (appRecordInfo.appIds.has(`${defaultId}_${count}`))
3029
- count++;
3030
- id = `${defaultId}_${count}`;
3031
- }
3032
- appRecordInfo.appIds.add(id);
3033
- app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ = id;
3034
- return id;
3035
- }
3036
- function createAppRecord(app) {
3037
- const rootInstance = getAppRootInstance(app);
3038
- if (rootInstance) {
3039
- appRecordInfo.id++;
3040
- const name = getAppRecordName(app, appRecordInfo.id.toString());
3041
- const id = getAppRecordId(app, (0, import_speakingurl.default)(name));
3042
- const record = {
3043
- id,
3044
- name,
3045
- instanceMap: /* @__PURE__ */ new Map(),
3046
- rootInstance
3047
- };
3048
- app.__VUE_DEVTOOLS_NEXT_APP_RECORD__ = record;
3049
- const rootId = `${record.id}:root`;
3050
- record.instanceMap.set(rootId, record.rootInstance);
3051
- record.rootInstance.__VUE_DEVTOOLS_NEXT_UID__ = rootId;
3052
- return record;
3053
- } else {
3054
- return {};
2839
+ import { target as target6 } from "@vue/devtools-shared";
2840
+ var _a13, _b13;
2841
+ (_b13 = (_a13 = target6).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null ? _b13 : _a13.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = [];
2842
+ var devtoolsPluginBuffer = new Proxy(target6.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
2843
+ get(target21, prop, receiver) {
2844
+ return Reflect.get(target21, prop, receiver);
3055
2845
  }
2846
+ });
2847
+ function addDevToolsPluginToBuffer(pluginDescriptor, setupFn) {
2848
+ devtoolsPluginBuffer.push([pluginDescriptor, setupFn]);
3056
2849
  }
3057
2850
 
3058
- // src/core/plugin/index.ts
3059
- init_esm_shims();
3060
-
3061
- // src/api/index.ts
3062
- init_esm_shims();
3063
-
3064
2851
  // src/api/v6/index.ts
3065
- init_esm_shims();
3066
2852
  var DevToolsV6PluginAPI = class {
3067
2853
  constructor({ plugin, ctx }) {
3068
2854
  this.hooks = ctx.hooks;
@@ -3105,14 +2891,14 @@ var DevToolsV6PluginAPI = class {
3105
2891
  }
3106
2892
  // component inspector
3107
2893
  notifyComponentUpdate(instance) {
3108
- var _a23;
2894
+ var _a24;
3109
2895
  const inspector = getActiveInspectors().find((i) => i.packageName === this.plugin.descriptor.packageName);
3110
2896
  if (inspector == null ? void 0 : inspector.id) {
3111
2897
  if (instance) {
3112
2898
  const args = [
3113
2899
  instance.appContext.app,
3114
2900
  instance.uid,
3115
- (_a23 = instance.parent) == null ? void 0 : _a23.uid,
2901
+ (_a24 = instance.parent) == null ? void 0 : _a24.uid,
3116
2902
  instance
3117
2903
  ];
3118
2904
  devtoolsHooks.callHook("component:updated" /* COMPONENT_UPDATED */, ...args);
@@ -3147,7 +2933,7 @@ var DevToolsV6PluginAPI = class {
3147
2933
  }
3148
2934
  // settings
3149
2935
  getSettings(pluginId) {
3150
- var _a23, _b23, _c;
2936
+ var _a24, _b24, _c;
3151
2937
  function _getSettings(settings) {
3152
2938
  const _settings = {};
3153
2939
  Object.keys(settings).forEach((key) => {
@@ -3156,7 +2942,7 @@ var DevToolsV6PluginAPI = class {
3156
2942
  return _settings;
3157
2943
  }
3158
2944
  if (pluginId) {
3159
- const item = (_b23 = (_a23 = devtoolsPluginBuffer.find((item2) => item2[0].id === pluginId)) == null ? void 0 : _a23[0]) != null ? _b23 : null;
2945
+ const item = (_b24 = (_a24 = devtoolsPluginBuffer.find((item2) => item2[0].id === pluginId)) == null ? void 0 : _a24[0]) != null ? _b24 : null;
3160
2946
  return (_c = _getSettings(item == null ? void 0 : item.settings)) != null ? _c : _getSettings(this.plugin.descriptor.settings);
3161
2947
  } else {
3162
2948
  return _getSettings(this.plugin.descriptor.settings);
@@ -3257,7 +3043,7 @@ var ComponentWalker = class {
3257
3043
  * @return {object}
3258
3044
  */
3259
3045
  async capture(instance, depth) {
3260
- var _a23;
3046
+ var _a24;
3261
3047
  if (!instance)
3262
3048
  return null;
3263
3049
  const id = this.captureId(instance);
@@ -3312,7 +3098,7 @@ var ComponentWalker = class {
3312
3098
  } else {
3313
3099
  treeNode.domOrder = [-1];
3314
3100
  }
3315
- if ((_a23 = instance.suspense) == null ? void 0 : _a23.suspenseKey) {
3101
+ if ((_a24 = instance.suspense) == null ? void 0 : _a24.suspenseKey) {
3316
3102
  treeNode.tags.push({
3317
3103
  label: instance.suspense.suspenseKey,
3318
3104
  backgroundColor: 14979812,
@@ -3331,8 +3117,8 @@ var ComponentWalker = class {
3331
3117
  * @return {Vue|Array}
3332
3118
  */
3333
3119
  async findQualifiedChildren(instance, depth) {
3334
- var _a23;
3335
- if (this.componentFilter.isQualified(instance) && !((_a23 = instance.type.devtools) == null ? void 0 : _a23.hide)) {
3120
+ var _a24;
3121
+ if (this.componentFilter.isQualified(instance) && !((_a24 = instance.type.devtools) == null ? void 0 : _a24.hide)) {
3336
3122
  return [await this.capture(instance, depth)];
3337
3123
  } else if (instance.subTree) {
3338
3124
  const list = this.isKeepAlive(instance) ? this.getKeepAliveCachedInstances(instance) : this.getInternalInstanceChildren(instance.subTree);
@@ -3352,8 +3138,8 @@ var ComponentWalker = class {
3352
3138
  */
3353
3139
  async findQualifiedChildrenFromList(instances, depth) {
3354
3140
  instances = instances.filter((child) => {
3355
- var _a23;
3356
- return !isBeingDestroyed(child) && !((_a23 = child.type.devtools) == null ? void 0 : _a23.hide);
3141
+ var _a24;
3142
+ return !isBeingDestroyed(child) && !((_a24 = child.type.devtools) == null ? void 0 : _a24.hide);
3357
3143
  });
3358
3144
  if (!this.componentFilter.filter)
3359
3145
  return Promise.all(instances.map((child) => this.capture(child, depth)));
@@ -3381,8 +3167,8 @@ var ComponentWalker = class {
3381
3167
  }
3382
3168
  }
3383
3169
  return list.filter((child) => {
3384
- var _a23;
3385
- return !isBeingDestroyed(child) && !((_a23 = child.type.devtools) == null ? void 0 : _a23.hide);
3170
+ var _a24;
3171
+ return !isBeingDestroyed(child) && !((_a24 = child.type.devtools) == null ? void 0 : _a24.hide);
3386
3172
  });
3387
3173
  }
3388
3174
  /**
@@ -3657,7 +3443,7 @@ function getStateTypeAndName(info) {
3657
3443
  function processSetupState(instance) {
3658
3444
  const raw = instance.devtoolsRawSetupState || {};
3659
3445
  return Object.keys(instance.setupState).filter((key) => !vueBuiltins.has(key) && key.split(/(?=[A-Z])/)[0] !== "use").map((key) => {
3660
- var _a23, _b23, _c, _d;
3446
+ var _a24, _b24, _c, _d;
3661
3447
  const value = returnError(() => toRaw2(instance.setupState[key]));
3662
3448
  const rawData = raw[key];
3663
3449
  let result;
@@ -3666,7 +3452,7 @@ function processSetupState(instance) {
3666
3452
  const info = getSetupStateType(rawData);
3667
3453
  const { stateType, stateTypeName } = getStateTypeAndName(info);
3668
3454
  const isState = info.ref || info.computed || info.reactive;
3669
- const raw2 = ((_b23 = (_a23 = rawData.effect) == null ? void 0 : _a23.raw) == null ? void 0 : _b23.toString()) || ((_d = (_c = rawData.effect) == null ? void 0 : _c.fn) == null ? void 0 : _d.toString());
3455
+ const raw2 = ((_b24 = (_a24 = rawData.effect) == null ? void 0 : _a24.raw) == null ? void 0 : _b24.toString()) || ((_d = (_c = rawData.effect) == null ? void 0 : _c.fn) == null ? void 0 : _d.toString());
3670
3456
  if (stateType)
3671
3457
  isOtherType = false;
3672
3458
  result = {
@@ -3696,8 +3482,8 @@ function processComputed(instance, mergedType) {
3696
3482
  type: type2,
3697
3483
  key,
3698
3484
  value: returnError(() => {
3699
- var _a23;
3700
- return (_a23 = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a23[key];
3485
+ var _a24;
3486
+ return (_a24 = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a24[key];
3701
3487
  }),
3702
3488
  editable: typeof def.set === "function"
3703
3489
  });
@@ -3759,10 +3545,10 @@ function processRefs(instance) {
3759
3545
  }));
3760
3546
  }
3761
3547
  function processEventListeners(instance) {
3762
- var _a23;
3548
+ var _a24;
3763
3549
  const emitsDefinition = instance.type.emits;
3764
3550
  const declaredEmits = Array.isArray(emitsDefinition) ? emitsDefinition : Object.keys(emitsDefinition != null ? emitsDefinition : {});
3765
- const keys = Object.keys((_a23 = instance.vnode.props) != null ? _a23 : {});
3551
+ const keys = Object.keys((_a24 = instance.vnode.props) != null ? _a24 : {});
3766
3552
  const result = [];
3767
3553
  for (const key of keys) {
3768
3554
  const [prefix, ...eventNameParts] = key.split(/(?=[A-Z])/);
@@ -3801,11 +3587,11 @@ function processInstanceState(instance) {
3801
3587
 
3802
3588
  // src/core/component/state/index.ts
3803
3589
  function getInstanceState(params) {
3804
- var _a23;
3590
+ var _a24;
3805
3591
  const instance = getComponentInstance(activeAppRecord.value, params.instanceId);
3806
3592
  const id = getUniqueComponentId(instance);
3807
3593
  const name = getInstanceName(instance);
3808
- const file = (_a23 = instance == null ? void 0 : instance.type) == null ? void 0 : _a23.__file;
3594
+ const file = (_a24 = instance == null ? void 0 : instance.type) == null ? void 0 : _a24.__file;
3809
3595
  const state = processInstanceState(instance);
3810
3596
  return {
3811
3597
  id,
@@ -3867,13 +3653,13 @@ function createComponentsDevToolsPlugin(app) {
3867
3653
  }
3868
3654
  });
3869
3655
  api.on.getInspectorState(async (payload) => {
3870
- var _a23;
3656
+ var _a24;
3871
3657
  if (payload.app === app && payload.inspectorId === INSPECTOR_ID) {
3872
3658
  const result = getInstanceState({
3873
3659
  instanceId: payload.nodeId
3874
3660
  });
3875
3661
  const componentInstance = result.instance;
3876
- const app2 = (_a23 = result.instance) == null ? void 0 : _a23.appContext.app;
3662
+ const app2 = (_a24 = result.instance) == null ? void 0 : _a24.appContext.app;
3877
3663
  const _payload = {
3878
3664
  componentInstance,
3879
3665
  app: app2,
@@ -3899,10 +3685,10 @@ function createComponentsDevToolsPlugin(app) {
3899
3685
  api.sendInspectorState(INSPECTOR_ID);
3900
3686
  }, 120);
3901
3687
  const componentAddedCleanup = hook.on.componentAdded(async (app2, uid, parentUid, component) => {
3902
- var _a23, _b23, _c;
3688
+ var _a24, _b24, _c;
3903
3689
  if (devtoolsState.highPerfModeEnabled)
3904
3690
  return;
3905
- if ((_c = (_b23 = (_a23 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a23.type) == null ? void 0 : _b23.devtools) == null ? void 0 : _c.hide)
3691
+ if ((_c = (_b24 = (_a24 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a24.type) == null ? void 0 : _b24.devtools) == null ? void 0 : _c.hide)
3906
3692
  return;
3907
3693
  if (!app2 || typeof uid !== "number" && !uid || !component)
3908
3694
  return;
@@ -3926,10 +3712,10 @@ function createComponentsDevToolsPlugin(app) {
3926
3712
  debounceSendInspectorTree();
3927
3713
  });
3928
3714
  const componentUpdatedCleanup = hook.on.componentUpdated(async (app2, uid, parentUid, component) => {
3929
- var _a23, _b23, _c;
3715
+ var _a24, _b24, _c;
3930
3716
  if (devtoolsState.highPerfModeEnabled)
3931
3717
  return;
3932
- if ((_c = (_b23 = (_a23 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a23.type) == null ? void 0 : _b23.devtools) == null ? void 0 : _c.hide)
3718
+ if ((_c = (_b24 = (_a24 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a24.type) == null ? void 0 : _b24.devtools) == null ? void 0 : _c.hide)
3933
3719
  return;
3934
3720
  if (!app2 || typeof uid !== "number" && !uid || !component)
3935
3721
  return;
@@ -3954,10 +3740,10 @@ function createComponentsDevToolsPlugin(app) {
3954
3740
  debounceSendInspectorState();
3955
3741
  });
3956
3742
  const componentRemovedCleanup = hook.on.componentRemoved(async (app2, uid, parentUid, component) => {
3957
- var _a23, _b23, _c;
3743
+ var _a24, _b24, _c;
3958
3744
  if (devtoolsState.highPerfModeEnabled)
3959
3745
  return;
3960
- if ((_c = (_b23 = (_a23 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a23.type) == null ? void 0 : _b23.devtools) == null ? void 0 : _c.hide)
3746
+ if ((_c = (_b24 = (_a24 = app2 == null ? void 0 : app2._instance) == null ? void 0 : _a24.type) == null ? void 0 : _b24.devtools) == null ? void 0 : _c.hide)
3961
3747
  return;
3962
3748
  if (!app2 || typeof uid !== "number" && !uid || !component)
3963
3749
  return;
@@ -3979,11 +3765,15 @@ function createComponentsDevToolsPlugin(app) {
3979
3765
  }
3980
3766
 
3981
3767
  // src/core/plugin/index.ts
3768
+ var _a14, _b14;
3769
+ (_b14 = (_a14 = target7).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null ? _b14 : _a14.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set();
3982
3770
  function setupDevToolsPlugin(pluginDescriptor, setupFn) {
3983
3771
  return hook.setupDevToolsPlugin(pluginDescriptor, setupFn);
3984
3772
  }
3985
3773
  function callDevToolsPluginSetupFn(plugin, app) {
3986
3774
  const [pluginDescriptor, setupFn] = plugin;
3775
+ if (pluginDescriptor.app !== app)
3776
+ return;
3987
3777
  const api = new DevToolsPluginAPI({
3988
3778
  plugin: {
3989
3779
  setupFn,
@@ -3998,32 +3788,256 @@ function callDevToolsPluginSetupFn(plugin, app) {
3998
3788
  }
3999
3789
  setupFn(api);
4000
3790
  }
3791
+ function removeRegisteredPluginApp(app) {
3792
+ target7.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.delete(app);
3793
+ }
4001
3794
  function registerDevToolsPlugin(app) {
3795
+ if (target7.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(app))
3796
+ return;
3797
+ target7.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(app);
4002
3798
  devtoolsPluginBuffer.forEach((plugin) => {
4003
3799
  callDevToolsPluginSetupFn(plugin, app);
4004
3800
  });
4005
3801
  }
4006
3802
 
3803
+ // src/ctx/api.ts
3804
+ function createDevToolsApi(hooks2) {
3805
+ return {
3806
+ // get inspector tree
3807
+ async getInspectorTree(payload) {
3808
+ const _payload = {
3809
+ ...payload,
3810
+ app: activeAppRecord.value.app,
3811
+ rootNodes: []
3812
+ };
3813
+ await new Promise((resolve) => {
3814
+ hooks2.callHookWith(async (callbacks) => {
3815
+ await Promise.all(callbacks.map((cb) => cb(_payload)));
3816
+ resolve();
3817
+ }, "getInspectorTree" /* GET_INSPECTOR_TREE */);
3818
+ });
3819
+ return _payload.rootNodes;
3820
+ },
3821
+ // get inspector state
3822
+ async getInspectorState(payload) {
3823
+ const _payload = {
3824
+ ...payload,
3825
+ app: activeAppRecord.value.app,
3826
+ state: null
3827
+ };
3828
+ const ctx = {
3829
+ currentTab: `custom-inspector:${payload.inspectorId}`
3830
+ };
3831
+ await new Promise((resolve) => {
3832
+ hooks2.callHookWith(async (callbacks) => {
3833
+ await Promise.all(callbacks.map((cb) => cb(_payload, ctx)));
3834
+ resolve();
3835
+ }, "getInspectorState" /* GET_INSPECTOR_STATE */);
3836
+ });
3837
+ return _payload.state;
3838
+ },
3839
+ // edit inspector state
3840
+ editInspectorState(payload) {
3841
+ const stateEditor2 = new StateEditor();
3842
+ const _payload = {
3843
+ ...payload,
3844
+ app: activeAppRecord.value.app,
3845
+ set: (obj, path = payload.path, value = payload.state.value, cb) => {
3846
+ stateEditor2.set(obj, path, value, cb || stateEditor2.createDefaultSetCallback(payload.state));
3847
+ }
3848
+ };
3849
+ hooks2.callHookWith((callbacks) => {
3850
+ callbacks.forEach((cb) => cb(_payload));
3851
+ }, "editInspectorState" /* EDIT_INSPECTOR_STATE */);
3852
+ },
3853
+ // send inspector state
3854
+ sendInspectorState(inspectorId) {
3855
+ const inspector = getInspector(inspectorId);
3856
+ hooks2.callHook("sendInspectorState" /* SEND_INSPECTOR_STATE */, { inspectorId, plugin: {
3857
+ descriptor: inspector.descriptor,
3858
+ setupFn: () => ({})
3859
+ } });
3860
+ },
3861
+ // inspect component inspector
3862
+ inspectComponentInspector() {
3863
+ return inspectComponentHighLighter();
3864
+ },
3865
+ // cancel inspect component inspector
3866
+ cancelInspectComponentInspector() {
3867
+ return cancelInspectComponentHighLighter();
3868
+ },
3869
+ // get component render code
3870
+ getComponentRenderCode(id) {
3871
+ const instance = getComponentInstance(activeAppRecord.value, id);
3872
+ if (instance)
3873
+ return !((instance == null ? void 0 : instance.type) instanceof Function) ? instance.render.toString() : instance.type.toString();
3874
+ },
3875
+ // scroll to component
3876
+ scrollToComponent(id) {
3877
+ return scrollToComponent({ id });
3878
+ },
3879
+ // open in editor
3880
+ openInEditor,
3881
+ // get vue inspector
3882
+ getVueInspector: getComponentInspector,
3883
+ // toggle app
3884
+ toggleApp(id) {
3885
+ const appRecord = devtoolsAppRecords.value.find((record) => record.id === id);
3886
+ if (appRecord) {
3887
+ setActiveAppRecordId(id);
3888
+ setActiveAppRecord(appRecord);
3889
+ normalizeRouterInfo(appRecord, activeAppRecord);
3890
+ callInspectorUpdatedHook();
3891
+ registerDevToolsPlugin(appRecord.app);
3892
+ }
3893
+ },
3894
+ // inspect dom
3895
+ inspectDOM(instanceId) {
3896
+ const instance = getComponentInstance(activeAppRecord.value, instanceId);
3897
+ if (instance) {
3898
+ const [el] = getRootElementsFromComponentInstance(instance);
3899
+ if (el) {
3900
+ target8.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = el;
3901
+ }
3902
+ }
3903
+ }
3904
+ };
3905
+ }
3906
+
3907
+ // src/ctx/env.ts
3908
+ init_esm_shims();
3909
+ import { target as target9 } from "@vue/devtools-shared";
3910
+ var _a15, _b15;
3911
+ (_b15 = (_a15 = target9).__VUE_DEVTOOLS_ENV__) != null ? _b15 : _a15.__VUE_DEVTOOLS_ENV__ = {
3912
+ vitePluginDetected: false
3913
+ };
3914
+ function getDevToolsEnv() {
3915
+ return target9.__VUE_DEVTOOLS_ENV__;
3916
+ }
3917
+ function setDevToolsEnv(env) {
3918
+ target9.__VUE_DEVTOOLS_ENV__ = {
3919
+ ...target9.__VUE_DEVTOOLS_ENV__,
3920
+ ...env
3921
+ };
3922
+ }
3923
+
3924
+ // src/ctx/index.ts
3925
+ var hooks = createDevToolsCtxHooks();
3926
+ var _a16, _b16;
3927
+ (_b16 = (_a16 = target10).__VUE_DEVTOOLS_KIT_CONTEXT__) != null ? _b16 : _a16.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
3928
+ hooks,
3929
+ get state() {
3930
+ return {
3931
+ ...devtoolsState,
3932
+ activeAppRecordId: activeAppRecord.id,
3933
+ activeAppRecord: activeAppRecord.value,
3934
+ appRecords: devtoolsAppRecords.value
3935
+ };
3936
+ },
3937
+ api: createDevToolsApi(hooks)
3938
+ };
3939
+ var devtoolsContext = target10.__VUE_DEVTOOLS_KIT_CONTEXT__;
3940
+
3941
+ // src/compat/index.ts
3942
+ init_esm_shims();
3943
+ import { target as target11 } from "@vue/devtools-shared";
3944
+ function onLegacyDevToolsPluginApiAvailable(cb) {
3945
+ if (target11.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__) {
3946
+ cb();
3947
+ return;
3948
+ }
3949
+ Object.defineProperty(target11, "__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__", {
3950
+ set(value) {
3951
+ if (value)
3952
+ cb();
3953
+ },
3954
+ configurable: true
3955
+ });
3956
+ }
3957
+
3958
+ // src/core/app/index.ts
3959
+ init_esm_shims();
3960
+ var import_speakingurl = __toESM(require_speakingurl2(), 1);
3961
+ import { target as target12 } from "@vue/devtools-shared";
3962
+ var _a17, _b17;
3963
+ var appRecordInfo = (_b17 = (_a17 = target12).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null ? _b17 : _a17.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
3964
+ id: 0,
3965
+ appIds: /* @__PURE__ */ new Set()
3966
+ };
3967
+ function getAppRecordName(app, fallbackName) {
3968
+ var _a24;
3969
+ return ((_a24 = app == null ? void 0 : app._component) == null ? void 0 : _a24.name) || `App ${fallbackName}`;
3970
+ }
3971
+ function getAppRootInstance(app) {
3972
+ var _a24, _b24, _c, _d;
3973
+ if (app._instance)
3974
+ return app._instance;
3975
+ else if ((_b24 = (_a24 = app._container) == null ? void 0 : _a24._vnode) == null ? void 0 : _b24.component)
3976
+ return (_d = (_c = app._container) == null ? void 0 : _c._vnode) == null ? void 0 : _d.component;
3977
+ }
3978
+ function removeAppRecordId(app) {
3979
+ const id = app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;
3980
+ if (id != null) {
3981
+ appRecordInfo.appIds.delete(id);
3982
+ appRecordInfo.id--;
3983
+ }
3984
+ }
3985
+ function getAppRecordId(app, defaultId) {
3986
+ if (app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ != null)
3987
+ return app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__;
3988
+ let id = defaultId != null ? defaultId : (appRecordInfo.id++).toString();
3989
+ if (defaultId && appRecordInfo.appIds.has(id)) {
3990
+ let count = 1;
3991
+ while (appRecordInfo.appIds.has(`${defaultId}_${count}`))
3992
+ count++;
3993
+ id = `${defaultId}_${count}`;
3994
+ }
3995
+ appRecordInfo.appIds.add(id);
3996
+ app.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ = id;
3997
+ return id;
3998
+ }
3999
+ function createAppRecord(app) {
4000
+ const rootInstance = getAppRootInstance(app);
4001
+ if (rootInstance) {
4002
+ appRecordInfo.id++;
4003
+ const name = getAppRecordName(app, appRecordInfo.id.toString());
4004
+ const id = getAppRecordId(app, (0, import_speakingurl.default)(name));
4005
+ const record = {
4006
+ id,
4007
+ name,
4008
+ instanceMap: /* @__PURE__ */ new Map(),
4009
+ rootInstance
4010
+ };
4011
+ app.__VUE_DEVTOOLS_NEXT_APP_RECORD__ = record;
4012
+ const rootId = `${record.id}:root`;
4013
+ record.instanceMap.set(rootId, record.rootInstance);
4014
+ record.rootInstance.__VUE_DEVTOOLS_NEXT_UID__ = rootId;
4015
+ return record;
4016
+ } else {
4017
+ return {};
4018
+ }
4019
+ }
4020
+
4007
4021
  // src/core/index.ts
4008
4022
  function initDevTools() {
4009
- var _a23;
4023
+ var _a24;
4010
4024
  updateDevToolsState({
4011
4025
  vitePluginDetected: getDevToolsEnv().vitePluginDetected
4012
4026
  });
4013
- const isDevToolsNext = ((_a23 = target12.__VUE_DEVTOOLS_GLOBAL_HOOK__) == null ? void 0 : _a23.id) === "vue-devtools-next";
4014
- if (target12.__VUE_DEVTOOLS_GLOBAL_HOOK__ && isDevToolsNext)
4027
+ const isDevToolsNext = ((_a24 = target13.__VUE_DEVTOOLS_GLOBAL_HOOK__) == null ? void 0 : _a24.id) === "vue-devtools-next";
4028
+ if (target13.__VUE_DEVTOOLS_GLOBAL_HOOK__ && isDevToolsNext)
4015
4029
  return;
4016
- if (!target12.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
4017
- target12.__VUE_DEVTOOLS_GLOBAL_HOOK__ = createDevToolsHook();
4030
+ if (!target13.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
4031
+ target13.__VUE_DEVTOOLS_GLOBAL_HOOK__ = createDevToolsHook();
4018
4032
  } else {
4019
4033
  if (!isNuxtApp) {
4020
4034
  Object.assign(__VUE_DEVTOOLS_GLOBAL_HOOK__, createDevToolsHook());
4021
4035
  }
4022
4036
  }
4023
4037
  hook.on.setupDevtoolsPlugin((pluginDescriptor, setupFn) => {
4024
- var _a24;
4038
+ var _a25;
4025
4039
  addDevToolsPluginToBuffer(pluginDescriptor, setupFn);
4026
- const { app } = (_a24 = activeAppRecord) != null ? _a24 : {};
4040
+ const { app } = (_a25 = activeAppRecord) != null ? _a25 : {};
4027
4041
  if (!app)
4028
4042
  return;
4029
4043
  callDevToolsPluginSetupFn([pluginDescriptor, setupFn], app);
@@ -4031,7 +4045,7 @@ function initDevTools() {
4031
4045
  onLegacyDevToolsPluginApiAvailable(() => {
4032
4046
  const normalizedPluginBuffer = devtoolsPluginBuffer.filter(([item]) => item.id !== "components");
4033
4047
  normalizedPluginBuffer.forEach(([pluginDescriptor, setupFn]) => {
4034
- target12.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit("devtools-plugin:setup" /* SETUP_DEVTOOLS_PLUGIN */, pluginDescriptor, setupFn, { target: "legacy" });
4048
+ target13.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit("devtools-plugin:setup" /* SETUP_DEVTOOLS_PLUGIN */, pluginDescriptor, setupFn, { target: "legacy" });
4035
4049
  });
4036
4050
  });
4037
4051
  hook.on.vueAppInit(async (app, version) => {
@@ -4046,13 +4060,13 @@ function initDevTools() {
4046
4060
  setActiveAppRecord(normalizedAppRecord);
4047
4061
  setActiveAppRecordId(normalizedAppRecord.id);
4048
4062
  normalizeRouterInfo(normalizedAppRecord, activeAppRecord);
4063
+ registerDevToolsPlugin(normalizedAppRecord.app);
4049
4064
  }
4050
4065
  setupDevToolsPlugin(...createComponentsDevToolsPlugin(normalizedAppRecord.app));
4051
- registerDevToolsPlugin(normalizedAppRecord.app);
4052
4066
  updateDevToolsState({
4053
4067
  connected: true
4054
4068
  });
4055
- target12.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.push(app);
4069
+ target13.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.push(app);
4056
4070
  });
4057
4071
  hook.on.vueAppUnmount(async (app) => {
4058
4072
  const activeRecords = devtoolsAppRecords.value.filter((appRecord) => appRecord.app !== app);
@@ -4067,7 +4081,8 @@ function initDevTools() {
4067
4081
  setActiveAppRecord(activeRecords[0]);
4068
4082
  devtoolsContext.hooks.callHook("sendActiveAppUpdatedToClient" /* SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT */);
4069
4083
  }
4070
- target12.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.splice(target12.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.indexOf(app), 1);
4084
+ target13.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.splice(target13.__VUE_DEVTOOLS_GLOBAL_HOOK__.apps.indexOf(app), 1);
4085
+ removeRegisteredPluginApp(app);
4071
4086
  });
4072
4087
  subscribeDevToolsHook();
4073
4088
  }
@@ -4096,7 +4111,7 @@ function toggleHighPerfMode(state) {
4096
4111
  // src/messaging/index.ts
4097
4112
  init_esm_shims();
4098
4113
  import { createBirpc, createBirpcGroup } from "birpc";
4099
- import { target as target18 } from "@vue/devtools-shared";
4114
+ import { target as target19 } from "@vue/devtools-shared";
4100
4115
 
4101
4116
  // src/messaging/presets/index.ts
4102
4117
  init_esm_shims();
@@ -4707,7 +4722,7 @@ function generateReferentialEqualityAnnotations(identitites, dedupe) {
4707
4722
  }
4708
4723
  }
4709
4724
  var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPath = [], seenObjects = /* @__PURE__ */ new Map()) => {
4710
- var _a23;
4725
+ var _a24;
4711
4726
  const primitive = isPrimitive2(object);
4712
4727
  if (!primitive) {
4713
4728
  addIdentity(object, path, identities);
@@ -4737,7 +4752,7 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
4737
4752
  };
4738
4753
  }
4739
4754
  const transformationResult = transformValue(object, superJson);
4740
- const transformed = (_a23 = transformationResult == null ? void 0 : transformationResult.value) != null ? _a23 : object;
4755
+ const transformed = (_a24 = transformationResult == null ? void 0 : transformationResult.value) != null ? _a24 : object;
4741
4756
  const transformedValue = isArray(transformed) ? [] : {};
4742
4757
  const innerAnnotations = {};
4743
4758
  forEach(transformed, (value, index) => {
@@ -4809,22 +4824,22 @@ function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
4809
4824
  });
4810
4825
  }
4811
4826
  }
4812
- function copy(target20, options = {}) {
4813
- if (isArray2(target20)) {
4814
- return target20.map((item) => copy(item, options));
4827
+ function copy(target21, options = {}) {
4828
+ if (isArray2(target21)) {
4829
+ return target21.map((item) => copy(item, options));
4815
4830
  }
4816
- if (!isPlainObject3(target20)) {
4817
- return target20;
4831
+ if (!isPlainObject3(target21)) {
4832
+ return target21;
4818
4833
  }
4819
- const props = Object.getOwnPropertyNames(target20);
4820
- const symbols = Object.getOwnPropertySymbols(target20);
4834
+ const props = Object.getOwnPropertyNames(target21);
4835
+ const symbols = Object.getOwnPropertySymbols(target21);
4821
4836
  return [...props, ...symbols].reduce((carry, key) => {
4822
4837
  if (isArray2(options.props) && !options.props.includes(key)) {
4823
4838
  return carry;
4824
4839
  }
4825
- const val = target20[key];
4840
+ const val = target21[key];
4826
4841
  const newVal = copy(val, options);
4827
- assignProp(carry, key, newVal, target20, options.nonenumerable);
4842
+ assignProp(carry, key, newVal, target21, options.nonenumerable);
4828
4843
  return carry;
4829
4844
  }, {});
4830
4845
  }
@@ -4837,8 +4852,8 @@ var SuperJSON = class {
4837
4852
  constructor({ dedupe = false } = {}) {
4838
4853
  this.classRegistry = new ClassRegistry();
4839
4854
  this.symbolRegistry = new Registry((s) => {
4840
- var _a23;
4841
- return (_a23 = s.description) != null ? _a23 : "";
4855
+ var _a24;
4856
+ return (_a24 = s.description) != null ? _a24 : "";
4842
4857
  });
4843
4858
  this.customTransformerRegistry = new CustomTransformerRegistry();
4844
4859
  this.allowedErrorProps = [];
@@ -4918,14 +4933,14 @@ var allowErrorProps = SuperJSON.allowErrorProps;
4918
4933
 
4919
4934
  // src/messaging/presets/iframe/context.ts
4920
4935
  init_esm_shims();
4921
- import { target as target13 } from "@vue/devtools-shared";
4936
+ import { target as target14 } from "@vue/devtools-shared";
4922
4937
  var __DEVTOOLS_KIT_IFRAME_MESSAGING_EVENT_KEY = "__devtools-kit-iframe-messaging-event-key__";
4923
4938
  var __IFRAME_SERVER_CONTEXT__ = "iframe:server-context";
4924
4939
  function getIframeServerContext() {
4925
- return target13[__IFRAME_SERVER_CONTEXT__];
4940
+ return target14[__IFRAME_SERVER_CONTEXT__];
4926
4941
  }
4927
4942
  function setIframeServerContext(context) {
4928
- target13[__IFRAME_SERVER_CONTEXT__] = context;
4943
+ target14[__IFRAME_SERVER_CONTEXT__] = context;
4929
4944
  }
4930
4945
 
4931
4946
  // src/messaging/presets/iframe/client.ts
@@ -4969,9 +4984,9 @@ function createIframeServerChannel() {
4969
4984
  }
4970
4985
  return {
4971
4986
  post: (data) => {
4972
- var _a23;
4987
+ var _a24;
4973
4988
  const iframe = getIframeServerContext();
4974
- (_a23 = iframe == null ? void 0 : iframe.contentWindow) == null ? void 0 : _a23.postMessage(SuperJSON.stringify({
4989
+ (_a24 = iframe == null ? void 0 : iframe.contentWindow) == null ? void 0 : _a24.postMessage(SuperJSON.stringify({
4975
4990
  event: __DEVTOOLS_KIT_IFRAME_MESSAGING_EVENT_KEY,
4976
4991
  data
4977
4992
  }), "*");
@@ -5028,21 +5043,21 @@ init_esm_shims();
5028
5043
 
5029
5044
  // src/messaging/presets/vite/context.ts
5030
5045
  init_esm_shims();
5031
- import { target as target14 } from "@vue/devtools-shared";
5046
+ import { target as target15 } from "@vue/devtools-shared";
5032
5047
  var __DEVTOOLS_KIT_VITE_MESSAGING_EVENT_KEY = "__devtools-kit-vite-messaging-event-key__";
5033
5048
  var __VITE_CLIENT_CONTEXT__ = "vite:client-context";
5034
5049
  var __VITE_SERVER_CONTEXT__ = "vite:server-context";
5035
5050
  function getViteClientContext() {
5036
- return target14[__VITE_CLIENT_CONTEXT__];
5051
+ return target15[__VITE_CLIENT_CONTEXT__];
5037
5052
  }
5038
5053
  function setViteClientContext(context) {
5039
- target14[__VITE_CLIENT_CONTEXT__] = context;
5054
+ target15[__VITE_CLIENT_CONTEXT__] = context;
5040
5055
  }
5041
5056
  function getViteServerContext() {
5042
- return target14[__VITE_SERVER_CONTEXT__];
5057
+ return target15[__VITE_SERVER_CONTEXT__];
5043
5058
  }
5044
5059
  function setViteServerContext(context) {
5045
- target14[__VITE_SERVER_CONTEXT__] = context;
5060
+ target15[__VITE_SERVER_CONTEXT__] = context;
5046
5061
  }
5047
5062
 
5048
5063
  // src/messaging/presets/vite/client.ts
@@ -5063,9 +5078,9 @@ function createViteClientChannel() {
5063
5078
  // src/messaging/presets/vite/server.ts
5064
5079
  init_esm_shims();
5065
5080
  function createViteServerChannel() {
5066
- var _a23;
5081
+ var _a24;
5067
5082
  const viteServer = getViteServerContext();
5068
- const ws = (_a23 = viteServer.hot) != null ? _a23 : viteServer.ws;
5083
+ const ws = (_a24 = viteServer.hot) != null ? _a24 : viteServer.ws;
5069
5084
  return {
5070
5085
  post: (data) => ws == null ? void 0 : ws.send(__DEVTOOLS_KIT_VITE_MESSAGING_EVENT_KEY, SuperJSON.stringify(data)),
5071
5086
  on: (handler) => ws == null ? void 0 : ws.on(__DEVTOOLS_KIT_VITE_MESSAGING_EVENT_KEY, (event) => {
@@ -5082,7 +5097,7 @@ init_esm_shims();
5082
5097
 
5083
5098
  // src/messaging/presets/ws/context.ts
5084
5099
  init_esm_shims();
5085
- import { target as target15 } from "@vue/devtools-shared";
5100
+ import { target as target16 } from "@vue/devtools-shared";
5086
5101
 
5087
5102
  // src/messaging/presets/ws/server.ts
5088
5103
  init_esm_shims();
@@ -5092,7 +5107,7 @@ init_esm_shims();
5092
5107
 
5093
5108
  // src/messaging/presets/electron/context.ts
5094
5109
  init_esm_shims();
5095
- import { target as target16 } from "@vue/devtools-shared";
5110
+ import { target as target17 } from "@vue/devtools-shared";
5096
5111
  var __ELECTRON_CLIENT_CONTEXT__ = "electron:client-context";
5097
5112
  var __ELECTRON_RPOXY_CONTEXT__ = "electron:proxy-context";
5098
5113
  var __ELECTRON_SERVER_CONTEXT__ = "electron:server-context";
@@ -5110,22 +5125,22 @@ var __DEVTOOLS_KIT_ELECTRON_MESSAGING_EVENT_KEY__ = {
5110
5125
  // on: proxy->server
5111
5126
  };
5112
5127
  function getElectronClientContext() {
5113
- return target16[__ELECTRON_CLIENT_CONTEXT__];
5128
+ return target17[__ELECTRON_CLIENT_CONTEXT__];
5114
5129
  }
5115
5130
  function setElectronClientContext(context) {
5116
- target16[__ELECTRON_CLIENT_CONTEXT__] = context;
5131
+ target17[__ELECTRON_CLIENT_CONTEXT__] = context;
5117
5132
  }
5118
5133
  function getElectronProxyContext() {
5119
- return target16[__ELECTRON_RPOXY_CONTEXT__];
5134
+ return target17[__ELECTRON_RPOXY_CONTEXT__];
5120
5135
  }
5121
5136
  function setElectronProxyContext(context) {
5122
- target16[__ELECTRON_RPOXY_CONTEXT__] = context;
5137
+ target17[__ELECTRON_RPOXY_CONTEXT__] = context;
5123
5138
  }
5124
5139
  function getElectronServerContext() {
5125
- return target16[__ELECTRON_SERVER_CONTEXT__];
5140
+ return target17[__ELECTRON_SERVER_CONTEXT__];
5126
5141
  }
5127
5142
  function setElectronServerContext(context) {
5128
- target16[__ELECTRON_SERVER_CONTEXT__] = context;
5143
+ target17[__ELECTRON_SERVER_CONTEXT__] = context;
5129
5144
  }
5130
5145
 
5131
5146
  // src/messaging/presets/electron/client.ts
@@ -5183,7 +5198,7 @@ init_esm_shims();
5183
5198
 
5184
5199
  // src/messaging/presets/extension/context.ts
5185
5200
  init_esm_shims();
5186
- import { target as target17 } from "@vue/devtools-shared";
5201
+ import { target as target18 } from "@vue/devtools-shared";
5187
5202
  var __EXTENSION_CLIENT_CONTEXT__ = "electron:client-context";
5188
5203
  var __DEVTOOLS_KIT_EXTENSION_MESSAGING_EVENT_KEY__ = {
5189
5204
  // client
@@ -5199,10 +5214,10 @@ var __DEVTOOLS_KIT_EXTENSION_MESSAGING_EVENT_KEY__ = {
5199
5214
  // on: proxy->server
5200
5215
  };
5201
5216
  function getExtensionClientContext() {
5202
- return target17[__EXTENSION_CLIENT_CONTEXT__];
5217
+ return target18[__EXTENSION_CLIENT_CONTEXT__];
5203
5218
  }
5204
5219
  function setExtensionClientContext(context) {
5205
- target17[__EXTENSION_CLIENT_CONTEXT__] = context;
5220
+ target18[__EXTENSION_CLIENT_CONTEXT__] = context;
5206
5221
  }
5207
5222
 
5208
5223
  // src/messaging/presets/extension/client.ts
@@ -5314,41 +5329,41 @@ function createExtensionServerChannel() {
5314
5329
  }
5315
5330
 
5316
5331
  // src/messaging/index.ts
5317
- var _a17, _b17;
5318
- (_b17 = (_a17 = target18).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null ? _b17 : _a17.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = [];
5319
5332
  var _a18, _b18;
5320
- (_b18 = (_a18 = target18).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null ? _b18 : _a18.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null;
5333
+ (_b18 = (_a18 = target19).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null ? _b18 : _a18.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = [];
5321
5334
  var _a19, _b19;
5322
- (_b19 = (_a19 = target18).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null ? _b19 : _a19.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null;
5335
+ (_b19 = (_a19 = target19).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null ? _b19 : _a19.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null;
5323
5336
  var _a20, _b20;
5324
- (_b20 = (_a20 = target18).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null ? _b20 : _a20.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null;
5337
+ (_b20 = (_a20 = target19).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null ? _b20 : _a20.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null;
5325
5338
  var _a21, _b21;
5326
- (_b21 = (_a21 = target18).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null ? _b21 : _a21.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null;
5339
+ (_b21 = (_a21 = target19).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null ? _b21 : _a21.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null;
5327
5340
  var _a22, _b22;
5328
- (_b22 = (_a22 = target18).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null ? _b22 : _a22.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null;
5341
+ (_b22 = (_a22 = target19).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null ? _b22 : _a22.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null;
5342
+ var _a23, _b23;
5343
+ (_b23 = (_a23 = target19).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null ? _b23 : _a23.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null;
5329
5344
  function setRpcClientToGlobal(rpc) {
5330
- target18.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = rpc;
5345
+ target19.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = rpc;
5331
5346
  }
5332
5347
  function setRpcServerToGlobal(rpc) {
5333
- target18.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = rpc;
5348
+ target19.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = rpc;
5334
5349
  }
5335
5350
  function getRpcClient() {
5336
- return target18.__VUE_DEVTOOLS_KIT_RPC_CLIENT__;
5351
+ return target19.__VUE_DEVTOOLS_KIT_RPC_CLIENT__;
5337
5352
  }
5338
5353
  function getRpcServer() {
5339
- return target18.__VUE_DEVTOOLS_KIT_RPC_SERVER__;
5354
+ return target19.__VUE_DEVTOOLS_KIT_RPC_SERVER__;
5340
5355
  }
5341
5356
  function setViteRpcClientToGlobal(rpc) {
5342
- target18.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = rpc;
5357
+ target19.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = rpc;
5343
5358
  }
5344
5359
  function setViteRpcServerToGlobal(rpc) {
5345
- target18.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = rpc;
5360
+ target19.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = rpc;
5346
5361
  }
5347
5362
  function getViteRpcClient() {
5348
- return target18.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__;
5363
+ return target19.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__;
5349
5364
  }
5350
5365
  function getViteRpcServer() {
5351
- return target18.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__;
5366
+ return target19.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__;
5352
5367
  }
5353
5368
  function getChannel(preset, host = "client") {
5354
5369
  const channel = {
@@ -5621,13 +5636,13 @@ function getHTMLElementDetails(value) {
5621
5636
  }
5622
5637
  }
5623
5638
  function getObjectDetails(object) {
5624
- var _a23, _b23, _c, _d;
5639
+ var _a24, _b24, _c, _d;
5625
5640
  const info = getSetupStateType(object);
5626
5641
  const isState = info.ref || info.computed || info.reactive;
5627
5642
  if (isState) {
5628
5643
  const stateTypeName = info.computed ? "Computed" : info.ref ? "Ref" : info.reactive ? "Reactive" : null;
5629
5644
  const value = toRaw2(info.reactive ? object : object._value);
5630
- const raw = ((_b23 = (_a23 = object.effect) == null ? void 0 : _a23.raw) == null ? void 0 : _b23.toString()) || ((_d = (_c = object.effect) == null ? void 0 : _c.fn) == null ? void 0 : _d.toString());
5645
+ const raw = ((_b24 = (_a24 = object.effect) == null ? void 0 : _a24.raw) == null ? void 0 : _b24.toString()) || ((_d = (_c = object.effect) == null ? void 0 : _c.fn) == null ? void 0 : _d.toString());
5631
5646
  return {
5632
5647
  _custom: {
5633
5648
  type: stateTypeName == null ? void 0 : stateTypeName.toLowerCase(),
@@ -5649,7 +5664,7 @@ function getObjectDetails(object) {
5649
5664
 
5650
5665
  // src/core/component/state/replacer.ts
5651
5666
  function stringifyReplacer(key, _value, depth, seenInstance) {
5652
- var _a23;
5667
+ var _a24;
5653
5668
  if (key === "compilerOptions")
5654
5669
  return;
5655
5670
  const val = this[key];
@@ -5711,7 +5726,7 @@ function stringifyReplacer(key, _value, depth, seenInstance) {
5711
5726
  return `[native VNode <${val.tag}>]`;
5712
5727
  } else if (typeof HTMLElement !== "undefined" && val instanceof HTMLElement) {
5713
5728
  return getHTMLElementDetails(val);
5714
- } else if (((_a23 = val.constructor) == null ? void 0 : _a23.name) === "Store" && val._wrappedGetters) {
5729
+ } else if (((_a24 = val.constructor) == null ? void 0 : _a24.name) === "Store" && val._wrappedGetters) {
5715
5730
  return "[object Store]";
5716
5731
  } else if (val.currentRoute) {
5717
5732
  return "[object Router]";
@@ -5727,7 +5742,7 @@ function stringifyReplacer(key, _value, depth, seenInstance) {
5727
5742
 
5728
5743
  // src/core/component/state/reviver.ts
5729
5744
  init_esm_shims();
5730
- import { target as target19 } from "@vue/devtools-shared";
5745
+ import { target as target20 } from "@vue/devtools-shared";
5731
5746
  function reviveSet(val) {
5732
5747
  const result = /* @__PURE__ */ new Set();
5733
5748
  const list = val._custom.value;
@@ -5772,7 +5787,7 @@ function revive(val) {
5772
5787
  return Symbol.for(string);
5773
5788
  } else if (specialTypeRE.test(val)) {
5774
5789
  const [, type, string, , details] = specialTypeRE.exec(val);
5775
- const result = new target19[type](string);
5790
+ const result = new target20[type](string);
5776
5791
  if (type === "Error" && details)
5777
5792
  result.stack = details;
5778
5793
  return result;
@@ -5935,7 +5950,7 @@ function getInspectorStateValueType(value, raw = true) {
5935
5950
  }
5936
5951
  }
5937
5952
  function formatInspectorStateValue(value, quotes = false, options) {
5938
- var _a23, _b23, _c;
5953
+ var _a24, _b24, _c;
5939
5954
  const { customClass } = options != null ? options : {};
5940
5955
  let result;
5941
5956
  const type = getInspectorStateValueType(value, false);
@@ -5944,14 +5959,14 @@ function formatInspectorStateValue(value, quotes = false, options) {
5944
5959
  if (result = internalStateTokenToString(value)) {
5945
5960
  return result;
5946
5961
  } else if (type === "custom") {
5947
- const nestedName = ((_a23 = value._custom.value) == null ? void 0 : _a23._custom) && formatInspectorStateValue(value._custom.value, quotes, options);
5962
+ const nestedName = ((_a24 = value._custom.value) == null ? void 0 : _a24._custom) && formatInspectorStateValue(value._custom.value, quotes, options);
5948
5963
  return nestedName || value._custom.displayText || value._custom.display;
5949
5964
  } else if (type === "array") {
5950
5965
  return `Array[${value.length}]`;
5951
5966
  } else if (type === "plain-object") {
5952
5967
  return `Object${Object.keys(value).length ? "" : " (empty)"}`;
5953
5968
  } else if (type == null ? void 0 : type.includes("native")) {
5954
- return escape((_b23 = specialTypeRE.exec(value)) == null ? void 0 : _b23[2]);
5969
+ return escape((_b24 = specialTypeRE.exec(value)) == null ? void 0 : _b24[2]);
5955
5970
  } else if (typeof value === "string") {
5956
5971
  const typeMatch = value.match(rawTypeRE);
5957
5972
  if (typeMatch) {
@@ -5968,14 +5983,14 @@ function escapeString(value) {
5968
5983
  return escape(value).replace(/ /g, "&nbsp;").replace(/\n/g, "<span>\\n</span>");
5969
5984
  }
5970
5985
  function getRaw(value) {
5971
- var _a23, _b23, _c;
5986
+ var _a24, _b24, _c;
5972
5987
  let customType;
5973
5988
  const isCustom = getInspectorStateValueType(value) === "custom";
5974
5989
  let inherit = {};
5975
5990
  if (isCustom) {
5976
5991
  const data = value;
5977
- const customValue = (_a23 = data._custom) == null ? void 0 : _a23.value;
5978
- const currentCustomType = (_b23 = data._custom) == null ? void 0 : _b23.type;
5992
+ const customValue = (_a24 = data._custom) == null ? void 0 : _a24.value;
5993
+ const currentCustomType = (_b24 = data._custom) == null ? void 0 : _b24.type;
5979
5994
  const nestedCustom = typeof customValue === "object" && customValue !== null && "_custom" in customValue ? getRaw(customValue) : { inherit: void 0, value: void 0, customType: void 0 };
5980
5995
  inherit = nestedCustom.inherit || ((_c = data._custom) == null ? void 0 : _c.fields) || {};
5981
5996
  value = nestedCustom.value || customValue;
@@ -6085,6 +6100,7 @@ export {
6085
6100
  registerDevToolsPlugin,
6086
6101
  removeCustomCommand,
6087
6102
  removeDevToolsAppRecord,
6103
+ removeRegisteredPluginApp,
6088
6104
  resetDevToolsState,
6089
6105
  setActiveAppRecord,
6090
6106
  setActiveAppRecordId,